@edx/frontend-plugin-advertisements 1.26.7 → 1.27.0

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 (41) hide show
  1. package/dist/data/index.js +6 -0
  2. package/dist/data/index.js.map +1 -1
  3. package/dist/data/optimizely.js +10 -1
  4. package/dist/data/optimizely.js.map +1 -1
  5. package/dist/upgrade-modal/UpgradeModal.js +9 -6
  6. package/dist/upgrade-modal/UpgradeModal.js.map +1 -1
  7. package/dist/upgrade-notification/DefaultUpgradeNotification.js +33 -288
  8. package/dist/upgrade-notification/DefaultUpgradeNotification.js.map +1 -1
  9. package/dist/upgrade-notification/ExperimentalUpgradeNotification.js +79 -302
  10. package/dist/upgrade-notification/ExperimentalUpgradeNotification.js.map +1 -1
  11. package/dist/upgrade-notification/UpgradeNotification.js +1 -1
  12. package/dist/upgrade-notification/UpgradeNotification.js.map +1 -1
  13. package/dist/upgrade-notification/generic/AccessExpirationDateBanner.js +57 -0
  14. package/dist/upgrade-notification/generic/AccessExpirationDateBanner.js.map +1 -0
  15. package/dist/upgrade-notification/generic/ExpirationCountdown.js +102 -0
  16. package/dist/upgrade-notification/generic/ExpirationCountdown.js.map +1 -0
  17. package/dist/upgrade-notification/generic/PastExpirationCardContent.js +25 -0
  18. package/dist/upgrade-notification/generic/PastExpirationCardContent.js.map +1 -0
  19. package/dist/upgrade-notification/generic/PastExpirationDateBanner.js +57 -0
  20. package/dist/upgrade-notification/generic/PastExpirationDateBanner.js.map +1 -0
  21. package/dist/upgrade-notification/generic/UpsellFBESoonCardContent.js +81 -0
  22. package/dist/upgrade-notification/generic/UpsellFBESoonCardContent.js.map +1 -0
  23. package/dist/upgrade-notification/generic/UpsellFarAwayCardContent.js +30 -0
  24. package/dist/upgrade-notification/generic/UpsellFarAwayCardContent.js.map +1 -0
  25. package/dist/upgrade-notification/generic/index.js +49 -0
  26. package/dist/upgrade-notification/generic/index.js.map +1 -0
  27. package/dist/upgrade-notification/messages.js +51 -0
  28. package/dist/upgrade-notification/messages.js.map +1 -0
  29. package/dist/upsell-bullets/ExperimentalUpsellBullets.js +75 -31
  30. package/dist/upsell-bullets/ExperimentalUpsellBullets.js.map +1 -1
  31. package/dist/upsell-bullets/ExperimentalUpsellTable.js +157 -0
  32. package/dist/upsell-bullets/ExperimentalUpsellTable.js.map +1 -0
  33. package/dist/upsell-bullets/ExperimentalUpsellTable.scss +61 -0
  34. package/dist/upsell-bullets/UpsellBullets.js +61 -52
  35. package/dist/upsell-bullets/UpsellBullets.js.map +1 -1
  36. package/dist/upsell-bullets/UpsellBullets.scss +0 -5
  37. package/dist/upsell-bullets/index.js +0 -19
  38. package/dist/upsell-bullets/index.js.map +1 -1
  39. package/dist/upsell-bullets/messages.js +66 -0
  40. package/dist/upsell-bullets/messages.js.map +1 -0
  41. package/package.json +1 -6
@@ -11,11 +11,11 @@ var _i18n = require("@edx/frontend-platform/i18n");
11
11
  var _analytics = require("@edx/frontend-platform/analytics");
12
12
  var _paragon = require("@openedx/paragon");
13
13
  var _icons = require("@openedx/paragon/icons");
14
- var _localStorage = require("@src/data/localStorage");
15
14
  var _upgradeButton = require("@src/generic/upgrade-button");
16
15
  var _modelStore = require("@src/generic/model-store");
17
- var _upsellBullets = require("../upsell-bullets");
18
16
  var _certificatePreview = _interopRequireDefault(require("./certificate-preview"));
