@salla.sa/twilight-components 2.14.392 → 2.14.394
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-D-ur1GA-.js → filepond-C_gLbAbF.js} +10 -5
- package/dist/cjs/{filepond-plugin-file-poster-DigEeKId.js → filepond-plugin-file-poster-DXWo2FUU.js} +10 -6
- package/dist/cjs/{filepond-plugin-file-validate-size-R9el3Yro.js → filepond-plugin-file-validate-size-fBXMP7ez.js} +1 -1
- package/dist/cjs/filepond-plugin-file-validate-type-DEo7juC7.js +271 -0
- package/dist/cjs/{filepond-plugin-image-edit-bhI8kqN_.js → filepond-plugin-image-edit-4j4e1VEp.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-COXZUVRV.js → filepond-plugin-image-exif-orientation-DWqiXxv1.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-COP8QJBf.js → filepond-plugin-image-preview-emT_teia.js} +1 -1
- package/dist/cjs/{index-CGnPURjZ.js → index-B03mYCWz.js} +1206 -817
- package/dist/cjs/{index-BILBEE9f.js → index-Y-2uyQDK.js} +1 -1
- 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 +11 -11
- 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 +33 -9
- 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 +48 -3
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.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 +19 -13
- 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-DI3TImGd.js → vanilla-picker-CKZvBtHS.js} +1 -1
- package/dist/collection/components/salla-count-down/salla-count-down.js +32 -8
- package/dist/collection/components/salla-file-upload/salla-file-upload.css +1 -1
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notifications.js +47 -2
- package/dist/collection/components/salla-slider/salla-slider.css +9 -2
- package/dist/components/axios.js +1123 -791
- package/dist/components/filepond-plugin-file-poster.js +9 -5
- package/dist/components/filepond-plugin-file-validate-type.js +215 -231
- package/dist/components/filepond.js +9 -4
- package/dist/components/index.js +83 -26
- package/dist/components/salla-count-down2.js +32 -8
- package/dist/components/salla-file-upload2.js +1 -1
- package/dist/components/salla-notifications.js +47 -2
- package/dist/components/salla-slider2.js +18 -12
- package/dist/esm/{filepond-kTbl0kuh.js → filepond-Be7JObSq.js} +10 -5
- package/dist/esm/{filepond-plugin-file-poster-CyywnjKv.js → filepond-plugin-file-poster-DF0NWKCQ.js} +10 -6
- package/dist/esm/{filepond-plugin-file-validate-size-DgteZhje.js → filepond-plugin-file-validate-size-DJFlJHtE.js} +1 -1
- package/dist/esm/filepond-plugin-file-validate-type-DykpLW1Z.js +269 -0
- package/dist/esm/{filepond-plugin-image-edit-pZ_mETE7.js → filepond-plugin-image-edit-CyIHxrnW.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CjKYl7HL.js → filepond-plugin-image-exif-orientation-DbCOAhSu.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BzJTl_2A.js → filepond-plugin-image-preview-CGRGZcft.js} +1 -1
- package/dist/esm/{index-C23tPnnH.js → index-Cz6cYzxG.js} +1206 -817
- package/dist/esm/{index-3Kis_Ivk.js → index-_kPnZdm0.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 +11 -11
- 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 +33 -9
- 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 +48 -3
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit.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 +19 -13
- 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-CEy5x8Cf.js → vanilla-picker-C_YV5LtA.js} +1 -1
- package/dist/twilight/p-0200cddd.entry.js +4 -0
- package/dist/twilight/p-04dc0b71.entry.js +4 -0
- package/dist/twilight/{p-f251e744.entry.js → p-0bac200e.entry.js} +1 -1
- package/dist/twilight/{p-1899f283.entry.js → p-0ef99df1.entry.js} +1 -1
- package/dist/twilight/{p-82e3c734.entry.js → p-1087f0dd.entry.js} +1 -1
- package/dist/twilight/{p-2a1871c2.entry.js → p-17dd8b68.entry.js} +1 -1
- package/dist/twilight/{p-5d37cc33.entry.js → p-25a9bf1b.entry.js} +1 -1
- package/dist/twilight/{p-3745a7d0.entry.js → p-2602927d.entry.js} +1 -1
- package/dist/twilight/{p-54f65187.entry.js → p-268695ff.entry.js} +1 -1
- package/dist/twilight/{p-b6ded196.entry.js → p-34920aac.entry.js} +1 -1
- package/dist/twilight/p-3656b48d.entry.js +4 -0
- package/dist/twilight/{p-b4f07395.entry.js → p-3857beb4.entry.js} +1 -1
- package/dist/twilight/{p-f1f74b41.entry.js → p-39c601e3.entry.js} +1 -1
- package/dist/twilight/{p-c68f3054.entry.js → p-3c810881.entry.js} +1 -1
- package/dist/twilight/{p-7b717899.entry.js → p-3cf5c61f.entry.js} +1 -1
- package/dist/twilight/{p-9f23dd30.entry.js → p-413a7236.entry.js} +1 -1
- package/dist/twilight/{p-1dbaefb8.entry.js → p-42778349.entry.js} +1 -1
- package/dist/twilight/{p-bdcf3926.entry.js → p-45e4f6f4.entry.js} +1 -1
- package/dist/twilight/{p-3a5aaa20.entry.js → p-4680956b.entry.js} +1 -1
- package/dist/twilight/{p-4e00f827.entry.js → p-468b999f.entry.js} +1 -1
- package/dist/twilight/{p-e89812d8.entry.js → p-46d1823f.entry.js} +1 -1
- package/dist/twilight/{p-9deae4f4.entry.js → p-49db497f.entry.js} +1 -1
- package/dist/twilight/{p-ff6f769c.entry.js → p-4b033276.entry.js} +1 -1
- package/dist/twilight/{p-866b297b.entry.js → p-4f7bc9c3.entry.js} +1 -1
- package/dist/twilight/{p-81f6638f.entry.js → p-543ee624.entry.js} +1 -1
- package/dist/twilight/{p-81f648a2.entry.js → p-5957f774.entry.js} +1 -1
- package/dist/twilight/{p-97df32eb.entry.js → p-5a4f0b99.entry.js} +1 -1
- package/dist/twilight/{p-5ef1b170.entry.js → p-5a8c0fd2.entry.js} +1 -1
- package/dist/twilight/{p-05663bb1.entry.js → p-5ab7a295.entry.js} +1 -1
- package/dist/twilight/{p-ba4b672c.entry.js → p-5e496aaa.entry.js} +1 -1
- package/dist/twilight/{p-1c215c8c.entry.js → p-5f440956.entry.js} +1 -1
- package/dist/twilight/{p-face0448.entry.js → p-60fafcd9.entry.js} +1 -1
- package/dist/twilight/{p-2aa48902.entry.js → p-708f02db.entry.js} +1 -1
- package/dist/twilight/{p-8c6db6d7.entry.js → p-7829ea8a.entry.js} +1 -1
- package/dist/twilight/{p-c8aa5377.entry.js → p-7d3e592a.entry.js} +1 -1
- package/dist/twilight/{p-81f76d49.entry.js → p-81876026.entry.js} +1 -1
- package/dist/twilight/{p-194d87c6.entry.js → p-8306ef5e.entry.js} +1 -1
- package/dist/twilight/{p-f8b6967f.entry.js → p-8403cd93.entry.js} +1 -1
- package/dist/twilight/{p-ce9fee6d.entry.js → p-8474c4f6.entry.js} +1 -1
- package/dist/twilight/{p-549f59ed.entry.js → p-8552160a.entry.js} +1 -1
- package/dist/twilight/p-8c9b0e2a.entry.js +4 -0
- package/dist/twilight/{p-27f34c85.entry.js → p-8f2dfc57.entry.js} +1 -1
- package/dist/twilight/{p-1b1f9f71.entry.js → p-94b1a2ae.entry.js} +1 -1
- package/dist/twilight/{p-85ceef78.entry.js → p-95dad1af.entry.js} +1 -1
- package/dist/twilight/{p-d81ad2c3.entry.js → p-964b7db9.entry.js} +1 -1
- package/dist/twilight/{p-a76b3dba.entry.js → p-99735748.entry.js} +1 -1
- package/dist/twilight/{p-BgG5eq1x.js → p-BZKDQg1s.js} +1 -1
- package/dist/twilight/{p-IoI86ovS.js → p-B_sN7OnY.js} +1 -1
- package/dist/twilight/{p-BHjlzmYy.js → p-Bpi0aG1F.js} +1 -1
- package/dist/twilight/p-CP8rFQ5n.js +9 -0
- package/dist/twilight/p-CfmIbM8B.js +9 -0
- package/dist/twilight/{p-BqCmPfAo.js → p-CpO1SrBd.js} +2 -2
- package/dist/twilight/p-Cz6cYzxG.js +5 -0
- package/dist/twilight/p-Do4hSOGo.js +9 -0
- package/dist/twilight/p-JJmlh-ji.js +9 -0
- package/dist/twilight/{p-ff9b33bb.entry.js → p-a4aedcfe.entry.js} +1 -1
- package/dist/twilight/{p-651fe6e4.entry.js → p-b0d01f9f.entry.js} +1 -1
- package/dist/twilight/{p-eb5a8329.entry.js → p-b8404cfb.entry.js} +1 -1
- package/dist/twilight/{p-407828e4.entry.js → p-b8e3e180.entry.js} +1 -1
- package/dist/twilight/{p-d1dd1db6.entry.js → p-bd687cd0.entry.js} +1 -1
- package/dist/twilight/{p-67fe5680.entry.js → p-c0037fac.entry.js} +1 -1
- package/dist/twilight/{p-c3d0c062.entry.js → p-c121f8e4.entry.js} +1 -1
- package/dist/twilight/{p-d022b6ec.entry.js → p-c29907df.entry.js} +1 -1
- package/dist/twilight/{p-4e9e3ab1.entry.js → p-c39675ef.entry.js} +1 -1
- package/dist/twilight/{p-344c1910.entry.js → p-cb7a985e.entry.js} +1 -1
- package/dist/twilight/{p-346b55d6.entry.js → p-cbe620c4.entry.js} +1 -1
- package/dist/twilight/{p-b55da21d.entry.js → p-d2fd79b4.entry.js} +1 -1
- package/dist/twilight/{p-98eb495e.entry.js → p-d6cf0ffd.entry.js} +1 -1
- package/dist/twilight/{p-f201122a.entry.js → p-d8f60f2f.entry.js} +1 -1
- package/dist/twilight/{p-0652987b.entry.js → p-d99610f9.entry.js} +1 -1
- package/dist/twilight/{p-11767786.entry.js → p-dc897bdd.entry.js} +1 -1
- package/dist/twilight/{p-50621375.entry.js → p-dca46236.entry.js} +1 -1
- package/dist/twilight/{p-1ca75c99.entry.js → p-e48853c9.entry.js} +1 -1
- package/dist/twilight/{p-a50f7f70.entry.js → p-e4fdb206.entry.js} +1 -1
- package/dist/twilight/{p-1c8394db.entry.js → p-ed913ae7.entry.js} +1 -1
- package/dist/twilight/{p-3962c34c.entry.js → p-f067fcd6.entry.js} +1 -1
- package/dist/twilight/{p-a00e249b.entry.js → p-f2cd6975.entry.js} +1 -1
- package/dist/twilight/{p-713590e2.entry.js → p-f2ffbfbb.entry.js} +1 -1
- package/dist/twilight/p-f3166e60.entry.js +4 -0
- package/dist/twilight/{p-827edf95.entry.js → p-f8fcc8f4.entry.js} +1 -1
- package/dist/twilight/{p-775b42ec.entry.js → p-f9e52fd9.entry.js} +1 -1
- package/dist/twilight/{p-753464fd.entry.js → p-fcddbfc3.entry.js} +1 -1
- package/dist/twilight/{p-f2ee9ceb.entry.js → p-fe7ac9bb.entry.js} +1 -1
- package/dist/twilight/{p-744d6394.entry.js → p-ff14dca3.entry.js} +1 -1
- package/dist/twilight/{p-CU-HtXWh.js → p-mlFGjxcj.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-count-down/salla-count-down.d.ts +6 -0
- package/dist/types/components/salla-notifications/interfaces.d.ts +20 -0
- package/dist/types/components/salla-notifications/salla-notifications.d.ts +17 -0
- package/package.json +5 -5
- package/dist/cjs/filepond-plugin-file-validate-type-Dfy66STE.js +0 -287
- package/dist/esm/filepond-plugin-file-validate-type-BYs_scJr.js +0 -285
- package/dist/twilight/p-14529fd6.entry.js +0 -4
- package/dist/twilight/p-726513f8.entry.js +0 -4
- package/dist/twilight/p-AfW2b46_.js +0 -9
- package/dist/twilight/p-C23tPnnH.js +0 -5
- package/dist/twilight/p-CrYUKEsF.js +0 -9
- package/dist/twilight/p-HWjjIZ9_.js +0 -9
- package/dist/twilight/p-Ig1Tafsp.js +0 -9
- package/dist/twilight/p-c9001d7f.entry.js +0 -4
- package/dist/twilight/p-cf9573fd.entry.js +0 -4
- package/dist/twilight/p-e6124fab.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-B03mYCWz.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
|
@@ -76,8 +76,31 @@ export class SallaCountDown {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Normalize non-standard date formats into a consistently parseable string.
|
|
81
|
+
* Handles formats like "MM-DD-YYYY,HH:mm:ss am/pm" by converting to
|
|
82
|
+
* "MM/DD/YYYY HH:mm:ss am/pm".
|
|
83
|
+
*/
|
|
84
|
+
normalizeDate(date) {
|
|
85
|
+
// Match "MM-DD-YYYY,HH:mm:ss am/pm" pattern (comma between date and time, am/pm suffix)
|
|
86
|
+
const match = date.match(/^(\d{1,2})-(\d{1,2})-(\d{4}),(\d{1,2}):(\d{2}):(\d{2})\s*(am|pm)$/i);
|
|
87
|
+
if (match) {
|
|
88
|
+
const [, month, day, year, rawHour, min, sec, period] = match;
|
|
89
|
+
let hour = parseInt(rawHour, 10);
|
|
90
|
+
if (period.toLowerCase() === 'pm' && hour < 12)
|
|
91
|
+
hour += 12;
|
|
92
|
+
if (period.toLowerCase() === 'am' && hour === 12)
|
|
93
|
+
hour = 0;
|
|
94
|
+
const hh = String(hour).padStart(2, '0');
|
|
95
|
+
const mm = String(month).padStart(2, '0');
|
|
96
|
+
const dd = String(day).padStart(2, '0');
|
|
97
|
+
return `${year}-${mm}-${dd} ${hh}:${min}:${sec}`;
|
|
98
|
+
}
|
|
99
|
+
return date;
|
|
100
|
+
}
|
|
79
101
|
isValidDate(date) {
|
|
80
|
-
|
|
102
|
+
const normalized = this.normalizeDate(date);
|
|
103
|
+
let dateHasDashes = normalized.includes('-'), dateParts = normalized.split(' '), testedDate;
|
|
81
104
|
if (dateHasDashes) {
|
|
82
105
|
testedDate = dateParts[0].replace(/-/g, '/');
|
|
83
106
|
}
|
|
@@ -90,19 +113,20 @@ export class SallaCountDown {
|
|
|
90
113
|
return salla.helpers.number(digit, this.digits === 'en');
|
|
91
114
|
}
|
|
92
115
|
startCountDown() {
|
|
93
|
-
const
|
|
94
|
-
const
|
|
116
|
+
const normalized = this.normalizeDate(this.date);
|
|
117
|
+
const isIsoFormat = normalized.includes('-');
|
|
118
|
+
const isDateOnly = this.endOfDay || normalized.split(' ').length === 1;
|
|
95
119
|
let countDownTime;
|
|
96
120
|
if (isIsoFormat) {
|
|
97
121
|
// Backend KSA date — parse as UTC+3 explicitly
|
|
98
122
|
const dateStr = isDateOnly
|
|
99
|
-
? `${
|
|
100
|
-
: `${
|
|
123
|
+
? `${normalized.split(' ')[0]}T23:59:59+03:00`
|
|
124
|
+
: `${normalized.replace(' ', 'T')}+03:00`;
|
|
101
125
|
countDownTime = new Date(dateStr).getTime();
|
|
102
126
|
}
|
|
103
127
|
else {
|
|
104
|
-
// "MMM DD, YYYY HH:mm:ss"
|
|
105
|
-
const countDownDate = new Date(
|
|
128
|
+
// "MMM DD, YYYY HH:mm:ss" or "MM/DD/YYYY HH:mm:ss am/pm" format
|
|
129
|
+
const countDownDate = new Date(normalized);
|
|
106
130
|
if (isDateOnly) {
|
|
107
131
|
countDownDate.setHours(23, 59, 59, 999);
|
|
108
132
|
}
|
|
@@ -182,7 +206,7 @@ export class SallaCountDown {
|
|
|
182
206
|
return this.renderCountDown();
|
|
183
207
|
}
|
|
184
208
|
render() {
|
|
185
|
-
return (h(Host, { key: '
|
|
209
|
+
return (h(Host, { key: 'dbce8a84197d35634e2f29f7c5ae664eed9bcfce', 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()));
|
|
186
210
|
}
|
|
187
211
|
static get is() { return "salla-count-down"; }
|
|
188
212
|
static get originalStyleUrls() {
|
|
@@ -1594,7 +1594,7 @@ export class SallaFileUpload {
|
|
|
1594
1594
|
"FilePondErrorDescription": {
|
|
1595
1595
|
"location": "import",
|
|
1596
1596
|
"path": "filepond/types/index",
|
|
1597
|
-
"id": "../../node_modules/.pnpm/filepond@4.32.
|
|
1597
|
+
"id": "../../node_modules/.pnpm/filepond@4.32.12/node_modules/filepond/types/index.d.ts::FilePondErrorDescription"
|
|
1598
1598
|
},
|
|
1599
1599
|
"FilePondFile": {
|
|
1600
1600
|
"location": "import",
|
|
@@ -36,6 +36,49 @@ export class SallaNotifications {
|
|
|
36
36
|
}
|
|
37
37
|
return h("div", { class: "s-notifications-wrapper" }, h("div", { class: "s-notifications-container", ref: wrapper => this.wrapper = wrapper }), this.nextPage && (h("div", { class: "s-infinite-scroll-wrapper", ref: status => this.status = status }, h("button", { onClick: () => this.loadMore(), class: "s-infinite-scroll-btn s-button-btn s-button-primary" }, h("span", { class: "s-button-text s-infinite-scroll-btn-text" }, this.loadMoreText ?? this.load_more_text_trans), h("span", { class: "s-button-loader s-button-loader-center s-infinite-scroll-btn-loader", ref: btnLoader => this.btnLoader = btnLoader, style: { "display": "none" } })))));
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Detect whether the response uses the new API format (v2) by checking for `cursor` key.
|
|
41
|
+
*/
|
|
42
|
+
isV2Response(resp) {
|
|
43
|
+
return !!resp.cursor;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Map a single v2 notification to the legacy Notification interface.
|
|
47
|
+
*/
|
|
48
|
+
normalizeNotification(item) {
|
|
49
|
+
return {
|
|
50
|
+
title: item.title,
|
|
51
|
+
sub_title: item.body,
|
|
52
|
+
date: item.time_ago,
|
|
53
|
+
is_new: !item.is_read,
|
|
54
|
+
url: item.url,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Normalize a v2 cursor pagination to the legacy Pagination format.
|
|
59
|
+
*/
|
|
60
|
+
normalizePagination(cursor) {
|
|
61
|
+
return {
|
|
62
|
+
count: cursor.count,
|
|
63
|
+
currentPage: cursor.current,
|
|
64
|
+
links: {
|
|
65
|
+
next: cursor.next != null ? String(cursor.next) : undefined,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Middleware that normalizes any API response to the legacy shape.
|
|
71
|
+
* If the response is already in legacy format, it passes through unchanged.
|
|
72
|
+
*/
|
|
73
|
+
normalizeResponse(resp) {
|
|
74
|
+
if (this.isV2Response(resp)) {
|
|
75
|
+
return {
|
|
76
|
+
data: (resp.data || []).map((item) => this.normalizeNotification(item)),
|
|
77
|
+
pagination: this.normalizePagination(resp.cursor),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
return resp;
|
|
81
|
+
}
|
|
39
82
|
handleResponse(notificationsList) {
|
|
40
83
|
return notificationsList.map(notification => this.getNotificationCard(notification));
|
|
41
84
|
}
|
|
@@ -53,8 +96,9 @@ export class SallaNotifications {
|
|
|
53
96
|
this.infiniteScroll?.on('request', _response => {
|
|
54
97
|
this.loading();
|
|
55
98
|
});
|
|
56
|
-
this.infiniteScroll?.on('load',
|
|
99
|
+
this.infiniteScroll?.on('load', rawResponse => {
|
|
57
100
|
this.loading(false);
|
|
101
|
+
const response = this.normalizeResponse(rawResponse);
|
|
58
102
|
this.pagination = response.pagination;
|
|
59
103
|
this.nextPage = response.pagination.links?.next || null;
|
|
60
104
|
this.handleResponse(response.data).forEach(data => this.wrapper.append(data));
|
|
@@ -67,7 +111,8 @@ export class SallaNotifications {
|
|
|
67
111
|
}
|
|
68
112
|
async loadInitialData() {
|
|
69
113
|
await salla.api.notifications.fetch({ "per_page": this.itemPerPage })
|
|
70
|
-
.then(
|
|
114
|
+
.then(rawResp => {
|
|
115
|
+
const resp = this.normalizeResponse(rawResp);
|
|
71
116
|
this.pagination = resp.pagination;
|
|
72
117
|
this.total = resp.pagination.total;
|
|
73
118
|
this.nextPage = resp.pagination.links?.next || null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 12.1.
|
|
2
|
+
* Swiper 12.1.3
|
|
3
3
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: March 24, 2026
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
:root {
|
|
@@ -313,6 +313,8 @@
|
|
|
313
313
|
.swiper-navigation-disabled & {
|
|
314
314
|
display: none !important;
|
|
315
315
|
}
|
|
316
|
+
|
|
317
|
+
::slotted(svg),
|
|
316
318
|
svg {
|
|
317
319
|
width: 100%;
|
|
318
320
|
height: 100%;
|
|
@@ -335,6 +337,7 @@
|
|
|
335
337
|
.swiper-button-prev {
|
|
336
338
|
left: var(--swiper-navigation-sides-offset, 4px);
|
|
337
339
|
right: auto;
|
|
340
|
+
::slotted(.swiper-navigation-icon),
|
|
338
341
|
.swiper-navigation-icon {
|
|
339
342
|
transform: rotate(180deg);
|
|
340
343
|
}
|
|
@@ -370,12 +373,14 @@
|
|
|
370
373
|
& ~ .swiper-button-prev,
|
|
371
374
|
&.swiper-rtl .swiper-button-next,
|
|
372
375
|
&.swiper-rtl ~ .swiper-button-next {
|
|
376
|
+
::slotted(.swiper-navigation-icon),
|
|
373
377
|
.swiper-navigation-icon {
|
|
374
378
|
transform: rotate(180deg);
|
|
375
379
|
}
|
|
376
380
|
}
|
|
377
381
|
&.swiper-rtl .swiper-button-prev,
|
|
378
382
|
&.swiper-rtl ~ .swiper-button-prev {
|
|
383
|
+
::slotted(.swiper-navigation-icon),
|
|
379
384
|
.swiper-navigation-icon {
|
|
380
385
|
transform: rotate(0deg);
|
|
381
386
|
}
|
|
@@ -395,6 +400,7 @@
|
|
|
395
400
|
~ .swiper-button-prev {
|
|
396
401
|
top: var(--swiper-navigation-sides-offset, 4px);
|
|
397
402
|
bottom: auto;
|
|
403
|
+
::slotted(.swiper-navigation-icon),
|
|
398
404
|
.swiper-navigation-icon {
|
|
399
405
|
transform: rotate(-90deg);
|
|
400
406
|
}
|
|
@@ -403,6 +409,7 @@
|
|
|
403
409
|
~ .swiper-button-next {
|
|
404
410
|
bottom: var(--swiper-navigation-sides-offset, 4px);
|
|
405
411
|
top: auto;
|
|
412
|
+
::slotted(.swiper-navigation-icon),
|
|
406
413
|
.swiper-navigation-icon {
|
|
407
414
|
transform: rotate(90deg);
|
|
408
415
|
}
|