@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.
- package/compiled_src/call/call.js +3 -3
- package/compiled_src/chatbox/AgentsAvatar.js +0 -3
- package/compiled_src/chatbox/ButtonAttachments.js +0 -1
- package/compiled_src/chatbox/ChatButton.js +0 -5
- package/compiled_src/chatbox/DropdownSelect.js +4 -5
- package/compiled_src/chatbox/Event.js +0 -2
- package/compiled_src/chatbox/Events.js +1 -9
- package/compiled_src/chatbox/FormAttachment.js +0 -1
- package/compiled_src/chatbox/GenericTemplateAttachments.js +0 -3
- package/compiled_src/chatbox/Header.js +5 -2
- package/compiled_src/chatbox/InfoMessage.js +0 -1
- package/compiled_src/chatbox/MessageInput.js +3 -3
- package/compiled_src/chatbox/Order.js +3 -1
- package/compiled_src/chatbox/OrderAttachments.js +0 -1
- package/compiled_src/chatbox/QuickReplies.js +0 -1
- package/compiled_src/chatbox/Rating.js +3 -1
- package/compiled_src/chatbox/TextMessage.js +0 -2
- package/compiled_src/chatbox/Typing.js +0 -1
- package/compiled_src/chatbox/Widget.js +4 -18
- package/compiled_src/chatbox/main.js +0 -1
- package/compiled_src/chatbox/releaseAnimation.js +0 -1
- package/compiled_src/contact/contact.js +3 -7
- package/compiled_src/lib.js +7 -18
- package/compiled_src/notif/notif.js +3 -3
- package/compiled_src/order/address_picker.js +4 -6
- package/compiled_src/order/index.js +0 -2
- package/compiled_src/order/order.js +4 -7
- package/compiled_src/plugin.js +0 -9
- package/compiled_src/popup/countdown.js +3 -5
- package/compiled_src/popup/popup.js +3 -8
- package/compiled_src/popup/tick.core.commonjs.js +16 -158
- package/compiled_src/popup/tick.view.flip.commonjs.js +0 -25
- package/compiled_src/store/api.js +3 -9
- package/compiled_src/store/api_fake.js +3 -3
- package/compiled_src/store/store.js +5 -48
- package/compiled_src/util/campaign.js +0 -5
- package/compiled_src/util/common.js +0 -27
- package/compiled_src/util/extractor.js +0 -1
- package/compiled_src/util/gate.test.js +0 -1
- package/compiled_src/util/index.js +0 -1
- package/compiled_src/util/op.js +0 -1
- package/compiled_src/util/order.js +0 -4
- package/dist/132.js +26 -89
- package/dist/184d8eee275.132.js +1 -0
- package/dist/184d8eee275.178.js +1 -0
- package/dist/184d8eee275.213.js +1 -0
- package/dist/184d8eee275.335.js +1 -0
- package/dist/184d8eee275.362.js +1 -0
- package/dist/184d8eee275.441.js +1 -0
- package/dist/184d8eee275.605.js +1 -0
- package/dist/184d8eee275.678.js +1 -0
- package/dist/184d8eee275.782.js +1 -0
- package/dist/184d8eee275.app.js +1 -0
- package/dist/184d8eee275.index.html +26 -0
- package/dist/184d8eee275.library.html +26 -0
- package/dist/184d8eee275.library.js +1 -0
- package/dist/184d8eee275.preview.html +759 -0
- package/dist/184d8eee275.preview.js +1 -0
- package/dist/184d8eee275.screenshoot.js +1 -0
- package/dist/213.js +22 -198
- package/dist/335.js +3 -7
- package/dist/605.js +3 -3
- package/dist/HASH +1 -1
- package/dist/assets/img/award1a.1a58e10.png +0 -0
- package/dist/assets/img/award3a.3b74423.png +0 -0
- package/dist/assets/img/award4a.ed6ccd4.png +0 -0
- package/dist/assets/img/award5.39eb7ae.png +0 -0
- package/dist/assets/img/examplte_logo.f86535f.svg +1 -0
- package/dist/assets/img/main-service1.d536cc2.png +0 -0
- package/dist/assets/img/main-service2.9b99549.png +0 -0
- package/dist/screenshoot.html +1 -1
- package/dist/screenshoot.js +14 -130
- package/package.json +4 -4
- package/src/chatbox/Header.js +9 -3
- package/src/lib.js +5 -15
|
@@ -9,7 +9,9 @@ var _common = require("../common.js");
|
|
|
9
9
|
var _preact = require("preact");
|
|
10
10
|
var _spinner = _interopRequireDefault(require("../chatbox/spinner.js"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
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; }
|
|
12
|
+
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; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
14
|
+
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); }
|
|
13
15
|
class AddressPicker extends _common.Com {
|
|
14
16
|
constructor(props) {
|
|
15
17
|
super(props);
|
|
@@ -47,7 +49,6 @@ class AddressPicker extends _common.Com {
|
|
|
47
49
|
let requestId = Date.now();
|
|
48
50
|
this.requestId = requestId;
|
|
49
51
|
let res = await this.props.store.suggest_addresses(this.state.searchValue);
|
|
50
|
-
|
|
51
52
|
if (this.requestId !== requestId) return;
|
|
52
53
|
this.setState({
|
|
53
54
|
addresses: _index.default.get(res, 'body.addresses', [])
|
|
@@ -74,11 +75,8 @@ class AddressPicker extends _common.Com {
|
|
|
74
75
|
_defineProperty(this, "onBackgroundScroll", e => {
|
|
75
76
|
console.log('EEEEEEE', e);
|
|
76
77
|
});
|
|
77
|
-
document.addEventListener('touchmove', function (e) {
|
|
78
|
-
}
|
|
79
|
-
);
|
|
78
|
+
document.addEventListener('touchmove', function (e) {});
|
|
80
79
|
}
|
|
81
|
-
|
|
82
80
|
componentDidMount() {
|
|
83
81
|
window.addEventListener('keydown', this.onKeydown);
|
|
84
82
|
}
|
|
@@ -51,7 +51,6 @@ async function load() {
|
|
|
51
51
|
};
|
|
52
52
|
let acc = store.matchAccount();
|
|
53
53
|
let plugin = findChatbox(store);
|
|
54
|
-
|
|
55
54
|
let css = (await promiseMainCSS).default.default.toString();
|
|
56
55
|
var outcss = _index.default.replaceCssVariable(css, plugin.chatbox);
|
|
57
56
|
let $cssStyleDiv = document.createElement('style');
|
|
@@ -59,7 +58,6 @@ async function load() {
|
|
|
59
58
|
$cssStyleDiv.type = 'text/css';
|
|
60
59
|
$cssStyleDiv.id = 'subiz-style-for-order';
|
|
61
60
|
_index.default.setCss('order', $cssStyleDiv, outcss);
|
|
62
|
-
|
|
63
61
|
let _locale = plugin.locale || acc.locale || 'vi-VN';
|
|
64
62
|
t.i18n = i18nText => {
|
|
65
63
|
if (!i18nText) return '';
|
|
@@ -15,7 +15,9 @@ var _spinner = _interopRequireDefault(require("../chatbox/spinner.js"));
|
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
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; }
|
|
18
|
+
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; }
|
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
20
|
+
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); }
|
|
19
21
|
var checkedimg = require('../../assets/img/done_green.svg');
|
|
20
22
|
var ximg = require('../../assets/img/x.svg');
|
|
21
23
|
class Order extends common.Com {
|
|
@@ -204,7 +206,6 @@ class Order extends common.Com {
|
|
|
204
206
|
});
|
|
205
207
|
return;
|
|
206
208
|
}
|
|
207
|
-
|
|
208
209
|
let user = this.props.store.matchUser();
|
|
209
210
|
let ufullname = _index.default.getUserAttr(user, 'fullname', 'text');
|
|
210
211
|
let uemail = _index.default.getUserAttr(user, 'emails', 'text');
|
|
@@ -269,7 +270,6 @@ class Order extends common.Com {
|
|
|
269
270
|
text: this.state.phone
|
|
270
271
|
});
|
|
271
272
|
}
|
|
272
|
-
|
|
273
273
|
if (changeduser) this.props.store.setUser(user);
|
|
274
274
|
this.setState({
|
|
275
275
|
sending: true
|
|
@@ -644,7 +644,6 @@ class Order extends common.Com {
|
|
|
644
644
|
value: this.state.email
|
|
645
645
|
})));
|
|
646
646
|
}
|
|
647
|
-
|
|
648
647
|
let seccls = 'card_section';
|
|
649
648
|
if (this.isMobile()) seccls = 'order_section';
|
|
650
649
|
return (0, _preact.h)(_preact.Fragment, null, (0, _preact.h)("div", {
|
|
@@ -760,9 +759,7 @@ class Order extends common.Com {
|
|
|
760
759
|
}, status);
|
|
761
760
|
}
|
|
762
761
|
renderShippingInfo(order) {
|
|
763
|
-
if (order.status != 'open' || order.user_confirmation) {
|
|
764
|
-
}
|
|
765
|
-
|
|
762
|
+
if (order.status != 'open' || order.user_confirmation) {}
|
|
766
763
|
let shipping_provider = _index.default.get(order, 'shipping.shipping_provider');
|
|
767
764
|
if (!shipping_provider) return null;
|
|
768
765
|
let shipping_code = _index.default.get(order, 'shipping.shipping_code');
|
package/compiled_src/plugin.js
CHANGED
|
@@ -19,7 +19,6 @@ function Plugin(plugin, store, $container, lib) {
|
|
|
19
19
|
var $div = document.createElement('div');
|
|
20
20
|
$div.id = plugin.id;
|
|
21
21
|
$container.appendChild($div);
|
|
22
|
-
|
|
23
22
|
let _locale = common.getLocale(plugin, _index.default.detectLang());
|
|
24
23
|
var domGate = new _index.default.Gate();
|
|
25
24
|
var pageIndex = 0;
|
|
@@ -111,15 +110,12 @@ function Plugin(plugin, store, $container, lib) {
|
|
|
111
110
|
this.destroy = () => {
|
|
112
111
|
_destroy = true;
|
|
113
112
|
(0, _preact.render)(null, $div);
|
|
114
|
-
|
|
115
113
|
$div.parentNode.removeChild($div);
|
|
116
114
|
};
|
|
117
|
-
|
|
118
115
|
this.highlight = comref => {
|
|
119
116
|
highlight = comref;
|
|
120
117
|
_render();
|
|
121
118
|
};
|
|
122
|
-
|
|
123
119
|
this.update = config => {
|
|
124
120
|
if (_destroy) return;
|
|
125
121
|
plugin = config;
|
|
@@ -127,7 +123,6 @@ function Plugin(plugin, store, $container, lib) {
|
|
|
127
123
|
if (state === 'finished') return;
|
|
128
124
|
_render();
|
|
129
125
|
};
|
|
130
|
-
|
|
131
126
|
let t = key => {
|
|
132
127
|
if (_locale === 'debug') return `{{${key}}}`;
|
|
133
128
|
let messages = _index.default.get(common.langMessages, _locale, []);
|
|
@@ -151,14 +146,12 @@ function Plugin(plugin, store, $container, lib) {
|
|
|
151
146
|
if (_locale === locale) return locale;
|
|
152
147
|
this.t = null;
|
|
153
148
|
_render();
|
|
154
|
-
|
|
155
149
|
_locale = common.getLocale(plugin, locale);
|
|
156
150
|
await common.downloadLanguage(store, _locale);
|
|
157
151
|
this.t = t;
|
|
158
152
|
_render();
|
|
159
153
|
return _locale;
|
|
160
154
|
};
|
|
161
|
-
|
|
162
155
|
let images = {};
|
|
163
156
|
_index.default.map(_index.default.get(plugin, 'popup.pages'), page => {
|
|
164
157
|
if (!page) return;
|
|
@@ -190,7 +183,6 @@ function Plugin(plugin, store, $container, lib) {
|
|
|
190
183
|
this.update(plugin);
|
|
191
184
|
});
|
|
192
185
|
}
|
|
193
|
-
|
|
194
186
|
class PluginMgr {
|
|
195
187
|
constructor(lib, $div) {
|
|
196
188
|
this.refM = {};
|
|
@@ -222,7 +214,6 @@ class PluginMgr {
|
|
|
222
214
|
}
|
|
223
215
|
this.pluginM[conf.id].update(conf);
|
|
224
216
|
});
|
|
225
|
-
|
|
226
217
|
_index.default.each(this.pluginM, (conf, id) => {
|
|
227
218
|
if (pluginM[id]) return;
|
|
228
219
|
this.pluginM[id].destroy();
|
|
@@ -10,7 +10,9 @@ var _index = _interopRequireDefault(require("../util/index.js"));
|
|
|
10
10
|
var _tickViewFlipCommonjs = _interopRequireDefault(require("./tick.view.flip.commonjs.js"));
|
|
11
11
|
var _preact = require("preact");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
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; }
|
|
13
|
+
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; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
+
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); }
|
|
14
16
|
_tickCoreCommonjs.default.plugin.add(_tickViewFlipCommonjs.default);
|
|
15
17
|
class Countdown extends _common.Com {
|
|
16
18
|
constructor(props) {
|
|
@@ -70,7 +72,6 @@ class Countdown extends _common.Com {
|
|
|
70
72
|
if (delta < 0) delta = 0;
|
|
71
73
|
return Math.floor(delta / 1000) || 0;
|
|
72
74
|
}
|
|
73
|
-
|
|
74
75
|
renderElectricCountdown(day, hour0, hour1, min0, min1, sec0, sec1) {
|
|
75
76
|
let fs = '28px';
|
|
76
77
|
if (this.props.com.countdown.size === 'sm') fs = '20px';
|
|
@@ -199,9 +200,7 @@ class Countdown extends _common.Com {
|
|
|
199
200
|
return this.renderFlipCountdown(day, hour0, hour1, min0, min1, sec0, sec1);
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
|
-
|
|
203
203
|
exports.default = Countdown;
|
|
204
|
-
|
|
205
204
|
const WEEKDAY_INDEX = {
|
|
206
205
|
sunday: 0,
|
|
207
206
|
monday: 1,
|
|
@@ -233,7 +232,6 @@ class Flip extends _common.Com {
|
|
|
233
232
|
let fs = '28px';
|
|
234
233
|
if (this.props.com.countdown.size === 'sm') fs = '20px';
|
|
235
234
|
if (this.props.com.countdown.size === 'lg') fs = '40px';
|
|
236
|
-
|
|
237
235
|
return (0, _preact.h)("div", {
|
|
238
236
|
ref: this._tickRef,
|
|
239
237
|
class: "tick"
|
|
@@ -9,11 +9,12 @@ var _countdown = _interopRequireDefault(require("./countdown.js"));
|
|
|
9
9
|
var _preact = require("preact");
|
|
10
10
|
var _common = require("../common.js");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
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; }
|
|
12
|
+
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; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
14
|
+
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); }
|
|
13
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
17
|
let popupCSS = (() => Promise.resolve().then(() => _interopRequireWildcard(require('./css.js'))))();
|
|
16
|
-
|
|
17
18
|
class Popup extends _common.Com {
|
|
18
19
|
constructor(props) {
|
|
19
20
|
super(props);
|
|
@@ -92,7 +93,6 @@ class Popup extends _common.Com {
|
|
|
92
93
|
let page = _index.default.get(this.props.plugin.popup, `pages.${this.getPageIndex()}`);
|
|
93
94
|
let form = _index.default.find(page.components, com => com.type === 'form');
|
|
94
95
|
if (!form || !form.form) return true;
|
|
95
|
-
|
|
96
96
|
let fields = _index.default.get(form, 'form.fields', []);
|
|
97
97
|
let wrong = _index.default.find(fields, field => {
|
|
98
98
|
if (!field.is_required) return false;
|
|
@@ -105,7 +105,6 @@ class Popup extends _common.Com {
|
|
|
105
105
|
let page = _index.default.get(this.props.plugin.popup, `pages.${this.getPageIndex()}`);
|
|
106
106
|
let form = _index.default.find(page.components, com => com.type === 'form');
|
|
107
107
|
if (!form) return;
|
|
108
|
-
|
|
109
108
|
let user = this.props.store.matchUser();
|
|
110
109
|
let userAttributes = _index.default.get(user, 'attributes');
|
|
111
110
|
let fields = _index.default.get(form, 'form.fields', []);
|
|
@@ -226,7 +225,6 @@ class Popup extends _common.Com {
|
|
|
226
225
|
var summitFields = [];
|
|
227
226
|
let user = _index.default.cloneDeep(this.props.store.matchUser());
|
|
228
227
|
let is_lead = false;
|
|
229
|
-
|
|
230
228
|
let modifiedPairs = {};
|
|
231
229
|
for (var pair of formData.entries()) {
|
|
232
230
|
if (modifiedPairs[pair[0]]) {
|
|
@@ -536,7 +534,6 @@ class Popup extends _common.Com {
|
|
|
536
534
|
onClick: e => e.stopPropagation()
|
|
537
535
|
}, $fields);
|
|
538
536
|
}
|
|
539
|
-
|
|
540
537
|
renderComponents(page) {
|
|
541
538
|
let buttons = _index.default.find(page.components, com => com.type === 'buttons');
|
|
542
539
|
let $buttons = null;
|
|
@@ -713,7 +710,6 @@ class Popup extends _common.Com {
|
|
|
713
710
|
containercss[prop] = pagestyle[prop];
|
|
714
711
|
});
|
|
715
712
|
containercss.position = 'absolute';
|
|
716
|
-
|
|
717
713
|
if (pos === 'center' || !pos) {
|
|
718
714
|
containercss.top = '50%';
|
|
719
715
|
containercss.transform = 'translateY(-50%) translateX(-50%)';
|
|
@@ -871,7 +867,6 @@ class Popup extends _common.Com {
|
|
|
871
867
|
let $imgs = _index.default.map(page.components, (com, i) => {
|
|
872
868
|
if (com.type === 'image') return this.renderImageComponent(com, i);
|
|
873
869
|
});
|
|
874
|
-
|
|
875
870
|
let formComponents = _index.default.filter(page.components, com => com.type !== 'image');
|
|
876
871
|
if (!formComponents.length) {
|
|
877
872
|
formcss.background = 'transparent';
|