@salla.sa/twilight-components 2.14.361 → 2.14.363
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-B9wDH0hL.js → filepond-Cm0veZUa.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CDAuTBej.js → filepond-plugin-file-poster-5FfyUW85.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-C4L-Kvct.js → filepond-plugin-file-validate-size-BZrpKzQW.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BW3FEKz1.js → filepond-plugin-file-validate-type-DfvlWHm3.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-pAPZWiDo.js → filepond-plugin-image-edit-BS6vuSMf.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-C6OEp0GA.js → filepond-plugin-image-exif-orientation-B14qHqal.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-sdDdM7uQ.js → filepond-plugin-image-preview-DbPhsoe7.js} +1 -1
- package/dist/cjs/{index-Cr_tA7my.js → index-8uU_89ND.js} +2 -2
- package/dist/cjs/{index-CbHQk8WJ.js → index-D4WVexAs.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +9 -5
- 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-cookies-bar.cjs.entry.js +6 -4
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/{vanilla-picker-Cei89uUU.js → vanilla-picker-IQ-oWn_E.js} +1 -1
- package/dist/collection/components/salla-breadcrumb/salla-breadcrumb.js +8 -4
- package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +5 -3
- package/dist/components/index.js +2 -2
- package/dist/components/salla-breadcrumb.js +8 -4
- package/dist/components/salla-cookies-bar.js +5 -3
- package/dist/esm/{filepond-CYW89yXc.js → filepond-BxnfcWKu.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DcZl9j1q.js → filepond-plugin-file-poster-CVlOWX6z.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-C192qRuF.js → filepond-plugin-file-validate-size-DkWQTJLs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-ag9RiKtc.js → filepond-plugin-file-validate-type-DJ3SNo4p.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-C4VUQy7T.js → filepond-plugin-image-edit--sW-f_3W.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CEAYAdoN.js → filepond-plugin-image-exif-orientation-BqM7-Xzy.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DEZzgflX.js → filepond-plugin-image-preview-CEoAG6lV.js} +1 -1
- package/dist/esm/{index-Dg2FbtYI.js → index-CIDWvPVd.js} +1 -1
- package/dist/esm/{index-Bm_JjmLY.js → index-DYymy2t0.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +9 -5
- 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-cookies-bar.entry.js +6 -4
- 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 +1 -1
- 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 +2 -2
- package/dist/esm/{vanilla-picker-N0WXZp8a.js → vanilla-picker-gdoSRIwJ.js} +1 -1
- package/dist/twilight/{p-0b39ca00.entry.js → p-02d3c2c1.entry.js} +1 -1
- package/dist/twilight/{p-0aeb742b.entry.js → p-02f9a65d.entry.js} +1 -1
- package/dist/twilight/{p-1f36e4ed.entry.js → p-05d9522b.entry.js} +1 -1
- package/dist/twilight/{p-199d2afc.entry.js → p-069081f5.entry.js} +1 -1
- package/dist/twilight/{p-1c088a28.entry.js → p-0be53208.entry.js} +1 -1
- package/dist/twilight/{p-b0aa2fbb.entry.js → p-0e2abd8d.entry.js} +1 -1
- package/dist/twilight/{p-3eeeee2a.entry.js → p-147e15be.entry.js} +1 -1
- package/dist/twilight/{p-ace375d3.entry.js → p-147fbbd6.entry.js} +1 -1
- package/dist/twilight/{p-f90ed6b8.entry.js → p-15272ec6.entry.js} +1 -1
- package/dist/twilight/{p-14216c7f.entry.js → p-1a7ef8b9.entry.js} +1 -1
- package/dist/twilight/{p-4d46ba8f.entry.js → p-1df7fdd6.entry.js} +1 -1
- package/dist/twilight/{p-23eb9541.entry.js → p-2cff7601.entry.js} +1 -1
- package/dist/twilight/{p-89ada978.entry.js → p-2fa4615b.entry.js} +1 -1
- package/dist/twilight/{p-49b314ee.entry.js → p-3188943f.entry.js} +1 -1
- package/dist/twilight/{p-1dce335c.entry.js → p-33464e57.entry.js} +1 -1
- package/dist/twilight/{p-7307d72e.entry.js → p-36a25d6d.entry.js} +1 -1
- package/dist/twilight/{p-533058db.entry.js → p-379fd315.entry.js} +1 -1
- package/dist/twilight/{p-cc7a045e.entry.js → p-399edf8d.entry.js} +1 -1
- package/dist/twilight/{p-9242d518.entry.js → p-3b4000a6.entry.js} +1 -1
- package/dist/twilight/{p-8a369c2f.entry.js → p-3bdf10a6.entry.js} +1 -1
- package/dist/twilight/{p-67c292c4.entry.js → p-3d5d0173.entry.js} +1 -1
- package/dist/twilight/{p-253af7e4.entry.js → p-3f9d5f82.entry.js} +1 -1
- package/dist/twilight/{p-7f206524.entry.js → p-46d4b3cc.entry.js} +1 -1
- package/dist/twilight/{p-1ffb95e4.entry.js → p-4786d914.entry.js} +1 -1
- package/dist/twilight/{p-c5c69dd5.entry.js → p-47982538.entry.js} +1 -1
- package/dist/twilight/{p-2c2a5e31.entry.js → p-479c3288.entry.js} +1 -1
- package/dist/twilight/{p-dcc08b7e.entry.js → p-48b787d5.entry.js} +1 -1
- package/dist/twilight/{p-49d0e951.entry.js → p-4ca694ae.entry.js} +1 -1
- package/dist/twilight/{p-b2597562.entry.js → p-4e20b67d.entry.js} +1 -1
- package/dist/twilight/{p-ae6c31ec.entry.js → p-5b9bea1a.entry.js} +1 -1
- package/dist/twilight/{p-01758527.entry.js → p-5fad1660.entry.js} +1 -1
- package/dist/twilight/{p-a64b38ff.entry.js → p-6b7de7eb.entry.js} +1 -1
- package/dist/twilight/{p-00c6b938.entry.js → p-6d5b8938.entry.js} +1 -1
- package/dist/twilight/{p-4e84a501.entry.js → p-6e94fb16.entry.js} +1 -1
- package/dist/twilight/{p-cd4e8a97.entry.js → p-701cc402.entry.js} +1 -1
- package/dist/twilight/{p-4248cb93.entry.js → p-70afedaf.entry.js} +1 -1
- package/dist/twilight/{p-b2b1a5c0.entry.js → p-72d2fd15.entry.js} +1 -1
- package/dist/twilight/{p-6ae733e7.entry.js → p-77186686.entry.js} +1 -1
- package/dist/twilight/{p-32d4ff3c.entry.js → p-8125cc1b.entry.js} +1 -1
- package/dist/twilight/{p-d1efff1b.entry.js → p-8553c120.entry.js} +1 -1
- package/dist/twilight/{p-f8277b02.entry.js → p-857967c3.entry.js} +1 -1
- package/dist/twilight/{p-94797588.entry.js → p-88c066a8.entry.js} +1 -1
- package/dist/twilight/{p-b4fdbde1.entry.js → p-8f5a25a5.entry.js} +1 -1
- package/dist/twilight/{p-448f2198.entry.js → p-9249501a.entry.js} +1 -1
- package/dist/twilight/{p-e1bd6fb2.entry.js → p-9d768dfc.entry.js} +1 -1
- package/dist/twilight/{p-CdycwZVR.js → p-BOP72N-Z.js} +2 -2
- package/dist/twilight/{p-DmucjJ79.js → p-BTCaUy5J.js} +1 -1
- package/dist/twilight/{p-cJK7vs27.js → p-BzWzzpbs.js} +1 -1
- package/dist/twilight/{p-BrMsg8LI.js → p-CFBwCDmK.js} +1 -1
- package/dist/twilight/{p-DClbd2fR.js → p-CNy-mrf-.js} +1 -1
- package/dist/twilight/{p-CJO84kVm.js → p-CWpk66mj.js} +1 -1
- package/dist/twilight/{p-CW14YLAM.js → p-DRCqKDhl.js} +2 -2
- package/dist/twilight/{p-Bm_JjmLY.js → p-DYymy2t0.js} +1 -1
- package/dist/twilight/{p-Bz-InkXO.js → p-DxG2Dyn2.js} +1 -1
- package/dist/twilight/{p-29370764.entry.js → p-a5e35583.entry.js} +1 -1
- package/dist/twilight/{p-d1de9401.entry.js → p-aa067602.entry.js} +1 -1
- package/dist/twilight/{p-f6756659.entry.js → p-acdd9122.entry.js} +1 -1
- package/dist/twilight/{p-3894d390.entry.js → p-b49162d4.entry.js} +1 -1
- package/dist/twilight/{p-46c4028c.entry.js → p-b80a7503.entry.js} +1 -1
- package/dist/twilight/{p-cdff9d44.entry.js → p-b86fb433.entry.js} +1 -1
- package/dist/twilight/{p-1a0ebb60.entry.js → p-bd6ea5cf.entry.js} +1 -1
- package/dist/twilight/{p-6f1a95cf.entry.js → p-c50ea955.entry.js} +1 -1
- package/dist/twilight/{p-da0f4af0.entry.js → p-c6dbc1ad.entry.js} +1 -1
- package/dist/twilight/p-cba4f8d2.entry.js +4 -0
- package/dist/twilight/{p-01515b77.entry.js → p-cbf0d560.entry.js} +1 -1
- package/dist/twilight/{p-BCSovGhK.js → p-cxrZ-GDo.js} +1 -1
- package/dist/twilight/{p-e9db19fa.entry.js → p-d0e54564.entry.js} +1 -1
- package/dist/twilight/{p-78aa003e.entry.js → p-d5e236b8.entry.js} +1 -1
- package/dist/twilight/{p-161b6be8.entry.js → p-d9630e7f.entry.js} +1 -1
- package/dist/twilight/{p-a40111cd.entry.js → p-e083d504.entry.js} +1 -1
- package/dist/twilight/{p-676d09dc.entry.js → p-e8b38c6b.entry.js} +1 -1
- package/dist/twilight/{p-9adb8d89.entry.js → p-e940067f.entry.js} +1 -1
- package/dist/twilight/{p-3d83fcd2.entry.js → p-ebc613c2.entry.js} +1 -1
- package/dist/twilight/{p-890997b7.entry.js → p-f1e8f262.entry.js} +1 -1
- package/dist/twilight/{p-26cdd544.entry.js → p-fcc4e111.entry.js} +1 -1
- package/dist/twilight/{p-c91e5718.entry.js → p-fec7f674.entry.js} +1 -1
- package/dist/twilight/{p-edb6d017.entry.js → p-ff991b71.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/package.json +5 -5
- package/dist/twilight/p-ac82644e.entry.js +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-8uU_89ND.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-8uU_89ND.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-8uU_89ND.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
|
|
package/dist/cjs/twilight.cjs.js
CHANGED
|
@@ -38,7 +38,9 @@ export class SallaBreadcrumb {
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
let sessionBreadcrumbs = this.getSessionBreadcrumbs();
|
|
41
|
-
|
|
41
|
+
let lastSessionItem = sessionBreadcrumbs[sessionBreadcrumbs.length - 1];
|
|
42
|
+
let isParentCompatible = lastSessionItem?.url && page.parent?.url && lastSessionItem.url === page.parent.url;
|
|
43
|
+
if (page.slug === "product.single" && sessionBreadcrumbs && sessionBreadcrumbs.length > 0 && isParentCompatible) {
|
|
42
44
|
sessionBreadcrumbs.push({
|
|
43
45
|
title: page.title,
|
|
44
46
|
url: page.url
|
|
@@ -105,11 +107,13 @@ export class SallaBreadcrumb {
|
|
|
105
107
|
}
|
|
106
108
|
generateBreadcrumbs(page) {
|
|
107
109
|
let breadcrumbs = [];
|
|
108
|
-
//
|
|
110
|
+
// Same parent-compatibility as main path: only reuse session path when last item matches page.parent
|
|
109
111
|
if (page.slug === 'product.single') {
|
|
110
112
|
const previousPage = this.getSessionBreadcrumbs();
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
const lastSessionItem = previousPage[previousPage.length - 1];
|
|
114
|
+
const isParentCompatible = lastSessionItem?.url && page.parent?.url && lastSessionItem.url === page.parent.url;
|
|
115
|
+
if (previousPage.length > 0 && isParentCompatible) {
|
|
116
|
+
return this.setBreadcrumbsFromArray([...previousPage, { title: page.title, url: page.url }]);
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
// Start with the current page
|
|
@@ -36,22 +36,24 @@ export class SallaCookiesBar {
|
|
|
36
36
|
* Accept cookies consent.
|
|
37
37
|
*/
|
|
38
38
|
async accept() {
|
|
39
|
-
Salla.storage.set('cookies-consent', 'accepted');
|
|
40
39
|
this.isVisible = false;
|
|
40
|
+
//We will call event first because we need to compare between old and new data inside session
|
|
41
41
|
Salla.event.emit('salla-cookies-bar::accepted');
|
|
42
|
+
Salla.storage.set('cookies-consent', 'accepted');
|
|
42
43
|
return this.host;
|
|
43
44
|
}
|
|
44
45
|
/**
|
|
45
46
|
* Reject cookies consent.
|
|
46
47
|
*/
|
|
47
48
|
async reject() {
|
|
48
|
-
Salla.storage.set('cookies-consent', 'rejected');
|
|
49
49
|
this.isVisible = false;
|
|
50
|
+
//We will call event first because we need to compare between old and new data inside session
|
|
50
51
|
Salla.event.emit('salla-cookies-bar::rejected');
|
|
52
|
+
Salla.storage.set('cookies-consent', 'rejected');
|
|
51
53
|
return this.host;
|
|
52
54
|
}
|
|
53
55
|
isRtl() {
|
|
54
|
-
return
|
|
56
|
+
return Salla.config.get('theme.is_rtl', true);
|
|
55
57
|
}
|
|
56
58
|
render() {
|
|
57
59
|
if (!this.isVisible) {
|