@metamask-previews/notification-services-controller 0.1.0-preview-509f7952 → 0.1.0-preview-caf274f8

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.
Files changed (102) hide show
  1. package/dist/NotificationServicesController/NotificationServicesController.js +3 -3
  2. package/dist/NotificationServicesController/NotificationServicesController.mjs +2 -2
  3. package/dist/NotificationServicesController/constants/constants.js +1 -1
  4. package/dist/NotificationServicesController/constants/constants.mjs +1 -1
  5. package/dist/NotificationServicesController/constants/index.js +2 -2
  6. package/dist/NotificationServicesController/constants/index.mjs +2 -2
  7. package/dist/NotificationServicesController/constants/notification-schema.js +1 -1
  8. package/dist/NotificationServicesController/constants/notification-schema.mjs +1 -1
  9. package/dist/NotificationServicesController/index.js +6 -6
  10. package/dist/NotificationServicesController/index.mjs +5 -5
  11. package/dist/NotificationServicesController/processors/index.js +2 -2
  12. package/dist/NotificationServicesController/processors/index.mjs +2 -2
  13. package/dist/NotificationServicesController/processors/process-feature-announcement.js +1 -1
  14. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs +1 -1
  15. package/dist/NotificationServicesController/processors/process-notifications.js +1 -1
  16. package/dist/NotificationServicesController/processors/process-notifications.mjs +1 -1
  17. package/dist/NotificationServicesController/processors/process-onchain-notifications.js +1 -1
  18. package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs +1 -1
  19. package/dist/NotificationServicesController/services/feature-announcements.js +1 -1
  20. package/dist/NotificationServicesController/services/feature-announcements.mjs +1 -1
  21. package/dist/NotificationServicesController/services/onchain-notifications.js +1 -1
  22. package/dist/NotificationServicesController/services/onchain-notifications.mjs +1 -1
  23. package/dist/NotificationServicesController/utils/utils.js +1 -1
  24. package/dist/NotificationServicesController/utils/utils.mjs +1 -1
  25. package/dist/NotificationServicesPushController/NotificationServicesPushController.js +9 -9
  26. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +8 -8
  27. package/dist/NotificationServicesPushController/constants.js +1 -1
  28. package/dist/NotificationServicesPushController/constants.mjs +1 -1
  29. package/dist/NotificationServicesPushController/index.js +12 -12
  30. package/dist/NotificationServicesPushController/index.mjs +11 -11
  31. package/dist/NotificationServicesPushController/services/endpoints.js +1 -1
  32. package/dist/NotificationServicesPushController/services/endpoints.mjs +1 -1
  33. package/dist/NotificationServicesPushController/services/push/push-web.js +7 -7
  34. package/dist/NotificationServicesPushController/services/push/push-web.mjs +6 -6
  35. package/dist/NotificationServicesPushController/services/services.js +8 -8
  36. package/dist/NotificationServicesPushController/services/services.mjs +7 -7
  37. package/dist/NotificationServicesPushController/utils/get-notification-data.js +1 -1
  38. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs +1 -1
  39. package/dist/NotificationServicesPushController/utils/get-notification-message.js +7 -7
  40. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +6 -6
  41. package/dist/NotificationServicesPushController/utils/index.js +8 -8
  42. package/dist/NotificationServicesPushController/utils/index.mjs +7 -7
  43. package/dist/{chunk-QTK2RMF7.mjs → chunk-57S5B7X2.mjs} +2 -2
  44. package/dist/{chunk-UPVIT75F.js → chunk-6265FKB5.js} +3 -3
  45. package/dist/{chunk-O22GVG7K.js → chunk-6GPIA5G3.js} +35 -35
  46. package/dist/{chunk-PGMXFZ6Y.js → chunk-ABFHAGGB.js} +3 -3
  47. package/dist/{chunk-SSWX2N73.mjs → chunk-AHEMTJDE.mjs} +2 -2
  48. package/dist/{chunk-5DA74RWP.mjs → chunk-CQI6FYPZ.mjs} +2 -2
  49. package/dist/{chunk-JLHFZ2UG.mjs → chunk-DBTJ34DS.mjs} +3 -3
  50. package/dist/{chunk-YD3VVORT.js → chunk-DOYL2MCR.js} +85 -85
  51. package/dist/{chunk-ABJDEX2S.js → chunk-H4RSHSWR.js} +3 -3
  52. package/dist/chunk-IGY2S5BC.js +36 -0
  53. package/dist/{chunk-CQ6CGSKZ.js → chunk-IK7KP7N3.js} +3 -3
  54. package/dist/{chunk-FFQNSBPU.js → chunk-KCIC5BWH.js} +7 -7
  55. package/dist/chunk-NBRY7XVG.mjs +925 -0
  56. package/dist/chunk-NBRY7XVG.mjs.map +1 -0
  57. package/dist/{chunk-WTE64QEK.js → chunk-O6RMA2N6.js} +9 -36
  58. package/dist/chunk-O6RMA2N6.js.map +1 -0
  59. package/dist/{chunk-YETZSCGK.js → chunk-QJTZL7TJ.js} +4 -4
  60. package/dist/{chunk-VE4DTN4R.mjs → chunk-QSFGJCPI.mjs} +2 -2
  61. package/dist/{chunk-QUNLD7F2.mjs → chunk-TI4UC3G3.mjs} +2 -2
  62. package/dist/{chunk-ATR6FRAX.mjs → chunk-TS2NQOUA.mjs} +6 -33
  63. package/dist/chunk-TS2NQOUA.mjs.map +1 -0
  64. package/dist/chunk-U5UIDVOO.mjs +36 -0
  65. package/dist/chunk-XYIGTTEP.js +925 -0
  66. package/dist/chunk-XYIGTTEP.js.map +1 -0
  67. package/dist/{chunk-R6AIAXQV.mjs → chunk-YSNDM6BH.mjs} +2 -2
  68. package/dist/{chunk-7ET5GUSY.mjs → chunk-ZFNFSLS6.mjs} +4 -4
  69. package/dist/index.js +12 -12
  70. package/dist/index.mjs +11 -11
  71. package/dist/tsconfig.build.tsbuildinfo +1 -1
  72. package/dist/types/NotificationServicesController/__fixtures__/index.d.ts +0 -1
  73. package/dist/types/NotificationServicesController/__fixtures__/index.d.ts.map +1 -1
  74. package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts +0 -1
  75. package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts.map +1 -1
  76. package/package.json +1 -1
  77. package/dist/chunk-26CCETCM.mjs +0 -70
  78. package/dist/chunk-5I4DIH6O.mjs +0 -4300
  79. package/dist/chunk-5I4DIH6O.mjs.map +0 -1
  80. package/dist/chunk-ATR6FRAX.mjs.map +0 -1
  81. package/dist/chunk-K75FPFTD.js +0 -4300
  82. package/dist/chunk-K75FPFTD.js.map +0 -1
  83. package/dist/chunk-V46WVGWN.js +0 -70
  84. package/dist/chunk-WTE64QEK.js.map +0 -1
  85. /package/dist/{chunk-QTK2RMF7.mjs.map → chunk-57S5B7X2.mjs.map} +0 -0
  86. /package/dist/{chunk-UPVIT75F.js.map → chunk-6265FKB5.js.map} +0 -0
  87. /package/dist/{chunk-O22GVG7K.js.map → chunk-6GPIA5G3.js.map} +0 -0
  88. /package/dist/{chunk-PGMXFZ6Y.js.map → chunk-ABFHAGGB.js.map} +0 -0
  89. /package/dist/{chunk-SSWX2N73.mjs.map → chunk-AHEMTJDE.mjs.map} +0 -0
  90. /package/dist/{chunk-5DA74RWP.mjs.map → chunk-CQI6FYPZ.mjs.map} +0 -0
  91. /package/dist/{chunk-JLHFZ2UG.mjs.map → chunk-DBTJ34DS.mjs.map} +0 -0
  92. /package/dist/{chunk-YD3VVORT.js.map → chunk-DOYL2MCR.js.map} +0 -0
  93. /package/dist/{chunk-ABJDEX2S.js.map → chunk-H4RSHSWR.js.map} +0 -0
  94. /package/dist/{chunk-V46WVGWN.js.map → chunk-IGY2S5BC.js.map} +0 -0
  95. /package/dist/{chunk-CQ6CGSKZ.js.map → chunk-IK7KP7N3.js.map} +0 -0
  96. /package/dist/{chunk-FFQNSBPU.js.map → chunk-KCIC5BWH.js.map} +0 -0
  97. /package/dist/{chunk-YETZSCGK.js.map → chunk-QJTZL7TJ.js.map} +0 -0
  98. /package/dist/{chunk-VE4DTN4R.mjs.map → chunk-QSFGJCPI.mjs.map} +0 -0
  99. /package/dist/{chunk-QUNLD7F2.mjs.map → chunk-TI4UC3G3.mjs.map} +0 -0
  100. /package/dist/{chunk-26CCETCM.mjs.map → chunk-U5UIDVOO.mjs.map} +0 -0
  101. /package/dist/{chunk-R6AIAXQV.mjs.map → chunk-YSNDM6BH.mjs.map} +0 -0
  102. /package/dist/{chunk-7ET5GUSY.mjs.map → chunk-ZFNFSLS6.mjs.map} +0 -0
