@salla.sa/twilight-components 2.14.356 → 2.14.357
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-Cp7YEyDQ.js → filepond-CVZ-BhRy.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CR4IT_jI.js → filepond-plugin-file-poster-2ShKuqPr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DINya0Zr.js → filepond-plugin-file-validate-size-BFWtiLWL.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Yo85drbo.js → filepond-plugin-file-validate-type-BzqK-hKY.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DZTSgDgr.js → filepond-plugin-image-edit-Bcnu5eSZ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Dtdd6Do2.js → filepond-plugin-image-exif-orientation-CCnsEJ8x.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-kI1VoGOp.js → filepond-plugin-image-preview-kn_ZJZXi.js} +1 -1
- package/dist/cjs/{index-BB2wN5Zu.js → index-B-qAr7bS.js} +1 -1
- package/dist/cjs/{index-B5Ws8rT7.js → index-CF5bZnDB.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.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-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.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-count-down_2.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-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.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-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.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-modal.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-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +23 -30
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.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-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.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/cjs/{vanilla-picker-C-AqEZ0S.js → vanilla-picker-DuWLLDIZ.js} +1 -1
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +1 -1
- package/dist/collection/components/salla-slider/salla-slider.js +25 -33
- package/dist/components/index.js +2 -2
- package/dist/components/salla-slider2.js +23 -31
- package/dist/esm/{filepond-DK_xd-tp.js → filepond-BInIwZYj.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-J4J1RcGt.js → filepond-plugin-file-poster-DRu2Mi6P.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BDSgcYn7.js → filepond-plugin-file-validate-size-DO5zxC4X.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-U8jHGr5v.js → filepond-plugin-file-validate-type-BwxMZ28-.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CFrud4h0.js → filepond-plugin-image-edit-CwEZfbKE.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-D5hBL036.js → filepond-plugin-image-exif-orientation-B2YJJ8ni.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CPKs1HAm.js → filepond-plugin-image-preview-BdiNpvoD.js} +1 -1
- package/dist/esm/{index-C2KyQGaa.js → index-BKsC0x_d.js} +1 -1
- package/dist/esm/{index-BkWJPw7x.js → index-DhtEPVv1.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.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-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.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-count-down_2.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-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.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-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.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-modal.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-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +23 -30
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.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-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.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/esm/{vanilla-picker-DOvdi39c.js → vanilla-picker-9y3LOKrc.js} +1 -1
- package/dist/twilight/{p-8e12cdb4.entry.js → p-00c8b870.entry.js} +1 -1
- package/dist/twilight/{p-47d09695.entry.js → p-0108db0e.entry.js} +1 -1
- package/dist/twilight/{p-26d123cb.entry.js → p-0317ca56.entry.js} +1 -1
- package/dist/twilight/{p-13f1e451.entry.js → p-04871dde.entry.js} +1 -1
- package/dist/twilight/{p-6a8f5002.entry.js → p-0523a5ef.entry.js} +1 -1
- package/dist/twilight/{p-eeb474c4.entry.js → p-06af1120.entry.js} +1 -1
- package/dist/twilight/{p-30907a97.entry.js → p-12c7abc7.entry.js} +1 -1
- package/dist/twilight/{p-86e020f4.entry.js → p-135b2262.entry.js} +1 -1
- package/dist/twilight/{p-bb9ae7be.entry.js → p-17a49368.entry.js} +1 -1
- package/dist/twilight/{p-95862483.entry.js → p-18c1aa82.entry.js} +1 -1
- package/dist/twilight/{p-162806a6.entry.js → p-2ab31b93.entry.js} +1 -1
- package/dist/twilight/{p-b693aefa.entry.js → p-3071d452.entry.js} +1 -1
- package/dist/twilight/{p-b303d4aa.entry.js → p-3253d74f.entry.js} +1 -1
- package/dist/twilight/{p-7f28971d.entry.js → p-378f9cb2.entry.js} +1 -1
- package/dist/twilight/{p-39f15e8c.entry.js → p-3874791d.entry.js} +1 -1
- package/dist/twilight/{p-8f8cbf30.entry.js → p-476a002f.entry.js} +1 -1
- package/dist/twilight/{p-a42543cf.entry.js → p-478da0db.entry.js} +1 -1
- package/dist/twilight/{p-59a1cc3e.entry.js → p-47bc1b0e.entry.js} +1 -1
- package/dist/twilight/{p-b6554543.entry.js → p-4d200466.entry.js} +1 -1
- package/dist/twilight/{p-3f71adc6.entry.js → p-5636bdc5.entry.js} +1 -1
- package/dist/twilight/{p-924e13b5.entry.js → p-56b5658d.entry.js} +1 -1
- package/dist/twilight/{p-29bbbd8f.entry.js → p-5a691df0.entry.js} +1 -1
- package/dist/twilight/{p-8ab1cb25.entry.js → p-63fb4f6a.entry.js} +1 -1
- package/dist/twilight/{p-e7a1cda7.entry.js → p-659378d1.entry.js} +1 -1
- package/dist/twilight/{p-db6b7e58.entry.js → p-67656ed6.entry.js} +1 -1
- package/dist/twilight/{p-7edda278.entry.js → p-68f77bf9.entry.js} +1 -1
- package/dist/twilight/{p-0caa1e0c.entry.js → p-6aa0b298.entry.js} +1 -1
- package/dist/twilight/{p-bd9e6239.entry.js → p-6b48b78c.entry.js} +1 -1
- package/dist/twilight/{p-2f3e8d60.entry.js → p-6c9a3556.entry.js} +1 -1
- package/dist/twilight/{p-1b5fc61d.entry.js → p-706fc07a.entry.js} +1 -1
- package/dist/twilight/{p-65b3442d.entry.js → p-8318e5a4.entry.js} +1 -1
- package/dist/twilight/{p-13cc3fb9.entry.js → p-83a9dae4.entry.js} +1 -1
- package/dist/twilight/{p-bde045fa.entry.js → p-89f4a500.entry.js} +1 -1
- package/dist/twilight/{p-f6acc615.entry.js → p-8b8442ec.entry.js} +1 -1
- package/dist/twilight/{p-a7c0bc08.entry.js → p-8e3ab101.entry.js} +1 -1
- package/dist/twilight/{p-f052464b.entry.js → p-93e72677.entry.js} +1 -1
- package/dist/twilight/{p-c8a82f37.entry.js → p-9902b843.entry.js} +1 -1
- package/dist/twilight/{p-a32de0ab.entry.js → p-9da9a96e.entry.js} +1 -1
- package/dist/twilight/{p-B7hfl1_L.js → p-9kdhmfl0.js} +2 -2
- package/dist/twilight/{p-D1-Giq37.js → p-BnEemU3K.js} +1 -1
- package/dist/twilight/{p-DDUfBWCl.js → p-C5JBfwX3.js} +1 -1
- package/dist/twilight/{p-DK6KzbCc.js → p-ChWBy7Mi.js} +1 -1
- package/dist/twilight/{p-BZ1obY9a.js → p-D5Ctrxqk.js} +1 -1
- package/dist/twilight/{p-BkWJPw7x.js → p-DhtEPVv1.js} +1 -1
- package/dist/twilight/{p-CXfpMFgS.js → p-DucyXwUa.js} +1 -1
- package/dist/twilight/{p-DEfwTter.js → p-Oa-SLesW.js} +1 -1
- package/dist/twilight/{p-f184ab27.entry.js → p-a1853dac.entry.js} +1 -1
- package/dist/twilight/{p-90440e96.entry.js → p-a37b4382.entry.js} +1 -1
- package/dist/twilight/{p-74a880cc.entry.js → p-a5094c62.entry.js} +1 -1
- package/dist/twilight/{p-1965c320.entry.js → p-a798090d.entry.js} +1 -1
- package/dist/twilight/{p-4af20310.entry.js → p-adbb3dcd.entry.js} +1 -1
- package/dist/twilight/{p-cd20dfbd.entry.js → p-af829f6e.entry.js} +1 -1
- package/dist/twilight/{p-01fbef77.entry.js → p-b01b370a.entry.js} +1 -1
- package/dist/twilight/{p-415ba86d.entry.js → p-b350c896.entry.js} +1 -1
- package/dist/twilight/{p-5f58d298.entry.js → p-c2167627.entry.js} +1 -1
- package/dist/twilight/{p-a528f44e.entry.js → p-c50ea722.entry.js} +1 -1
- package/dist/twilight/{p-67ed8f76.entry.js → p-c623dae3.entry.js} +1 -1
- package/dist/twilight/{p-1616852e.entry.js → p-c6abc912.entry.js} +1 -1
- package/dist/twilight/{p-215fa138.entry.js → p-ca414718.entry.js} +1 -1
- package/dist/twilight/{p-c14df66d.entry.js → p-d597ea5a.entry.js} +1 -1
- package/dist/twilight/{p-07f8cb47.entry.js → p-da2a9d5e.entry.js} +1 -1
- package/dist/twilight/{p-414d057a.entry.js → p-dbd7bab7.entry.js} +1 -1
- package/dist/twilight/{p-2e2dce52.entry.js → p-ddf1eb8e.entry.js} +1 -1
- package/dist/twilight/{p-13d7b8db.entry.js → p-de3f8afc.entry.js} +1 -1
- package/dist/twilight/{p-77e219f7.entry.js → p-df17bdfb.entry.js} +1 -1
- package/dist/twilight/{p-7fa36512.entry.js → p-e0506d5f.entry.js} +1 -1
- package/dist/twilight/{p-7ee15c9e.entry.js → p-e0f3dcc1.entry.js} +1 -1
- package/dist/twilight/{p-3f911fed.entry.js → p-e0f56ef8.entry.js} +1 -1
- package/dist/twilight/{p-e6c7e348.entry.js → p-e13bcda5.entry.js} +1 -1
- package/dist/twilight/{p-131f1a54.entry.js → p-e61517dd.entry.js} +1 -1
- package/dist/twilight/{p-f2292a2c.entry.js → p-e6de17d2.entry.js} +1 -1
- package/dist/twilight/{p-560f8e69.entry.js → p-ead767db.entry.js} +1 -1
- package/dist/twilight/{p-c288faca.entry.js → p-f47c7d7e.entry.js} +1 -1
- package/dist/twilight/{p-5a2072d5.entry.js → p-fd9858a0.entry.js} +1 -1
- package/dist/twilight/{p-Dvq8cJys.js → p-sTgCEptc.js} +1 -1
- package/dist/twilight/{p-C-TeNpQx.js → p-upVSO4PR.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-slider/salla-slider.d.ts +5 -6
- package/dist/types/components.d.ts +10 -10
- package/package.json +5 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CF5bZnDB.js');
|
|
7
7
|
var specialDiscount = require('./special-discount-DC2oXurL.js');
|
|
8
8
|
|
|
9
9
|
var Tag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CF5bZnDB.js');
|
|
7
7
|
|
|
8
8
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CF5bZnDB.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
|
|
9
9
|
var Helper = require('./Helper-DHRnzcFm.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CF5bZnDB.js');
|
|
7
7
|
var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -9863,7 +9863,7 @@ const SallaSlider = class {
|
|
|
9863
9863
|
* When enabled and there is exactly one slide in the `items` slot,
|
|
9864
9864
|
* render without initializing Swiper (single slide mode).
|
|
9865
9865
|
*/
|
|
9866
|
-
this.
|
|
9866
|
+
this.staticWhenSingle = false;
|
|
9867
9867
|
/**
|
|
9868
9868
|
* Enable autoplay - working with `type="carousel" only`
|
|
9869
9869
|
*/
|
|
@@ -9895,8 +9895,6 @@ const SallaSlider = class {
|
|
|
9895
9895
|
this.isBeginning = true;
|
|
9896
9896
|
/** Use matchMedia instead of window.innerWidth to avoid forced reflow (Lighthouse recommended) */
|
|
9897
9897
|
this.isDesktopViewport = typeof window !== 'undefined' ? window.matchMedia('(min-width: 768px)').matches : true;
|
|
9898
|
-
/** When true, only one slide is present; we render without Swiper for performance. */
|
|
9899
|
-
this.singleSlideMode = false;
|
|
9900
9898
|
this._rafId = null;
|
|
9901
9899
|
this.viewportMediaQuery = null;
|
|
9902
9900
|
this.hasThumbSlot = false;
|
|
@@ -9953,7 +9951,7 @@ const SallaSlider = class {
|
|
|
9953
9951
|
* @returns The Swiper slider instance
|
|
9954
9952
|
*/
|
|
9955
9953
|
async sliderInstance() {
|
|
9956
|
-
return this.
|
|
9954
|
+
return this.slider;
|
|
9957
9955
|
}
|
|
9958
9956
|
/**
|
|
9959
9957
|
* Run transition to the slide with index number equal to 'index' parameter for the duration equal to 'speed' parameter.
|
|
@@ -10064,7 +10062,7 @@ const SallaSlider = class {
|
|
|
10064
10062
|
* Get slider slides
|
|
10065
10063
|
* **/
|
|
10066
10064
|
async getSlides() {
|
|
10067
|
-
return this.
|
|
10065
|
+
return this.slider?.slides;
|
|
10068
10066
|
}
|
|
10069
10067
|
/**
|
|
10070
10068
|
* Get slider slides
|
|
@@ -10115,9 +10113,7 @@ const SallaSlider = class {
|
|
|
10115
10113
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
10116
10114
|
* **/
|
|
10117
10115
|
async thumbsSlideTo(index, speed, runCallbacks) {
|
|
10118
|
-
|
|
10119
|
-
return;
|
|
10120
|
-
return this.thumbsSlider.slideTo(index, speed, runCallbacks);
|
|
10116
|
+
return this.thumbsSlider?.slideTo(index, speed, runCallbacks);
|
|
10121
10117
|
}
|
|
10122
10118
|
/**
|
|
10123
10119
|
* Get thumbs slider slides
|
|
@@ -10125,7 +10121,14 @@ const SallaSlider = class {
|
|
|
10125
10121
|
async getThumbsSlides() {
|
|
10126
10122
|
return await this.thumbsSlider?.slides;
|
|
10127
10123
|
}
|
|
10128
|
-
|
|
10124
|
+
isStaticWhenSingle() {
|
|
10125
|
+
return this.staticWhenSingle && this.host.querySelector('[slot="items"]')?.children?.length === 1;
|
|
10126
|
+
}
|
|
10127
|
+
async componentWillLoad() {
|
|
10128
|
+
if (this.isStaticWhenSingle()) {
|
|
10129
|
+
this.host.classList.add('s-slider-single-mode');
|
|
10130
|
+
return;
|
|
10131
|
+
}
|
|
10129
10132
|
salla.lang.onLoaded(() => {
|
|
10130
10133
|
this.displayAllTitle = salla.lang.get('blocks.home.display_all');
|
|
10131
10134
|
});
|
|
@@ -10298,21 +10301,15 @@ const SallaSlider = class {
|
|
|
10298
10301
|
this.slider.on('transitionStart', (slider) => this.sliderTransitionStart.emit(slider));
|
|
10299
10302
|
}
|
|
10300
10303
|
render() {
|
|
10304
|
+
if (this.isStaticWhenSingle()) {
|
|
10305
|
+
return;
|
|
10306
|
+
}
|
|
10301
10307
|
let classes = this.type ? this.type + '-slider ' : '';
|
|
10302
10308
|
classes += this.controlsOuter ? ' s-slider-controls-outer ' : '';
|
|
10303
10309
|
classes += this.blockTitle == '' ? ' s-slider-has-notitle s-slider-v-centered ' : '';
|
|
10304
10310
|
classes += this.verticalThumbs ? ' s-slider-vertical ' : ' s-slider-horizontal ';
|
|
10305
10311
|
classes += this.arrowsCentered ? ' s-slider-v-centered ' : '';
|
|
10306
10312
|
classes += this.gridThumbs ? ' s-slider-with-grid-thumbs ' : '';
|
|
10307
|
-
if (this.singleSlideMode) {
|
|
10308
|
-
return (index.h(index.Host, { class: 's-slider-wrapper s-slider-single-mode ' + classes }, this.blockTitle || this.displayAllUrl ?
|
|
10309
|
-
index.h("div", { class: "s-slider-block__title" }, this.blockTitle ?
|
|
10310
|
-
index.h("div", { class: "s-slider-block__title-right" }, index.h("h2", null, this.blockTitle), this.blockSubtitle ? index.h("p", { innerHTML: this.blockSubtitle }) : '')
|
|
10311
|
-
: '', this.displayAllUrl ?
|
|
10312
|
-
index.h("div", { class: "s-slider-block__title-left" }, index.h("a", { href: this.displayAllUrl, class: "s-slider-block__display-all" }, this.displayAllTitle))
|
|
10313
|
-
: '')
|
|
10314
|
-
: '', index.h("div", { class: "swiper s-slider-container s-slider-single", dir: this.vertical ? "ltr" : this.direction }, index.h("slot", null), index.h("div", { class: "swiper-wrapper s-slider-swiper-wrapper" }, index.h("slot", { name: 'items' })))));
|
|
10315
|
-
}
|
|
10316
10313
|
return (index.h(index.Host, { class: 's-slider-wrapper ' + classes }, this.blockTitle || this.showControls ?
|
|
10317
10314
|
index.h("div", { class: "s-slider-block__title" }, this.blockTitle ?
|
|
10318
10315
|
index.h("div", { class: "s-slider-block__title-right" }, index.h("h2", null, this.blockTitle), this.blockSubtitle ? index.h("p", { innerHTML: this.blockSubtitle }) : '')
|
|
@@ -10381,9 +10378,11 @@ const SallaSlider = class {
|
|
|
10381
10378
|
this.lazyObserver.observe(el);
|
|
10382
10379
|
}
|
|
10383
10380
|
componentDidLoad() {
|
|
10381
|
+
if (this.isStaticWhenSingle()) {
|
|
10382
|
+
return;
|
|
10383
|
+
}
|
|
10384
10384
|
// 1. Batch Reads (Get all elements first without modifying DOM)
|
|
10385
10385
|
const tasks = [];
|
|
10386
|
-
let _singleSlideMode = false;
|
|
10387
10386
|
const prepareFlatten = (container, slotSelector) => {
|
|
10388
10387
|
const slotEl = container?.querySelector(slotSelector);
|
|
10389
10388
|
if (!slotEl)
|
|
@@ -10392,10 +10391,6 @@ const SallaSlider = class {
|
|
|
10392
10391
|
if (elements.length) {
|
|
10393
10392
|
// Queue the Write operation
|
|
10394
10393
|
tasks.push(() => slotEl.replaceWith(...elements));
|
|
10395
|
-
if (elements.length === 1 && this.enableSingleSlideMode) {
|
|
10396
|
-
_singleSlideMode = true;
|
|
10397
|
-
elements[0].classList.add('swiper-slide');
|
|
10398
|
-
}
|
|
10399
10394
|
}
|
|
10400
10395
|
};
|
|
10401
10396
|
prepareFlatten(this.sliderWrapper, 'div[slot="items"]');
|
|
@@ -10405,16 +10400,14 @@ const SallaSlider = class {
|
|
|
10405
10400
|
// 2. Batch Writes (Execute all DOM modifications together)
|
|
10406
10401
|
tasks.forEach(task => task());
|
|
10407
10402
|
// 3. Init Swiper inside rAF
|
|
10408
|
-
this._rafId = requestAnimationFrame(() =>
|
|
10409
|
-
this.singleSlideMode = _singleSlideMode;
|
|
10410
|
-
if (!_singleSlideMode) {
|
|
10411
|
-
this.initSlider();
|
|
10412
|
-
}
|
|
10413
|
-
});
|
|
10403
|
+
this._rafId = requestAnimationFrame(() => this.initSlider());
|
|
10414
10404
|
this.viewportMediaQuery = window.matchMedia('(min-width: 768px)');
|
|
10415
10405
|
this.viewportMediaQuery.addEventListener('change', this.onViewportChange);
|
|
10416
10406
|
}
|
|
10417
10407
|
disconnectedCallback() {
|
|
10408
|
+
if (this.isStaticWhenSingle()) {
|
|
10409
|
+
return;
|
|
10410
|
+
}
|
|
10418
10411
|
if (this._rafId)
|
|
10419
10412
|
cancelAnimationFrame(this._rafId);
|
|
10420
10413
|
this.viewportMediaQuery?.removeEventListener('change', this.onViewportChange);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CF5bZnDB.js');
|
|
7
7
|
|
|
8
8
|
const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CF5bZnDB.js');
|
|
7
7
|
var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
|
|
8
8
|
var bellRing = require('./bell-ring-BfKPinNo.js');
|
|
9
9
|
var cart = require('./cart-s-x1Fshk.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CF5bZnDB.js');
|
|
7
7
|
|
|
8
8
|
const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
|
|
9
9
|
|