@everymatrix/nuts-inbox-widget 1.48.1 → 1.48.2
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/loader.cjs.js +1 -1
- package/dist/cjs/nuts-inbox-widget.cjs.js +1 -1
- package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +70 -5
- package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +30 -2
- package/dist/collection/components/nuts-notification/nuts-notification.js +30 -3
- package/dist/collection/components/nuts-popover/nuts-popover.js +30 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nuts-inbox-widget.js +1 -1
- package/dist/esm/nuts-inbox-widget_3.entry.js +70 -5
- package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -1
- package/dist/nuts-inbox-widget/p-9326aa64.entry.js +1 -0
- package/dist/types/components/nuts-inbox-widget/nuts-inbox-widget.d.ts +3 -0
- package/dist/types/components/nuts-notification/nuts-notification.d.ts +4 -0
- package/dist/types/components/nuts-popover/nuts-popover.d.ts +4 -0
- package/package.json +1 -1
- package/dist/nuts-inbox-widget/p-910cb7ba.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["nuts-inbox-widget_3.cjs",[[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"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"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],"showMarkAll":[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{"unseenCount":["unseenCountHandler"],"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"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["nuts-inbox-widget_3.cjs",[[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],"limitStylingAppends":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"]],{"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],"showMarkAll":[32],"limitStylingAppends":[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{"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"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["nuts-inbox-widget_3.cjs",[[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"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"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],"showMarkAll":[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{"unseenCount":["unseenCountHandler"],"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"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["nuts-inbox-widget_3.cjs",[[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],"limitStylingAppends":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"]],{"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],"showMarkAll":[32],"limitStylingAppends":[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{"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"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -4292,6 +4292,7 @@ const NutsInboxWidget = class {
|
|
|
4292
4292
|
this.isLoading = false;
|
|
4293
4293
|
this.popoverVisible = false;
|
|
4294
4294
|
this.unseenCount = undefined;
|
|
4295
|
+
this.limitStylingAppends = false;
|
|
4295
4296
|
}
|
|
4296
4297
|
initializeHandler(newValue, oldValue) {
|
|
4297
4298
|
if (newValue !== oldValue) {
|
|
@@ -4370,6 +4371,14 @@ const NutsInboxWidget = class {
|
|
|
4370
4371
|
this.setClientStylingURL();
|
|
4371
4372
|
}
|
|
4372
4373
|
}
|
|
4374
|
+
handleStylingChange(newValue, oldValue) {
|
|
4375
|
+
if (newValue !== oldValue)
|
|
4376
|
+
this.setClientStyling();
|
|
4377
|
+
}
|
|
4378
|
+
handleStylingUrlChange(newValue, oldValue) {
|
|
4379
|
+
if (newValue !== oldValue)
|
|
4380
|
+
this.setClientStylingURL();
|
|
4381
|
+
}
|
|
4373
4382
|
handleNewTranslations() {
|
|
4374
4383
|
this.isLoading = true;
|
|
4375
4384
|
getTranslations(this.translationUrl).then(() => {
|
|
@@ -4382,19 +4391,31 @@ const NutsInboxWidget = class {
|
|
|
4382
4391
|
}
|
|
4383
4392
|
}
|
|
4384
4393
|
componentDidRender() {
|
|
4394
|
+
// start custom styling area
|
|
4395
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
4396
|
+
if (this.clientStyling)
|
|
4397
|
+
this.setClientStyling();
|
|
4398
|
+
if (this.clientStylingUrl)
|
|
4399
|
+
this.setClientStylingURL();
|
|
4400
|
+
this.limitStylingAppends = true;
|
|
4401
|
+
}
|
|
4402
|
+
// end custom styling area
|
|
4385
4403
|
this.positionIcon();
|
|
4386
4404
|
}
|
|
4387
4405
|
renderBellIcon() {
|
|
4388
4406
|
return (index.h("div", { onClick: this.togglePopover, class: "BellIcon" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "currentColor", class: "bi bi-bell", viewBox: "0 0 16 16" }, ' ', index.h("path", { d: "M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z" }), ' '), this.unseenCount > 0 ? (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: "nc-bell-button-dot css-0 css-1eg2znq" }, index.h("rect", { x: "1.5", y: "1.5", width: "13", height: "13", rx: "6.5", fill: "url(#paint0_linear_1722_2699)", stroke: "#1E1E26", "stroke-width": "3" }), index.h("defs", null, index.h("linearGradient", { id: "paint0_linear_1722_2699", x1: "8", y1: "13", x2: "8", y2: "3", gradientUnits: "userSpaceOnUse" }, index.h("stop", { "stop-color": "#FF512F" }), index.h("stop", { offset: "1", "stop-color": "#DD2476" }))))) : ('')));
|
|
4389
4407
|
}
|
|
4390
4408
|
render() {
|
|
4391
|
-
return (index.h("div", { key: '
|
|
4409
|
+
return (index.h("div", { key: '0e8cf6021dfd192f4c978bd976afa999eb074e87', ref: this.assignRefToStylingContainer, class: "Wrapper" }, index.h("div", { key: '9d3e3b45df7fa2be2450b121a24423e026a1c8de', ref: this.assignRefToBell, class: "BellIconWrapper" }, !this.isLoading && this.renderBellIcon()), this.popoverVisible && (index.h("nuts-popover", { key: '8b9f149da25f261cdd5c7fb5d794301837bc31ee', "notification-action": this.notificationAction, sessionId: this.sessionId, "unseen-count": this.unseenCount, token: this.token, "backend-url": this.backendUrl, "operator-id": this.operatorId, "user-id": this.userId, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }))));
|
|
4392
4410
|
}
|
|
4393
4411
|
get el() { return index.getElement(this); }
|
|
4394
4412
|
static get watchers() { return {
|
|
4395
4413
|
"subscriberId": ["initializeHandler"],
|
|
4396
4414
|
"operatorId": ["initializeHandler"],
|
|
4397
4415
|
"applicationIdentifier": ["initializeHandler"],
|
|
4416
|
+
"deviceId": ["initializeHandler"],
|
|
4417
|
+
"clientStyling": ["handleStylingChange"],
|
|
4418
|
+
"clientStylingUrl": ["handleStylingUrlChange"],
|
|
4398
4419
|
"translationUrl": ["handleNewTranslations"]
|
|
4399
4420
|
}; }
|
|
4400
4421
|
};
|
|
@@ -40779,6 +40800,7 @@ const NutsNotification = class {
|
|
|
40779
40800
|
this.messageSeen = false;
|
|
40780
40801
|
this.messageRead = false;
|
|
40781
40802
|
this.displayedContent = undefined;
|
|
40803
|
+
this.limitStylingAppends = false;
|
|
40782
40804
|
}
|
|
40783
40805
|
allNotificationsReadHandler() {
|
|
40784
40806
|
this.messageSeen = true;
|
|
@@ -40789,9 +40811,28 @@ const NutsNotification = class {
|
|
|
40789
40811
|
this.showSettingsModal = false;
|
|
40790
40812
|
}
|
|
40791
40813
|
}
|
|
40814
|
+
handleStylingChange(newValue, oldValue) {
|
|
40815
|
+
if (newValue !== oldValue)
|
|
40816
|
+
this.setClientStyling();
|
|
40817
|
+
}
|
|
40818
|
+
handleStylingUrlChange(newValue, oldValue) {
|
|
40819
|
+
if (newValue !== oldValue)
|
|
40820
|
+
this.setClientStylingURL();
|
|
40821
|
+
}
|
|
40792
40822
|
handleNewTranslations() {
|
|
40793
40823
|
getTranslations(this.translationUrl);
|
|
40794
40824
|
}
|
|
40825
|
+
componentDidRender() {
|
|
40826
|
+
// start custom styling area
|
|
40827
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
40828
|
+
if (this.clientStyling)
|
|
40829
|
+
this.setClientStyling();
|
|
40830
|
+
if (this.clientStylingUrl)
|
|
40831
|
+
this.setClientStylingURL();
|
|
40832
|
+
this.limitStylingAppends = true;
|
|
40833
|
+
}
|
|
40834
|
+
// end custom styling area
|
|
40835
|
+
}
|
|
40795
40836
|
async componentWillLoad() {
|
|
40796
40837
|
if (this.translationUrl.length > 2) {
|
|
40797
40838
|
await getTranslations(this.translationUrl);
|
|
@@ -40805,12 +40846,14 @@ const NutsNotification = class {
|
|
|
40805
40846
|
}
|
|
40806
40847
|
render() {
|
|
40807
40848
|
var _a, _b;
|
|
40808
|
-
return (index.h("div", { key: '
|
|
40849
|
+
return (index.h("div", { key: '66a913d1f50593857820429c9bef53b8cbeedaa3', class: "Wrapper" }, index.h("div", { key: 'b1aac51872ee099e666c38ac69bac6415be551e5', class: 'NotificationContainer' + (this.messageSeen ? '' : ' Unseen'), ref: this.assignRefToStylingContainer, onClick: this.notificationActionHandler }, this.badge ? (index.h("div", { class: "AvatarContainer" }, index.h("div", { class: "Avatar" }, ((_a = systemIcons[this.badge]) === null || _a === void 0 ? void 0 : _a.icon) ? (index.h("div", { innerHTML: systemIcons[this.badge].icon })) : (index.h("img", { class: "AvatarImage", src: this.badge }))))) : (''), index.h("div", { key: '7f7eda2236d90fe1fa8cf992106944e975a1ccb1', class: "ContentContainer" }, index.h("p", { key: '3069b2d25cf00544ba78ae15313085d3be9d4e94' }, this.displayedContent), index.h("p", { key: 'ac3a2862d67d0f93df722d3d459de8ada63014d7', class: "Date" }, formatDistanceToNow(new Date(this.date), {
|
|
40809
40850
|
addSuffix: true,
|
|
40810
40851
|
locale: dateFnsLocale(this.language),
|
|
40811
|
-
}))), index.h("div", { key: '
|
|
40852
|
+
}))), index.h("div", { key: '872eccd47c10471e57e6e8993db46c5040166e7d', class: "RightActionsContainer" }, index.h("div", { key: '1b74b93ca8a0f4bb8aa57093bcc382619835bfc1', class: "Settings", onClick: this.toggleSettingsModal }, index.h("svg", { key: 'b527fd4a46eb215b316c3ca547008ae822da3565', width: "24", height: "24", viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '0c0d5add8794eef893193883a743854a57bcdf61', d: "M20.625 15.5C20.625 16.5547 21.4453 17.375 22.5 17.375C23.5156 17.375 24.375 16.5547 24.375 15.5C24.375 14.4844 23.5156 13.625 22.5 13.625C21.4453 13.625 20.625 14.4844 20.625 15.5ZM9.375 15.5C9.375 14.4844 8.51562 13.625 7.5 13.625C6.44531 13.625 5.625 14.4844 5.625 15.5C5.625 16.5547 6.44531 17.375 7.5 17.375C8.51562 17.375 9.375 16.5547 9.375 15.5ZM16.875 15.5C16.875 14.4844 16.0156 13.625 15 13.625C13.9453 13.625 13.125 14.4844 13.125 15.5C13.125 16.5547 13.9453 17.375 15 17.375C16.0156 17.375 16.875 16.5547 16.875 15.5Z", fill: "currentColor" }))), ((_b = this.content) === null || _b === void 0 ? void 0 : _b.length) > MAX_NOTIFICATION_TEXT_LENGTH && (index.h("div", { key: 'e33a4e8cf50ea591e22d1dd40d9438a3406c71e7', class: "AccordionArrow", innerHTML: systemIcons.arrowDown.icon, ref: this.assignRefToDropdownArrow })))), this.showSettingsModal ? (index.h("div", { class: "SettingsDropdown" }, index.h("button", { onClick: this.toggleNotificationRead }, index.h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M14.9434 5.17969C14.2109 4.59375 13.625 4.125 10.1387 1.60547C9.64062 1.25391 8.67383 0.375 8 0.375V0.404297C7.9707 0.404297 7.9707 0.375 7.9707 0.375C7.29688 0.375 6.33008 1.25391 5.83203 1.60547C2.3457 4.125 1.75977 4.59375 1.02734 5.17969C0.675781 5.44336 0.5 5.85352 0.5 6.26367V13.9688C0.5 14.7598 1.11523 15.375 1.90625 15.375H14.0938C14.8555 15.375 15.5 14.7598 15.5 13.9688V6.26367C15.5 5.85352 15.2949 5.44336 14.9434 5.17969ZM9.37695 11.1562C8.9668 11.4785 8.46875 11.6543 8 11.6543C7.50195 11.6543 7.00391 11.4785 6.59375 11.1562L2.375 7.8457V6.49805C2.99023 6 3.72266 5.44336 6.94531 3.12891C7.0332 3.04102 7.15039 2.95312 7.26758 2.86523C7.41406 2.74805 7.73633 2.48438 8 2.33789C8.23438 2.48438 8.55664 2.74805 8.70312 2.86523C8.82031 2.95312 8.9375 3.04102 9.02539 3.12891C12.2188 5.44336 12.9805 6 13.625 6.49805V7.8457L9.37695 11.1562Z", fill: "currentColor" })), translate$1(this.messageRead ? 'markAsUnread' : 'markAsRead', this.language)), index.h("button", { onClick: this.deleteNotification }, index.h("svg", { width: "16", height: "16", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { 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" })), translate$1('removeMessage', this.language)))) : ('')));
|
|
40812
40853
|
}
|
|
40813
40854
|
static get watchers() { return {
|
|
40855
|
+
"clientStyling": ["handleStylingChange"],
|
|
40856
|
+
"clientStylingUrl": ["handleStylingUrlChange"],
|
|
40814
40857
|
"translationUrl": ["handleNewTranslations"]
|
|
40815
40858
|
}; }
|
|
40816
40859
|
};
|
|
@@ -40892,6 +40935,7 @@ const NutsPopover = class {
|
|
|
40892
40935
|
this.notifications = undefined;
|
|
40893
40936
|
this.isLoading = true;
|
|
40894
40937
|
this.showMarkAll = false;
|
|
40938
|
+
this.limitStylingAppends = false;
|
|
40895
40939
|
}
|
|
40896
40940
|
messageDeteledHandler(event) {
|
|
40897
40941
|
this.notifications = this.notifications.filter((item) => {
|
|
@@ -40918,6 +40962,14 @@ const NutsPopover = class {
|
|
|
40918
40962
|
this.showMarkAll = true;
|
|
40919
40963
|
}
|
|
40920
40964
|
}
|
|
40965
|
+
handleStylingChange(newValue, oldValue) {
|
|
40966
|
+
if (newValue !== oldValue)
|
|
40967
|
+
this.setClientStyling();
|
|
40968
|
+
}
|
|
40969
|
+
handleStylingUrlChange(newValue, oldValue) {
|
|
40970
|
+
if (newValue !== oldValue)
|
|
40971
|
+
this.setClientStylingURL();
|
|
40972
|
+
}
|
|
40921
40973
|
handleNewTranslations() {
|
|
40922
40974
|
this.isLoading = true;
|
|
40923
40975
|
getTranslations(this.translationUrl).then(() => {
|
|
@@ -40929,6 +40981,17 @@ const NutsPopover = class {
|
|
|
40929
40981
|
await getTranslations(this.translationUrl);
|
|
40930
40982
|
}
|
|
40931
40983
|
}
|
|
40984
|
+
componentDidRender() {
|
|
40985
|
+
// start custom styling area
|
|
40986
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
40987
|
+
if (this.clientStyling)
|
|
40988
|
+
this.setClientStyling();
|
|
40989
|
+
if (this.clientStylingUrl)
|
|
40990
|
+
this.setClientStylingURL();
|
|
40991
|
+
this.limitStylingAppends = true;
|
|
40992
|
+
}
|
|
40993
|
+
// end custom styling area
|
|
40994
|
+
}
|
|
40932
40995
|
connectedCallback() {
|
|
40933
40996
|
this.baseUrl = `${this.backendUrl}/v1/${this.operatorId}`;
|
|
40934
40997
|
getNotifications({
|
|
@@ -40941,15 +41004,17 @@ const NutsPopover = class {
|
|
|
40941
41004
|
}
|
|
40942
41005
|
}
|
|
40943
41006
|
render() {
|
|
40944
|
-
return (index.h("div", { key: '
|
|
41007
|
+
return (index.h("div", { key: 'd4a40cfac705ecb065f4d86c0b66469cd65d58c7', class: "Popover", ref: this.assignRefToStylingContainer }, index.h("div", { key: 'df10296eb110acf6b29fba3029e128401f39dd13', class: "Header" }, index.h("div", { key: '5abdf8beea99b42594d11c74fed1381f7c3fb848', class: "Title" }, translate$1('notifications', this.language), this.unseenCount > 0 ? (index.h("div", { class: "UnseenCounter" }, this.unseenCount)) : ('')), this.showMarkAll ? (index.h("div", { class: "MarkAsRead", onClick: this.markAllNotificationsAsRead }, translate$1('markAllAsRead', this.language))) : ('')), index.h("div", { key: 'a519422b104858e947cc740837571645e3d1ec4c', class: "NotificationList" }, !this.isLoading &&
|
|
40945
41008
|
(this.notifications.length > 0 ? (this.notifications.map((item) => {
|
|
40946
41009
|
var _a;
|
|
40947
|
-
return (index.h("nuts-notification", { "client-styling": this.clientStyling, key: item.id, "user-id": this.userId, "operator-id": this.operatorId, content: item.content, "message-id": item.id, badge: ((_a = item.actor) === null || _a === void 0 ? void 0 : _a.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 }));
|
|
41010
|
+
return (index.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.actor) === null || _a === void 0 ? void 0 : _a.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 }));
|
|
40948
41011
|
})) : (index.h("div", { class: "NoMessages" }, index.h("svg", { width: "120", height: "108", viewBox: "0 0 120 108", fill: "none" }, index.h("circle", { cx: "11.3191", cy: "30.7872", r: "6.31915", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.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" }), index.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" }), index.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" }), index.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" }), index.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" }), index.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" }), index.h("circle", { cx: "107.511", cy: "56.0638", r: "7.02128", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("circle", { cx: "16.4252", cy: "58.1703", r: "4.21277", fill: "#3D3D4D" }), index.h("ellipse", { cx: "59.9573", cy: "104.511", rx: "25.2766", ry: "2.80851", fill: "#3D3D4D" }), index.h("path", { d: "M81.5317 18.1489H88.553L81.5317 25.1702H88.553", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M96.6807 2H106.51L96.6807 11.8298H106.51", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), index.h("p", null, translate$1('noMessages', this.language)))))), !this.isLoading &&
|
|
40949
41012
|
(this.notifications.length >= 10 || this.currentPage !== 0) ? (index.h("div", { class: "Pagination" }, index.h("div", { class: "Button" }, index.h("button", { disabled: this.currentPage <= 0, onClick: this.prevPage }, index.h("svg", { class: "svg-icon", viewBox: "0 0 20 20" }, index.h("path", { 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))), index.h("div", { class: "Button" }, index.h("button", { disabled: this.notifications.length < 10, onClick: this.nextPage }, translate$1('next', this.language), index.h("svg", { class: "svg-icon", viewBox: "0 0 20 20" }, index.h("path", { 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" })))))) : ('')));
|
|
40950
41013
|
}
|
|
40951
41014
|
static get watchers() { return {
|
|
40952
41015
|
"unseenCount": ["unseenCountHandler"],
|
|
41016
|
+
"clientStyling": ["handleStylingChange"],
|
|
41017
|
+
"clientStylingUrl": ["handleStylingUrlChange"],
|
|
40953
41018
|
"translationUrl": ["handleNewTranslations"]
|
|
40954
41019
|
}; }
|
|
40955
41020
|
};
|
|
@@ -62,6 +62,7 @@ export class NutsInboxWidget {
|
|
|
62
62
|
this.isLoading = false;
|
|
63
63
|
this.popoverVisible = false;
|
|
64
64
|
this.unseenCount = undefined;
|
|
65
|
+
this.limitStylingAppends = false;
|
|
65
66
|
}
|
|
66
67
|
initializeHandler(newValue, oldValue) {
|
|
67
68
|
if (newValue !== oldValue) {
|
|
@@ -140,6 +141,14 @@ export class NutsInboxWidget {
|
|
|
140
141
|
this.setClientStylingURL();
|
|
141
142
|
}
|
|
142
143
|
}
|
|
144
|
+
handleStylingChange(newValue, oldValue) {
|
|
145
|
+
if (newValue !== oldValue)
|
|
146
|
+
this.setClientStyling();
|
|
147
|
+
}
|
|
148
|
+
handleStylingUrlChange(newValue, oldValue) {
|
|
149
|
+
if (newValue !== oldValue)
|
|
150
|
+
this.setClientStylingURL();
|
|
151
|
+
}
|
|
143
152
|
handleNewTranslations() {
|
|
144
153
|
this.isLoading = true;
|
|
145
154
|
getTranslations(this.translationUrl).then(() => {
|
|
@@ -152,13 +161,22 @@ export class NutsInboxWidget {
|
|
|
152
161
|
}
|
|
153
162
|
}
|
|
154
163
|
componentDidRender() {
|
|
164
|
+
// start custom styling area
|
|
165
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
166
|
+
if (this.clientStyling)
|
|
167
|
+
this.setClientStyling();
|
|
168
|
+
if (this.clientStylingUrl)
|
|
169
|
+
this.setClientStylingURL();
|
|
170
|
+
this.limitStylingAppends = true;
|
|
171
|
+
}
|
|
172
|
+
// end custom styling area
|
|
155
173
|
this.positionIcon();
|
|
156
174
|
}
|
|
157
175
|
renderBellIcon() {
|
|
158
176
|
return (h("div", { onClick: this.togglePopover, class: "BellIcon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "currentColor", class: "bi bi-bell", viewBox: "0 0 16 16" }, ' ', h("path", { d: "M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z" }), ' '), this.unseenCount > 0 ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: "nc-bell-button-dot css-0 css-1eg2znq" }, h("rect", { x: "1.5", y: "1.5", width: "13", height: "13", rx: "6.5", fill: "url(#paint0_linear_1722_2699)", stroke: "#1E1E26", "stroke-width": "3" }), h("defs", null, h("linearGradient", { id: "paint0_linear_1722_2699", x1: "8", y1: "13", x2: "8", y2: "3", gradientUnits: "userSpaceOnUse" }, h("stop", { "stop-color": "#FF512F" }), h("stop", { offset: "1", "stop-color": "#DD2476" }))))) : ('')));
|
|
159
177
|
}
|
|
160
178
|
render() {
|
|
161
|
-
return (h("div", { key: '
|
|
179
|
+
return (h("div", { key: '0e8cf6021dfd192f4c978bd976afa999eb074e87', ref: this.assignRefToStylingContainer, class: "Wrapper" }, h("div", { key: '9d3e3b45df7fa2be2450b121a24423e026a1c8de', ref: this.assignRefToBell, class: "BellIconWrapper" }, !this.isLoading && this.renderBellIcon()), this.popoverVisible && (h("nuts-popover", { key: '8b9f149da25f261cdd5c7fb5d794301837bc31ee', "notification-action": this.notificationAction, sessionId: this.sessionId, "unseen-count": this.unseenCount, token: this.token, "backend-url": this.backendUrl, "operator-id": this.operatorId, "user-id": this.userId, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }))));
|
|
162
180
|
}
|
|
163
181
|
static get is() { return "nuts-inbox-widget"; }
|
|
164
182
|
static get encapsulation() { return "shadow"; }
|
|
@@ -441,7 +459,8 @@ export class NutsInboxWidget {
|
|
|
441
459
|
return {
|
|
442
460
|
"isLoading": {},
|
|
443
461
|
"popoverVisible": {},
|
|
444
|
-
"unseenCount": {}
|
|
462
|
+
"unseenCount": {},
|
|
463
|
+
"limitStylingAppends": {}
|
|
445
464
|
};
|
|
446
465
|
}
|
|
447
466
|
static get events() {
|
|
@@ -494,6 +513,15 @@ export class NutsInboxWidget {
|
|
|
494
513
|
}, {
|
|
495
514
|
"propName": "applicationIdentifier",
|
|
496
515
|
"methodName": "initializeHandler"
|
|
516
|
+
}, {
|
|
517
|
+
"propName": "deviceId",
|
|
518
|
+
"methodName": "initializeHandler"
|
|
519
|
+
}, {
|
|
520
|
+
"propName": "clientStyling",
|
|
521
|
+
"methodName": "handleStylingChange"
|
|
522
|
+
}, {
|
|
523
|
+
"propName": "clientStylingUrl",
|
|
524
|
+
"methodName": "handleStylingUrlChange"
|
|
497
525
|
}, {
|
|
498
526
|
"propName": "translationUrl",
|
|
499
527
|
"methodName": "handleNewTranslations"
|
|
@@ -160,6 +160,7 @@ export class NutsNotification {
|
|
|
160
160
|
this.messageSeen = false;
|
|
161
161
|
this.messageRead = false;
|
|
162
162
|
this.displayedContent = undefined;
|
|
163
|
+
this.limitStylingAppends = false;
|
|
163
164
|
}
|
|
164
165
|
allNotificationsReadHandler() {
|
|
165
166
|
this.messageSeen = true;
|
|
@@ -170,9 +171,28 @@ export class NutsNotification {
|
|
|
170
171
|
this.showSettingsModal = false;
|
|
171
172
|
}
|
|
172
173
|
}
|
|
174
|
+
handleStylingChange(newValue, oldValue) {
|
|
175
|
+
if (newValue !== oldValue)
|
|
176
|
+
this.setClientStyling();
|
|
177
|
+
}
|
|
178
|
+
handleStylingUrlChange(newValue, oldValue) {
|
|
179
|
+
if (newValue !== oldValue)
|
|
180
|
+
this.setClientStylingURL();
|
|
181
|
+
}
|
|
173
182
|
handleNewTranslations() {
|
|
174
183
|
getTranslations(this.translationUrl);
|
|
175
184
|
}
|
|
185
|
+
componentDidRender() {
|
|
186
|
+
// start custom styling area
|
|
187
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
188
|
+
if (this.clientStyling)
|
|
189
|
+
this.setClientStyling();
|
|
190
|
+
if (this.clientStylingUrl)
|
|
191
|
+
this.setClientStylingURL();
|
|
192
|
+
this.limitStylingAppends = true;
|
|
193
|
+
}
|
|
194
|
+
// end custom styling area
|
|
195
|
+
}
|
|
176
196
|
async componentWillLoad() {
|
|
177
197
|
if (this.translationUrl.length > 2) {
|
|
178
198
|
await getTranslations(this.translationUrl);
|
|
@@ -186,10 +206,10 @@ export class NutsNotification {
|
|
|
186
206
|
}
|
|
187
207
|
render() {
|
|
188
208
|
var _a, _b;
|
|
189
|
-
return (h("div", { key: '
|
|
209
|
+
return (h("div", { key: '66a913d1f50593857820429c9bef53b8cbeedaa3', class: "Wrapper" }, h("div", { key: 'b1aac51872ee099e666c38ac69bac6415be551e5', class: 'NotificationContainer' + (this.messageSeen ? '' : ' Unseen'), ref: this.assignRefToStylingContainer, onClick: this.notificationActionHandler }, this.badge ? (h("div", { class: "AvatarContainer" }, h("div", { class: "Avatar" }, ((_a = systemIcons[this.badge]) === null || _a === void 0 ? void 0 : _a.icon) ? (h("div", { innerHTML: systemIcons[this.badge].icon })) : (h("img", { class: "AvatarImage", src: this.badge }))))) : (''), h("div", { key: '7f7eda2236d90fe1fa8cf992106944e975a1ccb1', class: "ContentContainer" }, h("p", { key: '3069b2d25cf00544ba78ae15313085d3be9d4e94' }, this.displayedContent), h("p", { key: 'ac3a2862d67d0f93df722d3d459de8ada63014d7', class: "Date" }, formatDistanceToNow(new Date(this.date), {
|
|
190
210
|
addSuffix: true,
|
|
191
211
|
locale: dateFnsLocale(this.language),
|
|
192
|
-
}))), h("div", { key: '
|
|
212
|
+
}))), h("div", { key: '872eccd47c10471e57e6e8993db46c5040166e7d', class: "RightActionsContainer" }, h("div", { key: '1b74b93ca8a0f4bb8aa57093bcc382619835bfc1', class: "Settings", onClick: this.toggleSettingsModal }, h("svg", { key: 'b527fd4a46eb215b316c3ca547008ae822da3565', width: "24", height: "24", viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '0c0d5add8794eef893193883a743854a57bcdf61', d: "M20.625 15.5C20.625 16.5547 21.4453 17.375 22.5 17.375C23.5156 17.375 24.375 16.5547 24.375 15.5C24.375 14.4844 23.5156 13.625 22.5 13.625C21.4453 13.625 20.625 14.4844 20.625 15.5ZM9.375 15.5C9.375 14.4844 8.51562 13.625 7.5 13.625C6.44531 13.625 5.625 14.4844 5.625 15.5C5.625 16.5547 6.44531 17.375 7.5 17.375C8.51562 17.375 9.375 16.5547 9.375 15.5ZM16.875 15.5C16.875 14.4844 16.0156 13.625 15 13.625C13.9453 13.625 13.125 14.4844 13.125 15.5C13.125 16.5547 13.9453 17.375 15 17.375C16.0156 17.375 16.875 16.5547 16.875 15.5Z", fill: "currentColor" }))), ((_b = this.content) === null || _b === void 0 ? void 0 : _b.length) > MAX_NOTIFICATION_TEXT_LENGTH && (h("div", { key: 'e33a4e8cf50ea591e22d1dd40d9438a3406c71e7', class: "AccordionArrow", innerHTML: systemIcons.arrowDown.icon, ref: this.assignRefToDropdownArrow })))), this.showSettingsModal ? (h("div", { class: "SettingsDropdown" }, h("button", { onClick: this.toggleNotificationRead }, h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M14.9434 5.17969C14.2109 4.59375 13.625 4.125 10.1387 1.60547C9.64062 1.25391 8.67383 0.375 8 0.375V0.404297C7.9707 0.404297 7.9707 0.375 7.9707 0.375C7.29688 0.375 6.33008 1.25391 5.83203 1.60547C2.3457 4.125 1.75977 4.59375 1.02734 5.17969C0.675781 5.44336 0.5 5.85352 0.5 6.26367V13.9688C0.5 14.7598 1.11523 15.375 1.90625 15.375H14.0938C14.8555 15.375 15.5 14.7598 15.5 13.9688V6.26367C15.5 5.85352 15.2949 5.44336 14.9434 5.17969ZM9.37695 11.1562C8.9668 11.4785 8.46875 11.6543 8 11.6543C7.50195 11.6543 7.00391 11.4785 6.59375 11.1562L2.375 7.8457V6.49805C2.99023 6 3.72266 5.44336 6.94531 3.12891C7.0332 3.04102 7.15039 2.95312 7.26758 2.86523C7.41406 2.74805 7.73633 2.48438 8 2.33789C8.23438 2.48438 8.55664 2.74805 8.70312 2.86523C8.82031 2.95312 8.9375 3.04102 9.02539 3.12891C12.2188 5.44336 12.9805 6 13.625 6.49805V7.8457L9.37695 11.1562Z", fill: "currentColor" })), translate(this.messageRead ? 'markAsUnread' : 'markAsRead', this.language)), h("button", { onClick: this.deleteNotification }, h("svg", { width: "16", height: "16", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { 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" })), translate('removeMessage', this.language)))) : ('')));
|
|
193
213
|
}
|
|
194
214
|
static get is() { return "nuts-notification"; }
|
|
195
215
|
static get originalStyleUrls() {
|
|
@@ -536,7 +556,8 @@ export class NutsNotification {
|
|
|
536
556
|
"showSettingsModal": {},
|
|
537
557
|
"messageSeen": {},
|
|
538
558
|
"messageRead": {},
|
|
539
|
-
"displayedContent": {}
|
|
559
|
+
"displayedContent": {},
|
|
560
|
+
"limitStylingAppends": {}
|
|
540
561
|
};
|
|
541
562
|
}
|
|
542
563
|
static get events() {
|
|
@@ -574,6 +595,12 @@ export class NutsNotification {
|
|
|
574
595
|
}
|
|
575
596
|
static get watchers() {
|
|
576
597
|
return [{
|
|
598
|
+
"propName": "clientStyling",
|
|
599
|
+
"methodName": "handleStylingChange"
|
|
600
|
+
}, {
|
|
601
|
+
"propName": "clientStylingUrl",
|
|
602
|
+
"methodName": "handleStylingUrlChange"
|
|
603
|
+
}, {
|
|
577
604
|
"propName": "translationUrl",
|
|
578
605
|
"methodName": "handleNewTranslations"
|
|
579
606
|
}];
|
|
@@ -72,6 +72,7 @@ export class NutsPopover {
|
|
|
72
72
|
this.notifications = undefined;
|
|
73
73
|
this.isLoading = true;
|
|
74
74
|
this.showMarkAll = false;
|
|
75
|
+
this.limitStylingAppends = false;
|
|
75
76
|
}
|
|
76
77
|
messageDeteledHandler(event) {
|
|
77
78
|
this.notifications = this.notifications.filter((item) => {
|
|
@@ -98,6 +99,14 @@ export class NutsPopover {
|
|
|
98
99
|
this.showMarkAll = true;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
102
|
+
handleStylingChange(newValue, oldValue) {
|
|
103
|
+
if (newValue !== oldValue)
|
|
104
|
+
this.setClientStyling();
|
|
105
|
+
}
|
|
106
|
+
handleStylingUrlChange(newValue, oldValue) {
|
|
107
|
+
if (newValue !== oldValue)
|
|
108
|
+
this.setClientStylingURL();
|
|
109
|
+
}
|
|
101
110
|
handleNewTranslations() {
|
|
102
111
|
this.isLoading = true;
|
|
103
112
|
getTranslations(this.translationUrl).then(() => {
|
|
@@ -109,6 +118,17 @@ export class NutsPopover {
|
|
|
109
118
|
await getTranslations(this.translationUrl);
|
|
110
119
|
}
|
|
111
120
|
}
|
|
121
|
+
componentDidRender() {
|
|
122
|
+
// start custom styling area
|
|
123
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
124
|
+
if (this.clientStyling)
|
|
125
|
+
this.setClientStyling();
|
|
126
|
+
if (this.clientStylingUrl)
|
|
127
|
+
this.setClientStylingURL();
|
|
128
|
+
this.limitStylingAppends = true;
|
|
129
|
+
}
|
|
130
|
+
// end custom styling area
|
|
131
|
+
}
|
|
112
132
|
connectedCallback() {
|
|
113
133
|
this.baseUrl = `${this.backendUrl}/v1/${this.operatorId}`;
|
|
114
134
|
getNotifications({
|
|
@@ -121,10 +141,10 @@ export class NutsPopover {
|
|
|
121
141
|
}
|
|
122
142
|
}
|
|
123
143
|
render() {
|
|
124
|
-
return (h("div", { key: '
|
|
144
|
+
return (h("div", { key: 'd4a40cfac705ecb065f4d86c0b66469cd65d58c7', class: "Popover", ref: this.assignRefToStylingContainer }, h("div", { key: 'df10296eb110acf6b29fba3029e128401f39dd13', class: "Header" }, h("div", { key: '5abdf8beea99b42594d11c74fed1381f7c3fb848', class: "Title" }, translate('notifications', this.language), this.unseenCount > 0 ? (h("div", { class: "UnseenCounter" }, this.unseenCount)) : ('')), this.showMarkAll ? (h("div", { class: "MarkAsRead", onClick: this.markAllNotificationsAsRead }, translate('markAllAsRead', this.language))) : ('')), h("div", { key: 'a519422b104858e947cc740837571645e3d1ec4c', class: "NotificationList" }, !this.isLoading &&
|
|
125
145
|
(this.notifications.length > 0 ? (this.notifications.map((item) => {
|
|
126
146
|
var _a;
|
|
127
|
-
return (h("nuts-notification", { "client-styling": this.clientStyling, key: item.id, "user-id": this.userId, "operator-id": this.operatorId, content: item.content, "message-id": item.id, badge: ((_a = item.actor) === null || _a === void 0 ? void 0 : _a.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 }));
|
|
147
|
+
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.actor) === null || _a === void 0 ? void 0 : _a.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 }));
|
|
128
148
|
})) : (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('noMessages', this.language)))))), !this.isLoading &&
|
|
129
149
|
(this.notifications.length >= 10 || this.currentPage !== 0) ? (h("div", { class: "Pagination" }, h("div", { class: "Button" }, h("button", { disabled: this.currentPage <= 0, onClick: this.prevPage }, h("svg", { class: "svg-icon", viewBox: "0 0 20 20" }, h("path", { 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('prev', this.language))), h("div", { class: "Button" }, h("button", { disabled: this.notifications.length < 10, onClick: this.nextPage }, translate('next', this.language), h("svg", { class: "svg-icon", viewBox: "0 0 20 20" }, h("path", { 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" })))))) : ('')));
|
|
130
150
|
}
|
|
@@ -336,7 +356,8 @@ export class NutsPopover {
|
|
|
336
356
|
return {
|
|
337
357
|
"notifications": {},
|
|
338
358
|
"isLoading": {},
|
|
339
|
-
"showMarkAll": {}
|
|
359
|
+
"showMarkAll": {},
|
|
360
|
+
"limitStylingAppends": {}
|
|
340
361
|
};
|
|
341
362
|
}
|
|
342
363
|
static get events() {
|
|
@@ -361,6 +382,12 @@ export class NutsPopover {
|
|
|
361
382
|
return [{
|
|
362
383
|
"propName": "unseenCount",
|
|
363
384
|
"methodName": "unseenCountHandler"
|
|
385
|
+
}, {
|
|
386
|
+
"propName": "clientStyling",
|
|
387
|
+
"methodName": "handleStylingChange"
|
|
388
|
+
}, {
|
|
389
|
+
"propName": "clientStylingUrl",
|
|
390
|
+
"methodName": "handleStylingUrlChange"
|
|
364
391
|
}, {
|
|
365
392
|
"propName": "translationUrl",
|
|
366
393
|
"methodName": "handleNewTranslations"
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
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"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"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],"showMarkAll":[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{"unseenCount":["unseenCountHandler"],"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"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
8
|
+
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],"limitStylingAppends":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"]],{"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],"showMarkAll":[32],"limitStylingAppends":[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{"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"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -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"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"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],"showMarkAll":[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{"unseenCount":["unseenCountHandler"],"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"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{"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],"limitStylingAppends":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"]],{"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],"showMarkAll":[32],"limitStylingAppends":[32]},[[8,"messageDeleted","messageDeteledHandler"],[8,"newNotification","newNotificationHandler"]],{"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"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
20
20
|
});
|