@subiz/widget-v4 4.1.125 → 4.1.126

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 (58) hide show
  1. package/assets/less/avatar.less +7 -3
  2. package/assets/less/widget_header.less +29 -7
  3. package/compiled_src/chatbox/ChatButton.js +12 -3
  4. package/compiled_src/chatbox/Header.js +12 -1
  5. package/compiled_src/util/common.js +15 -0
  6. package/dist/127.js +273 -0
  7. package/dist/132.js +2575 -6434
  8. package/dist/185.js +1885 -0
  9. package/dist/1964f21ffc8.127.js +1 -0
  10. package/dist/1964f21ffc8.132.js +1 -0
  11. package/dist/1964f21ffc8.185.js +1 -0
  12. package/dist/1964f21ffc8.27.js +1 -0
  13. package/dist/1964f21ffc8.278.js +1 -0
  14. package/dist/1964f21ffc8.459.js +1 -0
  15. package/dist/1964f21ffc8.490.js +1 -0
  16. package/dist/1964f21ffc8.74.js +1 -0
  17. package/dist/1964f21ffc8.997.js +1 -0
  18. package/dist/1964f21ffc8.app.js +1 -0
  19. package/dist/{18a02a9c54e.index.html → 1964f21ffc8.index.html} +28 -4
  20. package/dist/{18a02a9c54e.library.html → 1964f21ffc8.library.html} +28 -4
  21. package/dist/1964f21ffc8.library.js +1 -0
  22. package/dist/{18a02a9c54e.preview.html → 1964f21ffc8.preview.html} +1 -1
  23. package/dist/1964f21ffc8.preview.js +1 -0
  24. package/dist/1964f21ffc8.webview.js +1 -0
  25. package/dist/27.js +107 -0
  26. package/dist/278.js +406 -0
  27. package/dist/459.js +107 -0
  28. package/dist/{605.js → 490.js} +82 -82
  29. package/dist/{335.js → 74.js} +35 -35
  30. package/dist/{678.js → 997.js} +6 -6
  31. package/dist/HASH +1 -1
  32. package/dist/assets/img/{subiz-mono.877e9f5.svg → subiz-mono.8fbc067.svg} +1 -1
  33. package/dist/malicious-app.js +6 -4
  34. package/dist/screenshoot.html +1 -1
  35. package/dist/screenshoot.js +9619 -4865
  36. package/package.json +1 -1
  37. package/src/chatbox/ChatButton.js +12 -1
  38. package/src/chatbox/Header.js +15 -0
  39. package/src/util/common.js +16 -0
  40. package/dist/178.js +0 -406
  41. package/dist/18a02a9c54e.132.js +0 -1
  42. package/dist/18a02a9c54e.178.js +0 -1
  43. package/dist/18a02a9c54e.213.js +0 -1
  44. package/dist/18a02a9c54e.335.js +0 -1
  45. package/dist/18a02a9c54e.362.js +0 -1
  46. package/dist/18a02a9c54e.441.js +0 -1
  47. package/dist/18a02a9c54e.605.js +0 -1
  48. package/dist/18a02a9c54e.678.js +0 -1
  49. package/dist/18a02a9c54e.782.js +0 -1
  50. package/dist/18a02a9c54e.app.js +0 -1
  51. package/dist/18a02a9c54e.library.js +0 -1
  52. package/dist/18a02a9c54e.preview.js +0 -1
  53. package/dist/18a02a9c54e.screenshoot.js +0 -1
  54. package/dist/18a02a9c54e.webview.js +0 -1
  55. package/dist/213.js +0 -2780
  56. package/dist/362.js +0 -107
  57. package/dist/441.js +0 -2855
  58. package/dist/782.js +0 -107
@@ -10,7 +10,7 @@
10
10
  window.sbz_v4 = true // signature to trick injected script believe that we are running v4 code
11
11
 
12
12
  var accid =
13
- getUrlParameter('id') || getUrlParameter('acc_id') || getUrlParameter('account_id') || 'acpxkgumifuoofoosble'
13
+ getUrlParameter('id') || getUrlParameter('acc_id') || getUrlParameter('account_id') || 'acqsulrowbxiugvginhw'
14
14
  // making a queue, so we can process data asynchronous
15
15
  window._sbzaccid = accid
