@salla.sa/twilight-components 2.14.306 → 2.14.307
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/{filepond-T68FpD2x.js → filepond-Btud-9cx.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-D2qWU0E8.js → filepond-plugin-file-poster--Gwmscgl.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BBlP06s2.js → filepond-plugin-file-validate-size-BOJQxGjN.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DsoFa7eA.js → filepond-plugin-file-validate-type-C77Hrmz7.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Db2ao8Iq.js → filepond-plugin-image-edit-DI9lM8fO.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BR30PCYO.js → filepond-plugin-image-exif-orientation-DLoZc-P9.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CRbzO01p.js → filepond-plugin-image-preview-DHeIf3Qv.js} +1 -1
- package/dist/cjs/{index-_C7Hhk-4.js → index-BW35Qz0q.js} +1 -1
- package/dist/cjs/{index-B-Pk8e4E.js → index-C_8SUOhh.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion_62.cjs.entry.js +95 -67
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +23 -14
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +72 -61
- package/dist/components/index.js +2 -2
- package/dist/components/salla-file-upload2.js +22 -13
- package/dist/components/salla-rating-modal.js +64 -61
- package/dist/esm/{filepond-CEA-Ut0D.js → filepond-BDCqb9n1.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CrHfyiKb.js → filepond-plugin-file-poster-Csff9zr1.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BAjMQFxV.js → filepond-plugin-file-validate-size-uT0vdpSK.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-3WttM4LY.js → filepond-plugin-file-validate-type-C71qG90l.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-gXv8D0gp.js → filepond-plugin-image-edit-AV3f4iVU.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Cqa1508w.js → filepond-plugin-image-exif-orientation-BrahCgFe.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-k7khQXHq.js → filepond-plugin-image-preview-B73Halt8.js} +1 -1
- package/dist/esm/{index-DzTVR6sF.js → index-CkTB8LrG.js} +2 -2
- package/dist/esm/{index-hJWVffcN.js → index-DAIvUtTl.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion_62.entry.js +95 -67
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-review-card.entry.js +1 -1
- package/dist/esm/salla-reviews-page.entry.js +1 -1
- package/dist/esm/salla-reviews.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/twilight/{p-eff7b7fd.entry.js → p-07e3af79.entry.js} +1 -1
- package/dist/twilight/{p-dc88b0d4.entry.js → p-152cca87.entry.js} +1 -1
- package/dist/twilight/{p-e2a7ad27.entry.js → p-1ac688b1.entry.js} +1 -1
- package/dist/twilight/{p-a6793957.entry.js → p-2bc66d76.entry.js} +1 -1
- package/dist/twilight/{p-8f7c61ae.entry.js → p-2e1acb31.entry.js} +1 -1
- package/dist/twilight/{p-e85c2ce3.entry.js → p-2f0c4c48.entry.js} +1 -1
- package/dist/twilight/{p-146fef48.entry.js → p-369e287b.entry.js} +1 -1
- package/dist/twilight/{p-27797654.entry.js → p-391bfab0.entry.js} +1 -1
- package/dist/twilight/{p-9f7048f9.entry.js → p-39fbc8df.entry.js} +1 -1
- package/dist/twilight/{p-2c10446c.entry.js → p-3d65ce04.entry.js} +1 -1
- package/dist/twilight/{p-7f980b83.entry.js → p-49d27a30.entry.js} +1 -1
- package/dist/twilight/{p-ead30e6f.entry.js → p-4b743277.entry.js} +1 -1
- package/dist/twilight/{p-4be84919.entry.js → p-50066053.entry.js} +1 -1
- package/dist/twilight/{p-e5fa1278.entry.js → p-5e393287.entry.js} +1 -1
- package/dist/twilight/{p-a962dc4e.entry.js → p-683db036.entry.js} +1 -1
- package/dist/twilight/{p-cafa3981.entry.js → p-69d77416.entry.js} +1 -1
- package/dist/twilight/{p-a1c13dc3.entry.js → p-6da8bb12.entry.js} +1 -1
- package/dist/twilight/{p-eaf534c7.entry.js → p-774db722.entry.js} +1 -1
- package/dist/twilight/{p-21474b0b.entry.js → p-7826e12d.entry.js} +1 -1
- package/dist/twilight/{p-f7a3fa8e.entry.js → p-7fec8b2b.entry.js} +1 -1
- package/dist/twilight/{p-CIpEMPXT.js → p-85r8le_w.js} +1 -1
- package/dist/twilight/{p-27735fc2.entry.js → p-89ed3133.entry.js} +1 -1
- package/dist/twilight/{p-CBEtXGh0.js → p-AkZZv6o3.js} +1 -1
- package/dist/twilight/{p-B65_j3d4.js → p-CDzETZL4.js} +1 -1
- package/dist/twilight/{p-BiU9nldp.js → p-CR3Odb2N.js} +1 -1
- package/dist/twilight/{p-DzTVR6sF.js → p-CkTB8LrG.js} +1 -1
- package/dist/twilight/{p-C8nDt0jG.js → p-CoViVjAD.js} +1 -1
- package/dist/twilight/{p-Czub2Z40.js → p-D9xbcyYI.js} +1 -1
- package/dist/twilight/{p-BakkriQz.js → p-Wr2wkBmL.js} +2 -2
- package/dist/twilight/{p-be48e8c4.entry.js → p-a4b4dfb6.entry.js} +1 -1
- package/dist/twilight/{p-0ae9e425.entry.js → p-a5611c44.entry.js} +1 -1
- package/dist/twilight/{p-dcf5a422.entry.js → p-b1eb710a.entry.js} +1 -1
- package/dist/twilight/{p-f2525950.entry.js → p-c4312308.entry.js} +1 -1
- package/dist/twilight/p-c7aec160.entry.js +11 -0
- package/dist/twilight/{p-c3bbc744.entry.js → p-d1e5e51e.entry.js} +1 -1
- package/dist/twilight/{p-8c264b4c.entry.js → p-d3fc316c.entry.js} +1 -1
- package/dist/twilight/{p-e7544665.entry.js → p-d70e73be.entry.js} +1 -1
- package/dist/twilight/{p-da06dd7e.entry.js → p-dbe530e9.entry.js} +1 -1
- package/dist/twilight/p-e0386eb6.entry.js +4 -0
- package/dist/twilight/{p-2a63d302.entry.js → p-e086a18a.entry.js} +1 -1
- package/dist/twilight/{p-cda9559e.entry.js → p-e41ed882.entry.js} +1 -1
- package/dist/twilight/{p-dd107ead.entry.js → p-ea727ca3.entry.js} +1 -1
- package/dist/twilight/{p-D6rcrZ5Y.js → p-xlB0zmD0.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +5 -5
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +21 -19
- package/dist/types/components.d.ts +2 -2
- package/package.json +5 -5
- package/dist/twilight/p-0924f4fa.entry.js +0 -4
- package/dist/twilight/p-7ab35a9b.entry.js +0 -11
|
@@ -316,11 +316,11 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class SallaFileUpload e
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
|
-
return (h(Host, { key: '
|
|
319
|
+
return (h(Host, { key: '45383bff9bc408ef0328e888751827e6fc70038d', class: {
|
|
320
320
|
"s-file-upload": true,
|
|
321
321
|
"s-file-upload-profile-image": this.profileImage,
|
|
322
322
|
"s-file-upload-multiple": this.allowMultiple,
|
|
323
|
-
} }, h("input", { key: '
|
|
323
|
+
} }, h("input", { key: '323e469923868db4e322d67c1dd8a7efc245fe5f', type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept }), this.allowMultiple && this.showMaxCountHint ? h("div", { class: "s-file-upload-hint s-hidden" }, this.max_count_hint(this.maxFilesCount)) : '', h("input", { key: '42458ac28b13ba4e6c6dc80a30054e0e567a9366', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
|
|
324
324
|
}
|
|
325
325
|
componentDidLoad() {
|
|
326
326
|
let files = this.getFiles();
|
|
@@ -361,10 +361,18 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class SallaFileUpload e
|
|
|
361
361
|
},
|
|
362
362
|
onprocessfile: (error, file) => {
|
|
363
363
|
if (this.allowMultiple && !error) {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
364
|
+
// Find the uploaded file data using the serverId returned from onload
|
|
365
|
+
const serverId = file.serverId;
|
|
366
|
+
const uploadedFile = this.uploadedFiles.find(f => f.id === serverId);
|
|
367
|
+
if (uploadedFile) {
|
|
368
|
+
// Set metadata on the file
|
|
369
|
+
file.setMetadata('id', uploadedFile.id, true);
|
|
370
|
+
file.setMetadata('url', uploadedFile.url, true);
|
|
371
|
+
this.value = {
|
|
372
|
+
id: uploadedFile.id,
|
|
373
|
+
url: uploadedFile.url
|
|
374
|
+
};
|
|
375
|
+
this.uploadedHandler();
|
|
368
376
|
}
|
|
369
377
|
}
|
|
370
378
|
},
|
|
@@ -405,20 +413,21 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class SallaFileUpload e
|
|
|
405
413
|
let responseData = JSON.parse(response).data;
|
|
406
414
|
if ((this.instantUpload || this.allowMultiple) && Array.isArray(responseData) && responseData.length > 0) {
|
|
407
415
|
const fileId = `${this.host.id}-${Math.floor(100 + Math.random() * 900)}`;
|
|
416
|
+
const fileUrl = responseData[0];
|
|
417
|
+
// Store the upload result to be picked up by onprocessfile
|
|
408
418
|
this.uploadedFiles.push({
|
|
409
419
|
id: fileId,
|
|
410
|
-
url:
|
|
420
|
+
url: fileUrl
|
|
411
421
|
});
|
|
412
|
-
this
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
};
|
|
422
|
+
// Return the serverId that FilePond will use to identify this file
|
|
423
|
+
// We'll use the fileId as the serverId
|
|
424
|
+
return fileId;
|
|
416
425
|
}
|
|
417
426
|
else {
|
|
418
427
|
this.value = responseData.filePath || responseData.url;
|
|
428
|
+
this.uploadedHandler();
|
|
429
|
+
return this.value;
|
|
419
430
|
}
|
|
420
|
-
this.uploadedHandler();
|
|
421
|
-
return this.value;
|
|
422
431
|
},
|
|
423
432
|
headers: salla.api.getHeaders(),
|
|
424
433
|
onerror: response => {
|
|
@@ -32,6 +32,15 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
32
32
|
this.__registerHost();
|
|
33
33
|
this.hasError = false;
|
|
34
34
|
this.showContactWidget = true;
|
|
35
|
+
this.images = [];
|
|
36
|
+
this.productImages = {};
|
|
37
|
+
this.editItemImages = [];
|
|
38
|
+
this.contact_body = (store, id, customer) => salla.lang.get('pages.rating.contact_subject', { store, id, customer });
|
|
39
|
+
this.editMode = false;
|
|
40
|
+
this.defaultMode = false;
|
|
41
|
+
this.deleteMode = false;
|
|
42
|
+
this.shouldOpenDeleteModal = false;
|
|
43
|
+
this.editItem = null;
|
|
35
44
|
this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
|
|
36
45
|
this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
|
|
37
46
|
this.editReviewLabel = salla.lang.get('pages.rating.edit_review');
|
|
@@ -45,24 +54,16 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
45
54
|
this.confirmDeleteBtn = salla.lang.get('common.elements.confirm_delete');
|
|
46
55
|
this.updatedSuccessfullyLabel = salla.lang.get("pages.rating.review_updated_successfully");
|
|
47
56
|
this.deletedSuccessfullyLabel = salla.lang.get("pages.rating.review_deleted_successfully");
|
|
57
|
+
this.contactUsLabel = salla.lang.get('blocks.footer.social');
|
|
48
58
|
this.allowAttachImages = salla.config.get('store.settings.rating.allow_attach_images');
|
|
49
59
|
this.allowContactSupport = salla.config.get('store.settings.rating.allow_contact_support');
|
|
50
|
-
this.contactUsLabel = salla.lang.get('blocks.footer.social');
|
|
51
|
-
this.images = [];
|
|
52
|
-
this.productImages = {};
|
|
53
|
-
this.editItemImages = [];
|
|
54
|
-
this.contact_body = (store, id, customer) => salla.lang.get('pages.rating.contact_subject', { store, id, customer });
|
|
55
|
-
this.editMode = false;
|
|
56
|
-
this.defaultMode = false;
|
|
57
|
-
this.deleteMode = false;
|
|
58
|
-
this.shouldOpenDeleteModal = false;
|
|
59
|
-
this.editItem = null;
|
|
60
60
|
this.contentRefs = [];
|
|
61
61
|
this.hiddenInputs = [];
|
|
62
62
|
this.isOpen = [];
|
|
63
63
|
this.stepsCount = 0;
|
|
64
64
|
this.currentIndex = 0;
|
|
65
65
|
this.submitted = [];
|
|
66
|
+
this.MAX_UPLOAD_LIMIT = 3;
|
|
66
67
|
this.onOpen = (index) => {
|
|
67
68
|
return new Promise((resolve) => {
|
|
68
69
|
anime({
|
|
@@ -93,7 +94,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
93
94
|
await (this.isOpen[index] ? this.onOpen(index) : this.onClose(index));
|
|
94
95
|
await new Promise((resolve) => setTimeout(resolve, 101));
|
|
95
96
|
if (this.body && this.currentTab) {
|
|
96
|
-
setTimeout(() => this.body.setAttribute('style',
|
|
97
|
+
setTimeout(() => this.body.setAttribute('style', `height:${this.currentTab.offsetHeight + (this.editMode ? 60 : 0)}px`));
|
|
97
98
|
}
|
|
98
99
|
};
|
|
99
100
|
salla.onReady(() => {
|
|
@@ -126,8 +127,10 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
126
127
|
await setNestedAsync('en.trans', 'pages.rating.review_updated_successfully', 'The review has been successfully updated.');
|
|
127
128
|
await setNestedAsync('ar.trans', 'pages.rating.review_deleted_successfully', 'تم حذف التقييم بنجاح');
|
|
128
129
|
await setNestedAsync('en.trans', 'pages.rating.review_deleted_successfully', 'The review has been successfully deleted.');
|
|
129
|
-
await setNestedAsync('ar.trans', '
|
|
130
|
-
await setNestedAsync('en.trans', '
|
|
130
|
+
await setNestedAsync('ar.trans', 'pages.rating.images_count', 'الصور ( :current من أصل :total )');
|
|
131
|
+
await setNestedAsync('en.trans', 'pages.rating.images_count', 'Images ( :current of :total )');
|
|
132
|
+
await setNestedAsync('ar.trans', 'common.uploader.max_three_images', `.أضف ${this.MAX_UPLOAD_LIMIT} صور كحد أقصى`);
|
|
133
|
+
await setNestedAsync('en.trans', 'common.uploader.max_three_images', `Add up to ${this.MAX_UPLOAD_LIMIT} images maximum.`);
|
|
131
134
|
await setNestedAsync('ar.trans', 'common.elements.confirm_delete', 'تأكيد الحذف');
|
|
132
135
|
await setNestedAsync('en.trans', 'common.elements.confirm_delete', 'Confirm deletion');
|
|
133
136
|
this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
|
|
@@ -156,7 +159,17 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
156
159
|
return new Promise((resolve) => {
|
|
157
160
|
setTimeout(() => {
|
|
158
161
|
this.modal.open().then(() => this.order || salla.api.withoutNotifier(() => salla.rating.api.order(this.orderId ? this.orderId : salla.config.get('page.id'))).then(res => this.order = res.data))
|
|
159
|
-
.then(() => this.modal.setTitle(salla.lang.get('pages.rating.rate_order')
|
|
162
|
+
.then(() => this.modal.setTitle(`${salla.lang.get('pages.rating.rate_order')} <span class="unicode">(#${this.order.id})</span>`))
|
|
163
|
+
.then(() => {
|
|
164
|
+
// Initialize productImages for all products
|
|
165
|
+
const initialImages = {};
|
|
166
|
+
if (this.order?.products) {
|
|
167
|
+
for (const item of this.order.products) {
|
|
168
|
+
initialImages[item.product.id] = [];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
this.productImages = initialImages;
|
|
172
|
+
})
|
|
160
173
|
.then(() => this.modal.stopLoading())
|
|
161
174
|
.then(() => this.stepsCount = [this.order.testimonials_enabled, this.order.products_enabled, this.order.shipping_enabled].filter(enabled => enabled).length)
|
|
162
175
|
.then(() => setTimeout(() => this.handleWizard(), 100))
|
|
@@ -195,9 +208,9 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
195
208
|
}
|
|
196
209
|
}
|
|
197
210
|
async editReview() {
|
|
198
|
-
|
|
211
|
+
const data = {};
|
|
199
212
|
this.editModal.querySelectorAll('[name]').forEach((input) => {
|
|
200
|
-
|
|
213
|
+
const inputData = salla.helpers.inputData(input.name, input.value, data);
|
|
201
214
|
data[inputData.name] = inputData.value;
|
|
202
215
|
});
|
|
203
216
|
data.images && (data.images = data.images.split(','));
|
|
@@ -247,16 +260,16 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
247
260
|
this.currentTab = current || this.steps[this.currentIndex];
|
|
248
261
|
Helper.toggleClassIf('.s-rating-modal-step-dot', 's-rating-modal-bg-gray', 's-rating-modal-bg-primary', dot => dot != this.dots[this.currentIndex])
|
|
249
262
|
.toggleClassIf('.s-rating-modal-step', 's-rating-modal-active', 's-rating-modal-hidden', tab => tab == this.currentTab);
|
|
250
|
-
if (this.currentIndex
|
|
263
|
+
if (this.currentIndex !== 0) {
|
|
251
264
|
// the animation
|
|
252
265
|
Helper.toggleElementClassIf(this.currentTab, 's-rating-modal-unactive', 's-rating-modal-hidden', () => true);
|
|
253
266
|
setTimeout(() => Helper.toggleElementClassIf(this.currentTab, 's-rating-modal-active', 's-rating-modal-unactive', () => true), 300);
|
|
254
267
|
}
|
|
255
268
|
// Btn text
|
|
256
|
-
|
|
257
|
-
this.nextBtn?.setText(nextType ? salla.lang.get('pages.rating.rate')
|
|
269
|
+
const nextType = this.steps[this.currentIndex + 1]?.dataset.type;
|
|
270
|
+
this.nextBtn?.setText(nextType ? `${salla.lang.get('pages.rating.rate')} ${salla.lang.get(`pages.rating.${nextType}`)}`
|
|
258
271
|
: salla.lang.get('pages.rating.send_ratings'));
|
|
259
|
-
setTimeout(() => this.body?.setAttribute('style',
|
|
272
|
+
setTimeout(() => this.body?.setAttribute('style', `height:${this.currentTab?.offsetHeight}px`));
|
|
260
273
|
}
|
|
261
274
|
previousTab() {
|
|
262
275
|
this.currentIndex > 0 && this.currentIndex--;
|
|
@@ -299,15 +312,13 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
299
312
|
validationMessage.innerHTML = salla.lang.get(`pages.rating.rate_${type}_stars`).replace(' (:item)', '');
|
|
300
313
|
throw new Error(validationMessage.innerHTML);
|
|
301
314
|
}
|
|
302
|
-
|
|
303
|
-
validationMessage.innerHTML = '';
|
|
304
|
-
}
|
|
315
|
+
validationMessage.innerHTML = '';
|
|
305
316
|
}
|
|
306
317
|
sendFeedback() {
|
|
307
|
-
|
|
318
|
+
const data = {};
|
|
308
319
|
this.currentTab.querySelectorAll('[name]').forEach((input) => {
|
|
309
320
|
//decode names like `<input name="jamal[inner]" value="hi">` to be {name:jamal, value: {inner:"hi"}}
|
|
310
|
-
|
|
321
|
+
const inputData = salla.helpers.inputData(input.name, input.value, data);
|
|
311
322
|
data[inputData.name] = inputData.value;
|
|
312
323
|
});
|
|
313
324
|
if (this.allowAttachImages && data.products) {
|
|
@@ -320,15 +331,15 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
320
331
|
if (Object.keys(data).length == 0) {
|
|
321
332
|
return;
|
|
322
333
|
}
|
|
323
|
-
data
|
|
324
|
-
data
|
|
334
|
+
data.order_id = this.orderId;
|
|
335
|
+
data.type = this.currentTab.dataset.type;
|
|
325
336
|
this.submitted.push(this.currentIndex);
|
|
326
337
|
return salla.rating.api[this.currentTab.dataset.type](data);
|
|
327
338
|
}
|
|
328
339
|
showThankYou() {
|
|
329
340
|
let seconds = 10;
|
|
330
341
|
let timeToClose = setInterval(() => {
|
|
331
|
-
this.thanksTime.innerHTML =
|
|
342
|
+
this.thanksTime.innerHTML = `00:0${seconds--}`;
|
|
332
343
|
if (seconds > 0) {
|
|
333
344
|
return;
|
|
334
345
|
}
|
|
@@ -363,7 +374,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
363
374
|
if (isOpen.detail) {
|
|
364
375
|
return;
|
|
365
376
|
}
|
|
366
|
-
this.modal
|
|
377
|
+
this.modal?.close();
|
|
367
378
|
this.editItem = null;
|
|
368
379
|
this.editItemImages = [];
|
|
369
380
|
this.hiddenInputs[1] && (this.hiddenInputs[1].value = '');
|
|
@@ -377,11 +388,16 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
377
388
|
getDeleteModal() {
|
|
378
389
|
return (h("salla-modal", { ref: modal => this.deleteModal = modal, width: "xs", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-delete-wrapper", ref: el => this.body = el }, h("h3", null, this.confirmDeletionLabel), h("p", null, this.areYouSureLabel), h("div", { class: "s-rating-modal-delete-actions" }, h("salla-button", { loaderPosition: 'center', onClick: () => this.deleteReview() }, this.confirmDeleteBtn), h("salla-button", { color: 'danger', fill: 'outline', onClick: () => this.deleteModal.close() }, this.cancelLabel)))));
|
|
379
390
|
}
|
|
391
|
+
renderUploadedImagesCount(productId) {
|
|
392
|
+
// In edit mode, use editItemImages; in default mode, use productImages
|
|
393
|
+
const imageCount = this.editMode ? this.editItemImages.length : (this.productImages[productId] || []).length;
|
|
394
|
+
return (h("span", { class: "s-rating-modal-upload-count" }, salla.lang.choice("pages.rating.images_count", imageCount, { current: imageCount, total: this.MAX_UPLOAD_LIMIT })));
|
|
395
|
+
}
|
|
380
396
|
getEditModal() {
|
|
381
397
|
return (h("salla-modal", { ref: modal => this.editModal = modal, width: "md", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-edit-wrapper", ref: el => this.body = el }, this.editType === "store" && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => this.currentTab = currentTab }, h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === "shipping" && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "shipping", ref: currentTab => this.currentTab = currentTab }, this.editItem.shipping.logo
|
|
382
398
|
? h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))
|
|
383
|
-
: h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), h("div", { class: "s-rating-modal-title" }, " ", salla.lang.get('pages.rating.rate_shipping')
|
|
384
|
-
this.editItemImages.
|
|
399
|
+
: h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == "product" && this.editItem ? h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => this.currentTab = currentTab }, h("div", { class: "s-rating-modal-product" }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-details-main" }, h("div", null, h("h3", { class: "s-rating-modal-product-title" }, " ", this.editItem.product.name), h("div", { class: "s-rating-modal-stars-product" }, h("salla-rating-stars", { withLabel: true, size: "small", editable: true, value: this.editItem.stars }))), this.allowAttachImages && h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(1) }, h("span", null, this.editItemImages.length ? this.editImagesLabel : this.addImagesLabel), h("span", { innerHTML: ImageIcon }))), h("textarea", { value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "content", class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[1] = el) }, h("salla-file-upload", { name: "images", allowMultiple: true, maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, filePosterHeight: 117, "instant-upload": true, type: "feedback", files: JSON.stringify(this.editItemImages), payloadName: "files[]", id: `file-${this.editItem.product.id}`, title: this.editItem.product.name, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: (e) => {
|
|
400
|
+
this.editItemImages = [...this.editItemImages, e.detail];
|
|
385
401
|
this.hiddenInputs[1].value = this.editItemImages.map(img => img.url).join();
|
|
386
402
|
}, onRemoved: (e) => {
|
|
387
403
|
const removedId = e.detail;
|
|
@@ -389,7 +405,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
389
405
|
return;
|
|
390
406
|
this.editItemImages = this.editItemImages.filter(img => img.id !== removedId);
|
|
391
407
|
this.hiddenInputs[1].value = this.editItemImages.map(img => img.url).join();
|
|
392
|
-
}, labelIdle: this.getFilepondPlaceholder() }), h("input", { type: "hidden", name: "images", value: this.editItem.images.join(','), ref: (el) => (this.hiddenInputs[1] = el) })))))
|
|
408
|
+
}, labelIdle: this.getFilepondPlaceholder() }), h("input", { type: "hidden", name: "images", value: this.editItem.images.join(','), ref: (el) => (this.hiddenInputs[1] = el) }), this.renderUploadedImagesCount(this.editItem.product.id)))))
|
|
393
409
|
: null, h("div", { class: "s-rating-modal-footer s-rating-modal-footer-end" }, h("salla-button", { "loader-position": 'center', onClick: () => this.editReview() }, this.editReviewLabel)))));
|
|
394
410
|
}
|
|
395
411
|
render() {
|
|
@@ -400,28 +416,31 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
400
416
|
return h(Host, { class: "s-rating-modal" }, this.getEditModal());
|
|
401
417
|
}
|
|
402
418
|
if (this.defaultMode) {
|
|
403
|
-
return (h(Host, { class: "s-rating-modal" }, h("salla-modal", { class: "s-rating-modal-wrap", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen), isLoading: true, width: "md", ref: modal => this.modal = modal }, h("div", { slot: 'loading' }, h("div", { class: "s-rating-modal-skeleton" }, h("salla-skeleton", { type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { height: '15px', width: '60%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("div", { class: "s-rating-modal-skeleton-stars" }, [...Array(5)].map(() => h("div", { innerHTML: WishListIcon }))), h("salla-skeleton", { height: '100px', width: '100%' }), h("div", { class: "s-rating-modal-skeleton-footer" }, h("salla-skeleton", { height: '40px', width: '30%' })))), !this.hasError && this.order
|
|
419
|
+
return (h(Host, { class: "s-rating-modal" }, h("salla-modal", { class: "s-rating-modal-wrap", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen), isLoading: true, width: "md", ref: modal => this.modal = modal }, h("div", { slot: 'loading' }, h("div", { class: "s-rating-modal-skeleton" }, h("salla-skeleton", { type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { height: '15px', width: '60%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("div", { class: "s-rating-modal-skeleton-stars" }, [...Array(5)].map((v) => h("div", { key: v, innerHTML: WishListIcon }))), h("salla-skeleton", { height: '100px', width: '100%' }), h("div", { class: "s-rating-modal-skeleton-footer" }, h("salla-skeleton", { height: '40px', width: '30%' })))), !this.hasError && this.order
|
|
404
420
|
? [h("div", { class: "s-rating-modal-wrapper", ref: el => this.body = el }, this.order?.testimonials_enabled ?
|
|
405
421
|
h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "store" }, h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large" })), h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))
|
|
406
422
|
: '', this.order.products_enabled
|
|
407
|
-
? h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products" }, this.order.products.map((item, index) => h("div", { class: "s-rating-modal-product", key: index }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-details-main" }, h("div", null, h("h3", { class: "s-rating-modal-product-title" }, " ", item.product.name), h("div", { class: "s-rating-modal-stars-product" }, h("salla-rating-stars", { withLabel: true, size: "small", name: `products[${index}][rating]` }))), this.allowAttachImages && h("salla-button", { class:
|
|
408
|
-
|
|
409
|
-
this.productImages
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
this.hiddenInputs[index].value = this.productImages[item.product.id].map(img => img.url);
|
|
423
|
+
? h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products" }, this.order.products.map((item, index) => h("div", { class: "s-rating-modal-product", key: index }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-details-main" }, h("div", null, h("h3", { class: "s-rating-modal-product-title" }, " ", item.product.name), h("div", { class: "s-rating-modal-stars-product" }, h("salla-rating-stars", { withLabel: true, size: "small", name: `products[${index}][rating]` }))), this.allowAttachImages && h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(index) }, h("span", null, this.addImagesLabel), h("span", { innerHTML: ImageIcon }))), h("input", { type: "hidden", name: `products[${index}][product_id]`, value: item.product.id }), h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: `products[${index}][comment]`, class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[index] = el) }, h("salla-file-upload", { name: "image", maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, "instant-upload": true, type: "feedback", payloadName: "files[]", id: `file-${item.product.id}`, title: item.product.name, allowMultiple: true, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: (e) => {
|
|
424
|
+
this.productImages = {
|
|
425
|
+
...this.productImages,
|
|
426
|
+
[item.product.id]: [...(this.productImages[item.product.id] || []), e.detail]
|
|
427
|
+
};
|
|
428
|
+
this.hiddenInputs[index].value = this.productImages[item.product.id].map(img => img.url).join(',');
|
|
413
429
|
}, onRemoved: (e) => {
|
|
414
430
|
const removedId = e.detail;
|
|
415
|
-
if (!removedId)
|
|
431
|
+
if (!removedId || !this.productImages[item.product.id])
|
|
416
432
|
return;
|
|
417
|
-
this.productImages
|
|
418
|
-
|
|
419
|
-
|
|
433
|
+
this.productImages = {
|
|
434
|
+
...this.productImages,
|
|
435
|
+
[item.product.id]: this.productImages[item.product.id].filter(img => img.id !== removedId)
|
|
436
|
+
};
|
|
437
|
+
this.hiddenInputs[index].value = this.productImages[item.product.id].map(img => img.url).join(',');
|
|
438
|
+
}, labelIdle: this.getFilepondPlaceholder() }), h("input", { type: "hidden", name: `products[${index}][images]`, value: (this.productImages[item.product.id] || []).map(img => img.url).join(','), ref: (el) => (this.hiddenInputs[index] = el) }), this.renderUploadedImagesCount(item.product.id))))))
|
|
420
439
|
: '', this.order.shipping_enabled && this.order.shipping?.company
|
|
421
440
|
? h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "shipping" }, h("input", { type: "hidden", name: "shipping_company_id", value: this.order.shipping.company.id }), this.order.shipping.company.logo
|
|
422
441
|
? h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: this.order.shipping.company.logo, class: "s-rating-modal-shipping-logo", alt: this.order.shipping.company.name }))
|
|
423
|
-
: h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), h("div", { class: "s-rating-modal-title" }, " ", salla.lang.get('pages.rating.rate_shipping')
|
|
424
|
-
: '', h("div", { class: "s-rating-modal-thanks s-rating-modal-hidden", ref: el => this.thanksTab = el }, h("span", { class: "s-rating-modal-icon", innerHTML: CheckCircle2 }), h("h3", { class: "s-rating-modal-thanks-title" }, salla.lang.get('pages.rating.thanks')), h("div", { class: "s-rating-modal-thanks-msg", innerHTML: this.order.thanks_message }), h("time", { class: "s-rating-modal-thanks-time", ref: el => this.thanksTime = el }))), this.allowContactSupport && this.showContactWidget && (salla.config.get('store.contacts.whatsapp') || salla.config.get('store.contacts.email')) ? h("div", { class: "s-rating-modal-contact" }, h("p", null, this.contactUsLabel), h("div", { class: "s-rating-modal-contact-icons" }, salla.config.get('store.contacts.whatsapp') && h("span", { onClick: () => this.handleSendWhatsApp(), innerHTML: WhatsappIcon }), salla.config.get('store.contacts.email') && h("span", { onClick: () => this.handleSendEmail(), innerHTML: MailIcon }))) : '', h("div", { class: "s-rating-modal-footer" }, h("button", { ref: el => this.backBtn = el, onClick: () => this.previousTab(), class: "s-rating-modal-btn s-rating-modal-unvisiable" }, salla.lang.get('common.elements.back')), this.stepsCount > 1 ? h("ul", { class: "s-rating-modal-dots" }, [0, 1, 2].slice(0, this.stepsCount).map(() => h("li", { class: 's-rating-modal-bg-gray s-rating-modal-step-dot' }))) : '', h("salla-button", { "loader-position": 'center', ref: el => this.nextBtn = el, onClick: () => this.submit() }, salla.lang.get('common.elements.next')))]
|
|
442
|
+
: h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.order.shipping.company.name}`), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large" })), h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))
|
|
443
|
+
: '', h("div", { class: "s-rating-modal-thanks s-rating-modal-hidden", ref: el => this.thanksTab = el }, h("span", { class: "s-rating-modal-icon", innerHTML: CheckCircle2 }), h("h3", { class: "s-rating-modal-thanks-title" }, salla.lang.get('pages.rating.thanks')), h("div", { class: "s-rating-modal-thanks-msg", innerHTML: this.order.thanks_message }), h("time", { class: "s-rating-modal-thanks-time", ref: el => this.thanksTime = el }))), this.allowContactSupport && this.showContactWidget && (salla.config.get('store.contacts.whatsapp') || salla.config.get('store.contacts.email')) ? h("div", { class: "s-rating-modal-contact" }, h("p", null, this.contactUsLabel), h("div", { class: "s-rating-modal-contact-icons" }, salla.config.get('store.contacts.whatsapp') && h("span", { onClick: () => this.handleSendWhatsApp(), innerHTML: WhatsappIcon }), salla.config.get('store.contacts.email') && h("span", { onClick: () => this.handleSendEmail(), innerHTML: MailIcon }))) : '', h("div", { class: "s-rating-modal-footer" }, h("button", { ref: el => this.backBtn = el, onClick: () => this.previousTab(), class: "s-rating-modal-btn s-rating-modal-unvisiable" }, salla.lang.get('common.elements.back')), this.stepsCount > 1 ? h("ul", { class: "s-rating-modal-dots" }, [0, 1, 2].slice(0, this.stepsCount).map((v) => h("li", { key: v, class: 's-rating-modal-bg-gray s-rating-modal-step-dot' }))) : '', h("salla-button", { "loader-position": 'center', ref: el => this.nextBtn = el, onClick: () => this.submit() }, salla.lang.get('common.elements.next')))]
|
|
425
444
|
: h("salla-placeholder", { alignment: "center" }))));
|
|
426
445
|
}
|
|
427
446
|
}
|
|
@@ -441,22 +460,6 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
441
460
|
"hasError": [32],
|
|
442
461
|
"showContactWidget": [32],
|
|
443
462
|
"errorMessage": [32],
|
|
444
|
-
"dragAndDropFilesLabel": [32],
|
|
445
|
-
"contactSubjectLabel": [32],
|
|
446
|
-
"editReviewLabel": [32],
|
|
447
|
-
"allowedImagesTypesLabel": [32],
|
|
448
|
-
"addImagesLabel": [32],
|
|
449
|
-
"editImagesLabel": [32],
|
|
450
|
-
"threeImagesMax": [32],
|
|
451
|
-
"areYouSureLabel": [32],
|
|
452
|
-
"confirmDeletionLabel": [32],
|
|
453
|
-
"cancelLabel": [32],
|
|
454
|
-
"confirmDeleteBtn": [32],
|
|
455
|
-
"updatedSuccessfullyLabel": [32],
|
|
456
|
-
"deletedSuccessfullyLabel": [32],
|
|
457
|
-
"allowAttachImages": [32],
|
|
458
|
-
"allowContactSupport": [32],
|
|
459
|
-
"contactUsLabel": [32],
|
|
460
463
|
"images": [32],
|
|
461
464
|
"productImages": [32],
|
|
462
465
|
"editItemImages": [32],
|