@salla.sa/twilight-components 2.14.388 → 2.14.390
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-JwtIy_PZ.js → filepond-DFct_qpx.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-HbVPHajC.js → filepond-plugin-file-poster-B_Lr4Ulx.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BfnCLQbe.js → filepond-plugin-file-validate-size-BqkoO_hr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-ZlRC1VfY.js → filepond-plugin-file-validate-type-DyTH8eH0.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DiQE1wz9.js → filepond-plugin-image-edit-Cxg-WjCl.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DIwNNDxM.js → filepond-plugin-image-exif-orientation-BSVkpMNu.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-C51b46QP.js → filepond-plugin-image-preview-DNcmQwuK.js} +1 -1
- package/dist/cjs/{index-DO-q5keQ.js → index-B8vh41va.js} +27 -11
- package/dist/cjs/{index-ByBROVOr.js → index-DnQaQgSB.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +63 -0
- 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 +196 -0
- package/dist/cjs/salla-custom-fields.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-gifting.cjs.entry.js +91 -16
- 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-accordion-body_3.cjs.entry.js → salla-map.cjs.entry.js} +1 -57
- 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 +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 +95 -0
- package/dist/cjs/salla-order-edit.cjs.entry.js +181 -0
- 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-count-down_2.cjs.entry.js → salla-product-card.cjs.entry.js} +1 -160
- 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 +2 -2
- package/dist/cjs/{vanilla-picker-DiJq-dd5.js → vanilla-picker-BZ48aiBi.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/salla-count-down/salla-count-down.css +4 -0
- package/dist/collection/components/salla-count-down/salla-count-down.js +122 -13
- package/dist/collection/components/salla-gifting/salla-gifting.js +96 -15
- package/dist/collection/components/salla-order-edit/interfaces.js +1 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-item.css +0 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-item.js +185 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.css +0 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.js +256 -0
- package/dist/components/index.js +3 -3
- package/dist/components/salla-count-down2.js +49 -13
- package/dist/components/salla-gifting.js +96 -15
- package/dist/components/salla-order-edit-item.d.ts +11 -0
- package/dist/components/salla-order-edit-item.js +9 -0
- package/dist/components/salla-order-edit-item2.js +184 -0
- package/dist/components/salla-order-edit.d.ts +11 -0
- package/dist/components/salla-order-edit.js +291 -0
- package/dist/components/salla-quantity-input.js +1 -125
- package/dist/components/salla-quantity-input2.js +130 -0
- package/dist/esm/{filepond-CtRmlCu3.js → filepond-C9FlNeRD.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CMkOcEkV.js → filepond-plugin-file-poster-BfX4exY0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DzG8gDvA.js → filepond-plugin-file-validate-size-B5-cSfmI.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DSshuV-e.js → filepond-plugin-file-validate-type-DKvNhI35.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-soyMBqQc.js → filepond-plugin-image-edit-DV1-ZICm.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Bt8OVYG8.js → filepond-plugin-image-exif-orientation-idrSYwAk.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-N0oEw9xZ.js → filepond-plugin-image-preview-os8BCUOs.js} +1 -1
- package/dist/esm/{index-CvIpy7Cj.js → index-BcMtCVX0.js} +27 -11
- package/dist/esm/{index-Cw-jhhOv.js → index-DQCZHaDc.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +60 -0
- 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 +194 -0
- package/dist/esm/salla-custom-fields.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-gifting.entry.js +91 -16
- 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-accordion-body_3.entry.js → salla-map.entry.js} +2 -56
- 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 +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 +93 -0
- package/dist/esm/salla-order-edit.entry.js +179 -0
- 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-count-down_2.entry.js → salla-product-card.entry.js} +2 -160
- 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 +3 -3
- package/dist/esm/{vanilla-picker-CGGBRKTl.js → vanilla-picker-BBEKwYz7.js} +1 -1
- package/dist/twilight/{p-aa5bf3b5.entry.js → p-00a2d261.entry.js} +1 -1
- package/dist/twilight/{p-073ee1c3.entry.js → p-0b27ca19.entry.js} +1 -1
- package/dist/twilight/{p-7a87c0a9.entry.js → p-0d0ca330.entry.js} +1 -1
- package/dist/twilight/{p-d215b7d2.entry.js → p-1054b66c.entry.js} +1 -1
- package/dist/twilight/{p-a2c5e7bc.entry.js → p-129d6c0c.entry.js} +1 -1
- package/dist/twilight/{p-540297d6.entry.js → p-15a052c7.entry.js} +1 -1
- package/dist/twilight/{p-d4b83f2a.entry.js → p-207950ad.entry.js} +1 -1
- package/dist/twilight/{p-507fac68.entry.js → p-2548fa30.entry.js} +1 -1
- package/dist/twilight/{p-8bd3ba9e.entry.js → p-26cb1fdf.entry.js} +1 -1
- package/dist/twilight/{p-6ca09b34.entry.js → p-2b74eb03.entry.js} +1 -1
- package/dist/twilight/{p-3c8e6e9f.entry.js → p-359b2de3.entry.js} +1 -1
- package/dist/twilight/{p-7c8fe050.entry.js → p-35a2ea22.entry.js} +1 -1
- package/dist/twilight/{p-02aa05b3.entry.js → p-3653ad70.entry.js} +1 -1
- package/dist/twilight/{p-2200f944.entry.js → p-374057f7.entry.js} +1 -1
- package/dist/twilight/p-374c63c7.entry.js +4 -0
- package/dist/twilight/{p-b1e8296d.entry.js → p-412643eb.entry.js} +1 -1
- package/dist/twilight/{p-3d3b3856.entry.js → p-47cd7ceb.entry.js} +1 -1
- package/dist/twilight/{p-31458cbf.entry.js → p-47d1003b.entry.js} +1 -1
- package/dist/twilight/{p-2dfe2197.entry.js → p-48353d62.entry.js} +1 -1
- package/dist/twilight/{p-da155135.entry.js → p-4866439f.entry.js} +1 -1
- package/dist/twilight/{p-d00fc4bf.entry.js → p-4f3964d8.entry.js} +1 -1
- package/dist/twilight/{p-1cb9d96c.entry.js → p-4fefd2df.entry.js} +1 -1
- package/dist/twilight/{p-5f52e482.entry.js → p-5174aa32.entry.js} +1 -1
- package/dist/twilight/{p-8043f8ea.entry.js → p-58c66b0d.entry.js} +1 -1
- package/dist/twilight/{p-ce560f66.entry.js → p-58fa3856.entry.js} +1 -1
- package/dist/twilight/{p-59758658.entry.js → p-596525f9.entry.js} +1 -1
- package/dist/twilight/p-5a629abd.entry.js +4 -0
- package/dist/twilight/{p-b2537237.entry.js → p-5d2ebf97.entry.js} +1 -1
- package/dist/twilight/{p-b4f431bf.entry.js → p-65df6042.entry.js} +1 -1
- package/dist/twilight/{p-694aa670.entry.js → p-67bc002a.entry.js} +1 -1
- package/dist/twilight/{p-221456be.entry.js → p-67cf0723.entry.js} +1 -1
- package/dist/twilight/{p-a97f10a1.entry.js → p-687a597a.entry.js} +1 -1
- package/dist/twilight/{p-9f3f2ac3.entry.js → p-689701b4.entry.js} +1 -1
- package/dist/twilight/{p-e0b13c19.entry.js → p-70e478a6.entry.js} +1 -1
- package/dist/twilight/{p-189b3238.entry.js → p-74472650.entry.js} +1 -1
- package/dist/twilight/{p-4a4c1969.entry.js → p-7855ae93.entry.js} +1 -1
- package/dist/twilight/p-8c86ba24.entry.js +4 -0
- package/dist/twilight/{p-300be242.entry.js → p-8d4d4a0e.entry.js} +1 -1
- package/dist/twilight/{p-93623f07.entry.js → p-8fbd92a2.entry.js} +1 -1
- package/dist/twilight/{p-49b7c969.entry.js → p-983f9f1e.entry.js} +1 -1
- package/dist/twilight/{p-f81195ae.entry.js → p-998a3b5f.entry.js} +1 -1
- package/dist/twilight/{p-e46cb169.entry.js → p-9bf0a7df.entry.js} +1 -1
- package/dist/twilight/{p-c43be30b.entry.js → p-9ff1a4dc.entry.js} +1 -1
- package/dist/twilight/{p-B1ZkITMY.js → p-B21QGKK8.js} +1 -1
- package/dist/twilight/{p-uADDAGsE.js → p-Bc2ExcVy.js} +1 -1
- package/dist/twilight/{p-CvIpy7Cj.js → p-BcMtCVX0.js} +2 -2
- package/dist/twilight/{p-D26J1_uI.js → p-C3Z9uRGX.js} +1 -1
- package/dist/twilight/{p-VRwnn1Qc.js → p-DIeaJrGb.js} +1 -1
- package/dist/twilight/{p-BXOq5BwG.js → p-DbdyybJU.js} +1 -1
- package/dist/twilight/{p-NiLajaRX.js → p-UFbwqsEd.js} +1 -1
- package/dist/twilight/{p-3589bed2.entry.js → p-a39a0eb8.entry.js} +1 -1
- package/dist/twilight/{p-402fc86d.entry.js → p-a54364a3.entry.js} +1 -1
- package/dist/twilight/{p-1b097cea.entry.js → p-a6bb162e.entry.js} +1 -1
- package/dist/twilight/{p-242b6421.entry.js → p-a6cbb4f5.entry.js} +1 -1
- package/dist/twilight/{p-73113e85.entry.js → p-a8fd427d.entry.js} +1 -1
- package/dist/twilight/{p-23099ba2.entry.js → p-a909028d.entry.js} +1 -1
- package/dist/twilight/{p-d07f5e44.entry.js → p-acd70c2f.entry.js} +1 -1
- package/dist/twilight/{p-306c4986.entry.js → p-ae1e338f.entry.js} +1 -1
- package/dist/twilight/{p-48c94220.entry.js → p-b19ace8d.entry.js} +1 -1
- package/dist/twilight/p-b697172b.entry.js +4 -0
- package/dist/twilight/{p-04072cae.entry.js → p-bb98a631.entry.js} +1 -1
- package/dist/twilight/{p-5638111c.entry.js → p-c18179ed.entry.js} +1 -1
- package/dist/twilight/{p-a41f0590.entry.js → p-c2d74b3d.entry.js} +1 -1
- package/dist/twilight/{p-f7f592ab.entry.js → p-c45f2128.entry.js} +1 -1
- package/dist/twilight/p-c5522363.entry.js +4 -0
- package/dist/twilight/{p-249c9d98.entry.js → p-c6e7b06f.entry.js} +1 -1
- package/dist/twilight/{p-bc65bb02.entry.js → p-cc6c624c.entry.js} +1 -1
- package/dist/twilight/{p-wnPgaQoR.js → p-ctIqN5Fo.js} +1 -1
- package/dist/twilight/{p-4c007dc0.entry.js → p-d607bfd3.entry.js} +1 -1
- package/dist/twilight/{p-be1c54e6.entry.js → p-d862646f.entry.js} +1 -1
- package/dist/twilight/{p-e3b4a179.entry.js → p-dbcc0a7f.entry.js} +1 -1
- package/dist/twilight/p-dc6f4d54.entry.js +4 -0
- package/dist/twilight/{p-3c982608.entry.js → p-deb74e2e.entry.js} +1 -1
- package/dist/twilight/{p-4fc10acd.entry.js → p-dfa729d4.entry.js} +1 -1
- package/dist/twilight/p-e7671432.entry.js +4 -0
- package/dist/twilight/{p-4da987fc.entry.js → p-e7932d3d.entry.js} +1 -1
- package/dist/twilight/{p-e9be8c03.entry.js → p-e879fb84.entry.js} +1 -1
- package/dist/twilight/p-e9c7f99a.entry.js +4 -0
- package/dist/twilight/{p-a248f209.entry.js → p-f100cc25.entry.js} +1 -1
- package/dist/twilight/{p-ed08f5e5.entry.js → p-f63999f8.entry.js} +1 -1
- package/dist/twilight/{p-BlMSs0A2.js → p-fbLtV-T9.js} +1 -1
- package/dist/twilight/{p-6257e0cd.entry.js → p-fd22cd01.entry.js} +1 -1
- package/dist/twilight/{p-DWxyBEuT.js → p-ukob-enB.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-count-down/salla-count-down.d.ts +24 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +4 -0
- package/dist/types/components/salla-gifting/intefaces.d.ts +1 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +10 -1
- package/dist/types/components/salla-order-edit/interfaces.d.ts +114 -0
- package/dist/types/components/salla-order-edit/salla-order-edit-item.d.ts +35 -0
- package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +42 -0
- package/dist/types/components.d.ts +170 -0
- package/package.json +5 -5
- package/dist/twilight/p-06eb15e2.entry.js +0 -4
- package/dist/twilight/p-348106f0.entry.js +0 -4
- package/dist/twilight/p-7020a339.entry.js +0 -4
- package/dist/twilight/p-e79ad638.entry.js +0 -4
|
@@ -3,167 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-B8vh41va.js');
|
|
7
7
|
var star2 = require('./star2-R146a27p.js');
|
|
8
8
|
|
|
9
|
-
const sallaCountDownCss = "";
|
|
10
|
-
|
|
11
|
-
const SallaCountDown = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
/**
|
|
15
|
-
* The size of the count down
|
|
16
|
-
* */
|
|
17
|
-
this.size = 'md';
|
|
18
|
-
/**
|
|
19
|
-
* The color of the count down
|
|
20
|
-
* */
|
|
21
|
-
this.color = 'dark';
|
|
22
|
-
/**
|
|
23
|
-
* The digits lang to show in the count down
|
|
24
|
-
* */
|
|
25
|
-
this.digits = 'auto';
|
|
26
|
-
this.daysLabel = salla.lang.getWithDefault('pages.checkout.day', 'يوم');
|
|
27
|
-
this.hoursLabel = salla.lang.getWithDefault('pages.checkout.hour', 'ساعة');
|
|
28
|
-
this.minutesLabel = salla.lang.getWithDefault('pages.checkout.minute', 'دقيقة');
|
|
29
|
-
this.secondsLabel = salla.lang.getWithDefault('pages.checkout.second', 'ثانية');
|
|
30
|
-
this.endLabel = salla.lang.getWithDefault('pages.checkout.offer_ended', 'انتهت مدة العرض');
|
|
31
|
-
this.invalidDate = salla.lang.getWithDefault('blocks.buy_as_gift.incorrect_date', 'الرجاء إدخال الموعد بشكل صحيح');
|
|
32
|
-
this.offerEnded = false;
|
|
33
|
-
this.days = this.number(0);
|
|
34
|
-
this.hours = this.number(0);
|
|
35
|
-
this.minutes = this.number(0);
|
|
36
|
-
this.seconds = this.number(0);
|
|
37
|
-
salla.lang.onLoaded(() => {
|
|
38
|
-
this.daysLabel = salla.lang.getWithDefault('pages.checkout.day', 'يوم');
|
|
39
|
-
this.hoursLabel = salla.lang.getWithDefault('pages.checkout.hour', 'ساعة');
|
|
40
|
-
this.minutesLabel = salla.lang.getWithDefault('pages.checkout.minute', 'دقيقة');
|
|
41
|
-
this.invalidDate = salla.lang.getWithDefault('blocks.buy_as_gift.incorrect_date', 'الرجاء إدخال الموعد بشكل صحيح');
|
|
42
|
-
this.secondsLabel = salla.lang.getWithDefault('pages.checkout.second', 'ثانية');
|
|
43
|
-
this.endLabel = salla.lang.getWithDefault('pages.checkout.offer_ended', 'انتهت مدة العرض');
|
|
44
|
-
});
|
|
45
|
-
if (this.date && this.isValidDate(this.date)) {
|
|
46
|
-
this.startCountDown();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* End the count down
|
|
51
|
-
* */
|
|
52
|
-
async endCountDown() {
|
|
53
|
-
clearInterval(this.countInterval);
|
|
54
|
-
this.offerEnded = true;
|
|
55
|
-
this.days = this.number(0);
|
|
56
|
-
this.hours = this.number(0);
|
|
57
|
-
this.minutes = this.number(0);
|
|
58
|
-
this.seconds = this.number(0);
|
|
59
|
-
}
|
|
60
|
-
componentWillLoad() {
|
|
61
|
-
if (typeof this.preOrder === 'string') {
|
|
62
|
-
try {
|
|
63
|
-
this.normalizedPreOrder = JSON.parse(this.preOrder);
|
|
64
|
-
}
|
|
65
|
-
catch {
|
|
66
|
-
this.normalizedPreOrder = undefined;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
this.normalizedPreOrder = this.preOrder;
|
|
71
|
-
}
|
|
72
|
-
if (this.normalizedPreOrder?.end_date) {
|
|
73
|
-
this.date = this.normalizedPreOrder.end_date;
|
|
74
|
-
if (this.date && this.isValidDate(this.date)) {
|
|
75
|
-
this.startCountDown();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
isValidDate(date) {
|
|
80
|
-
let dateHasDashes = date.includes('-'), dateParts = date.split(' '), testedDate;
|
|
81
|
-
if (dateHasDashes) {
|
|
82
|
-
testedDate = dateParts[0].replace(/-/g, '/');
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
testedDate = dateParts[0];
|
|
86
|
-
}
|
|
87
|
-
return !isNaN(Date.parse(testedDate));
|
|
88
|
-
}
|
|
89
|
-
number(digit) {
|
|
90
|
-
return salla.helpers.number(digit, this.digits === 'en');
|
|
91
|
-
}
|
|
92
|
-
startCountDown() {
|
|
93
|
-
let countDownDate = new Date(this.date.replace(/-/g, '/'));
|
|
94
|
-
if (this.endOfDay || this.date.split(' ').length === 1) {
|
|
95
|
-
countDownDate.setHours(23, 59, 59, 999);
|
|
96
|
-
}
|
|
97
|
-
let countDownTime = countDownDate.getTime();
|
|
98
|
-
this.countInterval = setInterval(() => {
|
|
99
|
-
let now = new Date().getTime();
|
|
100
|
-
let distance = countDownTime - now;
|
|
101
|
-
this.days = this.number(Math.floor(distance / (1000 * 60 * 60 * 24)));
|
|
102
|
-
this.hours = this.number(Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)));
|
|
103
|
-
this.minutes = this.number(Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)));
|
|
104
|
-
this.seconds = this.number(Math.floor((distance % (1000 * 60)) / 1000));
|
|
105
|
-
if (distance < 0) {
|
|
106
|
-
this.endCountDown();
|
|
107
|
-
}
|
|
108
|
-
}, 1000);
|
|
109
|
-
}
|
|
110
|
-
renderCountDown() {
|
|
111
|
-
return (index.h("ul", { class: `s-count-down-list ${this.boxed ? 's-count-down-boxed' : ''} ${this.offerEnded ? 's-count-down-ended' : ''} s-count-down-${this.size} s-count-down-${this.color}` }, index.h("li", { class: "s-count-down-item" }, index.h("div", { class: "s-count-down-item-value" }, this.seconds), this.labeled && index.h("div", { class: "s-count-down-item-label" }, this.secondsLabel)), index.h("li", { class: "s-count-down-item" }, index.h("div", { class: "s-count-down-item-value" }, this.minutes), this.labeled && index.h("div", { class: "s-count-down-item-label" }, this.minutesLabel)), index.h("li", { class: "s-count-down-item" }, index.h("div", { class: "s-count-down-item-value" }, this.hours), this.labeled && index.h("div", { class: "s-count-down-item-label" }, this.hoursLabel)), index.h("li", { class: "s-count-down-item" }, index.h("div", { class: "s-count-down-item-value" }, this.days), this.labeled && index.h("div", { class: "s-count-down-item-label" }, this.daysLabel))));
|
|
112
|
-
}
|
|
113
|
-
renderInvalidDate() {
|
|
114
|
-
return index.h("div", { class: "s-count-down-text-center" }, this.invalidDate);
|
|
115
|
-
}
|
|
116
|
-
renderOfferEnded() {
|
|
117
|
-
return index.h("div", { class: "s-count-down-end-text" }, !!this.endText ? this.endText : this.endLabel);
|
|
118
|
-
}
|
|
119
|
-
renderPreOrderToBeAvailableOn() {
|
|
120
|
-
if (!this.normalizedPreOrder?.availability_date ||
|
|
121
|
-
!this.isValidDate(this.normalizedPreOrder?.availability_date))
|
|
122
|
-
return null;
|
|
123
|
-
return (index.h("div", { class: "s-count-down-info-message" }, index.h("i", { class: "sicon-info" }), index.h("span", null, salla.lang.getWithDefault('pages.products.expected_to_be', 'متوقَّع توفُّره بتاريخ:')), index.h("span", null, new Date(this.normalizedPreOrder?.availability_date).toLocaleDateString(salla.lang.locale, {
|
|
124
|
-
weekday: 'long',
|
|
125
|
-
year: 'numeric',
|
|
126
|
-
month: 'long',
|
|
127
|
-
day: 'numeric',
|
|
128
|
-
}))));
|
|
129
|
-
}
|
|
130
|
-
renderPreOrderCountDown() {
|
|
131
|
-
if (!this.normalizedPreOrder?.activate_countdown)
|
|
132
|
-
return null;
|
|
133
|
-
return (index.h("div", { class: "s-count-down-pre-order-container" }, index.h("p", { class: "text-sm " }, salla.lang.getWithDefault('pages.products.pre_order_ends_in', 'ينتهي الطلب المسبق خلال:')), this.renderCountDown()));
|
|
134
|
-
}
|
|
135
|
-
renderPreOrder() {
|
|
136
|
-
return (index.h("div", null, typeof this.normalizedPreOrder === 'object' &&
|
|
137
|
-
this.normalizedPreOrder?.availability_date &&
|
|
138
|
-
this.renderPreOrderToBeAvailableOn(), this.renderPreOrderCountDown()));
|
|
139
|
-
}
|
|
140
|
-
renderPrefixText() {
|
|
141
|
-
if (!this.prefixText)
|
|
142
|
-
return null;
|
|
143
|
-
return index.h("span", { class: "s-count-down-prefix-text" }, this.prefixText);
|
|
144
|
-
}
|
|
145
|
-
renderButton() {
|
|
146
|
-
if (!this.withButton || !this.buttonText)
|
|
147
|
-
return null;
|
|
148
|
-
return index.h("salla-button", { color: "primary", size: "medium", href: this.buttonHref }, this.buttonIcon ? index.h("i", { class: this.buttonIcon }) : null, index.h("span", null, this.buttonText));
|
|
149
|
-
}
|
|
150
|
-
renderContent() {
|
|
151
|
-
if (!this.date)
|
|
152
|
-
return null;
|
|
153
|
-
if (!this.isValidDate(this.date)) {
|
|
154
|
-
return this.renderInvalidDate();
|
|
155
|
-
}
|
|
156
|
-
if (this.preOrder) {
|
|
157
|
-
return this.renderPreOrder();
|
|
158
|
-
}
|
|
159
|
-
return this.renderCountDown();
|
|
160
|
-
}
|
|
161
|
-
render() {
|
|
162
|
-
return (index.h(index.Host, { key: '0cfdbb009d256be108123cabf3cb4311866bdc17', 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.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
SallaCountDown.style = sallaCountDownCss;
|
|
166
|
-
|
|
167
9
|
var Heart = `<!-- Generated by IcoMoon.io -->
|
|
168
10
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
169
11
|
<title>heart</title>
|
|
@@ -314,5 +156,4 @@ const SallaProductCard = class {
|
|
|
314
156
|
};
|
|
315
157
|
SallaProductCard.style = sallaProductCardCss;
|
|
316
158
|
|
|
317
|
-
exports.salla_count_down = SallaCountDown;
|
|
318
159
|
exports.salla_product_card = SallaProductCard;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-B8vh41va.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-B8vh41va.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-B8vh41va.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-B8vh41va.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-B8vh41va.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
|
|