@subiz/widget-v4 4.1.37 → 4.1.40

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 (52) hide show
  1. package/compiled_src/chatbox/Typing.js +2 -2
  2. package/compiled_src/chatbox/Widget.js +6 -0
  3. package/compiled_src/lib.js +24 -5
  4. package/compiled_src/popup/popup.js +20 -2
  5. package/compiled_src/store/store.js +8 -0
  6. package/compiled_src/util/campaign.js +6 -2
  7. package/compiled_src/util/common.js +9 -5
  8. package/compiled_src/util/order.js +4 -2
  9. package/compiled_src/util/pubsub.js +6 -3
  10. package/dist/132.js +524 -524
  11. package/dist/18a02a9c54e.132.js +1 -0
  12. package/dist/18a02a9c54e.213.js +1 -0
  13. package/dist/18a02a9c54e.335.js +1 -0
  14. package/dist/18a02a9c54e.441.js +1 -0
  15. package/dist/18a02a9c54e.605.js +1 -0
  16. package/dist/18a02a9c54e.app.js +1 -0
  17. package/dist/{189cbc6136e.index.html → 18a02a9c54e.index.html} +1 -1
  18. package/dist/{189cbc6136e.library.html → 18a02a9c54e.library.html} +1 -1
  19. package/dist/18a02a9c54e.library.js +1 -0
  20. package/dist/{189cbc6136e.preview.html → 18a02a9c54e.preview.html} +1 -1
  21. package/dist/18a02a9c54e.preview.js +1 -0
  22. package/dist/18a02a9c54e.screenshoot.js +1 -0
  23. package/dist/18a02a9c54e.webview.js +1 -0
  24. package/dist/213.js +98 -98
  25. package/dist/335.js +25 -25
  26. package/dist/441.js +1484 -886
  27. package/dist/605.js +50 -50
  28. package/dist/HASH +1 -1
  29. package/dist/screenshoot.html +1 -1
  30. package/dist/screenshoot.js +437 -394
  31. package/index.html +3 -3
  32. package/package.json +9 -9
  33. package/src/chatbox/Typing.js +2 -3
  34. package/src/chatbox/Widget.js +9 -0
  35. package/src/lib.js +15 -1
  36. package/src/popup/popup.js +23 -3
  37. package/src/store/store.js +10 -1
  38. package/src/util/common.js +9 -3
  39. package/dist/189cbc6136e.132.js +0 -1
  40. package/dist/189cbc6136e.213.js +0 -1
  41. package/dist/189cbc6136e.335.js +0 -1
  42. package/dist/189cbc6136e.441.js +0 -1
  43. package/dist/189cbc6136e.605.js +0 -1
  44. package/dist/189cbc6136e.app.js +0 -1
  45. package/dist/189cbc6136e.library.js +0 -1
  46. package/dist/189cbc6136e.preview.js +0 -1
  47. package/dist/189cbc6136e.screenshoot.js +0 -1
  48. package/dist/189cbc6136e.webview.js +0 -1
  49. /package/dist/{189cbc6136e.178.js → 18a02a9c54e.178.js} +0 -0
  50. /package/dist/{189cbc6136e.362.js → 18a02a9c54e.362.js} +0 -0
  51. /package/dist/{189cbc6136e.678.js → 18a02a9c54e.678.js} +0 -0
  52. /package/dist/{189cbc6136e.782.js → 18a02a9c54e.782.js} +0 -0
package/dist/605.js CHANGED
@@ -32,19 +32,19 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
32
32
  title: '',
33
33
  last_show: 0
34
34
  });
35
- _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.setTimeout(async () => {
35
+ _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setTimeout */ .Z.setTimeout(async () => {
36
36
  let {
37
37
  body: impression
38
38
  } = await this.props.store.sendImpression(this.props.plugin.id);
39
- this.impressionToken = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(impression, 'impression_token') || '';
40
- let image = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props, 'plugin.notification.background_url');
41
- _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.preloadImg(image, () => this.setState({
39
+ this.impressionToken = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(impression, 'impression_token') || '';
40
+ let image = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props, 'plugin.notification.background_url');
41
+ _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].preloadImg */ .Z.preloadImg(image, () => this.setState({
42
42
  imageReady: true
43
43
  }));
44
44
  });
45
45
  }
46
46
  setOver(over) {
47
- if (!over) this.mouse_leave = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Date.now();else this.mouse_leave = 0;
47
+ if (!over) this.mouse_leave = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now();else this.mouse_leave = 0;
48
48
  }
49
49
  randomTimestampt() {
50
50
  let random = Math.floor(Math.random() * 5);
@@ -58,10 +58,10 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
58
58
  e.stopPropagation();
59
59
  if (this.props.plugin._dont_follow) return;
60
60
  this.props.store.sendConversion(this.props.plugin.id, null, this.impressionToken);
61
- let url = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props, 'plugin.notification.url');
61
+ let url = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props, 'plugin.notification.url');
62
62
  if (!url) return;