@@ -26,7 +26,7 @@ var _chunkTLX5QQK5js = require('./chunk-TLX5QQK5.js');
26
26
 
27
27
 
28
28
 
29
- var _chunkV46WVGWNjs = require('./chunk-V46WVGWN.js');
29
+ var _chunkIGY2S5BCjs = require('./chunk-IGY2S5BC.js');
30
30
 
31
31
  // src/NotificationServicesController/NotificationServicesController.ts
32
32
  var _basecontroller = require('@metamask/base-controller');
@@ -110,11 +110,11 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
110
110
  name: controllerName,
111
111
  state: { ...defaultState, ...state }
112
112
  });
113
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _registerMessageHandlers);
114
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _clearLoadingStates);
115
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _assertAuthEnabled);
116
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _getValidStorageKeyAndBearerToken);
117
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _assertUserStorage);
113
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _registerMessageHandlers);
114
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _clearLoadingStates);
115
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _assertAuthEnabled);
116
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _getValidStorageKeyAndBearerToken);
117
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _assertUserStorage);
118
118
  /**
119
119
  * Retrieves and parses the user storage from the storage key.
120
120
  *
@@ -124,7 +124,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
124
124
  *
125
125
  * @returns The parsed user storage object or null
126
126
  */
127
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _getUserStorage);
127
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _getUserStorage);
128
128
  /**
129
129
  * Sets the state of notification creation process.
130
130
  *
@@ -135,7 +135,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
135
135
  *
136
136
  * @param isUpdatingMetamaskNotifications - A boolean value representing the new state of the notification creation process.
137
137
  */
