@salla.sa/twilight-components 2.14.433 → 2.14.435
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-m9UIfD4r.js → filepond-DuWiTiOJ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CCNucuJo.js → filepond-plugin-file-poster-Brwk-SiH.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-c8aiCeyd.js → filepond-plugin-file-validate-size-B_GcpzZ9.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DKXNy-pI.js → filepond-plugin-file-validate-type-uGHJ-vuD.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BeXjDMoa.js → filepond-plugin-image-edit-6dBX6WZW.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BeoKq6Qa.js → filepond-plugin-image-exif-orientation-BXykXXIF.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DNGNnW2v.js → filepond-plugin-image-preview-B7D0-pf6.js} +1 -1
- package/dist/cjs/{functions-B5wriSSk.js → functions-DzE2MNJ6.js} +1 -1
- package/dist/cjs/{index-ouHUBEmn.js → index-BFWYhkR9.js} +6 -2
- package/dist/cjs/{index-DRte8uD2.js → index-BrNX9-Hh.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
- 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-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
- 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-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
- 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.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.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-fulfillment-methods.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 +40 -4
- 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-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.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 +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- 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-map.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-next-order-coupon.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-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.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-card-embed.cjs.entry.js +75 -0
- package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +28 -21
- 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-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- 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-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 +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/{tracked-promise-CBS0Jv4T.js → tracked-promise-BhvuWmRX.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-B4KqFjgH.js → vanilla-picker-CPWEN69b.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-installment/salla-installment.css +18 -0
- package/dist/collection/components/salla-installment/salla-installment.js +39 -2
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +0 -0
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +126 -0
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-products-list/salla-products-list.js +27 -20
- 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 +5 -5
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- 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-installment.js +40 -3
- package/dist/components/salla-product-card-embed.d.ts +11 -0
- package/dist/components/salla-product-card-embed.js +97 -0
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-products-list2.js +27 -20
- package/dist/components/salla-quantity-input2.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 +5 -5
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- 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-CKWIup4S.js → filepond-DFVrhE4o.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-Bh-xu68e.js → filepond-plugin-file-poster-D9r1Tfdq.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-D49X-Kke.js → filepond-plugin-file-validate-size-B-d8cjG6.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CdrHe--C.js → filepond-plugin-file-validate-type-n8HaoHkb.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CJW0RVuR.js → filepond-plugin-image-edit-Cb0b-MEZ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DLAbuFUC.js → filepond-plugin-image-exif-orientation-E6kA4Ohn.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CgwlEcnw.js → filepond-plugin-image-preview-TkaxSa_F.js} +1 -1
- package/dist/esm/{functions-DEq2D5r8.js → functions-DzwMFUQV.js} +1 -1
- package/dist/esm/{index-BAMBfQio.js → index-B-ZrPbJR.js} +1 -1
- package/dist/esm/{index-lMbG1CIQ.js → index-C3g9jJZW.js} +6 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +2 -2
- 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-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +12 -12
- package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
- 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-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +4 -4
- 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.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.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-fulfillment-methods.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 +40 -4
- 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-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map.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-next-order-coupon.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-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.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-card-embed.entry.js +73 -0
- package/dist/esm/salla-product-card_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +28 -21
- 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-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-Cuxl89VM.js → tracked-promise-mz9fGy13.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker--tIjHzZT.js → vanilla-picker-DDwa46yX.js} +1 -1
- package/dist/twilight/{p-ad4003fd.entry.js → p-061d4c55.entry.js} +1 -1
- package/dist/twilight/{p-f424854a.entry.js → p-08a99ef3.entry.js} +1 -1
- package/dist/twilight/{p-484c2f42.entry.js → p-0a8ed39c.entry.js} +1 -1
- package/dist/twilight/{p-7e74750a.entry.js → p-10799a52.entry.js} +1 -1
- package/dist/twilight/{p-579e1d3f.entry.js → p-10efdf23.entry.js} +1 -1
- package/dist/twilight/{p-793b143f.entry.js → p-139679c2.entry.js} +1 -1
- package/dist/twilight/{p-28701b83.entry.js → p-170636ed.entry.js} +1 -1
- package/dist/twilight/{p-55801b41.entry.js → p-18eed355.entry.js} +1 -1
- package/dist/twilight/{p-63b2e9e4.entry.js → p-1f2b3d13.entry.js} +1 -1
- package/dist/twilight/{p-0a1966cf.entry.js → p-2908d91d.entry.js} +1 -1
- package/dist/twilight/{p-b5658790.entry.js → p-29110454.entry.js} +1 -1
- package/dist/twilight/{p-ba06196b.entry.js → p-2d57223d.entry.js} +1 -1
- package/dist/twilight/{p-d1b2c259.entry.js → p-346afa28.entry.js} +1 -1
- package/dist/twilight/{p-18dbc68c.entry.js → p-36e5a9a2.entry.js} +1 -1
- package/dist/twilight/{p-c8a460c0.entry.js → p-38c300df.entry.js} +1 -1
- package/dist/twilight/{p-999d8514.entry.js → p-39b422da.entry.js} +1 -1
- package/dist/twilight/{p-7906db6c.entry.js → p-3ac6bf7c.entry.js} +1 -1
- package/dist/twilight/{p-6db2ed2d.entry.js → p-4293a6a7.entry.js} +1 -1
- package/dist/twilight/{p-d5ae1bd3.entry.js → p-42e3b99b.entry.js} +1 -1
- package/dist/twilight/{p-25d4c3e7.entry.js → p-4586ff15.entry.js} +1 -1
- package/dist/twilight/{p-5b0ccf4b.entry.js → p-46a22eec.entry.js} +1 -1
- package/dist/twilight/{p-781b8258.entry.js → p-479ef439.entry.js} +1 -1
- package/dist/twilight/{p-f3597f21.entry.js → p-4c655f32.entry.js} +1 -1
- package/dist/twilight/{p-87fc46f3.entry.js → p-4ce7420a.entry.js} +1 -1
- package/dist/twilight/{p-e9799703.entry.js → p-4e0bcbc4.entry.js} +1 -1
- package/dist/twilight/{p-9561c440.entry.js → p-4f55b4cf.entry.js} +1 -1
- package/dist/twilight/{p-b4b03890.entry.js → p-5709425e.entry.js} +1 -1
- package/dist/twilight/{p-30ca11a7.entry.js → p-5710d809.entry.js} +1 -1
- package/dist/twilight/{p-ade89f79.entry.js → p-573dff60.entry.js} +1 -1
- package/dist/twilight/{p-deaa32fd.entry.js → p-5813d16e.entry.js} +1 -1
- package/dist/twilight/{p-139d18e4.entry.js → p-581532e2.entry.js} +1 -1
- package/dist/twilight/{p-0f712ca6.entry.js → p-5bb3911e.entry.js} +1 -1
- package/dist/twilight/{p-b9793df6.entry.js → p-6dadc4cd.entry.js} +1 -1
- package/dist/twilight/{p-58a182ef.entry.js → p-6e130ccd.entry.js} +1 -1
- package/dist/twilight/{p-1ced495f.entry.js → p-730c61f3.entry.js} +1 -1
- package/dist/twilight/{p-8b19a6cd.entry.js → p-795d48a0.entry.js} +1 -1
- package/dist/twilight/{p-83407903.entry.js → p-79b81b73.entry.js} +1 -1
- package/dist/twilight/{p-00142abc.entry.js → p-81b8c52a.entry.js} +1 -1
- package/dist/twilight/{p-22dd6342.entry.js → p-824f4a2e.entry.js} +1 -1
- package/dist/twilight/{p-5dc05ab0.entry.js → p-8351d792.entry.js} +1 -1
- package/dist/twilight/{p-05a6fc4e.entry.js → p-8ed7f0a4.entry.js} +1 -1
- package/dist/twilight/{p-0f19a6eb.entry.js → p-92eeb8ce.entry.js} +1 -1
- package/dist/twilight/{p-ae107cb6.entry.js → p-9302a5f4.entry.js} +1 -1
- package/dist/twilight/{p-646309b3.entry.js → p-93f98a1a.entry.js} +1 -1
- package/dist/twilight/{p-9baa8e69.entry.js → p-9506dd2e.entry.js} +1 -1
- package/dist/twilight/{p-ce844f61.entry.js → p-967138b5.entry.js} +1 -1
- package/dist/twilight/{p-434232b8.entry.js → p-9be4c43f.entry.js} +1 -1
- package/dist/twilight/{p-c9dc08e9.entry.js → p-9e96ec69.entry.js} +1 -1
- package/dist/twilight/{p-AO-xClM5.js → p-BK7Y-4Ut.js} +1 -1
- package/dist/twilight/{p-YBYQ1IRq.js → p-ByhVeLG_.js} +1 -1
- package/dist/twilight/{p-lMbG1CIQ.js → p-C3g9jJZW.js} +1 -1
- package/dist/twilight/{p-akcJQPrL.js → p-D9oUZeJe.js} +1 -1
- package/dist/twilight/{p-BbPW5sNk.js → p-DBL-q92C.js} +1 -1
- package/dist/twilight/{p-C7BsTxLN.js → p-DC_A6MyR.js} +1 -1
- package/dist/twilight/{p-DkFvXnTU.js → p-DGZdQMHp.js} +1 -1
- package/dist/twilight/{p-DTVc8PSy.js → p-DWRFx4Y0.js} +1 -1
- package/dist/twilight/{p-CZ4us-OW.js → p-DvPh-zIV.js} +1 -1
- package/dist/twilight/{p-77d6879d.entry.js → p-a0a96832.entry.js} +1 -1
- package/dist/twilight/{p-cbbbf280.entry.js → p-a1720cd5.entry.js} +1 -1
- package/dist/twilight/{p-602eb37d.entry.js → p-a3506023.entry.js} +1 -1
- package/dist/twilight/{p-9029fe2f.entry.js → p-a43fd33c.entry.js} +1 -1
- package/dist/twilight/{p-e0fa2bc5.entry.js → p-a5c40cbd.entry.js} +1 -1
- package/dist/twilight/{p-jvvBvp8R.js → p-aOz-JkWm.js} +1 -1
- package/dist/twilight/{p-477d3cde.entry.js → p-abd68a78.entry.js} +1 -1
- package/dist/twilight/{p-98409d9d.entry.js → p-aeb7c33a.entry.js} +1 -1
- package/dist/twilight/p-b3253253.entry.js +4 -0
- package/dist/twilight/{p-2caab1dd.entry.js → p-b6cbff7d.entry.js} +1 -1
- package/dist/twilight/{p-f5f8ab50.entry.js → p-b7cf3969.entry.js} +1 -1
- package/dist/twilight/{p-5309c2b6.entry.js → p-b8fea878.entry.js} +1 -1
- package/dist/twilight/p-baf3df7d.entry.js +4 -0
- package/dist/twilight/{p-9b4b6171.entry.js → p-bb3c2dba.entry.js} +1 -1
- package/dist/twilight/{p-46c69187.entry.js → p-bb94f865.entry.js} +1 -1
- package/dist/twilight/{p-64364d27.entry.js → p-cc40335b.entry.js} +1 -1
- package/dist/twilight/{p-6c4b0954.entry.js → p-cec952b1.entry.js} +1 -1
- package/dist/twilight/{p-6a6cc844.entry.js → p-cfc52cde.entry.js} +1 -1
- package/dist/twilight/{p-42868687.entry.js → p-d2240c2a.entry.js} +1 -1
- package/dist/twilight/{p-e5535ac3.entry.js → p-d2b9a251.entry.js} +1 -1
- package/dist/twilight/{p-fc2d0c94.entry.js → p-d4437a13.entry.js} +1 -1
- package/dist/twilight/{p-0bf5b2a3.entry.js → p-d4a1fa67.entry.js} +1 -1
- package/dist/twilight/{p-da6e4d60.entry.js → p-d7e7f3d6.entry.js} +1 -1
- package/dist/twilight/{p-3c2c9e2b.entry.js → p-d86daca1.entry.js} +1 -1
- package/dist/twilight/{p-d2edf700.entry.js → p-d90b4fb4.entry.js} +1 -1
- package/dist/twilight/{p-2e11b913.entry.js → p-d94caac7.entry.js} +1 -1
- package/dist/twilight/{p-75cd1309.entry.js → p-d9a2d4c7.entry.js} +1 -1
- package/dist/twilight/{p-d72d82c2.entry.js → p-e2759da3.entry.js} +1 -1
- package/dist/twilight/{p-ea4cf5c5.entry.js → p-e5964d35.entry.js} +1 -1
- package/dist/twilight/{p-cc9e266a.entry.js → p-e5dffa93.entry.js} +1 -1
- package/dist/twilight/{p-7a067b88.entry.js → p-ea9b9e70.entry.js} +1 -1
- package/dist/twilight/p-ed239a3e.entry.js +4 -0
- package/dist/twilight/{p-ab717a96.entry.js → p-f289e0f9.entry.js} +1 -1
- package/dist/twilight/p-f321e33b.entry.js +4 -0
- package/dist/twilight/{p-99cde2bd.entry.js → p-f4d06230.entry.js} +1 -1
- package/dist/twilight/{p-25c7c765.entry.js → p-f86b8d22.entry.js} +1 -1
- package/dist/twilight/{p-7060ae7d.entry.js → p-fb4756f1.entry.js} +1 -1
- package/dist/twilight/{p-e3b11077.entry.js → p-fb64894c.entry.js} +1 -1
- package/dist/twilight/{p-6fe6361d.entry.js → p-fbd79909.entry.js} +1 -1
- package/dist/twilight/{p-BxVFPdKb.js → p-iVJ0G_Ir.js} +1 -1
- package/dist/twilight/{p-C0kfWMMc.js → p-sKz2QgaG.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-installment/salla-installment.d.ts +7 -0
- package/dist/types/components/salla-product-card-embed/salla-product-card-embed.d.ts +16 -0
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +5 -0
- package/dist/types/components.d.ts +29 -0
- package/package.json +5 -5
- package/dist/twilight/p-29b528fe.entry.js +0 -4
- package/dist/twilight/p-386d36ff.entry.js +0 -4
- package/dist/twilight/p-76147eb1.entry.js +0 -4
|
@@ -422,6 +422,13 @@ export class SallaProductsList {
|
|
|
422
422
|
getSource() {
|
|
423
423
|
return Helper.getProductsSource(this.source);
|
|
424
424
|
}
|
|
425
|
+
/**
|
|
426
|
+
* Partial product strips (mega menu, offers drawer, related products, JSON payload, …)
|
|
427
|
+
* must not set `response.title` — only the main catalog grid should update the listing title.
|
|
428
|
+
*/
|
|
429
|
+
isAuxiliaryProductsListSource() {
|
|
430
|
+
return ['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource());
|
|
431
|
+
}
|
|
425
432
|
getSourceValue() {
|
|
426
433
|
return this.currentCategoryIdFilter ? this.currentCategoryIdFilter : Helper.getProductsSourceValue(this.source, this.sourceValue);
|
|
427
434
|
}
|
|
@@ -637,7 +644,7 @@ export class SallaProductsList {
|
|
|
637
644
|
.then(async () => {
|
|
638
645
|
this.hasCustomComponent = !!customElements.get(this.productCardComponent);
|
|
639
646
|
this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
|
|
640
|
-
this.hasInfiniteScroll = !
|
|
647
|
+
this.hasInfiniteScroll = !this.isAuxiliaryProductsListSource() && !this.limit;
|
|
641
648
|
let searchParams = new URLSearchParams(window.location.search);
|
|
642
649
|
try {
|
|
643
650
|
this.sortBy = this.sortBy || searchParams.get('sort') || searchParams.get('by');
|
|
@@ -754,28 +761,28 @@ export class SallaProductsList {
|
|
|
754
761
|
return [];
|
|
755
762
|
}
|
|
756
763
|
let source = this.getSource();
|
|
757
|
-
let title = '';
|
|
758
|
-
//help the developer to know the current page title
|
|
759
764
|
if (response.cursor?.current === 1) {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
765
|
+
if (!this.isAuxiliaryProductsListSource()) {
|
|
766
|
+
let title = Helper.getPageTitleForSource(source);
|
|
767
|
+
try {
|
|
768
|
+
if (this.getSource() === 'search') {
|
|
769
|
+
title = salla.lang.get('common.elements.search_about', { 'word': this.getSourceValue() });
|
|
770
|
+
}
|
|
771
|
+
else if (!title) {
|
|
772
|
+
let catId = this.parsedFilters.category_id || this.getSourceValue()[0];
|
|
773
|
+
// get the first filter that its key is category_id, then get the value when filter.value.*.key==catId
|
|
774
|
+
title = response.filters?.find(filter => filter.key === 'category_id')?.values?.find(cat => cat.key === catId)?.value ?? '';
|
|
775
|
+
this.filtersSnapshot = response.filters;
|
|
776
|
+
}
|
|
777
|
+
title += (title ? ' - ' : '') + salla.lang.choice('blocks.header.products_count', response.data?.length);
|
|
778
|
+
if (response.data.length === 15) {
|
|
779
|
+
title = title.replace(response.data.length, salla.lang.get('common.elements.more_than') + ' ' + response.data.length);
|
|
780
|
+
}
|
|
781
|
+
response.title = title;
|
|
770
782
|
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
title = title.replace(response.data.length, salla.lang.get('common.elements.more_than') + ' ' + response.data.length);
|
|
783
|
+
catch (e) {
|
|
784
|
+
salla.logger.error('Error::falid to handle response', e);
|
|
774
785
|
}
|
|
775
|
-
response.title = title;
|
|
776
|
-
}
|
|
777
|
-
catch (e) {
|
|
778
|
-
salla.logger.error('Error::falid to handle response', e);
|
|
779
786
|
}
|
|
780
787
|
//inject the SEO schema
|
|
781
788
|
//handleResponse works only on the infinite-scroll and infinite scroll works only on the categories pages and main latest-page ..etc, so no need to add condition
|
|
@@ -91,7 +91,7 @@ export class SallaQuantityInput {
|
|
|
91
91
|
if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
|
|
92
92
|
inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
|
|
93
93
|
}
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '77565ee635cdda42e956be4fea503905fe4bf199', class: "s-quantity-input" }, h("div", { key: 'f8aa9fb2200032d503cdfc65a65bc2bf94e00eb8', class: "s-quantity-input-container" }, h("button", { key: '1711c74ee9b8f212c2651f9c3a2f3e6737fbe8f4', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: '65803c2b491b5dbb1ae79787eec6151f742b517f', name: "increment-button" })), h("input", { key: '1b16e0e0603d91b3a12c968a98575f4146f2d7b6', class: "s-quantity-input-input", ...inputAttributes, ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), inputMode: "numeric", pattern: "[0-9]*", min: "1", readOnly: this.disableInput, value: this.quantity }), h("button", { key: 'ad33507fa617ddb6ebeee842c5f1f0b3595a475b', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '341b8e5d941e63c13c78061d24ecd2ba64d9a7a1', name: "decrement-button" })))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "salla-quantity-input"; }
|
|
97
97
|
static get originalStyleUrls() {
|
|
@@ -205,7 +205,7 @@ export class SallaQuickBuy {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return h(Host, { key: '
|
|
208
|
+
return h(Host, { key: '76958d08c18982d3f643c65ac1f6119830414d5d' }, this.quickBuyButton());
|
|
209
209
|
}
|
|
210
210
|
quickBuyButton() {
|
|
211
211
|
return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
|
@@ -158,7 +158,7 @@ export class SallaReviewCard {
|
|
|
158
158
|
return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return h("div", { key: '
|
|
161
|
+
return h("div", { key: 'e5a7774e29dff0fd1ce5ce1e8ca01ee2367f5078', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: '69c22179536a152eddb72a4790f8bd20c9b6b886', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '28e980d499e7078006486e94f5e87f5b71790400', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "salla-review-card"; }
|
|
164
164
|
static get originalStyleUrls() {
|
|
@@ -85,7 +85,7 @@ export class SallaReviews {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h("div", { key: '
|
|
88
|
+
return (h("div", { key: 'd527bf318afcd25134abc80d1c402b19113040da', class: "s-reviews-container" }, h("div", { key: '89236aef8cbfcc26c7cb3df6f6b905c0b3047236', class: "s-reviews-header-wrapper" }, h("h1", { key: '3c9068fd0a7c91fb661fc08e50f552b1f6962f3f', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: '298151de4f6ce169dd9f5d2092c1895dfa4dc264', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: 'a8cf3322655adb74a6a7b30d2d7e2e80d6eb2b55', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "salla-reviews"; }
|
|
91
91
|
static get originalStyleUrls() {
|
|
@@ -142,7 +142,7 @@ export class SallaReviewsPage {
|
|
|
142
142
|
return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h("host", { key: '
|
|
145
|
+
return (h("host", { key: '80224727f57c3075fab3814bc31ad69e13bebd5e' }, h("div", { key: 'b014fad2937c226921ffafd4504cfab975ea9a39', class: "s-reviews-page-header-wrapper" }, h("h2", { key: 'bf6ae4aa8c922fda85176708b5f4669c10bf6c08', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: '63c6fde2d510cbc49a435ad8d91bc15c4323fa1d', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '3ecb8d184bb112b2961aedf7500f29d53c6bc516', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '6a0ff38fe00c276c4e90233dab20bf2c4d561e82', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: 'b0f3528c27cf620fbde83293f2c48dccb51590ea', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
|
|
146
146
|
this.wrapper = el;
|
|
147
147
|
} }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
|
|
148
148
|
: h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
|
|
@@ -146,7 +146,7 @@ export class SallaScopees {
|
|
|
146
146
|
return salla.onReady();
|
|
147
147
|
}
|
|
148
148
|
render() {
|
|
149
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: '18d5a944f5034e2079c30b6595b3c7969b92f939' }, h("salla-modal", { key: 'a254d29b1a9cb363ba72417e234af5d81e9f2b8c', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
|
|
150
150
|
h("div", { slot: "loading" }, h("div", { class: "s-scopes-skeleton" }, h("salla-list-tile", { class: "s-scopes-header" }, h("div", { slot: "icon", class: "s-scopes-header-icon" }, h("salla-skeleton", { type: "circle" })), h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-scopes-skeleton-search" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '30px', width: '100%' })), h("div", { class: "s-scopes-skeleton-scopes" }, h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-scopes-skeleton-btn" }, h("salla-skeleton", { height: '40px', width: '100%' }))))
|
|
151
151
|
:
|
|
152
152
|
[h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
|
|
@@ -127,10 +127,10 @@ export class SallaSearch {
|
|
|
127
127
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
const searchContent = (h("div", { key: '
|
|
130
|
+
const searchContent = (h("div", { key: 'd152ce7b41f44975724214a4957b366a3d372efe', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '19c13742ed6b78300da453503c01052cc56e6224', class: "s-search-input-wrapper" }, h("span", { key: '65b092ca1797d23fca0370578c3780bb553bbc2e', class: "s-search-icon-wrap" }, h("span", { key: '14caaa450614f8dd99b05edd447184ab79cd94f2', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '4656f0002ff24e9948c5799d5bbed20e59eee2e9', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
|
|
131
131
|
height: this.height + 'px',
|
|
132
132
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
133
|
-
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '
|
|
133
|
+
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: 'ca998ee139b31b0284ae72ccd1f9466f697feb6a', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
|
|
134
134
|
's-search-product': true,
|
|
135
135
|
's-search-product-not-available': !product.is_available,
|
|
136
136
|
}, innerHTML: this.productSlot
|
|
@@ -139,9 +139,9 @@ export class SallaSearch {
|
|
|
139
139
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
140
140
|
? salla.money(product.regular_price)
|
|
141
141
|
: '')
|
|
142
|
-
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: '
|
|
143
|
-
const modalContent = (h("salla-modal", { key: '
|
|
144
|
-
const placeholderContent = (h("div", { key: '
|
|
142
|
+
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'c8f2750a602097c96b1424acc35d2a190f86bf5d', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
|
|
143
|
+
const modalContent = (h("salla-modal", { key: '2656ec22b40c5d69c9ce9887ff683d119ef826e2', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
|
|
144
|
+
const placeholderContent = (h("div", { key: '8f771fddec5620cbfc8259a6d94e955db0f5e787', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: 'a6ac18f63248ae303d05f8ed62f0dadfded33fad', class: "s-search-input-wrapper" }, h("span", { key: '5996163e3314b9c9240018e438f121d553e58e0f', class: "s-search-icon-wrap" }, h("span", { key: '581c625690b9fc000108bc5ba642f3a3452f67c8', class: "s-search-icon", innerHTML: Search })), h("button", { key: '8f7edf24f999f3c5a37cca2c82c664822e729088', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
|
|
145
145
|
height: this.height + 'px',
|
|
146
146
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
147
147
|
} }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
|
|
@@ -172,18 +172,18 @@ export class SallaSearchableDropdown {
|
|
|
172
172
|
render() {
|
|
173
173
|
const hasSelection = this.selectedItem != null;
|
|
174
174
|
const listboxId = `${this.inputId}-listbox`;
|
|
175
|
-
return (h(Host, { key: '
|
|
175
|
+
return (h(Host, { key: '3545a75c07ae7c2a2c82ee54fa710f6f5d8bcfce', class: "s-searchable-dropdown" }, h("div", { key: '022fb98602228c5837cadb758f24f00956fafc22', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '24e09036df24d45ce74799ec06b20b03df866866', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '94277d1659f2b22c96de02a77a37920eefff13ef', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: '077e0662f0570c1bf9339577e7699d75f9b337de', class: {
|
|
176
176
|
's-searchable-dropdown-trigger': true,
|
|
177
177
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
178
178
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
179
|
-
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '
|
|
179
|
+
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '134a95003036f1c8a7df91a06542178e6ec12c04', class: {
|
|
180
180
|
'sicon-keyboard_arrow_down': true,
|
|
181
181
|
's-searchable-dropdown-trigger-icon': true,
|
|
182
182
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
183
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
183
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: 'be6eb6c94d4b73c27959722ccb4bc87722035d1c', class: {
|
|
184
184
|
's-searchable-dropdown-panel': true,
|
|
185
185
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
186
|
-
}, ref: (el) => (this.panelRef = el) }, h("div", { key: '
|
|
186
|
+
}, ref: (el) => (this.panelRef = el) }, h("div", { key: 'd97ce90a0fd26043a45c1a45616f8fde621e8ac5', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: 'c7683e2dd873306e18afea983bb410827d883796', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '64c4259b6c5453a9b1cb5985c58c65dd01ec139f', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId })), h("div", { key: '9748f507fcb884b520ffc847800cc3543546b8ce', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
187
187
|
}
|
|
188
188
|
renderListContent() {
|
|
189
189
|
if (this.searching || this.loading) {
|
|
@@ -22,7 +22,7 @@ export class SallaSkeleton {
|
|
|
22
22
|
's-skeleton-item': true,
|
|
23
23
|
's-skeleton-item-circular': this.type == 'circle',
|
|
24
24
|
};
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'bbd3b59181da4c7c97a2fbf862eedebbedbe0634', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '137814e704aabda9931441f744bac595dd506d0e', class: classes }, "\u00A0")));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "salla-skeleton"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -31,7 +31,7 @@ export class SallaSocial {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const linksArray = this.getLinksArray();
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'a4c05f6fcf54b6d34c547d7b27a61d4afbd91f10' }, h("ul", { key: 'ab690b3eba0190d6830a5988510c404dafa4e450', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
35
35
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
36
36
|
.replace(/\{type\}/g, link.type)
|
|
37
37
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -122,7 +122,7 @@ export class SallaSocialShare {
|
|
|
122
122
|
window.a2a?.init('page');
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
|
-
return (h("div", { key: '
|
|
125
|
+
return (h("div", { key: '006a40f33ae7513a265f6f3f04425e68a1193cdb', class: "s-social-share-wrapper" }, h("slot", { key: 'e089609f48cd6c231e17488bdd89e78f76b0df78', name: 'widget' }, h("salla-button", { key: '788679ca99d366efbc37faac11332e554a2a7bde', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '97f86e7e8d22f05c13db6cb0dfdf51e18bc3c814', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: '8b13d93d51ba38ff1a3794646d9f68b10c6500ff', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
|
|
126
126
|
return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
127
127
|
if (icon.name === platform) {
|
|
128
128
|
return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -30,7 +30,7 @@ export class SallaTabContent {
|
|
|
30
30
|
's-tabs-content': true,
|
|
31
31
|
's-tabs-content-selected': this.isSelected
|
|
32
32
|
};
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: '59729323fd707b74b2b1fd8707fcb122ee21ed9f', class: classes }, h("slot", { key: 'a273156c8bbb3dbf25dc2e556d060c4402a8a394' })));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "salla-tab-content"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -52,7 +52,7 @@ export class SallaTabHeader {
|
|
|
52
52
|
's-tabs-active': this.isSelected,
|
|
53
53
|
};
|
|
54
54
|
return [
|
|
55
|
-
h("div", { key: '
|
|
55
|
+
h("div", { key: 'cdeff834ff1a1e4a5cd19c52e5c36bcc51491064', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '5aeedafb3c074f588cd2a343fe48fc5b8807821d' })),
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "salla-tab-header"; }
|
|
@@ -50,7 +50,7 @@ export class SallaTabs {
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
return [
|
|
53
|
-
h("div", { key: '
|
|
53
|
+
h("div", { key: '1d2c28a8025c9c9c1d988dbded489263794cb92e', class: "s-tabs" }, h("div", { key: '54f011017f5378e7053b4f3a135d6a050e08479c', class: "s-tabs-header" }, h("slot", { key: 'efd25fb8dd73b9296015be1e224b84fc53ab9082', name: "header" })), h("div", { key: 'f80582281746ae231092360e26d65331cc98f480', class: "s-tabs-content-wrapper" }, h("slot", { key: 'c97cde11dcbd37124dc1c24559c918111c57e6fe', name: "content" })))
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "salla-tabs"; }
|
|
@@ -123,7 +123,7 @@ export class SallaTelInput {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '3d6d30dec797f67178adf57497e9b1a0dc92c195', class: "s-tel-input" }, h("input", { key: 'e6f1bb82efa3d08d791cb39d82c1c0c6acb3e253', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: 'ddbb70dd419742bac9a2a34480f4195f282a2c7c', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: 'b168210708af8d78628ae6b104b268890e60fb8f', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
127
127
|
}
|
|
128
128
|
componentDidLoad() {
|
|
129
129
|
this.initTelInput();
|
|
@@ -27,7 +27,7 @@ export class SallaTooltip {
|
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '4d433085f726528933c9ca19a86b0be84fc35a43', class: "s-tooltip-container" }, h("div", { key: 'a458c284385d21f3b4e89f18dd46ff25760a0b10', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "salla-tooltip"; }
|
|
33
33
|
static get originalStyleUrls() {
|
|
@@ -56,7 +56,7 @@ export class SallaUserSettings {
|
|
|
56
56
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: 'd49fe1cc125040388326a346cf6349cdff3e8827', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '4f6227afbf0f1a9ac4ae6c0404c04de65ef2c22d', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'd084e7c978e0f41b8997299690e1b419f1dcecea' }, h("div", { key: '732f09a315529dd23a690ec2e2db2ca157f30b3f', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '57854cdcd75e9bdf261cc10108b9dd03ba886c9a', innerHTML: UserCancel })), h("div", { key: '4d42778a9a52a6a539f9c84103a4e35ab10eadce', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '45ea0bf9bbc5d055e50de279ed21c77f69194a83', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'addf60ce92d9bd5d7307af22f8e08ca627f52692', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'db9bfdd607f9578349051126893fcd77eccc8aea', class: "s-toggle" }, h("input", { key: '5c56ac1adffc24c7d1190251713d99214ef242e3', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '5f275e5c3517a6df99e781537ac17135d54b5d9a', class: "s-toggle-switcher" }))))), h("div", { key: '0cb50e709e0dbc49f769b4f107002eadadb41c32', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'f710c59a481aedca13fb36d003ddb5b71905771f' }, h("div", { key: 'b8e81786c8cea4cc36d81ad4e5a53381fea20ed4', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'b4b3b36769c216f4981fcebec511e33461e703d5', innerHTML: Bullhorn })), h("div", { key: 'a5a9271e04367bbc512656176bf7b9c59855c497', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'f7191566d7fea659a0d080f7680ace28f74fc5e1', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'edaed3be64edc7e98640d33ae57112e8586e3354', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '9a444d833c61719f65200b6a16ce8bf47406b84f', class: "s-toggle" }, h("input", { key: 'bd18d96449c3eb4d6b263bc5cbf7a9b8d639bd6d', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '5742974d46ab2e1084f85d3902ead64a4d2340e3', class: "s-toggle-switcher" }))))), h("div", { key: 'cd920209f8188531735c0a12b40f290ffafd31ab', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '49ea382b58e36475794f8e80e41caf7db938ddc4' }, h("div", { key: '7cb1d0abc1c178862111e49804cb750ddd01aea3', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'de51a80143d6b44ec3ad1f6422e769e57432dd9e', innerHTML: UserOff })), h("div", { key: '1a00838952cac6c3fafe29b9e7e32f5ed3126f30', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: 'f4b2794e0dd8a036ce404b7243986b7ba5a63340', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '72cb29457621699ed1449cdd52eb5151023637ab', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'aba35845332da5f0da393078e06a0e0498bf2d28', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: '4fd811fbbc6e7fcc1a6a8d23e8bfa05b7499dcbc', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '712fe566292404c42aa79970978f03fb23b4d2ab', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '69ce40edbcaf775e33d62a3e242e5fcc9cce3cef', class: "s-user-settings-confirmation" }, h("div", { key: 'f71c23f124449b12ad7db1f523ca3b80b5c50a2b', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '6995699f126fb98cc6271a0f476dd6b4f53cfd3c', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'f45563215e757ee3b172622c346cd40fca1a79a6', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '1ba83fc0690f0a10176008bb2470759878471cee', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "salla-user-settings"; }
|
|
62
62
|
static get originalStyleUrls() {
|