63
63
  if (!url.startsWith('http://') && !url.startsWith('https://')) url = '//' + url;
64
- let new_tab = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props, 'plugin.notification.new_tab', false);
64
+ let new_tab = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props, 'plugin.notification.new_tab', false);
65
65
  if (new_tab) return window.open(url);
66
66
  window.location.href = url;
67
67
  }
@@ -98,24 +98,24 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
98
98
  }
99
99
  async waitForT() {
100
100
  if (this.props.t) return;
101
- await _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.sleep(100);
101
+ await _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].sleep */ .Z.sleep(100);
102
102
  return this.waitForT();
103
103
  }
104
104
  async setClose(close) {
105
105
  await this.waitForT();
106
106
  if (!this.props.t) return;
107
107
  if (!close) {
108
- _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.clearTimeout(this.lastCloseTimeout);
108
+ _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].clearTimeout */ .Z.clearTimeout(this.lastCloseTimeout);
109
109
  this.setState({
110
110
  closeAnimation: false
111
111
  });
112
112
  let timestamp = this.randomTimestampt();
113
- let profiles = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props, 'plugin.notification.profiles', []);
114
- let user = profiles[Math.floor(Math.random() * _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.size(profiles))] || {};
113
+ let profiles = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props, 'plugin.notification.profiles', []);
114
+ let user = profiles[Math.floor(Math.random() * _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].size */ .Z.size(profiles))] || {};
115
115
  if (user.avatar_url && user.avatar_url.startsWith('http')) {
116
- await _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.preloadImg(user.avatar_url);
116
+ await _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].preloadImg */ .Z.preloadImg(user.avatar_url);
117
117
  }
118
- _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.map(_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props.plugin, 'notification.custom_avatar_urls'), url => {
118
+ _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].map */ .Z.map(_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props.plugin, 'notification.custom_avatar_urls'), url => {
119
119
  profiles.push({
120
120
  type: 'person',
121
121
  fullname: randomName(),
@@ -126,48 +126,48 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
126
126
  age: randomAge()
127
127
  });
128
128
  });
129
- let i18n_messages = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props, 'plugin.notification.i18n_message_quill_deltas', []);
130
- let i18n_message = i18n_messages[Math.floor(Math.random() * _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.size(i18n_messages))];
131
- let fallbackmsgs = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props, 'plugin.notification.message_quill_deltas', []);
132
- let fallbackmessage = fallbackmsgs[Math.floor(Math.random() * _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.size(fallbackmsgs))];
133
- let i18n_title = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props, 'plugin.notification.i18n_title_quill_delta');
129
+ let i18n_messages = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props, 'plugin.notification.i18n_message_quill_deltas', []);
130
+ let i18n_message = i18n_messages[Math.floor(Math.random() * _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].size */ .Z.size(i18n_messages))];
131
+ let fallbackmsgs = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props, 'plugin.notification.message_quill_deltas', []);
132
+ let fallbackmessage = fallbackmsgs[Math.floor(Math.random() * _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].size */ .Z.size(fallbackmsgs))];
133
+ let i18n_title = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props, 'plugin.notification.i18n_title_quill_delta');
134
134
  return this.setState({
135
135
  close: false,
136
- last_show: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Date.now(),
136
+ last_show: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now(),
137
137
  timestamp: timestamp,
138
138
  user: user,
139
- title: this.props.t.i18n(i18n_title) || _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props, 'plugin.notification.title_quill_delta'),
139
+ title: this.props.t.i18n(i18n_title) || _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props, 'plugin.notification.title_quill_delta'),
140
140
  message: this.props.t.i18n(i18n_message) || fallbackmessage
141
141
  });
142
142
  }
143
143
  this.setState({
144
144
  closeAnimation: true
145
145
  });
