@salla.sa/twilight-components 2.14.421 → 2.14.423
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-DZq6rMpU.js → filepond-Do86Z81F.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-bfKXAWda.js → filepond-plugin-file-poster-BltmTwcK.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Q7fD5HS8.js → filepond-plugin-file-validate-size-D6qDjnWw.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-B3IiM9Bk.js → filepond-plugin-file-validate-type-BTcaw3yC.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BIoXePuj.js → filepond-plugin-image-edit-BfSALTq0.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BZnWr0Hm.js → filepond-plugin-image-exif-orientation-YyoN3ZPE.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CFBJltLk.js → filepond-plugin-image-preview-DPZhJU-S.js} +1 -1
- package/dist/cjs/{functions-BRkBgcI0.js → functions-Vqr_tH33.js} +1 -1
- package/dist/cjs/{index-fXg1FwER.js → index-BKsfuSTK.js} +1 -1
- package/dist/cjs/{index-DDYWBzxi.js → index-B_ubSXmY.js} +12 -8
- 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 +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-badge.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 +3 -9
- 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 +20 -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 +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-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-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 +14 -2
- 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 +126 -0
- 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 +8 -2
- package/dist/cjs/salla-offer.cjs.entry.js +24 -4
- 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 +3 -9
- 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_2.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-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 +10 -7
- 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/swap-stroke-CYGxjKIS.js +13 -0
- package/dist/cjs/tag-money-Cuohw_4j.js +13 -0
- package/dist/cjs/{tracked-promise-DzZoxrcZ.js → tracked-promise-DfEtIz3d.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BVAoSLKh.js → vanilla-picker-n2ZBl__a.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +40 -0
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +7 -4
- package/dist/collection/components/salla-menu/salla-menu.js +35 -2
- package/dist/collection/components/salla-next-order-coupon/interfaces.js +1 -0
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.css +3 -0
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.js +142 -0
- package/dist/collection/components/salla-offer/salla-offer.js +23 -3
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +7 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-item-offers.js +1 -7
- package/dist/components/salla-cookies-bar.js +21 -1
- package/dist/components/salla-menu.js +16 -2
- package/dist/components/salla-next-order-coupon.d.ts +11 -0
- package/dist/components/salla-next-order-coupon.js +165 -0
- package/dist/components/salla-offer-modal.js +7 -1
- package/dist/components/salla-offer.js +23 -3
- package/dist/components/salla-order-summary.js +1 -7
- package/dist/components/salla-reward-details2.js +7 -4
- package/dist/components/swap-stroke.js +11 -0
- package/dist/components/tag-money.js +11 -0
- package/dist/esm/{filepond-BkG7zRNW.js → filepond-C27NJlHY.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BBohUknW.js → filepond-plugin-file-poster-CbA3Ow5D.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CWM6JwDZ.js → filepond-plugin-file-validate-size-DeVDysqG.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-D9vBlpjh.js → filepond-plugin-file-validate-type-Bk2vWN-H.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BwGogzgJ.js → filepond-plugin-image-edit-MZT3Vams.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DNFa2Zgg.js → filepond-plugin-image-exif-orientation-CUi24gW6.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DrbIi9ph.js → filepond-plugin-image-preview-DNteLpdV.js} +1 -1
- package/dist/esm/{functions-7e80w1OB.js → functions-WZTrXRSI.js} +1 -1
- package/dist/esm/{index-DbC46u_V.js → index-Z9TEkBrE.js} +12 -8
- package/dist/esm/{index-DWiN6nE9.js → index-xqn3qtN8.js} +1 -1
- 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 +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-badge.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 +2 -8
- 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 +20 -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 +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-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-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 +14 -2
- 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 +124 -0
- 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 +8 -2
- package/dist/esm/salla-offer.entry.js +24 -4
- 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 +2 -8
- 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_2.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-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 +10 -7
- 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/swap-stroke-DqDX5na4.js +11 -0
- package/dist/esm/tag-money-CJUR4sUM.js +11 -0
- package/dist/esm/{tracked-promise-BoMxGtXb.js → tracked-promise-9ayPcQ9V.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BoNPoxF7.js → vanilla-picker-DU5T_3-T.js} +1 -1
- package/dist/twilight/{p-18cdd8f5.entry.js → p-10311a85.entry.js} +1 -1
- package/dist/twilight/{p-ad519098.entry.js → p-132d5758.entry.js} +1 -1
- package/dist/twilight/{p-33df683c.entry.js → p-1357f11f.entry.js} +1 -1
- package/dist/twilight/{p-1a0b4f94.entry.js → p-15b8af3d.entry.js} +1 -1
- package/dist/twilight/{p-59d30e13.entry.js → p-15d242d1.entry.js} +1 -1
- package/dist/twilight/{p-30dc117d.entry.js → p-1aa4f79a.entry.js} +1 -1
- package/dist/twilight/{p-b2aa7372.entry.js → p-1daa9a08.entry.js} +1 -1
- package/dist/twilight/{p-06196216.entry.js → p-1e6a741d.entry.js} +1 -1
- package/dist/twilight/{p-0d56ce44.entry.js → p-1f3d64f3.entry.js} +1 -1
- package/dist/twilight/{p-79d1120e.entry.js → p-25a9da9c.entry.js} +1 -1
- package/dist/twilight/{p-77bcab66.entry.js → p-268c86dd.entry.js} +1 -1
- package/dist/twilight/{p-f68ac4e6.entry.js → p-296b7778.entry.js} +1 -1
- package/dist/twilight/{p-b88f28ed.entry.js → p-2e69e2a7.entry.js} +1 -1
- package/dist/twilight/p-3175cab9.entry.js +4 -0
- package/dist/twilight/{p-55d18399.entry.js → p-31cdb580.entry.js} +1 -1
- package/dist/twilight/{p-c3762539.entry.js → p-321d4374.entry.js} +1 -1
- package/dist/twilight/{p-0daa4d70.entry.js → p-38eb6f08.entry.js} +1 -1
- package/dist/twilight/{p-458b78f1.entry.js → p-4208c68b.entry.js} +1 -1
- package/dist/twilight/{p-71393aad.entry.js → p-475bfa77.entry.js} +1 -1
- package/dist/twilight/{p-f66b17b4.entry.js → p-51ccd249.entry.js} +1 -1
- package/dist/twilight/p-51eb69d7.entry.js +4 -0
- package/dist/twilight/{p-f5b9e709.entry.js → p-58f17ecc.entry.js} +1 -1
- package/dist/twilight/{p-fbdbc033.entry.js → p-598c73c9.entry.js} +1 -1
- package/dist/twilight/{p-563aaf0e.entry.js → p-5bd92466.entry.js} +1 -1
- package/dist/twilight/{p-26e8e86d.entry.js → p-612f2099.entry.js} +1 -1
- package/dist/twilight/{p-34064c35.entry.js → p-61b6fac2.entry.js} +1 -1
- package/dist/twilight/{p-f1aa34f0.entry.js → p-647a76d0.entry.js} +1 -1
- package/dist/twilight/{p-4839e7b8.entry.js → p-69d98642.entry.js} +1 -1
- package/dist/twilight/{p-935cff30.entry.js → p-6ab7c83d.entry.js} +1 -1
- package/dist/twilight/{p-1a14ddaf.entry.js → p-6d4850df.entry.js} +1 -1
- package/dist/twilight/{p-b8eeb61e.entry.js → p-735e5378.entry.js} +1 -1
- package/dist/twilight/{p-e12a5af8.entry.js → p-74362d6a.entry.js} +1 -1
- package/dist/twilight/{p-d3a14c1b.entry.js → p-75066345.entry.js} +1 -1
- package/dist/twilight/{p-5694334c.entry.js → p-75826fc3.entry.js} +1 -1
- package/dist/twilight/{p-58f092bc.entry.js → p-776a0bda.entry.js} +1 -1
- package/dist/twilight/{p-d2b8c827.entry.js → p-777a765e.entry.js} +1 -1
- package/dist/twilight/{p-449ffdea.entry.js → p-79340697.entry.js} +1 -1
- package/dist/twilight/{p-3ff5e879.entry.js → p-79d9b828.entry.js} +1 -1
- package/dist/twilight/{p-298c1c9e.entry.js → p-7d2ec078.entry.js} +1 -1
- package/dist/twilight/{p-c02a2fcd.entry.js → p-7d4c5da3.entry.js} +1 -1
- package/dist/twilight/{p-850570b7.entry.js → p-8138fe7c.entry.js} +1 -1
- package/dist/twilight/{p-1d7a48d5.entry.js → p-847d884f.entry.js} +1 -1
- package/dist/twilight/{p-04336d38.entry.js → p-8631c200.entry.js} +1 -1
- package/dist/twilight/{p-03cbc25a.entry.js → p-872b6790.entry.js} +1 -1
- package/dist/twilight/{p-68c9066c.entry.js → p-88c6e6ec.entry.js} +1 -1
- package/dist/twilight/{p-ab69d680.entry.js → p-8b15a7c2.entry.js} +1 -1
- package/dist/twilight/p-93221e58.entry.js +4 -0
- package/dist/twilight/{p-91e115ee.entry.js → p-93715135.entry.js} +1 -1
- package/dist/twilight/{p-69d25f66.entry.js → p-9410f28a.entry.js} +1 -1
- package/dist/twilight/p-97033016.entry.js +4 -0
- package/dist/twilight/{p-09ef1bfd.entry.js → p-9b64e741.entry.js} +1 -1
- package/dist/twilight/{p-41743733.entry.js → p-9c36f5f1.entry.js} +1 -1
- package/dist/twilight/{p-07b48592.entry.js → p-9d30457e.entry.js} +1 -1
- package/dist/twilight/{p-B4aouEym.js → p-B7NkulJ-.js} +1 -1
- package/dist/twilight/{p-BfBD_dZY.js → p-BDJ2Ykel.js} +1 -1
- package/dist/twilight/{p-D70co0Me.js → p-BlcvrTiO.js} +1 -1
- package/dist/twilight/p-BswrPpfs.js +9 -0
- package/dist/twilight/{p-DpyekdaY.js → p-C9yU50YT.js} +2 -2
- package/dist/twilight/p-CJUR4sUM.js +4 -0
- package/dist/twilight/{p-Lt3b2USq.js → p-CmoDOvZI.js} +1 -1
- package/dist/twilight/{p-Dr1FS7by.js → p-CxlEUP15.js} +1 -1
- package/dist/twilight/{p-C52jz7Qy.js → p-DG0XMtHg.js} +1 -1
- package/dist/twilight/p-DqDX5na4.js +4 -0
- package/dist/twilight/{p-Ck_RfmRo.js → p-DqwP0D-u.js} +1 -1
- package/dist/twilight/{p-C4GWkh-f.js → p-EhkdtrLx.js} +1 -1
- package/dist/twilight/{p-DbC46u_V.js → p-Z9TEkBrE.js} +1 -1
- package/dist/twilight/{p-DXvleSvk.js → p-ZJAW9yxk.js} +1 -1
- package/dist/twilight/{p-29353f6d.entry.js → p-a6429df2.entry.js} +1 -1
- package/dist/twilight/p-a9f85080.entry.js +4 -0
- package/dist/twilight/{p-ad033d91.entry.js → p-aba22621.entry.js} +1 -1
- package/dist/twilight/{p-d88a136d.entry.js → p-b253d360.entry.js} +1 -1
- package/dist/twilight/{p-30b20068.entry.js → p-b5c33519.entry.js} +1 -1
- package/dist/twilight/{p-30e87289.entry.js → p-b785d75d.entry.js} +1 -1
- package/dist/twilight/{p-0f68b304.entry.js → p-b7aa5623.entry.js} +1 -1
- package/dist/twilight/p-be58b3a7.entry.js +4 -0
- package/dist/twilight/{p-fb818de2.entry.js → p-c038e432.entry.js} +1 -1
- package/dist/twilight/{p-c22dbb9a.entry.js → p-c19887c7.entry.js} +1 -1
- package/dist/twilight/{p-5695e345.entry.js → p-c2dd5774.entry.js} +1 -1
- package/dist/twilight/{p-a9be6107.entry.js → p-c4a80854.entry.js} +1 -1
- package/dist/twilight/{p-40d6f65f.entry.js → p-c4bb47b0.entry.js} +1 -1
- package/dist/twilight/{p-d70f0f18.entry.js → p-c763b517.entry.js} +1 -1
- package/dist/twilight/p-c77bcf09.entry.js +4 -0
- package/dist/twilight/{p-c3a53221.entry.js → p-c7b15f0a.entry.js} +1 -1
- package/dist/twilight/{p-0e5c5cc9.entry.js → p-cb476df4.entry.js} +1 -1
- package/dist/twilight/{p-a86695b3.entry.js → p-d049f98a.entry.js} +1 -1
- package/dist/twilight/{p-11c2fdd8.entry.js → p-d0898538.entry.js} +1 -1
- package/dist/twilight/{p-5a30b7be.entry.js → p-d8d62f74.entry.js} +1 -1
- package/dist/twilight/{p-ed50975c.entry.js → p-dc1b4da2.entry.js} +1 -1
- package/dist/twilight/{p-6f9a2d6f.entry.js → p-ea0b6753.entry.js} +1 -1
- package/dist/twilight/{p-8f808e77.entry.js → p-eed5585b.entry.js} +1 -1
- package/dist/twilight/{p-087c9bdc.entry.js → p-ef60225f.entry.js} +1 -1
- package/dist/twilight/{p-29d3dd5f.entry.js → p-f087988a.entry.js} +1 -1
- package/dist/twilight/{p-17371658.entry.js → p-f423f1cf.entry.js} +1 -1
- package/dist/twilight/{p-efe216ac.entry.js → p-f4582cc9.entry.js} +1 -1
- package/dist/twilight/{p-e1dd834e.entry.js → p-f45efc0c.entry.js} +1 -1
- package/dist/twilight/p-f82d4a36.entry.js +4 -0
- package/dist/twilight/{p-1ec3c41a.entry.js → p-fae2be1f.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cookies-bar/salla-cookies-bar.d.ts +6 -0
- package/dist/types/components/salla-menu/salla-menu.d.ts +6 -0
- package/dist/types/components/salla-next-order-coupon/interfaces.d.ts +11 -0
- package/dist/types/components/salla-next-order-coupon/salla-next-order-coupon.d.ts +24 -0
- package/dist/types/components/salla-offer/interfaces.d.ts +6 -1
- package/dist/types/components/salla-offer/salla-offer.d.ts +1 -0
- package/dist/types/components/salla-offer-modal/offer-schema.d.ts +5 -0
- package/dist/types/components.d.ts +27 -0
- package/package.json +5 -5
- package/dist/twilight/p-22e5882c.entry.js +0 -4
- package/dist/twilight/p-2da1ab0d.entry.js +0 -4
- package/dist/twilight/p-51898257.entry.js +0 -4
- package/dist/twilight/p-62252d95.entry.js +0 -4
- package/dist/twilight/p-7816b794.entry.js +0 -4
- package/dist/twilight/p-90d5b4d3.entry.js +0 -4
- package/dist/twilight/p-DRrArHhd.js +0 -9
- package/dist/twilight/p-bfae823f.entry.js +0 -4
|
@@ -4,15 +4,9 @@
|
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount.js';
|
|
6
6
|
import { l as loyaltyProgramIcon } from './gift.js';
|
|
7
|
+
import { T as TagMoneyIcon } from './tag-money.js';
|
|
7
8
|
import { A as ArrowDown } from './keyboard_arrow_down.js';
|
|
8
9
|
|
|
9
|
-
var TagMoneyIcon = `<!-- Generated by IcoMoon.io -->
|
|
10
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
11
|
-
<title>tag-money</title>
|
|
12
|
-
<path d="M20.567 11.433c-0.521-0.521-1.364-0.521-1.885 0l-0.524 0.524c-1.28-0.819-3.091-0.681-4.191 0.419-0.631 0.631-0.976 1.468-0.976 2.359 0 0.889 0.347 1.727 0.976 2.357l0.943 0.943c0.171 0.171 0.195 0.368 0.195 0.472s-0.025 0.301-0.196 0.472c-0.169 0.169-0.367 0.195-0.471 0.195s-0.301-0.025-0.472-0.195l-2.357-2.357c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l0.944 0.941-0.472 0.472c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l0.519-0.519c0.54 0.359 1.173 0.553 1.837 0.553 0.892 0 1.729-0.348 2.357-0.976 0.631-0.631 0.976-1.467 0.976-2.357s-0.347-1.727-0.976-2.357l-0.943-0.943c-0.26-0.26-0.26-0.684 0-0.944 0.259-0.259 0.683-0.261 0.944 0l1.885 1.887c0.521 0.521 1.364 0.521 1.885 0 0.521-0.52 0.521-1.364 0-1.885l-0.472-0.472 0.472-0.472c0.521-0.521 0.521-1.365 0.001-1.887zM28 0h-9.344c-1.059 0-2.056 0.411-2.809 1.153l-14.673 14.456c-1.56 1.56-1.561 4.097-0.001 5.657l9.56 9.56c0.755 0.755 1.76 1.172 2.828 1.173h0.003c1.068 0 2.072-0.416 2.833-1.179l14.451-14.668c0.743-0.753 1.153-1.751 1.153-2.809v-9.344c0-2.205-1.795-4-4-4zM29.333 13.344c0 0.353-0.137 0.685-0.385 0.937l-14.444 14.661c-0.252 0.252-0.587 0.391-0.941 0.391-0.001 0-0.001 0-0.001 0-0.356-0.001-0.691-0.139-0.943-0.392l-9.561-9.56c-0.52-0.52-0.52-1.365-0.005-1.88l14.667-14.449c0.253-0.248 0.585-0.385 0.937-0.385h9.344c0.736 0 1.333 0.597 1.333 1.333zM24 6.673c-0.737 0-1.333 0.604-1.333 1.341s0.596 1.333 1.333 1.333 1.333-0.596 1.333-1.333v-0.015c0-0.737-0.596-1.327-1.333-1.327z"></path>
|
|
13
|
-
</svg>
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
10
|
var FireIcon = `<!-- Generated by IcoMoon.io -->
|
|
17
11
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
18
12
|
<title>fire</title>
|
|
@@ -20,6 +20,16 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
|
|
|
20
20
|
this.isMobile = false;
|
|
21
21
|
this.mobileBreakpoint = 768;
|
|
22
22
|
this.mobileQueryHandler = (e) => (this.isMobile = e.matches);
|
|
23
|
+
this.cookiesSettingsAnchorClass = 's-cookies-settings-link';
|
|
24
|
+
this.onCookiesSettingsClick = (event) => {
|
|
25
|
+
const target = event.target;
|
|
26
|
+
const link = target?.closest(`a.${this.cookiesSettingsAnchorClass}`);
|
|
27
|
+
if (!link) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
this.open();
|
|
32
|
+
};
|
|
23
33
|
}
|
|
24
34
|
async componentWillLoad() {
|
|
25
35
|
await Salla.onReady();
|
|
@@ -39,9 +49,11 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
|
|
|
39
49
|
this.mobileQuery = window.matchMedia(`(max-width: ${this.mobileBreakpoint - 1}px)`);
|
|
40
50
|
this.isMobile = this.mobileQuery.matches;
|
|
41
51
|
this.mobileQuery.addEventListener('change', this.mobileQueryHandler);
|
|
52
|
+
document.addEventListener('click', this.onCookiesSettingsClick);
|
|
42
53
|
}
|
|
43
54
|
disconnectedCallback() {
|
|
44
55
|
this.mobileQuery?.removeEventListener('change', this.mobileQueryHandler);
|
|
56
|
+
document.removeEventListener('click', this.onCookiesSettingsClick);
|
|
45
57
|
}
|
|
46
58
|
/**
|
|
47
59
|
* Accept cookies consent.
|
|
@@ -63,6 +75,13 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
|
|
|
63
75
|
Salla.storage.set('cookies-consent', 'rejected');
|
|
64
76
|
return this.host;
|
|
65
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Show cookies settings bar to allow updating consent.
|
|
80
|
+
*/
|
|
81
|
+
async open() {
|
|
82
|
+
this.isVisible = true;
|
|
83
|
+
return this.host;
|
|
84
|
+
}
|
|
66
85
|
isRtl() {
|
|
67
86
|
return Salla.config.get('theme.is_rtl', true);
|
|
68
87
|
}
|
|
@@ -82,7 +101,8 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
|
|
|
82
101
|
"acceptLabel": [32],
|
|
83
102
|
"rejectLabel": [32],
|
|
84
103
|
"accept": [64],
|
|
85
|
-
"reject": [64]
|
|
104
|
+
"reject": [64],
|
|
105
|
+
"open": [64]
|
|
86
106
|
}]);
|
|
87
107
|
function defineCustomElement$1() {
|
|
88
108
|
if (typeof customElements === "undefined") {
|
|
@@ -18,11 +18,19 @@ const SallaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaMenu extends HTM
|
|
|
18
18
|
* Boolean indicating whether to use React Link elements for menu links.
|
|
19
19
|
*/
|
|
20
20
|
this.useReactLink = false;
|
|
21
|
+
/**
|
|
22
|
+
* When true (footer menu only), appends a link to open cookie preferences.
|
|
23
|
+
* Use as `with-cookie-preferences` in markup.
|
|
24
|
+
*/
|
|
25
|
+
this.withCookiePreferences = false;
|
|
21
26
|
this.menus = [];
|
|
27
|
+
this.cookiePreferencesLabel = '';
|
|
28
|
+
this.displayAllText = '';
|
|
22
29
|
}
|
|
23
30
|
async componentWillLoad() {
|
|
24
31
|
return salla.onReady(() => {
|
|
25
32
|
this.displayAllText = salla.lang.get('blocks.home.display_all');
|
|
33
|
+
this.cookiePreferencesLabel = salla.lang.get('common.cookies.settings');
|
|
26
34
|
if (this.sourceValue && this.source === 'json') {
|
|
27
35
|
this.menus = typeof this.sourceValue === 'string' ? JSON.parse(this.sourceValue) : this.sourceValue || [];
|
|
28
36
|
}
|
|
@@ -111,7 +119,11 @@ const SallaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaMenu extends HTM
|
|
|
111
119
|
"s-menu-footer-item": !this.topnav,
|
|
112
120
|
"s-menu-topnav-item topnav-link-item right-side": this.topnav
|
|
113
121
|
} }, menu.title);
|
|
114
|
-
})
|
|
122
|
+
}), this.withCookiePreferences ? (h("a", { href: "#cookies-settings", class: {
|
|
123
|
+
"s-menu-footer-item": !this.topnav,
|
|
124
|
+
"s-menu-topnav-item topnav-link-item right-side": this.topnav,
|
|
125
|
+
"s-cookies-settings-link": true,
|
|
126
|
+
} }, this.cookiePreferencesLabel)) : null));
|
|
115
127
|
}
|
|
116
128
|
/**
|
|
117
129
|
* Get the menus
|
|
@@ -140,7 +152,9 @@ const SallaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaMenu extends HTM
|
|
|
140
152
|
"topnav": [4],
|
|
141
153
|
"useReactLink": [4, "use-react-link"],
|
|
142
154
|
"limit": [2],
|
|
143
|
-
"
|
|
155
|
+
"withCookiePreferences": [4, "with-cookie-preferences"],
|
|
156
|
+
"menus": [32],
|
|
157
|
+
"cookiePreferencesLabel": [32]
|
|
144
158
|
}]);
|
|
145
159
|
function defineCustomElement$1() {
|
|
146
160
|
if (typeof customElements === "undefined") {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaNextOrderCoupon extends Components.SallaNextOrderCoupon, HTMLElement {}
|
|
4
|
+
export const SallaNextOrderCoupon: {
|
|
5
|
+
prototype: SallaNextOrderCoupon;
|
|
6
|
+
new (): SallaNextOrderCoupon;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
5
|
+
import { T as TagMoneyIcon } from './tag-money.js';
|
|
6
|
+
import { i as iconCopy } from './swap-stroke.js';
|
|
7
|
+
import { d as defineCustomElement$3 } from './salla-button2.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './salla-skeleton2.js';
|
|
9
|
+
|
|
10
|
+
const sallaNextOrderCouponCss = ":host{display:block}";
|
|
11
|
+
|
|
12
|
+
const SallaNextOrderCoupon$1 = /*@__PURE__*/ proxyCustomElement(class SallaNextOrderCoupon extends HTMLElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
this.coupon = null;
|
|
17
|
+
this.isLoading = true;
|
|
18
|
+
this.titlePercentTpl = '';
|
|
19
|
+
this.titleFixedTpl = '';
|
|
20
|
+
this.badgeLabel = '';
|
|
21
|
+
this.minSpendTpl = '';
|
|
22
|
+
this.expiresTpl = '';
|
|
23
|
+
this.shopNowLabel = '';
|
|
24
|
+
this.copyLabel = '';
|
|
25
|
+
this.copiedLabel = '';
|
|
26
|
+
}
|
|
27
|
+
componentWillLoad() {
|
|
28
|
+
Salla.onReady()
|
|
29
|
+
.then(() => Salla.lang.onLoaded())
|
|
30
|
+
.then(() => {
|
|
31
|
+
this.loadTranslations();
|
|
32
|
+
return this.loadCoupon();
|
|
33
|
+
})
|
|
34
|
+
.catch(() => {
|
|
35
|
+
this.isLoading = false;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
loadTranslations() {
|
|
39
|
+
this.titlePercentTpl = Salla.lang.get('pages.thank_you.next_order_coupon.title_percent') || '';
|
|
40
|
+
this.titleFixedTpl = Salla.lang.get('pages.thank_you.next_order_coupon.title_fixed') || '';
|
|
41
|
+
this.badgeLabel = Salla.lang.get('pages.thank_you.next_order_coupon.badge') || '';
|
|
42
|
+
this.minSpendTpl = Salla.lang.get('pages.thank_you.next_order_coupon.min_spend') || '';
|
|
43
|
+
this.expiresTpl = Salla.lang.get('pages.thank_you.next_order_coupon.expires') || '';
|
|
44
|
+
this.shopNowLabel = Salla.lang.get('pages.thank_you.next_order_coupon.shop_now') || '';
|
|
45
|
+
this.copyLabel = Salla.lang.get('common.elements.copy') || '';
|
|
46
|
+
this.copiedLabel = Salla.lang.get('pages.thank_you.next_order_coupon.copied') || '';
|
|
47
|
+
}
|
|
48
|
+
async loadCoupon() {
|
|
49
|
+
try {
|
|
50
|
+
const response = await salla.api.request('coupons', { type: 'thankyou' });
|
|
51
|
+
const raw = response?.data;
|
|
52
|
+
const list = Array.isArray(raw) ? raw : (Array.isArray(raw?.data) ? raw.data : []);
|
|
53
|
+
this.coupon = list[0] ?? null;
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
this.coupon = null;
|
|
57
|
+
}
|
|
58
|
+
finally {
|
|
59
|
+
this.isLoading = false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async copyCode() {
|
|
63
|
+
if (!this.coupon)
|
|
64
|
+
return;
|
|
65
|
+
try {
|
|
66
|
+
await navigator.clipboard.writeText(this.coupon.code);
|
|
67
|
+
salla.notify.success(this.copiedLabel);
|
|
68
|
+
salla.event.dispatch('salla::next-order-coupon.code.copied', { code: this.coupon.code });
|
|
69
|
+
}
|
|
70
|
+
catch {
|
|
71
|
+
// clipboard write failed silently
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
isPercentage() {
|
|
75
|
+
return this.coupon?.type === 'P' || this.coupon?.type === 'percentage';
|
|
76
|
+
}
|
|
77
|
+
formatAmount() {
|
|
78
|
+
if (!this.coupon)
|
|
79
|
+
return '';
|
|
80
|
+
if (this.isPercentage()) {
|
|
81
|
+
return `${salla.helpers.number(this.coupon.amount)}%`;
|
|
82
|
+
}
|
|
83
|
+
const amt = this.coupon.amount;
|
|
84
|
+
if (typeof amt === 'object' && amt.amount) {
|
|
85
|
+
const a = amt;
|
|
86
|
+
return h("span", { innerHTML: salla.money(a.amount, a.currency) });
|
|
87
|
+
}
|
|
88
|
+
return h("span", { innerHTML: salla.money(amt) });
|
|
89
|
+
}
|
|
90
|
+
formatMinSpend() {
|
|
91
|
+
const min = this.coupon?.minimum_amount;
|
|
92
|
+
if (!min)
|
|
93
|
+
return '';
|
|
94
|
+
if (typeof min === 'string') {
|
|
95
|
+
return min.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
96
|
+
}
|
|
97
|
+
return salla.money(min.amount, min.currency);
|
|
98
|
+
}
|
|
99
|
+
formatExpiry() {
|
|
100
|
+
const d = this.coupon?.expiry_date;
|
|
101
|
+
if (!d)
|
|
102
|
+
return '';
|
|
103
|
+
return new Date(d).toLocaleDateString(Salla.lang.locale || 'en-GB');
|
|
104
|
+
}
|
|
105
|
+
renderSkeleton() {
|
|
106
|
+
return (h("div", { class: "s-next-order-coupon-wrapper s-next-order-coupon-skeleton" }, h("div", { class: "s-next-order-coupon-inner" }, h("div", { class: "s-next-order-coupon-info" }, h("salla-skeleton", { type: "normal", width: "48px", height: "48px" }), h("div", { class: "s-next-order-coupon-details" }, h("salla-skeleton", { height: "14px", width: "220px" }), h("salla-skeleton", { height: "12px", width: "140px" }))), h("div", { class: "s-next-order-coupon-actions" }, h("salla-skeleton", { height: "40px", width: "140px" }), h("salla-skeleton", { height: "40px", width: "100px" })))));
|
|
107
|
+
}
|
|
108
|
+
renderTitle() {
|
|
109
|
+
const amount = this.formatAmount();
|
|
110
|
+
const tpl = this.isPercentage() ? this.titlePercentTpl : this.titleFixedTpl;
|
|
111
|
+
const placeholder = this.isPercentage() ? ':amount%' : ':amount';
|
|
112
|
+
const parts = tpl.split(placeholder);
|
|
113
|
+
return (h("p", { class: "s-next-order-coupon-title" }, parts[0], h("span", { class: "s-next-order-coupon-amount" }, amount), parts[1] || ''));
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
if (this.isLoading)
|
|
117
|
+
return this.renderSkeleton();
|
|
118
|
+
if (!this.coupon)
|
|
119
|
+
return null;
|
|
120
|
+
const minSpend = this.formatMinSpend();
|
|
121
|
+
const expiry = this.formatExpiry();
|
|
122
|
+
return (h("div", { class: "s-next-order-coupon-wrapper" }, h("div", { class: "s-next-order-coupon-inner" }, h("div", { class: "s-next-order-coupon-info" }, h("div", { class: "s-next-order-coupon-icon-wrap" }, h("span", { class: "s-next-order-coupon-icon-bg" }), h("span", { class: "s-next-order-coupon-icon", innerHTML: TagMoneyIcon })), h("div", { class: "s-next-order-coupon-details" }, h("div", { class: "s-next-order-coupon-title-row" }, this.renderTitle(), h("span", { class: "s-next-order-coupon-badge" }, h("span", { class: "s-next-order-coupon-badge-bg" }), h("span", { class: "s-next-order-coupon-badge-text" }, this.badgeLabel))), (minSpend || expiry) && (h("p", { class: "s-next-order-coupon-meta" }, minSpend && (h("span", { innerHTML: this.minSpendTpl.replace(':amount', minSpend) })), expiry && (h("span", null, this.expiresTpl.replace(':date', expiry))))))), h("div", { class: "s-next-order-coupon-actions" }, h("div", { class: "s-next-order-coupon-code-box" }, h("span", { class: "s-next-order-coupon-code-text" }, this.coupon.code), h("salla-button", { shape: "link", class: "s-next-order-coupon-copy-btn", title: this.copyLabel, onClick: () => this.copyCode() }, h("span", { class: "s-next-order-coupon-copy-icon", innerHTML: iconCopy }))), h("salla-button", { href: salla.url.get(''), class: "s-next-order-coupon-shop-btn" }, this.shopNowLabel)))));
|
|
123
|
+
}
|
|
124
|
+
static get style() { return sallaNextOrderCouponCss; }
|
|
125
|
+
}, [0, "salla-next-order-coupon", {
|
|
126
|
+
"coupon": [32],
|
|
127
|
+
"isLoading": [32],
|
|
128
|
+
"titlePercentTpl": [32],
|
|
129
|
+
"titleFixedTpl": [32],
|
|
130
|
+
"badgeLabel": [32],
|
|
131
|
+
"minSpendTpl": [32],
|
|
132
|
+
"expiresTpl": [32],
|
|
133
|
+
"shopNowLabel": [32],
|
|
134
|
+
"copyLabel": [32],
|
|
135
|
+
"copiedLabel": [32]
|
|
136
|
+
}]);
|
|
137
|
+
function defineCustomElement$1() {
|
|
138
|
+
if (typeof customElements === "undefined") {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const components = ["salla-next-order-coupon", "salla-button", "salla-skeleton"];
|
|
142
|
+
components.forEach(tagName => { switch (tagName) {
|
|
143
|
+
case "salla-next-order-coupon":
|
|
144
|
+
if (!customElements.get(tagName)) {
|
|
145
|
+
customElements.define(tagName, SallaNextOrderCoupon$1);
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
case "salla-button":
|
|
149
|
+
if (!customElements.get(tagName)) {
|
|
150
|
+
defineCustomElement$3();
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
153
|
+
case "salla-skeleton":
|
|
154
|
+
if (!customElements.get(tagName)) {
|
|
155
|
+
defineCustomElement$2();
|
|
156
|
+
}
|
|
157
|
+
break;
|
|
158
|
+
} });
|
|
159
|
+
}
|
|
160
|
+
defineCustomElement$1();
|
|
161
|
+
|
|
162
|
+
const SallaNextOrderCoupon = SallaNextOrderCoupon$1;
|
|
163
|
+
const defineCustomElement = defineCustomElement$1;
|
|
164
|
+
|
|
165
|
+
export { SallaNextOrderCoupon, defineCustomElement };
|
|
@@ -124,6 +124,9 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
|
|
|
124
124
|
else if (this.offer.get.brands?.length) {
|
|
125
125
|
this.offer_type = 'brands';
|
|
126
126
|
}
|
|
127
|
+
else if (this.offer.get.tags?.length) {
|
|
128
|
+
this.offer_type = 'tags';
|
|
129
|
+
}
|
|
127
130
|
this.modal.setTitle(this.offer_name);
|
|
128
131
|
this.emitPromotionViewed(this.offer);
|
|
129
132
|
}
|
|
@@ -196,6 +199,9 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
|
|
|
196
199
|
else if (this.offer.get.brands?.length) {
|
|
197
200
|
return h("salla-slider", { type: "carousel", class: { "s-offer-modal-slider-centered": this.offer.get.brands?.length <= 2, "s-offer-modal-slider": true }, id: "offer-modal-slider", "controls-outer": true, "show-controls": this.offer.get.brands?.length <= 2 ? 'false' : 'true' }, h("div", { slot: 'items' }, this.offer.get.brands.map((brand) => h("a", { href: brand.url || salla.url.create('brands', brand.id), class: "s-offer-modal-badge s-offer-modal-slider-item s-offer-modal-brand-item" }, h("div", { class: "s-offer-modal-brand-logo" }, h("img", { src: brand.logo, alt: brand.name })), h("span", { class: "s-offer-modal-badge-text" }, brand.name)))));
|
|
198
201
|
}
|
|
202
|
+
else if (this.offer.get.tags?.length) {
|
|
203
|
+
return h("salla-slider", { type: "carousel", class: { "s-offer-modal-slider-centered": this.offer.get.tags?.length <= 2, "s-offer-modal-slider": true }, id: "offer-modal-slider", "controls-outer": true, "show-controls": this.offer.get.tags?.length <= 2 ? 'false' : 'true' }, h("div", { slot: 'items' }, this.offer.get.tags.map((tag) => h("a", { href: tag.url || salla.url.create('tags', tag.id), class: "s-offer-modal-badge s-offer-modal-slider-item s-offer-modal-tag-item" }, h("span", { class: "s-offer-modal-badge-icon", innerHTML: Tag }), h("span", { class: "s-offer-modal-badge-text" }, tag.name)))));
|
|
204
|
+
}
|
|
199
205
|
}
|
|
200
206
|
//todo:: pass event then use sallaButton from it
|
|
201
207
|
// private addItem() {
|
|
@@ -213,7 +219,7 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
|
|
|
213
219
|
// '</div>';
|
|
214
220
|
// }
|
|
215
221
|
render() {
|
|
216
|
-
return h("salla-modal", { key: '
|
|
222
|
+
return h("salla-modal", { key: '3387816ac4997e48ce463de1acae69583a99eef1', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: '38ee273912aeec936b6762cac52eca16b65c2744', slot: 'loading' }, h("div", { key: '05911f31ca0884953185cbc1ac1c7b7ad007baf1', class: "s-offer-modal-skeleton" }, h("div", { key: '095055ba94627a2800e65be09a516286f3eea9c3', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'b1469e4e49e0d90602b9d0fac8672a9a063141f6', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '7b738f6b9b153a49d03bb76a57690e2de9749d87', height: '15px', width: '50%' }), h("salla-skeleton", { key: '6d88e7ad3e419ab5a647bdd2215976bacd892e8d', height: '10px', width: '30%' })), h("div", { key: 'ee012a7a75a728ee76fa0888c487ac6d63c05efa', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: 'db71ea2e16e6d219bfeb1320b174e75d9e5fab19', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '862658e0a5df3c1a2350c2a571f4f0e8f8a4d0af', height: '15px', width: '50%' }), h("salla-skeleton", { key: '0f3c58145caf12c90626742c8cbc768a442a3ce4', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
217
223
|
? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
218
224
|
h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
219
225
|
: '', h("label", { class: "s-offer-modal-remember-label" }, h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
|
|
@@ -198,6 +198,9 @@ const SallaOffer$1 = /*@__PURE__*/ proxyCustomElement(class SallaOffer extends H
|
|
|
198
198
|
if (details.apply_to === 'brand' && details.targets) {
|
|
199
199
|
details.brands = details.targets;
|
|
200
200
|
}
|
|
201
|
+
if (details.apply_to === 'tag' && details.targets) {
|
|
202
|
+
details.tags = details.targets;
|
|
203
|
+
}
|
|
201
204
|
if (offer.type === OfferType.BuyXGetY && details.get) {
|
|
202
205
|
const getY = details.get;
|
|
203
206
|
if (getY.source === 'products' && getY.source_value) {
|
|
@@ -318,7 +321,7 @@ const SallaOffer$1 = /*@__PURE__*/ proxyCustomElement(class SallaOffer extends H
|
|
|
318
321
|
const products = this.getOfferProducts(offer);
|
|
319
322
|
const hasProducts = products && products.length > 0;
|
|
320
323
|
const isCollapsed = this.collapsedOffers[offer.id] !== false; // Default to collapsed
|
|
321
|
-
return (h("div", { class: "s-offer-drawer-card" }, h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer))) : (h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer))))), hasProducts && (h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, h("div", { slot: "title", class: "s-offer-products-thumbnails" }, h("span", { class: "s-offer-products-title" }, this.products_link_text, h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index) => (h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index + 1}` } }, h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), h("salla-accordion-body", null, h("div", { class: "s-offer-products-content" }, h("salla-products-list", { source: "selected", "source-value": JSON.stringify(products.map(p => p.id)), "product-card-component": this.productCardComponent, "horizontal-cards": true, "compact-cards": true, includes: ["images"] })))))));
|
|
324
|
+
return (h("div", { class: "s-offer-drawer-card" }, h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))) : (h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))))), hasProducts && (h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, h("div", { slot: "title", class: "s-offer-products-thumbnails" }, h("span", { class: "s-offer-products-title" }, this.products_link_text, h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index) => (h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index + 1}` } }, h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), h("salla-accordion-body", null, h("div", { class: "s-offer-products-content" }, h("salla-products-list", { source: "selected", "source-value": JSON.stringify(products.map(p => p.id)), "product-card-component": this.productCardComponent, "horizontal-cards": true, "compact-cards": true, includes: ["images"] })))))));
|
|
322
325
|
}
|
|
323
326
|
renderOfferCard(offer, position = 1) {
|
|
324
327
|
return (h("div", { class: "s-offer-slide-one-fourth swiper-slide", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card" }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), h("div", { class: "s-offer-card-details" }, offer.type === OfferType.DiscountsTable
|
|
@@ -327,11 +330,13 @@ const SallaOffer$1 = /*@__PURE__*/ proxyCustomElement(class SallaOffer extends H
|
|
|
327
330
|
? [
|
|
328
331
|
this.renderPercentageOrFixedOfferContent(offer),
|
|
329
332
|
this.renderOfferCategories(offer),
|
|
330
|
-
this.renderOfferBrands(offer)
|
|
333
|
+
this.renderOfferBrands(offer),
|
|
334
|
+
this.renderOfferTags(offer)
|
|
331
335
|
]
|
|
332
336
|
: [
|
|
333
337
|
this.renderOfferCategories(offer),
|
|
334
|
-
this.renderOfferBrands(offer)
|
|
338
|
+
this.renderOfferBrands(offer),
|
|
339
|
+
this.renderOfferTags(offer)
|
|
335
340
|
], this.renderProductsLinkForModalCard(offer, false))))));
|
|
336
341
|
}
|
|
337
342
|
getOfferIcon(offerType) {
|
|
@@ -411,6 +416,21 @@ const SallaOffer$1 = /*@__PURE__*/ proxyCustomElement(class SallaOffer extends H
|
|
|
411
416
|
this.toggleCategoryExpansion(offer.id);
|
|
412
417
|
} }, isExpanded ? (h("span", null, h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${brands.length - maxVisible}`, ' ', h("i", { class: "sicon-keyboard_arrow_down" }))))))));
|
|
413
418
|
}
|
|
419
|
+
renderOfferTags(offer) {
|
|
420
|
+
const details = offer.details;
|
|
421
|
+
const tags = details.tags || [];
|
|
422
|
+
if (!tags.length)
|
|
423
|
+
return null;
|
|
424
|
+
const maxVisible = 3;
|
|
425
|
+
const isExpanded = this.expandedCategories[offer.id];
|
|
426
|
+
const shouldShowMore = tags.length > maxVisible;
|
|
427
|
+
const visibleTags = isExpanded ? tags : tags.slice(0, maxVisible);
|
|
428
|
+
return (h("div", { class: "s-offer-categories" }, h("div", { class: "s-offer-categories-list" }, visibleTags.map((tag, index) => (h("a", { key: index, class: "s-offer-category-item", href: tag.url || salla.url.create('tags', tag.id) }, tag.name))), shouldShowMore && (h("span", { class: "s-offer-categories-toggle", onClick: (e) => {
|
|
429
|
+
e.preventDefault();
|
|
430
|
+
e.stopPropagation();
|
|
431
|
+
this.toggleCategoryExpansion(offer.id);
|
|
432
|
+
} }, isExpanded ? (h("span", null, h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${tags.length - maxVisible}`, ' ', h("i", { class: "sicon-keyboard_arrow_down" }))))))));
|
|
433
|
+
}
|
|
414
434
|
/**
|
|
415
435
|
* Toggle category expansion for a specific offer
|
|
416
436
|
*/
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
5
|
+
import { i as iconCopy } from './swap-stroke.js';
|
|
5
6
|
import { I as IconVerified } from './check.js';
|
|
6
7
|
import { d as defineCustomElement$3 } from './salla-button2.js';
|
|
7
8
|
import { d as defineCustomElement$2 } from './salla-placeholder2.js';
|
|
@@ -20,13 +21,6 @@ var iconDownload = `<!-- Generated by IcoMoon.io -->
|
|
|
20
21
|
</svg>
|
|
21
22
|
`;
|
|
22
23
|
|
|
23
|
-
var iconCopy = `<!-- Generated by IcoMoon.io -->
|
|
24
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
25
|
-
<title>swap-stroke</title>
|
|
26
|
-
<path d="M6.667 18.667h-2.667c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333v2.667c0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333v-2.667c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h2.667c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333zM28 10.667h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4v-13.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.597 1.333-1.333 1.333h-13.333c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333z"></path>
|
|
27
|
-
</svg>
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
24
|
var iconCreditCard = `<!-- Generated by IcoMoon.io -->
|
|
31
25
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
32
26
|
<title>debit-card-back</title>
|
|
@@ -124,7 +124,10 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
getCategoriesJsx(items, title) {
|
|
127
|
-
return !items.length ? '' : h("div", { class: c('reward-details-categories-wrapper') }, h("div", { class: c('reward-details-categories') }, h("h2", { class: c('reward-details-categories-heading') }, title), h("ul", { class: c('reward-details-categories-list') }, items.map((category) =>
|
|
127
|
+
return !items.length ? '' : h("div", { class: c('reward-details-categories-wrapper') }, h("div", { class: c('reward-details-categories') }, h("h2", { class: c('reward-details-categories-heading') }, title), h("ul", { class: c('reward-details-categories-list') }, items.map((category) => {
|
|
128
|
+
console.log("🚀 ~ SallaRewardDetails ~ getCategoriesJsx ~ category:", category);
|
|
129
|
+
return (h("li", null, h("a", { href: category.urls?.customer || category.url || category.lingual_urls?.[0], class: c('reward-details-categories-item') }, h("span", { innerHTML: Tag }), h("span", { class: c('reward-details-categories-item-content') }, category.name))));
|
|
130
|
+
}))));
|
|
128
131
|
}
|
|
129
132
|
getBrandsJsx(items, title) {
|
|
130
133
|
return !items.length ? '' : h("div", { class: c('reward-details-items-brands', 'slider-arrows-edges') }, h("div", null, h("h2", null, title), h("salla-slider", { id: `brands-${items.map(({ id }) => id).join('-')}`, "slider-config": '{"loop":false,"slidesPerView":"auto","spaceBetween":10}' }, h("div", { slot: "items" }, items.map((brand) => (h("a", { href: salla.url.get(brand_path(brand)), class: c('reward-brand-item') }, h("img", { src: brand.logo || salla.url.cdn('images/s-empty.png'), alt: "" }))))))));
|
|
@@ -134,11 +137,11 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
|
|
|
134
137
|
}
|
|
135
138
|
render() {
|
|
136
139
|
const termsAndConditions = this.getTermsAndConditions();
|
|
137
|
-
return (h("div", { key: '
|
|
140
|
+
return (h("div", { key: 'ef93a73728cf87285615dfe5dc9345d1a54db64a', class: "s-loyalty-program-reward-modal" }, h("div", { key: '85883b377d8ec2490cde174ea33aa08a64e84b68', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '2be1018fcdfff3966535a5e4cde4e10b99a690f6', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
|
|
138
141
|
: h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
|
|
139
142
|
'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
|
|
140
143
|
'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
|
|
141
|
-
} })), this.prize.name)), h("div", { key: '
|
|
144
|
+
} })), this.prize.name)), h("div", { key: 'eac6726dde8b8f5562fc4953ffb5c84830d185d4', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'a0ea8aca31d63016ad4890044a8f9789a4798ee2', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '9ff0ade39430845577a765f897ea50dc07ea498e', class: "s-loyalty-program-aspect-container" }, h("img", { key: '6001c3c5388611f924f22f229d879b48e7f5035e', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: '4e69c07ff18b8a652ab852554ecb8a203fc34e16', size: "sm", bg: "light" }, h("span", { key: '854e73b47beeb53bda03ea3a6ac093fbe4098f16', innerHTML: loyaltyProgramIcon }), h("span", { key: 'ed3c8592176708a08016560ee0e35f57bfb3bec4', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : h("div", { class: "s-loyalty-program-terms-and-conditions" }, h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), h("div", { key: 'f9b79897d68a7b9b7f35d36ef3e8bf34a58ae3c3', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '663d761572fe3961f616fd10cf98409ca31e5002', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: '2756956099b574b793d3a0ea3bcc3de63fc4ab4c', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : h("div", { class: "s-loyalty-program-reward-details" }, h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
|
|
142
145
|
h("salla-tab-header", { slot: "header", name: "included", style: {
|
|
143
146
|
display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
|
|
144
147
|
} }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: IconVerified }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
|
|
@@ -148,7 +151,7 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
|
|
|
148
151
|
display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
|
|
149
152
|
} }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: Cancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
|
|
150
153
|
h("salla-tab-content", { slot: "content", name: "excluded" }, h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.excludedCategories, this.prize.excluded_category_ids), salla.lang.get('pages.loyalty_program.excluded_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.excludedBrands, this.prize.excluded_brand_ids), salla.lang.get('pages.loyalty_program.excluded_brands')), this.getProductsJsx(this.getProductIds(this.prize.excluded_product_ids), salla.lang.get('pages.loyalty_program.excluded_products')))),
|
|
151
|
-
]))), h("salla-reward-action", { key: '
|
|
154
|
+
]))), h("salla-reward-action", { key: '6576910c32df5d49f33e9372e2c0a3bd758c8125', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
|
|
152
155
|
}
|
|
153
156
|
static get watchers() { return {
|
|
154
157
|
"prize": ["handlePrizeChange"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
var iconCopy = `<!-- Generated by IcoMoon.io -->
|
|
5
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
6
|
+
<title>swap-stroke</title>
|
|
7
|
+
<path d="M6.667 18.667h-2.667c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333v2.667c0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333v-2.667c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h2.667c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333zM28 10.667h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4v-13.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.597 1.333-1.333 1.333h-13.333c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333z"></path>
|
|
8
|
+
</svg>
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
export { iconCopy as i };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
var TagMoneyIcon = `<!-- Generated by IcoMoon.io -->
|
|
5
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
6
|
+
<title>tag-money</title>
|
|
7
|
+
<path d="M20.567 11.433c-0.521-0.521-1.364-0.521-1.885 0l-0.524 0.524c-1.28-0.819-3.091-0.681-4.191 0.419-0.631 0.631-0.976 1.468-0.976 2.359 0 0.889 0.347 1.727 0.976 2.357l0.943 0.943c0.171 0.171 0.195 0.368 0.195 0.472s-0.025 0.301-0.196 0.472c-0.169 0.169-0.367 0.195-0.471 0.195s-0.301-0.025-0.472-0.195l-2.357-2.357c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l0.944 0.941-0.472 0.472c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l0.519-0.519c0.54 0.359 1.173 0.553 1.837 0.553 0.892 0 1.729-0.348 2.357-0.976 0.631-0.631 0.976-1.467 0.976-2.357s-0.347-1.727-0.976-2.357l-0.943-0.943c-0.26-0.26-0.26-0.684 0-0.944 0.259-0.259 0.683-0.261 0.944 0l1.885 1.887c0.521 0.521 1.364 0.521 1.885 0 0.521-0.52 0.521-1.364 0-1.885l-0.472-0.472 0.472-0.472c0.521-0.521 0.521-1.365 0.001-1.887zM28 0h-9.344c-1.059 0-2.056 0.411-2.809 1.153l-14.673 14.456c-1.56 1.56-1.561 4.097-0.001 5.657l9.56 9.56c0.755 0.755 1.76 1.172 2.828 1.173h0.003c1.068 0 2.072-0.416 2.833-1.179l14.451-14.668c0.743-0.753 1.153-1.751 1.153-2.809v-9.344c0-2.205-1.795-4-4-4zM29.333 13.344c0 0.353-0.137 0.685-0.385 0.937l-14.444 14.661c-0.252 0.252-0.587 0.391-0.941 0.391-0.001 0-0.001 0-0.001 0-0.356-0.001-0.691-0.139-0.943-0.392l-9.561-9.56c-0.52-0.52-0.52-1.365-0.005-1.88l14.667-14.449c0.253-0.248 0.585-0.385 0.937-0.385h9.344c0.736 0 1.333 0.597 1.333 1.333zM24 6.673c-0.737 0-1.333 0.604-1.333 1.341s0.596 1.333 1.333 1.333 1.333-0.596 1.333-1.333v-0.015c0-0.737-0.596-1.327-1.333-1.327z"></path>
|
|
8
|
+
</svg>
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
export { TagMoneyIcon as T };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-Z9TEkBrE.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|