@salla.sa/twilight-components 2.14.467 → 2.14.469
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-Li5IcLEr.js → filepond-CG7dNZgq.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CXgEvsrj.js → filepond-plugin-file-poster-B1zrjwgr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DISjKBXN.js → filepond-plugin-file-validate-size-BqZtoWbe.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BeDqb2RU.js → filepond-plugin-file-validate-type-BGmGKK9L.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CTKgasCY.js → filepond-plugin-image-edit-CYeh6qmG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BqvyVbfM.js → filepond-plugin-image-exif-orientation-BEVpo-ZQ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DfX-wD-s.js → filepond-plugin-image-preview-C7MMEZFE.js} +1 -1
- package/dist/cjs/{functions-DXNacMtu.js → functions-CnBVKKGk.js} +1 -1
- package/dist/cjs/{index-2n84VIdz.js → index-BNOCK3IN.js} +1 -1
- package/dist/cjs/{index-JuURs8Nc.js → index-inmL4H71.js} +9 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mail-Bgvt2hc9.js → mail-C9D8MHae.js} +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +29 -84
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +91 -7
- 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-cashback-banner.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 +3 -3
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +85 -31
- 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 +32 -2
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +4 -4
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.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 +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- 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-next-order-coupon.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-branch.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-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +259 -64
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +3 -3
- package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -3
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +252 -32
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +3 -3
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +329 -0
- package/dist/cjs/{tracked-promise-BdbqBT_O.js → tracked-promise-DvLhM2Sx.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-Cj5ogibZ.js → vanilla-picker-DtuN6WGq.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +90 -6
- package/dist/collection/components/salla-gifting/salla-gifting.css +18 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +91 -31
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +31 -1
- package/dist/collection/components/salla-product-options/salla-product-options.css +0 -3
- package/dist/collection/components/salla-product-options/salla-product-options.js +28 -84
- package/dist/collection/components/salla-products-list/salla-products-list.css +76 -0
- package/dist/collection/components/salla-products-list/salla-products-list.js +387 -65
- package/dist/collection/components/salla-social-share/salla-social-share.css +161 -0
- package/dist/collection/components/salla-social-share/salla-social-share.js +316 -50
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.css +65 -0
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +432 -0
- package/dist/components/index.js +5 -5
- package/dist/components/salla-bullet-delivery.js +90 -6
- package/dist/components/salla-gifting.js +86 -30
- package/dist/components/salla-login-modal2.js +31 -1
- package/dist/components/salla-product-options2.js +28 -84
- package/dist/components/salla-products-list2.js +266 -64
- package/dist/components/salla-social-share.js +1 -189
- package/dist/components/salla-social-share2.js +420 -0
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-wishlist-actions.d.ts +11 -0
- package/dist/components/salla-wishlist-actions.js +375 -0
- package/dist/esm/{filepond-Cpf2HNH9.js → filepond-D4dDq1wa.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CVurRtjC.js → filepond-plugin-file-poster-CcnsMPSH.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Dw2xFbfx.js → filepond-plugin-file-validate-size-qgEgRYkk.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-D6seJVa2.js → filepond-plugin-file-validate-type-BuFGnco8.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CBikW78V.js → filepond-plugin-image-edit-kS2Sie2d.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-5yNhe9TO.js → filepond-plugin-image-exif-orientation-Bjoh_of2.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-PlAAXB7f.js → filepond-plugin-image-preview-b_VEHHGf.js} +1 -1
- package/dist/esm/{functions-Egzz8fEM.js → functions-ISZQDw0y.js} +1 -1
- package/dist/esm/{index-Do4FV1UZ.js → index-CqC4wD_f.js} +1 -1
- package/dist/esm/{index-a4x9urdK.js → index-Cqh-ta1v.js} +9 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mail-DLNIOD9t.js → mail-DzAIgzdz.js} +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +29 -84
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +91 -7
- 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-cashback-banner.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 +3 -3
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +85 -31
- 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 +32 -2
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +4 -4
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +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-next-order-coupon.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-branch.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-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +259 -64
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +3 -3
- package/dist/esm/salla-rating-modal.entry.js +3 -3
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +252 -32
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-verify.entry.js +3 -3
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +327 -0
- package/dist/esm/{tracked-promise-BX5clCDX.js → tracked-promise-CH_UyK-l.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DB0pDHa7.js → vanilla-picker-PE31tu9y.js} +1 -1
- package/dist/twilight/{p-afcb0117.entry.js → p-054c9462.entry.js} +1 -1
- package/dist/twilight/{p-78020271.entry.js → p-06372aeb.entry.js} +1 -1
- package/dist/twilight/p-06c06719.entry.js +4 -0
- package/dist/twilight/{p-16bcc5ab.entry.js → p-0c7efc0b.entry.js} +1 -1
- package/dist/twilight/{p-53cbb271.entry.js → p-0cca1b63.entry.js} +1 -1
- package/dist/twilight/{p-ad19661d.entry.js → p-1415eb5e.entry.js} +1 -1
- package/dist/twilight/{p-a53d5944.entry.js → p-14a3277b.entry.js} +1 -1
- package/dist/twilight/{p-92b02f3c.entry.js → p-15b3f969.entry.js} +1 -1
- package/dist/twilight/{p-241bd42e.entry.js → p-16b64bb5.entry.js} +1 -1
- package/dist/twilight/{p-37457147.entry.js → p-16c64a38.entry.js} +1 -1
- package/dist/twilight/{p-f5135cb5.entry.js → p-17920aa7.entry.js} +1 -1
- package/dist/twilight/{p-ec5ae058.entry.js → p-196fad8d.entry.js} +1 -1
- package/dist/twilight/{p-5803c158.entry.js → p-19fe2b27.entry.js} +1 -1
- package/dist/twilight/{p-316135f8.entry.js → p-1c0f9fd9.entry.js} +1 -1
- package/dist/twilight/{p-1130d4b7.entry.js → p-1db8b515.entry.js} +1 -1
- package/dist/twilight/{p-d0340e11.entry.js → p-219b14c4.entry.js} +1 -1
- package/dist/twilight/{p-127ee640.entry.js → p-227d11a0.entry.js} +1 -1
- package/dist/twilight/p-293a6d6b.entry.js +4 -0
- package/dist/twilight/{p-0c748664.entry.js → p-2ba603bc.entry.js} +1 -1
- package/dist/twilight/p-2dbb3b49.entry.js +4 -0
- package/dist/twilight/{p-5b365561.entry.js → p-31bd852c.entry.js} +1 -1
- package/dist/twilight/{p-92f3ea44.entry.js → p-32a7cb85.entry.js} +1 -1
- package/dist/twilight/{p-1a37b959.entry.js → p-32d5d279.entry.js} +1 -1
- package/dist/twilight/{p-91363b7e.entry.js → p-36884c05.entry.js} +1 -1
- package/dist/twilight/{p-13a033fa.entry.js → p-38a791cb.entry.js} +1 -1
- package/dist/twilight/{p-0b169d4e.entry.js → p-3b198162.entry.js} +1 -1
- package/dist/twilight/{p-735fafef.entry.js → p-3d517178.entry.js} +1 -1
- package/dist/twilight/{p-d9d4ea5b.entry.js → p-3e5a57cc.entry.js} +1 -1
- package/dist/twilight/{p-fa1cc092.entry.js → p-40eb9556.entry.js} +6 -6
- package/dist/twilight/{p-1ce817c2.entry.js → p-49181c4a.entry.js} +1 -1
- package/dist/twilight/p-4a81a708.entry.js +4 -0
- package/dist/twilight/{p-35ac1fc9.entry.js → p-4b20872a.entry.js} +1 -1
- package/dist/twilight/{p-e27363dd.entry.js → p-4c370853.entry.js} +1 -1
- package/dist/twilight/{p-e1205d19.entry.js → p-4ee20a54.entry.js} +1 -1
- package/dist/twilight/{p-b0bf7a5b.entry.js → p-51c30ec2.entry.js} +1 -1
- package/dist/twilight/{p-2bcfb4f3.entry.js → p-5334222c.entry.js} +1 -1
- package/dist/twilight/{p-c0380d40.entry.js → p-559bdcca.entry.js} +1 -1
- package/dist/twilight/{p-03d13b9f.entry.js → p-5701244a.entry.js} +1 -1
- package/dist/twilight/{p-0da78d4e.entry.js → p-5d364fc2.entry.js} +1 -1
- package/dist/twilight/{p-DiWHgCMH.js → p-5fxCpxw5.js} +1 -1
- package/dist/twilight/{p-08b2c781.entry.js → p-61ad2660.entry.js} +1 -1
- package/dist/twilight/p-6590acee.entry.js +4 -0
- package/dist/twilight/{p-b8ab7da8.entry.js → p-681f8874.entry.js} +1 -1
- package/dist/twilight/{p-d17596ff.entry.js → p-6b6f9822.entry.js} +1 -1
- package/dist/twilight/{p-4d393389.entry.js → p-6d23fd92.entry.js} +1 -1
- package/dist/twilight/p-6e723d46.entry.js +4 -0
- package/dist/twilight/{p-d33203b7.entry.js → p-71f2ba66.entry.js} +1 -1
- package/dist/twilight/{p-c8fd03c0.entry.js → p-732bd9fb.entry.js} +1 -1
- package/dist/twilight/{p-42a0b54a.entry.js → p-73d9e4c8.entry.js} +1 -1
- package/dist/twilight/{p-e90d18b2.entry.js → p-74e0d0c2.entry.js} +1 -1
- package/dist/twilight/{p-52fe97c8.entry.js → p-77d2312a.entry.js} +1 -1
- package/dist/twilight/{p-635347c9.entry.js → p-78ff445c.entry.js} +1 -1
- package/dist/twilight/{p-74a61155.entry.js → p-798fb3c7.entry.js} +1 -1
- package/dist/twilight/{p-e726123e.entry.js → p-79c20964.entry.js} +1 -1
- package/dist/twilight/{p-C4aFleDM.js → p-7FtjQghq.js} +1 -1
- package/dist/twilight/{p-0405f5e8.entry.js → p-7afe6e1a.entry.js} +1 -1
- package/dist/twilight/{p-b80adb19.entry.js → p-7e185acf.entry.js} +1 -1
- package/dist/twilight/{p-f684d7bf.entry.js → p-8b538bd7.entry.js} +1 -1
- package/dist/twilight/{p-bfbf8121.entry.js → p-8bcc3b86.entry.js} +1 -1
- package/dist/twilight/{p-a068fff4.entry.js → p-8db52fe9.entry.js} +1 -1
- package/dist/twilight/{p-89f11893.entry.js → p-93ec294d.entry.js} +1 -1
- package/dist/twilight/p-9785f314.entry.js +4 -0
- package/dist/twilight/{p-ff270706.entry.js → p-9a3f27e9.entry.js} +1 -1
- package/dist/twilight/{p-DSBkBAFI.js → p-B0uENqSF.js} +1 -1
- package/dist/twilight/{p-B7KW0zhB.js → p-C3kw3FEZ.js} +1 -1
- package/dist/twilight/{p-BVqg7xd9.js → p-CUfwD9kr.js} +1 -1
- package/dist/twilight/{p-a4x9urdK.js → p-Cqh-ta1v.js} +2 -2
- package/dist/twilight/{p-fCaOxwGH.js → p-DZ18vMT2.js} +1 -1
- package/dist/twilight/{p-EPfEwqOC.js → p-DyQ5MH6F.js} +1 -1
- package/dist/twilight/{p-DLNIOD9t.js → p-DzAIgzdz.js} +1 -1
- package/dist/twilight/{p-pOgjUtf9.js → p-J_27I63T.js} +1 -1
- package/dist/twilight/{p-10e0936d.entry.js → p-a85d80b5.entry.js} +1 -1
- package/dist/twilight/{p-6d47892b.entry.js → p-a918b812.entry.js} +1 -1
- package/dist/twilight/{p-ba1199ba.entry.js → p-aec0a2df.entry.js} +1 -1
- package/dist/twilight/{p-9b639078.entry.js → p-b16d8b19.entry.js} +1 -1
- package/dist/twilight/{p-ee605cef.entry.js → p-b295c1f1.entry.js} +1 -1
- package/dist/twilight/{p-0957f323.entry.js → p-b6c0aa79.entry.js} +1 -1
- package/dist/twilight/{p-0bdf58a4.entry.js → p-b7727021.entry.js} +1 -1
- package/dist/twilight/{p-e8a82952.entry.js → p-badf4c9d.entry.js} +1 -1
- package/dist/twilight/{p-fe506679.entry.js → p-c6be8afd.entry.js} +1 -1
- package/dist/twilight/{p-ec073354.entry.js → p-ccd8c960.entry.js} +1 -1
- package/dist/twilight/{p-3fbd88d0.entry.js → p-ce0410d5.entry.js} +1 -1
- package/dist/twilight/{p-ef8fb222.entry.js → p-cee7a8ad.entry.js} +1 -1
- package/dist/twilight/{p-f6bb956c.entry.js → p-d0c8435f.entry.js} +1 -1
- package/dist/twilight/{p-59f815bc.entry.js → p-d23eeb0c.entry.js} +1 -1
- package/dist/twilight/{p-f170aff7.entry.js → p-d63f2cbd.entry.js} +1 -1
- package/dist/twilight/{p-6d87b134.entry.js → p-d6b6a8ad.entry.js} +1 -1
- package/dist/twilight/{p-b0ed6a9f.entry.js → p-d823cbcd.entry.js} +1 -1
- package/dist/twilight/{p-9df5c9a7.entry.js → p-d8f22e4b.entry.js} +1 -1
- package/dist/twilight/{p-CsMnvJkR.js → p-dKdk2xpB.js} +1 -1
- package/dist/twilight/p-dbdbb882.entry.js +4 -0
- package/dist/twilight/{p-d905fbca.entry.js → p-dc8555bf.entry.js} +1 -1
- package/dist/twilight/{p-fbfacb11.entry.js → p-dca3b67e.entry.js} +1 -1
- package/dist/twilight/{p-056400a1.entry.js → p-e0671ff1.entry.js} +1 -1
- package/dist/twilight/{p-59f7f014.entry.js → p-e06e37c1.entry.js} +1 -1
- package/dist/twilight/{p-c60c302f.entry.js → p-e265d626.entry.js} +1 -1
- package/dist/twilight/{p-61b1fd3b.entry.js → p-f0e96875.entry.js} +1 -1
- package/dist/twilight/p-f64168cc.entry.js +4 -0
- package/dist/twilight/{p-0b1970c2.entry.js → p-f67639df.entry.js} +1 -1
- package/dist/twilight/{p-fa039238.entry.js → p-fd180bd3.entry.js} +1 -1
- package/dist/twilight/{p-D9ni3BuG.js → p-m2p-QAbu.js} +1 -1
- package/dist/twilight/{p-CkA6UKAD.js → p-yyvPGK6r.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +16 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +4 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +5 -1
- package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +2 -0
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +0 -11
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +60 -6
- package/dist/types/components/salla-social-share/salla-social-share.d.ts +39 -2
- package/dist/types/components/salla-wishlist-actions/salla-wishlist-actions.d.ts +93 -0
- package/dist/types/components.d.ts +172 -18
- package/package.json +5 -5
- package/dist/twilight/p-234fdf72.entry.js +0 -4
- package/dist/twilight/p-7a1cfd65.entry.js +0 -4
- package/dist/twilight/p-865c602e.entry.js +0 -4
- package/dist/twilight/p-9dc0fec4.entry.js +0 -4
- package/dist/twilight/p-e485d0b8.entry.js +0 -4
- package/dist/twilight/p-f5072671.entry.js +0 -4
- package/dist/twilight/p-fb7904e6.entry.js +0 -4
- package/dist/twilight/p-fdde8399.entry.js +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
5
|
-
import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-Cqh-ta1v.js';
|
|
5
|
+
import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-ISZQDw0y.js';
|
|
6
6
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
7
|
import { S as SITag } from './tag-cgSL_BIo.js';
|
|
8
8
|
import { S as SICheck } from './check-BZp0rKEO.js';
|
|
9
9
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
10
|
-
import { T as TrackedPromise } from './tracked-promise-
|
|
10
|
+
import { T as TrackedPromise } from './tracked-promise-CH_UyK-l.js';
|
|
11
11
|
|
|
12
12
|
const sallaLoyaltyProgramCss$3 = "";
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-Cqh-ta1v.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
|
|
7
7
|
var StoreAlt = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-Cqh-ta1v.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
import { H as Helper } from './Helper-BXj4f_Qj.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-Cqh-ta1v.js';
|
|
5
5
|
import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-Cqh-ta1v.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
7
|
-
import {
|
|
7
|
+
import { e as email } from './mail-DzAIgzdz.js';
|
|
8
8
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
9
9
|
|
|
10
10
|
var copy_link = `<!-- Generated by IcoMoon.io -->
|
|
@@ -37,35 +37,74 @@ var ShareAlt = `<!-- Generated by IcoMoon.io -->
|
|
|
37
37
|
</svg>
|
|
38
38
|
`;
|
|
39
39
|
|
|
40
|
-
const sallaSocialShareCss = "";
|
|
40
|
+
const sallaSocialShareCss = ":global(body.s-social-share-modal-is-open){overflow:hidden}.s-social-share-modal{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:1rem;background-color:rgba(17, 24, 39, 0.5)}.s-social-share-modal-dialog{position:relative;width:100%;max-width:32rem;padding:1.5rem;background-color:#fff;border-radius:1rem;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)}.s-social-share-modal-handle{display:none}.s-social-share-modal-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.s-social-share-modal-title{font-size:1.125rem;font-weight:700;color:#1f2937}.s-social-share-modal-close{display:inline-flex;align-items:center;justify-content:center;padding:0.25rem;line-height:0;background:transparent;border:0;cursor:pointer}.s-social-share-modal-close-icon svg{width:1.25rem;height:1.25rem;fill:#ef4444}.s-social-share-modal-platforms{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:0.75rem}.s-social-share-modal-card{display:flex;flex-direction:column;align-items:center;gap:0.5rem;padding:0.75rem;border:1px solid #e5e7eb;border-radius:0.75rem;text-decoration:none;cursor:pointer;transition:border-color 0.15s ease, box-shadow 0.15s ease}.s-social-share-modal-card:hover{border-color:#d1d5db;box-shadow:0 1px 3px rgba(0, 0, 0, 0.08)}.s-social-share-modal-icon{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem;border-radius:9999px}.s-social-share-modal-icon svg{width:1.25rem;height:1.25rem;fill:#fff}.s-social-share-modal-card-label{font-size:0.875rem;color:#4b5563}.s-social-share-modal-copy-row{display:flex;align-items:center;gap:0.75rem;margin-top:1rem;padding:0.5rem;background-color:#f3f4f6;border-radius:0.75rem}.s-social-share-modal-url{flex:1 1 auto;min-width:0;padding:0 0.5rem;font-size:0.875rem;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes s-social-share-sheet-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@media (max-width: 640px){.s-social-share-modal{align-items:flex-end;justify-content:center;padding:0}.s-social-share-modal-dialog{max-width:none;padding:0.75rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));border-radius:1rem 1rem 0 0;box-shadow:0 -4px 24px rgba(0, 0, 0, 0.12);animation:s-social-share-sheet-in 0.28s ease-out}.s-social-share-modal-handle{display:block;width:2.5rem;height:0.25rem;margin:0 auto 0.75rem;background-color:#d1d5db;border-radius:9999px}.s-social-share-modal-header{margin-bottom:1rem}.s-social-share-modal-platforms{grid-template-columns:repeat(2, minmax(0, 1fr))}}";
|
|
41
41
|
|
|
42
42
|
const SallaSocialShare = class {
|
|
43
43
|
constructor(hostRef) {
|
|
44
44
|
registerInstance(this, hostRef);
|
|
45
|
+
this.ignoreOutsideClick = false;
|
|
46
|
+
/** Bilingual defaults for the modal variant; store translations always win. */
|
|
47
|
+
this.translationDefaults = {
|
|
48
|
+
'common.social.share': { ar: 'مشاركة', en: 'Share' },
|
|
49
|
+
'common.social.email': { ar: 'إيميل', en: 'Email' },
|
|
50
|
+
'common.social.whatsapp': { ar: 'واتساب', en: 'WhatsApp' },
|
|
51
|
+
'common.social.twitter': { ar: 'أكس', en: 'X' },
|
|
52
|
+
'common.social.facebook': { ar: 'فيسبوك', en: 'Facebook' },
|
|
53
|
+
'common.social.copy': { ar: 'نسخ', en: 'Copy' },
|
|
54
|
+
'common.social.copied': { ar: 'تم النسخ', en: 'Copied' },
|
|
55
|
+
};
|
|
56
|
+
this.onDocumentClick = (event) => {
|
|
57
|
+
if (this.ignoreOutsideClick || !this.opened || this.host.contains(event.target)) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
void this.close();
|
|
61
|
+
};
|
|
45
62
|
this.opened = false;
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
63
|
+
this.copied = false;
|
|
64
|
+
this.allPlatforms = [
|
|
65
|
+
Socials.WHATSAPP,
|
|
66
|
+
Socials.FACEBOOK,
|
|
67
|
+
Socials.TWITTER,
|
|
68
|
+
Socials.EMAIL,
|
|
69
|
+
Socials.COPY_LINK,
|
|
70
|
+
];
|
|
71
|
+
this.platformIcons = [
|
|
72
|
+
{ icon: whatsapp, name: Socials.WHATSAPP },
|
|
73
|
+
{
|
|
48
74
|
icon: facebook,
|
|
49
|
-
name: Socials.FACEBOOK
|
|
50
|
-
},
|
|
75
|
+
name: Socials.FACEBOOK,
|
|
76
|
+
},
|
|
77
|
+
{ icon: twitter, name: Socials.TWITTER },
|
|
78
|
+
{ icon: email, name: Socials.EMAIL },
|
|
79
|
+
{
|
|
51
80
|
icon: copy_link,
|
|
52
|
-
name: Socials.COPY_LINK
|
|
53
|
-
}
|
|
81
|
+
name: Socials.COPY_LINK,
|
|
82
|
+
},
|
|
83
|
+
];
|
|
54
84
|
this.convertedPlatforms = [];
|
|
55
85
|
/**
|
|
56
86
|
* page url that will be shared custom | current page url
|
|
57
87
|
*/
|
|
58
|
-
this.url =
|
|
88
|
+
this.url = '';
|
|
59
89
|
/**
|
|
60
90
|
* page url name that will be shared custom | current page url
|
|
61
91
|
*/
|
|
62
|
-
this.urlName =
|
|
92
|
+
this.urlName = '';
|
|
63
93
|
/**
|
|
64
94
|
* selected platforms to share | all platforms
|
|
65
95
|
*/
|
|
66
96
|
this.platforms = 'facebook,twitter,whatsapp,email,copy_link';
|
|
97
|
+
/**
|
|
98
|
+
* Share UI variant: `default` dropdown menu or centered `modal` dialog.
|
|
99
|
+
*/
|
|
100
|
+
this.mode = 'default';
|
|
101
|
+
/**
|
|
102
|
+
* Optional title for the modal variant header. Defaults to a localized "Share".
|
|
103
|
+
*/
|
|
104
|
+
this.modalTitle = '';
|
|
67
105
|
}
|
|
68
106
|
componentWillLoad() {
|
|
107
|
+
this.registerTranslationDefaults();
|
|
69
108
|
if (this.host.hasAttribute('aria-label')) {
|
|
70
109
|
this.host.removeAttribute('aria-label');
|
|
71
110
|
}
|
|
@@ -80,50 +119,123 @@ const SallaSocialShare = class {
|
|
|
80
119
|
window.a2a_config.locale = salla.config.get('user.language_code', salla.lang.getLocale());
|
|
81
120
|
window.a2a_config.callbacks = window.a2a_config.callbacks || [];
|
|
82
121
|
window.a2a_config.callbacks.push({
|
|
83
|
-
share:
|
|
122
|
+
share: data => {
|
|
84
123
|
// Handle share event
|
|
85
124
|
const shareData = {
|
|
86
125
|
share_via: data.service.toLowerCase(),
|
|
87
126
|
url: data.url,
|
|
88
|
-
title: data.title
|
|
127
|
+
title: data.title,
|
|
89
128
|
};
|
|
90
129
|
// Dispatch the share event
|
|
91
130
|
salla.event.emit('share-element', shareData);
|
|
92
|
-
}
|
|
131
|
+
},
|
|
93
132
|
});
|
|
94
133
|
};
|
|
95
134
|
document.body.appendChild(script);
|
|
96
135
|
}
|
|
136
|
+
componentDidLoad() {
|
|
137
|
+
document.addEventListener('click', this.onDocumentClick);
|
|
138
|
+
}
|
|
139
|
+
disconnectedCallback() {
|
|
140
|
+
document.removeEventListener('click', this.onDocumentClick);
|
|
141
|
+
if (this.copiedResetTimeout) {
|
|
142
|
+
window.clearTimeout(this.copiedResetTimeout);
|
|
143
|
+
}
|
|
144
|
+
this.setBodyScrollLocked(false);
|
|
145
|
+
}
|
|
97
146
|
/**
|
|
98
|
-
*
|
|
147
|
+
* Register bilingual (ar/en) defaults without overriding existing translations.
|
|
148
|
+
*/
|
|
149
|
+
registerTranslationDefaults() {
|
|
150
|
+
if (!salla?.lang?.addBulk) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const missing = Object.entries(this.translationDefaults).reduce((acc, [key, value]) => {
|
|
154
|
+
if (salla.lang.get(key) === key) {
|
|
155
|
+
acc[key] = value;
|
|
156
|
+
}
|
|
157
|
+
return acc;
|
|
158
|
+
}, {});
|
|
159
|
+
if (Object.keys(missing).length) {
|
|
160
|
+
salla.lang.addBulk(missing);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
resolveShareKit() {
|
|
164
|
+
return this.host.querySelector('.a2a_kit');
|
|
165
|
+
}
|
|
166
|
+
deferOutsideClickGuard() {
|
|
167
|
+
this.ignoreOutsideClick = true;
|
|
168
|
+
requestAnimationFrame(() => {
|
|
169
|
+
this.ignoreOutsideClick = false;
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Open the share menu.
|
|
99
174
|
*/
|
|
100
175
|
async open() {
|
|
101
|
-
|
|
102
|
-
|
|
176
|
+
if (this.opened) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
this.opened = true;
|
|
180
|
+
this.deferOutsideClickGuard();
|
|
181
|
+
if (this.mode === 'modal') {
|
|
182
|
+
this.setBodyScrollLocked(true);
|
|
183
|
+
}
|
|
184
|
+
await new Promise(resolve => requestAnimationFrame(() => resolve()));
|
|
185
|
+
if (!this.opened) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
// Wire AddToAny on the freshly rendered anchors (kit only exists once opened).
|
|
189
|
+
await this.refresh();
|
|
190
|
+
if (this.mode === 'modal') {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
const menu = this.resolveShareKit();
|
|
194
|
+
if (!menu) {
|
|
195
|
+
this.opened = false;
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
this.openAnimation = new anime.timeline().add({
|
|
199
|
+
targets: menu,
|
|
103
200
|
translateY: [-50, 0],
|
|
104
201
|
opacity: [0, 1],
|
|
105
202
|
duration: 300,
|
|
106
203
|
podding: '0',
|
|
107
|
-
easing: 'easeInOutSine'
|
|
204
|
+
easing: 'easeInOutSine',
|
|
108
205
|
});
|
|
109
|
-
|
|
110
|
-
targets:
|
|
206
|
+
this.openAnimation.add({
|
|
207
|
+
targets: menu.children,
|
|
111
208
|
translateZ: 0,
|
|
112
209
|
translateY: [-30, 0],
|
|
113
210
|
scaleY: [0, 1],
|
|
114
211
|
opacity: [0, 1],
|
|
115
212
|
duration: 1400,
|
|
116
|
-
delay: anime.stagger(100)
|
|
213
|
+
delay: anime.stagger(100),
|
|
117
214
|
}, '-=200');
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Close the share menu.
|
|
218
|
+
*/
|
|
219
|
+
async close() {
|
|
220
|
+
if (!this.opened) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
this.openAnimation?.pause();
|
|
224
|
+
this.openAnimation?.seek(0);
|
|
225
|
+
this.opened = false;
|
|
226
|
+
if (this.mode === 'modal') {
|
|
227
|
+
this.setBodyScrollLocked(false);
|
|
121
228
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
229
|
+
}
|
|
230
|
+
setBodyScrollLocked(locked) {
|
|
231
|
+
document.body.classList.toggle('s-social-share-modal-is-open', locked);
|
|
232
|
+
}
|
|
233
|
+
toggle() {
|
|
234
|
+
if (this.opened) {
|
|
235
|
+
return this.close();
|
|
126
236
|
}
|
|
237
|
+
this.deferOutsideClickGuard();
|
|
238
|
+
return this.open();
|
|
127
239
|
}
|
|
128
240
|
/**
|
|
129
241
|
* Asynchronously initializes the "AddToAny" (a2a) social sharing tool on the current page.
|
|
@@ -143,20 +255,128 @@ const SallaSocialShare = class {
|
|
|
143
255
|
* @async
|
|
144
256
|
* @returns {Promise<void>} A promise that resolves once the initialization is complete.
|
|
145
257
|
*/
|
|
258
|
+
onUrlChanged(newUrl, oldUrl) {
|
|
259
|
+
if (newUrl !== oldUrl) {
|
|
260
|
+
void this.refresh();
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
getShareUrl() {
|
|
264
|
+
return this.url || window.location.href;
|
|
265
|
+
}
|
|
266
|
+
getModalTitle() {
|
|
267
|
+
return this.modalTitle || salla.lang.get('common.social.share');
|
|
268
|
+
}
|
|
269
|
+
syncShareAttributes() {
|
|
270
|
+
const kit = this.resolveShareKit();
|
|
271
|
+
if (!kit) {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
kit.setAttribute('data-a2a-url', this.getShareUrl());
|
|
275
|
+
kit.setAttribute('data-a2a-title', this.urlName || document.title);
|
|
276
|
+
}
|
|
146
277
|
async refresh() {
|
|
147
|
-
|
|
278
|
+
this.syncShareAttributes();
|
|
279
|
+
// Re-scan kits so AddToAny picks up the updated data-a2a-url (init caches the first URL).
|
|
280
|
+
if (typeof window.a2a?.init_all === 'function') {
|
|
281
|
+
window.a2a.init_all();
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
148
284
|
window.a2a?.init('page');
|
|
149
285
|
}
|
|
150
|
-
|
|
151
|
-
|
|
286
|
+
async copyLink() {
|
|
287
|
+
const url = this.getShareUrl();
|
|
288
|
+
try {
|
|
289
|
+
await navigator.clipboard.writeText(url);
|
|
290
|
+
}
|
|
291
|
+
catch {
|
|
292
|
+
const textarea = document.createElement('textarea');
|
|
293
|
+
textarea.value = url;
|
|
294
|
+
textarea.style.position = 'fixed';
|
|
295
|
+
textarea.style.opacity = '0';
|
|
296
|
+
document.body.appendChild(textarea);
|
|
297
|
+
textarea.select();
|
|
298
|
+
try {
|
|
299
|
+
document.execCommand('copy');
|
|
300
|
+
}
|
|
301
|
+
catch {
|
|
302
|
+
/* noop */
|
|
303
|
+
}
|
|
304
|
+
textarea.remove();
|
|
305
|
+
}
|
|
306
|
+
salla.event.emit('share-element', {
|
|
307
|
+
share_via: 'copy_link',
|
|
308
|
+
url,
|
|
309
|
+
title: this.urlName || document.title,
|
|
310
|
+
});
|
|
311
|
+
this.copied = true;
|
|
312
|
+
if (this.copiedResetTimeout) {
|
|
313
|
+
window.clearTimeout(this.copiedResetTimeout);
|
|
314
|
+
}
|
|
315
|
+
this.copiedResetTimeout = window.setTimeout(() => (this.copied = false), 2000);
|
|
316
|
+
}
|
|
317
|
+
modalPlatformMeta(platform) {
|
|
318
|
+
switch (platform) {
|
|
319
|
+
case Socials.WHATSAPP:
|
|
320
|
+
return {
|
|
321
|
+
icon: whatsapp,
|
|
322
|
+
color: '#25D366',
|
|
323
|
+
label: salla.lang.get('common.social.whatsapp'),
|
|
324
|
+
};
|
|
325
|
+
case Socials.FACEBOOK:
|
|
326
|
+
return {
|
|
327
|
+
icon: facebook,
|
|
328
|
+
color: '#1877F2',
|
|
329
|
+
label: salla.lang.get('common.social.facebook'),
|
|
330
|
+
};
|
|
331
|
+
case Socials.TWITTER:
|
|
332
|
+
return { icon: twitter, color: '#000000', label: salla.lang.get('common.social.twitter') };
|
|
333
|
+
case Socials.EMAIL:
|
|
334
|
+
return { icon: email, color: '#2BA6FF', label: salla.lang.get('common.social.email') };
|
|
335
|
+
default:
|
|
336
|
+
return { icon: copy_link, color: '#6b7280', label: platform };
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
renderModalCard(platform) {
|
|
340
|
+
const meta = this.modalPlatformMeta(platform);
|
|
341
|
+
return (h("a", { class: `s-social-share-modal-card a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, h("span", { class: "s-social-share-modal-icon", style: { backgroundColor: meta.color }, innerHTML: meta.icon }), h("span", { class: "s-social-share-modal-card-label" }, meta.label)));
|
|
342
|
+
}
|
|
343
|
+
renderModal() {
|
|
344
|
+
if (!this.opened) {
|
|
345
|
+
return null;
|
|
346
|
+
}
|
|
347
|
+
const enabled = this.platforms.split(',').map(platform => platform.trim());
|
|
348
|
+
const order = [Socials.EMAIL, Socials.WHATSAPP, Socials.TWITTER, Socials.FACEBOOK];
|
|
349
|
+
const platforms = order.filter(platform => enabled.includes(platform));
|
|
350
|
+
const showCopy = enabled.includes(Socials.COPY_LINK);
|
|
351
|
+
return (h("div", { class: "s-social-share-modal", onClick: event => {
|
|
352
|
+
if (event.target === event.currentTarget) {
|
|
353
|
+
void this.close();
|
|
354
|
+
}
|
|
355
|
+
} }, h("div", { class: "s-social-share-modal-dialog", role: "dialog", "aria-modal": "true" }, h("div", { class: "s-social-share-modal-handle", "aria-hidden": "true" }), h("div", { class: "s-social-share-modal-header" }, h("span", { class: "s-social-share-modal-title" }, this.getModalTitle()), h("button", { type: "button", class: "s-social-share-modal-close", "aria-label": salla.lang.get('common.elements.close'), onClick: () => this.close() }, h("span", { class: "s-social-share-modal-close-icon", innerHTML: SICancel }))), h("div", { class: "s-social-share-modal-platforms a2a_kit", "data-a2a-url": this.getShareUrl(), "data-a2a-title": this.urlName ? this.urlName : document.title }, platforms.map(platform => this.renderModalCard(platform))), showCopy && (h("div", { class: "s-social-share-modal-copy-row" }, h("span", { class: "s-social-share-modal-url", dir: "ltr" }, this.getShareUrl()), h("salla-button", { type: "button", fill: "outline", onClick: () => this.copyLink() }, this.copied
|
|
356
|
+
? salla.lang.get('common.social.copied')
|
|
357
|
+
: salla.lang.get('common.social.copy')))))));
|
|
358
|
+
}
|
|
359
|
+
renderPopupList() {
|
|
360
|
+
return (h("ul", { class: {
|
|
361
|
+
's-social-share-list': true,
|
|
362
|
+
a2a_kit: true,
|
|
363
|
+
share: true,
|
|
364
|
+
opened: this.opened,
|
|
365
|
+
}, "data-a2a-url": this.getShareUrl(), "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
|
|
152
366
|
return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
153
367
|
if (icon.name === platform) {
|
|
154
368
|
return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
155
369
|
}
|
|
156
370
|
}))));
|
|
157
|
-
})))
|
|
371
|
+
})));
|
|
372
|
+
}
|
|
373
|
+
render() {
|
|
374
|
+
return (h("div", { key: '56f669cd8567efe9f1a73e302d2d85be23dd901b', class: "s-social-share-wrapper" }, h("slot", { key: '2c1848fa62c1ec3b8301d0544cd8098ea647e2e7', name: "widget" }, h("salla-button", { key: '0a7ccac871963382f1c2fc594877b5445e5f8830', "aria-label": "Share", onClick: () => this.toggle(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '658cd0182e40140a73614ae477b43ff2e388e155', innerHTML: this.opened ? SICancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
158
375
|
}
|
|
159
376
|
get host() { return getElement(this); }
|
|
377
|
+
static get watchers() { return {
|
|
378
|
+
"url": ["onUrlChanged"]
|
|
379
|
+
}; }
|
|
160
380
|
};
|
|
161
381
|
SallaSocialShare.style = sallaSocialShareCss;
|
|
162
382
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-Cqh-ta1v.js';
|
|
5
5
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
6
6
|
|
|
7
7
|
var instagram = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-Cqh-ta1v.js';
|
|
5
5
|
|
|
6
6
|
const sallaTabContentCss = "";
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ const SallaTabContent = class {
|
|
|
31
31
|
's-tabs-content': true,
|
|
32
32
|
's-tabs-content-selected': this.isSelected
|
|
33
33
|
};
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'f2deb9c1508aafe3aff5352094cccc97bdcd42ef', class: classes }, h("slot", { key: '460588864047444acdb06e757a7124d28935c24b' })));
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
SallaTabContent.style = sallaTabContentCss;
|
|
@@ -90,7 +90,7 @@ const SallaTabHeader = class {
|
|
|
90
90
|
's-tabs-active': this.isSelected,
|
|
91
91
|
};
|
|
92
92
|
return [
|
|
93
|
-
h("div", { key: '
|
|
93
|
+
h("div", { key: '153247ab5a7c73819ccc506a45e60b9c084c391c', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '417a3ae0c0aec8a965b5d3be9a4f917f290d2109' })),
|
|
94
94
|
];
|
|
95
95
|
}
|
|
96
96
|
};
|
|
@@ -143,7 +143,7 @@ const SallaTabs = class {
|
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
145
|
return [
|
|
146
|
-
h("div", { key: '
|
|
146
|
+
h("div", { key: 'ae50836f68ee92459720fa9bf00d73848d849627', class: "s-tabs" }, h("div", { key: '55e8186e80381902269f9bad5738d9a555f71d37', class: "s-tabs-header" }, h("slot", { key: '46ce3e1ea75f92165b3d5ee7c16f19f8693f6d31', name: "header" })), h("div", { key: '3669e643abb37ed2edca73fc0577822a3f7fbb90', class: "s-tabs-content-wrapper" }, h("slot", { key: '2cf8b79f44630e21103991325ceff2cd3a4019ba', name: "content" })))
|
|
147
147
|
];
|
|
148
148
|
}
|
|
149
149
|
get host() { return getElement(this); }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-Cqh-ta1v.js';
|
|
5
5
|
|
|
6
6
|
const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-63%) translateY(-50%);background-color:var(--color-primary);color:var(--color-primary-reverse);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:var(--color-primary) 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}";
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ const SallaTooltip = class {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'e5e8f78265e0abb1d4130fd084573c6cff1ecb2c', class: "s-tooltip-container" }, h("div", { key: '4dc98906dfd28c6e2d97b51329c07046eb15179c', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
35
35
|
}
|
|
36
36
|
get el() { return getElement(this); }
|
|
37
37
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-Cqh-ta1v.js';
|
|
5
5
|
import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
|
|
6
6
|
import { B as BellRing } from './bell-ring-D3mWkc-3.js';
|
|
7
7
|
import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-Cqh-ta1v.js';
|
|
5
5
|
import { G as Genders } from './interfaces-OF8QcbMM.js';
|
|
6
6
|
|
|
7
7
|
const sallaUserProfileCss = ":host{display:block}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-Cqh-ta1v.js';
|
|
5
5
|
|
|
6
6
|
var Bullhorn = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -78,7 +78,7 @@ const SallaUserSettings = class {
|
|
|
78
78
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'b37f8e7cd7fe59dfd4f4e1efe455e74d33d4b91e', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '7cf5f1ed489159ef1c754fc8368b390d35cc273d', class: "s-user-settings-section" }, h("salla-list-tile", { key: '961843ff5de245febf4b5d9d4a96d47b44aeaff3' }, h("div", { key: 'bdfa266ee2694e410ff2bc8d6ec31b5210e7bf08', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '8ff08646cb3b3ba8d157f07cb4d54a6f515409a7', innerHTML: UserCancel })), h("div", { key: '8030d07722d9ad730676dafd1323b93a361f91da', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: 'f4c524dfe45418f0dd7395e998b1c16aa951a5f9', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '74569032acb01ff1037104dcaf46f13c18c16803', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '6002a8368a587dbd8d3fd3fc1231e52ee44ebbbe', class: "s-toggle" }, h("input", { key: '2e9a622f9a670ef0f314c6183c57c851334a7df5', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'ca57daef65f550d53c1f947b41d3fb488bd38a95', class: "s-toggle-switcher" }))))), h("div", { key: 'b81a0200e08c0eca176060362792a45d9d7ad41e', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'ebcdac4056d21cbbd218b246cdd6c5bfa7bc2ac3' }, h("div", { key: 'df3a675745a0945498f3f45e11016f9f9c71ce6d', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'b5accc798ca95bd803f9c721f96fe62ca27e8ecf', innerHTML: Bullhorn })), h("div", { key: 'fe82c42f7586ba892f14ed7b1d2f85e19c508e8c', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'ec35e1a363a0802ab14a92b4bc8b858b9bf79c72', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'cc0d65144cfffc7fc795f3b1dde9ae6d75e827ec', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '945d030759a2ab27b9e9379d96f879d299b0a444', class: "s-toggle" }, h("input", { key: '6dd35723f4e049263193d50d1488a300e26a166e', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '1f529a32b220a0a5ba673fe41573786450e4f1b8', class: "s-toggle-switcher" }))))), h("div", { key: '9973aa99cd3944ced8e87da05a3711b9cde5faa4', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '97ea806a1c5bc6e7f08ab04cdf555173d7e2c268' }, h("div", { key: 'fa98419cd6e11598c6e230ad462501f3dd66b975', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '9bb7192d2bcdd942974a2a6e405878998e090f3c', innerHTML: UserOff })), h("div", { key: '9e79bfd50311f2ec272bc6d90224d2f81c736d8e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '805696292b1354bf57b0f0252eabd031dc4ac5db', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '4984f94d2eef4870036d1bea837cbe16e9978d84', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: '7be1eaf49fdb3df86b953a14879695c0c2eae838', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: '55608c2fbfd01c328f923316aa203ebd6539ef86', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '247bb5555b3aa936ab4815f16ec332f6d922ab49', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: 'd8499d470dd0cce984687c9f6842970467b832a9', class: "s-user-settings-confirmation" }, h("div", { key: 'c4d98f4dc7591c53a0f4ab71fc1c7e0d446cebfc', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: 'abebad572dab06b497451fff00a405e4c9db5652', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'bfde878cc657d975154f6e8b73220786b3898dbf', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: 'b3334a9b6fda2aa6de6f66f610efbba8ae95910f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
SallaUserSettings.style = sallaUserSettingsCss;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
5
|
-
import {
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-Cqh-ta1v.js';
|
|
5
|
+
import { e as email } from './mail-DzAIgzdz.js';
|
|
6
6
|
|
|
7
7
|
var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
|
|
8
8
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -245,7 +245,7 @@ const SallaVerify = class {
|
|
|
245
245
|
}
|
|
246
246
|
render() {
|
|
247
247
|
return this.display == 'inline' ? h(Host, null, this.myBody()) :
|
|
248
|
-
h("salla-modal", { width: "xs", class: "s-verify", ref: modal => this.modal = modal, "modal-title": this.title }, h("span", { slot: 'icon', class: "s-verify-header-icon", innerHTML: this.type == "mobile" ? AndroidPhoneIcon :
|
|
248
|
+
h("salla-modal", { width: "xs", class: "s-verify", ref: modal => this.modal = modal, "modal-title": this.title }, h("span", { slot: 'icon', class: "s-verify-header-icon", innerHTML: this.type == "mobile" ? AndroidPhoneIcon : email }), this.myBody());
|
|
249
249
|
}
|
|
250
250
|
myBody() {
|
|
251
251
|
return (h("div", { class: "s-verify-body", ref: body => this.body = body }, h("div", { class: "s-verify-message", innerHTML: salla.lang.get('pages.profile.verify_message') }), h("slot", { name: "mobile" }), h("slot", { name: "email" }), h("input", { type: "hidden", name: "code", maxlength: "4", required: true, ref: code => this.code = code }), h("div", { class: { "s-verify-codes": true, "has-error": this.hasError }, dir: "ltr" }, [1, 2, 3, 4].map((i) => h("input", { type: "number", autocomplete: "one-time-code", pattern: "[0-9]*", inputmode: "numeric", maxlength: "1", value: "", id: `otp-${i}`, class: { "s-verify-input": true, "s-has-error": this.hasError }, onInput: e => this.handleInput(e), onPaste: e => this.handlePaste(e), onKeyUp: e => this.handleKeyUp(e), onFocus: e => this.handleFocus(e), required: true }))), this.hasError && this.errorMessage ? h("span", { class: "s-verify-error-message" }, this.errorMessage) : '', h("div", { slot: "footer", class: "s-verify-footer" }, h("salla-button", { class: "s-verify-submit", "loader-position": 'center', disabled: true, onClick: () => this.submit(), ref: b => this.btn = b }, salla.lang.get('pages.profile.verify')), h("p", { class: "s-verify-resend-message", ref: el => this.resendMessage = el }, salla.lang.get('blocks.header.resend_after'), h("b", { class: "s-verify-timer", ref: el => this.timer = el })), h("a", { href: "#", class: "s-verify-resend", onClick: () => this.resendCode(), ref: el => this.resend = el }, salla.lang.get('blocks.comments.submit'))), h("slot", { name: "after-footer" })));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-Cqh-ta1v.js';
|
|
5
5
|
|
|
6
6
|
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}";
|
|
7
7
|
|