@subiz/widget-v4 4.0.99 → 4.1.1

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 (75) hide show
  1. package/compiled_src/call/call.js +3 -3
  2. package/compiled_src/chatbox/AgentsAvatar.js +0 -3
  3. package/compiled_src/chatbox/ButtonAttachments.js +0 -1
  4. package/compiled_src/chatbox/ChatButton.js +0 -5
  5. package/compiled_src/chatbox/DropdownSelect.js +4 -5
  6. package/compiled_src/chatbox/Event.js +0 -2
  7. package/compiled_src/chatbox/Events.js +1 -9
  8. package/compiled_src/chatbox/FormAttachment.js +0 -1
  9. package/compiled_src/chatbox/GenericTemplateAttachments.js +0 -3
  10. package/compiled_src/chatbox/Header.js +5 -2
  11. package/compiled_src/chatbox/InfoMessage.js +0 -1
  12. package/compiled_src/chatbox/MessageInput.js +3 -3
  13. package/compiled_src/chatbox/Order.js +3 -1
  14. package/compiled_src/chatbox/OrderAttachments.js +0 -1
  15. package/compiled_src/chatbox/QuickReplies.js +0 -1
  16. package/compiled_src/chatbox/Rating.js +3 -1
  17. package/compiled_src/chatbox/TextMessage.js +0 -2
  18. package/compiled_src/chatbox/Typing.js +0 -1
  19. package/compiled_src/chatbox/Widget.js +4 -18
  20. package/compiled_src/chatbox/main.js +0 -1
  21. package/compiled_src/chatbox/releaseAnimation.js +0 -1
  22. package/compiled_src/contact/contact.js +3 -7
  23. package/compiled_src/lib.js +7 -18
  24. package/compiled_src/notif/notif.js +3 -3
  25. package/compiled_src/order/address_picker.js +4 -6
  26. package/compiled_src/order/index.js +0 -2
  27. package/compiled_src/order/order.js +4 -7
  28. package/compiled_src/plugin.js +0 -9
  29. package/compiled_src/popup/countdown.js +3 -5
  30. package/compiled_src/popup/popup.js +3 -8
  31. package/compiled_src/popup/tick.core.commonjs.js +16 -158
  32. package/compiled_src/popup/tick.view.flip.commonjs.js +0 -25
  33. package/compiled_src/store/api.js +3 -9
  34. package/compiled_src/store/api_fake.js +3 -3
  35. package/compiled_src/store/store.js +5 -48
  36. package/compiled_src/util/campaign.js +0 -5
  37. package/compiled_src/util/common.js +0 -27
  38. package/compiled_src/util/extractor.js +0 -1
  39. package/compiled_src/util/gate.test.js +0 -1
  40. package/compiled_src/util/index.js +0 -1
  41. package/compiled_src/util/op.js +0 -1
  42. package/compiled_src/util/order.js +0 -4
  43. package/dist/132.js +26 -89
  44. package/dist/184d8eee275.132.js +1 -0
  45. package/dist/184d8eee275.178.js +1 -0
  46. package/dist/184d8eee275.213.js +1 -0
  47. package/dist/184d8eee275.335.js +1 -0
  48. package/dist/184d8eee275.362.js +1 -0
  49. package/dist/184d8eee275.441.js +1 -0
  50. package/dist/184d8eee275.605.js +1 -0
  51. package/dist/184d8eee275.678.js +1 -0
  52. package/dist/184d8eee275.782.js +1 -0
  53. package/dist/184d8eee275.app.js +1 -0
  54. package/dist/184d8eee275.index.html +26 -0
  55. package/dist/184d8eee275.library.html +26 -0
  56. package/dist/184d8eee275.library.js +1 -0
  57. package/dist/184d8eee275.preview.html +759 -0
  58. package/dist/184d8eee275.preview.js +1 -0
  59. package/dist/184d8eee275.screenshoot.js +1 -0
  60. package/dist/213.js +22 -198
  61. package/dist/335.js +3 -7
  62. package/dist/605.js +3 -3
  63. package/dist/HASH +1 -1
  64. package/dist/assets/img/award1a.1a58e10.png +0 -0
  65. package/dist/assets/img/award3a.3b74423.png +0 -0
  66. package/dist/assets/img/award4a.ed6ccd4.png +0 -0
  67. package/dist/assets/img/award5.39eb7ae.png +0 -0
  68. package/dist/assets/img/examplte_logo.f86535f.svg +1 -0
  69. package/dist/assets/img/main-service1.d536cc2.png +0 -0
  70. package/dist/assets/img/main-service2.9b99549.png +0 -0
  71. package/dist/screenshoot.html +1 -1
  72. package/dist/screenshoot.js +14 -130
  73. package/package.json +4 -4
  74. package/src/chatbox/Header.js +9 -3
  75. package/src/lib.js +5 -15
