@salla.sa/twilight-components 2.14.397 → 2.14.399
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-DEUApaoo.js → filepond-CAA4JtVB.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DpbkmF17.js → filepond-plugin-file-poster-DhN_1Eck.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-2vBZokq_.js → filepond-plugin-file-validate-size-scR4RTHB.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CfjaZc13.js → filepond-plugin-file-validate-type-CbTXW7ia.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BlH-fzdn.js → filepond-plugin-image-edit-SJy1jzXB.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-NswqgdFa.js → filepond-plugin-image-exif-orientation-DQNZO8Ud.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-B6TZ_rY_.js → filepond-plugin-image-preview-i58wZeMz.js} +1 -1
- package/dist/cjs/{index-wC8KTotG.js → index-BuPGPqyc.js} +1 -1
- package/dist/cjs/{index-EmWT6iM3.js → index-V7mMf3rP.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_4.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +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 +10 -2
- 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-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-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-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 +26 -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.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.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-CZgvmZCV.js → vanilla-picker-DbwdhFuE.js} +1 -1
- package/dist/collection/components/salla-count-down/salla-count-down.js +10 -2
- package/dist/collection/components/salla-offer/salla-offer.js +25 -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-count-down2.js +9 -1
- package/dist/components/salla-offer-modal.js +7 -1
- package/dist/components/salla-offer.js +25 -3
- package/dist/esm/{filepond-D8Mm29CD.js → filepond-DKOO57n5.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CTaMDlLq.js → filepond-plugin-file-poster-CS4lvRo1.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DXF-mjVP.js → filepond-plugin-file-validate-size-BYRiiOWs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-C2pfze3X.js → filepond-plugin-file-validate-type-DnNDBwRb.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-Bzm4trYg.js → filepond-plugin-image-edit-yEG_5mtR.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DbgMKWOw.js → filepond-plugin-image-exif-orientation-U130gE_x.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DhdqMQgV.js → filepond-plugin-image-preview-LxQqDfJa.js} +1 -1
- package/dist/esm/{index-BKrJ84Ep.js → index-DxISp5Dq.js} +2 -2
- package/dist/esm/{index-DDxvWqSA.js → index-X5ULyXa3.js} +1 -1
- 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_4.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +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 +10 -2
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.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-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-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 +26 -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.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.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-DdNn5kr4.js → vanilla-picker-lDvnE-D_.js} +1 -1
- package/dist/twilight/{p-e0b066ca.entry.js → p-03ac4545.entry.js} +1 -1
- package/dist/twilight/{p-de3976d2.entry.js → p-0731e51b.entry.js} +1 -1
- package/dist/twilight/{p-7544d652.entry.js → p-07583fe7.entry.js} +1 -1
- package/dist/twilight/{p-44c8ebb1.entry.js → p-0f9a2dbc.entry.js} +1 -1
- package/dist/twilight/{p-ffdc7a27.entry.js → p-15c09018.entry.js} +1 -1
- package/dist/twilight/{p-63d3cb1a.entry.js → p-17048b56.entry.js} +1 -1
- package/dist/twilight/{p-0c90bcfd.entry.js → p-190bc2ed.entry.js} +1 -1
- package/dist/twilight/{p-db6104f8.entry.js → p-1b8edfaa.entry.js} +1 -1
- package/dist/twilight/{p-b62d3833.entry.js → p-1cb66ce2.entry.js} +1 -1
- package/dist/twilight/{p-66b20c8a.entry.js → p-247ba282.entry.js} +1 -1
- package/dist/twilight/{p-cd3a821e.entry.js → p-28a4ec95.entry.js} +1 -1
- package/dist/twilight/{p-2c75cc97.entry.js → p-303b388e.entry.js} +1 -1
- package/dist/twilight/{p-dc05e80d.entry.js → p-305a3e83.entry.js} +1 -1
- package/dist/twilight/{p-100063fe.entry.js → p-311f692c.entry.js} +1 -1
- package/dist/twilight/{p-b78ac40c.entry.js → p-363a6168.entry.js} +1 -1
- package/dist/twilight/p-3ab11cb2.entry.js +4 -0
- package/dist/twilight/{p-cd285e36.entry.js → p-3da0d921.entry.js} +1 -1
- package/dist/twilight/{p-ca7aecdf.entry.js → p-406b28a5.entry.js} +1 -1
- package/dist/twilight/{p-9e16208a.entry.js → p-416ee7be.entry.js} +1 -1
- package/dist/twilight/{p-a3f7ab52.entry.js → p-4287f5c0.entry.js} +1 -1
- package/dist/twilight/{p-59a290f7.entry.js → p-452ad23a.entry.js} +1 -1
- package/dist/twilight/{p-ae16ef5a.entry.js → p-47285e55.entry.js} +1 -1
- package/dist/twilight/{p-4ef397d9.entry.js → p-493268f8.entry.js} +1 -1
- package/dist/twilight/{p-23e70db5.entry.js → p-4a31f8f8.entry.js} +1 -1
- package/dist/twilight/{p-7adacc9f.entry.js → p-4ae05f7c.entry.js} +1 -1
- package/dist/twilight/{p-31dd7921.entry.js → p-4b0dc3e3.entry.js} +1 -1
- package/dist/twilight/{p-aee3481a.entry.js → p-4f1ee9e9.entry.js} +1 -1
- package/dist/twilight/{p-f8605a14.entry.js → p-518a9054.entry.js} +1 -1
- package/dist/twilight/{p-712e531b.entry.js → p-556138e9.entry.js} +1 -1
- package/dist/twilight/{p-f6d9c45a.entry.js → p-6163a9d6.entry.js} +1 -1
- package/dist/twilight/{p-cf17e872.entry.js → p-673bc264.entry.js} +1 -1
- package/dist/twilight/{p-9e36da67.entry.js → p-72bcf692.entry.js} +1 -1
- package/dist/twilight/{p-ee6cf223.entry.js → p-72e90c17.entry.js} +1 -1
- package/dist/twilight/{p-e41c906d.entry.js → p-742937f9.entry.js} +1 -1
- package/dist/twilight/{p-a6516402.entry.js → p-7aa3f615.entry.js} +1 -1
- package/dist/twilight/{p-884da7ba.entry.js → p-7bfcad78.entry.js} +1 -1
- package/dist/twilight/{p-c1a9bc8f.entry.js → p-7c24539c.entry.js} +1 -1
- package/dist/twilight/{p-fa6bd5fa.entry.js → p-7f26caf6.entry.js} +1 -1
- package/dist/twilight/{p-82f39a3b.entry.js → p-822ff1cc.entry.js} +1 -1
- package/dist/twilight/{p-8ebac51a.entry.js → p-82984ff3.entry.js} +1 -1
- package/dist/twilight/{p-8b51fe1b.entry.js → p-85f5a535.entry.js} +1 -1
- package/dist/twilight/{p-ab4aeb3c.entry.js → p-8f75e0b1.entry.js} +1 -1
- package/dist/twilight/{p-d190842c.entry.js → p-93369bed.entry.js} +1 -1
- package/dist/twilight/p-96933403.entry.js +4 -0
- package/dist/twilight/{p-784b1d49.entry.js → p-9faad03d.entry.js} +1 -1
- package/dist/twilight/{p-Dp1_Ecq8.js → p-BGvVD-bS.js} +1 -1
- package/dist/twilight/{p-C6cS-uai.js → p-Bo1KLgoM.js} +1 -1
- package/dist/twilight/{p-CQa2iqsn.js → p-CQfE2kYs.js} +1 -1
- package/dist/twilight/{p-BKggAW8Q.js → p-D08E5qXo.js} +1 -1
- package/dist/twilight/{p-DcGbIDvf.js → p-D1Jq4ACv.js} +1 -1
- package/dist/twilight/{p-M6TbAQHU.js → p-DHD7zD_h.js} +1 -1
- package/dist/twilight/{p-DP_Chfq3.js → p-DXSWjLoJ.js} +1 -1
- package/dist/twilight/{p-BKrJ84Ep.js → p-DxISp5Dq.js} +1 -1
- package/dist/twilight/{p-B7hsPe9I.js → p-FCyIqKZm.js} +1 -1
- package/dist/twilight/{p-DPjg_Ef2.js → p-UuGnO1eu.js} +1 -1
- package/dist/twilight/{p-24064688.entry.js → p-a2993a2b.entry.js} +1 -1
- package/dist/twilight/{p-42a86845.entry.js → p-a8dd51c4.entry.js} +1 -1
- package/dist/twilight/{p-8aa31209.entry.js → p-abbd02fa.entry.js} +1 -1
- package/dist/twilight/{p-98ada6c4.entry.js → p-ae54f9bc.entry.js} +1 -1
- package/dist/twilight/{p-89605f7e.entry.js → p-ae7c2ca0.entry.js} +1 -1
- package/dist/twilight/{p-1378815f.entry.js → p-b3ea6e7a.entry.js} +1 -1
- package/dist/twilight/{p-58c23cf5.entry.js → p-b82102f1.entry.js} +1 -1
- package/dist/twilight/{p-270ec237.entry.js → p-bb2b5df6.entry.js} +1 -1
- package/dist/twilight/{p-ea9bfa31.entry.js → p-be4cc9c6.entry.js} +1 -1
- package/dist/twilight/{p-2bf87ac2.entry.js → p-be6ad643.entry.js} +1 -1
- package/dist/twilight/{p-7ddf4ff5.entry.js → p-bea97114.entry.js} +1 -1
- package/dist/twilight/{p-b4695abb.entry.js → p-bec6513a.entry.js} +1 -1
- package/dist/twilight/{p-6eba86ed.entry.js → p-c92a444a.entry.js} +1 -1
- package/dist/twilight/{p-5e51958c.entry.js → p-ca4c81a2.entry.js} +1 -1
- package/dist/twilight/{p-2ce9e878.entry.js → p-d0f96984.entry.js} +1 -1
- package/dist/twilight/{p-0c036d7d.entry.js → p-d8ae24e2.entry.js} +1 -1
- package/dist/twilight/{p-f1b531e6.entry.js → p-da4036b3.entry.js} +1 -1
- package/dist/twilight/{p-e0149332.entry.js → p-db36ce3b.entry.js} +1 -1
- package/dist/twilight/{p-6a2828e7.entry.js → p-e220e7df.entry.js} +1 -1
- package/dist/twilight/{p-fbc0a34b.entry.js → p-e258284f.entry.js} +1 -1
- package/dist/twilight/{p-9a1d5090.entry.js → p-e9823101.entry.js} +1 -1
- package/dist/twilight/{p-435a502f.entry.js → p-e9b85cd1.entry.js} +1 -1
- package/dist/twilight/p-eb505b32.entry.js +4 -0
- package/dist/twilight/{p-266d173f.entry.js → p-eda6d855.entry.js} +1 -1
- package/dist/twilight/{p-8c2f0d07.entry.js → p-ee4d28d7.entry.js} +1 -1
- package/dist/twilight/{p-64208821.entry.js → p-f1af3f66.entry.js} +1 -1
- package/dist/twilight/{p-570c8ded.entry.js → p-f5c06ea6.entry.js} +1 -1
- package/dist/twilight/{p-ade810e1.entry.js → p-f682e39e.entry.js} +1 -1
- package/dist/twilight/{p-a5be5d2f.entry.js → p-f72d8eba.entry.js} +1 -1
- package/dist/twilight/{p-8d017d0f.entry.js → p-fd8d665c.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-count-down/salla-count-down.d.ts +2 -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 +6 -0
- package/dist/types/components.d.ts +2 -2
- package/package.json +5 -5
- package/dist/twilight/p-ad162110.entry.js +0 -4
- package/dist/twilight/p-b85f4713.entry.js +0 -4
- package/dist/twilight/p-e2344754.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-V7mMf3rP.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-V7mMf3rP.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
|
|
9
9
|
var Helper = require('./Helper-CU4Xuiki.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-V7mMf3rP.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-V7mMf3rP.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-V7mMf3rP.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
|
@@ -103,6 +103,14 @@ export class SallaCountDown {
|
|
|
103
103
|
const dd = String(day).padStart(2, '0');
|
|
104
104
|
return `${year}-${mm}-${dd}`;
|
|
105
105
|
}
|
|
106
|
+
// Zero-pad "YYYY-M-D" shapes since V8's ISO parser rejects unpadded month/day.
|
|
107
|
+
const isoLooseMatch = date.match(/^(\d{4})-(\d{1,2})-(\d{1,2})(?:[ T](\d{1,2}:\d{2}:\d{2}))?$/);
|
|
108
|
+
if (isoLooseMatch) {
|
|
109
|
+
const [, year, month, day, time] = isoLooseMatch;
|
|
110
|
+
const mm = String(month).padStart(2, '0');
|
|
111
|
+
const dd = String(day).padStart(2, '0');
|
|
112
|
+
return time ? `${year}-${mm}-${dd} ${time}` : `${year}-${mm}-${dd}`;
|
|
113
|
+
}
|
|
106
114
|
return date;
|
|
107
115
|
}
|
|
108
116
|
isValidDate(date) {
|
|
@@ -220,7 +228,7 @@ export class SallaCountDown {
|
|
|
220
228
|
return this.renderCountDown();
|
|
221
229
|
}
|
|
222
230
|
render() {
|
|
223
|
-
return (h(Host, { key: '
|
|
231
|
+
return (h(Host, { key: '5061e1fab03966fc62e46d4529c4ee07ed01df35', class: `s-count-down-wrapper ${this.preOrder && this.isValidDate(this.date) ? 's-count-down-pre-order' : ''} ${this.horizontal ? 's-count-down-horizontal' : ''} ${this.withButton ? 's-count-down-with-button' : ''} ${this.offerEnded ? 's-count-down-ended' : ''}` }, this.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
|
|
224
232
|
}
|
|
225
233
|
static get is() { return "salla-count-down"; }
|
|
226
234
|
static get originalStyleUrls() {
|
|
@@ -248,7 +256,7 @@ export class SallaCountDown {
|
|
|
248
256
|
"optional": false,
|
|
249
257
|
"docs": {
|
|
250
258
|
"tags": [],
|
|
251
|
-
"text": "The date to count down to.\n\nSupported formats:\n\n Parsed as KSA time (UTC+3):\n - \"YYYY-MM-DD HH:mm:ss\" (e.g. \"2023-05-22 16:37:52\")\n - \"YYYY-M-D HH:mm:ss\" (e.g. \"2023-5-22 16:37:52\")
|
|
259
|
+
"text": "The date to count down to.\n\nSupported formats:\n\n Parsed as KSA time (UTC+3):\n - \"YYYY-MM-DD HH:mm:ss\" (e.g. \"2023-05-22 16:37:52\")\n - \"YYYY-M-D HH:mm:ss\" (e.g. \"2023-5-22 16:37:52\") unpadded month/day accepted\n - \"YYYY-MM-DD\" (e.g. \"2023-05-22\") counts down to 23:59:59 of that day\n - \"YYYY-M-D\" (e.g. \"2026-5-15\", \"2026-05-5\") unpadded month/day accepted\n - \"MM-DD-YYYY\" (e.g. \"04-28-2026\") counts down to 23:59:59 of that day\n - \"MM-DD-YYYY,HH:mm:ss am/pm\" (e.g. \"12-23-2026,03:23:00 pm\")\n\n Parsed as browser local time:\n - \"YYYY/MM/DD HH:mm:ss\" (e.g. \"2023/05/22 16:37:52\")\n - \"YYYY/MM/DD\" (e.g. \"2023/05/22\") counts down to 23:59:59 of that day\n - \"MM/DD/YYYY HH:mm:ss\" (e.g. \"05/22/2023 16:37:52\")\n - \"MM/DD/YYYY\" (e.g. \"05/22/2023\") counts down to 23:59:59 of that day"
|
|
252
260
|
},
|
|
253
261
|
"getter": false,
|
|
254
262
|
"setter": false,
|
|
@@ -178,6 +178,9 @@ export class SallaOffer {
|
|
|
178
178
|
if ((details.apply_to === 'product' || details.apply_to === 'products') && details.targets) {
|
|
179
179
|
details.products = details.targets.map(id => allProducts[id]).filter(Boolean);
|
|
180
180
|
}
|
|
181
|
+
if (details.apply_to === 'brand' && details.targets) {
|
|
182
|
+
details.brands = details.targets;
|
|
183
|
+
}
|
|
181
184
|
if (offer.type === OfferType.BuyXGetY && details.get) {
|
|
182
185
|
const getY = details.get;
|
|
183
186
|
if (getY.source === 'products' && getY.source_value) {
|
|
@@ -298,7 +301,7 @@ export class SallaOffer {
|
|
|
298
301
|
const products = this.getOfferProducts(offer);
|
|
299
302
|
const hasProducts = products && products.length > 0;
|
|
300
303
|
const isCollapsed = this.collapsedOffers[offer.id] !== false; // Default to collapsed
|
|
301
|
-
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))) : (h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(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"] })))))));
|
|
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"] })))))));
|
|
302
305
|
}
|
|
303
306
|
renderOfferCard(offer, position = 1) {
|
|
304
307
|
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
|
|
@@ -306,9 +309,13 @@ export class SallaOffer {
|
|
|
306
309
|
: (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount)
|
|
307
310
|
? [
|
|
308
311
|
this.renderPercentageOrFixedOfferContent(offer),
|
|
309
|
-
this.renderOfferCategories(offer)
|
|
312
|
+
this.renderOfferCategories(offer),
|
|
313
|
+
this.renderOfferBrands(offer)
|
|
310
314
|
]
|
|
311
|
-
:
|
|
315
|
+
: [
|
|
316
|
+
this.renderOfferCategories(offer),
|
|
317
|
+
this.renderOfferBrands(offer)
|
|
318
|
+
], this.renderProductsLinkForModalCard(offer, false))))));
|
|
312
319
|
}
|
|
313
320
|
getOfferIcon(offerType) {
|
|
314
321
|
const iconMap = {
|
|
@@ -372,6 +379,21 @@ export class SallaOffer {
|
|
|
372
379
|
this.toggleCategoryExpansion(offer.id);
|
|
373
380
|
} }, 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', 'عرض'), " ", `+${categories.length - maxVisible}`, ' ', h("i", { class: "sicon-keyboard_arrow_down" }))))))));
|
|
374
381
|
}
|
|
382
|
+
renderOfferBrands(offer) {
|
|
383
|
+
const details = offer.details;
|
|
384
|
+
const brands = details.brands || [];
|
|
385
|
+
if (!brands.length)
|
|
386
|
+
return null;
|
|
387
|
+
const maxVisible = 3;
|
|
388
|
+
const isExpanded = this.expandedCategories[offer.id];
|
|
389
|
+
const shouldShowMore = brands.length > maxVisible;
|
|
390
|
+
const visibleBrands = isExpanded ? brands : brands.slice(0, maxVisible);
|
|
391
|
+
return (h("div", { class: "s-offer-categories" }, h("div", { class: "s-offer-categories-list" }, visibleBrands.map((brand, index) => (h("a", { key: index, class: "s-offer-category-item", href: brand.url }, brand.name))), shouldShowMore && (h("span", { class: "s-offer-categories-toggle", onClick: (e) => {
|
|
392
|
+
e.preventDefault();
|
|
393
|
+
e.stopPropagation();
|
|
394
|
+
this.toggleCategoryExpansion(offer.id);
|
|
395
|
+
} }, 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
|
+
}
|
|
375
397
|
/**
|
|
376
398
|
* Toggle category expansion for a specific offer
|
|
377
399
|
*/
|
|
@@ -107,6 +107,9 @@ export class SallaOfferModal {
|
|
|
107
107
|
else if (this.offer.get.categories?.length) {
|
|
108
108
|
this.offer_type = 'categories';
|
|
109
109
|
}
|
|
110
|
+
else if (this.offer.get.brands?.length) {
|
|
111
|
+
this.offer_type = 'brands';
|
|
112
|
+
}
|
|
110
113
|
this.modal.setTitle(this.offer_name);
|
|
111
114
|
this.emitPromotionViewed(this.offer);
|
|
112
115
|
}
|
|
@@ -176,6 +179,9 @@ export class SallaOfferModal {
|
|
|
176
179
|
.replace(/\{name\}/g, category.name)
|
|
177
180
|
.replace(/\{url\}/g, category.urls.customer) }))));
|
|
178
181
|
}
|
|
182
|
+
else if (this.offer.get.brands?.length) {
|
|
183
|
+
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)))));
|
|
184
|
+
}
|
|
179
185
|
}
|
|
180
186
|
//todo:: pass event then use sallaButton from it
|
|
181
187
|
// private addItem() {
|
|
@@ -193,7 +199,7 @@ export class SallaOfferModal {
|
|
|
193
199
|
// '</div>';
|
|
194
200
|
// }
|
|
195
201
|
render() {
|
|
196
|
-
return h("salla-modal", { key: '
|
|
202
|
+
return h("salla-modal", { key: '897f81ff7d0b0415075cd0a5d546b1dccb67916f', "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: '3b6909ea6be039e857ec72e1b58e92296fa7112a', slot: 'loading' }, h("div", { key: '297819c01b8aa686ea23aa2a3c7b652329e53831', class: "s-offer-modal-skeleton" }, h("div", { key: '28445bb4ee235498777153083e9538646ac9090a', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: '1e1b263a489b431cf72fcccd7ce9b104ee1c14b5', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: 'e0741d35d28615f4a24988a1896239ee46a574a7', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'ff6bbd049888bf003fce59045df80df81f65df73', height: '10px', width: '30%' })), h("div", { key: 'ef5a6f218efacf3534828a7612a01ff9fcf13589', 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: '2eda217eeb9c8e1b3019f3cee8790b56ed57e245', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: 'eb05f2002be23602919b118d7b8f3c0d355fadec', height: '15px', width: '50%' }), h("salla-skeleton", { key: '7350610c6b4b48b5bb8de0d674555c3001b14909', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
197
203
|
? [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 ?
|
|
198
204
|
h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
199
205
|
: '', 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'))),
|