16
16
  window.subiz = function () {
@@ -21,8 +21,8 @@
21
21
  window.subiz('setAccount', accid)
22
22
  // window.subiz('expandWidget')
23
23
 
24
- if (accid == 'acpxkgumifuoofoosble') {
25
- window.subiz('setViewingProduct', {id: '220170', sku: 'ipx', source_id: 'IPHONE10'})
24
+ if (accid == 'acqsulrowbxiugvginhw') {
25
+ <!--window.subiz('setViewingProduct', {id: '220170', sku: 'ipx', source_id: 'IPHONE10'})-->
26
26
  }
27
27
 
28
28
  setTimeout(function () {
@@ -30,4 +30,28 @@
30
30
  button.innerText = 'test2'
31
31
  button.id = 'test2'
32
32
  document.body.appendChild(button)
33
- }, 2000)</script><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/18a02a9c54e.app.js"></script></body></html>
33
+ }, 2000)
34
+
35
+ setTimeout(function () {
36
+ // only run when url contain ?bot=greeting
37
+ var urlParams = new URLSearchParams(window.location.search)
38
+ const greeting = urlParams.get('bot')
39
+ if (greeting !== 'greeting') return
40
+
41
+ let botid = '<botid>' ////////////////////// replace your bot id here. eg: bbrtilgagvnoehvpzg
42
+
43
+ // dont allow other bots to run
44
+ subiz('shrinkWidget')
45
+ subiz('stopAutobot')
46
+
47
+ subiz('waitReady', function () {
48
+ let kk = subiz('startConvo', {
49
+ initial_by: botid,
50
+ state: 'active',
51
+ members: [{id: botid, type: 'bot'}],
52
+ }).then(function (out) {
53
+ if (!out || !out.convo || !out.convo.id) return
54
+ subiz('showWidget', 'chat', out.convo.id)
55
+ })
56
+ })
57
+ })</script><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/1964f21ffc8.app.js"></script></body></html>
@@ -10,7 +10,7 @@
10
10
  window.sbz_v4 = true // signature to trick injected script believe that we are running v4 code
11
11
 
12
12
  var accid =
13
- getUrlParameter('id') || getUrlParameter('acc_id') || getUrlParameter('account_id') || 'acpxkgumifuoofoosble'
13
+ getUrlParameter('id') || getUrlParameter('acc_id') || getUrlParameter('account_id') || 'acqsulrowbxiugvginhw'
14
14
  // making a queue, so we can process data asynchronous
15
15
  window._sbzaccid = accid
16
16
  window.subiz = function () {
@@ -21,8 +21,8 @@
21
21
  window.subiz('setAccount', accid)
22
22
  // window.subiz('expandWidget')
23
23
 
24
- if (accid == 'acpxkgumifuoofoosble') {
25
- window.subiz('setViewingProduct', {id: '220170', sku: 'ipx', source_id: 'IPHONE10'})
24
+ if (accid == 'acqsulrowbxiugvginhw') {
25
+ <!--window.subiz('setViewingProduct', {id: '220170', sku: 'ipx', source_id: 'IPHONE10'})-->
26
26
  }
27
27
 
28
28
  setTimeout(function () {
@@ -30,4 +30,28 @@
30
30
  button.innerText = 'test2'
31
31
  button.id = 'test2'
32
32
  document.body.appendChild(button)
33
- }, 2000)</script><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/18a02a9c54e.library.js"></script></body></html>
33
+ }, 2000)
34
+
35
+ setTimeout(function () {
36
+ // only run when url contain ?bot=greeting
37
+ var urlParams = new URLSearchParams(window.location.search)
38
+ const greeting = urlParams.get('bot')
39
+ if (greeting !== 'greeting') return
40
+
41
+ let botid = '<botid>' ////////////////////// replace your bot id here. eg: bbrtilgagvnoehvpzg
42
+
43
+ // dont allow other bots to run
44
+ subiz('shrinkWidget')
45
+ subiz('stopAutobot')
46
+
47
+ subiz('waitReady', function () {
48
+ let kk = subiz('startConvo', {
49
+ initial_by: botid,
50
+ state: 'active',
51
+ members: [{id: botid, type: 'bot'}],
52
+ }).then(function (out) {
53
+ if (!out || !out.convo || !out.convo.id) return
54
+ subiz('showWidget', 'chat', out.convo.id)
55
+ })
56
+ })
57
+ })</script><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/1964f21ffc8.library.js"></script></body></html>