package/dist/335.js CHANGED
@@ -13,13 +13,13 @@ __webpack_require__.r(__webpack_exports__);
13
13
  /* harmony import */ var _util_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4494);
14
14
  /* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6400);
15
15
  /* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2493);
16
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
-
16
+ 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; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
19
 
19
20
 
20
21
 
21
22
  let CSS = (() => __webpack_require__.e(/* import() */ 678).then(__webpack_require__.bind(__webpack_require__, 2678)))();
22
-
23
23
  class Contact extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
24
24
  constructor(props) {
25
25
  super(props);
@@ -202,7 +202,6 @@ class Contact extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
202
202
  }));
203
203
  return (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", null, icon);
204
204
  }
205
-
206
205
  renderButtons(buttons) {
207
206
  if (_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].size */ .Z.size(buttons) === 0) return null;
208
207
  return _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].map */ .Z.map(buttons, button => {
@@ -327,7 +326,6 @@ async function runCampaign(byTrigger) {
327
326
  ran = true;
328
327
  pageIndex = 0;
329
328
  let page = sb.get(camp, `pages.${pageIndex}`) || {};
330
-
331
329
  showPage(page);
332
330
  triggerType = byTrigger;
333
331
  let {
@@ -340,7 +338,6 @@ function eq(a, b) {
340
338
  }
341
339
  function replaceCssVariable(css, setting) {
342
340
  var tokens = [css];
343
-
344
341
  tokens = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].tokenize */ .Z.tokenize(tokens, "'@font_family'");
345
342
  tokens = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].tokenize */ .Z.tokenize(tokens, "'@font_size'");
346
343
  tokens = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].tokenize */ .Z.tokenize(tokens, "'@text_color'");
@@ -357,7 +354,6 @@ function replaceCssVariable(css, setting) {
357
354
  ret.push(item);
358
355
  continue;
359
356
  }
360
-
361
357
  var path = item.type.substr(2, item.type.length - 3);
362
358
  var val = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(setting, path) || _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].get */ .Z.get(DEFVAL, path) || '';
363
359
  ret.push(val);
package/dist/605.js CHANGED
@@ -11,12 +11,13 @@ __webpack_require__.r(__webpack_exports__);
11
11
  /* harmony import */ var _util_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4494);
12
12
  /* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6400);
13
13
  /* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2493);
14
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ 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; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
17
 
16
18
 
17
19
 
18
20
  let notifCSS = (() => __webpack_require__.e(/* import() */ 362).then(__webpack_require__.bind(__webpack_require__, 362)))();
19
-
20
21
  class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
21
22
  constructor(props) {
22
23
  super(props);
@@ -42,7 +43,6 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
42
43
  }));
43
44
  });
44
45
  }
45
-
46
46
  setOver(over) {
47
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
  }
