@subiz/widget-v4 4.1.124 → 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.
- package/assets/less/avatar.less +7 -3
- package/assets/less/widget_header.less +29 -7
- package/compiled_src/chatbox/ChatButton.js +12 -3
- package/compiled_src/chatbox/Events.js +1 -1
- package/compiled_src/chatbox/Header.js +12 -1
- package/compiled_src/util/common.js +15 -0
- package/dist/127.js +273 -0
- package/dist/132.js +2575 -6434
- package/dist/185.js +1885 -0
- package/dist/1964f21ffc8.127.js +1 -0
- package/dist/1964f21ffc8.132.js +1 -0
- package/dist/1964f21ffc8.185.js +1 -0
- package/dist/1964f21ffc8.27.js +1 -0
- package/dist/1964f21ffc8.278.js +1 -0
- package/dist/1964f21ffc8.459.js +1 -0
- package/dist/1964f21ffc8.490.js +1 -0
- package/dist/1964f21ffc8.74.js +1 -0
- package/dist/1964f21ffc8.997.js +1 -0
- package/dist/1964f21ffc8.app.js +1 -0
- package/dist/{18a02a9c54e.index.html → 1964f21ffc8.index.html} +28 -4
- package/dist/{18a02a9c54e.library.html → 1964f21ffc8.library.html} +28 -4
- package/dist/1964f21ffc8.library.js +1 -0
- package/dist/{18a02a9c54e.preview.html → 1964f21ffc8.preview.html} +1 -1
- package/dist/1964f21ffc8.preview.js +1 -0
- package/dist/1964f21ffc8.webview.js +1 -0
- package/dist/27.js +107 -0
- package/dist/278.js +406 -0
- package/dist/459.js +107 -0
- package/dist/{605.js → 490.js} +82 -82
- package/dist/{335.js → 74.js} +35 -35
- package/dist/{678.js → 997.js} +6 -6
- package/dist/HASH +1 -1
- package/dist/assets/img/{subiz-mono.877e9f5.svg → subiz-mono.8fbc067.svg} +1 -1
- package/dist/malicious-app.js +6 -4
- package/dist/screenshoot.html +1 -1
- package/dist/screenshoot.js +9619 -4865
- package/package.json +1 -1
- package/src/chatbox/ChatButton.js +12 -1
- package/src/chatbox/Events.js +1 -1
- package/src/chatbox/Header.js +15 -0
- package/src/util/common.js +16 -0
- package/dist/178.js +0 -406
- package/dist/18a02a9c54e.132.js +0 -1
- package/dist/18a02a9c54e.178.js +0 -1
- package/dist/18a02a9c54e.213.js +0 -1
- package/dist/18a02a9c54e.335.js +0 -1
- package/dist/18a02a9c54e.362.js +0 -1
- package/dist/18a02a9c54e.441.js +0 -1
- package/dist/18a02a9c54e.605.js +0 -1
- package/dist/18a02a9c54e.678.js +0 -1
- package/dist/18a02a9c54e.782.js +0 -1
- package/dist/18a02a9c54e.app.js +0 -1
- package/dist/18a02a9c54e.library.js +0 -1
- package/dist/18a02a9c54e.preview.js +0 -1
- package/dist/18a02a9c54e.screenshoot.js +0 -1
- package/dist/18a02a9c54e.webview.js +0 -1
- package/dist/213.js +0 -2780
- package/dist/362.js +0 -107
- package/dist/441.js +0 -2855
- 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') || '
|
|
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 == '
|
|
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)
|
|
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') || '
|
|
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 == '
|
|
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)
|
|
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>
|