138
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _setIsUpdatingMetamaskNotifications);
138
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _setIsUpdatingMetamaskNotifications);
139
139
  /**
140
140
  * Updates the state to indicate whether fetching of MetaMask notifications is in progress.
141
141
  *
@@ -144,7 +144,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
144
144
  *
145
145
  * @param isFetchingMetamaskNotifications - A boolean value representing the fetching state.
146
146
  */
147
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _setIsFetchingMetamaskNotifications);
147
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _setIsFetchingMetamaskNotifications);
148
148
  /**
149
149
  * Updates the state to indicate that the checking of accounts presence is in progress.
150
150
  *
@@ -154,23 +154,23 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
154
154
  *
155
155
  * @param isCheckingAccountsPresence - A boolean value indicating whether the account presence check is currently active.
156
156
  */
157
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _setIsCheckingAccountsPresence);
157
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _setIsCheckingAccountsPresence);
158
158
  /**
159
159
  * Updates the state to indicate that account updates are in progress.
160
160
  * Removes duplicate accounts before updating the state.
161
161
  *
162
162
  * @param accounts - The accounts being updated.
163
163
  */
164
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _updateUpdatingAccountsState);
164
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _updateUpdatingAccountsState);
165
165
  /**
166
166
  * Clears the state indicating that account updates are complete.
167
167
  *
168
168
  * @param accounts - The accounts that have finished updating.
169
169
  */
170
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _clearUpdatingAccountsState);
170
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _clearUpdatingAccountsState);
171
171
  // Temporary boolean as push notifications are not yet enabled on mobile
172
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _isPushIntegrated, true);
173
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _auth, {
172
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _isPushIntegrated, true);
173
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _auth, {
174
174
  getBearerToken: async () => {
175
175
  return await this.messagingSystem.call(
176
176
  "AuthenticationController:getBearerToken"
@@ -180,7 +180,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
180
180
  return this.messagingSystem.call("AuthenticationController:isSignedIn");
181
181
  }
182
182
  });
183
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _storage, {
183
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _storage, {
184
184
  enableProfileSyncing: async () => {
185
185
  return await this.messagingSystem.call(
186
186
  "UserStorageController:enableProfileSyncing"
@@ -203,9 +203,9 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
203
203
  );
204
204
  }
205
205
  });