package/dist/HASH CHANGED
@@ -1 +1 @@
1
- 184d8ed9d53
1
+ 184d8eee275
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="2500" height="2500" viewBox="0 0 192.756 192.756"><g fill-rule="evenodd" clip-rule="evenodd"><path fill="#fff" fill-opacity="0" d="M0 0h192.756v192.756H0V0z"/><path d="M67.813 59.343c2.447-1.596 6.277 2.128 8.192.532 2.021-1.595.106-5.212 1.276-7.127.426-.852 1.915-.319 2.766 0 .745.213 1.383.532 1.915.744.638.32 1.277.532 1.809.532s.851-.425.958-.638c.958-1.809 1.064-3.831 1.596-5.64.106-.425.639-.531.958-.318 1.596.744 3.617 3.724 4.363 2.447.851-1.383 1.383-2.979 1.701-4.575.319-2.234.319-4.468.213-6.703 0-.106-.106-.319-.213-.425-1.489-1.17-9.042 2.234-9.788 2.66-.532.318-1.064.531-1.596.851-5 2.873-9.788 5.958-14.15 9.469-.851.744-5.852 5.213-8.192 8.191-1.063 1.383-1.595 2.34-1.17 2.766.426.32.746.639 1.17.852 1.17.851 2.34 1.702 3.511 2.34 10.32 5.107.745-3.298 4.681-5.958z"/><path d="M101.219 92.217c-2.234-4.575-5.212-8.617-7.873-12.979-2.979-4.788-5.745-9.788-7.021-15.853-.426-2.234.958-11.595-3.404-5-.319.425-.639.957-.958 1.383-.852 1.596-1.596 3.085-2.234 4.575-2.766 6.702-2.873 15-.319 21.916a42.403 42.403 0 0 0 2.553 5.426c3.192 5.533 7.447 10.426 11.383 15.744 3.085 4.256 5.958 8.938 7.66 14.469.107.213.213.533.213.746.533 2.234.426 4.256 1.064 6.17.107.426.852-.318.957-.639 2.021-6.914 2.34-15.426 1.916-22.553-.426-5.106-1.916-9.362-3.937-13.405z"/><path d="M93.346 122.432c-3.617-3.936-7.66-7.873-11.383-12.021a62.872 62.872 0 0 1-6.596-8.512c-4.894-7.873-4.468-14.681-3.723-23.831 0-.532 2.446-12.661 1.17-12.235-4.788 1.703-9.575 14.256-10.639 18.512-4.042 17.023.957 31.597 12.873 43.513 2.766 2.766 5 5.213 6.916 7.447 5.638 6.594 8.192 12.02 11.383 21.383.639 2.021 1.276 4.148 2.022 6.596.212.426.638.531.638.531a10.655 10.655 0 0 0 2.234-2.764c1.277-2.342 2.234-4.469 2.979-6.598 2.979-7.979 2.447-14.467 0-20.213-1.81-4.256-4.681-8.086-7.874-11.808zM56.536 64.663c-.639-.318-1.17-.425-1.809-.213-.958.32-1.808 1.49-2.554 2.341-1.276 1.809-4.361 4.042-3.084 5.319.638.745 3.191 1.596 5.638 2.233 1.809.533 3.618.852 4.894.852.426-.105.746-.105 1.064-.213.319-.212-.212-2.659-1.064-5.106-.957-2.341-2.127-4.788-3.085-5.213zM107.283 92.749c1.064-2.234 1.703-4.893 2.021-7.554.213-1.808.32-3.724 0-5.532 0-.319-.105-.638-.105-.958-1.385-7.021-4.15-13.724-5.639-20.319-1.277-5.426 2.871-10.319 1.275-15.64-.957-2.979-2.66-5.212-3.191-7.872-.105-.958.107-1.915.639-2.234.639-.213 1.064.425 1.277.637 1.383 1.809 2.127 3.725 3.404 5.001 1.275 1.276.744-7.766.637-8.086-.318-1.915-.637-3.936-1.596-5.638-1.062-2.021-2.871-3.085-4.787-3.405-3.51-.425-7.234 1.916-7.66 6.171a12.17 12.17 0 0 0 .319 4.787c.531 2.234 1.809 4.043 2.447 5.958.745 2.127.958 5.213.319 7.447-.852 2.979-2.447 5.532-3.085 8.191-.106.319-.213.639-.213.958-.425 2.127-.425 4.362-.106 6.17 0 .212 0 .426.106.532.532 3.084 1.276 6.064 2.341 8.936 1.489 3.937 3.831 7.554 5.532 11.383.32.532.533 1.17.744 1.703 1.49 3.723 2.023 7.234 3.193 10.639.533 1.598 1.915-.637 2.128-1.275zM126.113 55.194c-2.447-1.595-3.936 1.383-3.191 5.001.32 1.383 1.172 2.553 1.596 3.51.32.532.959.745 1.596.745 1.277 0 2.66-.531 3.086-1.383.957-1.808-.107-4.468-1.277-5.958-.64-.851-1.171-1.489-1.81-1.915z"/><path d="M132.816 16.15c-2.129-1.063-4.363-1.915-6.703-2.766-5.318-1.915-10.957-3.298-16.809-4.148-2.66-.426-5.318-.746-8.086-.852-1.596-.107-3.191-.107-4.787-.107h-3.085c-3.829.107-7.66.532-11.383 1.17a83.955 83.955 0 0 0-22.342 6.915c-1.702.745-3.297 1.489-4.894 2.341C27.067 33.598 8.13 62.961 8.13 96.473c0 33.619 18.937 62.875 46.597 77.77 1.596.852 3.192 1.703 4.894 2.447a92.49 92.49 0 0 0 22.342 6.914c2.447.318 4.788.639 7.234.852 2.66.213 3.724-.959 4.149-2.66.319-1.596.106-3.617 0-5.426v-.424c-.531-7.129-5.532-15.746-11.383-23.832-7.234-9.893-15.852-19.148-19.15-23.938a182.023 182.023 0 0 1-3.192-5.105 52.215 52.215 0 0 1-4.894-10.639c-1.808-6.064-2.234-12.342-1.915-20.214.213-5.426 2.234-7.766 0-12.234-.957-2.021-1.702-3.83-3.085-5.001-.958-.851-2.235-.531-3.192-.318-1.596.426-3.511 4.468-4.042 5.957-.638 1.49-2.127 3.937-.958 4.362 1.063.319 11.809-1.383 10.32 1.277-17.448 31.916-7.553 48.406 2.872 61.172 1.703 2.021 3.298 3.83 4.894 5.746 4.681 5.639 8.724 10.957 9.043 17.127.213 3.299.213 5.107-4.043 3.299-1.702-.744-3.404-1.488-5-2.34-1.702-.744-3.297-1.596-4.894-2.555-24.894-14.469-41.704-41.383-41.704-72.236 0-30.746 16.81-57.768 41.704-72.237 1.596-.958 3.192-1.809 4.894-2.553 6.916-3.511 14.469-5.958 22.342-7.341a100.837 100.837 0 0 1 11.383-1.276h3.085c1.596 0 3.191 0 4.787.106 2.768.213 5.426.426 8.086.851 5.852.958 11.49 2.447 16.809 4.469 2.34.957 4.574 1.915 6.703 2.979 27.873 13.511 47.023 42.13 47.023 75.003 0 11.277-1.703 21.277-5.959 30.959-8.51 19.576-23.512 30.107-41.064 37.127-2.129.852-4.363 1.703-6.703 2.447-5.426 1.918-11.064 3.514-16.809 5.109-.105 0-.213.105-.318.105-1.172.318-1.809.531-2.66 6.064-.852 5.426-.533 6.062 2.979 5.533.213 0 .32-.107.426-.107 5.639-.852 11.17-2.234 16.383-4.15 2.34-.852 4.574-1.703 6.703-2.66 30.533-13.938 51.809-44.787 51.809-80.428-.001-35.641-21.276-66.387-51.81-80.324z"/><path d="M143.348 84.664c-2.553 1.383-6.49.213-9.148 2.233-.957.745-.744 4.043-.32 5 .852 1.596 2.555 2.128 3.512 3.085 1.277 1.49 1.703 3.511 3.086 4.681.957.852 5.213 2.766 6.277.957 3.51-5.851 4.893-3.615 9.041-7.872 2.234-2.128-1.062-15.106-4.359-17.128-2.555-1.702-5.961-1.702-7.768-3.83-1.809-1.916-1.383-5-2.234-7.128-1.064-2.659-1.916-5.212-3.191-7.553-1.385-2.873-3.299-4.894-5.426-6.596-2.234-1.915-4.682-3.404-6.703-5.319-.957-.958-1.809-1.916-2.553-3.086-2.342-4.042.213-12.447-3.086-15-2.34-1.915-5.957 1.17-6.596 3.405-1.277 4.787-3.83 11.064-4.574 16.916a21.339 21.339 0 0 0 0 5.213c.213 1.383.533 2.66 1.17 3.83 1.383 3.192 3.297 6.17 4.682 9.043.531 1.17.531 2.554.318 3.83-1.062 4.362-2.66 4.362-4.467 7.766-.426.958-.639 2.021-.213 2.873 3.084 6.17 9.041 7.766 15.318 7.659 1.277 0 2.447 0 3.723-.212.426 0 .959-.213.959-.533 0-3.936-.32-2.553-2.553-4.787-.746-.745-1.383-1.49-1.49-2.128-.318-.852-.426-1.703-.639-2.553-.318-1.809-.531-3.618-.957-5.32a38.823 38.823 0 0 0-2.234-5.958c-1.383-2.872-3.191-5.425-4.043-8.404-1.596-6.17.426-8.724 6.598-7.554.213.107.424.107.637.213 1.064.319 1.809.958 2.447 1.384 1.488 1.063 2.66 2.021 3.51 3.084.32.532.533.958.746 1.383.426.639.639 1.17.744 1.809.744 2.128 1.277 4.042 1.596 5.958.318 1.808.426 3.405.318 5-.211 2.446-.957 4.681-.957 6.915 0 4.681 5.215-.106 6.598-.319 2.34-.426 3.936 4.468 3.723 5.958-.11 1.382-.641 2.552-1.492 3.085z"/></g></svg>
@@ -4,4 +4,4 @@
4
4
  }
5
5
  body {
6
6
  background: #ddd;
7
- }</style></head><body><script defer="defer" src="./screenshoot.js"></script></body></html>
7
+ }</style></head><body><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/184d8eee275.screenshoot.js"></script></body></html>