@subiz/widget-v4 4.1.18 → 4.1.20
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/img/loading_static.svg +8 -8
- package/assets/less/chatbox.less +9 -1
- package/assets/less/message.less +5 -5
- package/assets/less/widget.less +2 -1
- package/assets/less/widget_header.less +5 -4
- package/compiled_src/chatbox/Events.js +1 -1
- package/compiled_src/chatbox/spinner.js +11 -25
- package/compiled_src/util/common.js +1 -4
- package/compiled_src/util/order.js +2 -4
- package/compiled_src/util/pubsub.js +3 -6
- package/dist/132.js +33 -47
- package/dist/178.js +1 -1
- package/dist/186965b8487.132.js +1 -0
- package/dist/186965b8487.178.js +1 -0
- package/dist/186965b8487.213.js +1 -0
- package/dist/186965b8487.335.js +1 -0
- package/dist/186965b8487.605.js +1 -0
- package/dist/186965b8487.app.js +1 -0
- package/dist/{1861083ae18.index.html → 186965b8487.index.html} +1 -1
- package/dist/{1861083ae18.library.html → 186965b8487.library.html} +1 -1
- package/dist/186965b8487.library.js +1 -0
- package/dist/{1861083ae18.preview.html → 186965b8487.preview.html} +1 -1
- package/dist/186965b8487.preview.js +1 -0
- package/dist/186965b8487.screenshoot.js +1 -0
- package/dist/186965b8487.webview.js +1 -0
- package/dist/213.js +12 -11
- package/dist/335.js +1 -1
- package/dist/605.js +7 -7
- package/dist/HASH +1 -1
- package/dist/assets/img/{loading_static.8f403ae.svg → loading_static.a27f0ac.svg} +8 -8
- package/dist/screenshoot.html +1 -1
- package/dist/screenshoot.js +104 -112
- package/package.json +8 -8
- package/src/chatbox/Events.js +1 -1
- package/src/chatbox/spinner.js +12 -23
- package/src/store/store.js +4 -1
- package/assets/less/spinner.less +0 -28
- package/dist/1861083ae18.132.js +0 -1
- package/dist/1861083ae18.178.js +0 -1
- package/dist/1861083ae18.213.js +0 -1
- package/dist/1861083ae18.335.js +0 -1
- package/dist/1861083ae18.605.js +0 -1
- package/dist/1861083ae18.app.js +0 -1
- package/dist/1861083ae18.library.js +0 -1
- package/dist/1861083ae18.preview.js +0 -1
- package/dist/1861083ae18.screenshoot.js +0 -1
- package/dist/1861083ae18.webview.js +0 -1
- /package/dist/{1861083ae18.362.js → 186965b8487.362.js} +0 -0
- /package/dist/{1861083ae18.441.js → 186965b8487.441.js} +0 -0
- /package/dist/{1861083ae18.678.js → 186965b8487.678.js} +0 -0
- /package/dist/{1861083ae18.782.js → 186965b8487.782.js} +0 -0
package/dist/213.js
CHANGED
|
@@ -1367,7 +1367,7 @@ class Countdown extends common/* Com */.up {
|
|
|
1367
1367
|
_defineProperty(this, "state", {
|
|
1368
1368
|
flipKey: '43'
|
|
1369
1369
|
});
|
|
1370
|
-
this.timer = setInterval(() => {
|
|
1370
|
+
this.timer = util/* default.setInterval */.Z.setInterval(() => {
|
|
1371
1371
|
if (this.props._destroy) return this.componentWillUnmount();
|
|
1372
1372
|
let cd = this.props.com.countdown || {};
|
|
1373
1373
|
let newFlipKey = 'cd' + ':' + cd.skin + ':' + cd.size + ':' + this.props.plugin.popup.font_family + ':';
|
|
@@ -1378,7 +1378,7 @@ class Countdown extends common/* Com */.up {
|
|
|
1378
1378
|
}, 500);
|
|
1379
1379
|
}
|
|
1380
1380
|
componentWillUnmount() {
|
|
1381
|
-
clearInterval(this.timer);
|
|
1381
|
+
util/* default.clearInterval */.Z.clearInterval(this.timer);
|
|
1382
1382
|
}
|
|
1383
1383
|
getCountDownDeltaSec(countdown) {
|
|
1384
1384
|
let dest;
|
|
@@ -1614,14 +1614,14 @@ class Popup extends common/* Com */.up {
|
|
|
1614
1614
|
fontReady: false
|
|
1615
1615
|
});
|
|
1616
1616
|
this._formRef = (0,preact_module/* createRef */.Vf)();
|
|
1617
|
-
setTimeout(() => this.fillForm(), 1000);
|
|
1618
|
-
setTimeout(async () => {
|
|
1617
|
+
util/* default.setTimeout */.Z.setTimeout(() => this.fillForm(), 1000);
|
|
1618
|
+
util/* default.setTimeout */.Z.setTimeout(async () => {
|
|
1619
1619
|
let {
|
|
1620
1620
|
body: impression
|
|
1621
1621
|
} = await this.props.store.sendImpression(this.props.plugin.id);
|
|
1622
1622
|
this.impressionToken = util/* default.get */.Z.get(impression, 'impression_token') || '';
|
|
1623
1623
|
}, 10);
|
|
1624
|
-
setTimeout(() => {
|
|
1624
|
+
util/* default.setTimeout */.Z.setTimeout(() => {
|
|
1625
1625
|
let fonts = {};
|
|
1626
1626
|
fonts[this.props.plugin.popup.font_family] = true;
|
|
1627
1627
|
let images = {};
|
|
@@ -1645,7 +1645,7 @@ class Popup extends common/* Com */.up {
|
|
|
1645
1645
|
imageReady: true
|
|
1646
1646
|
})));
|
|
1647
1647
|
util/* default.preloadWebfonts */.Z.preloadWebfonts(Object.keys(fonts));
|
|
1648
|
-
setTimeout(async () => {
|
|
1648
|
+
util/* default.setTimeout */.Z.setTimeout(async () => {
|
|
1649
1649
|
await this.waitForFont(Object.keys(fonts));
|
|
1650
1650
|
this.setState({
|
|
1651
1651
|
fontReady: true
|
|
@@ -1764,11 +1764,11 @@ class Popup extends common/* Com */.up {
|
|
|
1764
1764
|
this.setState({
|
|
1765
1765
|
closeAnimation: true
|
|
1766
1766
|
});
|
|
1767
|
-
setTimeout(() => this.setState({
|
|
1767
|
+
util/* default.setTimeout */.Z.setTimeout(() => this.setState({
|
|
1768
1768
|
close: true,
|
|
1769
1769
|
closeAnimation: false
|
|
1770
1770
|
}), 150);
|
|
1771
|
-
if (this.props.plugin._dont_close) setTimeout(() => {
|
|
1771
|
+
if (this.props.plugin._dont_close) util/* default.setTimeout */.Z.setTimeout(() => {
|
|
1772
1772
|
this.lastoverflow = window.getComputedStyle(document.body).getPropertyValue('overflow');
|
|
1773
1773
|
document.body.style.setProperty('overflow', 'hidden', 'important');
|
|
1774
1774
|
this.setState({
|
|
@@ -1853,7 +1853,7 @@ class Popup extends common/* Com */.up {
|
|
|
1853
1853
|
if (a.action === 'open_widget') this.props.showWidget('list');
|
|
1854
1854
|
}
|
|
1855
1855
|
for (let a of actions) {
|
|
1856
|
-
if (a.action === 'close') setTimeout(() => this.setClose(true), 100);
|
|
1856
|
+
if (a.action === 'close') util/* default.setTimeout */.Z.setTimeout(() => this.setClose(true), 100);
|
|
1857
1857
|
if (a.action === 'next_page') this.props.nextPage();
|
|
1858
1858
|
}
|
|
1859
1859
|
for (let a of actions) {
|
|
@@ -2282,7 +2282,7 @@ class Popup extends common/* Com */.up {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
this.props.store.onResetCSS(this, () => this.refreshCSS());
|
|
2284
2284
|
await this.refreshCSS();
|
|
2285
|
-
setTimeout(() => {
|
|
2285
|
+
util/* default.setTimeout */.Z.setTimeout(() => {
|
|
2286
2286
|
this.setState({
|
|
2287
2287
|
cssready: true
|
|
2288
2288
|
});
|
|
@@ -2437,7 +2437,8 @@ class Popup extends common/* Com */.up {
|
|
|
2437
2437
|
background: pagestyle.background || popup.background || '#fff',
|
|
2438
2438
|
border: pagestyle.border,
|
|
2439
2439
|
overflow: layout === 'row' ? 'auto' : '',
|
|
2440
|
-
max_height: layout === 'row' ? '100%' : ''
|
|
2440
|
+
max_height: layout === 'row' ? '100%' : '',
|
|
2441
|
+
min_height: layout === 'row' ? '100%' : ''
|
|
2441
2442
|
};
|
|
2442
2443
|
let bodycss = {
|
|
2443
2444
|
overflow: layout === 'column' ? 'auto' : '',
|
package/dist/335.js
CHANGED
|
@@ -257,7 +257,7 @@ class Contact extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
|
|
|
257
257
|
let pluginstringify = JSON.stringify(this.props.plugin);
|
|
258
258
|
if (this.state.pluginjson !== pluginstringify) {
|
|
259
259
|
this.refreshCSS();
|
|
260
|
-
setTimeout(() => this.setState({
|
|
260
|
+
_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setTimeout */ .Z.setTimeout(() => this.setState({
|
|
261
261
|
pluginjson: pluginstringify
|
|
262
262
|
}));
|
|
263
263
|
}
|
package/dist/605.js
CHANGED
|
@@ -32,7 +32,7 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
|
|
|
32
32
|
title: '',
|
|
33
33
|
last_show: 0
|
|
34
34
|
});
|
|
35
|
-
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);
|
|
@@ -105,7 +105,7 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
|
|
|
105
105
|
await this.waitForT();
|
|
106
106
|
if (!this.props.t) return;
|
|
107
107
|
if (!close) {
|
|
108
|
-
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
|
});
|
|
@@ -144,11 +144,11 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
|
|
|
144
144
|
closeAnimation: true
|
|
145
145
|
});
|
|
146
146
|
this.mouse_leave = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now();
|
|
147
|
-
this.lastCloseTimeout = setTimeout(() => this.setState({
|
|
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) 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);
|
|
@@ -162,7 +162,7 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
|
|
|
162
162
|
this.setClose(this.state.close);
|
|
163
163
|
}
|
|
164
164
|
componentWillUnmount() {
|
|
165
|
-
clearInterval(this.interval);
|
|
165
|
+
_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].clearInterval */ .Z.clearInterval(this.interval);
|
|
166
166
|
_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setCss */ .Z.setCss(this.props.plugin.id, this.$cssStyleDiv, '');
|
|
167
167
|
}
|
|
168
168
|
async componentDidMount() {
|
|
@@ -178,7 +178,7 @@ 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 = 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
184
|
if (mouseleave === 0) mouseleave = _util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].Date.now */ .Z.Date.now();
|
|
@@ -191,7 +191,7 @@ class Notif extends _common_js__WEBPACK_IMPORTED_MODULE_2__/* .Com */ .up {
|
|
|
191
191
|
return this.setClose(false);
|
|
192
192
|
}
|
|
193
193
|
}, 1000);
|
|
194
|
-
setTimeout(() => {
|
|
194
|
+
_util_index_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"].setTimeout */ .Z.setTimeout(() => {
|
|
195
195
|
this.setState({
|
|
196
196
|
cssready: true
|
|
197
197
|
});
|
package/dist/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
186965b8487
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M50.6405 31.0668C50.3123 31.1559 49.8798 31.1851 49.5292 31.192C47.2397 31.1957 45.3018 29.2499 45.3778 26.9338L45.4448 14.2026C45.4386 11.9089 47.3787 9.96953 49.6906 10.0481C51.9801 10.0444 53.918 11.9902 53.842 14.3062L53.775 27.0375C53.6695 28.9201 52.3635 30.599 50.6405 31.0668Z" fill="#
|
|
3
|
-
<path d="M49.8863 84.419C49.6402 84.4859 49.4761 84.5304 49.2076 84.515C47.8056 84.5426 46.6876 83.3453 46.6586 81.9406L46.7256 69.2094C46.6966 67.8047 47.8905 66.686 49.2925 66.6585C50.6946 66.6309 51.8125 67.8282 51.8416 69.2329L51.7746 81.9641C51.7589 83.2043 50.953 84.1294 49.8863 84.419Z" fill="#
|
|
4
|
-
<path d="M64.6962 34.4895C64.286 34.6009 63.8087 34.4656 63.451 34.1213C62.9665 33.6348 62.9297 32.8503 63.4967 32.3432L72.5108 23.3626C72.9958 22.8777 73.7789 22.8417 74.2857 23.4103C74.7702 23.8968 74.807 24.6813 74.2399 25.1885L65.2259 34.1691C65.0841 34.2959 64.9423 34.4226 64.6962 34.4895Z" fill="#
|
|
5
|
-
<path d="M26.1317 74.8013C25.1471 75.0686 24.0286 74.8426 23.2684 73.9896C22.1505 72.7923 22.0919 70.9542 23.2857 69.8355L32.2998 60.8549C33.4937 59.7361 35.3283 59.6794 36.4463 60.8767C37.5642 62.074 37.6228 63.9121 36.4289 65.0308L27.4149 74.0114C27.0716 74.3695 26.624 74.6676 26.1317 74.8013Z" fill="#
|
|
6
|
-
<path d="M83.682 49.9048C83.5179 49.9494 83.3538 49.9939 83.2494 49.934L70.5416 49.8531C69.5721 49.8515 68.8342 49.0807 68.8571 48.1916C68.8577 47.2204 69.6262 46.482 70.5137 46.5059L83.2215 46.5867C84.191 46.5883 84.9289 47.3591 84.906 48.2482C84.8831 49.1373 84.3384 49.7266 83.682 49.9048Z" fill="#
|
|
7
|
-
<path d="M29.1731 51.2862C28.9269 51.353 28.5987 51.4421 28.2482 51.449L15.5404 51.3681C13.6835 51.3426 12.2077 49.8011 12.1491 47.963C12.1726 46.1026 13.7097 44.6258 15.5443 44.5691L28.2522 44.65C30.1091 44.6755 31.5848 46.2171 31.6434 48.0551C31.6127 49.5643 30.5679 50.9074 29.1731 51.2862Z" fill="#
|
|
8
|
-
<path d="M73.727 74.2379C72.9886 74.4384 72.2206 74.2055 71.6317 73.6591L62.6579 64.6187C61.8156 63.788 61.809 62.4656 62.6372 61.6227C63.4655 60.7798 64.7855 60.7745 65.6278 61.6052L74.6016 70.6456C75.4439 71.4763 75.4505 72.7988 74.6223 73.6417C74.4431 73.9552 74.0552 74.1488 73.727 74.2379Z" fill="#
|
|
9
|
-
<path d="M35.5354 36.7576C34.2227 37.114 32.8134 36.7904 31.8221 35.7353L22.8483 26.6949C21.3949 25.2355 21.3441 22.7773 22.8812 21.3005C24.3363 19.846 26.7899 19.7978 28.2656 21.3394L37.2395 30.3798C38.6929 31.8391 38.7437 34.2973 37.2065 35.7741C36.7215 36.2589 36.1098 36.6016 35.5354 36.7576Z" fill="#
|
|
2
|
+
<path d="M50.6405 31.0668C50.3123 31.1559 49.8798 31.1851 49.5292 31.192C47.2397 31.1957 45.3018 29.2499 45.3778 26.9338L45.4448 14.2026C45.4386 11.9089 47.3787 9.96953 49.6906 10.0481C51.9801 10.0444 53.918 11.9902 53.842 14.3062L53.775 27.0375C53.6695 28.9201 52.3635 30.599 50.6405 31.0668Z" fill="#00000011"/>
|
|
3
|
+
<path d="M49.8863 84.419C49.6402 84.4859 49.4761 84.5304 49.2076 84.515C47.8056 84.5426 46.6876 83.3453 46.6586 81.9406L46.7256 69.2094C46.6966 67.8047 47.8905 66.686 49.2925 66.6585C50.6946 66.6309 51.8125 67.8282 51.8416 69.2329L51.7746 81.9641C51.7589 83.2043 50.953 84.1294 49.8863 84.419Z" fill="#00000033"/>
|
|
4
|
+
<path d="M64.6962 34.4895C64.286 34.6009 63.8087 34.4656 63.451 34.1213C62.9665 33.6348 62.9297 32.8503 63.4967 32.3432L72.5108 23.3626C72.9958 22.8777 73.7789 22.8417 74.2857 23.4103C74.7702 23.8968 74.807 24.6813 74.2399 25.1885L65.2259 34.1691C65.0841 34.2959 64.9423 34.4226 64.6962 34.4895Z" fill="#00000000"/>
|
|
5
|
+
<path d="M26.1317 74.8013C25.1471 75.0686 24.0286 74.8426 23.2684 73.9896C22.1505 72.7923 22.0919 70.9542 23.2857 69.8355L32.2998 60.8549C33.4937 59.7361 35.3283 59.6794 36.4463 60.8767C37.5642 62.074 37.6228 63.9121 36.4289 65.0308L27.4149 74.0114C27.0716 74.3695 26.624 74.6676 26.1317 74.8013Z" fill="#00000055"/>
|
|
6
|
+
<path d="M83.682 49.9048C83.5179 49.9494 83.3538 49.9939 83.2494 49.934L70.5416 49.8531C69.5721 49.8515 68.8342 49.0807 68.8571 48.1916C68.8577 47.2204 69.6262 46.482 70.5137 46.5059L83.2215 46.5867C84.191 46.5883 84.9289 47.3591 84.906 48.2482C84.8831 49.1373 84.3384 49.7266 83.682 49.9048Z" fill="#00000000"/>
|
|
7
|
+
<path d="M29.1731 51.2862C28.9269 51.353 28.5987 51.4421 28.2482 51.449L15.5404 51.3681C13.6835 51.3426 12.2077 49.8011 12.1491 47.963C12.1726 46.1026 13.7097 44.6258 15.5443 44.5691L28.2522 44.65C30.1091 44.6755 31.5848 46.2171 31.6434 48.0551C31.6127 49.5643 30.5679 50.9074 29.1731 51.2862Z" fill="#00000044"/>
|
|
8
|
+
<path d="M73.727 74.2379C72.9886 74.4384 72.2206 74.2055 71.6317 73.6591L62.6579 64.6187C61.8156 63.788 61.809 62.4656 62.6372 61.6227C63.4655 60.7798 64.7855 60.7745 65.6278 61.6052L74.6016 70.6456C75.4439 71.4763 75.4505 72.7988 74.6223 73.6417C74.4431 73.9552 74.0552 74.1488 73.727 74.2379Z" fill="#00000033"/>
|
|
9
|
+
<path d="M35.5354 36.7576C34.2227 37.114 32.8134 36.7904 31.8221 35.7353L22.8483 26.6949C21.3949 25.2355 21.3441 22.7773 22.8812 21.3005C24.3363 19.846 26.7899 19.7978 28.2656 21.3394L37.2395 30.3798C38.6929 31.8391 38.7437 34.2973 37.2065 35.7741C36.7215 36.2589 36.1098 36.6016 35.5354 36.7576Z" fill="#00000022"/>
|
|
10
10
|
</svg>
|
package/dist/screenshoot.html
CHANGED
|
@@ -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/
|
|
7
|
+
}</style></head><body><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/186965b8487.screenshoot.js"></script></body></html>
|
package/dist/screenshoot.js
CHANGED
|
@@ -525,10 +525,75 @@ module.exports = function sleep (ms) {
|
|
|
525
525
|
|
|
526
526
|
/***/ }),
|
|
527
527
|
|
|
528
|
-
/***/
|
|
529
|
-
/***/ ((module
|
|
528
|
+
/***/ 2611:
|
|
529
|
+
/***/ ((module) => {
|
|
530
|
+
|
|
531
|
+
function dofetch(method, url, body, cb) {
|
|
532
|
+
let headers = {}
|
|
533
|
+
if (body) headers['content-type'] = 'text/plain'
|
|
534
|
+
fetch(url, {method: method, headers: headers, body: body})
|
|
535
|
+
.then((res) => res.text().then((text) => cb && cb(text, res.status)))
|
|
536
|
+
.catch((err) => cb && cb(err, -1))
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// xhrsend sends an HTTP request
|
|
540
|
+
var xhrsend = function (method, url, body, cb) {
|
|
541
|
+
if (typeof XMLHttpRequest === 'undefined') return dofetch(method, url, body, cb)
|
|
542
|
+
var request = new XMLHttpRequest()
|
|
543
|
+
request.onreadystatechange = function (e) {
|
|
544
|
+
if (request.readyState !== 4) return
|
|
545
|
+
cb && cb(request.responseText, request.status)
|
|
546
|
+
cb = undefined // dont call cb anymore
|
|
547
|
+
}
|
|
530
548
|
|
|
531
|
-
|
|
549
|
+
request.onerror = function () {
|
|
550
|
+
cb && cb(request.responseText, -1) // network error
|
|
551
|
+
cb = undefined // dont call cb anymore
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
request.open(method, url)
|
|
555
|
+
if (body) request.setRequestHeader('content-type', 'text/plain')
|
|
556
|
+
request.send(body)
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// JSON.parse without exeption
|
|
560
|
+
// return undefined when parsing invalid JSON string
|
|
561
|
+
function parseJSON(str) {
|
|
562
|
+
try {
|
|
563
|
+
return JSON.parse(str)
|
|
564
|
+
} catch (e) {}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
function Pubsub() {
|
|
568
|
+
// holds all subscriptions for all topics
|
|
569
|
+
// example {
|
|
570
|
+
// topic1: [cb1, cb2],
|
|
571
|
+
// topic2: [cb3, cb4],
|
|
572
|
+
// }
|
|
573
|
+
var listeners = {}
|
|
574
|
+
|
|
575
|
+
// emit notifies any callback functions that previously
|
|
576
|
+
// subscribed to the topic (by the on function)
|
|
577
|
+
this.emit = function (topic) {
|
|
578
|
+
// skip the first item in arguments, which is the topic
|
|
579
|
+
var args = []
|
|
580
|
+
for (var i = 1; i < arguments.length; i++) args.push(arguments[i])
|
|
581
|
+
|
|
582
|
+
var cbs = listeners[topic]
|
|
583
|
+
if (!cbs) return
|
|
584
|
+
for (var i = 0; i < cbs.length; i++) cbs[i].apply(undefined, args)
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// register a callback function for a topic
|
|
588
|
+
// when something is sent to the topic (by the emit function),
|
|
589
|
+
// the callback function will be called
|
|
590
|
+
this.on = function (topic, cb) {
|
|
591
|
+
if (!listeners[topic]) listeners[topic] = []
|
|
592
|
+
listeners[topic].push(cb)
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
module.exports = {xhrsend, parseJSON, Pubsub}
|
|
532
597
|
|
|
533
598
|
|
|
534
599
|
/***/ }),
|
|
@@ -537,6 +602,7 @@ module.exports = __webpack_require__(608)
|
|
|
537
602
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
538
603
|
|
|
539
604
|
var flow = __webpack_require__(3165)
|
|
605
|
+
var {xhrsend, parseJSON, Pubsub} = __webpack_require__(2611)
|
|
540
606
|
|
|
541
607
|
// Conn represents a realtime connection between an user and the realtime
|
|
542
608
|
// server (https://rt-0.subiz.com)
|
|
@@ -750,74 +816,6 @@ function Realtime(apiUrls, credential, callAPI) {
|
|
|
750
816
|
reconnect()
|
|
751
817
|
}
|
|
752
818
|
|
|
753
|
-
var dofetch = function (method, url, body, cb) {
|
|
754
|
-
let headers = {}
|
|
755
|
-
if (body) headers['content-type'] = 'text/plain'
|
|
756
|
-
fetch(url, {
|
|
757
|
-
method: method,
|
|
758
|
-
headers: headers,
|
|
759
|
-
body: body,
|
|
760
|
-
})
|
|
761
|
-
.then((res) => res.text().then((text) => cb && cb(text, res.status)))
|
|
762
|
-
.catch((err) => cb && cb(err, -1))
|
|
763
|
-
}
|
|
764
|
-
// xhrsend sends an HTTP request
|
|
765
|
-
var xhrsend = function (method, url, body, cb) {
|
|
766
|
-
if (typeof XMLHttpRequest === 'undefined') return dofetch(method, url, body, cb)
|
|
767
|
-
var request = new XMLHttpRequest()
|
|
768
|
-
request.onreadystatechange = function (e) {
|
|
769
|
-
if (request.readyState !== 4) return
|
|
770
|
-
cb && cb(request.responseText, request.status)
|
|
771
|
-
cb = undefined // dont call cb anymore
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
request.onerror = function () {
|
|
775
|
-
cb && cb(request.responseText, -1) // network error
|
|
776
|
-
cb = undefined // dont call cb anymore
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
request.open(method, url)
|
|
780
|
-
if (body) request.setRequestHeader('content-type', 'text/plain')
|
|
781
|
-
request.send(body)
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
// JSON.parse without exeption
|
|
785
|
-
// return undefined when parsing invalid JSON string
|
|
786
|
-
function parseJSON(str) {
|
|
787
|
-
try {
|
|
788
|
-
return JSON.parse(str)
|
|
789
|
-
} catch (e) {}
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
function Pubsub() {
|
|
793
|
-
// holds all subscriptions for all topics
|
|
794
|
-
// example {
|
|
795
|
-
// topic1: [cb1, cb2],
|
|
796
|
-
// topic2: [cb3, cb4],
|
|
797
|
-
// }
|
|
798
|
-
var listeners = {}
|
|
799
|
-
|
|
800
|
-
// emit notifies any callback functions that previously
|
|
801
|
-
// subscribed to the topic (by the on function)
|
|
802
|
-
this.emit = function (topic) {
|
|
803
|
-
// skip the first item in arguments, which is the topic
|
|
804
|
-
var args = []
|
|
805
|
-
for (var i = 1; i < arguments.length; i++) args.push(arguments[i])
|
|
806
|
-
|
|
807
|
-
var cbs = listeners[topic]
|
|
808
|
-
if (!cbs) return
|
|
809
|
-
for (var i = 0; i < cbs.length; i++) cbs[i].apply(undefined, args)
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
// register a callback function for a topic
|
|
813
|
-
// when something is sent to the topic (by the emit function),
|
|
814
|
-
// the callback function will be called
|
|
815
|
-
this.on = function (topic, cb) {
|
|
816
|
-
if (!listeners[topic]) listeners[topic] = []
|
|
817
|
-
listeners[topic].push(cb)
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
819
|
// calcNextBackoff returns number of seconds we must wait
|
|
822
820
|
// before sending a next request
|
|
823
821
|
// the results is determind based on exponential backoff algorithm
|
|
@@ -934,9 +932,7 @@ class Chain {
|
|
|
934
932
|
});
|
|
935
933
|
return out;
|
|
936
934
|
}
|
|
937
|
-
async fetchMore(chain) {
|
|
938
|
-
let limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 20;
|
|
939
|
-
let api = arguments.length > 2 ? arguments[2] : undefined;
|
|
935
|
+
async fetchMore(chain, limit = 20, api) {
|
|
940
936
|
if (this.dead) return {
|
|
941
937
|
error: 'dead'
|
|
942
938
|
};
|
|
@@ -1300,7 +1296,7 @@ class Com extends preact__WEBPACK_IMPORTED_MODULE_0__/* .Component */ .wA {
|
|
|
1300
1296
|
constructor(props) {
|
|
1301
1297
|
super(props);
|
|
1302
1298
|
this._isMounted = true;
|
|
1303
|
-
setTimeout(() => {
|
|
1299
|
+
_util_index_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"].setTimeout */ .Z.setTimeout(() => {
|
|
1304
1300
|
if (this.componentWillUnmount) {
|
|
1305
1301
|
let old = this.componentWillUnmount.bind(this);
|
|
1306
1302
|
this.componentWillUnmount = () => {
|
|
@@ -1352,7 +1348,7 @@ const getLocale = (plugin, loc) => {
|
|
|
1352
1348
|
let langMessages = {};
|
|
1353
1349
|
let downloadLock = false;
|
|
1354
1350
|
function downloadLanguage(store, locale, force) {
|
|
1355
|
-
if (downloadLock) return new Promise(resolve => setTimeout(() => downloadLanguage(store, locale, force).then(resolve), 100));
|
|
1351
|
+
if (downloadLock) return new Promise(resolve => _util_index_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"].setTimeout */ .Z.setTimeout(() => downloadLanguage(store, locale, force).then(resolve), 100));
|
|
1356
1352
|
downloadLock = true;
|
|
1357
1353
|
let messages;
|
|
1358
1354
|
if (locale === 'debug' || langMessages[locale] && !force) {
|
|
@@ -1379,6 +1375,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1379
1375
|
/* harmony export */ "Date": () => (/* binding */ Date),
|
|
1380
1376
|
/* harmony export */ "agentsOfConvo": () => (/* binding */ agentsOfConvo),
|
|
1381
1377
|
/* harmony export */ "checkRunConditions": () => (/* binding */ checkRunConditions),
|
|
1378
|
+
/* harmony export */ "clearInterval": () => (/* binding */ clearInterval),
|
|
1379
|
+
/* harmony export */ "clearTimeout": () => (/* binding */ clearTimeout),
|
|
1382
1380
|
/* harmony export */ "cloneDeep": () => (/* binding */ cloneDeep),
|
|
1383
1381
|
/* harmony export */ "convoOfEv": () => (/* binding */ convoOfEv),
|
|
1384
1382
|
/* harmony export */ "convoToEv": () => (/* binding */ convoToEv),
|
|
@@ -1453,6 +1451,8 @@ var Date = f.contentWindow.Date;
|
|
|
1453
1451
|
var requestAnimationFrame = f.contentWindow.requestAnimationFrame;
|
|
1454
1452
|
var setTimeout = f.contentWindow.setTimeout.bind(f.contentWindow);
|
|
1455
1453
|
var setInterval = f.contentWindow.setInterval.bind(f.contentWindow);
|
|
1454
|
+
var clearInterval = f.contentWindow.clearInterval.bind(f.contentWindow);
|
|
1455
|
+
var clearTimeout = f.contentWindow.clearTimeout.bind(f.contentWindow);
|
|
1456
1456
|
function convoOfEv(ev) {
|
|
1457
1457
|
if (!ev) return '';
|
|
1458
1458
|
switch (ev.type) {
|
|
@@ -1520,10 +1520,7 @@ function getMsgField(ev, fieldName) {
|
|
|
1520
1520
|
function isObject(item) {
|
|
1521
1521
|
return item && typeof item === 'object' && !Array.isArray(item);
|
|
1522
1522
|
}
|
|
1523
|
-
function merge(target) {
|
|
1524
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1525
|
-
sources[_key - 1] = arguments[_key];
|
|
1526
|
-
}
|
|
1523
|
+
function merge(target, ...sources) {
|
|
1527
1524
|
if (!sources.length) return target;
|
|
1528
1525
|
const source = sources.shift();
|
|
1529
1526
|
if (isObject(target) && isObject(source)) {
|
|
@@ -2618,33 +2615,33 @@ function trackInactivity(seconds, cb) {
|
|
|
2618
2615
|
let resetTime = () => {
|
|
2619
2616
|
inactiveSeconds = 0;
|
|
2620
2617
|
};
|
|
2621
|
-
let timer = setInterval(() => {
|
|
2618
|
+
let timer = campaign_common.setInterval(() => {
|
|
2622
2619
|
inactiveSeconds++;
|
|
2623
2620
|
if (inactiveSeconds < seconds) return;
|
|
2624
2621
|
if (cb) cb();
|
|
2625
2622
|
for (let ev of events) {
|
|
2626
2623
|
document.removeEventListener(ev, resetTime, false);
|
|
2627
2624
|
}
|
|
2628
|
-
clearInterval(timer);
|
|
2625
|
+
campaign_common.clearInterval(timer);
|
|
2629
2626
|
}, 1000);
|
|
2630
2627
|
for (let ev of events) {
|
|
2631
2628
|
document.addEventListener(ev, resetTime, false);
|
|
2632
2629
|
}
|
|
2633
2630
|
}
|
|
2634
2631
|
let timeOnPage = 0;
|
|
2635
|
-
setInterval(() => {
|
|
2632
|
+
campaign_common.setInterval(() => {
|
|
2636
2633
|
timeOnPage += 5;
|
|
2637
2634
|
}, 5000);
|
|
2638
2635
|
function trackTimeOnPage(seconds, cb) {
|
|
2639
2636
|
if (seconds < 1) {
|
|
2640
|
-
return setTimeout(function () {
|
|
2637
|
+
return campaign_common.setTimeout(function () {
|
|
2641
2638
|
cb(seconds);
|
|
2642
2639
|
}, 100);
|
|
2643
2640
|
}
|
|
2644
|
-
let timer = setInterval(() => {
|
|
2641
|
+
let timer = campaign_common.setInterval(() => {
|
|
2645
2642
|
if (timeOnPage < seconds) return;
|
|
2646
2643
|
if (cb) cb(timeOnPage);
|
|
2647
|
-
clearInterval(timer);
|
|
2644
|
+
campaign_common.clearInterval(timer);
|
|
2648
2645
|
}, 1000);
|
|
2649
2646
|
}
|
|
2650
2647
|
;// CONCATENATED MODULE: ./src/util/order.js
|
|
@@ -2655,8 +2652,7 @@ op.map = order_common.map;
|
|
|
2655
2652
|
op.each = order_common.each;
|
|
2656
2653
|
op.size = order_common.size;
|
|
2657
2654
|
op.find = order_common.find;
|
|
2658
|
-
function getProductPropName(product) {
|
|
2659
|
-
let seperator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' - ';
|
|
2655
|
+
function getProductPropName(product, seperator = ' - ') {
|
|
2660
2656
|
let options = op.get(product, 'options', []);
|
|
2661
2657
|
let props = op.get(product, 'props', []);
|
|
2662
2658
|
let multiPropsOptions = op.filter(options, option => op.size(option.values) > 1);
|
|
@@ -2667,8 +2663,7 @@ function getProductPropName(product) {
|
|
|
2667
2663
|
});
|
|
2668
2664
|
return names.join(seperator);
|
|
2669
2665
|
}
|
|
2670
|
-
function getOrderDisplayName() {
|
|
2671
|
-
let order = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2666
|
+
function getOrderDisplayName(order = {}) {
|
|
2672
2667
|
return order.number || order.id || '';
|
|
2673
2668
|
}
|
|
2674
2669
|
function displayOrderShippingAddress(order, isShorten) {
|
|
@@ -2884,12 +2879,9 @@ class Pubsub {
|
|
|
2884
2879
|
}
|
|
2885
2880
|
publish(topic, payload, payload2, payload3) {
|
|
2886
2881
|
this.listeners[topic] = filter(this.listeners[topic], sub => sub.obj._isMounted);
|
|
2887
|
-
map(this.listeners[topic],
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
} = _ref;
|
|
2891
|
-
return cb(payload, payload2, payload3);
|
|
2892
|
-
});
|
|
2882
|
+
map(this.listeners[topic], ({
|
|
2883
|
+
cb
|
|
2884
|
+
}) => cb(payload, payload2, payload3));
|
|
2893
2885
|
}
|
|
2894
2886
|
on2(obj, topic, cb) {
|
|
2895
2887
|
if (!this.listeners[topic]) this.listeners[topic] = [];
|
|
@@ -3094,14 +3086,14 @@ class Pubsub {
|
|
|
3094
3086
|
|
|
3095
3087
|
"use strict";
|
|
3096
3088
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3097
|
-
/* harmony export */ "HY": () => (/* binding */
|
|
3098
|
-
/* harmony export */ "Vf": () => (/* binding */
|
|
3099
|
-
/* harmony export */ "h": () => (/* binding */
|
|
3100
|
-
/* harmony export */ "sY": () => (/* binding */
|
|
3101
|
-
/* harmony export */ "wA": () => (/* binding */
|
|
3089
|
+
/* harmony export */ "HY": () => (/* binding */ d),
|
|
3090
|
+
/* harmony export */ "Vf": () => (/* binding */ p),
|
|
3091
|
+
/* harmony export */ "h": () => (/* binding */ v),
|
|
3092
|
+
/* harmony export */ "sY": () => (/* binding */ q),
|
|
3093
|
+
/* harmony export */ "wA": () => (/* binding */ _)
|
|
3102
3094
|
/* harmony export */ });
|
|
3103
3095
|
/* unused harmony exports cloneElement, createContext, createElement, hydrate, isValidElement, options, toChildArray */
|
|
3104
|
-
var n,l,u,i,t,o,r,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n)}function h(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v(l,f,t,o,null)}function v(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null==r&&null!=l.vnode&&l.vnode(f),f}function y(){return{current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?_(n):null}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function b(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!g.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||setTimeout)(g)}function g(){for(var n;g.__r=t.length;)n=t.sort(function(n,l){return n.__v.__b-l.__v.__b}),t=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z(u,t),t.__e!=o&&k(t)))})}function w(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v(null,k,null,null,k):Array.isArray(k)?v(p,{children:k},null,null,null):k.__b>0?v(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null}j(n,k,d=d||f,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d))}for(u.__e=g,h=C;h--;)null!=x[h]&&N(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h])}function m(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m(i,l,u):A(u,i,i,t,i.__e,l));return l}function x(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x(n,l)}):l.push(n)),l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else{for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i)}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c.test(l)?u:u+"px"}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u))}}function I(n){this.l[n.type+!1](l.event?l.event(n):n)}function T(n){this.l[n.type+!0](l.event?l.event(n):n)}function j(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d(g,x),h.constructor=T,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u)}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k)})}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p&&null==a.key?a.props.children:a,w(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l.diffed)&&a(u)}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l.__e(n,u,i)}}function z(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1}if(null===d)y===p||c&&l.data===p||(l.data=p);else{if(r=r&&n.call(l.childNodes),h=(y=i.props||f).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""))}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1))}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,i)}}function N(n,u,i){var t,o;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(n){l.__e(n,u)}t.base=t.__P=null,n.__c=void 0}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a(n.__e),n.__=n.__e=n.__d=void 0}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l.__&&l.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j(i,u=(!o&&t||i).__k=h(p,null,[u]),r||f,f,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z(e,u)}function S(n,l){P(n,l,S)}function q(l,u,i){var t,o,r,f=s({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),v(l.type,f,t||l.key,o||l.ref,null)}function B(n,l){var u={__c:l="__cC"+r++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b)},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=e.slice,l={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l}throw n}},u=0,i=function(n){return null!=n&&void 0===n.constructor},d.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b(this))},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b(this))},d.prototype.render=p,t=[],g.__r=0,r=0;
|
|
3096
|
+
var n,l,u,i,t,r,o,f,e={},c=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a(n,l){for(var u in l)n[u]=l[u];return n}function h(n){var l=n.parentNode;l&&l.removeChild(n)}function v(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return y(l,f,t,r,null)}function y(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u:o};return null==o&&null!=l.vnode&&l.vnode(f),f}function p(){return{current:null}}function d(n){return n.children}function _(n,l){this.props=n,this.context=l}function k(n,l){if(null==l)return n.__?k(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?k(n):null}function b(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b(n)}}function g(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!m.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)(m)}function m(){var n,l,u,i,r,o,f,e;for(t.sort(function(n,l){return n.__v.__b-l.__v.__b});n=t.shift();)n.__d&&(l=t.length,i=void 0,r=void 0,f=(o=(u=n).__v).__e,(e=u.__P)&&(i=[],(r=a({},o)).__v=o.__v+1,z(e,o,r,u.__n,void 0!==e.ownerSVGElement,null!=o.__h?[f]:null,i,null==f?k(o):f,o.__h),L(i,o),o.__e!=f&&b(o)),t.length>l&&t.sort(function(n,l){return n.__v.__b-l.__v.__b}));m.__r=0}function w(n,l,u,i,t,r,o,f,s,a){var h,v,p,_,b,g,m,w=i&&i.__k||c,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y(null,_,null,null,_):Array.isArray(_)?y(d,{children:_},null,null,null):_.__b>0?y(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null}z(n,_,p=p||e,t,r,o,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(m||(m=[]),p.ref&&m.push(p.ref,null,_),m.push(v,_.__c||b,_)),null!=b?(null==g&&(g=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x(_,s,n):s=P(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k(p))}for(u.__e=g,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=C(i).nextSibling),O(w[h],w[h]));if(m)for(h=0;h<m.length;h++)N(m[h],m[++h],m[++h])}function x(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?x(i,l,u):P(u,i,i,t,i.__e,l));return l}function A(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){A(n,l)}):l.push(n)),l}function P(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else{for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r}return void 0!==o?o:t.nextSibling}function C(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=C(u)))return i;return null}function $(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||I(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||I(n,r,l[r],u[r],i)}function H(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px"}function I(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||H(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||H(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?j:T,r):n.removeEventListener(l,r?j:T,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u))}}function T(n){return this.l[n.type+!1](l.event?l.event(n):n)}function j(n){return this.l[n.type+!0](l.event?l.event(n):n)}function z(n,u,i,t,r,o,f,e,c){var s,h,v,y,p,k,b,g,m,x,A,P,C,$,H,I=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l.__b)&&s(u);try{n:if("function"==typeof I){if(g=u.props,m=(s=I.contextType)&&t[s.__c],x=s?m?m.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in I&&I.prototype.render?u.__c=h=new I(g,x):(u.__c=h=new _(g,x),h.constructor=I,h.render=S),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=I.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a({},h.__s)),a(h.__s,I.getDerivedStateFromProps(g,h.__s))),y=h.props,p=h.state,h.__v=u,v)null==I.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==I.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(u.__v!==i.__v&&(h.props=g,h.state=h.__s,h.__d=!1),h.__e=!1,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u)}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k)})}if(h.context=x,h.props=g,h.__P=n,P=l.__r,C=0,"prototype"in I&&I.prototype.render){for(h.state=h.__s,h.__d=!1,P&&P(u),s=h.render(h.props,h.state,h.context),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[]}else do{h.__d=!1,P&&P(u),s=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++C<25);h.state=h.__s,null!=h.getChildContext&&(t=a(a({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),H=null!=s&&s.type===d&&null==s.key?s.props.children:s,w(n,Array.isArray(H)?H:[H],u,i,t,r,o,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=M(i.__e,u,i,t,r,o,f,c);(s=l.diffed)&&s(u)}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l.__e(n,u,i)}}function L(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function M(l,u,i,t,r,o,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,c=!1}if(null===d)y===p||c&&l.data===p||(l.data=p);else{if(o=o&&n.call(l.childNodes),a=(y=i.props||e).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""))}if($(l,p,y,r,c),v)u.__k=[];else if(_=u.props.children,w(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&k(i,0),c),null!=o)for(_=o.length;_--;)null!=o[_]&&h(o[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&I(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&I(l,"checked",_,y.checked,!1))}return l}function N(n,u,i){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,i)}}function O(n,u,i){var t,r;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||N(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(n){l.__e(n,u)}t.base=t.__P=null,n.__c=void 0}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&O(t[r],u,i||"function"!=typeof n.type);i||null==n.__e||h(n.__e),n.__=n.__e=n.__d=void 0}function S(n,l,u){return this.constructor(n,u)}function q(u,i,t){var r,o,f;l.__&&l.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],z(i,u=(!r&&t||i).__k=v(d,null,[u]),o||e,e,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),L(f,u)}function B(n,l){q(n,l,B)}function D(l,u,i){var t,r,o,f=a({},l.props);for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),y(l.type,f,t||l.key,r||l.ref,null)}function E(n,l){var u={__c:l="__cC"+f++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,g(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=c.slice,l={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t}catch(l){n=l}throw n}},u=0,i=function(n){return null!=n&&void 0===n.constructor},_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a({},this.state),"function"==typeof n&&(n=n(a({},u),this.props)),n&&a(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),g(this))},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),g(this))},_.prototype.render=d,t=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,m.__r=0,f=0;
|
|
3105
3097
|
//# sourceMappingURL=preact.module.js.map
|
|
3106
3098
|
|
|
3107
3099
|
|
|
@@ -3540,7 +3532,7 @@ function jsonifyTextPlain(param, done) {
|
|
|
3540
3532
|
return this.last_token;
|
|
3541
3533
|
}
|
|
3542
3534
|
if (!force && this.last_token && age < 3000) {
|
|
3543
|
-
if (this.token_generator) setTimeout(async () => {
|
|
3535
|
+
if (this.token_generator) util/* default.setTimeout */.Z.setTimeout(async () => {
|
|
3544
3536
|
let token, err;
|
|
3545
3537
|
try {
|
|
3546
3538
|
token = await tokenGenerator(profile_id);
|
|
@@ -4042,7 +4034,7 @@ var flow = __webpack_require__(3165);
|
|
|
4042
4034
|
|
|
4043
4035
|
|
|
4044
4036
|
|
|
4045
|
-
var Realtime = __webpack_require__(
|
|
4037
|
+
var Realtime = __webpack_require__(608);
|
|
4046
4038
|
var cookie = __webpack_require__(9554);
|
|
4047
4039
|
cookie.defaults.path = '/';
|
|
4048
4040
|
cookie.expiresMultiplier = 60 * 60 * 24;
|
|
@@ -4236,7 +4228,7 @@ class Store {
|
|
|
4236
4228
|
if (!user.id) return;
|
|
4237
4229
|
var dev = this.getDeviceInfo();
|
|
4238
4230
|
if (!dev.ga_tracking_ids || !dev.ga_client_id) return;
|
|
4239
|
-
clearInterval(_gaInterval);
|
|
4231
|
+
util/* default.clearInterval */.Z.clearInterval(_gaInterval);
|
|
4240
4232
|
this.device = dev;
|
|
4241
4233
|
let ga_client_id = dev.ga_client_id;
|
|
4242
4234
|
if (ga_client_id !== util/* default.getUserAttr */.Z.getUserAttr(user, 'ga_client_id', 'text')) {
|
|
@@ -4433,7 +4425,7 @@ class Store {
|
|
|
4433
4425
|
}
|
|
4434
4426
|
seenLoop() {
|
|
4435
4427
|
this.seenQueue = [];
|
|
4436
|
-
clearInterval(this._seenInterval);
|
|
4428
|
+
util/* default.clearInterval */.Z.clearInterval(this._seenInterval);
|
|
4437
4429
|
this._seenInterval = util/* default.setInterval */.Z.setInterval(() => {
|
|
4438
4430
|
this.seenQueue = [...new Set(this.seenQueue)];
|
|
4439
4431
|
let user = this.cache.match('user') || {};
|
|
@@ -5426,10 +5418,10 @@ class Widget {
|
|
|
5426
5418
|
let user = await this.store.login(accid, user_id, tokenGenerator);
|
|
5427
5419
|
if (!$container) $container = document.body;
|
|
5428
5420
|
this.pluginMgr = new PluginMgr(this, $container);
|
|
5429
|
-
let clean = setInterval(() => {
|
|
5421
|
+
let clean = util/* default.setInterval */.Z.setInterval(() => {
|
|
5430
5422
|
if ($container && $container.isConnected) return;
|
|
5431
5423
|
this.pluginMgr.destroy();
|
|
5432
|
-
clearInterval(clean);
|
|
5424
|
+
util/* default.clearInterval */.Z.clearInterval(clean);
|
|
5433
5425
|
}, 1000);
|
|
5434
5426
|
this.domGate.open();
|
|
5435
5427
|
return user;
|
|
@@ -5444,10 +5436,10 @@ class Widget {
|
|
|
5444
5436
|
let user = await this.store.init(accid, undefined, ref);
|
|
5445
5437
|
if (!$container) $container = document.body || document;
|
|
5446
5438
|
this.pluginMgr = new PluginMgr(this, $container);
|
|
5447
|
-
let clean = setInterval(() => {
|
|
5439
|
+
let clean = util/* default.setInterval */.Z.setInterval(() => {
|
|
5448
5440
|
if ($container && $container.isConnected) return;
|
|
5449
5441
|
this.pluginMgr.destroy();
|
|
5450
|
-
clearInterval(clean);
|
|
5442
|
+
util/* default.clearInterval */.Z.clearInterval(clean);
|
|
5451
5443
|
}, 1000);
|
|
5452
5444
|
this.domGate.open();
|
|
5453
5445
|
return user;
|
|
@@ -5456,10 +5448,10 @@ class Widget {
|
|
|
5456
5448
|
let outmask = await this.store.init(id, mask);
|
|
5457
5449
|
if (!$container) $container = document.body || document;
|
|
5458
5450
|
this.pluginMgr = new PluginMgr(this, $container);
|
|
5459
|
-
let clean = setInterval(() => {
|
|
5451
|
+
let clean = util/* default.setInterval */.Z.setInterval(() => {
|
|
5460
5452
|
if ($container && $container.isConnected) return;
|
|
5461
5453
|
this.pluginMgr.destroy();
|
|
5462
|
-
clearInterval(clean);
|
|
5454
|
+
util/* default.clearInterval */.Z.clearInterval(clean);
|
|
5463
5455
|
}, 1000);
|
|
5464
5456
|
this.domGate.open();
|
|
5465
5457
|
cb && cb(outmask);
|