206
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _pushNotifications, {
206
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _pushNotifications, {
207
207
  enablePushNotifications: async (UUIDs) => {
208
- if (!_chunkV46WVGWNjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
208
+ if (!_chunkIGY2S5BCjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
209
209
  return;
210
210
  }
211
211
  await this.messagingSystem.call(
@@ -214,7 +214,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
214
214
  );
215
215
  },
216
216
  disablePushNotifications: async (UUIDs) => {
217
- if (!_chunkV46WVGWNjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
217
+ if (!_chunkIGY2S5BCjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
218
218
  return;
219
219
  }
220
220
  await this.messagingSystem.call(
@@ -223,7 +223,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
223
223
  );
224
224
  },
225
225
  updatePushNotifications: async (UUIDs) => {
226
- if (!_chunkV46WVGWNjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
226
+ if (!_chunkIGY2S5BCjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
227
227
  return;
228
228
  }
229
229
  await this.messagingSystem.call(
@@ -232,7 +232,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
232
232
  );
233
233
  },
234
234
  subscribe: () => {
235
- if (!_chunkV46WVGWNjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
235
+ if (!_chunkIGY2S5BCjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
236
236
  return;
237
237
  }
238
238
  this.messagingSystem.subscribe(
@@ -243,21 +243,21 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
243
243
  );
244
244
  },
245
245
  initializePushNotifications: async () => {
246
- if (!_chunkV46WVGWNjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
246
+ if (!_chunkIGY2S5BCjs.__privateGet.call(void 0, this, _isPushIntegrated)) {
247
247
  return;
248
248
  }
249
249
  if (!this.state.isNotificationServicesEnabled) {
250
250
  return;
251
251
  }
252
- const storage = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
252
+ const storage = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
253
253
  if (!storage) {
254
254
  return;
255
255
  }
256
256
  const uuids = _chunkPIZCE3JDjs.getAllUUIDs.call(void 0, storage);
257
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _pushNotifications).enablePushNotifications(uuids);
257
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _pushNotifications).enablePushNotifications(uuids);
258
258
  }
259
259
  });
260
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _accounts, {
260
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _accounts, {
261
261
  /**
262
262
  * Used to get list of addresses from keyring (wallet addresses)
263
263
  *
@@ -296,7 +296,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
296
296
  * @returns result from list accounts
297
297
  */
298
298
  initialize: () => {
299
- return _chunkV46WVGWNjs.__privateGet.call(void 0, this, _accounts).listAccounts();
299
+ return _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _accounts).listAccounts();
300
300
  },
301
301
  /**
302
302
  * Subscription to any state change in the keyring controller (aka wallet accounts).
@@ -311,7 +311,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
311
311
  if (!this.state.isNotificationServicesEnabled) {
312
312
  return;
313
313
  }
314
- const { accountsAdded, accountsRemoved } = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _accounts).listAccounts();
314
+ const { accountsAdded, accountsRemoved } = await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _accounts).listAccounts();
315
315
  const promises = [];
316
316
  if (accountsAdded.length > 0) {
317
317
  promises.push(this.updateOnChainTriggersByAccount(accountsAdded));
@@ -324,23 +324,23 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
324
324
  );
325
325
  }
326
326
  });
327
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _featureAnnouncementEnv, void 0);
328
- _chunkV46WVGWNjs.__privateAdd.call(void 0, this, _performEnableProfileSyncing, async () => {
327
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _featureAnnouncementEnv, void 0);
328
+ _chunkIGY2S5BCjs.__privateAdd.call(void 0, this, _performEnableProfileSyncing, async () => {
329
329
  try {
330
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).enableProfileSyncing();
330
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).enableProfileSyncing();
331
331
  } catch (e) {
332
332
  _loglevel2.default.error("Failed to enable profile syncing", e);
333
333
  throw new Error("Failed to enable profile syncing");
334
334
  }
335
335
  });
336
- _chunkV46WVGWNjs.__privateSet.call(void 0, this, _isPushIntegrated, env.isPushIntegrated ?? true);
337
- _chunkV46WVGWNjs.__privateSet.call(void 0, this, _featureAnnouncementEnv, env.featureAnnouncements);
338
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _registerMessageHandlers, registerMessageHandlers_fn).call(this);
339
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _clearLoadingStates, clearLoadingStates_fn).call(this);
340
- _chunkV46WVGWNjs.__privateGet.call(void 0, this, _accounts).initialize();
341
- _chunkV46WVGWNjs.__privateGet.call(void 0, this, _pushNotifications).initializePushNotifications();
342
- _chunkV46WVGWNjs.__privateGet.call(void 0, this, _accounts).subscribe();
343
- _chunkV46WVGWNjs.__privateGet.call(void 0, this, _pushNotifications).subscribe();
336
+ _chunkIGY2S5BCjs.__privateSet.call(void 0, this, _isPushIntegrated, env.isPushIntegrated ?? true);
337
+ _chunkIGY2S5BCjs.__privateSet.call(void 0, this, _featureAnnouncementEnv, env.featureAnnouncements);
338
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _registerMessageHandlers, registerMessageHandlers_fn).call(this);
339
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _clearLoadingStates, clearLoadingStates_fn).call(this);
340
+ _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _accounts).initialize();
341
+ _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _pushNotifications).initializePushNotifications();
342
+ _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _accounts).subscribe();
343
+ _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _pushNotifications).subscribe();
344
344
  }
345
345
  /**
346
346
  * Retrieves the current enabled state of MetaMask notifications.
@@ -355,16 +355,16 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
355
355
  }
356
356
  async checkAccountsPresence(accounts) {
357
357
  try {
358
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsCheckingAccountsPresence, setIsCheckingAccountsPresence_fn).call(this, true);
359
- const userStorage = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
360
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _assertUserStorage, assertUserStorage_fn).call(this, userStorage);
358
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsCheckingAccountsPresence, setIsCheckingAccountsPresence_fn).call(this, true);
359
+ const userStorage = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
360
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _assertUserStorage, assertUserStorage_fn).call(this, userStorage);
361
361
  const presence = _chunkPIZCE3JDjs.checkAccountsPresence.call(void 0, userStorage, accounts);
362
362
  return presence;
363
363
  } catch (error) {
364
364
  _loglevel2.default.error("Failed to check accounts presence", error);
365
365
  throw error;
366
366
  } finally {
367
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsCheckingAccountsPresence, setIsCheckingAccountsPresence_fn).call(this, false);
367
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsCheckingAccountsPresence, setIsCheckingAccountsPresence_fn).call(this, false);
368
368
  }
369
369
  }
370
370
  /**
@@ -396,17 +396,17 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
396
396
  */
397
397
  async createOnChainTriggers() {
398
398
  try {
399
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, true);
400
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _performEnableProfileSyncing).call(this);
401
- const { bearerToken, storageKey } = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getValidStorageKeyAndBearerToken, getValidStorageKeyAndBearerToken_fn).call(this);
402
- const { accounts } = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _accounts).listAccounts();
403
- let userStorage = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
399
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, true);
400
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _performEnableProfileSyncing).call(this);
401
+ const { bearerToken, storageKey } = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getValidStorageKeyAndBearerToken, getValidStorageKeyAndBearerToken_fn).call(this);
402
+ const { accounts } = await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _accounts).listAccounts();
403
+ let userStorage = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
404
404
  if (userStorage?.[_chunkTLX5QQK5js.USER_STORAGE_VERSION_KEY] === void 0) {
405
405
  userStorage = _chunkPIZCE3JDjs.initializeUserStorage.call(void 0,
406
406
  accounts.map((account) => ({ address: account })),
407
407
  false
408
408
  );
409
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
409
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
410
410
  }
