@everymatrix/nuts-inbox-widget 1.94.115 → 1.94.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-4522ef7e.js → index-a1087740.js} +8 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/nuts-inbox-widget.cjs.js +2 -2
- package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +44 -20
- package/dist/collection/api/methods/index.js +3 -2
- package/dist/collection/cache/notification-cache.js +17 -10
- package/dist/collection/components/nuts-popover/nuts-popover.js +25 -8
- package/dist/esm/{index-0160662f.js → index-2eda31b2.js} +8 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/nuts-inbox-widget.js +3 -3
- package/dist/esm/nuts-inbox-widget_3.entry.js +44 -20
- package/dist/nuts-inbox-widget/{index-0160662f.js → index-2eda31b2.js} +2 -2
- package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -1
- package/dist/nuts-inbox-widget/nuts-inbox-widget_3.entry.js +1 -1
- package/dist/types/cache/notification-cache.d.ts +1 -0
- package/dist/types/components/nuts-popover/nuts-popover.d.ts +2 -0
- package/hydrate/index.js +46 -21
- package/hydrate/index.mjs +46 -21
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-2eda31b2.js';
|
|
2
|
+
export { s as setNonce } from './index-2eda31b2.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["nuts-inbox-widget_3",[[1,"nuts-inbox-widget",{"backendUrl":[513,"backend-url"],"socketUrl":[513,"socket-url"],"userId":[513,"user-id"],"sessionId":[513,"session-id"],"operatorId":[513,"operator-id"],"subscriberId":[513,"subscriber-id"],"deviceId":[513,"device-id"],"language":[513],"environment":[513],"applicationIdentifier":[513,"application-identifier"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bellIconPosition":[513,"bell-icon-position"],"notificationAction":[513,"notification-action"],"translationUrl":[513,"translation-url"],"isLoading":[32],"popoverVisible":[32],"unseenCount":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"],[8,"closePopover","closePopoverHandler"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"deviceId":["initializeHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-popover",{"language":[513],"userId":[513,"user-id"],"operatorId":[513,"operator-id"],"token":[513],"sessionId":[513,"session-id"],"backendUrl":[513,"backend-url"],"unseenCount":[514,"unseen-count"],"clientStylingUrl":[513,"client-styling-url"],"notificationAction":[513,"notification-action"],"clientStyling":[1537,"client-styling"],"translationUrl":[513,"translation-url"],"notifications":[32],"isLoading":[32],"isNotificationsLoading":[32],"showMarkAll":[32],"limitStylingAppends":[32],"showDeleteAllPopup":[32],"hasMore":[32]},[[8,"messageDeleted","messageDeletedHandler"],[8,"messageRead","messageReadHandler"],[8,"click","clickOutsideHandle"]],{"unseenCount":["unseenCountHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-notification",{"badge":[513],"content":[513],"date":[513],"showSettings":[516,"show-settings"],"read":[516],"seen":[516],"language":[513],"sessionId":[513,"session-id"],"subscriberId":[513,"subscriber-id"],"userId":[513,"user-id"],"messageId":[513,"message-id"],"operatorId":[513,"operator-id"],"token":[513],"backendUrl":[513,"backend-url"],"redirectUrl":[513,"redirect-url"],"notificationAction":[513,"notification-action"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"maxTextLength":[514,"max-text-length"],"maxLines":[514,"max-lines"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"],[8,"click","clickOutsideHandle"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["nuts-inbox-widget_3",[[1,"nuts-inbox-widget",{"backendUrl":[513,"backend-url"],"socketUrl":[513,"socket-url"],"userId":[513,"user-id"],"sessionId":[513,"session-id"],"operatorId":[513,"operator-id"],"subscriberId":[513,"subscriber-id"],"deviceId":[513,"device-id"],"language":[513],"environment":[513],"applicationIdentifier":[513,"application-identifier"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bellIconPosition":[513,"bell-icon-position"],"notificationAction":[513,"notification-action"],"translationUrl":[513,"translation-url"],"isLoading":[32],"popoverVisible":[32],"unseenCount":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"],[8,"closePopover","closePopoverHandler"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"deviceId":["initializeHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-popover",{"language":[513],"userId":[513,"user-id"],"operatorId":[513,"operator-id"],"token":[513],"sessionId":[513,"session-id"],"backendUrl":[513,"backend-url"],"unseenCount":[514,"unseen-count"],"clientStylingUrl":[513,"client-styling-url"],"notificationAction":[513,"notification-action"],"clientStyling":[1537,"client-styling"],"translationUrl":[513,"translation-url"],"notifications":[32],"isLoading":[32],"isNotificationsLoading":[32],"showMarkAll":[32],"limitStylingAppends":[32],"showDeleteAllPopup":[32],"hasMore":[32],"currentPage":[32]},[[8,"messageDeleted","messageDeletedHandler"],[8,"messageRead","messageReadHandler"],[8,"click","clickOutsideHandle"]],{"unseenCount":["unseenCountHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-notification",{"badge":[513],"content":[513],"date":[513],"showSettings":[516,"show-settings"],"read":[516],"seen":[516],"language":[513],"sessionId":[513,"session-id"],"subscriberId":[513,"subscriber-id"],"userId":[513,"user-id"],"messageId":[513,"message-id"],"operatorId":[513,"operator-id"],"token":[513],"backendUrl":[513,"backend-url"],"redirectUrl":[513,"redirect-url"],"notificationAction":[513,"notification-action"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"maxTextLength":[514,"max-text-length"],"maxLines":[514,"max-lines"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"],[8,"click","clickOutsideHandle"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-2eda31b2.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
@@ -4277,6 +4277,7 @@ const markAsRead = async ({ baseUrl, body, token, unread }) => {
|
|
|
4277
4277
|
}
|
|
4278
4278
|
};
|
|
4279
4279
|
const getNotifications = async ({ baseUrl, page, token }) => {
|
|
4280
|
+
var _a;
|
|
4280
4281
|
const url = new URL(`${baseUrl}/widgets/notifications/feed`);
|
|
4281
4282
|
const headers = new Headers();
|
|
4282
4283
|
url.searchParams.append('page', page.toString());
|
|
@@ -4291,7 +4292,7 @@ const getNotifications = async ({ baseUrl, page, token }) => {
|
|
|
4291
4292
|
return {
|
|
4292
4293
|
numberOfNotifications: data.totalCount,
|
|
4293
4294
|
notifications: data.data,
|
|
4294
|
-
hasMore: data.hasMore
|
|
4295
|
+
hasMore: (_a = data.hasMore) !== null && _a !== void 0 ? _a : false
|
|
4295
4296
|
};
|
|
4296
4297
|
}
|
|
4297
4298
|
catch (error) {
|
|
@@ -4299,7 +4300,7 @@ const getNotifications = async ({ baseUrl, page, token }) => {
|
|
|
4299
4300
|
return {
|
|
4300
4301
|
numberOfNotifications: 0,
|
|
4301
4302
|
notifications: [],
|
|
4302
|
-
hasMore:
|
|
4303
|
+
hasMore: false
|
|
4303
4304
|
};
|
|
4304
4305
|
}
|
|
4305
4306
|
};
|
|
@@ -4364,15 +4365,23 @@ class NotificationCache {
|
|
|
4364
4365
|
this.syncCurrentPage();
|
|
4365
4366
|
}
|
|
4366
4367
|
syncCurrentPage() {
|
|
4367
|
-
var _a;
|
|
4368
|
+
var _a, _b, _c;
|
|
4368
4369
|
const entry = this.cache.get(this.currentPage);
|
|
4369
4370
|
const notifications = (_a = entry === null || entry === void 0 ? void 0 : entry.notifications) !== null && _a !== void 0 ? _a : [];
|
|
4370
|
-
const hasMore = entry === null || entry === void 0 ? void 0 : entry.hasMore;
|
|
4371
|
-
this.onPageUpdate([...notifications], hasMore);
|
|
4371
|
+
const hasMore = (_b = entry === null || entry === void 0 ? void 0 : entry.hasMore) !== null && _b !== void 0 ? _b : false;
|
|
4372
|
+
(_c = this.onPageUpdate) === null || _c === void 0 ? void 0 : _c.call(this, [...notifications], hasMore);
|
|
4373
|
+
}
|
|
4374
|
+
updatePagesInPlace(updater) {
|
|
4375
|
+
for (const [page, entry] of this.cache.entries()) {
|
|
4376
|
+
this.cache.set(page, {
|
|
4377
|
+
notifications: updater(entry.notifications, page),
|
|
4378
|
+
hasMore: entry.hasMore
|
|
4379
|
+
});
|
|
4380
|
+
}
|
|
4381
|
+
this.syncCurrentPage();
|
|
4372
4382
|
}
|
|
4373
4383
|
deleteById(id) {
|
|
4374
|
-
|
|
4375
|
-
this.updateCache(updatedNotifications);
|
|
4384
|
+
this.updatePagesInPlace((notifications) => notifications.filter((n) => n.id !== id));
|
|
4376
4385
|
}
|
|
4377
4386
|
addToFront(notification) {
|
|
4378
4387
|
if (!this.cache.get(0)) {
|
|
@@ -4382,12 +4391,10 @@ class NotificationCache {
|
|
|
4382
4391
|
this.updateCache(updatedNotifications);
|
|
4383
4392
|
}
|
|
4384
4393
|
markAsRead(id, mark) {
|
|
4385
|
-
|
|
4386
|
-
this.updateCache(updatedNotifications);
|
|
4394
|
+
this.updatePagesInPlace((notifications) => notifications.map((n) => (n.id === id ? Object.assign(Object.assign({}, n), mark) : n)));
|
|
4387
4395
|
}
|
|
4388
4396
|
markAllAsRead() {
|
|
4389
|
-
|
|
4390
|
-
this.updateCache(updatedNotifications);
|
|
4397
|
+
this.updatePagesInPlace((notifications) => notifications.map((n) => (Object.assign(Object.assign({}, n), { read: true, seen: true }))));
|
|
4391
4398
|
}
|
|
4392
4399
|
clearAll() {
|
|
4393
4400
|
this.resetCache();
|
|
@@ -4398,12 +4405,13 @@ class NotificationCache {
|
|
|
4398
4405
|
this.cache.set(0, { notifications: [], hasMore: false });
|
|
4399
4406
|
}
|
|
4400
4407
|
async loadPageFromApi(page, loader) {
|
|
4408
|
+
var _a;
|
|
4401
4409
|
if (this.cache.has(page)) {
|
|
4402
4410
|
this.setCurrentPage(page);
|
|
4403
4411
|
return;
|
|
4404
4412
|
}
|
|
4405
4413
|
const data = await loader();
|
|
4406
|
-
this.cache.set(page, { notifications: data.notifications, hasMore: data.hasMore });
|
|
4414
|
+
this.cache.set(page, { notifications: data.notifications, hasMore: (_a = data.hasMore) !== null && _a !== void 0 ? _a : false });
|
|
4407
4415
|
this.setCurrentPage(page);
|
|
4408
4416
|
}
|
|
4409
4417
|
getAllFromCache() {
|
|
@@ -42746,7 +42754,7 @@ const NutsPopover = class {
|
|
|
42746
42754
|
this.allNotificationsRead = createEvent(this, "allNotificationsRead", 7);
|
|
42747
42755
|
this.allMessagesDeteled = createEvent(this, "allMessagesDeleted", 7);
|
|
42748
42756
|
this.closePopoverEmmiter = createEvent(this, "closePopover", 7);
|
|
42749
|
-
this.
|
|
42757
|
+
this.loadGeneration = 0;
|
|
42750
42758
|
this.nextPage = async () => {
|
|
42751
42759
|
this.currentPage++;
|
|
42752
42760
|
this.triggerGetNotifications();
|
|
@@ -42831,7 +42839,8 @@ const NutsPopover = class {
|
|
|
42831
42839
|
this.showMarkAll = false;
|
|
42832
42840
|
this.limitStylingAppends = false;
|
|
42833
42841
|
this.showDeleteAllPopup = false;
|
|
42834
|
-
this.hasMore =
|
|
42842
|
+
this.hasMore = false;
|
|
42843
|
+
this.currentPage = 0;
|
|
42835
42844
|
}
|
|
42836
42845
|
messageDeletedHandler(event) {
|
|
42837
42846
|
notificationCache.deleteById(event.detail);
|
|
@@ -42886,6 +42895,7 @@ const NutsPopover = class {
|
|
|
42886
42895
|
// end custom styling area
|
|
42887
42896
|
}
|
|
42888
42897
|
async triggerGetNotifications() {
|
|
42898
|
+
const generation = this.loadGeneration;
|
|
42889
42899
|
this.isNotificationsLoading = true;
|
|
42890
42900
|
try {
|
|
42891
42901
|
await notificationCache.loadPageFromApi(this.currentPage, async () => getNotifications({
|
|
@@ -42895,12 +42905,22 @@ const NutsPopover = class {
|
|
|
42895
42905
|
}));
|
|
42896
42906
|
}
|
|
42897
42907
|
finally {
|
|
42898
|
-
this.
|
|
42908
|
+
if (generation === this.loadGeneration) {
|
|
42909
|
+
this.isNotificationsLoading = false;
|
|
42910
|
+
}
|
|
42899
42911
|
}
|
|
42900
42912
|
}
|
|
42901
42913
|
connectedCallback() {
|
|
42902
42914
|
this.baseUrl = `${this.backendUrl}/v1/${this.operatorId}`;
|
|
42915
|
+
this.currentPage = 0;
|
|
42916
|
+
this.hasMore = false;
|
|
42917
|
+
this.isNotificationsLoading = true;
|
|
42918
|
+
this.loadGeneration++;
|
|
42919
|
+
const generation = this.loadGeneration;
|
|
42903
42920
|
notificationCache.observePageUpdate((notifications, hasMore) => {
|
|
42921
|
+
if (generation !== this.loadGeneration) {
|
|
42922
|
+
return;
|
|
42923
|
+
}
|
|
42904
42924
|
if ((notifications === null || notifications === void 0 ? void 0 : notifications.length) === 0 && this.currentPage > 0) {
|
|
42905
42925
|
// if it's last notification on it's page go back a page and retrigger
|
|
42906
42926
|
this.currentPage--;
|
|
@@ -42908,23 +42928,27 @@ const NutsPopover = class {
|
|
|
42908
42928
|
return;
|
|
42909
42929
|
}
|
|
42910
42930
|
this.notifications = notifications;
|
|
42911
|
-
this.hasMore = hasMore;
|
|
42931
|
+
this.hasMore = hasMore !== null && hasMore !== void 0 ? hasMore : false;
|
|
42912
42932
|
});
|
|
42913
42933
|
this.triggerGetNotifications();
|
|
42914
42934
|
if (this.unseenCount != 0) {
|
|
42915
42935
|
this.showMarkAll = true;
|
|
42916
42936
|
}
|
|
42917
42937
|
}
|
|
42938
|
+
disconnectedCallback() {
|
|
42939
|
+
this.loadGeneration++;
|
|
42940
|
+
this.isNotificationsLoading = false;
|
|
42941
|
+
}
|
|
42918
42942
|
render() {
|
|
42919
42943
|
var _a, _b;
|
|
42920
|
-
return (h("div", { key: '
|
|
42944
|
+
return (h("div", { key: 'df45b2b7da683f9895151d698a4c7def899e13d4', class: "Popover", ref: this.assignRefToStylingContainer }, h("div", { key: '87e638b07e89b39d9b9fa60807d5e792ef9ecece', class: "Header" }, h("div", { key: '238839de9ec5734950b916924d3469081b10714c', class: "Title" }, translate$1('notifications', this.language), this.unseenCount > 0 ? h("div", { class: "UnseenCounter" }, this.unseenCount) : ''), this.showMarkAll && (h("div", { key: 'efc165ffdc077d09ee2f90c5758eca8b1c048d9f', class: "MarkAsRead", onClick: this.markAllNotificationsAsRead }, translate$1('markAllAsRead', this.language))), h("div", { key: 'b941c6a87a071d9e45d38528d889e7dbc8848ef4', class: "ActionButtons" }, h("button", { key: '33d9e1f7857a80936e6b65e1fa2ecbc3c55e4e4f', class: `DeleteAll${this.showDeleteAllPopup ? ' Active' : ''}`, onClick: this.showDeletePopup, disabled: !((_a = this.notifications) === null || _a === void 0 ? void 0 : _a.length) }, h("svg", { key: '3b87ea1d8e1c5942db86e18cf26e176031afef6a', width: "16", height: "16", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '915823d5da7a4e12d578fe9db6b968253ceba418', d: "M4.375 15.4375C4.375 16.1758 4.94922 16.75 5.6875 16.75H13.5625C14.2734 16.75 14.875 16.1758 14.875 15.4375V6.25H4.375V15.4375ZM11.8125 8.4375C11.8125 8.21875 12.0039 8 12.25 8C12.4688 8 12.6875 8.21875 12.6875 8.4375V14.5625C12.6875 14.8086 12.4688 15 12.25 15C12.0039 15 11.8125 14.8086 11.8125 14.5625V8.4375ZM9.1875 8.4375C9.1875 8.21875 9.37891 8 9.625 8C9.84375 8 10.0625 8.21875 10.0625 8.4375V14.5625C10.0625 14.8086 9.84375 15 9.625 15C9.37891 15 9.1875 14.8086 9.1875 14.5625V8.4375ZM6.5625 8.4375C6.5625 8.21875 6.75391 8 7 8C7.21875 8 7.4375 8.21875 7.4375 8.4375V14.5625C7.4375 14.8086 7.21875 15 7 15C6.75391 15 6.5625 14.8086 6.5625 14.5625V8.4375ZM15.3125 3.625H12.25L11.9219 2.99609C11.8398 2.85938 11.7031 2.75 11.5391 2.75H7.68359C7.51953 2.75 7.38281 2.85938 7.30078 2.99609L7 3.625H3.9375C3.69141 3.625 3.5 3.84375 3.5 4.0625V4.9375C3.5 5.18359 3.69141 5.375 3.9375 5.375H15.3125C15.5312 5.375 15.75 5.18359 15.75 4.9375V4.0625C15.75 3.84375 15.5312 3.625 15.3125 3.625Z", fill: "currentColor" }))), h("button", { key: '49d50d9f7cf56d778788dcf0d87804fa687c7b98', class: "ClosePopover", onClick: this.closePopover }, h("div", { key: '57f0f1d6980036373200e0e5ace18d7f09b9f292', innerHTML: renderIconDefinitionToSVGElement(CloseCircleOutlined$1, {
|
|
42921
42945
|
extraSVGAttrs: { width: '20px', height: '20px', fill: '#A1A1B2' }
|
|
42922
|
-
}) }))), this.showDeleteAllPopup && (h("div", { key: '
|
|
42946
|
+
}) }))), this.showDeleteAllPopup && (h("div", { key: '6a8733b4153724154ed148d8794c336131a32ef4', class: "DeleteAllDropdown", ref: (el) => (this.dropdownRef = el) }, h("button", { key: 'e5b886482308972cbfe1916dce40bcc6b15d21dd', onClick: this.deleteAllNotifications }, translate$1('deleteAllMessages', this.language))))), !this.isLoading && (h("div", { key: 'db28490ea2ae39401719df67c0783944b2aa6fdd', class: "NotificationList" }, this.isNotificationsLoading ? (h("div", { class: "Loading", innerHTML: renderIconDefinitionToSVGElement(LoadingOutlined$1, {
|
|
42923
42947
|
extraSVGAttrs: { width: '30px', height: '30px', fill: '#A1A1B2' }
|
|
42924
42948
|
}) })) : ((_b = this.notifications) === null || _b === void 0 ? void 0 : _b.length) > 0 ? (this.notifications.map((item) => {
|
|
42925
42949
|
var _a, _b;
|
|
42926
42950
|
return (h("nuts-notification", { "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, key: item.id, "user-id": this.userId, "operator-id": this.operatorId, content: item.content, "message-id": item.id, badge: ((_a = item.avatar) === null || _a === void 0 ? void 0 : _a.data) || ((_b = item.actor) === null || _b === void 0 ? void 0 : _b.data) || '', sessionId: this.sessionId, date: item.createdAt, read: item.read, seen: item.seen, language: this.language, "notification-action": this.notificationAction, token: this.token, "backend-url": this.backendUrl, "redirect-url": item.cta.data.url, "translation-url": this.translationUrl, "max-text-length": 200, "max-lines": 5 }));
|
|
42927
|
-
})) : (h("div", { class: "NoMessages" }, h("svg", { width: "120", height: "108", viewBox: "0 0 120 108", fill: "none" }, h("circle", { cx: "11.3191", cy: "30.7872", r: "6.31915", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("ellipse", { cx: "60.117", cy: "27.9787", rx: "5.96809", ry: "5.61702", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M79.5424 49.4934C79.5424 44.1598 77.6437 39.0446 74.2641 35.2732C70.8844 31.5017 66.3006 29.3829 61.5211 29.3829C56.7415 29.3829 52.1578 31.5017 48.7781 35.2732C45.3985 39.0446 43.4998 44.1598 43.4998 49.4934C43.4998 72.9557 34.4892 79.6592 34.4892 79.6592H88.553C88.553 79.6592 79.5424 72.9557 79.5424 49.4934Z", fill: "#292933" }), h("path", { d: "M68.8995 81.7552C68.1496 83.551 67.0731 85.0417 65.778 86.0779C64.4828 87.1141 63.0144 87.6595 61.5198 87.6595C60.0252 87.6595 58.5568 87.1141 57.2617 86.0779C55.9665 85.0417 54.8901 83.551 54.1401 81.7552", fill: "#292933" }), h("path", { d: "M81.2976 50.2203C81.2976 68.2545 87.2222 76.7327 90.2814 79.9083C90.7671 80.4126 90.3802 81.4764 89.68 81.4764C88.0927 81.4764 86.5488 81.4764 85.0422 81.4764M68.5814 82.946C67.6854 84.8068 66.3993 86.3513 64.8518 87.425C63.3044 88.4987 61.5499 89.0638 59.7641 89.0638C57.9783 89.0638 56.2239 88.4987 54.6765 87.425C53.129 86.3513 51.8429 84.8068 50.9468 82.946M79.712 42.3723C78.6394 39.8192 77.0439 37.4727 74.991 35.4861C70.953 31.5783 65.4763 29.3829 59.7656 29.3829C54.055 29.3829 48.5783 31.5783 44.5403 35.4861C43.3681 36.6205 42.345 37.8722 41.4832 39.2127C40.4958 40.7487 39.7202 42.4013 39.1747 44.1276C38.5563 46.0847 38.2337 48.1364 38.2337 50.2203C38.2337 53.2503 38.0665 56.0106 37.7737 58.5212M34.8401 70.7608C32.9874 75.4551 30.7688 78.331 29.2526 79.9055C28.767 80.4099 29.155 81.4764 29.8551 81.4764C47.1962 81.4764 59.3571 81.4764 74.1593 81.4764", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M55.6345 59.0737C55.1665 59.7144 54.4949 60.2462 53.6868 60.6159C52.8787 60.9855 51.9625 61.1801 51.0299 61.1801C50.0973 61.1801 49.1811 60.9855 48.373 60.6159C47.5649 60.2462 46.8933 59.7144 46.4254 59.0737", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M73.1877 59.0737C72.7197 59.7144 72.0481 60.2462 71.24 60.6159C70.4319 60.9855 69.5157 61.1801 68.5831 61.1801C67.6506 61.1801 66.7344 60.9855 65.9263 60.6159C65.1182 60.2462 64.4465 59.7144 63.9786 59.0737", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("circle", { cx: "107.511", cy: "56.0638", r: "7.02128", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("circle", { cx: "16.4252", cy: "58.1703", r: "4.21277", fill: "#3D3D4D" }), h("ellipse", { cx: "59.9573", cy: "104.511", rx: "25.2766", ry: "2.80851", fill: "#3D3D4D" }), h("path", { d: "M81.5317 18.1489H88.553L81.5317 25.1702H88.553", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M96.6807 2H106.51L96.6807 11.8298H106.51", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("p", null, translate$1('noMessages', this.language)))))), !this.isLoading && (h("div", { key: '
|
|
42951
|
+
})) : (h("div", { class: "NoMessages" }, h("svg", { width: "120", height: "108", viewBox: "0 0 120 108", fill: "none" }, h("circle", { cx: "11.3191", cy: "30.7872", r: "6.31915", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("ellipse", { cx: "60.117", cy: "27.9787", rx: "5.96809", ry: "5.61702", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M79.5424 49.4934C79.5424 44.1598 77.6437 39.0446 74.2641 35.2732C70.8844 31.5017 66.3006 29.3829 61.5211 29.3829C56.7415 29.3829 52.1578 31.5017 48.7781 35.2732C45.3985 39.0446 43.4998 44.1598 43.4998 49.4934C43.4998 72.9557 34.4892 79.6592 34.4892 79.6592H88.553C88.553 79.6592 79.5424 72.9557 79.5424 49.4934Z", fill: "#292933" }), h("path", { d: "M68.8995 81.7552C68.1496 83.551 67.0731 85.0417 65.778 86.0779C64.4828 87.1141 63.0144 87.6595 61.5198 87.6595C60.0252 87.6595 58.5568 87.1141 57.2617 86.0779C55.9665 85.0417 54.8901 83.551 54.1401 81.7552", fill: "#292933" }), h("path", { d: "M81.2976 50.2203C81.2976 68.2545 87.2222 76.7327 90.2814 79.9083C90.7671 80.4126 90.3802 81.4764 89.68 81.4764C88.0927 81.4764 86.5488 81.4764 85.0422 81.4764M68.5814 82.946C67.6854 84.8068 66.3993 86.3513 64.8518 87.425C63.3044 88.4987 61.5499 89.0638 59.7641 89.0638C57.9783 89.0638 56.2239 88.4987 54.6765 87.425C53.129 86.3513 51.8429 84.8068 50.9468 82.946M79.712 42.3723C78.6394 39.8192 77.0439 37.4727 74.991 35.4861C70.953 31.5783 65.4763 29.3829 59.7656 29.3829C54.055 29.3829 48.5783 31.5783 44.5403 35.4861C43.3681 36.6205 42.345 37.8722 41.4832 39.2127C40.4958 40.7487 39.7202 42.4013 39.1747 44.1276C38.5563 46.0847 38.2337 48.1364 38.2337 50.2203C38.2337 53.2503 38.0665 56.0106 37.7737 58.5212M34.8401 70.7608C32.9874 75.4551 30.7688 78.331 29.2526 79.9055C28.767 80.4099 29.155 81.4764 29.8551 81.4764C47.1962 81.4764 59.3571 81.4764 74.1593 81.4764", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M55.6345 59.0737C55.1665 59.7144 54.4949 60.2462 53.6868 60.6159C52.8787 60.9855 51.9625 61.1801 51.0299 61.1801C50.0973 61.1801 49.1811 60.9855 48.373 60.6159C47.5649 60.2462 46.8933 59.7144 46.4254 59.0737", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M73.1877 59.0737C72.7197 59.7144 72.0481 60.2462 71.24 60.6159C70.4319 60.9855 69.5157 61.1801 68.5831 61.1801C67.6506 61.1801 66.7344 60.9855 65.9263 60.6159C65.1182 60.2462 64.4465 59.7144 63.9786 59.0737", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("circle", { cx: "107.511", cy: "56.0638", r: "7.02128", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("circle", { cx: "16.4252", cy: "58.1703", r: "4.21277", fill: "#3D3D4D" }), h("ellipse", { cx: "59.9573", cy: "104.511", rx: "25.2766", ry: "2.80851", fill: "#3D3D4D" }), h("path", { d: "M81.5317 18.1489H88.553L81.5317 25.1702H88.553", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M96.6807 2H106.51L96.6807 11.8298H106.51", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("p", null, translate$1('noMessages', this.language)))))), !this.isLoading && (h("div", { key: 'f1cd67f7c3d6de56531b5469c3e788b9c9d2c182', class: "Pagination" }, h("div", { key: 'd0390f412b25475603df37adf9b381e681f1dc9b', class: "Button" }, h("button", { key: '935f7d8e73a4418bf6fdb4602b1681c449cb2689', disabled: this.isNotificationsLoading || this.currentPage <= 0, onClick: this.prevPage }, h("svg", { key: 'bffd0ffe5d7cf60202c7e058912fbf38c1246cd7', class: "svg-icon", viewBox: "0 0 20 20" }, h("path", { key: 'b5f65704f71920d3290a818b5f4aece7607cb1b2', d: "M8.388,10.049l4.76-4.873c0.303-0.31,0.297-0.804-0.012-1.105c-0.309-0.304-0.803-0.293-1.105,0.012L6.726,9.516c-0.303,0.31-0.296,0.805,0.012,1.105l5.433,5.307c0.152,0.148,0.35,0.223,0.547,0.223c0.203,0,0.406-0.08,0.559-0.236c0.303-0.309,0.295-0.803-0.012-1.104L8.388,10.049z" })), translate$1('prev', this.language))), h("div", { key: '8f82ceaeaa50c9b7053a1aac2d3db813607d71ca', class: "Button" }, h("button", { key: '65638cc3b4c02637e0ee1198c7bd7b5f5168c71e', disabled: this.isNotificationsLoading || !this.hasMore, onClick: this.nextPage }, translate$1('next', this.language), h("svg", { key: '95b97901bcac88c8c4d1e449b9db87503dc1a60c', class: "svg-icon", viewBox: "0 0 20 20" }, h("path", { key: '7cfe484dfa41bced8c092dfa341a66951fc78de5', d: "M11.611,10.049l-4.76-4.873c-0.303-0.31-0.297-0.804,0.012-1.105c0.309-0.304,0.803-0.293,1.105,0.012l5.306,5.433c0.304,0.31,0.296,0.805-0.012,1.105L7.83,15.928c-0.152,0.148-0.35,0.223-0.547,0.223c-0.203,0-0.406-0.08-0.559-0.236c-0.303-0.309-0.295-0.803,0.012-1.104L11.611,10.049z" }))))))));
|
|
42928
42952
|
}
|
|
42929
42953
|
static get watchers() { return {
|
|
42930
42954
|
"unseenCount": ["unseenCountHandler"],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="s-id",u="sty-id",a="c-id",f="slot-fb{display:contents}slot-fb[hidden]{display:none}",$="undefined"!=typeof window?window:{},d=$.document||{head:{}},h={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},p=e=>Promise.resolve(e),m=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),y=!1,w=[],v=[],b=(e,t)=>n=>{e.push(n),y||(y=!0,t&&4&h.l?j(S):h.raf(S))},g=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},S=()=>{g(w),g(v),(y=w.length>0)&&h.raf(S)},j=e=>p().then(e),k=b(v,!0),O={},x=e=>"object"==(e=typeof e)||"function"===e;function E(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>M,map:()=>P,ok:()=>C,unwrap:()=>L,unwrapErr:()=>T});var C=e=>({isOk:!0,isErr:!1,value:e}),M=e=>({isOk:!1,isErr:!0,value:e});function P(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>C(e))):C(n)}if(e.isErr)return M(e.value);throw"should never get here"}var R,I,L=e=>{if(e.isOk)return e.value;throw e.value},T=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!x(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?D(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=D(e,null);return u.u=t,r.length>0&&(u.$=r),u.h=o,u},D=(e,t)=>({l:0,p:e,i:t,m:null,$:null,u:null,h:null}),F={},N=(e,t,n,l,o,s,i)=>{let r,c,u,f;if(1===s.nodeType){for(r=s.getAttribute(a),r&&(c=r.split("."),c[0]!==i&&"0"!==c[0]||(u={l:0,v:c[0],S:c[1],j:c[2],k:c[3],p:s.tagName.toLowerCase(),m:s,u:null,$:null,h:null,O:null,i:null},t.push(u),s.removeAttribute(a),e.$||(e.$=[]),e.$[u.k]=u,e=u,l&&"0"===u.j&&(l[u.k]=u.m))),f=s.childNodes.length-1;f>=0;f--)N(e,t,n,l,o,s.childNodes[f],i);if(s.shadowRoot)for(f=s.shadowRoot.childNodes.length-1;f>=0;f--)N(e,t,n,l,o,s.shadowRoot.childNodes[f],i)}else if(8===s.nodeType)c=s.nodeValue.split("."),c[1]!==i&&"0"!==c[1]||(r=c[0],u={l:0,v:c[1],S:c[2],j:c[3],k:c[4],m:s,u:null,$:null,h:null,O:null,p:null,i:null},"t"===r?(u.m=s.nextSibling,u.m&&3===u.m.nodeType&&(u.i=u.m.textContent,t.push(u),s.remove(),e.$||(e.$=[]),e.$[u.k]=u,l&&"0"===u.j&&(l[u.k]=u.m))):u.v===i&&("s"===r?(u.p="slot",s["s-sn"]=c[5]?u.O=c[5]:"",s["s-sr"]=!0,l&&(u.m=d.createElement(u.p),u.O&&u.m.setAttribute("name",u.O),s.parentNode.insertBefore(u.m,s),s.remove(),"0"===u.j&&(l[u.k]=u.m)),n.push(u),e.$||(e.$=[]),e.$[u.k]=u):"r"===r&&l&&s.remove()));else if(e&&"style"===e.p){const t=D(null,s.textContent);t.m=s,t.k="0",e.$=[t]}},U=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)U(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)U(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},W=e=>n(e).$hostElement$,H=(e,t,n)=>{const l=W(e);return{emit:e=>q(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},q=(e,t,n)=>{const l=h.ce(t,n);return e.dispatchEvent(l),l},G=new WeakMap,V=(e,t,n)=>{let l=r.get(e);m&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)},_=(e,t)=>{var n;const l=z(t),o=r.get(l);if(e=11===e.nodeType?e:d,o)if("string"==typeof o){let s,i=G.get(e=e.head||e);if(i||G.set(e,i=new Set),!i.has(l)){if(e.host&&(s=e.querySelector(`[${u}="${l}"]`)))s.innerHTML=o;else{s=d.createElement("style"),s.innerHTML=o;const t=null!=(n=h.C)?n:E(d);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=f),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l},z=e=>"sc-"+e.M,B=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),J=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=Q(n),s=Q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=x(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o($,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(X);t=t.replace(Y,""),n&&h.rel(e,t,n,o),l&&h.ael(e,t,l,o)}}},K=/\s/,Q=e=>e?e.split(K):[],X="Capture",Y=RegExp(X+"$"),Z=(e,t,n)=>{const l=11===t.m.nodeType&&t.m.host?t.m.host:t.m,o=e&&e.u||O,s=t.u||O;for(const e of ee(Object.keys(o)))e in s||J(l,e,o[e],void 0,n,t.l);for(const e of ee(Object.keys(s)))J(l,e,o[e],s[e],n,t.l)};function ee(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var te=!1,ne=(e,t,n)=>{const l=t.$[n];let o,s,i=0;if(null!==l.i)o=l.m=d.createTextNode(l.i);else{if(te||(te="svg"===l.p),o=l.m=d.createElementNS(te?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.p),te&&"foreignObject"===l.p&&(te=!1),Z(null,l,te),null!=R&&o["s-si"]!==R&&o.classList.add(o["s-si"]=R),l.$)for(i=0;i<l.$.length;++i)s=ne(e,l,i),s&&o.appendChild(s);"svg"===l.p?te=!1:"foreignObject"===o.tagName&&(te=!0)}return o["s-hn"]=I,o},le=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===I&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=ne(null,n,o),i&&(l[o].m=i,ce(r,i,t)))},oe=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.m;re(t),e&&e.remove()}}},se=(e,t,n=!1)=>e.p===t.p&&(!!n||e.h===t.h),ie=(e,t,n=!1)=>{const l=t.m=e.m,o=e.$,s=t.$,i=t.p,r=t.i;null===r?(Z(e,t,te="svg"===i||"foreignObject"!==i&&te),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,$=t[0],d=t[f],h=l.length-1,p=l[0],m=l[h];for(;r<=f&&c<=h;)if(null==$)$=t[++r];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==m)m=l[--h];else if(se($,p,o))ie($,p,o),$=t[++r],p=l[++c];else if(se(d,m,o))ie(d,m,o),d=t[--f],m=l[--h];else if(se($,m,o))ie($,m,o),ce(e,$.m,d.m.nextSibling),$=t[++r],m=l[--h];else if(se(d,p,o))ie(d,p,o),ce(e,d.m,$.m),d=t[--f],p=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].h&&t[a].h===p.h){u=a;break}u>=0?(i=t[u],i.p!==p.p?s=ne(t&&t[c],n,u):(ie(i,p,o),t[u]=void 0,s=i.m),p=l[++c]):(s=ne(t&&t[c],n,c),p=l[++c]),s&&ce($.m.parentNode,s,$.m)}r>f?le(e,null==l[h+1]?null:l[h+1].m,n,l,c,h):c>h&&oe(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),le(l,null,t,s,0,s.length-1)):null!==o&&oe(o,0,o.length-1),te&&"svg"===i&&(te=!1)):e.i!==r&&(l.data=r)},re=e=>{e.u&&e.u.ref&&e.u.ref(null),e.$&&e.$.map(re)},ce=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ue=(e,t)=>{t&&!e.P&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.P=t)))},ae=(e,t)=>{if(e.l|=16,!(4&e.l))return ue(e,e.R),k((()=>fe(e,t)));e.l|=512},fe=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.I&&(e.I.map((([e,t])=>we(n,e,t))),e.I=void 0),l=we(n,"componentWillLoad")),$e(l,(()=>he(e,n,t)))},$e=(e,t)=>de(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),de=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,he=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.L,n=e.$hostElement$,l=t.l,o=_(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);pe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>me(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},pe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.L,s=e.T||D(null,null),i=(e=>e&&e.p===F)(t)?t:A(null,null,t);if(I=l.tagName,o.A&&(i.u=i.u||{},o.A.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.p=null,i.l|=4,e.T=i,i.m=s.m=l.shadowRoot||l,R=l["s-sc"],ie(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},me=e=>{const t=e.$hostElement$,n=e.t,l=e.R;we(n,"componentDidRender"),64&e.l||(e.l|=64,ve(t),we(n,"componentDidLoad"),e.D(t),l||ye()),e.P&&(e.P(),e.P=void 0),512&e.l&&j((()=>ae(e,!1))),e.l&=-517},ye=()=>{ve(d.documentElement),j((()=>q($,"appload",{detail:{namespace:"nuts-inbox-widget"}})))},we=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ve=e=>e.classList.add("hydrated"),be=(e,t,l)=>{var o,i;const r=e.prototype;if(t.F||t.N||e.watchers){e.watchers&&!t.N&&(t.N=e.watchers);const c=Object.entries(null!=(o=t.F)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).U.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.M}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.U.get(t),u=i.l,a=i.t;if(l=((e,t)=>null==e||x(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.F[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.U.set(t,l),a)){if(o.N&&128&u){const e=o.N[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&ae(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){h.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.N)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.N)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.A)||o.push([e,s])),s}))]))}}return e},ge=e=>{we(e,"connectedCallback")},Se=e=>{if(!(1&h.l)){const t=n(e),l=t.L,o=()=>{};if(1&t.l)ke(e,t,l.W),(null==t?void 0:t.t)?ge(t.t):(null==t?void 0:t.H)&&t.H.then((()=>ge(t.t)));else{let n;if(t.l|=1,n=e.getAttribute(c),n){if(1&l.l){const t=_(e.shadowRoot,l);e.classList.remove(t+"-h",t+"-s")}((e,t,n,l)=>{const o=e.shadowRoot,s=[],i=o?[]:null,r=l.T=D(t,null);h.q||U(d.body,h.q=new Map),e[c]=n,e.removeAttribute(c),N(r,s,[],i,e,e,n),s.map((e=>{const n=e.v+"."+e.S,l=h.q.get(n),s=e.m;l&&""===l["s-en"]&&l.parentNode.insertBefore(s,l.nextSibling),o||(s["s-hn"]=t,l&&(s["s-ol"]=l,s["s-ol"]["s-nr"]=s)),h.q.delete(n)})),o&&i.map((e=>{e&&o.appendChild(e)}))})(e,l.M,n,t)}{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ue(t,t.R=n);break}}l.F&&Object.entries(l.F).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.G){const e=(e=>{const t=e.M.replace(/-/g,"_"),n=e.G;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.M}#${t.V}" was not found`);l.isProxied||(n.N=l.watchers,be(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),ge(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=z(n);if(!r.has(t)){const l=()=>{};V(t,e,!!(1&n.l)),l()}}}const o=t.R,c=()=>ae(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}},je=(e,l={})=>{var o;const s=[],i=l.exclude||[],r=$.customElements,c=d.head,a=c.querySelector("meta[charset]"),p=d.createElement("style"),m=[],y=d.querySelectorAll(`[${u}]`);let w,v=!0,b=0;for(Object.assign(h,l),h.o=new URL(l.resourcesUrl||"./",d.baseURI).href,h.l|=2;b<y.length;b++)V(y[b].getAttribute(u),B(y[b].innerHTML),!0);let g=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],M:l[1],F:l[2],W:l[3]};4&c.l&&(g=!0),c.F=l[2],c.W=l[3],c.A=[],c.N=null!=(o=l[4])?o:{};const u=c.M,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,L:n,U:new Map};l.H=new Promise((e=>l.D=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.M}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="s-id",u="sty-id",a="c-id",f="slot-fb{display:contents}slot-fb[hidden]{display:none}",$="undefined"!=typeof window?window:{},d=$.document||{head:{}},h={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},p=e=>Promise.resolve(e),m=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),y=!1,w=[],v=[],b=(e,t)=>n=>{e.push(n),y||(y=!0,t&&4&h.l?j(S):h.raf(S))},g=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},S=()=>{g(w),g(v),(y=w.length>0)&&h.raf(S)},j=e=>p().then(e),k=b(v,!0),O={},x=e=>"object"==(e=typeof e)||"function"===e;function C(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>M,map:()=>P,ok:()=>E,unwrap:()=>L,unwrapErr:()=>T});var E=e=>({isOk:!0,isErr:!1,value:e}),M=e=>({isOk:!1,isErr:!0,value:e});function P(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return M(e.value);throw"should never get here"}var R,I,L=e=>{if(e.isOk)return e.value;throw e.value},T=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!x(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?D(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=D(e,null);return u.u=t,r.length>0&&(u.$=r),u.h=o,u},D=(e,t)=>({l:0,p:e,i:t,m:null,$:null,u:null,h:null}),F={},N=(e,t,n,l,o,s,i)=>{let r,c,u,f;if(1===s.nodeType){for(r=s.getAttribute(a),r&&(c=r.split("."),c[0]!==i&&"0"!==c[0]||(u={l:0,v:c[0],S:c[1],j:c[2],k:c[3],p:s.tagName.toLowerCase(),m:s,u:null,$:null,h:null,O:null,i:null},t.push(u),s.removeAttribute(a),e.$||(e.$=[]),e.$[u.k]=u,e=u,l&&"0"===u.j&&(l[u.k]=u.m))),f=s.childNodes.length-1;f>=0;f--)N(e,t,n,l,o,s.childNodes[f],i);if(s.shadowRoot)for(f=s.shadowRoot.childNodes.length-1;f>=0;f--)N(e,t,n,l,o,s.shadowRoot.childNodes[f],i)}else if(8===s.nodeType)c=s.nodeValue.split("."),c[1]!==i&&"0"!==c[1]||(r=c[0],u={l:0,v:c[1],S:c[2],j:c[3],k:c[4],m:s,u:null,$:null,h:null,O:null,p:null,i:null},"t"===r?(u.m=s.nextSibling,u.m&&3===u.m.nodeType&&(u.i=u.m.textContent,t.push(u),s.remove(),e.$||(e.$=[]),e.$[u.k]=u,l&&"0"===u.j&&(l[u.k]=u.m))):u.v===i&&("s"===r?(u.p="slot",s["s-sn"]=c[5]?u.O=c[5]:"",s["s-sr"]=!0,l&&(u.m=d.createElement(u.p),u.O&&u.m.setAttribute("name",u.O),s.parentNode.insertBefore(u.m,s),s.remove(),"0"===u.j&&(l[u.k]=u.m)),n.push(u),e.$||(e.$=[]),e.$[u.k]=u):"r"===r&&l&&s.remove()));else if(e&&"style"===e.p){const t=D(null,s.textContent);t.m=s,t.k="0",e.$=[t]}},U=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)U(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)U(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},W=e=>n(e).$hostElement$,H=(e,t,n)=>{const l=W(e);return{emit:e=>q(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},q=(e,t,n)=>{const l=h.ce(t,n);return e.dispatchEvent(l),l},G=new WeakMap,V=(e,t,n)=>{let l=r.get(e);m&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)},_=(e,t)=>{var n;const l=z(t),o=r.get(l);if(e=11===e.nodeType?e:d,o)if("string"==typeof o){let s,i=G.get(e=e.head||e);if(i||G.set(e,i=new Set),!i.has(l)){if(e.host&&(s=e.querySelector(`[${u}="${l}"]`)))s.innerHTML=o;else{s=d.createElement("style"),s.innerHTML=o;const t=null!=(n=h.C)?n:C(d);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=f),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l},z=e=>"sc-"+e.M,B=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),J=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=Q(n),s=Q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=x(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o($,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(X);t=t.replace(Y,""),n&&h.rel(e,t,n,o),l&&h.ael(e,t,l,o)}}},K=/\s/,Q=e=>e?e.split(K):[],X="Capture",Y=RegExp(X+"$"),Z=(e,t,n)=>{const l=11===t.m.nodeType&&t.m.host?t.m.host:t.m,o=e&&e.u||O,s=t.u||O;for(const e of ee(Object.keys(o)))e in s||J(l,e,o[e],void 0,n,t.l);for(const e of ee(Object.keys(s)))J(l,e,o[e],s[e],n,t.l)};function ee(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var te=!1,ne=(e,t,n)=>{const l=t.$[n];let o,s,i=0;if(null!==l.i)o=l.m=d.createTextNode(l.i);else{if(te||(te="svg"===l.p),o=l.m=d.createElementNS(te?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.p),te&&"foreignObject"===l.p&&(te=!1),Z(null,l,te),null!=R&&o["s-si"]!==R&&o.classList.add(o["s-si"]=R),l.$)for(i=0;i<l.$.length;++i)s=ne(e,l,i),s&&o.appendChild(s);"svg"===l.p?te=!1:"foreignObject"===o.tagName&&(te=!0)}return o["s-hn"]=I,o},le=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===I&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=ne(null,n,o),i&&(l[o].m=i,ce(r,i,t)))},oe=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.m;re(t),e&&e.remove()}}},se=(e,t,n=!1)=>e.p===t.p&&(!!n||e.h===t.h),ie=(e,t,n=!1)=>{const l=t.m=e.m,o=e.$,s=t.$,i=t.p,r=t.i;null===r?(Z(e,t,te="svg"===i||"foreignObject"!==i&&te),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,$=t[0],d=t[f],h=l.length-1,p=l[0],m=l[h];for(;r<=f&&c<=h;)if(null==$)$=t[++r];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==m)m=l[--h];else if(se($,p,o))ie($,p,o),$=t[++r],p=l[++c];else if(se(d,m,o))ie(d,m,o),d=t[--f],m=l[--h];else if(se($,m,o))ie($,m,o),ce(e,$.m,d.m.nextSibling),$=t[++r],m=l[--h];else if(se(d,p,o))ie(d,p,o),ce(e,d.m,$.m),d=t[--f],p=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].h&&t[a].h===p.h){u=a;break}u>=0?(i=t[u],i.p!==p.p?s=ne(t&&t[c],n,u):(ie(i,p,o),t[u]=void 0,s=i.m),p=l[++c]):(s=ne(t&&t[c],n,c),p=l[++c]),s&&ce($.m.parentNode,s,$.m)}r>f?le(e,null==l[h+1]?null:l[h+1].m,n,l,c,h):c>h&&oe(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),le(l,null,t,s,0,s.length-1)):null!==o&&oe(o,0,o.length-1),te&&"svg"===i&&(te=!1)):e.i!==r&&(l.data=r)},re=e=>{e.u&&e.u.ref&&e.u.ref(null),e.$&&e.$.map(re)},ce=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ue=(e,t)=>{t&&!e.P&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.P=t)))},ae=(e,t)=>{if(e.l|=16,!(4&e.l))return ue(e,e.R),k((()=>fe(e,t)));e.l|=512},fe=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.I&&(e.I.map((([e,t])=>we(n,e,t))),e.I=void 0),l=we(n,"componentWillLoad")),$e(l,(()=>he(e,n,t)))},$e=(e,t)=>de(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),de=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,he=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.L,n=e.$hostElement$,l=t.l,o=_(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);pe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>me(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},pe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.L,s=e.T||D(null,null),i=(e=>e&&e.p===F)(t)?t:A(null,null,t);if(I=l.tagName,o.A&&(i.u=i.u||{},o.A.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.p=null,i.l|=4,e.T=i,i.m=s.m=l.shadowRoot||l,R=l["s-sc"],ie(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},me=e=>{const t=e.$hostElement$,n=e.t,l=e.R;we(n,"componentDidRender"),64&e.l||(e.l|=64,ve(t),we(n,"componentDidLoad"),e.D(t),l||ye()),e.P&&(e.P(),e.P=void 0),512&e.l&&j((()=>ae(e,!1))),e.l&=-517},ye=()=>{ve(d.documentElement),j((()=>q($,"appload",{detail:{namespace:"nuts-inbox-widget"}})))},we=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ve=e=>e.classList.add("hydrated"),be=(e,t,l)=>{var o,i;const r=e.prototype;if(t.F||t.N||e.watchers){e.watchers&&!t.N&&(t.N=e.watchers);const c=Object.entries(null!=(o=t.F)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).U.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.M}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.U.get(t),u=i.l,a=i.t;if(l=((e,t)=>null==e||x(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.F[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.U.set(t,l),a)){if(o.N&&128&u){const e=o.N[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&ae(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){h.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.N)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.N)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.A)||o.push([e,s])),s}))]))}}return e},ge=e=>{we(e,"connectedCallback")},Se=e=>{if(!(1&h.l)){const t=n(e),l=t.L,o=()=>{};if(1&t.l)Oe(e,t,l.W),(null==t?void 0:t.t)?ge(t.t):(null==t?void 0:t.H)&&t.H.then((()=>ge(t.t)));else{let n;if(t.l|=1,n=e.getAttribute(c),n){if(1&l.l){const t=_(e.shadowRoot,l);e.classList.remove(t+"-h",t+"-s")}((e,t,n,l)=>{const o=e.shadowRoot,s=[],i=o?[]:null,r=l.T=D(t,null);h.q||U(d.body,h.q=new Map),e[c]=n,e.removeAttribute(c),N(r,s,[],i,e,e,n),s.map((e=>{const n=e.v+"."+e.S,l=h.q.get(n),s=e.m;l&&""===l["s-en"]&&l.parentNode.insertBefore(s,l.nextSibling),o||(s["s-hn"]=t,l&&(s["s-ol"]=l,s["s-ol"]["s-nr"]=s)),h.q.delete(n)})),o&&i.map((e=>{e&&o.appendChild(e)}))})(e,l.M,n,t)}{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ue(t,t.R=n);break}}l.F&&Object.entries(l.F).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.G){const e=(e=>{const t=e.M.replace(/-/g,"_"),n=e.G;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.M}#${t.V}" was not found`);l.isProxied||(n.N=l.watchers,be(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),ge(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=z(n);if(!r.has(t)){const l=()=>{};V(t,e,!!(1&n.l)),l()}}}const o=t.R,c=()=>ae(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}},je=e=>{we(e,"disconnectedCallback")},ke=(e,l={})=>{var o;const s=[],i=l.exclude||[],r=$.customElements,c=d.head,a=c.querySelector("meta[charset]"),p=d.createElement("style"),m=[],y=d.querySelectorAll(`[${u}]`);let w,v=!0,b=0;for(Object.assign(h,l),h.o=new URL(l.resourcesUrl||"./",d.baseURI).href,h.l|=2;b<y.length;b++)V(y[b].getAttribute(u),B(y[b].innerHTML),!0);let g=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],M:l[1],F:l[2],W:l[3]};4&c.l&&(g=!0),c.F=l[2],c.W=l[3],c.A=[],c.N=null!=(o=l[4])?o:{};const u=c.M,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,L:n,U:new Map};l.H=new Promise((e=>l.D=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.M}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Oe(this,e,c.W)),w&&(clearTimeout(w),w=null),v?m.push(this):h.jmp((()=>Se(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.l)){const e=n(this);e._&&(e._.map((e=>e())),e._=void 0),(null==e?void 0:e.t)?je(e.t):(null==e?void 0:e.H)&&e.H.then((()=>je(e.t)))}})()))}componentOnReady(){return n(this).H}};c.G=e[0],i.includes(u)||r.get(u)||(s.push(u),r.define(u,be(a,c,1)))}))})),s.length>0&&(g&&(p.textContent+=f),p.textContent+=s.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",p.innerHTML.length)){p.setAttribute("data-styles","");const e=null!=(o=h.C)?o:C(d);null!=e&&p.setAttribute("nonce",e),c.insertBefore(p,a?a.nextSibling:c.firstChild)}v=!1,m.length?m.map((e=>e.connectedCallback())):h.jmp((()=>w=setTimeout(ye,30)))},Oe=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=Ce(e,n),i=xe(t,o),r=Ee(n);h.ael(s,l,i,r),(t._=t._||[]).push((()=>h.rel(s,l,i,r)))}))},xe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.I=e.I||[]).push([t,n])}catch(e){s(e)}},Ce=(e,t)=>8&t?$:e,Ee=e=>({passive:!!(1&e),capture:!!(2&e)}),Me=e=>h.C=e;export{ke as b,H as c,W as g,A as h,p,l as r,Me as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,b as e}from"./index-
|
|
1
|
+
import{p as n,b as e}from"./index-2eda31b2.js";export{s as setNonce}from"./index-2eda31b2.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),n(i)})().then((async n=>(await i(),e([["nuts-inbox-widget_3",[[1,"nuts-inbox-widget",{backendUrl:[513,"backend-url"],socketUrl:[513,"socket-url"],userId:[513,"user-id"],sessionId:[513,"session-id"],operatorId:[513,"operator-id"],subscriberId:[513,"subscriber-id"],deviceId:[513,"device-id"],language:[513],environment:[513],applicationIdentifier:[513,"application-identifier"],clientStyling:[1537,"client-styling"],clientStylingUrl:[513,"client-styling-url"],bellIconPosition:[513,"bell-icon-position"],notificationAction:[513,"notification-action"],translationUrl:[513,"translation-url"],isLoading:[32],popoverVisible:[32],unseenCount:[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"],[8,"closePopover","closePopoverHandler"]],{subscriberId:["initializeHandler"],operatorId:["initializeHandler"],applicationIdentifier:["initializeHandler"],deviceId:["initializeHandler"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}],[0,"nuts-popover",{language:[513],userId:[513,"user-id"],operatorId:[513,"operator-id"],token:[513],sessionId:[513,"session-id"],backendUrl:[513,"backend-url"],unseenCount:[514,"unseen-count"],clientStylingUrl:[513,"client-styling-url"],notificationAction:[513,"notification-action"],clientStyling:[1537,"client-styling"],translationUrl:[513,"translation-url"],notifications:[32],isLoading:[32],isNotificationsLoading:[32],showMarkAll:[32],limitStylingAppends:[32],showDeleteAllPopup:[32],hasMore:[32],currentPage:[32]},[[8,"messageDeleted","messageDeletedHandler"],[8,"messageRead","messageReadHandler"],[8,"click","clickOutsideHandle"]],{unseenCount:["unseenCountHandler"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}],[0,"nuts-notification",{badge:[513],content:[513],date:[513],showSettings:[516,"show-settings"],read:[516],seen:[516],language:[513],sessionId:[513,"session-id"],subscriberId:[513,"subscriber-id"],userId:[513,"user-id"],messageId:[513,"message-id"],operatorId:[513,"operator-id"],token:[513],backendUrl:[513,"backend-url"],redirectUrl:[513,"redirect-url"],notificationAction:[513,"notification-action"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],clientStyling:[1537,"client-styling"],maxTextLength:[514,"max-text-length"],maxLines:[514,"max-lines"],showSettingsModal:[32],messageSeen:[32],messageRead:[32],displayedContent:[32],limitStylingAppends:[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"],[8,"click","clickOutsideHandle"]],{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],translationUrl:["handleNewTranslations"]}]]]],n))));
|