@salla.sa/twilight-components 2.14.272 → 2.14.273
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-EG2Mf8a1.js → filepond-B6LUaQ9F.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DjNsnxTw.js → filepond-plugin-file-poster-DlB67Vv3.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BlM1btNO.js → filepond-plugin-file-validate-size-D7kuqaEC.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DhymSoh9.js → filepond-plugin-file-validate-type-CliXp1Qt.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BQfvfpQ1.js → filepond-plugin-image-edit-BRIZbIyN.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DOi06s13.js → filepond-plugin-image-exif-orientation-bFbWHyQs.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Rfix7Xbt.js → filepond-plugin-image-preview-24nxaVX6.js} +1 -1
- package/dist/cjs/{index-DS7mXxWq.js → index-BpUrZ_-D.js} +136 -26
- package/dist/cjs/{index-vIV5iX-W.js → index-xI-pRoDr.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/{salla-add-product-button_51.cjs.entry.js → salla-accordion_62.cjs.entry.js} +2104 -120
- 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-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 +2 -2
- 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-accordion_4.cjs.entry.js → salla-order-details-options.cjs.entry.js} +1 -100
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-review-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-reviews-page.cjs.entry.js +2 -2
- package/dist/cjs/salla-reviews.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- 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 +3 -4
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/salla-accordion/salla-accordion-head.js +8 -2
- package/dist/collection/components/salla-comments/salla-comments.js +20 -1
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +33 -5
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.css +0 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +89 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.css +0 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +195 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.css +3 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +595 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.css +0 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +174 -0
- package/dist/collection/components/salla-multiple-bundle-product/interfaces.js +1 -0
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.css +3 -0
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +132 -0
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-options/salla-product-options.js +105 -22
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +3 -3
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-slider/salla-slider.js +2 -2
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-accordion-head2.js +2 -2
- package/dist/components/salla-comments.js +20 -1
- package/dist/components/salla-conditional-fields2.js +28 -6
- package/dist/components/salla-multiple-bundle-product-cart.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product-cart.js +9 -0
- package/dist/components/salla-multiple-bundle-product-cart2.js +153 -0
- package/dist/components/salla-multiple-bundle-product-details.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product-details.js +9 -0
- package/dist/components/salla-multiple-bundle-product-details2.js +283 -0
- package/dist/components/salla-multiple-bundle-product-options-modal.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product-options-modal.js +9 -0
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +585 -0
- package/dist/components/salla-multiple-bundle-product-slider.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product-slider.js +9 -0
- package/dist/components/salla-multiple-bundle-product-slider2.js +81 -0
- package/dist/components/salla-multiple-bundle-product.d.ts +11 -0
- package/dist/components/salla-multiple-bundle-product.js +210 -0
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-options.js +1 -810
- package/dist/{esm/salla-product-options.entry.js → components/salla-product-options2.js} +197 -30
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +3 -3
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-slider2.js +2 -2
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-DbR8YXoW.js → filepond-C8M-qAIs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DEj3O3wZ.js → filepond-plugin-file-poster-UfHq-uvl.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DYnIp5yF.js → filepond-plugin-file-validate-size-DZ15xnJZ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-Cx_PD8SU.js → filepond-plugin-file-validate-type-CWR9opI0.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BwmXRkmP.js → filepond-plugin-image-edit-XbR1h-bg.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BtsMS4U-.js → filepond-plugin-image-exif-orientation-cSRDvvXQ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DQ0c3hIt.js → filepond-plugin-image-preview-B-SvzNFg.js} +1 -1
- package/dist/esm/{index-xiIpq8fU.js → index-Q_DltBmK.js} +1 -1
- package/dist/esm/{index-D5PGwR59.js → index-gLeBNvS1.js} +136 -26
- package/dist/esm/loader.js +3 -4
- package/dist/esm/{salla-add-product-button_51.entry.js → salla-accordion_62.entry.js} +2084 -111
- 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-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 +2 -2
- 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-accordion_4.entry.js → salla-order-details-options.entry.js} +2 -98
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-summary.entry.js +2 -2
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-review-card.entry.js +2 -2
- package/dist/esm/salla-reviews-page.entry.js +2 -2
- package/dist/esm/salla-reviews.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -4
- package/dist/twilight/{p-4611a11b.entry.js → p-00d8544c.entry.js} +1 -1
- package/dist/twilight/{p-b40d5871.entry.js → p-06d126b6.entry.js} +1 -1
- package/dist/twilight/{p-2bf21126.entry.js → p-1cc68ef5.entry.js} +1 -1
- package/dist/twilight/{p-BsHa_73h.js → p-1ekWkYOJ.js} +1 -1
- package/dist/twilight/p-21b37923.entry.js +4 -0
- package/dist/twilight/{p-bcab2639.entry.js → p-263b9b06.entry.js} +1 -1
- package/dist/twilight/{p-8ba8efe1.entry.js → p-2787ff9f.entry.js} +1 -1
- package/dist/twilight/p-3c1484b9.entry.js +11 -0
- package/dist/twilight/{p-c15928d5.entry.js → p-5057b400.entry.js} +1 -1
- package/dist/twilight/{p-280c1f64.entry.js → p-5278b873.entry.js} +1 -1
- package/dist/twilight/{p-e3b0a71f.entry.js → p-56f7a2ba.entry.js} +1 -1
- package/dist/twilight/{p-65b1fcea.entry.js → p-697db5c6.entry.js} +1 -1
- package/dist/twilight/{p-b94ebbd9.entry.js → p-73a8296a.entry.js} +1 -1
- package/dist/twilight/{p-eae51196.entry.js → p-7603a820.entry.js} +1 -1
- package/dist/twilight/{p-56fa3b9c.entry.js → p-7c8d7ca3.entry.js} +1 -1
- package/dist/twilight/{p-e95284d7.entry.js → p-80a07063.entry.js} +1 -1
- package/dist/twilight/{p-eaad31d1.entry.js → p-82c156ab.entry.js} +1 -1
- package/dist/twilight/{p-7df916fc.entry.js → p-8380c411.entry.js} +1 -1
- package/dist/twilight/{p-a61e2b8e.entry.js → p-946e5649.entry.js} +1 -1
- package/dist/twilight/{p-f3c29342.entry.js → p-9bcd9c87.entry.js} +1 -1
- package/dist/twilight/p-9c477fdf.entry.js +4 -0
- package/dist/twilight/{p-DV_VEuIe.js → p-B-nQtFTN.js} +1 -1
- package/dist/twilight/{p-DEUne75O.js → p-BI2zk2yo.js} +1 -1
- package/dist/twilight/{p-C4wd-bXb.js → p-BRD27esZ.js} +1 -1
- package/dist/twilight/{p-Bvez5luh.js → p-CUYEEJ4c.js} +1 -1
- package/dist/twilight/{p-CH8-uKSN.js → p-DUvdNUoC.js} +1 -1
- package/dist/twilight/{p-D0ZZ4jO5.js → p-DhR67rwu.js} +1 -1
- package/dist/twilight/p-a01dd6b7.entry.js +4 -0
- package/dist/twilight/{p-9e3f55be.entry.js → p-a3e000ef.entry.js} +1 -1
- package/dist/twilight/{p-3f412ab2.entry.js → p-a6c14a64.entry.js} +1 -1
- package/dist/twilight/p-b0b79820.entry.js +4 -0
- package/dist/twilight/{p-10856491.entry.js → p-b5581886.entry.js} +1 -1
- package/dist/twilight/p-b81437f4.entry.js +4 -0
- package/dist/twilight/{p-de200512.entry.js → p-bf010154.entry.js} +1 -1
- package/dist/twilight/{p-0ffafdea.entry.js → p-c0388251.entry.js} +1 -1
- package/dist/twilight/{p-2613f6dc.entry.js → p-c9ab361e.entry.js} +1 -1
- package/dist/twilight/{p-92848d53.entry.js → p-ed85bc00.entry.js} +1 -1
- package/dist/twilight/p-f7863a58.entry.js +4 -0
- package/dist/twilight/{p-D5PGwR59.js → p-gLeBNvS1.js} +2 -2
- package/dist/twilight/{p-D5p2t_CX.js → p-j4lbZMJ0.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-accordion/salla-accordion-head.d.ts +6 -0
- package/dist/types/components/salla-conditional-fields/salla-conditional-fields.d.ts +2 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.d.ts +10 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.d.ts +20 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.d.ts +46 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.d.ts +22 -0
- package/dist/types/components/salla-multiple-bundle-product/interfaces.d.ts +101 -0
- package/dist/types/components/salla-multiple-bundle-product/salla-multiple-bundle-product.d.ts +42 -0
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +21 -1
- package/dist/types/components.d.ts +298 -2
- package/package.json +5 -5
- package/dist/cjs/app-globals-OVEmNa5W.js +0 -38
- package/dist/cjs/camera-DytepEoK.js +0 -13
- package/dist/cjs/minus-CCryh1qf.js +0 -21
- package/dist/cjs/salla-booking-field_2.cjs.entry.js +0 -280
- package/dist/cjs/salla-product-options.cjs.entry.js +0 -715
- package/dist/esm/app-globals-BKgAyoNJ.js +0 -36
- package/dist/esm/camera-C6jIkM-X.js +0 -11
- package/dist/esm/minus-DfeagqF1.js +0 -18
- package/dist/esm/salla-booking-field_2.entry.js +0 -277
- package/dist/twilight/p-19c38b4a.entry.js +0 -11
- package/dist/twilight/p-8272b58f.entry.js +0 -4
- package/dist/twilight/p-989fcbb4.entry.js +0 -4
- package/dist/twilight/p-9f47b72b.entry.js +0 -4
- package/dist/twilight/p-C6jIkM-X.js +0 -4
- package/dist/twilight/p-DfeagqF1.js +0 -4
- package/dist/twilight/p-KHt1Smzh.js +0 -4
- package/dist/twilight/p-b8d41065.entry.js +0 -4
- package/dist/twilight/p-dd9695d6.entry.js +0 -4
- package/dist/twilight/p-e2ebb686.entry.js +0 -4
- package/dist/twilight/p-e30f7c20.entry.js +0 -4
- package/dist/twilight/p-fcb3e719.entry.js +0 -4
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { d as defineCustomElement$1 } from './salla-slider2.js';
|
|
6
|
+
|
|
7
|
+
const sallaMultipleBundleProductSliderCss = "";
|
|
8
|
+
|
|
9
|
+
const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class SallaMultipleBundleProductSlider extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.productSelected = createEvent(this, "productSelected", 7);
|
|
14
|
+
this.productOptionsSelected = createEvent(this, "productOptionsSelected", 7);
|
|
15
|
+
this.selectedProducts = {};
|
|
16
|
+
this.handleProductClick = (product, productIndex) => {
|
|
17
|
+
// Find the checkbox input for this product
|
|
18
|
+
const checkboxId = this.generateEventName(this.section.id, productIndex);
|
|
19
|
+
const checkbox = document.getElementById(checkboxId);
|
|
20
|
+
if (!checkbox)
|
|
21
|
+
return;
|
|
22
|
+
if (checkbox) {
|
|
23
|
+
// Toggle the checkbox state
|
|
24
|
+
checkbox.checked = !checkbox.checked;
|
|
25
|
+
// Dispatch a change event to trigger form validation/submission
|
|
26
|
+
const changeEvent = new window.Event('change', { bubbles: true });
|
|
27
|
+
checkbox.dispatchEvent(changeEvent);
|
|
28
|
+
}
|
|
29
|
+
this.productSelected.emit({
|
|
30
|
+
product,
|
|
31
|
+
sectionId: this.section.id,
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
this.handleOptionsClick = (product) => {
|
|
35
|
+
this.productOptionsSelected.emit({
|
|
36
|
+
product,
|
|
37
|
+
sectionId: this.section.id,
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
generateEventName(sectionId, productIndex) {
|
|
42
|
+
return `bundle[${sectionId}][${productIndex}][id]`;
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return (h(Host, { key: '8c1d316ceeb7a0833d689695f00569a0da1d642e' }, h("salla-slider", { key: 'ca86cee09dc4f8c48edf14bfb4a26b86982fd84d', type: "carousel", controlsOuter: false, showControls: false, id: "accordion-multiple-bundle-product", pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: {
|
|
46
|
+
spaceBetween: 0,
|
|
47
|
+
} }, h("div", { key: 'b59ac0393f6e826658dcca7eef8c2c21019664d4', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
48
|
+
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
49
|
+
return (h("div", { class: `swiper-slide s-multiple-bundle-product-slide-one-third ${product.quantity == 0
|
|
50
|
+
? 's-multiple-bundle-product-slide-one-third-disabled'
|
|
51
|
+
: ''}`, key: product.id }, h("div", { class: "s-multiple-bundle-product-card" }, h("div", { class: "s-multiple-bundle-product-image-wrapper", onClick: () => this.handleProductClick(product, productIndex) }, h("input", { id: this.generateEventName(this.section.id, productIndex), type: "checkbox", class: "s-multiple-bundle-product-checkbox", checked: isChecked, name: this.generateEventName(this.section.id, productIndex), value: product.id }), h("img", { src: product.image.url || salla.url.cdn('images/s-empty.png'), loading: "lazy", alt: product.image.alt || product.name, class: "s-multiple-bundle-product-image" })), h("div", { class: "s-multiple-bundle-product-content-wrapper" }, h("div", { class: "s-multiple-bundle-product-content" }, h("div", { class: "s-multiple-bundle-product-details" }, h("div", { class: "s-multiple-bundle-product-title-wrapper" }, h("h2", { class: "s-multiple-bundle-product-title" }, product.name)), h("div", { class: "s-multiple-bundle-product-price-wrapper" }, h("span", { class: "s-multiple-bundle-product-price" }, h("span", { innerHTML: salla.money(product.price) })), product.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-price-discount" }, h("span", { innerHTML: salla.money(product.sale_price) }))))), product.quantity_in_group > 0 && product.quantity !== 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.pieces'), h("span", null, product.quantity_in_group))), product.quantity === 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.quantity_in_group_finished')))), product.options?.length > 0 && (h("button", { class: "s-multiple-bundle-product-button", onClick: () => this.handleOptionsClick(product), type: "button" }, salla.lang.get('pages.products.choose_from_options'), h("i", { class: "sicon-keyboard_arrow_left s-multiple-bundle-product-button-icon" })))))));
|
|
52
|
+
})))));
|
|
53
|
+
}
|
|
54
|
+
get host() { return this; }
|
|
55
|
+
static get style() { return sallaMultipleBundleProductSliderCss; }
|
|
56
|
+
}, [0, "salla-multiple-bundle-product-slider", {
|
|
57
|
+
"section": [16],
|
|
58
|
+
"sectionIndex": [2, "section-index"],
|
|
59
|
+
"selectedProducts": [16, "selected-products"]
|
|
60
|
+
}]);
|
|
61
|
+
function defineCustomElement() {
|
|
62
|
+
if (typeof customElements === "undefined") {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const components = ["salla-multiple-bundle-product-slider", "salla-slider"];
|
|
66
|
+
components.forEach(tagName => { switch (tagName) {
|
|
67
|
+
case "salla-multiple-bundle-product-slider":
|
|
68
|
+
if (!customElements.get(tagName)) {
|
|
69
|
+
customElements.define(tagName, SallaMultipleBundleProductSlider);
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "salla-slider":
|
|
73
|
+
if (!customElements.get(tagName)) {
|
|
74
|
+
defineCustomElement$1();
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
} });
|
|
78
|
+
}
|
|
79
|
+
defineCustomElement();
|
|
80
|
+
|
|
81
|
+
export { SallaMultipleBundleProductSlider as S, defineCustomElement as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaMultipleBundleProduct extends Components.SallaMultipleBundleProduct, HTMLElement {}
|
|
4
|
+
export const SallaMultipleBundleProduct: {
|
|
5
|
+
prototype: SallaMultipleBundleProduct;
|
|
6
|
+
new (): SallaMultipleBundleProduct;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { d as defineCustomElement$l } from './salla-accordion2.js';
|
|
6
|
+
import { d as defineCustomElement$k } from './salla-accordion-body2.js';
|
|
7
|
+
import { d as defineCustomElement$j } from './salla-accordion-head2.js';
|
|
8
|
+
import { d as defineCustomElement$i } from './salla-booking-field2.js';
|
|
9
|
+
import { d as defineCustomElement$h } from './salla-button2.js';
|
|
10
|
+
import { d as defineCustomElement$g } from './salla-color-picker2.js';
|
|
11
|
+
import { d as defineCustomElement$f } from './salla-conditional-fields2.js';
|
|
12
|
+
import { d as defineCustomElement$e } from './salla-datetime-picker2.js';
|
|
13
|
+
import { d as defineCustomElement$d } from './salla-file-upload2.js';
|
|
14
|
+
import { d as defineCustomElement$c } from './salla-loading2.js';
|
|
15
|
+
import { d as defineCustomElement$b } from './salla-map2.js';
|
|
16
|
+
import { d as defineCustomElement$a } from './salla-modal2.js';
|
|
17
|
+
import { d as defineCustomElement$9 } from './salla-multiple-bundle-product-cart2.js';
|
|
18
|
+
import { d as defineCustomElement$8 } from './salla-multiple-bundle-product-details2.js';
|
|
19
|
+
import { d as defineCustomElement$7 } from './salla-multiple-bundle-product-options-modal2.js';
|
|
20
|
+
import { d as defineCustomElement$6 } from './salla-multiple-bundle-product-slider2.js';
|
|
21
|
+
import { d as defineCustomElement$5 } from './salla-product-options2.js';
|
|
22
|
+
import { d as defineCustomElement$4 } from './salla-progress-bar2.js';
|
|
23
|
+
import { d as defineCustomElement$3 } from './salla-skeleton2.js';
|
|
24
|
+
import { d as defineCustomElement$2 } from './salla-slider2.js';
|
|
25
|
+
|
|
26
|
+
const sallaMultipleBundleProductCss = ":host{display:block}";
|
|
27
|
+
|
|
28
|
+
const SallaMultipleBundleProduct$1 = /*@__PURE__*/ proxyCustomElement(class SallaMultipleBundleProduct extends HTMLElement {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this.__registerHost();
|
|
32
|
+
this.parsedSections = [];
|
|
33
|
+
}
|
|
34
|
+
parseProducts(newValue) {
|
|
35
|
+
let sections = [];
|
|
36
|
+
if (typeof newValue === 'string') {
|
|
37
|
+
try {
|
|
38
|
+
const parsed = JSON.parse(newValue);
|
|
39
|
+
sections = this.extractSections(parsed);
|
|
40
|
+
}
|
|
41
|
+
catch (e) {
|
|
42
|
+
console.error('Invalid JSON passed to bundleSections prop:', newValue);
|
|
43
|
+
sections = [];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else if (newValue) {
|
|
47
|
+
sections = this.extractSections(newValue);
|
|
48
|
+
}
|
|
49
|
+
this.parsedSections = sections;
|
|
50
|
+
}
|
|
51
|
+
extractSections(data) {
|
|
52
|
+
// Handle new nested structure: data.bundle.sections
|
|
53
|
+
if (data.bundle && data.bundle.sections && Array.isArray(data.bundle.sections)) {
|
|
54
|
+
return data.bundle.sections;
|
|
55
|
+
}
|
|
56
|
+
// Handle old flat structure: data is directly an array of sections
|
|
57
|
+
if (Array.isArray(data)) {
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
// Handle case where data.sections exists at root level
|
|
61
|
+
if (data.sections && Array.isArray(data.sections)) {
|
|
62
|
+
return data.sections;
|
|
63
|
+
}
|
|
64
|
+
console.warn('No valid sections found in data:', data);
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
isCartPage() {
|
|
68
|
+
return salla.url.is_page('cart');
|
|
69
|
+
}
|
|
70
|
+
renderCartPage() {
|
|
71
|
+
return h("salla-multiple-bundle-product-cart", { sections: this.parsedSections });
|
|
72
|
+
}
|
|
73
|
+
renderDetailsPage() {
|
|
74
|
+
return h("salla-multiple-bundle-product-details", { sections: this.parsedSections });
|
|
75
|
+
}
|
|
76
|
+
componentWillLoad() {
|
|
77
|
+
this.parseProducts(this.bundleSections);
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
return (h(Host, { key: '6f9e20c6db0c7d79f84ba197f015f43c1b0a79fc', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
81
|
+
}
|
|
82
|
+
static get watchers() { return {
|
|
83
|
+
"bundleSections": ["parseProducts"]
|
|
84
|
+
}; }
|
|
85
|
+
static get style() { return sallaMultipleBundleProductCss; }
|
|
86
|
+
}, [0, "salla-multiple-bundle-product", {
|
|
87
|
+
"bundleSections": [1, "bundle-sections"],
|
|
88
|
+
"parsedSections": [32]
|
|
89
|
+
}, undefined, {
|
|
90
|
+
"bundleSections": ["parseProducts"]
|
|
91
|
+
}]);
|
|
92
|
+
function defineCustomElement$1() {
|
|
93
|
+
if (typeof customElements === "undefined") {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const components = ["salla-multiple-bundle-product", "salla-accordion", "salla-accordion-body", "salla-accordion-head", "salla-booking-field", "salla-button", "salla-color-picker", "salla-conditional-fields", "salla-datetime-picker", "salla-file-upload", "salla-loading", "salla-map", "salla-modal", "salla-multiple-bundle-product-cart", "salla-multiple-bundle-product-details", "salla-multiple-bundle-product-options-modal", "salla-multiple-bundle-product-slider", "salla-product-options", "salla-progress-bar", "salla-skeleton", "salla-slider"];
|
|
97
|
+
components.forEach(tagName => { switch (tagName) {
|
|
98
|
+
case "salla-multiple-bundle-product":
|
|
99
|
+
if (!customElements.get(tagName)) {
|
|
100
|
+
customElements.define(tagName, SallaMultipleBundleProduct$1);
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
case "salla-accordion":
|
|
104
|
+
if (!customElements.get(tagName)) {
|
|
105
|
+
defineCustomElement$l();
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
case "salla-accordion-body":
|
|
109
|
+
if (!customElements.get(tagName)) {
|
|
110
|
+
defineCustomElement$k();
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
case "salla-accordion-head":
|
|
114
|
+
if (!customElements.get(tagName)) {
|
|
115
|
+
defineCustomElement$j();
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
case "salla-booking-field":
|
|
119
|
+
if (!customElements.get(tagName)) {
|
|
120
|
+
defineCustomElement$i();
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
case "salla-button":
|
|
124
|
+
if (!customElements.get(tagName)) {
|
|
125
|
+
defineCustomElement$h();
|
|
126
|
+
}
|
|
127
|
+
break;
|
|
128
|
+
case "salla-color-picker":
|
|
129
|
+
if (!customElements.get(tagName)) {
|
|
130
|
+
defineCustomElement$g();
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
case "salla-conditional-fields":
|
|
134
|
+
if (!customElements.get(tagName)) {
|
|
135
|
+
defineCustomElement$f();
|
|
136
|
+
}
|
|
137
|
+
break;
|
|
138
|
+
case "salla-datetime-picker":
|
|
139
|
+
if (!customElements.get(tagName)) {
|
|
140
|
+
defineCustomElement$e();
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
143
|
+
case "salla-file-upload":
|
|
144
|
+
if (!customElements.get(tagName)) {
|
|
145
|
+
defineCustomElement$d();
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
case "salla-loading":
|
|
149
|
+
if (!customElements.get(tagName)) {
|
|
150
|
+
defineCustomElement$c();
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
153
|
+
case "salla-map":
|
|
154
|
+
if (!customElements.get(tagName)) {
|
|
155
|
+
defineCustomElement$b();
|
|
156
|
+
}
|
|
157
|
+
break;
|
|
158
|
+
case "salla-modal":
|
|
159
|
+
if (!customElements.get(tagName)) {
|
|
160
|
+
defineCustomElement$a();
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
case "salla-multiple-bundle-product-cart":
|
|
164
|
+
if (!customElements.get(tagName)) {
|
|
165
|
+
defineCustomElement$9();
|
|
166
|
+
}
|
|
167
|
+
break;
|
|
168
|
+
case "salla-multiple-bundle-product-details":
|
|
169
|
+
if (!customElements.get(tagName)) {
|
|
170
|
+
defineCustomElement$8();
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
case "salla-multiple-bundle-product-options-modal":
|
|
174
|
+
if (!customElements.get(tagName)) {
|
|
175
|
+
defineCustomElement$7();
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
case "salla-multiple-bundle-product-slider":
|
|
179
|
+
if (!customElements.get(tagName)) {
|
|
180
|
+
defineCustomElement$6();
|
|
181
|
+
}
|
|
182
|
+
break;
|
|
183
|
+
case "salla-product-options":
|
|
184
|
+
if (!customElements.get(tagName)) {
|
|
185
|
+
defineCustomElement$5();
|
|
186
|
+
}
|
|
187
|
+
break;
|
|
188
|
+
case "salla-progress-bar":
|
|
189
|
+
if (!customElements.get(tagName)) {
|
|
190
|
+
defineCustomElement$4();
|
|
191
|
+
}
|
|
192
|
+
break;
|
|
193
|
+
case "salla-skeleton":
|
|
194
|
+
if (!customElements.get(tagName)) {
|
|
195
|
+
defineCustomElement$3();
|
|
196
|
+
}
|
|
197
|
+
break;
|
|
198
|
+
case "salla-slider":
|
|
199
|
+
if (!customElements.get(tagName)) {
|
|
200
|
+
defineCustomElement$2();
|
|
201
|
+
}
|
|
202
|
+
break;
|
|
203
|
+
} });
|
|
204
|
+
}
|
|
205
|
+
defineCustomElement$1();
|
|
206
|
+
|
|
207
|
+
const SallaMultipleBundleProduct = SallaMultipleBundleProduct$1;
|
|
208
|
+
const defineCustomElement = defineCustomElement$1;
|
|
209
|
+
|
|
210
|
+
export { SallaMultipleBundleProduct, defineCustomElement };
|
|
@@ -11,7 +11,7 @@ const SallaNotificationItem = /*@__PURE__*/ proxyCustomElement(class SallaNotifi
|
|
|
11
11
|
this.__registerHost();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return h("a", { key: '
|
|
14
|
+
return h("a", { key: '17a1e41f0b06f3b2f2f89dc521e6785f1aa74f61', href: this.notification.url, class: { "s-notifications-item": true, "s-notifications-item-shadow": true, "s-notifications-item-read": !this.notification.is_new } }, h("span", { key: '56fee4c18930369fba2790339d24581e8ea87ba8', class: "s-notifications-item-icon" }, h("i", { key: 'e95df8bdab11a7cab57d5c42895cdee902331d46', class: { 's-notifications-item-icon sicon-bell-ring': true, 's-notifications-item-icon-new': this.notification.is_new } })), h("div", { key: 'eaae0f57fddb3559c705acd04691b3446da0fb3c', class: "s-notifications-item-content" }, h("div", { key: '81ea45dd948c4afe6886b6aad935449dfc82a1a3', class: "s-notifications-item-content-leading" }, h("h4", { key: '6fb3da2e43bc676aa69dea061863ea5af1bf5eb4' }, this.notification.title), h("p", { key: '3b7f3273949e70a623fd95b5539accfb0b7e4cae' }, this.notification.sub_title)), h("span", { key: 'f629e3c8429d9636f23432dcbf918dab52e71941', class: "s-notifications-item-content-trailing" }, h("i", { key: 'f2822b50bd09e84c7b06c25403b2189fd7717520', class: "sicon-time s-notifications-item-content-trailing-icon" }), h("span", { key: 'df8fbc5dde967ccf0993dba938d8005d053afcef' }, this.notification.date))));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return sallaNotificationsCss; }
|
|
17
17
|
}, [0, "salla-notification-item", {
|
|
@@ -190,7 +190,7 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
|
|
|
190
190
|
// '</div>';
|
|
191
191
|
// }
|
|
192
192
|
render() {
|
|
193
|
-
return h("salla-modal", { key: '
|
|
193
|
+
return h("salla-modal", { key: '6dce27c3f20b031aa33b7e15980c55af84d1c9f6', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: '1f63aa0fd3a95ba54e8ed5168f1439f4cafce036', slot: 'loading' }, h("div", { key: '748de710f2ad5c6c60a9e324d1e1b44672dee28f', class: "s-offer-modal-skeleton" }, h("div", { key: '96d6d1d8edc3e511c87eaa44539617d529e8a3e0', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: '1abe6ddf5096af877c9ce59dfbcdecb08a263e4b', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '7010a9056b168f4df7168a55dbfde1da2726c913', height: '15px', width: '50%' }), h("salla-skeleton", { key: '4168b53b7a4358240f8f6d4d3b9f9a999992ddcb', height: '10px', width: '30%' })), h("div", { key: 'd019372cebf6d3e4d80842fa48e3ce1433457f06', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '4cbc9f99a98ccc9ea27f41e50fa037ea44d85048', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '467546d4ded93cd95a7be78e6dd39935a20867c8', height: '15px', width: '50%' }), h("salla-skeleton", { key: '399a4a4ebedcc54def70ff428f3c5f24fd98a775', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
194
194
|
? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
195
195
|
h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
196
196
|
: '', h("label", { class: "s-offer-modal-remember-label" }, h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
|
|
@@ -47,7 +47,7 @@ const SallaOrderDetails$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderDet
|
|
|
47
47
|
];
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return h(Host, { key: '
|
|
50
|
+
return h(Host, { key: 'bd23d62d5941991f87ab76c8df4a596019a8fff2', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
|
|
51
51
|
}
|
|
52
52
|
static get watchers() { return {
|
|
53
53
|
"orderDetails": ["parseOrderDetailsData"]
|
|
@@ -93,7 +93,7 @@ const SallaOrderSummary$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderSum
|
|
|
93
93
|
this.copyCodeButtonTimeout && clearTimeout(this.copyCodeButtonTimeout);
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
|
-
return (h("ul", { key: '
|
|
96
|
+
return (h("ul", { key: 'af9f879519eebc501c9cb1bb5151d8b2d265affd', class: "s-order-summary-wrapper" }, this.noItemFound ? h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" })) :
|
|
97
97
|
this.order_items.map((item) => (this.isDigitalCard(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, h("p", null, h("span", { innerHTML: iconCreditCard }), h("span", null, code.code)), h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, h("span", { innerHTML: this.codeCopied === code.code ? IconVerified : iconCopy }), h("span", null, this.copy_text))))))) :
|
|
98
98
|
this.isDigitalProduct(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), h("ul", null, item.files.map((file) => (h("li", { class: "s-order-summary-digital-item-wrapper" }, h("div", null, h("span", { innerHTML: iconFileArchive }), h("span", null, file.name)), h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, h("span", { innerHTML: iconDownload }), h("span", null, this.download_text)))))))) : null))));
|
|
99
99
|
}
|
|
@@ -36,12 +36,12 @@ const SallaPayments$1 = /*@__PURE__*/ proxyCustomElement(class SallaPayments ext
|
|
|
36
36
|
render() {
|
|
37
37
|
const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
|
|
38
38
|
const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'c5f26f541f25203b250277fb3803d74fcb2fb4cc', class: "s-payments-list-wrap" }, h("ul", { key: '263ac59414cd989c6995aeac452c74b96e5bee97', class: "s-payments-list" }, madeInKSA && h("li", { key: 'cd5ecf3b89363107300b056ec1d38e9638eb7b74', class: "s-payments-list-item" }, h("img", { key: '5618f8af5984801ca0b7eed121cd45a6ddfce602', class: "lazy", width: "100%", height: "100%", decoding: "async", loading: "lazy", "data-src": salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
|
|
40
40
|
h("div", { id: "cod-slot", innerHTML: this.codSlot
|
|
41
41
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/cod_mini.png`, 58, 58)) }) :
|
|
42
42
|
h("div", { id: "payment-slot", innerHTML: this.paymentSlot
|
|
43
43
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/${payment}_mini.png`, 58, 58))
|
|
44
|
-
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '
|
|
44
|
+
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '5c3738352aed8813bf5fb0993ff77f315abfd601', id: "sbc-slot", innerHTML: this.sbcSlot
|
|
45
45
|
.replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
|
|
46
46
|
.replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
|
|
47
47
|
}
|
|
@@ -42,7 +42,7 @@ const SallaPlaceholder = /*@__PURE__*/ proxyCustomElement(class SallaPlaceholder
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '9bf5c9b70ee7dddc65bdb550f98681aa6eb4a2b1', class: this.alignmentClass() }, h("div", { key: '05bf79dd66fb30d76ffe05ea50b66d1bab976bb0', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '1373cfaad7e993e6cc888047346348083ee8bf7e', class: "s-placeholder-title" }, h("slot", { key: '5a6d70c7fee74334cf46143511bf2465e32025be', name: 'title' }, h("span", { key: '5b531362a3dea0a8a59960a28925c03bdfc64f82' }, salla.lang.get('common.elements.no_options')))), h("div", { key: 'd9d0c28b47f7c2972817630a9011e17116fa66c8', class: "s-placeholder-description" }, h("slot", { key: '0b67052476e584464107d56b4c8f263cfebaac87', name: 'description' }, h("span", { key: '61b16c16799ce96a53eca32936c8d49b2e81ff03' }, salla.lang.get('common.errors.empty_results'))))));
|
|
46
46
|
}
|
|
47
47
|
static get style() { return sallaPlaceholderCss; }
|
|
48
48
|
}, [4, "salla-placeholder", {
|
|
@@ -159,9 +159,9 @@ const SallaPriceRange = /*@__PURE__*/ proxyCustomElement(class SallaPriceRange e
|
|
|
159
159
|
this.maxPrice = value === undefined ? '' : value;
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
|
-
return (h(Host, { key: '
|
|
162
|
+
return (h(Host, { key: 'c32d64ad892c080988c8d5414b63f7fd684981f7' }, this.filterValues.map((filterValue, index) => {
|
|
163
163
|
return h("label", { class: "s-filters-label", htmlFor: `${this.option.key}-${index}`, key: index }, h("input", { id: `${this.option.key}-${index}`, name: "price", type: "radio", checked: this.isChecked(filterValue), class: "s-filters-radio", onChange: e => this.handleMinMaxPrice(e, filterValue) }), h("span", { innerHTML: this.getPriceLabel(filterValue) }));
|
|
164
|
-
}), h("div", { key: '
|
|
164
|
+
}), h("div", { key: '51b5c95a03ca70ecb8bc4567f259337771da5026', class: "flex justify-center items-center" }, h("div", { key: 'aa792280bc5ef8b1c42f5f31d60b458d2dfb47d6', class: "relative max-w-xl w-full" }, h("div", { key: '6bae77784c201192d3fddd78da7873391287891b', class: "s-price-range-inputs" }, h("div", { key: '17e47ec28470770d43389f9b8f17288e69d0b1f9', class: "s-price-range-relative" }, h("div", { key: 'f421eaa1d2ff4be5946434015c51fb3c95817940', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '881be4083dea6163c7a5c51b9578537998abc1d3', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), h("div", { key: '48aec93a2a83015bde0eacbefa55bc040ea82fd1', class: "s-price-range-gray-text" }, " -"), h("div", { key: 'eb5dd50b1d622782a8c40e0f8247d1b2aa073cfd', class: "s-price-range-relative" }, h("div", { key: 'bf5792c163b95e5367c0f24a3af08376e7e75514', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'c6275c9838c65f428108ca15edafa0d48c057f94', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), h("salla-button", { key: 'b39c7a769cdda80a24b39dfc18c1526dcb8e40b7', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: 'd209fd63b06d195fa186c18ac00c8c456aef940d', innerHTML: this.isRTL ? IconArrowLeft : arrowRight })))))));
|
|
165
165
|
}
|
|
166
166
|
componentDidLoad() {
|
|
167
167
|
this.isReady = true;
|
|
@@ -140,7 +140,7 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
|
|
|
140
140
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
141
141
|
}
|
|
142
142
|
render() {
|
|
143
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: '631de4fa7186561daed53943f2ece491a8dbe934', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
|
|
144
144
|
? h("div", { class: "s-product-availability-subscribed" }, h("span", { innerHTML: BellRing, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
|
|
145
145
|
:
|
|
146
146
|
h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
|
|
@@ -108,14 +108,14 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
|
|
|
108
108
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
109
109
|
};
|
|
110
110
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
111
|
-
return (h(Host, { key: '
|
|
111
|
+
return (h(Host, { key: 'e46cba8a24104176d7a95c02ead575a6fa360783', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: '6370f6a5ca0a63ab4f4d97492ef1f8911ef82bda', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '37f2f82fa1c500e9cdb4a0aabe570429b9b9daaa', ...hrefProp }, h("img", { key: '4ce43329b5a44b4d5ef174469c510ef28d547440', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
112
112
|
? 'contain'
|
|
113
113
|
: this.fitImageHeight
|
|
114
114
|
? this.fitImageHeight
|
|
115
|
-
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '
|
|
116
|
-
h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '
|
|
115
|
+
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '87a4e4caafb0edba3c634ff5760ae0556a510d3c', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
116
|
+
h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '7cb392ea3fe61d41d5ba5a36650725545ddd3cf8', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
117
117
|
h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
118
|
-
: '', h("div", { key: '
|
|
118
|
+
: '', h("div", { key: '28322ef080ae243b55ed4c982f59226159b81d6b', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: 'dc378461ca91f1af0c29b35271e8f6b76321f133', class: "s-product-card-content-title" }, h("a", { key: '1bf4c4cf4d04ebb4990053d9721581b276083f30', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
119
119
|
h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
120
120
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
121
121
|
[h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -124,7 +124,7 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
|
|
|
124
124
|
this.addBtn.donatingAmount = e.target.value;
|
|
125
125
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
126
126
|
: '')]
|
|
127
|
-
: '', h("div", { key: '
|
|
127
|
+
: '', h("div", { key: '86474ac2519b7589053b39dc36ae316ad64c8e29', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
128
128
|
h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Rate }), h("span", null, this.productData.rating.stars))
|
|
129
129
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
130
130
|
? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|