@salla.sa/twilight-components 2.14.353 → 2.14.354
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/bell-ring-BfKPinNo.js +13 -0
- package/dist/cjs/{interfaces-CX9-6aLf.js → camera-DytepEoK.js} +0 -11
- package/dist/cjs/cancel-De6vslRA.js +13 -0
- package/dist/cjs/cart-s-x1Fshk.js +13 -0
- package/dist/cjs/check-circle2-BDvlT4_n.js +13 -0
- package/dist/cjs/{check-CLRvuniI.js → check-x3w3-gpj.js} +2 -2
- package/dist/cjs/{filepond-7SxqaoXb.js → filepond-CuKErtOy.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DwIv84hN.js → filepond-plugin-file-poster-d-8BSuST.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-NUNnIo4Q.js → filepond-plugin-file-validate-size-zgI_JcqY.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CXI-hfww.js → filepond-plugin-file-validate-type-Cy8IgG2P.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-fBeBGIBb.js → filepond-plugin-image-edit-9ZAUzCvh.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BmLTdQ6d.js → filepond-plugin-image-exif-orientation-DzNe_tY2.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CssKRM6n.js → filepond-plugin-image-preview-Cfna6xTB.js} +1 -1
- package/dist/{esm/gift-C0JNGIpa.js → cjs/gift-CJ-3Yw_x.js} +4 -2
- package/dist/cjs/image-BoZ6Hums.js +13 -0
- package/dist/cjs/{index-B5soIVRX.js → index-Ce40E8tZ.js} +136 -12
- package/dist/cjs/{index-B9TEdQDE.js → index-ff-xJfhj.js} +1 -1
- package/dist/cjs/interfaces-CRqrf5RX.js +15 -0
- package/dist/cjs/keyboard_arrow_down-DHJ3FFZq.js +13 -0
- package/dist/cjs/keyboard_arrow_right-BayM_Il2.js +21 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/minus-CCryh1qf.js +21 -0
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +775 -0
- package/dist/cjs/salla-accordion_6.cjs.entry.js +768 -0
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +2389 -0
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +194 -0
- 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 +1565 -0
- package/dist/cjs/{salla-cart-item-offers.cjs.entry.js → salla-cart-item-offers_2.cjs.entry.js} +104 -5
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1661 -0
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +3 -3
- package/dist/cjs/salla-count-down_2.cjs.entry.js +302 -0
- package/dist/cjs/salla-custom-fields.cjs.entry.js +4 -3
- 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 +488 -0
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +91 -0
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +34 -0
- package/dist/cjs/salla-localization-modal.cjs.entry.js +137 -0
- package/dist/cjs/salla-login-modal.cjs.entry.js +320 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty.cjs.entry.js +211 -0
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +40 -0
- package/dist/cjs/salla-menu.cjs.entry.js +139 -0
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +220 -0
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +598 -0
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +69 -0
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +206 -0
- 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-summary.cjs.entry.js +3 -3
- 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 +51 -0
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +66 -0
- package/dist/cjs/salla-products-list.cjs.entry.js +762 -0
- package/dist/cjs/salla-products-slider.cjs.entry.js +115 -0
- package/dist/cjs/salla-progress-bar.cjs.entry.js +73 -0
- package/dist/cjs/salla-quick-order.cjs.entry.js +239 -0
- package/dist/cjs/salla-rating-modal.cjs.entry.js +453 -0
- package/dist/cjs/salla-scopes.cjs.entry.js +180 -0
- package/dist/cjs/salla-search.cjs.entry.js +153 -0
- package/dist/cjs/salla-skeleton.cjs.entry.js +36 -0
- package/dist/cjs/salla-slider.cjs.entry.js +10389 -0
- package/dist/cjs/salla-social-share.cjs.entry.js +165 -0
- package/dist/cjs/salla-social.cjs.entry.js +3 -3
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +157 -0
- 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 +275 -0
- package/dist/cjs/salla-user-profile.cjs.entry.js +145 -0
- package/dist/cjs/salla-user-settings.cjs.entry.js +88 -0
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/search-c7Aa7lM9.js +13 -0
- package/dist/cjs/{special-discount-OVG_9Kf9.js → special-discount-DC2oXurL.js} +0 -8
- package/dist/cjs/star-DGcH7Yso.js +13 -0
- package/dist/cjs/star2-R146a27p.js +13 -0
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-C6fk8_TR.js → vanilla-picker-zQsXQIff.js} +1 -1
- package/dist/cjs/{whatsapp2-D7Sbg8Ey.js → whatsapp2-BdMd5Gx1.js} +2 -2
- package/dist/collection/collection-manifest.json +55 -1
- package/dist/collection/components/salla-product-options/salla-product-options.js +36 -3
- package/dist/components/index.js +2 -2
- package/dist/components/salla-product-options2.js +19 -2
- package/dist/esm/bell-ring-D3mWkc-3.js +11 -0
- package/dist/esm/{interfaces-CBT_Nxny.js → camera-C6jIkM-X.js} +1 -12
- package/dist/esm/cancel-BsLF_HK7.js +11 -0
- package/dist/esm/cart-DY4LZmNP.js +11 -0
- package/dist/esm/{check-uTyAzPSy.js → check-BsXh13x8.js} +2 -2
- package/dist/esm/check-circle2-BV4kqbdL.js +11 -0
- package/dist/esm/{filepond-Cuqyleyy.js → filepond-DEzyRrdH.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-C6Wara8q.js → filepond-plugin-file-poster-DyLcCcHM.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-D-M3KSxo.js → filepond-plugin-file-validate-size-Cxp5Yzea.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DzAl1VI8.js → filepond-plugin-file-validate-type-D2qNOQP4.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-flutfc9I.js → filepond-plugin-image-edit-DndTlA7m.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-B2UkG6iE.js → filepond-plugin-image-exif-orientation-CiT1CQoK.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-B4u8N2nE.js → filepond-plugin-image-preview-DBG7keFZ.js} +1 -1
- package/dist/{cjs/gift-BPDUPIY_.js → esm/gift-BChI23pG.js} +2 -4
- package/dist/esm/image-C-tzSDxw.js +11 -0
- package/dist/esm/{index-6mr785rH.js → index-B74h9G6a.js} +137 -13
- package/dist/esm/{index-xWIb6INF.js → index-BLw7mdtM.js} +1 -1
- package/dist/esm/interfaces-OF8QcbMM.js +15 -0
- package/dist/esm/keyboard_arrow_down-DCZbpt2a.js +11 -0
- package/dist/esm/keyboard_arrow_right-Vqpj4CWE.js +18 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/minus-DfeagqF1.js +18 -0
- package/dist/esm/salla-accordion-body_3.entry.js +771 -0
- package/dist/esm/salla-accordion_6.entry.js +761 -0
- package/dist/esm/salla-add-product-button_4.entry.js +2384 -0
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +191 -0
- 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 +1539 -0
- package/dist/esm/{salla-cart-item-offers.entry.js → salla-cart-item-offers_2.entry.js} +104 -6
- package/dist/esm/salla-comment-form_8.entry.js +1652 -0
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +3 -3
- package/dist/esm/salla-count-down_2.entry.js +299 -0
- package/dist/esm/salla-custom-fields.entry.js +3 -2
- 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 +486 -0
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +89 -0
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +32 -0
- package/dist/esm/salla-localization-modal.entry.js +135 -0
- package/dist/esm/salla-login-modal.entry.js +318 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty.entry.js +209 -0
- package/dist/esm/salla-maintenance-alert.entry.js +38 -0
- package/dist/esm/salla-menu.entry.js +137 -0
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +217 -0
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +595 -0
- package/dist/esm/salla-multiple-bundle-product.entry.js +67 -0
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +204 -0
- 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-summary.entry.js +3 -3
- 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 +49 -0
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +64 -0
- package/dist/esm/salla-products-list.entry.js +760 -0
- package/dist/esm/salla-products-slider.entry.js +113 -0
- package/dist/esm/salla-progress-bar.entry.js +71 -0
- package/dist/esm/salla-quick-order.entry.js +237 -0
- package/dist/esm/salla-rating-modal.entry.js +451 -0
- package/dist/esm/salla-scopes.entry.js +178 -0
- package/dist/esm/salla-search.entry.js +151 -0
- package/dist/esm/salla-skeleton.entry.js +34 -0
- package/dist/esm/salla-slider.entry.js +10387 -0
- package/dist/esm/salla-social-share.entry.js +163 -0
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +153 -0
- 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 +273 -0
- package/dist/esm/salla-user-profile.entry.js +143 -0
- package/dist/esm/salla-user-settings.entry.js +86 -0
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/search-BscTeWDc.js +11 -0
- package/dist/esm/{special-discount-yRO-ZESF.js → special-discount-Ctkfc4K-.js} +1 -8
- package/dist/esm/star-ZT7ehBBk.js +11 -0
- package/dist/esm/star2-D4oPi1Ov.js +11 -0
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-B4PKRAhm.js → vanilla-picker-CtwkXTap.js} +1 -1
- package/dist/esm/{whatsapp2-DWksgowB.js → whatsapp2-CgR-T_ZS.js} +2 -2
- package/dist/twilight/{p-2a26c1d6.entry.js → p-0134b4fd.entry.js} +1 -1
- package/dist/twilight/{p-d4aaeef4.entry.js → p-01daaaa6.entry.js} +1 -1
- package/dist/twilight/p-07da7390.entry.js +4 -0
- package/dist/twilight/{p-81702ecb.entry.js → p-08badc32.entry.js} +1 -1
- package/dist/twilight/{p-4bc98557.entry.js → p-0aa5a12a.entry.js} +1 -1
- package/dist/twilight/{p-6f576591.entry.js → p-10dcd981.entry.js} +1 -1
- package/dist/twilight/{p-5067322a.entry.js → p-212a0710.entry.js} +1 -1
- package/dist/twilight/p-229275db.entry.js +4 -0
- package/dist/twilight/{p-dde21f4b.entry.js → p-232185ec.entry.js} +1 -1
- package/dist/twilight/{p-12e49031.entry.js → p-2a927eac.entry.js} +1 -1
- package/dist/twilight/p-2d880232.entry.js +4 -0
- package/dist/twilight/p-2de9df64.entry.js +4 -0
- package/dist/twilight/p-309a0ba4.entry.js +4 -0
- package/dist/twilight/{p-e909d28b.entry.js → p-32732ca7.entry.js} +1 -1
- package/dist/twilight/{p-19e07b9e.entry.js → p-32ca34ec.entry.js} +1 -1
- package/dist/twilight/{p-9946fa76.entry.js → p-33093880.entry.js} +1 -1
- package/dist/twilight/p-3cffa4c9.entry.js +4 -0
- package/dist/twilight/p-3d0bb451.entry.js +4 -0
- package/dist/twilight/p-3e0d814c.entry.js +4 -0
- package/dist/twilight/p-4036d5dc.entry.js +4 -0
- package/dist/twilight/p-40fe4b01.entry.js +4 -0
- package/dist/twilight/p-47ac0ca5.entry.js +4 -0
- package/dist/twilight/{p-5bf05092.entry.js → p-4cd9da44.entry.js} +1 -1
- package/dist/twilight/p-5c9281d3.entry.js +4 -0
- package/dist/twilight/p-5d044466.entry.js +4 -0
- package/dist/twilight/p-5d21334a.entry.js +4 -0
- package/dist/twilight/{p-c096e336.entry.js → p-654429df.entry.js} +1 -1
- package/dist/twilight/p-6b8453be.entry.js +4 -0
- package/dist/twilight/p-6be7bbb0.entry.js +4 -0
- package/dist/twilight/{p-4253fc44.entry.js → p-6c8f5c94.entry.js} +1 -1
- package/dist/twilight/{p-6f5d02c6.entry.js → p-6fa02770.entry.js} +1 -1
- package/dist/twilight/p-7040ea33.entry.js +4 -0
- package/dist/twilight/p-8c189d76.entry.js +4 -0
- package/dist/twilight/p-8f1f052c.entry.js +4 -0
- package/dist/twilight/{p-ac6fc286.entry.js → p-9051a540.entry.js} +1 -1
- package/dist/twilight/p-9f1c561f.entry.js +4 -0
- package/dist/twilight/{p-B2SkkGH8.js → p-B69XOH6h.js} +1 -1
- package/dist/twilight/{p-6mr785rH.js → p-B74h9G6a.js} +2 -2
- package/dist/twilight/{p-C0JNGIpa.js → p-BChI23pG.js} +1 -1
- package/dist/twilight/{p-C_h1JDCU.js → p-BCxm-ISm.js} +1 -1
- package/dist/twilight/{p-Bp_xKTyn.js → p-BPqZ249Z.js} +1 -1
- package/dist/twilight/p-BV4kqbdL.js +4 -0
- package/dist/twilight/p-BsLF_HK7.js +4 -0
- package/dist/twilight/{p-uTyAzPSy.js → p-BsXh13x8.js} +1 -1
- package/dist/twilight/p-BscTeWDc.js +4 -0
- package/dist/twilight/p-C-tzSDxw.js +4 -0
- package/dist/twilight/p-C6jIkM-X.js +4 -0
- package/dist/twilight/p-CO-PeZ27.js +4 -0
- package/dist/twilight/{p-ChfiVIJv.js → p-CQq81yb5.js} +1 -1
- package/dist/twilight/{p-DWksgowB.js → p-CgR-T_ZS.js} +1 -1
- package/dist/twilight/p-Ctkfc4K-.js +4 -0
- package/dist/twilight/p-D3mWkc-3.js +4 -0
- package/dist/twilight/p-D4oPi1Ov.js +4 -0
- package/dist/twilight/p-DCZbpt2a.js +4 -0
- package/dist/twilight/p-DY4LZmNP.js +4 -0
- package/dist/twilight/p-DfeagqF1.js +4 -0
- package/dist/twilight/{p-Cuxsz9f-.js → p-DpsbV3x1.js} +1 -1
- package/dist/twilight/p-OF8QcbMM.js +4 -0
- package/dist/twilight/p-Vqpj4CWE.js +4 -0
- package/dist/twilight/p-ZT7ehBBk.js +4 -0
- package/dist/twilight/{p-tFBCbVoG.js → p-_-aXm0Wb.js} +1 -1
- package/dist/twilight/p-a100bd38.entry.js +4 -0
- package/dist/twilight/{p-0c87ef6c.entry.js → p-a2756650.entry.js} +1 -1
- package/dist/twilight/{p-8b018d82.entry.js → p-aab45a16.entry.js} +1 -1
- package/dist/twilight/p-aae761ff.entry.js +4 -0
- package/dist/twilight/p-afd61e47.entry.js +4 -0
- package/dist/twilight/p-b1fc6dfc.entry.js +4 -0
- package/dist/twilight/p-b206a0a1.entry.js +4 -0
- package/dist/twilight/p-b2332516.entry.js +4 -0
- package/dist/twilight/{p-18ebec2c.entry.js → p-b588ef46.entry.js} +1 -1
- package/dist/twilight/p-b71fc1b5.entry.js +4 -0
- package/dist/twilight/{p-zHj-W7EE.js → p-bVqtOl1F.js} +1 -1
- package/dist/twilight/{p-300624bb.entry.js → p-bf65b263.entry.js} +1 -1
- package/dist/twilight/{p-33ea3141.entry.js → p-c56a47b0.entry.js} +1 -1
- package/dist/twilight/p-c73189e3.entry.js +4 -0
- package/dist/twilight/p-d1203242.entry.js +4 -0
- package/dist/twilight/p-d4edfed4.entry.js +4 -0
- package/dist/twilight/{p-6472200c.entry.js → p-d86ce978.entry.js} +1 -1
- package/dist/twilight/{p-fa585081.entry.js → p-d9e7973d.entry.js} +1 -1
- package/dist/twilight/p-e3e33238.entry.js +4 -0
- package/dist/twilight/p-e6bb7362.entry.js +4 -0
- package/dist/twilight/{p-28900b2e.entry.js → p-e7813c80.entry.js} +1 -1
- package/dist/twilight/p-ec2fd37e.entry.js +4 -0
- package/dist/twilight/{p-b60db6c8.entry.js → p-ec77c523.entry.js} +1 -1
- package/dist/twilight/{p-8c7b7712.entry.js → p-efc18ce6.entry.js} +1 -1
- package/dist/twilight/p-f4039c40.entry.js +4 -0
- package/dist/twilight/p-f47b130c.entry.js +4 -0
- package/dist/twilight/{p-7e39343d.entry.js → p-f57ca123.entry.js} +1 -1
- package/dist/twilight/{p-2d209f96.entry.js → p-f5ad6572.entry.js} +1 -1
- package/dist/twilight/p-fc65084f.entry.js +4 -0
- package/dist/twilight/p-fd81a311.entry.js +4 -0
- package/dist/twilight/{p-16b8d78c.entry.js → p-fe983809.entry.js} +1 -1
- package/dist/twilight/{p-BijadG7g.js → p-i5J7XGS6.js} +1 -1
- package/dist/twilight/{p-DnELO4MH.js → p-shFpk0H3.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +8 -1
- package/dist/types/components.d.ts +4 -0
- package/package.json +5 -5
- package/dist/cjs/salla-accordion_62.cjs.entry.js +0 -22470
- package/dist/cjs/salla-review-card.cjs.entry.js +0 -183
- package/dist/cjs/salla-reviews-page.cjs.entry.js +0 -695
- package/dist/cjs/salla-reviews.cjs.entry.js +0 -106
- package/dist/esm/salla-accordion_62.entry.js +0 -22389
- package/dist/esm/salla-review-card.entry.js +0 -181
- package/dist/esm/salla-reviews-page.entry.js +0 -693
- package/dist/esm/salla-reviews.entry.js +0 -104
- package/dist/twilight/p-67830f2a.entry.js +0 -4
- package/dist/twilight/p-751dddd4.entry.js +0 -4
- package/dist/twilight/p-9b22a7eb.entry.js +0 -4
- package/dist/twilight/p-CBT_Nxny.js +0 -4
- package/dist/twilight/p-Dz7o69vX.js +0 -4
- package/dist/twilight/p-a515a8cc.entry.js +0 -4
- package/dist/twilight/p-c4821f8b.entry.js +0 -4
- package/dist/twilight/p-de807340.entry.js +0 -4
- package/dist/twilight/p-yRO-ZESF.js +0 -4
- package/dist/cjs/{twitter-pOrUNjXi.js → facebook-DbXua6B9.js} +2 -2
- package/dist/esm/{twitter-Dz7o69vX.js → facebook-CO-PeZ27.js} +2 -2
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var whatsapp2 = require('./whatsapp2-
|
|
6
|
+
var index = require('./index-Ce40E8tZ.js');
|
|
7
|
+
var whatsapp2 = require('./whatsapp2-BdMd5Gx1.js');
|
|
8
8
|
var mail = require('./mail-CO8cFZH7.js');
|
|
9
9
|
|
|
10
10
|
var mobile = `<!-- Generated by IcoMoon.io -->
|
|
@@ -34,7 +34,7 @@ const SallaContacts = class {
|
|
|
34
34
|
constructor(hostRef) {
|
|
35
35
|
index.registerInstance(this, hostRef);
|
|
36
36
|
this.contacts = salla.config.get('store.contacts');
|
|
37
|
-
this.iconsList = { mobile, whatsapp: whatsapp2.
|
|
37
|
+
this.iconsList = { mobile, whatsapp: whatsapp2.WhatsappIcon, phone, telegram, email: mail.MailIcon };
|
|
38
38
|
this.contactSlot = this.host.querySelector('[slot="contact"]')?.innerHTML || `<a href={link} class="s-contacts-item"><span class="s-contacts-icon">{icon}</span>${!this.iconsOnly && "<span class='unicode'>{value}</span>"}</a>`;
|
|
39
39
|
salla.onReady(() => {
|
|
40
40
|
this.contacts = salla.config.get('store.contacts');
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var index = require('./index-Ce40E8tZ.js');
|
|
7
|
+
var star2 = require('./star2-R146a27p.js');
|
|
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: '11e7cf7cf77bbde82d990107b7ccda8f1fc9ad6f', 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
|
+
var Heart = `<!-- Generated by IcoMoon.io -->
|
|
168
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
169
|
+
<title>heart</title>
|
|
170
|
+
<path d="M23.333 2.267c-3.547 0-5.779 1.605-7.333 3.061-1.555-1.456-3.787-3.061-7.333-3.061-5.955 0-8.667 5.045-8.667 9.733 0 8.503 10.147 14.735 15.513 16.841 0.156 0.061 0.321 0.092 0.487 0.092s0.331-0.031 0.487-0.092c5.367-2.107 15.513-8.339 15.513-16.841 0-4.688-2.712-9.733-8.667-9.733zM16 26.161c-5.537-2.309-13.333-7.799-13.333-14.161 0-3.517 1.856-7.067 6-7.067 2.983 0 4.656 1.451 6.384 3.203 0.5 0.508 1.399 0.508 1.899 0 1.728-1.752 3.401-3.203 6.384-3.203 4.144 0 6 3.549 6 7.067 0 6.363-7.796 11.852-13.333 14.161z"></path>
|
|
171
|
+
</svg>
|
|
172
|
+
`;
|
|
173
|
+
|
|
174
|
+
const sallaProductCardCss = ".s-product-card-image::before{font-family:\"sallaicons\";content:\"\\ec1f\" !important}.s-product-card-content-pie-svg circle{transition:stroke-dashoffset 1s linear;-webkit-transition:stroke-dashoffset 1s linear;-moz-transition:stroke-dashoffset 1s linear;-ms-transition:stroke-dashoffset 1s linear;-o-transition:stroke-dashoffset 1s linear;stroke:#E8EDF2;stroke-width:2px;stroke-linecap:round;fill:none}.s-product-card-content-pie-svg-bar{stroke:var(--color-primary) !important;stroke-dasharray:100 100;stroke-dashoffset:100}";
|
|
175
|
+
|
|
176
|
+
const SallaProductCard = class {
|
|
177
|
+
constructor(hostRef) {
|
|
178
|
+
index.registerInstance(this, hostRef);
|
|
179
|
+
// Store configs
|
|
180
|
+
salla.onReady(() => {
|
|
181
|
+
this.fitImageHeight = salla.config.get('store.settings.product.fit_type');
|
|
182
|
+
salla.wishlist.event.onAdded((_res, id) => this.toggleFavoriteIcon(true, id));
|
|
183
|
+
salla.wishlist.event.onRemoved((_res, id) => this.toggleFavoriteIcon(false, id));
|
|
184
|
+
this.placeholder = salla.url.asset(salla.config.get('theme.settings.placeholder'));
|
|
185
|
+
});
|
|
186
|
+
// Language
|
|
187
|
+
salla.lang.onLoaded(() => {
|
|
188
|
+
this.remained = salla.lang.get('pages.products.remained');
|
|
189
|
+
this.donationAmount = salla.lang.get('pages.products.donation_amount');
|
|
190
|
+
this.startingPrice = salla.lang.get('pages.products.starting_price');
|
|
191
|
+
this.addToCart = salla.lang.get('pages.cart.add_to_cart');
|
|
192
|
+
this.outOfStock = salla.lang.get('pages.products.out_of_stock');
|
|
193
|
+
});
|
|
194
|
+
// Parse product data
|
|
195
|
+
if (!this.product) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
try {
|
|
199
|
+
this.productData = typeof this.product == 'object' ? this.product : JSON.parse(this.product);
|
|
200
|
+
}
|
|
201
|
+
catch (e) {
|
|
202
|
+
salla.log('Bad json passed via product prop');
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
// Private Methods
|
|
206
|
+
initCircleBar() {
|
|
207
|
+
let qty = this.productData.quantity, total = this.productData.quantity > 100 ? this.productData.quantity * 2 : 100, roundPercent = (qty / total) * 100, bar = this.pie.querySelector('.s-product-card-content-pie-svg-bar'), strokeDashOffsetValue = 100 - roundPercent;
|
|
208
|
+
bar.style.strokeDashoffset = strokeDashOffsetValue;
|
|
209
|
+
}
|
|
210
|
+
toggleFavoriteIcon(isAdded = true, id = null) {
|
|
211
|
+
if (id && id !== this.productData.id) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
this.wishlistBtn?.classList.toggle('s-product-card-wishlist-added', isAdded);
|
|
215
|
+
}
|
|
216
|
+
formatDate(date) {
|
|
217
|
+
let d = new Date(date);
|
|
218
|
+
return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
|
|
219
|
+
}
|
|
220
|
+
getProductBadge() {
|
|
221
|
+
if (this.productData.promotion_title) {
|
|
222
|
+
return index.h("div", { class: "s-product-card-promotion-title" }, this.productData.promotion_title);
|
|
223
|
+
}
|
|
224
|
+
if (this.showQuantity && this.productData?.quantity) {
|
|
225
|
+
return index.h("div", { class: "s-product-card-quantity" }, this.remained, " ", salla.helpers.number(this.productData?.quantity));
|
|
226
|
+
}
|
|
227
|
+
if (this.showQuantity && this.productData?.is_out_of_stock) {
|
|
228
|
+
return index.h("div", { class: "s-product-card-out-badge" }, this.outOfStock);
|
|
229
|
+
}
|
|
230
|
+
return '';
|
|
231
|
+
}
|
|
232
|
+
getPriceFormat(price) {
|
|
233
|
+
if (!price || price == 0) {
|
|
234
|
+
return salla.config.get('store.settings.product.show_price_as_dash') ? '-' : '';
|
|
235
|
+
}
|
|
236
|
+
return salla.money(price);
|
|
237
|
+
}
|
|
238
|
+
getProductPrice() {
|
|
239
|
+
if (this.productData.is_on_sale) {
|
|
240
|
+
return index.h("div", { class: "s-product-card-sale-price" }, index.h("h4", { innerHTML: this.getPriceFormat(this.productData.sale_price) }), index.h("span", { innerHTML: this.getPriceFormat(this.productData?.regular_price) }));
|
|
241
|
+
}
|
|
242
|
+
if (this.productData.starting_price) {
|
|
243
|
+
return index.h("div", { class: "s-product-card-starting-price" }, index.h("p", null, this.startingPrice), index.h("h4", { innerHTML: this.getPriceFormat(this.productData?.starting_price) }));
|
|
244
|
+
}
|
|
245
|
+
return index.h("h4", { class: "s-product-card-price", innerHTML: this.getPriceFormat(this.productData?.price) });
|
|
246
|
+
}
|
|
247
|
+
render() {
|
|
248
|
+
const classes = {
|
|
249
|
+
's-product-card-entry': true,
|
|
250
|
+
's-product-card-vertical': !this.horizontal && !this.fullImage && !this.minimal,
|
|
251
|
+
's-product-card-horizontal': this.horizontal && !this.fullImage && !this.minimal,
|
|
252
|
+
's-product-card-fit-height': this.fitImageHeight && !this.isSpecial && !this.fullImage && !this.minimal,
|
|
253
|
+
's-product-card-special': this.isSpecial,
|
|
254
|
+
's-product-card-full-image': this.fullImage,
|
|
255
|
+
's-product-card-minimal': this.minimal,
|
|
256
|
+
's-product-card-donation': this.productData?.donation,
|
|
257
|
+
's-product-card-shadow': this.shadowOnHover,
|
|
258
|
+
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
259
|
+
};
|
|
260
|
+
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
261
|
+
return (index.h(index.Host, { key: '95347f86f3dc0354a057290ce41f74aef0a66282', id: `product-${this.productData?.id}`, class: classes }, index.h("div", { key: '86927cbc56a2ea92a8e18c44c8999ee1d6f82b4d', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, index.h("a", { key: '6294925bce0a46287389a9423b16199cf92919fd', ...hrefProp }, index.h("img", { key: '74e0d9fae7c61e0e3e0e20e38166d64618c8ca3d', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
262
|
+
? 'contain'
|
|
263
|
+
: this.fitImageHeight
|
|
264
|
+
? this.fitImageHeight
|
|
265
|
+
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", { key: 'fd2db94c99d91815b13141460a8c4538aae4a53b', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
266
|
+
index.h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { key: '9f4f39db770a394d9719664cd77111aef1c575f4', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
267
|
+
index.h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, index.h("span", null, index.h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
268
|
+
: '', index.h("div", { key: 'eab2c5f49112dd490733e0b6f1e8c30ad9670690', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { key: '5fadc35b2bf704903bf38128c390f71ec0a8b910', class: "s-product-card-content-title" }, index.h("a", { key: '7e0767efef938e20ed4c2592a0abec812a9caf86', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
269
|
+
index.h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
270
|
+
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
271
|
+
[index.h("salla-progress-bar", { donation: this.productData?.donation }), index.h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
272
|
+
[index.h("label", { htmlFor: "donation-amount" }, this.donationAmount, " ", index.h("span", null, "*")), index.h("input", { type: "text", onInput: e => {
|
|
273
|
+
salla.helpers.inputDigitsOnly(e.target);
|
|
274
|
+
this.addBtn.donatingAmount = e.target.value;
|
|
275
|
+
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
276
|
+
: '')]
|
|
277
|
+
: '', index.h("div", { key: 'f29cdbd8b8bb715583ecb6c6bcc571c64341ee39', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
278
|
+
index.h("div", { class: "s-product-card-rating" }, index.h("span", { innerHTML: star2.Star }), index.h("span", null, this.productData.rating.stars))
|
|
279
|
+
: ''), this.isSpecial && this.productData.discount_ends
|
|
280
|
+
? index.h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
281
|
+
: '', !this.hideAddBtn ?
|
|
282
|
+
index.h("div", { class: "s-product-card-content-footer" }, index.h("salla-add-product-button", { fill: "outline", width: "wide", ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type }, index.h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)), this.horizontal || this.fullImage ?
|
|
283
|
+
index.h("salla-button", { shape: "icon", fill: "none", color: "light", ref: el => this.wishlistBtn = el, "aria-label": "Add or remove to wishlist", class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id), "data-id": "{{ product.id }}" }, index.h("span", { class: "text-xl", innerHTML: Heart }))
|
|
284
|
+
: '')
|
|
285
|
+
: '')));
|
|
286
|
+
}
|
|
287
|
+
componentDidLoad() {
|
|
288
|
+
document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
|
|
289
|
+
if (this.productData?.quantity && this.isSpecial) {
|
|
290
|
+
this.initCircleBar();
|
|
291
|
+
}
|
|
292
|
+
if (!salla.config.isGuest() && salla.storage.get('salla::wishlist', []).includes(this.productData?.id)) {
|
|
293
|
+
this.toggleFavoriteIcon();
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
static get assetsDirs() { return ["assets"]; }
|
|
297
|
+
get host() { return index.getElement(this); }
|
|
298
|
+
};
|
|
299
|
+
SallaProductCard.style = sallaProductCardCss;
|
|
300
|
+
|
|
301
|
+
exports.salla_count_down = SallaCountDown;
|
|
302
|
+
exports.salla_product_card = SallaProductCard;
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var
|
|
6
|
+
var index = require('./index-Ce40E8tZ.js');
|
|
7
|
+
var camera = require('./camera-DytepEoK.js');
|
|
8
|
+
var interfaces = require('./interfaces-CRqrf5RX.js');
|
|
8
9
|
|
|
9
10
|
const sallaCustomFieldsCss = ":host{display:block}";
|
|
10
11
|
|
|
@@ -85,7 +86,7 @@ const SallaCustomFields = class {
|
|
|
85
86
|
e.stopPropagation();
|
|
86
87
|
field.value = "";
|
|
87
88
|
e.target.value = "";
|
|
88
|
-
}, payloadName: "files[]", payloadParams: { type: 'registration' }, "instant-upload": true }, index.h("div", { class: "s-custom-fields-filepond-placeholder" }, index.h("span", { class: "s-custom-fields-filepond-placeholder-icon" }, index.h("i", { innerHTML:
|
|
89
|
+
}, payloadName: "files[]", payloadParams: { type: 'registration' }, "instant-upload": true }, index.h("div", { class: "s-custom-fields-filepond-placeholder" }, index.h("span", { class: "s-custom-fields-filepond-placeholder-icon" }, index.h("i", { innerHTML: camera.CameraIcon })), index.h("p", { class: "s-custom-fields-filepond-placeholder-text" }, this.dragAndDropText), index.h("span", { class: "filepond--label-action" }, this.browseText))));
|
|
89
90
|
}
|
|
90
91
|
renderField(field) {
|
|
91
92
|
return (index.h("div", { class: "s-custom-fields-field", key: field.id }, index.h("label", { class: "s-custom-fields-field-label", htmlFor: `custom-field-${field.id}` }, field.label, field.required && index.h("span", { class: "s-custom-fields-required" }, "*")), index.h("div", null, field.type === interfaces.FormFieldTypes.Photo
|