17
+ var _generic = require("./generic");
18
+ var _messages = _interopRequireDefault(require("./messages"));
19
19
  var _jsxRuntime = require("react/jsx-runtime");
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
@@ -25,250 +25,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
25
25
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
26
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
27
27
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint import/no-unresolved: 0 */
28
- const UpsellNoFBECardContent = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
29
- className: "fa-ul upgrade-notification-ul pt-0",
30
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_upsellBullets.VerifiedCertBullet, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_upsellBullets.SupportMissionBullet, {})]
31
- });
32
- const UpsellFBEFarAwayCardContent = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
33
- className: "fa-ul upgrade-notification-ul",
34
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_upsellBullets.VerifiedCertBullet, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_upsellBullets.UnlockGradedBullet, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_upsellBullets.FullAccessBullet, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_upsellBullets.SupportMissionBullet, {})]
35
- });
36
- const UpsellFBESoonCardContent = _ref => {
37
- let {
38
- accessExpirationDate,
39
- timezoneFormatArgs
40
- } = _ref;
41
- const includingAnyProgress = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
42
- className: "font-weight-bold",
43
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
44
- id: "advertisements.upgradeNotification.expirationAccessLoss.progress",
45
- defaultMessage: "including any progress"
46
- })
47
- });
48
- const date = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedDate, _objectSpread({
49
- day: "numeric",
50
- month: "long",
51
- value: new Date(accessExpirationDate)
52
- }, timezoneFormatArgs), "accessDate");
53
- const benefitsOfUpgrading = /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
54
- className: "inline-link-underline font-weight-bold",
55
- rel: "noopener noreferrer",
56
- target: "_blank",
57
- href: "https://support.edx.org/hc/en-us/articles/360013426573-What-are-the-differences-between-audit-free-and-verified-paid-courses-",
58
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
59
- id: "advertisements.upgradeNotification.expirationVerifiedCert.benefits",
60
- defaultMessage: "benefits of upgrading"
61
- })
62
- });
63
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
64
- className: "upgrade-notification-text",
65
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
66
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
67
- id: "advertisements.upgradeNotification.expirationAccessLoss",
68
- defaultMessage: "You will lose all access to this course, {includingAnyProgress}, on {date}.",
69
- values: {
70
- includingAnyProgress,
71
- date
72
- }
73
- })
74
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
75
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
76
- id: "advertisements.upgradeNotification.expirationVerifiedCert",
77
- defaultMessage: "Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the {benefitsOfUpgrading}.",
78
- values: {
79
- benefitsOfUpgrading
80
- }
81
- })
82
- })]
83
- });
84
- };
85
- UpsellFBESoonCardContent.propTypes = {
86
- accessExpirationDate: _propTypes.default.PropTypes.instanceOf(Date).isRequired,
87
- timezoneFormatArgs: _propTypes.default.shape({
88
- timeZone: _propTypes.default.string
89
- })
90
- };
91
- UpsellFBESoonCardContent.defaultProps = {
92
- timezoneFormatArgs: {}
93
- };
94
- const PastExpirationCardContent = () => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
- className: "upgrade-notification-text",
96
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
97
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
98
- id: "advertisements.upgradeNotification.pastExpiration.content",
99
- defaultMessage: "The upgrade deadline for this course passed. To upgrade, enroll in the next available session."
100
- })
101
- })
102
- });
103
- const ExpirationCountdown = _ref2 => {
104
- let {
105
- courseId,
106
- hoursToExpiration,
107
- setupgradeNotificationCurrentState,
108
- type
109
- } = _ref2;
110
- let expirationText;
111
- if (hoursToExpiration >= 24) {
112
- // More than 1 day left
113
- // setupgradeNotificationCurrentState is available in NotificationTray (not course home)
114
- if (setupgradeNotificationCurrentState) {
115
- if (type === 'access') {
116
- setupgradeNotificationCurrentState('accessDaysLeft');
117
- (0, _localStorage.setLocalStorage)(`upgradeNotificationCurrentState.${courseId}`, 'accessDaysLeft');
118
- }
119
- if (type === 'offer') {
120
- setupgradeNotificationCurrentState('FPDdaysLeft');
121
- (0, _localStorage.setLocalStorage)(`upgradeNotificationCurrentState.${courseId}`, 'FPDdaysLeft');
122
- }
123
- }
124
- expirationText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
125
- id: "advertisements.upgradeNotification.expirationDays",
126
- defaultMessage: `{dayCount, number} {dayCount, plural,
127
- one {day}
128
- other {days}} left`,
129
- values: {
130
- dayCount: Math.floor(hoursToExpiration / 24)
131
- }
132
- });
133
- } else if (hoursToExpiration >= 1) {
134
- // More than 1 hour left
135
- // setupgradeNotificationCurrentState is available in NotificationTray (not course home)
136
- if (setupgradeNotificationCurrentState) {
137
- if (type === 'access') {
138
- setupgradeNotificationCurrentState('accessHoursLeft');
139
- (0, _localStorage.setLocalStorage)(`upgradeNotificationCurrentState.${courseId}`, 'accessHoursLeft');
140
- }
141
- if (type === 'offer') {
142
- setupgradeNotificationCurrentState('FPDHoursLeft');
143
- (0, _localStorage.setLocalStorage)(`upgradeNotificationCurrentState.${courseId}`, 'FPDHoursLeft');
144
- }
145
- }
146
- expirationText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
147
- id: "advertisements.upgradeNotification.expirationHours",
148
- defaultMessage: `{hourCount, number} {hourCount, plural,
149
- one {hour}
150
- other {hours}} left`,
151
- values: {
152
- hourCount: hoursToExpiration
153
- }
154
- });
155
- } else {
156
- // Less than 1 hour
157
- // setupgradeNotificationCurrentState is available in NotificationTray (not course home)
158
- if (setupgradeNotificationCurrentState) {
159
- if (type === 'access') {
160
- setupgradeNotificationCurrentState('accessLastHour');
161
- (0, _localStorage.setLocalStorage)(`upgradeNotificationCurrentState.${courseId}`, 'accessLastHour');
162
- }
163
- if (type === 'offer') {
164
- setupgradeNotificationCurrentState('FPDLastHour');
165
- (0, _localStorage.setLocalStorage)(`upgradeNotificationCurrentState.${courseId}`, 'FPDLastHour');
166
- }
167
- }
168
- expirationText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
169
- id: "advertisements.upgradeNotification.expirationMinutes",
170
- defaultMessage: "Less than 1 hour left"
171
- });
172
- }
173
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
174
- className: "upsell-warning",
175
- children: expirationText
176
- });
177
- };
178
- ExpirationCountdown.propTypes = {
179
- courseId: _propTypes.default.string.isRequired,
180
- hoursToExpiration: _propTypes.default.number.isRequired,
181
- setupgradeNotificationCurrentState: _propTypes.default.func,
182
- type: _propTypes.default.string
183
- };
184
- ExpirationCountdown.defaultProps = {
185
- setupgradeNotificationCurrentState: null,
186
- type: null
187
- };
188
- const AccessExpirationDateBanner = _ref3 => {
189
- let {
190
- courseId,
191
- accessExpirationDate,
192
- timezoneFormatArgs,
193
- setupgradeNotificationCurrentState
194
- } = _ref3;
195
- if (setupgradeNotificationCurrentState) {
196
- setupgradeNotificationCurrentState('accessDateView');
197
- (0, _localStorage.setLocalStorage)(`upgradeNotificationCurrentState.${courseId}`, 'accessDateView');
198
- }
199
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
200
- className: "upsell-warning-light",
201
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
202
- id: "advertisements.upgradeNotification.expiration",
203
- defaultMessage: "Course access will expire {date}",
204
- values: {
205
- date: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedDate, _objectSpread({
206
- day: "numeric",
207
- month: "long",
208
- value: accessExpirationDate
209
- }, timezoneFormatArgs), "accessExpireDate")
210
- }
211
- })
212
- });
213
- };
214
- AccessExpirationDateBanner.propTypes = {
215
- courseId: _propTypes.default.string.isRequired,
216
- accessExpirationDate: _propTypes.default.PropTypes.instanceOf(Date).isRequired,
217
- timezoneFormatArgs: _propTypes.default.shape({
218
- timeZone: _propTypes.default.string
219
- }),
220
- setupgradeNotificationCurrentState: _propTypes.default.func
221
- };
222
- AccessExpirationDateBanner.defaultProps = {
223
- timezoneFormatArgs: {},
224
- setupgradeNotificationCurrentState: null
225
- };
226
- const PastExpirationDateBanner = _ref4 => {
227
- let {
228
- courseId,
229
- accessExpirationDate,
230
- timezoneFormatArgs,
231
- setupgradeNotificationCurrentState
232
- } = _ref4;
233
- if (setupgradeNotificationCurrentState) {
234
- setupgradeNotificationCurrentState('PastExpirationDate');
235
- (0, _localStorage.setLocalStorage)(`upgradeNotificationCurrentState.${courseId}`, 'PastExpirationDate');
236
- }
237
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
238
- className: "upsell-warning",
239
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
240
- id: "advertisements.upgradeNotification.pastExpiration.banner",
241
- defaultMessage: "Upgrade deadline passed on {date}",
242
- values: {
243
- date: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedDate, _objectSpread({
244
- day: "numeric",
245
- month: "long",
246
- value: accessExpirationDate
247
- }, timezoneFormatArgs), "accessExpireDate")
248
- }
249
- })
250
- });
251
- };
252
- PastExpirationDateBanner.propTypes = {
253
- courseId: _propTypes.default.string.isRequired,
254
- accessExpirationDate: _propTypes.default.PropTypes.instanceOf(Date).isRequired,
255
- timezoneFormatArgs: _propTypes.default.shape({
256
- timeZone: _propTypes.default.string
257
- }),
258
- setupgradeNotificationCurrentState: _propTypes.default.func
259
- };
260
- PastExpirationDateBanner.defaultProps = {
261
- timezoneFormatArgs: {},
262
- setupgradeNotificationCurrentState: null
263
- };
264
- const DefaultUpgradeNotification = _ref5 => {
28
+ const DefaultUpgradeNotification = _ref => {
265
29
  let {
266
30
  id,
267
31
  courseId,
268
32
  setNotificationCurrentState,
269
33
  toggleSidebar
270
- } = _ref5;
34
+ } = _ref;
271
35
  const pluginLocationId = id;
36
+ const {
37
+ formatMessage
38
+ } = (0, _i18n.useIntl)();
272
39
  const {
273
40
  org,
274
41
  userTimezone,
@@ -290,7 +57,7 @@ const DefaultUpgradeNotification = _ref5 => {
290
57
  const correctedTime = new Date(dateNow + timeOffsetMillis);
291
58
  const accessExpirationDate = accessExpiration ? new Date(accessExpiration.expirationDate) : null;
292
59
  const pastExpirationDeadline = accessExpiration ? new Date(dateNow) > accessExpirationDate : false;
293
- const shouldDisplayBorder = pluginLocationId !== 'outline_tab_notifications';
60
+ const shouldDisplayBorder = pluginLocationId.includes('outline');
294
61
  const upsellPageName = pluginLocationId === 'outline_tab_notifications' ? 'course_home' : 'in_course';
295
62
  const setupgradeNotificationCurrentState = setNotificationCurrentState;
296
63
  const eventProperties = {
@@ -352,69 +119,55 @@ const DefaultUpgradeNotification = _ref5 => {
352
119
  if (offer) {
353
120
  // countdown to the first purchase discount if there is one
354
121
  const hoursToDiscountExpiration = Math.floor((new Date(offer.expirationDate) - correctedTime) / 1000 / 60 / 60);
355
- upgradeNotificationHeaderText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
356
- id: "advertisements.upgradeNotification.firstTimeLearnerDiscount",
357
- defaultMessage: "{percentage}% First-Time Learner Discount",
358
- values: {
359
- percentage: offer.percentage
360
- }
122
+ upgradeNotificationHeaderText = formatMessage(_messages.default.firstTimeLearnerDiscountHeader, {
123
+ percentage: offer.percentage
361
124
  });
362
- expirationBanner = /*#__PURE__*/(0, _jsxRuntime.jsx)(ExpirationCountdown, {
125
+ expirationBanner = /*#__PURE__*/(0, _jsxRuntime.jsx)(_generic.ExpirationCountdown, {
363
126
  courseId: courseId,
364
127
  hoursToExpiration: hoursToDiscountExpiration,
365
128
  setupgradeNotificationCurrentState: setupgradeNotificationCurrentState,
366
129
  type: "offer"
367
130
  });
368
131
  } else {
369
- upgradeNotificationHeaderText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
370
- id: "advertisements.upgradeNotification.accessExpiration",
371
- defaultMessage: "Upgrade your course today"
372
- });
373
- expirationBanner = /*#__PURE__*/(0, _jsxRuntime.jsx)(AccessExpirationDateBanner, {
132
+ upgradeNotificationHeaderText = formatMessage(_messages.default.accessExpirationHeader);
133
+ expirationBanner = /*#__PURE__*/(0, _jsxRuntime.jsx)(_generic.AccessExpirationDateBanner, {
374
134
  courseId: courseId,
375
135
  accessExpirationDate: accessExpirationDate,
376
136
  timezoneFormatArgs: timezoneFormatArgs,
377
137
  setupgradeNotificationCurrentState: setupgradeNotificationCurrentState
378
138
  });
379
139
  }
380
- upsellMessage = /*#__PURE__*/(0, _jsxRuntime.jsx)(UpsellFBEFarAwayCardContent, {});
140
+ upsellMessage = /*#__PURE__*/(0, _jsxRuntime.jsx)(_generic.UpsellFarAwayCardContent, {
141
+ isFBE: true
142
+ });
381
143
  } else if (hoursToAccessExpiration < 7 * 24 && hoursToAccessExpiration >= 0) {
382
144
  // more urgent messaging if there's less than 7 days left to access expiration
383
- upgradeNotificationHeaderText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
384
- id: "advertisements.upgradeNotification.accessExpirationUrgent",
385
- defaultMessage: "Course Access Expiration"
386
- });
387
- expirationBanner = /*#__PURE__*/(0, _jsxRuntime.jsx)(ExpirationCountdown, {
145
+ upgradeNotificationHeaderText = formatMessage(_messages.default.accessExpirationUrgentHeader);
146
+ expirationBanner = /*#__PURE__*/(0, _jsxRuntime.jsx)(_generic.ExpirationCountdown, {
388
147
  courseId: courseId,
389
148
  hoursToExpiration: hoursToAccessExpiration,
390
149
  setupgradeNotificationCurrentState: setupgradeNotificationCurrentState,
391
150
  type: "access"
392
151
  });
393
- upsellMessage = /*#__PURE__*/(0, _jsxRuntime.jsx)(UpsellFBESoonCardContent, {
152
+ upsellMessage = /*#__PURE__*/(0, _jsxRuntime.jsx)(_generic.UpsellFBESoonCardContent, {
394
153
  accessExpirationDate: accessExpirationDate,
395
154
  timezoneFormatArgs: timezoneFormatArgs
396
155
  });
397
156
  } else {
398
157
  // access expiration deadline has passed
399
- upgradeNotificationHeaderText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
400
- id: "advertisements.upgradeNotification.accessExpirationPast",
401
- defaultMessage: "Course Access Expiration"
402
- });
403
- expirationBanner = /*#__PURE__*/(0, _jsxRuntime.jsx)(PastExpirationDateBanner, {
158
+ upgradeNotificationHeaderText = formatMessage(_messages.default.accessExpirationPastHeader);
159
+ expirationBanner = /*#__PURE__*/(0, _jsxRuntime.jsx)(_generic.PastExpirationDateBanner, {
404
160
  courseId: courseId,
405
161
  accessExpirationDate: accessExpirationDate,
406
162
  timezoneFormatArgs: timezoneFormatArgs,
407
163
  setupgradeNotificationCurrentState: setupgradeNotificationCurrentState
408
164
  });
409
- upsellMessage = /*#__PURE__*/(0, _jsxRuntime.jsx)(PastExpirationCardContent, {});
165
+ upsellMessage = /*#__PURE__*/(0, _jsxRuntime.jsx)(_generic.PastExpirationCardContent, {});
410
166
  }
411
167
  } else {
412
168
  // FBE is turned off
413
- upgradeNotificationHeaderText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
414
- id: "advertisements.upgradeNotification.pursueAverifiedCertificate",
415
- defaultMessage: "Pursue a verified certificate"
416
- });
417
- upsellMessage = /*#__PURE__*/(0, _jsxRuntime.jsx)(UpsellNoFBECardContent, {});
169
+ upgradeNotificationHeaderText = formatMessage(_messages.default.pursueCertificateMessage);
170
+ upsellMessage = /*#__PURE__*/(0, _jsxRuntime.jsx)(_generic.UpsellFarAwayCardContent, {});
418
171
  }
419
172
  if (pastExpirationDeadline) {
420
173
  callToActionButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Button, {
@@ -422,7 +175,7 @@ const DefaultUpgradeNotification = _ref5 => {
422
175
  onClick: logClickPastExpiration,
423
176
  href: marketingUrl,
424
177
  block: true,
425
- children: "View Course Details"
178
+ children: formatMessage(_messages.default.pastExpirationCallToActionLabel)
426
179
  });
427
180
  } else {
428
181
  callToActionButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_upgradeButton.UpgradeButton, {
@@ -436,25 +189,17 @@ const DefaultUpgradeNotification = _ref5 => {
436
189
  // if there's a first purchase discount, message the code at the bottom
437
190
  offerCode = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
438
191
  className: "text-center discount-info",
439
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
440
- id: "advertisements.upgradeNotification.code",
441
- defaultMessage: "Use code {code} at checkout",
442
- values: {
443
- code: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
444
- className: "font-weight-bold",
445
- children: offer.code
446
- })
447
- }
192
+ children: formatMessage(_messages.default.discountCodeMessage, {
193
+ code: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
194
+ className: "font-weight-bold",
195
+ children: offer.code
196
+ })
448
197
  })
449
198
  });
450
199
  }
451
- const closeAltText = /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
452
- id: "advertisements.close",
453
- defaultMessage: "Close"
454
- });
455
200
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("section", {
456
201
  className: (0, _classnames.default)('upgrade-notification small', {
457
- 'card mb-4': shouldDisplayBorder
202
+ 'pgn__card pgn__card-light card mb-4 rounded': shouldDisplayBorder
458
203
  }),
459
204
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
460
205
  id: "courseHome-upgradeNotification",
@@ -473,7 +218,7 @@ const DefaultUpgradeNotification = _ref5 => {
473
218
  iconAs: _paragon.Icon,
474
219
  onClick: toggleSidebar,
475
220
  className: "icon-hover",
476
- alt: closeAltText
221
+ alt: formatMessage(_messages.default.closeAlt)
477
222
  })
478
223
  })]