411
411
  const triggers = _chunkPIZCE3JDjs.traverseUserStorageTriggers.call(void 0, userStorage);
412
412
  await _chunkVOZ7Y2OOjs.createOnChainTriggers.call(void 0,
@@ -416,8 +416,8 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
416
416
  triggers
417
417
  );
418
418
  const allUUIDS = _chunkPIZCE3JDjs.getAllUUIDs.call(void 0, userStorage);
419
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _pushNotifications).enablePushNotifications(allUUIDS);
420
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
419
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _pushNotifications).enablePushNotifications(allUUIDS);
420
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
421
421
  this.update((state) => {
422
422
  state.isNotificationServicesEnabled = true;
423
423
  state.isFeatureAnnouncementsEnabled = true;
@@ -428,7 +428,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
428
428
  _loglevel2.default.error("Failed to create On Chain triggers", err);
429
429
  throw new Error("Failed to create On Chain triggers");
430
430
  } finally {
431
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, false);
431
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, false);
432
432
  }
433
433
  }
434
434
  /**
@@ -443,13 +443,13 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
443
443
  */
444
444
  async enableMetamaskNotifications() {
445
445
  try {
446
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, true);
446
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, true);
447
447
  await this.createOnChainTriggers();
448
448
  } catch (e) {
449
449
  _loglevel2.default.error("Unable to enable notifications", e);
450
450
  throw new Error("Unable to enable notifications");
451
451
  } finally {
452
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, false);
452
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, false);
453
453
  }
454
454
  }
455
455
  /**
@@ -462,11 +462,11 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
462
462
  */
463
463
  async disableNotificationServices() {
464
464
  try {
465
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, true);
466
- const userStorage = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
467
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _assertUserStorage, assertUserStorage_fn).call(this, userStorage);
465
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, true);
466
+ const userStorage = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
467
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _assertUserStorage, assertUserStorage_fn).call(this, userStorage);
468
468
  const UUIDs = _chunkPIZCE3JDjs.getAllUUIDs.call(void 0, userStorage);
469
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _pushNotifications).disablePushNotifications(UUIDs);
469
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _pushNotifications).disablePushNotifications(UUIDs);
470
470
  this.update((state) => {
471
471
  state.isNotificationServicesEnabled = false;
472
472
  state.isFeatureAnnouncementsEnabled = false;
@@ -476,7 +476,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
476
476
  _loglevel2.default.error("Unable to disable notifications", e);
477
477
  throw new Error("Unable to disable notifications");
478
478
  } finally {
479
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, false);
479
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsUpdatingMetamaskNotifications, setIsUpdatingMetamaskNotifications_fn).call(this, false);
480
480
  }
481
481
  }
482
482
  /**
@@ -495,10 +495,10 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
495
495
  */
496
496
  async deleteOnChainTriggersByAccount(accounts) {
497
497
  try {
498
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _updateUpdatingAccountsState, updateUpdatingAccountsState_fn).call(this, accounts);
499
- const { bearerToken, storageKey } = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getValidStorageKeyAndBearerToken, getValidStorageKeyAndBearerToken_fn).call(this);
500
- const userStorage = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
501
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _assertUserStorage, assertUserStorage_fn).call(this, userStorage);
498
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _updateUpdatingAccountsState, updateUpdatingAccountsState_fn).call(this, accounts);
499
+ const { bearerToken, storageKey } = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getValidStorageKeyAndBearerToken, getValidStorageKeyAndBearerToken_fn).call(this);
500
+ const userStorage = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
501
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _assertUserStorage, assertUserStorage_fn).call(this, userStorage);
502
502
  const UUIDs = accounts.map((a) => _chunkPIZCE3JDjs.getUUIDsForAccount.call(void 0, userStorage, a.toLowerCase())).flat();
503
503
  if (UUIDs.length === 0) {
504
504
  return userStorage;
@@ -509,14 +509,14 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
509
509
  bearerToken,
510
510
  UUIDs
511
511
  );
