@salla.sa/twilight-components 2.14.387 → 2.14.388
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-DY8Bk_1p.js → filepond-JwtIy_PZ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DRBpp2WC.js → filepond-plugin-file-poster-HbVPHajC.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Ps1G9vOF.js → filepond-plugin-file-validate-size-BfnCLQbe.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-fVUTClJE.js → filepond-plugin-file-validate-type-ZlRC1VfY.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Bh4Pqw-q.js → filepond-plugin-image-edit-DiQE1wz9.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-D_Tfa9YD.js → filepond-plugin-image-exif-orientation-DIwNNDxM.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Bsg4ZULY.js → filepond-plugin-image-preview-C51b46QP.js} +1 -1
- package/dist/cjs/{index-DjO53bco.js → index-ByBROVOr.js} +1 -1
- package/dist/cjs/{index-B99uI20k.js → index-DO-q5keQ.js} +2 -2
- 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 +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-bullet-delivery.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +35 -21
- 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 +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 +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-DmWOIwng.js → vanilla-picker-DiJq-dd5.js} +1 -1
- package/dist/collection/components/salla-comments/salla-comments.js +34 -20
- package/dist/components/index.js +2 -2
- package/dist/components/salla-comments.js +34 -20
- package/dist/esm/{filepond-CqDfFTVp.js → filepond-CtRmlCu3.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-Bj5ejqRD.js → filepond-plugin-file-poster-CMkOcEkV.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CDa3pirY.js → filepond-plugin-file-validate-size-DzG8gDvA.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BHJfNcLt.js → filepond-plugin-file-validate-type-DSshuV-e.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CzuXmnyp.js → filepond-plugin-image-edit-soyMBqQc.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Bxdqligt.js → filepond-plugin-image-exif-orientation-Bt8OVYG8.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DRM_r5yF.js → filepond-plugin-image-preview-N0oEw9xZ.js} +1 -1
- package/dist/esm/{index-Dbv0I4re.js → index-CvIpy7Cj.js} +2 -2
- package/dist/esm/{index-nTW4l4L5.js → index-Cw-jhhOv.js} +1 -1
- 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 +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-bullet-delivery.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +35 -21
- 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 +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 +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-CYgHVJAF.js → vanilla-picker-CGGBRKTl.js} +1 -1
- package/dist/twilight/{p-f5465c7d.entry.js → p-02aa05b3.entry.js} +1 -1
- package/dist/twilight/{p-d3f4480c.entry.js → p-04072cae.entry.js} +1 -1
- package/dist/twilight/{p-b176814d.entry.js → p-06eb15e2.entry.js} +1 -1
- package/dist/twilight/{p-926bdbde.entry.js → p-073ee1c3.entry.js} +1 -1
- package/dist/twilight/p-189b3238.entry.js +4 -0
- package/dist/twilight/{p-940c57a3.entry.js → p-1b097cea.entry.js} +1 -1
- package/dist/twilight/{p-dbec33e9.entry.js → p-1cb9d96c.entry.js} +1 -1
- package/dist/twilight/{p-323012d3.entry.js → p-2200f944.entry.js} +1 -1
- package/dist/twilight/{p-ecdb3842.entry.js → p-221456be.entry.js} +1 -1
- package/dist/twilight/{p-99e87c67.entry.js → p-23099ba2.entry.js} +1 -1
- package/dist/twilight/{p-4aa4dcec.entry.js → p-242b6421.entry.js} +1 -1
- package/dist/twilight/{p-0da615ba.entry.js → p-249c9d98.entry.js} +1 -1
- package/dist/twilight/{p-f51c98c3.entry.js → p-2dfe2197.entry.js} +1 -1
- package/dist/twilight/{p-1e58ee3f.entry.js → p-300be242.entry.js} +1 -1
- package/dist/twilight/{p-d8093d37.entry.js → p-306c4986.entry.js} +1 -1
- package/dist/twilight/{p-a083cc65.entry.js → p-31458cbf.entry.js} +1 -1
- package/dist/twilight/{p-a1210656.entry.js → p-348106f0.entry.js} +1 -1
- package/dist/twilight/{p-f265dd49.entry.js → p-3589bed2.entry.js} +1 -1
- package/dist/twilight/{p-34a94492.entry.js → p-3c8e6e9f.entry.js} +1 -1
- package/dist/twilight/{p-a19637e3.entry.js → p-3c982608.entry.js} +1 -1
- package/dist/twilight/{p-ad66730c.entry.js → p-3d3b3856.entry.js} +1 -1
- package/dist/twilight/{p-5a936889.entry.js → p-402fc86d.entry.js} +1 -1
- package/dist/twilight/{p-6d7d53fa.entry.js → p-48c94220.entry.js} +1 -1
- package/dist/twilight/{p-2110682a.entry.js → p-49b7c969.entry.js} +1 -1
- package/dist/twilight/{p-ef9c28da.entry.js → p-4a4c1969.entry.js} +1 -1
- package/dist/twilight/{p-876ed9cf.entry.js → p-4c007dc0.entry.js} +1 -1
- package/dist/twilight/{p-1706c904.entry.js → p-4da987fc.entry.js} +1 -1
- package/dist/twilight/{p-969f4a67.entry.js → p-4fc10acd.entry.js} +1 -1
- package/dist/twilight/{p-224c2f65.entry.js → p-507fac68.entry.js} +1 -1
- package/dist/twilight/{p-c5a13ec9.entry.js → p-540297d6.entry.js} +1 -1
- package/dist/twilight/{p-e50916c1.entry.js → p-5638111c.entry.js} +1 -1
- package/dist/twilight/{p-31b1f09e.entry.js → p-59758658.entry.js} +1 -1
- package/dist/twilight/{p-1b4cb4f3.entry.js → p-5f52e482.entry.js} +1 -1
- package/dist/twilight/{p-05911caf.entry.js → p-6257e0cd.entry.js} +1 -1
- package/dist/twilight/{p-c944064d.entry.js → p-694aa670.entry.js} +1 -1
- package/dist/twilight/{p-7d932e81.entry.js → p-6ca09b34.entry.js} +1 -1
- package/dist/twilight/{p-aeaa9d52.entry.js → p-7020a339.entry.js} +1 -1
- package/dist/twilight/{p-595983cf.entry.js → p-73113e85.entry.js} +1 -1
- package/dist/twilight/{p-462c51a2.entry.js → p-7a87c0a9.entry.js} +1 -1
- package/dist/twilight/{p-3d1043b6.entry.js → p-7c8fe050.entry.js} +1 -1
- package/dist/twilight/{p-9770a33e.entry.js → p-8043f8ea.entry.js} +1 -1
- package/dist/twilight/{p-34ab1e5c.entry.js → p-8bd3ba9e.entry.js} +1 -1
- package/dist/twilight/{p-decce284.entry.js → p-93623f07.entry.js} +1 -1
- package/dist/twilight/{p-7a886993.entry.js → p-9f3f2ac3.entry.js} +1 -1
- package/dist/twilight/{p-Cp5Iu5XS.js → p-B1ZkITMY.js} +1 -1
- package/dist/twilight/{p-CWQNB-G4.js → p-BXOq5BwG.js} +1 -1
- package/dist/twilight/{p-jBYzSajd.js → p-BlMSs0A2.js} +1 -1
- package/dist/twilight/{p-Dbv0I4re.js → p-CvIpy7Cj.js} +1 -1
- package/dist/twilight/{p-Ct4jcDIY.js → p-D26J1_uI.js} +1 -1
- package/dist/twilight/{p-njEAbf-H.js → p-DWxyBEuT.js} +1 -1
- package/dist/twilight/{p-Dlb0Gd5v.js → p-NiLajaRX.js} +1 -1
- package/dist/twilight/{p-DjEHkwKr.js → p-VRwnn1Qc.js} +1 -1
- package/dist/twilight/{p-543bc44f.entry.js → p-a248f209.entry.js} +1 -1
- package/dist/twilight/{p-b951691e.entry.js → p-a2c5e7bc.entry.js} +1 -1
- package/dist/twilight/{p-08702001.entry.js → p-a41f0590.entry.js} +1 -1
- package/dist/twilight/{p-74a9e4dd.entry.js → p-a97f10a1.entry.js} +1 -1
- package/dist/twilight/{p-1881e1df.entry.js → p-aa5bf3b5.entry.js} +1 -1
- package/dist/twilight/{p-fdc30e0c.entry.js → p-b1e8296d.entry.js} +1 -1
- package/dist/twilight/{p-8a8cc10a.entry.js → p-b2537237.entry.js} +1 -1
- package/dist/twilight/{p-1ab7646d.entry.js → p-b4f431bf.entry.js} +1 -1
- package/dist/twilight/{p-258e8407.entry.js → p-bc65bb02.entry.js} +1 -1
- package/dist/twilight/{p-8b19cac5.entry.js → p-be1c54e6.entry.js} +1 -1
- package/dist/twilight/{p-4bc9bc63.entry.js → p-c43be30b.entry.js} +1 -1
- package/dist/twilight/{p-e2d073fb.entry.js → p-ce560f66.entry.js} +1 -1
- package/dist/twilight/{p-08d98540.entry.js → p-d00fc4bf.entry.js} +1 -1
- package/dist/twilight/{p-cdd125b8.entry.js → p-d07f5e44.entry.js} +1 -1
- package/dist/twilight/{p-f5bf4c88.entry.js → p-d215b7d2.entry.js} +1 -1
- package/dist/twilight/{p-416b578d.entry.js → p-d4b83f2a.entry.js} +1 -1
- package/dist/twilight/{p-814a00c6.entry.js → p-da155135.entry.js} +1 -1
- package/dist/twilight/{p-9722f5ed.entry.js → p-e0b13c19.entry.js} +1 -1
- package/dist/twilight/{p-0c31270e.entry.js → p-e3b4a179.entry.js} +1 -1
- package/dist/twilight/{p-2d089b2b.entry.js → p-e46cb169.entry.js} +1 -1
- package/dist/twilight/{p-c27bfa01.entry.js → p-e79ad638.entry.js} +1 -1
- package/dist/twilight/{p-58d796a0.entry.js → p-e9be8c03.entry.js} +1 -1
- package/dist/twilight/{p-8465d71e.entry.js → p-ed08f5e5.entry.js} +1 -1
- package/dist/twilight/{p-07cdbd6f.entry.js → p-f7f592ab.entry.js} +1 -1
- package/dist/twilight/{p-a28f7329.entry.js → p-f81195ae.entry.js} +1 -1
- package/dist/twilight/{p-CQc5Pmlu.js → p-uADDAGsE.js} +1 -1
- package/dist/twilight/{p-DL3ab5Vo.js → p-wnPgaQoR.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-comments/salla-comments.d.ts +2 -0
- package/package.json +5 -5
- package/dist/twilight/p-8e120858.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-DO-q5keQ.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-DO-q5keQ.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-CU4Xuiki.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DO-q5keQ.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%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DO-q5keQ.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-DO-q5keQ.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
|
@@ -24,6 +24,7 @@ export class SallaComments {
|
|
|
24
24
|
* Determines if the comments are testimonials
|
|
25
25
|
*/
|
|
26
26
|
this.testimonials = false;
|
|
27
|
+
this.customerId = null;
|
|
27
28
|
// Translations
|
|
28
29
|
this.noComments = salla.lang.get('blocks.comments.no_comments');
|
|
29
30
|
this.comment_title = salla.lang.get('blocks.comments.title');
|
|
@@ -89,6 +90,32 @@ export class SallaComments {
|
|
|
89
90
|
})();
|
|
90
91
|
Salla.infiniteScroll.errorWrapped = true;
|
|
91
92
|
}
|
|
93
|
+
// Preserve sort and private_comments params in next page URL for infinite scroll
|
|
94
|
+
patchNextPageUrl() {
|
|
95
|
+
if (!this.nextPage)
|
|
96
|
+
return;
|
|
97
|
+
try {
|
|
98
|
+
const url = new URL(this.nextPage, window.location.origin);
|
|
99
|
+
if (this.sort && !url.searchParams.get('sort')) {
|
|
100
|
+
url.searchParams.set('sort', this.sort);
|
|
101
|
+
}
|
|
102
|
+
if (this.customerId && !url.searchParams.get('private_comments')) {
|
|
103
|
+
url.searchParams.set('private_comments', this.customerId);
|
|
104
|
+
}
|
|
105
|
+
this.nextPage = url.toString();
|
|
106
|
+
}
|
|
107
|
+
catch (_e) {
|
|
108
|
+
// fallback for relative next links
|
|
109
|
+
const hasQuery = this.nextPage.includes('?');
|
|
110
|
+
if (this.sort && !/[?&]sort=/.test(this.nextPage)) {
|
|
111
|
+
this.nextPage = this.nextPage + (hasQuery ? '&' : '?') + `sort=${this.sort}`;
|
|
112
|
+
}
|
|
113
|
+
if (this.customerId && !/[?&]private_comments=/.test(this.nextPage)) {
|
|
114
|
+
const sep = this.nextPage.includes('?') ? '&' : '?';
|
|
115
|
+
this.nextPage = this.nextPage + sep + `private_comments=${this.customerId}`;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
92
119
|
// Initiate infinite scroll
|
|
93
120
|
initiateInfiniteScroll() {
|
|
94
121
|
if (!this.wrapper) {
|
|
@@ -108,6 +135,7 @@ export class SallaComments {
|
|
|
108
135
|
this.infiniteScroll?.on('load', response => {
|
|
109
136
|
this.pagination = response.pagination;
|
|
110
137
|
this.nextPage = typeof response.pagination.links === 'object' && !!response.pagination.links.next ? response.pagination.links.next : null;
|
|
138
|
+
this.patchNextPageUrl();
|
|
111
139
|
for (const card of this.handleResponse(response)) {
|
|
112
140
|
this.wrapper.append(card);
|
|
113
141
|
}
|
|
@@ -195,8 +223,11 @@ export class SallaComments {
|
|
|
195
223
|
resp = await salla.api.request('reviews', { params }, 'get');
|
|
196
224
|
}
|
|
197
225
|
else {
|
|
198
|
-
|
|
199
|
-
|
|
226
|
+
const showPrivateComments = searchParams.get('private_comments');
|
|
227
|
+
this.customerId = (showPrivateComments && Salla.config.get('user.type') === 'user' && Salla.config.get('user.id'))
|
|
228
|
+
? Salla.config.get('user.id')
|
|
229
|
+
: null;
|
|
230
|
+
resp = await salla.api.comment.getComments(this.type, this.itemId, 1, 5, this.sort, this.customerId);
|
|
200
231
|
}
|
|
201
232
|
if (!resp.data || !resp.data.length) {
|
|
202
233
|
this.showPlaceholder = false;
|
|
@@ -210,24 +241,7 @@ export class SallaComments {
|
|
|
210
241
|
this.pagination = resp.pagination;
|
|
211
242
|
this.total = resp.pagination.total;
|
|
212
243
|
this.nextPage = typeof resp.pagination.links === 'object' && !!resp.pagination.links.next ? resp.pagination.links.next : null;
|
|
213
|
-
|
|
214
|
-
if (this.nextPage && this.sort) {
|
|
215
|
-
try {
|
|
216
|
-
const url = new URL(this.nextPage, window.location.origin);
|
|
217
|
-
if (!url.searchParams.get('sort')) {
|
|
218
|
-
url.searchParams.set('sort', this.sort);
|
|
219
|
-
this.nextPage = url.toString();
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
catch (_e) {
|
|
223
|
-
// fallback for relative next links
|
|
224
|
-
const hasQuery = this.nextPage.includes('?');
|
|
225
|
-
const hasSort = /[?&]sort=/.test(this.nextPage);
|
|
226
|
-
if (!hasSort) {
|
|
227
|
-
this.nextPage = this.nextPage + (hasQuery ? '&' : '?') + `sort=${this.sort}`;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
244
|
+
this.patchNextPageUrl();
|
|
231
245
|
setTimeout(() => {
|
|
232
246
|
for (const card of this.handleResponse(resp)) {
|
|
233
247
|
this.wrapper.append(card);
|