479
224
  }), expirationBanner, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -496,5 +241,5 @@ DefaultUpgradeNotification.defaultProps = {
496
241
  setNotificationCurrentState: null,
497
242
  toggleSidebar: null
498
243
  };
499
- var _default = exports.default = (0, _i18n.injectIntl)(DefaultUpgradeNotification);
244
+ var _default = exports.default = DefaultUpgradeNotification;
500
245
  //# sourceMappingURL=DefaultUpgradeNotification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultUpgradeNotification.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_i18n","_analytics","_paragon","_icons","_localStorage","_upgradeButton","_modelStore","_upsellBullets","_certificatePreview","_jsxRuntime","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","value","_toPropertyKey","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","UpsellNoFBECardContent","jsxs","className","children","jsx","VerifiedCertBullet","SupportMissionBullet","UpsellFBEFarAwayCardContent","UnlockGradedBullet","FullAccessBullet","UpsellFBESoonCardContent","_ref","accessExpirationDate","timezoneFormatArgs","includingAnyProgress","FormattedMessage","id","defaultMessage","date","FormattedDate","day","month","Date","benefitsOfUpgrading","rel","target","href","values","propTypes","PropTypes","instanceOf","isRequired","shape","timeZone","string","defaultProps","PastExpirationCardContent","ExpirationCountdown","_ref2","courseId","hoursToExpiration","setupgradeNotificationCurrentState","type","expirationText","setLocalStorage","dayCount","Math","floor","hourCount","number","func","AccessExpirationDateBanner","_ref3","PastExpirationDateBanner","_ref4","DefaultUpgradeNotification","_ref5","setNotificationCurrentState","toggleSidebar","pluginLocationId","org","userTimezone","verifiedMode","useModel","marketingUrl","accessExpiration","datesBannerInfo","offer","timeOffsetMillis","dateNow","now","correctedTime","expirationDate","pastExpirationDeadline","shouldDisplayBorder","upsellPageName","eventProperties","org_key","courserun_key","promotionEventProperties","creative","name","position","promotion_id","useEffect","sendTrackingLogEvent","sendTrackEvent","logClick","location","linkCategory","linkName","linkType","pageName","logClickPastExpiration","upgradeNotificationHeaderText","expirationBanner","upsellMessage","callToActionButton","offerCode","contentTypeGatingEnabled","hoursToAccessExpiration","hoursToDiscountExpiration","percentage","Button","variant","onClick","block","UpgradeButton","code","closeAltText","classNames","IconButton","src","Close","size","iconAs","Icon","alt","_default","exports","injectIntl"],"sources":["../../src/upgrade-notification/DefaultUpgradeNotification.jsx"],"sourcesContent":["/* eslint import/no-unresolved: 0 */\nimport React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport {\n FormattedDate, FormattedMessage, injectIntl,\n} from '@edx/frontend-platform/i18n';\nimport { sendTrackEvent, sendTrackingLogEvent } from '@edx/frontend-platform/analytics';\nimport { Button, Icon, IconButton } from '@openedx/paragon';\nimport { Close } from '@openedx/paragon/icons';\nimport { setLocalStorage } from '@src/data/localStorage';\nimport { UpgradeButton } from '@src/generic/upgrade-button';\nimport { useModel } from '@src/generic/model-store';\nimport {\n VerifiedCertBullet,\n UnlockGradedBullet,\n FullAccessBullet,\n SupportMissionBullet,\n} from '../upsell-bullets';\n\nimport CertificatePreview from './certificate-preview';\n\nconst UpsellNoFBECardContent = () => (\n <ul className=\"fa-ul upgrade-notification-ul pt-0\">\n <VerifiedCertBullet />\n <SupportMissionBullet />\n </ul>\n);\n\nconst UpsellFBEFarAwayCardContent = () => (\n <ul className=\"fa-ul upgrade-notification-ul\">\n <VerifiedCertBullet />\n <UnlockGradedBullet />\n <FullAccessBullet />\n <SupportMissionBullet />\n </ul>\n);\n\nconst UpsellFBESoonCardContent = ({ accessExpirationDate, timezoneFormatArgs }) => {\n const includingAnyProgress = (\n <span className=\"font-weight-bold\">\n <FormattedMessage\n id=\"advertisements.upgradeNotification.expirationAccessLoss.progress\"\n defaultMessage=\"including any progress\"\n />\n </span>\n );\n\n const date = (\n <FormattedDate\n key=\"accessDate\"\n day=\"numeric\"\n month=\"long\"\n value={new Date(accessExpirationDate)}\n {...timezoneFormatArgs}\n />\n );\n\n const benefitsOfUpgrading = (\n <a className=\"inline-link-underline font-weight-bold\" rel=\"noopener noreferrer\" target=\"_blank\" href=\"https://support.edx.org/hc/en-us/articles/360013426573-What-are-the-differences-between-audit-free-and-verified-paid-courses-\">\n <FormattedMessage\n id=\"advertisements.upgradeNotification.expirationVerifiedCert.benefits\"\n defaultMessage=\"benefits of upgrading\"\n />\n </a>\n );\n\n return (\n <div className=\"upgrade-notification-text\">\n <p>\n <FormattedMessage\n id=\"advertisements.upgradeNotification.expirationAccessLoss\"\n defaultMessage=\"You will lose all access to this course, {includingAnyProgress}, on {date}.\"\n values={{\n includingAnyProgress,\n date,\n }}\n />\n </p>\n <p>\n <FormattedMessage\n id=\"advertisements.upgradeNotification.expirationVerifiedCert\"\n defaultMessage=\"Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the {benefitsOfUpgrading}.\"\n values={{ benefitsOfUpgrading }}\n />\n </p>\n </div>\n );\n};\n\nUpsellFBESoonCardContent.propTypes = {\n accessExpirationDate: PropTypes.PropTypes.instanceOf(Date).isRequired,\n timezoneFormatArgs: PropTypes.shape({\n timeZone: PropTypes.string,\n }),\n};\n\nUpsellFBESoonCardContent.defaultProps = {\n timezoneFormatArgs: {},\n};\n\nconst PastExpirationCardContent = () => (\n <div className=\"upgrade-notification-text\">\n <p>\n <FormattedMessage\n id=\"advertisements.upgradeNotification.pastExpiration.content\"\n defaultMessage=\"The upgrade deadline for this course passed. To upgrade, enroll in the next available session.\"\n />\n </p>\n </div>\n);\n\nconst ExpirationCountdown = ({\n courseId, hoursToExpiration, setupgradeNotificationCurrentState, type,\n}) => {\n let expirationText;\n if (hoursToExpiration >= 24) { // More than 1 day left\n // setupgradeNotificationCurrentState is available in NotificationTray (not course home)\n if (setupgradeNotificationCurrentState) {\n if (type === 'access') {\n setupgradeNotificationCurrentState('accessDaysLeft');\n setLocalStorage(`upgradeNotificationCurrentState.${courseId}`, 'accessDaysLeft');\n }\n if (type === 'offer') {\n setupgradeNotificationCurrentState('FPDdaysLeft');\n setLocalStorage(`upgradeNotificationCurrentState.${courseId}`, 'FPDdaysLeft');\n }\n }\n expirationText = (\n <FormattedMessage\n id=\"advertisements.upgradeNotification.expirationDays\"\n defaultMessage={`{dayCount, number} {dayCount, plural,\n one {day}\n other {days}} left`}\n values={{\n dayCount: (Math.floor(hoursToExpiration / 24)),\n }}\n />\n );\n } else if (hoursToExpiration >= 1) { // More than 1 hour left\n // setupgradeNotificationCurrentState is available in NotificationTray (not course home)\n if (setupgradeNotificationCurrentState) {\n if (type === 'access') {\n setupgradeNotificationCurrentState('accessHoursLeft');\n setLocalStorage(`upgradeNotificationCurrentState.${courseId}`, 'accessHoursLeft');\n }\n if (type === 'offer') {\n setupgradeNotificationCurrentState('FPDHoursLeft');\n setLocalStorage(`upgradeNotificationCurrentState.${courseId}`, 'FPDHoursLeft');\n }\n }\n expirationText = (\n <FormattedMessage\n id=\"advertisements.upgradeNotification.expirationHours\"\n defaultMessage={`{hourCount, number} {hourCount, plural,\n one {hour}\n other {hours}} left`}\n values={{\n hourCount: (hoursToExpiration),\n }}\n />\n );\n } else { // Less than 1 hour\n // setupgradeNotificationCurrentState is available in NotificationTray (not course home)\n if (setupgradeNotificationCurrentState) {\n if (type === 'access') {\n setupgradeNotificationCurrentState('accessLastHour');\n setLocalStorage(`upgradeNotificationCurrentState.${courseId}`, 'accessLastHour');\n }\n if (type === 'offer') {\n setupgradeNotificationCurrentState('FPDLastHour');\n setLocalStorage(`upgradeNotificationCurrentState.${courseId}`, 'FPDLastHour');\n }\n }\n expirationText = (\n <FormattedMessage\n id=\"advertisements.upgradeNotification.expirationMinutes\"\n defaultMessage=\"Less than 1 hour left\"\n />\n );\n }\n return (<div className=\"upsell-warning\">{expirationText}</div>);\n};\n\nExpirationCountdown.propTypes = {\n courseId: PropTypes.string.isRequired,\n hoursToExpiration: PropTypes.number.isRequired,\n setupgradeNotificationCurrentState: PropTypes.func,\n type: PropTypes.string,\n};\nExpirationCountdown.defaultProps = {\n setupgradeNotificationCurrentState: null,\n type: null,\n};\n\nconst AccessExpirationDateBanner = ({\n courseId, accessExpirationDate, timezoneFormatArgs, setupgradeNotificationCurrentState,\n}) => {\n if (setupgradeNotificationCurrentState) {\n setupgradeNotificationCurrentState('accessDateView');\n setLocalStorage(`upgradeNotificationCurrentState.${courseId}`, 'accessDateView');\n }\n return (\n <div className=\"upsell-warning-light\">\n <FormattedMessage\n id=\"advertisements.upgradeNotification.expiration\"\n defaultMessage=\"Course access will expire {date}\"\n values={{\n date: (\n <FormattedDate\n key=\"accessExpireDate\"\n day=\"numeric\"\n month=\"long\"\n value={accessExpirationDate}\n {...timezoneFormatArgs}\n />\n ),\n }}\n />\n </div>\n );\n};\n\nAccessExpirationDateBanner.propTypes = {\n courseId: PropTypes.string.isRequired,\n accessExpirationDate: PropTypes.PropTypes.instanceOf(Date).isRequired,\n timezoneFormatArgs: PropTypes.shape({\n timeZone: PropTypes.string,\n }),\n setupgradeNotificationCurrentState: PropTypes.func,\n};\n\nAccessExpirationDateBanner.defaultProps = {\n timezoneFormatArgs: {},\n setupgradeNotificationCurrentState: null,\n};\n\nconst PastExpirationDateBanner = ({\n courseId, accessExpirationDate, timezoneFormatArgs, setupgradeNotificationCurrentState,\n}) => {\n if (setupgradeNotificationCurrentState) {\n setupgradeNotificationCurrentState('PastExpirationDate');\n setLocalStorage(`upgradeNotificationCurrentState.${courseId}`, 'PastExpirationDate');\n }\n return (\n <div className=\"upsell-warning\">\n <FormattedMessage\n id=\"advertisements.upgradeNotification.pastExpiration.banner\"\n defaultMessage=\"Upgrade deadline passed on {date}\"\n values={{\n date: (\n <FormattedDate\n key=\"accessExpireDate\"\n day=\"numeric\"\n month=\"long\"\n value={accessExpirationDate}\n {...timezoneFormatArgs}\n />\n ),\n }}\n />\n </div>\n );\n};\n\nPastExpirationDateBanner.propTypes = {\n courseId: PropTypes.string.isRequired,\n accessExpirationDate: PropTypes.PropTypes.instanceOf(Date).isRequired,\n timezoneFormatArgs: PropTypes.shape({\n timeZone: PropTypes.string,\n }),\n setupgradeNotificationCurrentState: PropTypes.func,\n};\n\nPastExpirationDateBanner.defaultProps = {\n timezoneFormatArgs: {},\n setupgradeNotificationCurrentState: null,\n};\n\nconst DefaultUpgradeNotification = ({\n id,\n courseId,\n setNotificationCurrentState,\n toggleSidebar,\n}) => {\n const pluginLocationId = id;\n\n const {\n org,\n userTimezone,\n verifiedMode,\n } = useModel('courseHomeMeta', courseId);\n\n const {\n marketingUrl,\n } = useModel('coursewareMeta', courseId);\n\n const {\n accessExpiration,\n datesBannerInfo,\n offer,\n timeOffsetMillis,\n } = useModel('outline', courseId);\n\n const dateNow = Date.now();\n const timezoneFormatArgs = userTimezone ? { timeZone: userTimezone } : {};\n const correctedTime = new Date(dateNow + timeOffsetMillis);\n const accessExpirationDate = accessExpiration ? new Date(accessExpiration.expirationDate) : null;\n const pastExpirationDeadline = accessExpiration ? new Date(dateNow) > accessExpirationDate : false;\n const shouldDisplayBorder = pluginLocationId !== 'outline_tab_notifications';\n const upsellPageName = pluginLocationId === 'outline_tab_notifications' ? 'course_home' : 'in_course';\n const setupgradeNotificationCurrentState = setNotificationCurrentState;\n\n const eventProperties = {\n org_key: org,\n courserun_key: courseId,\n };\n\n const promotionEventProperties = {\n creative: 'sidebarupsell',\n name: 'In-Course Verification Prompt',\n position: 'sidebar-message',\n promotion_id: 'courseware_verified_certificate_upsell',\n ...eventProperties,\n };\n\n useEffect(() => {\n sendTrackingLogEvent('edx.bi.course.upgrade.sidebarupsell.displayed', eventProperties);\n sendTrackEvent('Promotion Viewed', promotionEventProperties);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!verifiedMode) {\n return null;\n }\n\n const logClick = () => {\n sendTrackingLogEvent('edx.bi.course.upgrade.sidebarupsell.clicked', eventProperties);\n sendTrackingLogEvent('edx.course.enrollment.upgrade.clicked', {\n ...eventProperties,\n location: 'sidebar-message',\n });\n sendTrackEvent('Promotion Clicked', promotionEventProperties);\n sendTrackEvent('edx.bi.ecommerce.upsell_links_clicked', {\n ...eventProperties,\n linkCategory: 'green_upgrade',\n linkName: `${upsellPageName}_green`,\n linkType: 'button',\n pageName: upsellPageName,\n });\n };\n\n const logClickPastExpiration = () => {\n sendTrackEvent('edx.bi.ecommerce.upgrade_notification.past_expiration.button_clicked', {\n ...eventProperties,\n linkCategory: 'upgrade_notification',\n linkName: `${upsellPageName}_course_details`,\n linkType: 'button',\n pageName: upsellPageName,\n });\n };\n\n /*\n There are 5 parts that change in the upgrade card:\n upgradeNotificationHeaderText\n expirationBanner\n upsellMessage\n callToActionButton\n offerCode\n */\n let upgradeNotificationHeaderText;\n let expirationBanner;\n let upsellMessage;\n let callToActionButton;\n let offerCode;\n\n if (!!accessExpiration && !!datesBannerInfo?.contentTypeGatingEnabled) {\n const hoursToAccessExpiration = Math.floor((accessExpirationDate - correctedTime) / 1000 / 60 / 60);\n\n if (hoursToAccessExpiration >= (7 * 24)) {\n if (offer) { // countdown to the first purchase discount if there is one\n const hoursToDiscountExpiration = Math.floor((new Date(offer.expirationDate) - correctedTime) / 1000 / 60 / 60);\n upgradeNotificationHeaderText = (\n <FormattedMessage\n id=\"advertisements.upgradeNotification.firstTimeLearnerDiscount\"\n defaultMessage=\"{percentage}% First-Time Learner Discount\"\n values={{\n percentage: (offer.percentage),\n }}\n />\n );\n expirationBanner = (\n <ExpirationCountdown\n courseId={courseId}\n hoursToExpiration={hoursToDiscountExpiration}\n setupgradeNotificationCurrentState={setupgradeNotificationCurrentState}\n type=\"offer\"\n />\n );\n } else {\n upgradeNotificationHeaderText = (\n <FormattedMessage\n id=\"advertisements.upgradeNotification.accessExpiration\"\n defaultMessage=\"Upgrade your course today\"\n />\n );\n expirationBanner = (\n <AccessExpirationDateBanner\n courseId={courseId}\n accessExpirationDate={accessExpirationDate}\n timezoneFormatArgs={timezoneFormatArgs}\n setupgradeNotificationCurrentState={setupgradeNotificationCurrentState}\n />\n );\n }\n upsellMessage = <UpsellFBEFarAwayCardContent />;\n } else if (hoursToAccessExpiration < (7 * 24) && hoursToAccessExpiration >= 0) {\n // more urgent messaging if there's less than 7 days left to access expiration\n upgradeNotificationHeaderText = (\n <FormattedMessage\n id=\"advertisements.upgradeNotification.accessExpirationUrgent\"\n defaultMessage=\"Course Access Expiration\"\n />\n );\n expirationBanner = (\n <ExpirationCountdown\n courseId={courseId}\n hoursToExpiration={hoursToAccessExpiration}\n setupgradeNotificationCurrentState={setupgradeNotificationCurrentState}\n type=\"access\"\n />\n );\n upsellMessage = (\n <UpsellFBESoonCardContent\n accessExpirationDate={accessExpirationDate}\n timezoneFormatArgs={timezoneFormatArgs}\n />\n );\n } else { // access expiration deadline has passed\n upgradeNotificationHeaderText = (\n <FormattedMessage\n id=\"advertisements.upgradeNotification.accessExpirationPast\"\n defaultMessage=\"Course Access Expiration\"\n />\n );\n expirationBanner = (\n <PastExpirationDateBanner\n courseId={courseId}\n accessExpirationDate={accessExpirationDate}\n timezoneFormatArgs={timezoneFormatArgs}\n setupgradeNotificationCurrentState={setupgradeNotificationCurrentState}\n />\n );\n upsellMessage = (\n <PastExpirationCardContent />\n );\n }\n } else { // FBE is turned off\n upgradeNotificationHeaderText = (\n <FormattedMessage\n id=\"advertisements.upgradeNotification.pursueAverifiedCertificate\"\n defaultMessage=\"Pursue a verified certificate\"\n />\n );\n upsellMessage = (<UpsellNoFBECardContent />);\n }\n\n if (pastExpirationDeadline) {\n callToActionButton = (\n <Button\n variant=\"primary\"\n onClick={logClickPastExpiration}\n href={marketingUrl}\n block\n >\n View Course Details\n </Button>\n );\n } else {\n callToActionButton = (\n <UpgradeButton\n offer={offer}\n onClick={logClick}\n verifiedMode={verifiedMode}\n block\n />\n );\n }\n\n if (offer) { // if there's a first purchase discount, message the code at the bottom\n offerCode = (\n <div className=\"text-center discount-info\">\n <FormattedMessage\n id=\"advertisements.upgradeNotification.code\"\n defaultMessage=\"Use code {code} at checkout\"\n values={{\n code: (<span className=\"font-weight-bold\">{offer.code}</span>),\n }}\n />\n </div>\n );\n }\n\n const closeAltText = (\n <FormattedMessage\n id=\"advertisements.close\"\n defaultMessage=\"Close\"\n />\n );\n\n return (\n <section className={classNames('upgrade-notification small', { 'card mb-4': shouldDisplayBorder })}>\n <div id=\"courseHome-upgradeNotification\">\n <CertificatePreview courseId={courseId} />\n <h2\n className={classNames('h5 upgrade-notification-header', {\n 'd-flex align-items-center mr-2 ml-4 my-1.5 font-size-18': !!toggleSidebar,\n })}\n id=\"outline-sidebar-upgrade-header\"\n >\n {upgradeNotificationHeaderText}\n {!!toggleSidebar && (\n <div className=\"d-inline-flex ml-auto\">\n <IconButton\n src={Close}\n size=\"sm\"\n iconAs={Icon}\n onClick={toggleSidebar}\n className=\"icon-hover\"\n alt={closeAltText}\n />\n </div>\n )}\n </h2>\n {expirationBanner}\n <div className=\"upgrade-notification-message\">\n {upsellMessage}\n </div>\n <div className=\"upgrade-notification-button\">\n {callToActionButton}\n </div>\n {offerCode}\n </div>\n </section>\n );\n};\n\nDefaultUpgradeNotification.propTypes = {\n id: PropTypes.string.isRequired,\n courseId: PropTypes.string.isRequired,\n setNotificationCurrentState: PropTypes.func,\n toggleSidebar: PropTypes.func,\n};\n\nDefaultUpgradeNotification.defaultProps = {\n setNotificationCurrentState: null,\n toggleSidebar: null,\n};\n\nexport default injectIntl(Def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,kBAAS,CAACqB;AAC3B,CAAC;AAEDK,0BAA0B,CAACpB,YAAY,GAAG;EACxCsB,2BAA2B,EAAE,IAAI;EACjCC,aAAa,EAAE;AACjB,CAAC;AAAC,IAAA4D,QAAA,GAAAC,OAAA,CAAApK,OAAA,GAEa,IAAAqK,gBAAU,EAACjE,0BAA0B,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"DefaultUpgradeNotification.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_i18n","_analytics","_paragon","_icons","_upgradeButton","_modelStore","_certificatePreview","_generic","_messages","_jsxRuntime","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","value","_toPropertyKey","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","DefaultUpgradeNotification","_ref","id","courseId","setNotificationCurrentState","toggleSidebar","pluginLocationId","formatMessage","useIntl","org","userTimezone","verifiedMode","useModel","marketingUrl","accessExpiration","datesBannerInfo","offer","timeOffsetMillis","dateNow","Date","now","timezoneFormatArgs","timeZone","correctedTime","accessExpirationDate","expirationDate","pastExpirationDeadline","shouldDisplayBorder","includes","upsellPageName","setupgradeNotificationCurrentState","eventProperties","org_key","courserun_key","promotionEventProperties","creative","name","position","promotion_id","useEffect","sendTrackingLogEvent","sendTrackEvent","logClick","location","linkCategory","linkName","linkType","pageName","logClickPastExpiration","upgradeNotificationHeaderText","expirationBanner","upsellMessage","callToActionButton","offerCode","contentTypeGatingEnabled","hoursToAccessExpiration","Math","floor","hoursToDiscountExpiration","messages","firstTimeLearnerDiscountHeader","percentage","jsx","ExpirationCountdown","hoursToExpiration","type","accessExpirationHeader","AccessExpirationDateBanner","UpsellFarAwayCardContent","isFBE","accessExpirationUrgentHeader","UpsellFBESoonCardContent","accessExpirationPastHeader","PastExpirationDateBanner","PastExpirationCardContent","pursueCertificateMessage","Button","variant","onClick","href","block","children","pastExpirationCallToActionLabel","UpgradeButton","className","discountCodeMessage","code","classNames","jsxs","IconButton","src","Close","size","iconAs","Icon","alt","closeAlt","propTypes","PropTypes","string","isRequired","func","defaultProps","_default","exports"],"sources":["../../src/upgrade-notification/DefaultUpgradeNotification.jsx"],"sourcesContent":["/* eslint import/no-unresolved: 0 */\nimport React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { sendTrackEvent, sendTrackingLogEvent } from '@edx/frontend-platform/analytics';\nimport { Button, Icon, IconButton } from '@openedx/paragon';\nimport { Close } from '@openedx/paragon/icons';\nimport { UpgradeButton } from '@src/generic/upgrade-button';\nimport { useModel } from '@src/generic/model-store';\n\nimport CertificatePreview from './certificate-preview';\nimport {\n ExpirationCountdown,\n AccessExpirationDateBanner,\n PastExpirationCardContent,\n PastExpirationDateBanner,\n UpsellFarAwayCardContent,\n UpsellFBESoonCardContent,\n} from './generic';\nimport messages from './messages';\n\nconst DefaultUpgradeNotification = ({\n id,\n courseId,\n setNotificationCurrentState,\n toggleSidebar,\n}) => {\n const pluginLocationId = id;\n const { formatMessage } = useIntl();\n const {\n org,\n userTimezone,\n verifiedMode,\n } = useModel('courseHomeMeta', courseId);\n\n const {\n marketingUrl,\n } = useModel('coursewareMeta', courseId);\n\n const {\n accessExpiration,\n datesBannerInfo,\n offer,\n timeOffsetMillis,\n } = useModel('outline', courseId);\n\n const dateNow = Date.now();\n const timezoneFormatArgs = userTimezone ? { timeZone: userTimezone } : {};\n const correctedTime = new Date(dateNow + timeOffsetMillis);\n const accessExpirationDate = accessExpiration ? new Date(accessExpiration.expirationDate) : null;\n const pastExpirationDeadline = accessExpiration ? new Date(dateNow) > accessExpirationDate : false;\n const shouldDisplayBorder = pluginLocationId.includes('outline');\n const upsellPageName = pluginLocationId === 'outline_tab_notifications' ? 'course_home' : 'in_course';\n const setupgradeNotificationCurrentState = setNotificationCurrentState;\n\n const eventProperties = {\n org_key: org,\n courserun_key: courseId,\n };\n\n const promotionEventProperties = {\n creative: 'sidebarupsell',\n name: 'In-Course Verification Prompt',\n position: 'sidebar-message',\n promotion_id: 'courseware_verified_certificate_upsell',\n ...eventProperties,\n };\n\n useEffect(() => {\n sendTrackingLogEvent('edx.bi.course.upgrade.sidebarupsell.displayed', eventProperties);\n sendTrackEvent('Promotion Viewed', promotionEventProperties);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!verifiedMode) {\n return null;\n }\n\n const logClick = () => {\n sendTrackingLogEvent('edx.bi.course.upgrade.sidebarupsell.clicked', eventProperties);\n sendTrackingLogEvent('edx.course.enrollment.upgrade.clicked', {\n ...eventProperties,\n location: 'sidebar-message',\n });\n sendTrackEvent('Promotion Clicked', promotionEventProperties);\n sendTrackEvent('edx.bi.ecommerce.upsell_links_clicked', {\n ...eventProperties,\n linkCategory: 'green_upgrade',\n linkName: `${upsellPageName}_green`,\n linkType: 'button',\n pageName: upsellPageName,\n });\n };\n\n const logClickPastExpiration = () => {\n sendTrackEvent('edx.bi.ecommerce.upgrade_notification.past_expiration.button_clicked', {\n ...eventProperties,\n linkCategory: 'upgrade_notification',\n linkName: `${upsellPageName}_course_details`,\n linkType: 'button',\n pageName: upsellPageName,\n });\n };\n\n /*\n There are 5 parts that change in the upgrade card:\n upgradeNotificationHeaderText\n expirationBanner\n upsellMessage\n callToActionButton\n offerCode\n */\n let upgradeNotificationHeaderText;\n let expirationBanner;\n let upsellMessage;\n let callToActionButton;\n let offerCode;\n\n if (!!accessExpiration && !!datesBannerInfo?.contentTypeGatingEnabled) {\n const hoursToAccessExpiration = Math.floor((accessExpirationDate - correctedTime) / 1000 / 60 / 60);\n\n if (hoursToAccessExpiration >= (7 * 24)) {\n if (offer) { // countdown to the first purchase discount if there is one\n const hoursToDiscountExpiration = Math.floor((new Date(offer.expirationDate) - correctedTime) / 1000 / 60 / 60);\n upgradeNotificationHeaderText = formatMessage(\n messages.firstTimeLearnerDiscountHeader,\n { percentage: (offer.percentage) },\n );\n expirationBanner = (\n <ExpirationCountdown\n courseId={courseId}\n hoursToExpiration={hoursToDiscountExpiration}\n setupgradeNotificationCurrentState={setupgradeNotificationCurrentState}\n type=\"offer\"\n />\n );\n } else {\n upgradeNotificationHeaderText = formatMessage(messages.accessExpirationHeader);\n expirationBanner = (\n <AccessExpirationDateBanner\n courseId={courseId}\n accessExpirationDate={accessExpirationDate}\n timezoneFormatArgs={timezoneFormatArgs}\n setupgradeNotificationCurrentState={setupgradeNotificationCurrentState}\n />\n );\n }\n upsellMessage = <UpsellFarAwayCardContent isFBE />;\n } else if (hoursToAccessExpiration < (7 * 24) && hoursToAccessExpiration >= 0) {\n // more urgent messaging if there's less than 7 days left to access expiration\n upgradeNotificationHeaderText = formatMessage(messages.accessExpirationUrgentHeader);\n expirationBanner = (\n <ExpirationCountdown\n courseId={courseId}\n hoursToExpiration={hoursToAccessExpiration}\n setupgradeNotificationCurrentState={setupgradeNotificationCurrentState}\n type=\"access\"\n />\n );\n upsellMessage = (\n <UpsellFBESoonCardContent\n accessExpirationDate={accessExpirationDate}\n timezoneFormatArgs={timezoneFormatArgs}\n />\n );\n } else { // access expiration deadline has passed\n upgradeNotificationHeaderText = formatMessage(messages.accessExpirationPastHeader);\n expirationBanner = (\n <PastExpirationDateBanner\n courseId={courseId}\n accessExpirationDate={accessExpirationDate}\n timezoneFormatArgs={timezoneFormatArgs}\n setupgradeNotificationCurrentState={setupgradeNotificationCurrentState}\n />\n );\n upsellMessage = (\n <PastExpirationCardContent />\n );\n }\n } else { // FBE is turned off\n upgradeNotificationHeaderText = formatMessage(messages.pursueCertificateMessage);\n upsellMessage = (<UpsellFarAwayCardContent />);\n }\n\n if (pastExpirationDeadline) {\n callToActionButton = (\n <Button\n variant=\"primary\"\n onClick={logClickPastExpiration}\n href={marketingUrl}\n block\n >\n {formatMessage(messages.pastExpirationCallToActionLabel)}\n </Button>\n );\n } else {\n callToActionButton = (\n <UpgradeButton\n offer={offer}\n onClick={logClick}\n verifiedMode={verifiedMode}\n block\n />\n );\n }\n\n if (offer) { // if there's a first purchase discount, message the code at the bottom\n offerCode = (\n <div className=\"text-center discount-info\">\n {formatMessage(\n messages.discountCodeMessage,\n {\n code: (<span className=\"font-weight-bold\">{offer.code}</span>),\n },\n )}\n </div>\n );\n }\n\n return (\n <section className={classNames('upgrade-notification small', { 'pgn__card pgn__card-light card mb-4 rounded': shouldDisplayBorder })}>\n <div id=\"courseHome-upgradeNotification\">\n <CertificatePreview courseId={courseId} />\n <h2\n className={classNames('h5 upgrade-notification-header', {\n 'd-flex align-items-center mr-2 ml-4 my-1.5 font-size-18': !!toggleSidebar,\n })}\n id=\"outline-sidebar-upgrade-header\"\n >\n {upgradeNotificationHeaderText}\n {!!toggleSidebar && (\n <div className=\"d-inline-flex ml-auto\">\n <IconButton\n src={Close}\n size=\"sm\"\n iconAs={Icon}\n onClick={toggleSidebar}\n className=\"icon-hover\"\n alt={formatMessage(messages.closeAlt)}\n />\n </div>\n )}\n </h2>\n {expirationBanner}\n <div className=\"upgrade-notification-message\">\n {upsellMessage}\n </div>\n <div className=\"upgrade-notification-button\">\n {callToActionButton}\n </div>\n {offerCode}\n </div>\n </section>\n );\n};\n\nDefaultUpgradeNotification.propTypes = {\n id: PropTypes.string.isRequired,\n courseId: PropTypes.string.isRequired,\n setNotificationCurrentState: PropTypes.func,\n toggleSidebar: PropTypes.func,\n};\n\nDefaultUpgradeNotification.defaultProps = {\n setNotificationCurrentState: null,\n toggleSidebar: null,\n};\n\nexport default DefaultUpgradeNotification;\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,K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