512
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _pushNotifications).disablePushNotifications(UUIDs);
513
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
512
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _pushNotifications).disablePushNotifications(UUIDs);
513
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
514
514
  return userStorage;
515
515
  } catch (err) {
516
516
  _loglevel2.default.error("Failed to delete OnChain triggers", err);
517
517
  throw new Error("Failed to delete OnChain triggers");
518
518
  } finally {
519
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _clearUpdatingAccountsState, clearUpdatingAccountsState_fn).call(this, accounts);
519
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _clearUpdatingAccountsState, clearUpdatingAccountsState_fn).call(this, accounts);
520
520
  }
521
521
  }
522
522
  /**
@@ -536,10 +536,10 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
536
536
  */
537
537
  async updateOnChainTriggersByAccount(accounts) {
538
538
  try {
539
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _updateUpdatingAccountsState, updateUpdatingAccountsState_fn).call(this, accounts);
540
- const { bearerToken, storageKey } = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getValidStorageKeyAndBearerToken, getValidStorageKeyAndBearerToken_fn).call(this);
541
- const userStorage = await _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
542
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _assertUserStorage, assertUserStorage_fn).call(this, userStorage);
539
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _updateUpdatingAccountsState, updateUpdatingAccountsState_fn).call(this, accounts);
540
+ const { bearerToken, storageKey } = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getValidStorageKeyAndBearerToken, getValidStorageKeyAndBearerToken_fn).call(this);
541
+ const userStorage = await _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _getUserStorage, getUserStorage_fn).call(this);
542
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _assertUserStorage, assertUserStorage_fn).call(this, userStorage);
543
543
  accounts.forEach((a) => _chunkPIZCE3JDjs.upsertAddressTriggers.call(void 0, a, userStorage));
544
544
  const newTriggers = _chunkPIZCE3JDjs.traverseUserStorageTriggers.call(void 0, userStorage, {
545
545
  mapTrigger: (t) => {
@@ -550,7 +550,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
550
550
  }
551
551
  });
552
552
  if (newTriggers.length > 0) {
553
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
553
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
554
554
  const triggers = _chunkPIZCE3JDjs.traverseUserStorageTriggers.call(void 0, userStorage, {
555
555
  mapTrigger: (t) => {
556
556
  if (accounts.some((a) => a.toLowerCase() === t.address.toLowerCase())) {
@@ -567,14 +567,14 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
567
567
  );
568
568
  }
569
569
  const UUIDs = _chunkPIZCE3JDjs.getAllUUIDs.call(void 0, userStorage);
570
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _pushNotifications).updatePushNotifications(UUIDs);
571
- await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
570
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _pushNotifications).updatePushNotifications(UUIDs);
571
+ await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).setNotificationStorage(JSON.stringify(userStorage));
572
572
  return userStorage;
573
573
  } catch (err) {
574
574
  _loglevel2.default.error("Failed to update OnChain triggers", err);
575
575
  throw new Error("Failed to update OnChain triggers");
576
576
  } finally {
577
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _clearUpdatingAccountsState, clearUpdatingAccountsState_fn).call(this, accounts);
577
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _clearUpdatingAccountsState, clearUpdatingAccountsState_fn).call(this, accounts);
578
578
  }
579
579
  }
580
580
  /**
@@ -587,13 +587,13 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
587
587
  */
588
588
  async fetchAndUpdateMetamaskNotifications() {
589
589
  try {
590
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsFetchingMetamaskNotifications, setIsFetchingMetamaskNotifications_fn).call(this, true);
590
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsFetchingMetamaskNotifications, setIsFetchingMetamaskNotifications_fn).call(this, true);
591
591
  const rawFeatureAnnouncementNotifications = this.state.isFeatureAnnouncementsEnabled ? await _chunkZMNXLHACjs.getFeatureAnnouncementNotifications.call(void 0,
592
- _chunkV46WVGWNjs.__privateGet.call(void 0, this, _featureAnnouncementEnv)
592
+ _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _featureAnnouncementEnv)
593
593
  ).catch(() => []) : [];
594
594
  const rawOnChainNotifications = [];
595
- const userStorage = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).getNotificationStorage().then((s) => s && JSON.parse(s)).catch(() => null);
596
- const bearerToken = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _auth).getBearerToken().catch(() => null);
595
+ const userStorage = await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).getNotificationStorage().then((s) => s && JSON.parse(s)).catch(() => null);
596
+ const bearerToken = await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _auth).getBearerToken().catch(() => null);
597
597
  if (userStorage && bearerToken) {
598
598
  const notifications = await _chunkVOZ7Y2OOjs.getOnChainNotifications.call(void 0,
599
599
  userStorage,
@@ -618,10 +618,10 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
618
618
  this.update((state) => {
619
619
  state.metamaskNotificationsList = metamaskNotifications;
620
620
  });
621
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsFetchingMetamaskNotifications, setIsFetchingMetamaskNotifications_fn).call(this, false);
621
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsFetchingMetamaskNotifications, setIsFetchingMetamaskNotifications_fn).call(this, false);
622
622
  return metamaskNotifications;
