@salla.sa/twilight-components 1.0.26 → 1.0.27
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/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-button_5.cjs.entry.js +10 -2
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +74 -0
- package/dist/cjs/{salla-login-bf0972bf.js → salla-login-15aff630.js} +39 -16
- package/dist/cjs/twilight-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.js +149 -0
- package/dist/collection/components/salla-login/salla-login.js +78 -22
- package/dist/collection/components/salla-modal/salla-modal.js +20 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +12 -5
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/salla-button_5.entry.js +10 -2
- package/dist/esm/salla-infinite-scroll.entry.js +70 -0
- package/dist/esm/{salla-login-fcb7ad15.js → salla-login-e6e86a3d.js} +39 -16
- package/dist/esm/twilight-components.js +1 -1
- package/dist/twilight-components/index.esm.js +1 -1
- package/dist/twilight-components/p-932906dc.entry.js +1 -0
- package/dist/twilight-components/p-c479a524.entry.js +1 -0
- package/dist/twilight-components/p-f97ea1f7.js +1 -0
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/dist/types/components/salla-infinite-scroll/salla-infinite-scroll.d.ts +27 -0
- package/dist/types/components/salla-login/salla-login.d.ts +2 -0
- package/dist/types/components/salla-modal/salla-modal.d.ts +1 -0
- package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +5 -5
- package/dist/types/components.d.ts +45 -0
- package/package.json +1 -1
- package/dist/twilight-components/p-13855688.js +0 -1
- package/dist/twilight-components/p-6d5f0951.entry.js +0 -1
|
@@ -2,8 +2,21 @@ import { Component, Element, h, Listen, Method, Prop, State } from '@stencil/cor
|
|
|
2
2
|
import Helper from "../../Helpers/Helper";
|
|
3
3
|
export class SallaLogin {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.isEmailAllowed = true;
|
|
6
5
|
this.regType = 'phone';
|
|
6
|
+
this.title = salla.lang.get('blocks.header.login');
|
|
7
|
+
this.loginTypeTitle = salla.lang.get('blocks.header.select_login_way');
|
|
8
|
+
this.loginText = salla.lang.get('blocks.header.login');
|
|
9
|
+
this.smsLabel = salla.lang.get('blocks.header.sms');
|
|
10
|
+
this.mobileLabel = salla.lang.get('common.elements.mobile');
|
|
11
|
+
this.emailLabel = salla.lang.get('common.elements.email');
|
|
12
|
+
this.enterText = salla.lang.get('blocks.header.enter');
|
|
13
|
+
this.bySMSText = salla.lang.get('blocks.header.login_by_sms');
|
|
14
|
+
this.byEmailText = salla.lang.get('blocks.header.login_by_email');
|
|
15
|
+
this.emailErrorMsg = salla.lang.get('common.elements.email_is_valid');
|
|
16
|
+
this.firstNameLabel = salla.lang.get('blocks.header.your_name');
|
|
17
|
+
this.lastNameLabel = salla.lang.get('pages.profile.last_name');
|
|
18
|
+
this.firstNameErrorMsg = salla.lang.get('common.errors.field_required', { attribute: this.firstNameLabel });
|
|
19
|
+
this.lastNameErrorMsg = salla.lang.get('common.errors.field_required', { attribute: this.lastNameLabel });
|
|
7
20
|
this.typing = (e, submitMethod) => {
|
|
8
21
|
const error = e.target.nextElementSibling;
|
|
9
22
|
e.target.classList.remove('s-has-error');
|
|
@@ -37,21 +50,22 @@ export class SallaLogin {
|
|
|
37
50
|
.then(() => this.verifyTab.show({ email: this.loginEmail.value }));
|
|
38
51
|
};
|
|
39
52
|
this.newUser = async () => {
|
|
40
|
-
|
|
53
|
+
var _a;
|
|
54
|
+
const { mobile: regPhone, countryCode, countryKey } = await this.regTelInput.getValues(), emailValue = this.regEmail.value || ((_a = this.loginEmail) === null || _a === void 0 ? void 0 : _a.value);
|
|
41
55
|
await this.newUserValidation();
|
|
42
56
|
await this.regBtn.load();
|
|
43
57
|
await this.regBtn.disable();
|
|
44
|
-
|
|
45
|
-
.then(code => salla.auth.api.register({
|
|
58
|
+
let data = {
|
|
46
59
|
first_name: this.firstName.value,
|
|
47
60
|
last_name: this.lastName.value,
|
|
48
61
|
phone: regPhone || this.loginTelInput.mobile,
|
|
49
|
-
email: this.regEmail.value || this.loginEmail.value,
|
|
50
62
|
country_code: countryCode,
|
|
51
63
|
country_key: countryKey,
|
|
52
|
-
code: code,
|
|
53
64
|
verified_by: this.regType,
|
|
54
|
-
}
|
|
65
|
+
};
|
|
66
|
+
emailValue && (data = Object.assign(Object.assign({}, data), { email: emailValue }));
|
|
67
|
+
this.verifyTab.getCode()
|
|
68
|
+
.then(code => salla.auth.api.register(Object.assign(Object.assign({}, data), { code })))
|
|
55
69
|
.then(() => window.location.reload())
|
|
56
70
|
.catch(() => this.regBtn.stop() && this.regBtn.enable());
|
|
57
71
|
};
|
|
@@ -59,6 +73,7 @@ export class SallaLogin {
|
|
|
59
73
|
this.host.removeAttribute('title');
|
|
60
74
|
salla.event.on('languages::translations.loaded', () => {
|
|
61
75
|
var _a;
|
|
76
|
+
this.title = salla.lang.get('blocks.header.login');
|
|
62
77
|
this.loginTypeTitle = salla.lang.get('blocks.header.select_login_way');
|
|
63
78
|
this.loginText = salla.lang.get('blocks.header.login');
|
|
64
79
|
this.smsLabel = salla.lang.get('blocks.header.sms');
|
|
@@ -67,14 +82,12 @@ export class SallaLogin {
|
|
|
67
82
|
this.enterText = salla.lang.get('blocks.header.enter');
|
|
68
83
|
this.bySMSText = salla.lang.get('blocks.header.login_by_sms');
|
|
69
84
|
this.byEmailText = salla.lang.get('blocks.header.login_by_email');
|
|
70
|
-
this.title = salla.lang.get('blocks.header.login');
|
|
71
85
|
this.emailErrorMsg = salla.lang.get('common.elements.email_is_valid');
|
|
72
86
|
this.firstNameLabel = salla.lang.get('blocks.header.your_name');
|
|
73
87
|
this.lastNameLabel = salla.lang.get('pages.profile.last_name');
|
|
74
88
|
this.firstNameErrorMsg = salla.lang.get('common.errors.field_required', { attribute: this.firstNameLabel });
|
|
75
89
|
this.lastNameErrorMsg = salla.lang.get('common.errors.field_required', { attribute: this.lastNameLabel });
|
|
76
90
|
(_a = this.modal) === null || _a === void 0 ? void 0 : _a.setTitle(this.title);
|
|
77
|
-
this.showTab(this.isEmailAllowed ? this.homeTab : this.mobileTab);
|
|
78
91
|
});
|
|
79
92
|
salla.auth.event.onVerificationFailed(() => {
|
|
80
93
|
//
|
|
@@ -106,7 +119,15 @@ export class SallaLogin {
|
|
|
106
119
|
this.regType == 'phone' ? this.showTab(this.mobileTab) : this.showTab(this.emailTab);
|
|
107
120
|
}
|
|
108
121
|
async show() {
|
|
109
|
-
|
|
122
|
+
if (this.isEmailAllowed && this.isMobileAllowed) {
|
|
123
|
+
this.showTab(this.homeTab);
|
|
124
|
+
}
|
|
125
|
+
else if (this.isEmailAllowed) {
|
|
126
|
+
this.showTab(this.emailTab);
|
|
127
|
+
}
|
|
128
|
+
else if (this.isMobileAllowed) {
|
|
129
|
+
this.showTab(this.mobileTab);
|
|
130
|
+
}
|
|
110
131
|
return this.modal.show();
|
|
111
132
|
}
|
|
112
133
|
showTab(tab, evt) {
|
|
@@ -132,8 +153,8 @@ export class SallaLogin {
|
|
|
132
153
|
return this;
|
|
133
154
|
}
|
|
134
155
|
async newUserValidation() {
|
|
135
|
-
const
|
|
136
|
-
if (
|
|
156
|
+
const isLogByPhone = this.regType == "phone", isLogByEmail = this.regType == "email", emailValue = this.regEmail.value || (isLogByEmail && this.loginEmail.value), isEmailValid = Helper.isValidEmail(emailValue), isFirstNameValid = this.firstName.value.length > 0, isLastNameValid = this.lastName.value.length > 0, isPhoneValid = await this.regTelInput.isValid() || isLogByPhone && await this.loginTelInput.isValid(), emailValidation = (emailValue && isEmailValid) || (!emailValue && !this.isEmailRequired);
|
|
157
|
+
if (emailValidation && isPhoneValid && isFirstNameValid && isLastNameValid)
|
|
137
158
|
return;
|
|
138
159
|
!isEmailValid && this.validateField(this.regEmail, this.emailErrorMsg);
|
|
139
160
|
!isFirstNameValid && this.validateField(this.firstName, this.firstNameErrorMsg);
|
|
@@ -147,7 +168,7 @@ export class SallaLogin {
|
|
|
147
168
|
render() {
|
|
148
169
|
return (h("salla-modal", { id: "salla-login", icon: "sicon-user", title: this.title, ref: modal => this.modal = modal, width: "xs" },
|
|
149
170
|
h("div", { class: "s-login-wrapper" },
|
|
150
|
-
this.isEmailAllowed ?
|
|
171
|
+
this.isEmailAllowed && this.isMobileAllowed ?
|
|
151
172
|
h("div", { class: "s-login-tab", ref: tab => this.homeTab = tab },
|
|
152
173
|
h("p", { class: "s-login-sub-title" }, this.loginTypeTitle),
|
|
153
174
|
h("a", { href: "#", class: "s-login-main-btn", onClick: (evt) => this.showTab(this.mobileTab, evt) },
|
|
@@ -159,19 +180,21 @@ export class SallaLogin {
|
|
|
159
180
|
h("span", { class: "s-login-main-btn-text" }, this.emailLabel),
|
|
160
181
|
h("i", { class: "main-btn-arrow sicon-keyboard_arrow_left" })))
|
|
161
182
|
: '',
|
|
162
|
-
|
|
163
|
-
h("
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
183
|
+
this.isMobileAllowed ?
|
|
184
|
+
h("div", { class: "s-login-tab", ref: tab => this.mobileTab = tab },
|
|
185
|
+
h("label", { class: "s-login-label" }, this.mobileLabel),
|
|
186
|
+
h("salla-tel-input", { ref: el => this.loginTelInput = el, onKeyDown: e => this.typing(e, this.loginBySMS) }),
|
|
187
|
+
h("salla-button", { "loader-position": 'center', wide: true, onClick: () => this.loginBySMS(), ref: b => this.smsBtn = b }, this.enterText),
|
|
188
|
+
this.isEmailAllowed ?
|
|
189
|
+
h("a", { href: "#", onClick: () => this.showTab(this.emailTab), class: "s-login-link" }, this.byEmailText) : '') : '',
|
|
168
190
|
this.isEmailAllowed ?
|
|
169
191
|
h("div", { class: "s-login-tab", ref: tab => this.emailTab = tab },
|
|
170
192
|
h("label", { class: "s-login-label" }, this.emailLabel),
|
|
171
193
|
h("input", { type: "email", ref: el => this.loginEmail = el, onKeyDown: e => this.typing(e, this.loginByEmail), placeholder: "your@email.com", class: "s-login-input s-ltr" }),
|
|
172
194
|
h("span", { class: "s-login-error-message" }),
|
|
173
195
|
h("salla-button", { "loader-position": 'center', wide: true, onClick: () => this.loginByEmail(), ref: b => this.emailBtn = b }, this.enterText),
|
|
174
|
-
|
|
196
|
+
this.isMobileAllowed ?
|
|
197
|
+
h("a", { href: "#", onClick: () => this.showTab(this.mobileTab), class: "s-login-link" }, this.bySMSText) : '') : '',
|
|
175
198
|
h("salla-verify", { "without-modal": true, ref: tab => this.verifyTab = tab, autoReload: false, "is-show-back": true }),
|
|
176
199
|
h("div", { ref: tab => this.registrationTab = tab },
|
|
177
200
|
h("label", { class: "s-login-label" }, this.firstNameLabel),
|
|
@@ -212,8 +235,41 @@ export class SallaLogin {
|
|
|
212
235
|
"text": ""
|
|
213
236
|
},
|
|
214
237
|
"attribute": "is-email-allowed",
|
|
215
|
-
"reflect": false
|
|
216
|
-
|
|
238
|
+
"reflect": false
|
|
239
|
+
},
|
|
240
|
+
"isMobileAllowed": {
|
|
241
|
+
"type": "boolean",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "boolean",
|
|
245
|
+
"resolved": "boolean",
|
|
246
|
+
"references": {}
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": false,
|
|
250
|
+
"docs": {
|
|
251
|
+
"tags": [],
|
|
252
|
+
"text": ""
|
|
253
|
+
},
|
|
254
|
+
"attribute": "is-mobile-allowed",
|
|
255
|
+
"reflect": false
|
|
256
|
+
},
|
|
257
|
+
"isEmailRequired": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "boolean",
|
|
262
|
+
"resolved": "boolean",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": false,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": ""
|
|
270
|
+
},
|
|
271
|
+
"attribute": "is-email-required",
|
|
272
|
+
"reflect": false
|
|
217
273
|
}
|
|
218
274
|
}; }
|
|
219
275
|
static get states() { return {
|
|
@@ -17,6 +17,7 @@ export class SallaModal {
|
|
|
17
17
|
this.visible = false;
|
|
18
18
|
this.isLoading = false;
|
|
19
19
|
this.subTitleFirst = false;
|
|
20
|
+
this.noPadding = false;
|
|
20
21
|
this.subTitle = '';
|
|
21
22
|
this.icon = '';
|
|
22
23
|
this.imageIcon = '';
|
|
@@ -83,7 +84,7 @@ export class SallaModal {
|
|
|
83
84
|
h("div", { class: "s-modal-wrapper" },
|
|
84
85
|
h("div", { class: "s-modal-overlay", ref: el => this.overlay = el, onClick: () => this.closeModal() }),
|
|
85
86
|
h("span", { class: 's-modal-spacer s-modal-align-' + this.position }, "\u200B"),
|
|
86
|
-
h("div", { class: 's-modal-body ' + 's-modal-align-' + this.position + ' s-modal-' + this.width, slot: "body" }, this.isLoading
|
|
87
|
+
h("div", { class: 's-modal-body s-modal-scroll-y ' + 's-modal-align-' + this.position + ' s-modal-' + this.width + (this.noPadding ? ' s-modal-nopadding' : ' s-modal-padding'), slot: "body" }, this.isLoading
|
|
87
88
|
? h("div", { class: "s-modal-loader-wrap" },
|
|
88
89
|
h("span", { class: "s-modal-loader" }))
|
|
89
90
|
:
|
|
@@ -288,6 +289,24 @@ export class SallaModal {
|
|
|
288
289
|
"reflect": false,
|
|
289
290
|
"defaultValue": "false"
|
|
290
291
|
},
|
|
292
|
+
"noPadding": {
|
|
293
|
+
"type": "boolean",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "boolean",
|
|
297
|
+
"resolved": "boolean",
|
|
298
|
+
"references": {}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": false,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": ""
|
|
305
|
+
},
|
|
306
|
+
"attribute": "no-padding",
|
|
307
|
+
"reflect": false,
|
|
308
|
+
"defaultValue": "false"
|
|
309
|
+
},
|
|
291
310
|
"subTitle": {
|
|
292
311
|
"type": "string",
|
|
293
312
|
"mutable": false,
|
|
@@ -5,6 +5,13 @@ export class SallaTelInput {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.countryCode = "SA";
|
|
7
7
|
this.countryKey = "+966";
|
|
8
|
+
this.countryCodeLabel = salla.lang.get('common.country_code');
|
|
9
|
+
this.mobileLabel = salla.lang.get('common.elements.mobile');
|
|
10
|
+
this.tooShort = salla.lang.get('common.errors.too_short', { attribute: this.mobileLabel });
|
|
11
|
+
this.tooLong = salla.lang.get('common.errors.too_long', { attribute: this.mobileLabel });
|
|
12
|
+
this.invalidCountryCode = salla.lang.get('common.errors.invalid_value', { attribute: this.countryCodeLabel });
|
|
13
|
+
this.invalidNumber = salla.lang.get('common.errors.invalid_value', { attribute: this.mobileLabel });
|
|
14
|
+
this.errorMap = [this.invalidNumber, this.invalidCountryCode, this.tooShort, this.tooLong, this.invalidNumber];
|
|
8
15
|
Helper.setHost(this.host);
|
|
9
16
|
salla.event.on('languages::translations.loaded', () => {
|
|
10
17
|
this.mobileLabel = salla.lang.get('common.elements.mobile');
|
|
@@ -138,13 +145,13 @@ export class SallaTelInput {
|
|
|
138
145
|
}
|
|
139
146
|
}; }
|
|
140
147
|
static get states() { return {
|
|
141
|
-
"
|
|
142
|
-
"
|
|
148
|
+
"mobileRequired": {},
|
|
149
|
+
"countryCodeLabel": {},
|
|
150
|
+
"mobileLabel": {},
|
|
143
151
|
"tooShort": {},
|
|
144
152
|
"tooLong": {},
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"mobileRequired": {},
|
|
153
|
+
"invalidCountryCode": {},
|
|
154
|
+
"invalidNumber": {},
|
|
148
155
|
"errorMap": {}
|
|
149
156
|
}; }
|
|
150
157
|
static get events() { return [{
|
package/dist/esm/index.js
CHANGED
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["salla-button_5",[[0,"salla-login",{"isEmailAllowed":[4,"is-email-allowed"],"title":[32],"loginTypeTitle":[32],"loginText":[32],"smsLabel":[32],"mobileLabel":[32],"emailLabel":[32],"enterText":[32],"bySMSText":[32],"byEmailText":[32],"emailErrorMsg":[32],"firstNameLabel":[32],"lastNameLabel":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"show":[64]},[[0,"verified","onVerified"],[0,"backClicked","onbackClicked"]]],[0,"salla-verify",{"withoutModal":[4,"without-modal"],"url":[513],"by":[1],"isShowBack":[4,"is-show-back"],"autoReload":[4,"auto-reload"],"title":[32],"getCode":[64],"show":[64]}],[0,"salla-tel-input",{"mobile":[1025],"countryCode":[1025,"country-code"],"countryKey":[1025,"country-key"],"
|
|
13
|
+
return bootstrapLazy([["salla-button_5",[[0,"salla-login",{"isEmailAllowed":[4,"is-email-allowed"],"isMobileAllowed":[4,"is-mobile-allowed"],"isEmailRequired":[4,"is-email-required"],"title":[32],"loginTypeTitle":[32],"loginText":[32],"smsLabel":[32],"mobileLabel":[32],"emailLabel":[32],"enterText":[32],"bySMSText":[32],"byEmailText":[32],"emailErrorMsg":[32],"firstNameLabel":[32],"lastNameLabel":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"show":[64]},[[0,"verified","onVerified"],[0,"backClicked","onbackClicked"]]],[0,"salla-verify",{"withoutModal":[4,"without-modal"],"url":[513],"by":[1],"isShowBack":[4,"is-show-back"],"autoReload":[4,"auto-reload"],"title":[32],"getCode":[64],"show":[64]}],[0,"salla-tel-input",{"mobile":[1025],"countryCode":[1025,"country-code"],"countryKey":[1025,"country-key"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-button",{"btnStyle":[513,"btn-style"],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"wide":[4],"load":[64],"stop":[64],"disable":[64],"enable":[64]}],[4,"salla-modal",{"error":[4],"success":[4],"primary":[4],"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"icon":[1],"imageIcon":[1,"image-icon"],"title":[32],"show":[64],"hide":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}]]],["salla-product-availability",[[4,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"subscribeText":[32],"cancelText":[32],"subTitle":[32],"mobileLabel":[32],"emailLabel":[32],"emailPlaceholder":[32],"subscribedMessage":[32],"title_":[32],"buttonText":[32],"emailErrorMsg":[32]}]]],["salla-branches",[[4,"salla-branches",{"position":[1],"displayAs":[1,"display-as"],"browseProductsFrom":[1,"browse-products-from"],"branches":[16],"current":[1026],"open":[32],"selected":[32],"isOpenedBefore":[32],"ok":[32],"show":[64],"hide":[64]}]]],["salla-localization",[[4,"salla-localization",{"languagesTitle":[32],"currenciesTitle":[32],"ok":[32],"show":[64],"hide":[64],"submit":[64]}]]],["salla-offer",[[0,"salla-offer",{"offer":[32],"show":[64]}]]],["salla-rating",[[0,"salla-rating",{"order":[32],"show":[64],"hide":[64]}]]],["salla-search",[[0,"salla-search",{"results":[32],"placeholder":[32],"noResultsText":[32]},[[0,"modalOpened","onModalOpen"],[0,"modalClosed","onModalClose"]]]]],["salla-infinite-scroll",[[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[4],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-a1bf769d.js';
|
|
2
2
|
import { H as Helper } from './Helper-d07ebbc7.js';
|
|
3
|
-
export { S as salla_login } from './salla-login-
|
|
3
|
+
export { S as salla_login } from './salla-login-e6e86a3d.js';
|
|
4
4
|
|
|
5
5
|
const sallaButtonCss = ":host{display:block}";
|
|
6
6
|
|
|
@@ -93,6 +93,7 @@ const SallaModal = class {
|
|
|
93
93
|
this.visible = false;
|
|
94
94
|
this.isLoading = false;
|
|
95
95
|
this.subTitleFirst = false;
|
|
96
|
+
this.noPadding = false;
|
|
96
97
|
this.subTitle = '';
|
|
97
98
|
this.icon = '';
|
|
98
99
|
this.imageIcon = '';
|
|
@@ -155,7 +156,7 @@ const SallaModal = class {
|
|
|
155
156
|
this.host.id = this.host.id || 'salla-modal';
|
|
156
157
|
return (
|
|
157
158
|
//todo:: use suitable class name instead of hidden
|
|
158
|
-
h(Host, { class: 's-modal-container hidden', "aria-modal": "true", role: "dialog" }, h("div", { class: "s-modal-wrapper" }, h("div", { class: "s-modal-overlay", ref: el => this.overlay = el, onClick: () => this.closeModal() }), h("span", { class: 's-modal-spacer s-modal-align-' + this.position }, "\u200B"), h("div", { class: 's-modal-body ' + 's-modal-align-' + this.position + ' s-modal-' + this.width, slot: "body" }, this.isLoading
|
|
159
|
+
h(Host, { class: 's-modal-container hidden', "aria-modal": "true", role: "dialog" }, h("div", { class: "s-modal-wrapper" }, h("div", { class: "s-modal-overlay", ref: el => this.overlay = el, onClick: () => this.closeModal() }), h("span", { class: 's-modal-spacer s-modal-align-' + this.position }, "\u200B"), h("div", { class: 's-modal-body s-modal-scroll-y ' + 's-modal-align-' + this.position + ' s-modal-' + this.width + (this.noPadding ? ' s-modal-nopadding' : ' s-modal-padding'), slot: "body" }, this.isLoading
|
|
159
160
|
? h("div", { class: "s-modal-loader-wrap" }, h("span", { class: "s-modal-loader" }))
|
|
160
161
|
:
|
|
161
162
|
[h("div", { class: { 's-modal-header': true, 's-modal-is-center': this.icon != '' || this.imageIcon != '' } }, this.isClosable ?
|
|
@@ -1567,6 +1568,13 @@ const SallaTelInput = class {
|
|
|
1567
1568
|
this.enterClicked = createEvent(this, "enterClicked", 7);
|
|
1568
1569
|
this.countryCode = "SA";
|
|
1569
1570
|
this.countryKey = "+966";
|
|
1571
|
+
this.countryCodeLabel = salla.lang.get('common.country_code');
|
|
1572
|
+
this.mobileLabel = salla.lang.get('common.elements.mobile');
|
|
1573
|
+
this.tooShort = salla.lang.get('common.errors.too_short', { attribute: this.mobileLabel });
|
|
1574
|
+
this.tooLong = salla.lang.get('common.errors.too_long', { attribute: this.mobileLabel });
|
|
1575
|
+
this.invalidCountryCode = salla.lang.get('common.errors.invalid_value', { attribute: this.countryCodeLabel });
|
|
1576
|
+
this.invalidNumber = salla.lang.get('common.errors.invalid_value', { attribute: this.mobileLabel });
|
|
1577
|
+
this.errorMap = [this.invalidNumber, this.invalidCountryCode, this.tooShort, this.tooLong, this.invalidNumber];
|
|
1570
1578
|
Helper.setHost(this.host);
|
|
1571
1579
|
salla.event.on('languages::translations.loaded', () => {
|
|
1572
1580
|
this.mobileLabel = salla.lang.get('common.elements.mobile');
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-a1bf769d.js';
|
|
2
|
+
import { H as Helper } from './Helper-d07ebbc7.js';
|
|
3
|
+
|
|
4
|
+
const SallaInfiniteScroll = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
/**
|
|
8
|
+
* Next Page element
|
|
9
|
+
*/
|
|
10
|
+
this.nextPage = '';
|
|
11
|
+
this.autoload = false;
|
|
12
|
+
/**
|
|
13
|
+
* Class selector to know the container if it's not the host `<salla-infinite-scroll>`
|
|
14
|
+
*/
|
|
15
|
+
this.container = '.s-infinite-scroll-container';
|
|
16
|
+
/**
|
|
17
|
+
* Class selector to know list items
|
|
18
|
+
*/
|
|
19
|
+
this.item = '.list-block';
|
|
20
|
+
Helper.setHost(this.host);
|
|
21
|
+
this.status = document.createElement('div');
|
|
22
|
+
this.status.className = 's-infinite-scroll-wrapper';
|
|
23
|
+
this.status.innerHTML = `<div class="s-infinite-scroll-status" style="display:none">
|
|
24
|
+
<p class="s-infinite-scroll-last infinite-scroll-last"></p>
|
|
25
|
+
<p class="s-infinite-scroll-error infinite-scroll-error"></p>
|
|
26
|
+
</div>
|
|
27
|
+
<a href="${this.nextPage}" class="s-button-btn btn--has-loading s-button-primary">
|
|
28
|
+
<span class="s-button-text"></span>
|
|
29
|
+
<span class="s-button-loader s-button-loader-start" style="display: none"></span>
|
|
30
|
+
</a>`;
|
|
31
|
+
this.btnLoader = this.status.querySelector('.s-button-loader');
|
|
32
|
+
salla.event.on('languages::translations.loaded', () => {
|
|
33
|
+
this.status.querySelector('.s-button-text').innerHTML = salla.lang.get('common.elements.load_more');
|
|
34
|
+
this.status.querySelector('.s-infinite-scroll-last').innerHTML = salla.lang.get('common.elements.end_of_content');
|
|
35
|
+
this.status.querySelector('.s-infinite-scroll-error').innerHTML = salla.lang.get('common.elements.failed_to_load_more');
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
loading(isLoading = true) {
|
|
39
|
+
this.btnLoader.style.display = isLoading ? 'inline-block' : 'none';
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return this.nextPage.length > 1 ?
|
|
43
|
+
h(Host, { class: "s-infinite-scroll-container" }, h("slot", null)) : '';
|
|
44
|
+
}
|
|
45
|
+
componentDidLoad() {
|
|
46
|
+
if (this.nextPage.length === 0) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.host.insertAdjacentElement('afterend', this.status);
|
|
50
|
+
let that = this;
|
|
51
|
+
salla.infiniteScroll.initiate(this.container, {
|
|
52
|
+
history: this.autoload ? 'push' : false,
|
|
53
|
+
scrollThreshold: this.autoload ? 400 : false,
|
|
54
|
+
nextPage: this.nextPage,
|
|
55
|
+
checkLastPage: 'salla-infinite-scroll[next-page*=":"]',
|
|
56
|
+
status: '.s-infinite-scroll-status',
|
|
57
|
+
button: this.status.querySelector('.s-button-btn'),
|
|
58
|
+
append: this.item,
|
|
59
|
+
path: function () {
|
|
60
|
+
return that.nextPage.replace(/page\=(\d)/g, 'page=' + (this.loadCount + 2));
|
|
61
|
+
},
|
|
62
|
+
})
|
|
63
|
+
.on('request', () => this.loading())
|
|
64
|
+
.on('load', () => this.loading(false))
|
|
65
|
+
.on('error', () => this.loading(false));
|
|
66
|
+
}
|
|
67
|
+
get host() { return getElement(this); }
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export { SallaInfiniteScroll as salla_infinite_scroll };
|
|
@@ -6,8 +6,21 @@ const sallaLoginCss = "salla-verify{display:block}#salla-login .s-modal-body{ove
|
|
|
6
6
|
const SallaLogin = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
-
this.isEmailAllowed = true;
|
|
10
9
|
this.regType = 'phone';
|
|
10
|
+
this.title = salla.lang.get('blocks.header.login');
|
|
11
|
+
this.loginTypeTitle = salla.lang.get('blocks.header.select_login_way');
|
|
12
|
+
this.loginText = salla.lang.get('blocks.header.login');
|
|
13
|
+
this.smsLabel = salla.lang.get('blocks.header.sms');
|
|
14
|
+
this.mobileLabel = salla.lang.get('common.elements.mobile');
|
|
15
|
+
this.emailLabel = salla.lang.get('common.elements.email');
|
|
16
|
+
this.enterText = salla.lang.get('blocks.header.enter');
|
|
17
|
+
this.bySMSText = salla.lang.get('blocks.header.login_by_sms');
|
|
18
|
+
this.byEmailText = salla.lang.get('blocks.header.login_by_email');
|
|
19
|
+
this.emailErrorMsg = salla.lang.get('common.elements.email_is_valid');
|
|
20
|
+
this.firstNameLabel = salla.lang.get('blocks.header.your_name');
|
|
21
|
+
this.lastNameLabel = salla.lang.get('pages.profile.last_name');
|
|
22
|
+
this.firstNameErrorMsg = salla.lang.get('common.errors.field_required', { attribute: this.firstNameLabel });
|
|
23
|
+
this.lastNameErrorMsg = salla.lang.get('common.errors.field_required', { attribute: this.lastNameLabel });
|
|
11
24
|
this.typing = (e, submitMethod) => {
|
|
12
25
|
const error = e.target.nextElementSibling;
|
|
13
26
|
e.target.classList.remove('s-has-error');
|
|
@@ -41,21 +54,22 @@ const SallaLogin = class {
|
|
|
41
54
|
.then(() => this.verifyTab.show({ email: this.loginEmail.value }));
|
|
42
55
|
};
|
|
43
56
|
this.newUser = async () => {
|
|
44
|
-
|
|
57
|
+
var _a;
|
|
58
|
+
const { mobile: regPhone, countryCode, countryKey } = await this.regTelInput.getValues(), emailValue = this.regEmail.value || ((_a = this.loginEmail) === null || _a === void 0 ? void 0 : _a.value);
|
|
45
59
|
await this.newUserValidation();
|
|
46
60
|
await this.regBtn.load();
|
|
47
61
|
await this.regBtn.disable();
|
|
48
|
-
|
|
49
|
-
.then(code => salla.auth.api.register({
|
|
62
|
+
let data = {
|
|
50
63
|
first_name: this.firstName.value,
|
|
51
64
|
last_name: this.lastName.value,
|
|
52
65
|
phone: regPhone || this.loginTelInput.mobile,
|
|
53
|
-
email: this.regEmail.value || this.loginEmail.value,
|
|
54
66
|
country_code: countryCode,
|
|
55
67
|
country_key: countryKey,
|
|
56
|
-
code: code,
|
|
57
68
|
verified_by: this.regType,
|
|
58
|
-
}
|
|
69
|
+
};
|
|
70
|
+
emailValue && (data = Object.assign(Object.assign({}, data), { email: emailValue }));
|
|
71
|
+
this.verifyTab.getCode()
|
|
72
|
+
.then(code => salla.auth.api.register(Object.assign(Object.assign({}, data), { code })))
|
|
59
73
|
.then(() => window.location.reload())
|
|
60
74
|
.catch(() => this.regBtn.stop() && this.regBtn.enable());
|
|
61
75
|
};
|
|
@@ -63,6 +77,7 @@ const SallaLogin = class {
|
|
|
63
77
|
this.host.removeAttribute('title');
|
|
64
78
|
salla.event.on('languages::translations.loaded', () => {
|
|
65
79
|
var _a;
|
|
80
|
+
this.title = salla.lang.get('blocks.header.login');
|
|
66
81
|
this.loginTypeTitle = salla.lang.get('blocks.header.select_login_way');
|
|
67
82
|
this.loginText = salla.lang.get('blocks.header.login');
|
|
68
83
|
this.smsLabel = salla.lang.get('blocks.header.sms');
|
|
@@ -71,14 +86,12 @@ const SallaLogin = class {
|
|
|
71
86
|
this.enterText = salla.lang.get('blocks.header.enter');
|
|
72
87
|
this.bySMSText = salla.lang.get('blocks.header.login_by_sms');
|
|
73
88
|
this.byEmailText = salla.lang.get('blocks.header.login_by_email');
|
|
74
|
-
this.title = salla.lang.get('blocks.header.login');
|
|
75
89
|
this.emailErrorMsg = salla.lang.get('common.elements.email_is_valid');
|
|
76
90
|
this.firstNameLabel = salla.lang.get('blocks.header.your_name');
|
|
77
91
|
this.lastNameLabel = salla.lang.get('pages.profile.last_name');
|
|
78
92
|
this.firstNameErrorMsg = salla.lang.get('common.errors.field_required', { attribute: this.firstNameLabel });
|
|
79
93
|
this.lastNameErrorMsg = salla.lang.get('common.errors.field_required', { attribute: this.lastNameLabel });
|
|
80
94
|
(_a = this.modal) === null || _a === void 0 ? void 0 : _a.setTitle(this.title);
|
|
81
|
-
this.showTab(this.isEmailAllowed ? this.homeTab : this.mobileTab);
|
|
82
95
|
});
|
|
83
96
|
salla.auth.event.onVerificationFailed(() => {
|
|
84
97
|
//
|
|
@@ -110,7 +123,15 @@ const SallaLogin = class {
|
|
|
110
123
|
this.regType == 'phone' ? this.showTab(this.mobileTab) : this.showTab(this.emailTab);
|
|
111
124
|
}
|
|
112
125
|
async show() {
|
|
113
|
-
|
|
126
|
+
if (this.isEmailAllowed && this.isMobileAllowed) {
|
|
127
|
+
this.showTab(this.homeTab);
|
|
128
|
+
}
|
|
129
|
+
else if (this.isEmailAllowed) {
|
|
130
|
+
this.showTab(this.emailTab);
|
|
131
|
+
}
|
|
132
|
+
else if (this.isMobileAllowed) {
|
|
133
|
+
this.showTab(this.mobileTab);
|
|
134
|
+
}
|
|
114
135
|
return this.modal.show();
|
|
115
136
|
}
|
|
116
137
|
showTab(tab, evt) {
|
|
@@ -136,8 +157,8 @@ const SallaLogin = class {
|
|
|
136
157
|
return this;
|
|
137
158
|
}
|
|
138
159
|
async newUserValidation() {
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
160
|
+
const isLogByPhone = this.regType == "phone", isLogByEmail = this.regType == "email", emailValue = this.regEmail.value || (isLogByEmail && this.loginEmail.value), isEmailValid = Helper.isValidEmail(emailValue), isFirstNameValid = this.firstName.value.length > 0, isLastNameValid = this.lastName.value.length > 0, isPhoneValid = await this.regTelInput.isValid() || isLogByPhone && await this.loginTelInput.isValid(), emailValidation = (emailValue && isEmailValid) || (!emailValue && !this.isEmailRequired);
|
|
161
|
+
if (emailValidation && isPhoneValid && isFirstNameValid && isLastNameValid)
|
|
141
162
|
return;
|
|
142
163
|
!isEmailValid && this.validateField(this.regEmail, this.emailErrorMsg);
|
|
143
164
|
!isFirstNameValid && this.validateField(this.firstName, this.firstNameErrorMsg);
|
|
@@ -149,11 +170,13 @@ const SallaLogin = class {
|
|
|
149
170
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
150
171
|
}
|
|
151
172
|
render() {
|
|
152
|
-
return (h("salla-modal", { id: "salla-login", icon: "sicon-user", title: this.title, ref: modal => this.modal = modal, width: "xs" }, h("div", { class: "s-login-wrapper" }, this.isEmailAllowed ?
|
|
173
|
+
return (h("salla-modal", { id: "salla-login", icon: "sicon-user", title: this.title, ref: modal => this.modal = modal, width: "xs" }, h("div", { class: "s-login-wrapper" }, this.isEmailAllowed && this.isMobileAllowed ?
|
|
153
174
|
h("div", { class: "s-login-tab", ref: tab => this.homeTab = tab }, h("p", { class: "s-login-sub-title" }, this.loginTypeTitle), h("a", { href: "#", class: "s-login-main-btn", onClick: (evt) => this.showTab(this.mobileTab, evt) }, h("i", { class: "s-login-main-btn-icon sicon-phone" }), h("span", { class: "s-login-main-btn-text" }, this.smsLabel), h("i", { class: "main-btn-arrow sicon-keyboard_arrow_left" })), h("a", { href: "#", class: "s-login-main-btn", onClick: (evt) => this.showTab(this.emailTab, evt) }, h("i", { class: "s-login-main-btn-icon sicon-mail" }), h("span", { class: "s-login-main-btn-text" }, this.emailLabel), h("i", { class: "main-btn-arrow sicon-keyboard_arrow_left" })))
|
|
154
|
-
: '',
|
|
155
|
-
h("
|
|
156
|
-
|
|
175
|
+
: '', this.isMobileAllowed ?
|
|
176
|
+
h("div", { class: "s-login-tab", ref: tab => this.mobileTab = tab }, h("label", { class: "s-login-label" }, this.mobileLabel), h("salla-tel-input", { ref: el => this.loginTelInput = el, onKeyDown: e => this.typing(e, this.loginBySMS) }), h("salla-button", { "loader-position": 'center', wide: true, onClick: () => this.loginBySMS(), ref: b => this.smsBtn = b }, this.enterText), this.isEmailAllowed ?
|
|
177
|
+
h("a", { href: "#", onClick: () => this.showTab(this.emailTab), class: "s-login-link" }, this.byEmailText) : '') : '', this.isEmailAllowed ?
|
|
178
|
+
h("div", { class: "s-login-tab", ref: tab => this.emailTab = tab }, h("label", { class: "s-login-label" }, this.emailLabel), h("input", { type: "email", ref: el => this.loginEmail = el, onKeyDown: e => this.typing(e, this.loginByEmail), placeholder: "your@email.com", class: "s-login-input s-ltr" }), h("span", { class: "s-login-error-message" }), h("salla-button", { "loader-position": 'center', wide: true, onClick: () => this.loginByEmail(), ref: b => this.emailBtn = b }, this.enterText), this.isMobileAllowed ?
|
|
179
|
+
h("a", { href: "#", onClick: () => this.showTab(this.mobileTab), class: "s-login-link" }, this.bySMSText) : '') : '', h("salla-verify", { "without-modal": true, ref: tab => this.verifyTab = tab, autoReload: false, "is-show-back": true }), h("div", { ref: tab => this.registrationTab = tab }, h("label", { class: "s-login-label" }, this.firstNameLabel), h("input", { type: "text", class: "s-login-input", ref: el => this.firstName = el, onKeyDown: e => this.typing(e, this.newUser), placeholder: salla.lang.get('pages.profile.first_name') }), h("span", { class: "s-login-error-message" }), h("label", { class: "s-login-label" }, this.lastNameLabel), h("input", { type: "text", class: "s-login-input", ref: el => this.lastName = el, onKeyDown: e => this.typing(e, this.newUser), placeholder: salla.lang.get('pages.profile.last_name') }), h("span", { class: "s-login-error-message" }), h("div", { ref: el => this.regMobileBlock = el, class: "mb-1.5" }, h("label", { class: "s-login-label" }, this.mobileLabel), h("salla-tel-input", { ref: el => this.regTelInput = el, onKeyDown: e => this.typing(e, this.newUser) })), h("div", { ref: el => this.regEmailBlock = el, class: "mb-1.5" }, h("label", { class: "s-login-label" }, this.emailLabel), h("input", { type: "email", ref: el => this.regEmail = el, onKeyDown: e => this.typing(e, this.newUser), placeholder: "your@email.com", class: "s-login-input s-ltr" }), h("span", { class: "s-login-error-message" })), h("salla-button", { "loader-position": 'center', wide: true, onClick: () => this.newUser(), ref: b => this.regBtn = b }, salla.lang.get('blocks.header.register'))))));
|
|
157
180
|
}
|
|
158
181
|
get host() { return getElement(this); }
|
|
159
182
|
};
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["salla-button_5",[[0,"salla-login",{"isEmailAllowed":[4,"is-email-allowed"],"title":[32],"loginTypeTitle":[32],"loginText":[32],"smsLabel":[32],"mobileLabel":[32],"emailLabel":[32],"enterText":[32],"bySMSText":[32],"byEmailText":[32],"emailErrorMsg":[32],"firstNameLabel":[32],"lastNameLabel":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"show":[64]},[[0,"verified","onVerified"],[0,"backClicked","onbackClicked"]]],[0,"salla-verify",{"withoutModal":[4,"without-modal"],"url":[513],"by":[1],"isShowBack":[4,"is-show-back"],"autoReload":[4,"auto-reload"],"title":[32],"getCode":[64],"show":[64]}],[0,"salla-tel-input",{"mobile":[1025],"countryCode":[1025,"country-code"],"countryKey":[1025,"country-key"],"
|
|
16
|
+
return bootstrapLazy([["salla-button_5",[[0,"salla-login",{"isEmailAllowed":[4,"is-email-allowed"],"isMobileAllowed":[4,"is-mobile-allowed"],"isEmailRequired":[4,"is-email-required"],"title":[32],"loginTypeTitle":[32],"loginText":[32],"smsLabel":[32],"mobileLabel":[32],"emailLabel":[32],"enterText":[32],"bySMSText":[32],"byEmailText":[32],"emailErrorMsg":[32],"firstNameLabel":[32],"lastNameLabel":[32],"firstNameErrorMsg":[32],"lastNameErrorMsg":[32],"show":[64]},[[0,"verified","onVerified"],[0,"backClicked","onbackClicked"]]],[0,"salla-verify",{"withoutModal":[4,"without-modal"],"url":[513],"by":[1],"isShowBack":[4,"is-show-back"],"autoReload":[4,"auto-reload"],"title":[32],"getCode":[64],"show":[64]}],[0,"salla-tel-input",{"mobile":[1025],"countryCode":[1025,"country-code"],"countryKey":[1025,"country-key"],"mobileRequired":[32],"countryCodeLabel":[32],"mobileLabel":[32],"tooShort":[32],"tooLong":[32],"invalidCountryCode":[32],"invalidNumber":[32],"errorMap":[32],"getValues":[64],"isValid":[64]}],[4,"salla-button",{"btnStyle":[513,"btn-style"],"loading":[516],"disabled":[516],"loaderPosition":[1,"loader-position"],"wide":[4],"load":[64],"stop":[64],"disable":[64],"enable":[64]}],[4,"salla-modal",{"error":[4],"success":[4],"primary":[4],"isClosable":[1028,"is-closable"],"width":[513],"position":[513],"visible":[516],"isLoading":[1540,"is-loading"],"subTitleFirst":[4,"sub-title-first"],"noPadding":[4,"no-padding"],"subTitle":[1,"sub-title"],"icon":[1],"imageIcon":[1,"image-icon"],"title":[32],"show":[64],"hide":[64],"setTitle":[64],"loading":[64],"stopLoading":[64]}]]],["salla-product-availability",[[4,"salla-product-availability",{"channels":[1],"productId":[2,"product-id"],"isSubscribed":[1028,"is-subscribed"],"subscribeText":[32],"cancelText":[32],"subTitle":[32],"mobileLabel":[32],"emailLabel":[32],"emailPlaceholder":[32],"subscribedMessage":[32],"title_":[32],"buttonText":[32],"emailErrorMsg":[32]}]]],["salla-branches",[[4,"salla-branches",{"position":[1],"displayAs":[1,"display-as"],"browseProductsFrom":[1,"browse-products-from"],"branches":[16],"current":[1026],"open":[32],"selected":[32],"isOpenedBefore":[32],"ok":[32],"show":[64],"hide":[64]}]]],["salla-localization",[[4,"salla-localization",{"languagesTitle":[32],"currenciesTitle":[32],"ok":[32],"show":[64],"hide":[64],"submit":[64]}]]],["salla-offer",[[0,"salla-offer",{"offer":[32],"show":[64]}]]],["salla-rating",[[0,"salla-rating",{"order":[32],"show":[64],"hide":[64]}]]],["salla-search",[[0,"salla-search",{"results":[32],"placeholder":[32],"noResultsText":[32]},[[0,"modalOpened","onModalOpen"],[0,"modalClosed","onModalClose"]]]]],["salla-infinite-scroll",[[4,"salla-infinite-scroll",{"nextPage":[1,"next-page"],"autoload":[4],"container":[1],"item":[1],"loadMore":[32],"noMore":[32],"failedToLoad":[32]}]]]], options);
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as SallaLogin}from"./p-
|
|
1
|
+
export{S as SallaLogin}from"./p-f97ea1f7.js";export{S as SallaSearch}from"./p-e7edc889.js";import"./p-6a5be894.js";import"./p-47f17d3b.js";
|