146
- this.mouse_leave = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Date.now();
147
- this.lastCloseTimeout = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.setTimeout(() => this.setState({
146
+ this.mouse_leave = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now();
147
+ this.lastCloseTimeout = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setTimeout */ .Z.setTimeout(() => this.setState({
148
148
  close: true,
149
149
  closeAnimation: false
150
150
  }), 150);
151
- if (this.props.plugin._dont_close) _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.setTimeout(() => this.setState({
151
+ if (this.props.plugin._dont_close) _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setTimeout */ .Z.setTimeout(() => this.setState({
152
152
  closeAnimation: false,
153
153
  close: false
154
154
  }), 1000);
155
155
  }
156
156
  async refreshCSS() {
157
157
  let plugins = this.props.store.matchPlugin();
158
- let found = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.find(plugins, plugin => plugin.id === this.props.plugin.id);
158
+ let found = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].find */ .Z.find(plugins, plugin => plugin.id === this.props.plugin.id);
159
159
  if (!found) return;
160
160
  let css = (await notifCSS).default.default.toString();
161
- _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.setCss(this.props.plugin.id, this.$cssStyleDiv, css);
161
+ _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setCss */ .Z.setCss(this.props.plugin.id, this.$cssStyleDiv, css);
162
162
  this.setClose(this.state.close);
163
163
  }
164
164
  componentWillUnmount() {
165
- _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.clearInterval(this.interval);
166
- _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.setCss(this.props.plugin.id, this.$cssStyleDiv, '');
165
+ _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].clearInterval */ .Z.clearInterval(this.interval);
166
+ _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setCss */ .Z.setCss(this.props.plugin.id, this.$cssStyleDiv, '');
167
167
  }
168
168
  async componentDidMount() {
169
169
  this.setState({
170
- last_show: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Date.now()
170
+ last_show: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now()
171
171
  });
172
172
  this.$cssStyleDiv = document.getElementById('subiz-style-for-' + this.props.plugin.id);
173
173
  if (!this.$cssStyleDiv) {
@@ -178,20 +178,20 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
178
178
  }
179
179
  this.props.store.onResetCSS(this, () => this.refreshCSS());
180
180
  await this.refreshCSS();
181
- this.interval = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.setInterval(() => {
181
+ this.interval = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setInterval */ .Z.setInterval(() => {
182
182
  if (this.props._destroy) return this.componentWillUnmount();
183
183
  let mouseleave = this.mouse_leave;
184
- if (mouseleave === 0) mouseleave = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Date.now();
185
- if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Date.now() - mouseleave < 1000) return;
184
+ if (mouseleave === 0) mouseleave = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now();
185
+ if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now() - mouseleave < 1000) return;
186
186
  if (!this.state.close && !this.props.plugin._dont_close) {
187
- if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Date.now() - this.state.last_show > 8000) return this.setClose(true);
187
+ if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now() - this.state.last_show > 8000) return this.setClose(true);
188
188
  return;
189
189
  }
190
- if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Date.now() - this.state.last_show > this.props.plugin.notification.interval_sec) {
190
+ if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now() - this.state.last_show > this.props.plugin.notification.interval_sec) {
191
191
  return this.setClose(false);
192
192
  }
193
193
  }, 1000);
194
- _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.setTimeout(() => {
194
+ _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setTimeout */ .Z.setTimeout(() => {
195
195
  this.setState({
196
196
  cssready: true
197
197
  });
@@ -199,21 +199,21 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
199
199
  }, 50);
200
200
  }
201
201
  renderTextFromQuillDelta(quilldelta, profile) {
202
- let qd = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.parseJSON(quilldelta);
202
+ let qd = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].parseJSON */ .Z.parseJSON(quilldelta);
203
203
  if (!qd || !qd.ops) return null;
204
- let out = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.map(qd.ops, op => {
204
+ let out = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].map */ .Z.map(qd.ops, op => {
205
205
  let out = null;
206
206
  if (!op.insert) return null;
207
207
  if (typeof op.insert == 'string') out = op.insert;
208
- if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(op, 'insert.dynamicField')) {
209
- let key = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(op, 'insert.dynamicField.key');
208
+ if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(op, 'insert.dynamicField')) {
209
+ let key = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(op, 'insert.dynamicField.key');
210
210
  if (key === 'user.fullname') out = profile.fullname;
211
211
  if (key === 'user.email') out = profile.email;
212
212
  if (key === 'user.address') out = profile.address;
213
213
  if (key === 'user.phone') out = profile.phone;
214
214
  }
215
- if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(op, 'attributes.bold')) out = (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("b", null, out);
216
- if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(op, 'attributes.italic')) out = (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("b", null, out);
215
+ if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(op, 'attributes.bold')) out = (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("b", null, out);
216
+ if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(op, 'attributes.italic')) out = (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("b", null, out);
217
217
  return out;
218
218
  }).filter(a => a);
219
219
  if (out.length == 1 && (out[0] == '\n' || out[0] == '')) return [];
@@ -225,11 +225,11 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
225
225
  if (!this.state.imageReady) return null;
226
226
  if (this.state.close) return null;
227
227
  if (!this.state.message) return null;
228
- let notif = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(this.props.plugin, 'notification', {});
228
+ let notif = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(this.props.plugin, 'notification', {});
229
229
  if (!notif) return null;
230
230
  let animation = '';
231
- let pos = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(notif, 'position', 'bottom-left');
232
- if (this.props.mobile) pos = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(notif, 'mobile_position', pos);
231
+ let pos = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(notif, 'position', 'bottom-left');
232
+ if (this.props.mobile) pos = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(notif, 'mobile_position', pos);
233
233
  if (pos === 'top-left' || pos === 'top-right') animation = 'fadeInDown';else if (pos === 'top-center') animation = 'fadeInDownCenter';else if (pos === 'bottom-center') animation = 'fadeInUpCenter';else if (pos === 'bottom-right') {
234
234
  animation = 'fadeInUpBig';
235
235
  } else {
@@ -238,7 +238,7 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
238
238
  }
239
239
  let user = this.state.user || {};
240
240
  let subtextStyle = notif.subtext_style || {};
241
- if (subtextStyle.color === undefined) subtextStyle.color = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.get(notif, 'message_style.color', 'black');
241
+ if (subtextStyle.color === undefined) subtextStyle.color = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(notif, 'message_style.color', 'black');
242
242
  let st = 'position: fixed !important; z-index: 1000000000 !important';
243
243
  if (this.props.plugin._preview) st = 'position: absolute !important;';
244
244
  if (this.state.closeAnimation) animation = 'fadeOut';
@@ -250,11 +250,11 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
250
250
  });