623
623
  } catch (err) {
624
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _setIsFetchingMetamaskNotifications, setIsFetchingMetamaskNotifications_fn).call(this, false);
624
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _setIsFetchingMetamaskNotifications, setIsFetchingMetamaskNotifications_fn).call(this, false);
625
625
  _loglevel2.default.error("Failed to fetch notifications", err);
626
626
  throw new Error("Failed to fetch notifications");
627
627
  }
@@ -643,7 +643,7 @@ var NotificationServicesController = class extends _basecontroller.BaseControlle
643
643
  (notification) => notification.type === "features_announcement" /* FEATURES_ANNOUNCEMENT */ && !notification.isRead
644
644
  );
645
645
  if (onChainNotifications.length > 0) {
646
- const bearerToken = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _auth).getBearerToken();
646
+ const bearerToken = await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _auth).getBearerToken();
647
647
  if (bearerToken) {
648
648
  onchainNotificationIds = onChainNotifications.map(
649
649
  (notification) => notification.id
@@ -740,7 +740,7 @@ clearLoadingStates_fn = function() {
740
740
  };
741
741
  _assertAuthEnabled = new WeakSet();
742
742
  assertAuthEnabled_fn = function() {
743
- if (!_chunkV46WVGWNjs.__privateGet.call(void 0, this, _auth).isSignedIn()) {
743
+ if (!_chunkIGY2S5BCjs.__privateGet.call(void 0, this, _auth).isSignedIn()) {
744
744
  this.update((state) => {
745
745
  state.isNotificationServicesEnabled = false;
746
746
  });
@@ -749,9 +749,9 @@ assertAuthEnabled_fn = function() {
749
749
  };
750
750
  _getValidStorageKeyAndBearerToken = new WeakSet();
751
751
  getValidStorageKeyAndBearerToken_fn = async function() {
752
- _chunkV46WVGWNjs.__privateMethod.call(void 0, this, _assertAuthEnabled, assertAuthEnabled_fn).call(this);
753
- const bearerToken = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _auth).getBearerToken();
754
- const storageKey = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).getStorageKey();
752
+ _chunkIGY2S5BCjs.__privateMethod.call(void 0, this, _assertAuthEnabled, assertAuthEnabled_fn).call(this);
753
+ const bearerToken = await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _auth).getBearerToken();
754
+ const storageKey = await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).getStorageKey();
755
755
  if (!bearerToken || !storageKey) {
756
756
  throw new Error("Missing BearerToken or storage key");
757
757
  }
@@ -766,7 +766,7 @@ assertUserStorage_fn = function(storage) {
766
766
  };
767
767
  _getUserStorage = new WeakSet();
768
768
  getUserStorage_fn = async function() {
769
- const userStorageString = await _chunkV46WVGWNjs.__privateGet.call(void 0, this, _storage).getNotificationStorage();
769
+ const userStorageString = await _chunkIGY2S5BCjs.__privateGet.call(void 0, this, _storage).getNotificationStorage();
770
770
  if (!userStorageString) {
771
771
  return null;
772
772
  }
@@ -819,4 +819,4 @@ clearUpdatingAccountsState_fn = function(accounts) {
819
819
 
820
820
 
821
821
  exports.defaultState = defaultState; exports.NotificationServicesController = NotificationServicesController;
822
- //# sourceMappingURL=chunk-YD3VVORT.js.map
822
+ //# sourceMappingURL=chunk-DOYL2MCR.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkUPVIT75Fjs = require('./chunk-UPVIT75F.js');
3
+ var _chunk6265FKB5js = require('./chunk-6265FKB5.js');
4
4
 
5
5
  // src/NotificationServicesPushController/services/push/push-web.ts
6
6
  var _app = require('firebase/app');
@@ -59,7 +59,7 @@ async function listenToPushNotificationsReceived(env, handler) {
59
59
  if (!notificationData) {
60
60
  return;
61
61
  }
62
- const notification = _chunkUPVIT75Fjs.processors_exports.processNotification(notificationData);
62
+ const notification = _chunk6265FKB5js.processors_exports.processNotification(notificationData);
63
63
  await handler(notification);
64
64
  } catch (error) {
65
65
  _loglevel2.default.error("Unable to send push notification:", {
@@ -89,4 +89,4 @@ function listenToPushNotificationsClicked(handler) {
89
89
 
90
90
 
91
91
  exports.createRegToken = createRegToken; exports.deleteRegToken = deleteRegToken; exports.listenToPushNotificationsReceived = listenToPushNotificationsReceived; exports.listenToPushNotificationsClicked = listenToPushNotificationsClicked;
92
- //# sourceMappingURL=chunk-ABJDEX2S.js.map
92
+ //# sourceMappingURL=chunk-H4RSHSWR.js.map
@@ -0,0 +1,36 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+ var __accessCheck = (obj, member, msg) => {
7
+ if (!member.has(obj))
8
+ throw TypeError("Cannot " + msg);
9
+ };
10
+ var __privateGet = (obj, member, getter) => {
11
+ __accessCheck(obj, member, "read from private field");
12
+ return getter ? getter.call(obj) : member.get(obj);
13
+ };
14
+ var __privateAdd = (obj, member, value) => {
15
+ if (member.has(obj))
16
+ throw TypeError("Cannot add the same private member more than once");
17
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
18
+ };
19
+ var __privateSet = (obj, member, value, setter) => {
20
+ __accessCheck(obj, member, "write to private field");
21
+ setter ? setter.call(obj, value) : member.set(obj, value);
22
+ return value;
23
+ };
24
+ var __privateMethod = (obj, member, method) => {
25
+ __accessCheck(obj, member, "access private method");
26
+ return method;
27
+ };
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ exports.__export = __export; exports.__privateGet = __privateGet; exports.__privateAdd = __privateAdd; exports.__privateSet = __privateSet; exports.__privateMethod = __privateMethod;
36
+ //# sourceMappingURL=chunk-IGY2S5BC.js.map
@@ -13,11 +13,11 @@ var _chunkDY4ELDRQjs = require('./chunk-DY4ELDRQ.js');
13
13
  var _chunkTLX5QQK5js = require('./chunk-TLX5QQK5.js');
14
14
 
15
15
 
16
- var _chunkV46WVGWNjs = require('./chunk-V46WVGWN.js');
16
+ var _chunkIGY2S5BCjs = require('./chunk-IGY2S5BC.js');
17
17
 
18
18
  // src/NotificationServicesController/constants/index.ts
19
19
  var constants_exports = {};
20
- _chunkV46WVGWNjs.__export.call(void 0, constants_exports, {
20
+ _chunkIGY2S5BCjs.__export.call(void 0, constants_exports, {
21
21
  CHAIN_SYMBOLS: () => _chunkDY4ELDRQjs.CHAIN_SYMBOLS,
22
22
  NOTIFICATION_CHAINS: () => _chunkDY4ELDRQjs.NOTIFICATION_CHAINS,
23
23
  SUPPORTED_CHAINS: () => _chunkDY4ELDRQjs.SUPPORTED_CHAINS,
@@ -32,4 +32,4 @@ _chunkV46WVGWNjs.__export.call(void 0, constants_exports, {
32
32
 
33
33
 
34
34
  exports.constants_exports = constants_exports;
35
- //# sourceMappingURL=chunk-CQ6CGSKZ.js.map
35
+ //# sourceMappingURL=chunk-IK7KP7N3.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPGMXFZ6Yjs = require('./chunk-PGMXFZ6Y.js');
5
+ var _chunkABFHAGGBjs = require('./chunk-ABFHAGGB.js');
6
6
 
7
7
 
8
8
 
@@ -11,21 +11,21 @@ var _chunkPGMXFZ6Yjs = require('./chunk-PGMXFZ6Y.js');
11
11
  var _chunkEJ52BDLBjs = require('./chunk-EJ52BDLB.js');
12
12
 
13
13
 
14
- var _chunkV46WVGWNjs = require('./chunk-V46WVGWN.js');
14
+ var _chunkIGY2S5BCjs = require('./chunk-IGY2S5BC.js');
15
15
 
16
16
  // src/NotificationServicesPushController/utils/index.ts
17
17
  var utils_exports = {};
18
- _chunkV46WVGWNjs.__export.call(void 0, utils_exports, {
18
+ _chunkIGY2S5BCjs.__export.call(void 0, utils_exports, {
19
19
  calcTokenAmount: () => _chunkEJ52BDLBjs.calcTokenAmount,
20
- createOnChainPushNotificationMessage: () => _chunkPGMXFZ6Yjs.createOnChainPushNotificationMessage,
21
- createOnChainPushNotificationMessages: () => _chunkPGMXFZ6Yjs.createOnChainPushNotificationMessages,
20
+ createOnChainPushNotificationMessage: () => _chunkABFHAGGBjs.createOnChainPushNotificationMessage,
21
+ createOnChainPushNotificationMessages: () => _chunkABFHAGGBjs.createOnChainPushNotificationMessages,
22
22
  formatAmount: () => _chunkEJ52BDLBjs.formatAmount,
23
23
  getAmount: () => _chunkEJ52BDLBjs.getAmount,
24
24
  getLeadingZeroCount: () => _chunkEJ52BDLBjs.getLeadingZeroCount,
25
- isOnChainNotification: () => _chunkPGMXFZ6Yjs.isOnChainNotification
25
+ isOnChainNotification: () => _chunkABFHAGGBjs.isOnChainNotification
26
26
  });
27
27
 
28
28
 
29
29
 
30
30
  exports.utils_exports = utils_exports;
31
- //# sourceMappingURL=chunk-FFQNSBPU.js.map
31
+ //# sourceMappingURL=chunk-KCIC5BWH.js.map