@salla.sa/twilight-components 2.14.420 → 2.14.422
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-CTL5dLDP.js → filepond-Bj2Lr664.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-B-C_VVcX.js → filepond-plugin-file-poster-D6zjqOTW.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CzKg3e_q.js → filepond-plugin-file-validate-size-DW2JtTpK.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-vnM88Tws.js → filepond-plugin-file-validate-type-Cm_dx5vR.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DI2Woa_n.js → filepond-plugin-image-edit-CyB1FduP.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DfOieqsR.js → filepond-plugin-image-exif-orientation-CxcuYrF1.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BnoA6sXp.js → filepond-plugin-image-preview-CXF_Kqyu.js} +1 -1
- package/dist/cjs/{functions-DlISHrKx.js → functions-QULFiarR.js} +1 -1
- package/dist/cjs/{index-tOrYNNsf.js → index-C-KeWKxB.js} +1 -1
- package/dist/cjs/{index-vstkdqRz.js → index-CSI6rnkc.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +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 +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 +2 -2
- 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-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 +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_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 +3 -3
- 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/{tracked-promise-BJe1J-1V.js → tracked-promise-DTPdQpTt.js} +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-nnRs4Y1U.js → vanilla-picker-CmTZhXxo.js} +1 -1
- package/dist/collection/components/salla-loyalty/salla-loyalty.js +1 -1
- 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-loyalty.js +1 -1
- package/dist/components/salla-offer-modal.js +7 -1
- package/dist/components/salla-offer.js +23 -3
- package/dist/esm/{filepond-DcrhDD5e.js → filepond-CaO0jWZe.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-meDD1pU1.js → filepond-plugin-file-poster-x8WSmS0o.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Ta6h96xm.js → filepond-plugin-file-validate-size-CxlH6WN0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-PVDX_x_z.js → filepond-plugin-file-validate-type-qw3WFgZc.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BR1HO3-K.js → filepond-plugin-image-edit-DuhPVO0a.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CEWqrOc9.js → filepond-plugin-image-exif-orientation-BffsImgy.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-6ACW1Nfe.js → filepond-plugin-image-preview-VZtiw7aM.js} +1 -1
- package/dist/esm/{functions-DqpTrGHa.js → functions-DQPUS1s5.js} +1 -1
- package/dist/esm/{index-COvJOSNr.js → index-CDqmBYQb.js} +1 -1
- package/dist/esm/{index-Cb4NFvMH.js → index-DcQSprhU.js} +2 -2
- package/dist/esm/loader.js +2 -2
- 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 +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +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 +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 +2 -2
- 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-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 +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_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 +3 -3
- 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/{tracked-promise-Dl5Y2VO1.js → tracked-promise-CjUGdQ4e.js} +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-CuBrX87l.js → vanilla-picker-71UAczkS.js} +1 -1
- package/dist/twilight/{p-45f138dd.entry.js → p-00031f8b.entry.js} +1 -1
- package/dist/twilight/{p-c4f7d697.entry.js → p-013cfbf0.entry.js} +1 -1
- package/dist/twilight/{p-6cb4a60b.entry.js → p-0217da98.entry.js} +1 -1
- package/dist/twilight/{p-b8d87ece.entry.js → p-061c3ad0.entry.js} +1 -1
- package/dist/twilight/{p-6135ad16.entry.js → p-062ce0be.entry.js} +1 -1
- package/dist/twilight/p-14805623.entry.js +4 -0
- package/dist/twilight/{p-772b766c.entry.js → p-192e2bc3.entry.js} +1 -1
- package/dist/twilight/{p-293fa7ae.entry.js → p-1cf5f505.entry.js} +1 -1
- package/dist/twilight/{p-5fbf4640.entry.js → p-27cc8fc7.entry.js} +1 -1
- package/dist/twilight/{p-7ec0ac91.entry.js → p-28cd5556.entry.js} +1 -1
- package/dist/twilight/{p-15c3ec6b.entry.js → p-300dae0b.entry.js} +1 -1
- package/dist/twilight/{p-dfad4e49.entry.js → p-3115fa6f.entry.js} +1 -1
- package/dist/twilight/{p-e85f1f4a.entry.js → p-32a76526.entry.js} +1 -1
- package/dist/twilight/{p-d4d61e9d.entry.js → p-38ce7612.entry.js} +1 -1
- package/dist/twilight/{p-686eecd6.entry.js → p-3a3dd27f.entry.js} +1 -1
- package/dist/twilight/{p-73ba81cc.entry.js → p-3f01ef83.entry.js} +1 -1
- package/dist/twilight/{p-825cc1f7.entry.js → p-452d8cd0.entry.js} +1 -1
- package/dist/twilight/{p-5e62a40f.entry.js → p-489cca66.entry.js} +1 -1
- package/dist/twilight/{p-142ed3d7.entry.js → p-497b058a.entry.js} +1 -1
- package/dist/twilight/{p-4105a9cd.entry.js → p-4a8e7f09.entry.js} +1 -1
- package/dist/twilight/{p-9ba89557.entry.js → p-4c759f75.entry.js} +1 -1
- package/dist/twilight/p-4f6bff26.entry.js +4 -0
- package/dist/twilight/{p-68f21f26.entry.js → p-503f9bbf.entry.js} +1 -1
- package/dist/twilight/{p-59a083e4.entry.js → p-50b449bd.entry.js} +1 -1
- package/dist/twilight/{p-324dc99a.entry.js → p-5637acc5.entry.js} +1 -1
- package/dist/twilight/{p-85a15cc1.entry.js → p-587d6230.entry.js} +1 -1
- package/dist/twilight/{p-3e6f7773.entry.js → p-5e5ccdab.entry.js} +1 -1
- package/dist/twilight/{p-cb70fe7f.entry.js → p-63d47b05.entry.js} +1 -1
- package/dist/twilight/{p-213cee5f.entry.js → p-63e1b828.entry.js} +1 -1
- package/dist/twilight/{p-d6cfb7cf.entry.js → p-64f577be.entry.js} +1 -1
- package/dist/twilight/{p-f6da3fad.entry.js → p-6587c7d9.entry.js} +1 -1
- package/dist/twilight/{p-b5b0d57a.entry.js → p-69b6a7e6.entry.js} +1 -1
- package/dist/twilight/{p-4c3d17a1.entry.js → p-6c98089b.entry.js} +1 -1
- package/dist/twilight/{p-fd4eec62.entry.js → p-6ccbe91b.entry.js} +1 -1
- package/dist/twilight/{p-4a788634.entry.js → p-6d5b28c5.entry.js} +1 -1
- package/dist/twilight/{p-774461b2.entry.js → p-7282ff57.entry.js} +1 -1
- package/dist/twilight/{p-7d37007a.entry.js → p-77d1859e.entry.js} +1 -1
- package/dist/twilight/{p-40a41577.entry.js → p-80865031.entry.js} +1 -1
- package/dist/twilight/{p-e30f5be9.entry.js → p-8101bf16.entry.js} +1 -1
- package/dist/twilight/{p-f6bc9645.entry.js → p-81f18d48.entry.js} +1 -1
- package/dist/twilight/{p-3383da76.entry.js → p-868e3de6.entry.js} +1 -1
- package/dist/twilight/{p-3bd864fe.entry.js → p-8ad13a15.entry.js} +1 -1
- package/dist/twilight/{p-e94f7e62.entry.js → p-8ec0ba5b.entry.js} +1 -1
- package/dist/twilight/{p-d4b7ef45.entry.js → p-8eebefe9.entry.js} +1 -1
- package/dist/twilight/{p-95f3620c.entry.js → p-9170fe95.entry.js} +1 -1
- package/dist/twilight/{p-bc8070a0.entry.js → p-957bffb4.entry.js} +1 -1
- package/dist/twilight/{p-c4c7efc7.entry.js → p-97a43989.entry.js} +1 -1
- package/dist/twilight/{p-28208f79.entry.js → p-9924b574.entry.js} +1 -1
- package/dist/twilight/{p-e7fd1dab.entry.js → p-9cb39e42.entry.js} +1 -1
- package/dist/twilight/{p-DXTkDRjS.js → p-BCVUxip0.js} +1 -1
- package/dist/twilight/{p-BII4XUuF.js → p-BHk2Uou3.js} +1 -1
- package/dist/twilight/{p-14uV0Dqq.js → p-BTAUEZcN.js} +1 -1
- package/dist/twilight/{p-B9znPMU0.js → p-CN2sY_Li.js} +1 -1
- package/dist/twilight/{p-Ch9nMk63.js → p-CRRWZbuL.js} +1 -1
- package/dist/twilight/{p-DQjeyM6u.js → p-CT3zVv2d.js} +1 -1
- package/dist/twilight/{p-DvkL8Ozv.js → p-Ca8b1Y6p.js} +1 -1
- package/dist/twilight/{p-CBJQc5Lg.js → p-Cs04GLEl.js} +1 -1
- package/dist/twilight/{p-Cb4NFvMH.js → p-DcQSprhU.js} +1 -1
- package/dist/twilight/{p-pyjmoRFm.js → p-DeBNbBwy.js} +1 -1
- package/dist/twilight/{p-BIai7zYt.js → p-DgJJBXMW.js} +1 -1
- package/dist/twilight/{p-befbbd96.entry.js → p-a147d986.entry.js} +1 -1
- package/dist/twilight/{p-52f5ccfe.entry.js → p-a2fcbc1a.entry.js} +1 -1
- package/dist/twilight/{p-6fb7d4f8.entry.js → p-a44f888a.entry.js} +1 -1
- package/dist/twilight/{p-752f162a.entry.js → p-a4c32f61.entry.js} +1 -1
- package/dist/twilight/{p-5b7970ef.entry.js → p-a6282734.entry.js} +1 -1
- package/dist/twilight/{p-72e169bd.entry.js → p-acb769ec.entry.js} +1 -1
- package/dist/twilight/{p-65c18d39.entry.js → p-b0b2aeda.entry.js} +1 -1
- package/dist/twilight/{p-0bb36191.entry.js → p-b3a731c1.entry.js} +1 -1
- package/dist/twilight/{p-e64af075.entry.js → p-b3d565bd.entry.js} +1 -1
- package/dist/twilight/{p-691c3a17.entry.js → p-c13164b8.entry.js} +1 -1
- package/dist/twilight/{p-0c0df6f7.entry.js → p-c2a2158a.entry.js} +1 -1
- package/dist/twilight/{p-96343e93.entry.js → p-c34b5d8a.entry.js} +1 -1
- package/dist/twilight/{p-9b865b2c.entry.js → p-c49b9285.entry.js} +1 -1
- package/dist/twilight/{p-6f2edfae.entry.js → p-c9b8eaa4.entry.js} +1 -1
- package/dist/twilight/{p-628a8e24.entry.js → p-cfac18e6.entry.js} +1 -1
- package/dist/twilight/{p-9a6dfcde.entry.js → p-d188ddc3.entry.js} +1 -1
- package/dist/twilight/{p-2726ea01.entry.js → p-d46ab245.entry.js} +1 -1
- package/dist/twilight/{p-408ed55f.entry.js → p-d65db41e.entry.js} +1 -1
- package/dist/twilight/{p-15f015b1.entry.js → p-deffef72.entry.js} +1 -1
- package/dist/twilight/{p-03c91b77.entry.js → p-e08d36d6.entry.js} +1 -1
- package/dist/twilight/{p-fbfa12cf.entry.js → p-e2e790c2.entry.js} +1 -1
- package/dist/twilight/{p-b495fd3a.entry.js → p-e4f154ee.entry.js} +1 -1
- package/dist/twilight/{p-96b64fd6.entry.js → p-e79d468d.entry.js} +1 -1
- package/dist/twilight/{p-ebc19788.entry.js → p-e87d2534.entry.js} +1 -1
- package/dist/twilight/{p-7cba634a.entry.js → p-e8a3af2d.entry.js} +1 -1
- package/dist/twilight/{p-e9251839.entry.js → p-ea4ded2f.entry.js} +1 -1
- package/dist/twilight/{p-7444a1ed.entry.js → p-ecb69641.entry.js} +1 -1
- package/dist/twilight/{p-fca860eb.entry.js → p-f0f5e269.entry.js} +1 -1
- package/dist/twilight/{p-7e47c403.entry.js → p-f161933c.entry.js} +1 -1
- package/dist/twilight/{p-29f8baaa.entry.js → p-f2476ba0.entry.js} +1 -1
- package/dist/twilight/{p-38ae0da1.entry.js → p-f6ed04b2.entry.js} +1 -1
- package/dist/twilight/{p-8e96221d.entry.js → p-f77d4659.entry.js} +1 -1
- package/dist/twilight/{p-acf5c683.entry.js → p-fa5cfbbb.entry.js} +1 -1
- package/dist/twilight/{p-BCTUg3S2.js → p-l-JdSat8.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- 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/package.json +5 -5
- package/dist/twilight/p-95ff1eb1.entry.js +0 -4
- package/dist/twilight/p-aec7b53d.entry.js +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CSI6rnkc.js');
|
|
7
7
|
var specialDiscount = require('./special-discount-DC2oXurL.js');
|
|
8
8
|
var tag = require('./tag-D-PcUR33.js');
|
|
9
9
|
var cart2 = require('./cart2-B98PSAFN.js');
|
|
@@ -111,6 +111,9 @@ const SallaOfferModal = class {
|
|
|
111
111
|
else if (this.offer.get.brands?.length) {
|
|
112
112
|
this.offer_type = 'brands';
|
|
113
113
|
}
|
|
114
|
+
else if (this.offer.get.tags?.length) {
|
|
115
|
+
this.offer_type = 'tags';
|
|
116
|
+
}
|
|
114
117
|
this.modal.setTitle(this.offer_name);
|
|
115
118
|
this.emitPromotionViewed(this.offer);
|
|
116
119
|
}
|
|
@@ -183,6 +186,9 @@ const SallaOfferModal = class {
|
|
|
183
186
|
else if (this.offer.get.brands?.length) {
|
|
184
187
|
return index.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' }, index.h("div", { slot: 'items' }, this.offer.get.brands.map((brand) => index.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" }, index.h("div", { class: "s-offer-modal-brand-logo" }, index.h("img", { src: brand.logo, alt: brand.name })), index.h("span", { class: "s-offer-modal-badge-text" }, brand.name)))));
|
|
185
188
|
}
|
|
189
|
+
else if (this.offer.get.tags?.length) {
|
|
190
|
+
return index.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' }, index.h("div", { slot: 'items' }, this.offer.get.tags.map((tag$1) => index.h("a", { href: tag$1.url || salla.url.create('tags', tag$1.id), class: "s-offer-modal-badge s-offer-modal-slider-item s-offer-modal-tag-item" }, index.h("span", { class: "s-offer-modal-badge-icon", innerHTML: tag.SITag }), index.h("span", { class: "s-offer-modal-badge-text" }, tag$1.name)))));
|
|
191
|
+
}
|
|
186
192
|
}
|
|
187
193
|
//todo:: pass event then use sallaButton from it
|
|
188
194
|
// private addItem() {
|
|
@@ -200,7 +206,7 @@ const SallaOfferModal = class {
|
|
|
200
206
|
// '</div>';
|
|
201
207
|
// }
|
|
202
208
|
render() {
|
|
203
|
-
return index.h("salla-modal", { key: '
|
|
209
|
+
return index.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 : ''}` }, index.h("div", { key: '38ee273912aeec936b6762cac52eca16b65c2744', slot: 'loading' }, index.h("div", { key: '05911f31ca0884953185cbc1ac1c7b7ad007baf1', class: "s-offer-modal-skeleton" }, index.h("div", { key: '095055ba94627a2800e65be09a516286f3eea9c3', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: 'b1469e4e49e0d90602b9d0fac8672a9a063141f6', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: '7b738f6b9b153a49d03bb76a57690e2de9749d87', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '6d88e7ad3e419ab5a647bdd2215976bacd892e8d', height: '10px', width: '30%' })), index.h("div", { key: 'ee012a7a75a728ee76fa0888c487ac6d63c05efa', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => index.h("div", { class: "s-offer-modal-skeleton-item" }, index.h("salla-skeleton", { height: '9rem' }), index.h("div", { class: "s-offer-modal-skeleton-item-title" }, index.h("salla-skeleton", { height: '15px', width: '100%' })), index.h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, index.h("salla-skeleton", { height: '9px', width: '50%' }), index.h("div", { innerHTML: cart2.SICart2 }))))), index.h("div", { key: 'db71ea2e16e6d219bfeb1320b174e75d9e5fab19', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: '862658e0a5df3c1a2350c2a571f4f0e8f8a4d0af', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '0f3c58145caf12c90626742c8cbc768a442a3ce4', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
204
210
|
? [index.h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: specialDiscount.SpecialDiscountIcon }), this.getOfferContent(), index.h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
205
211
|
index.h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
206
212
|
: '', index.h("label", { class: "s-offer-modal-remember-label" }, index.h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CSI6rnkc.js');
|
|
7
7
|
|
|
8
8
|
var PageType;
|
|
9
9
|
(function (PageType) {
|
|
@@ -192,6 +192,9 @@ const SallaOffer = class {
|
|
|
192
192
|
if (details.apply_to === 'brand' && details.targets) {
|
|
193
193
|
details.brands = details.targets;
|
|
194
194
|
}
|
|
195
|
+
if (details.apply_to === 'tag' && details.targets) {
|
|
196
|
+
details.tags = details.targets;
|
|
197
|
+
}
|
|
195
198
|
if (offer.type === OfferType.BuyXGetY && details.get) {
|
|
196
199
|
const getY = details.get;
|
|
197
200
|
if (getY.source === 'products' && getY.source_value) {
|
|
@@ -312,7 +315,7 @@ const SallaOffer = class {
|
|
|
312
315
|
const products = this.getOfferProducts(offer);
|
|
313
316
|
const hasProducts = products && products.length > 0;
|
|
314
317
|
const isCollapsed = this.collapsedOffers[offer.id] !== false; // Default to collapsed
|
|
315
|
-
return (index.h("div", { class: "s-offer-drawer-card" }, index.h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, index.h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), index.h("div", { class: "s-offer-card-content" }, index.h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && index.h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (index.h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (index.h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer))) : (index.h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer))))), hasProducts && (index.h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, index.h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, index.h("div", { slot: "title", class: "s-offer-products-thumbnails" }, index.h("span", { class: "s-offer-products-title" }, this.products_link_text, index.h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), index.h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index$1) => (index.h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index$1 + 1}` } }, index.h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (index.h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), index.h("salla-accordion-body", null, index.h("div", { class: "s-offer-products-content" }, index.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"] })))))));
|
|
318
|
+
return (index.h("div", { class: "s-offer-drawer-card" }, index.h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, index.h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), index.h("div", { class: "s-offer-card-content" }, index.h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && index.h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (index.h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (index.h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))) : (index.h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))))), hasProducts && (index.h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, index.h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, index.h("div", { slot: "title", class: "s-offer-products-thumbnails" }, index.h("span", { class: "s-offer-products-title" }, this.products_link_text, index.h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), index.h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index$1) => (index.h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index$1 + 1}` } }, index.h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (index.h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), index.h("salla-accordion-body", null, index.h("div", { class: "s-offer-products-content" }, index.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"] })))))));
|
|
316
319
|
}
|
|
317
320
|
renderOfferCard(offer, position = 1) {
|
|
318
321
|
return (index.h("div", { class: "s-offer-slide-one-fourth swiper-slide", onClick: () => this.emitPromotionClicked(offer, position) }, index.h("div", { class: "s-offer-card" }, index.h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), index.h("div", { class: "s-offer-card-content" }, index.h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && index.h("p", { class: "s-offer-card-description" }, offer.description), index.h("div", { class: "s-offer-card-details" }, offer.type === OfferType.DiscountsTable
|
|
@@ -321,11 +324,13 @@ const SallaOffer = class {
|
|
|
321
324
|
? [
|
|
322
325
|
this.renderPercentageOrFixedOfferContent(offer),
|
|
323
326
|
this.renderOfferCategories(offer),
|
|
324
|
-
this.renderOfferBrands(offer)
|
|
327
|
+
this.renderOfferBrands(offer),
|
|
328
|
+
this.renderOfferTags(offer)
|
|
325
329
|
]
|
|
326
330
|
: [
|
|
327
331
|
this.renderOfferCategories(offer),
|
|
328
|
-
this.renderOfferBrands(offer)
|
|
332
|
+
this.renderOfferBrands(offer),
|
|
333
|
+
this.renderOfferTags(offer)
|
|
329
334
|
], this.renderProductsLinkForModalCard(offer, false))))));
|
|
330
335
|
}
|
|
331
336
|
getOfferIcon(offerType) {
|
|
@@ -405,6 +410,21 @@ const SallaOffer = class {
|
|
|
405
410
|
this.toggleCategoryExpansion(offer.id);
|
|
406
411
|
} }, isExpanded ? (index.h("span", null, index.h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (index.h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${brands.length - maxVisible}`, ' ', index.h("i", { class: "sicon-keyboard_arrow_down" }))))))));
|
|
407
412
|
}
|
|
413
|
+
renderOfferTags(offer) {
|
|
414
|
+
const details = offer.details;
|
|
415
|
+
const tags = details.tags || [];
|
|
416
|
+
if (!tags.length)
|
|
417
|
+
return null;
|
|
418
|
+
const maxVisible = 3;
|
|
419
|
+
const isExpanded = this.expandedCategories[offer.id];
|
|
420
|
+
const shouldShowMore = tags.length > maxVisible;
|
|
421
|
+
const visibleTags = isExpanded ? tags : tags.slice(0, maxVisible);
|
|
422
|
+
return (index.h("div", { class: "s-offer-categories" }, index.h("div", { class: "s-offer-categories-list" }, visibleTags.map((tag, index$1) => (index.h("a", { key: index$1, class: "s-offer-category-item", href: tag.url || salla.url.create('tags', tag.id) }, tag.name))), shouldShowMore && (index.h("span", { class: "s-offer-categories-toggle", onClick: (e) => {
|
|
423
|
+
e.preventDefault();
|
|
424
|
+
e.stopPropagation();
|
|
425
|
+
this.toggleCategoryExpansion(offer.id);
|
|
426
|
+
} }, isExpanded ? (index.h("span", null, index.h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (index.h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${tags.length - maxVisible}`, ' ', index.h("i", { class: "sicon-keyboard_arrow_down" }))))))));
|
|
427
|
+
}
|
|
408
428
|
/**
|
|
409
429
|
* Toggle category expansion for a specific offer
|
|
410
430
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CSI6rnkc.js');
|
|
7
7
|
|
|
8
8
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CSI6rnkc.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
|
|
9
9
|
var Helper = require('./Helper-CU4Xuiki.js');
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var functions = require('./functions-
|
|
6
|
+
var index = require('./index-CSI6rnkc.js');
|
|
7
|
+
var functions = require('./functions-QULFiarR.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
9
|
var tag = require('./tag-D-PcUR33.js');
|
|
10
10
|
var check = require('./check-BnVBPQNp.js');
|
|
11
11
|
var cancel = require('./cancel-B5SbMYEk.js');
|
|
12
|
-
var trackedPromise = require('./tracked-promise-
|
|
12
|
+
var trackedPromise = require('./tracked-promise-DTPdQpTt.js');
|
|
13
13
|
|
|
14
14
|
const sallaLoyaltyProgramCss$3 = "";
|
|
15
15
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CSI6rnkc.js');
|
|
7
7
|
|
|
8
8
|
const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CSI6rnkc.js');
|
|
7
7
|
var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
|
|
8
8
|
var bellRing = require('./bell-ring-BfKPinNo.js');
|
|
9
9
|
var cart = require('./cart-s-x1Fshk.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CSI6rnkc.js');
|
|
7
7
|
|
|
8
8
|
const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
|
|
9
9
|
|
package/dist/cjs/twilight.cjs.js
CHANGED
|
@@ -157,7 +157,7 @@ export class SallaLoyalty {
|
|
|
157
157
|
[
|
|
158
158
|
h("salla-list-tile", { id: 's-loyalty-header', class: "s-loyalty-header" }, h("div", { slot: "icon", class: "s-loyalty-header-icon", innerHTML: GiftImg }), h("div", { slot: "title", class: "s-loyalty-header-title" }, this.loyaltyProgram.prize_promotion_title), h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, this.loyaltyProgram.prize_promotion_description)),
|
|
159
159
|
h("salla-tabs", { key: this.tabsKey }, this.loyaltyProgram.prizes.map((prize) => h("salla-tab-header", { slot: "header", name: prize.title }, h("span", null, prize.title))), this.loyaltyProgram.prizes.map((prize, index) => h("salla-tab-content", { slot: "content", name: prize.title }, h("salla-slider", { class: "s-loyalty-slider", loop: false, "controls-outer": true, id: 'loyalty-popup-slider-' + index, type: "carousel" }, h("div", { slot: 'items' }, prize.items.map((item) => this.prizeItem(item))))))),
|
|
160
|
-
this.activeTabType?.toUpperCase() === 'FREE_PRODUCT'
|
|
160
|
+
this.activeTabType?.toUpperCase() === 'FREE_PRODUCT' && (salla.config.get('store.features') || []).includes('loyalty-system-v2')
|
|
161
161
|
? h("a", { href: salla.url.get(''), class: "s-loyalty-program-redeem-btn s-button-element s-button-btn s-button-solid s-button-wide s-button-primary s-button-wrap" }, salla.lang.get('pages.loyalty_program.shop_now'))
|
|
162
162
|
: h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, salla.lang.get('pages.loyalty_program.exchange_points')),
|
|
163
163
|
]
|
|
@@ -181,6 +181,9 @@ export class SallaOffer {
|
|
|
181
181
|
if (details.apply_to === 'brand' && details.targets) {
|
|
182
182
|
details.brands = details.targets;
|
|
183
183
|
}
|
|
184
|
+
if (details.apply_to === 'tag' && details.targets) {
|
|
185
|
+
details.tags = details.targets;
|
|
186
|
+
}
|
|
184
187
|
if (offer.type === OfferType.BuyXGetY && details.get) {
|
|
185
188
|
const getY = details.get;
|
|
186
189
|
if (getY.source === 'products' && getY.source_value) {
|
|
@@ -301,7 +304,7 @@ export class SallaOffer {
|
|
|
301
304
|
const products = this.getOfferProducts(offer);
|
|
302
305
|
const hasProducts = products && products.length > 0;
|
|
303
306
|
const isCollapsed = this.collapsedOffers[offer.id] !== false; // Default to collapsed
|
|
304
|
-
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"] })))))));
|
|
307
|
+
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"] })))))));
|
|
305
308
|
}
|
|
306
309
|
renderOfferCard(offer, position = 1) {
|
|
307
310
|
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
|
|
@@ -310,11 +313,13 @@ export class SallaOffer {
|
|
|
310
313
|
? [
|
|
311
314
|
this.renderPercentageOrFixedOfferContent(offer),
|
|
312
315
|
this.renderOfferCategories(offer),
|
|
313
|
-
this.renderOfferBrands(offer)
|
|
316
|
+
this.renderOfferBrands(offer),
|
|
317
|
+
this.renderOfferTags(offer)
|
|
314
318
|
]
|
|
315
319
|
: [
|
|
316
320
|
this.renderOfferCategories(offer),
|
|
317
|
-
this.renderOfferBrands(offer)
|
|
321
|
+
this.renderOfferBrands(offer),
|
|
322
|
+
this.renderOfferTags(offer)
|
|
318
323
|
], this.renderProductsLinkForModalCard(offer, false))))));
|
|
319
324
|
}
|
|
320
325
|
getOfferIcon(offerType) {
|
|
@@ -394,6 +399,21 @@ export class SallaOffer {
|
|
|
394
399
|
this.toggleCategoryExpansion(offer.id);
|
|
395
400
|
} }, 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" }))))))));
|
|
396
401
|
}
|
|
402
|
+
renderOfferTags(offer) {
|
|
403
|
+
const details = offer.details;
|
|
404
|
+
const tags = details.tags || [];
|
|
405
|
+
if (!tags.length)
|
|
406
|
+
return null;
|
|
407
|
+
const maxVisible = 3;
|
|
408
|
+
const isExpanded = this.expandedCategories[offer.id];
|
|
409
|
+
const shouldShowMore = tags.length > maxVisible;
|
|
410
|
+
const visibleTags = isExpanded ? tags : tags.slice(0, maxVisible);
|
|
411
|
+
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) => {
|
|
412
|
+
e.preventDefault();
|
|
413
|
+
e.stopPropagation();
|
|
414
|
+
this.toggleCategoryExpansion(offer.id);
|
|
415
|
+
} }, 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" }))))))));
|
|
416
|
+
}
|
|
397
417
|
/**
|
|
398
418
|
* Toggle category expansion for a specific offer
|
|
399
419
|
*/
|