251
251
  let $time = (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
252
252
  class: "notif_time",
253
- style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.js2css(notif.subtext_style)
253
+ style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].js2css */ .Z.js2css(notif.subtext_style)
254
254
  }, this.state.timestamp);
255
255
  let $title = this.renderTextFromQuillDelta(this.state.title, user);
256
256
  let $message = this.renderTextFromQuillDelta(this.state.message, user);
257
- if (!_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.size($title) && !_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.size($message)) $time = null;
257
+ if (!_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].size */ .Z.size($title) && !_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].size */ .Z.size($message)) $time = null;
258
258
  return (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
259
259
  class: animation + ' notif' + ' notif__' + pos,
260
260
  onClick: e => this.onClick(e),
@@ -267,18 +267,18 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
267
267
  alt: "notification background",
268
268
  class: "notif_bg",
269
269
  src: notif.background_url,
270
- style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.js2css(notif.background_style)
270
+ style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].js2css */ .Z.js2css(notif.background_style)
271
271
  }), this.renderCloseButton(), (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
272
272
  class: "notif_avatar",
273
- style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.js2css(notif.avatar_style)
273
+ style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].js2css */ .Z.js2css(notif.avatar_style)
274
274
  }, $avatar), (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
275
275
  class: "notif_body"
276
276
  }, (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
277
277
  class: "notif_title",
278
- style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.js2css(notif.title_style)
278
+ style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].js2css */ .Z.js2css(notif.title_style)
279
279
  }, $title), (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
280
280
  class: "notif_message",
281
- style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.js2css(notif.message_style)
281
+ style: _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].js2css */ .Z.js2css(notif.message_style)
282
282
  }, $message), $time)));
283
283
  }
284
284
  }
package/dist/HASH CHANGED
@@ -1 +1 @@
1
- 189cbc6136e
1
+ 18a02a9c54e
@@ -4,4 +4,4 @@
4
4
  }
5
5
  body {
6
6
  background: #ddd;
7
- }</style></head><body><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/189cbc6136e.screenshoot.js"></script></body></html>
7
+ }</style></head><body><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/18a02a9c54e.screenshoot.js"></script></body></html>