@salla.sa/twilight-components 2.14.586 → 2.14.587
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond-D_6sbWQk.js → filepond-BF8Q2gfH.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CVS8pOZw.js → filepond-plugin-file-poster-CDZXoVge.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-o1y8Fye-.js → filepond-plugin-file-validate-size-M6dKiRMH.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Djhh1ldw.js → filepond-plugin-file-validate-type-BSTQI9uG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-0QzvFJme.js → filepond-plugin-image-edit-h3hJm3qv.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-D8VMTsfT.js → filepond-plugin-image-exif-orientation-CXkq3_oT.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-D77Y-dvk.js → filepond-plugin-image-preview-BP4-WdE7.js} +1 -1
- package/dist/cjs/{index-CReCU9cs.js → index-DN51eLtp.js} +2 -2
- package/dist/cjs/{intlTelInput-DpaOw5FS.js → intlTelInput-Cgao3Jc8.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +99 -22
- 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-applied-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-attachment-view_9.cjs.entry.js +10 -10
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_9.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +2 -2
- 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-gift-card-redeem.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
- 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.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_3.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_2.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-cancel.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-options-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.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 +24 -3
- 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.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search-product-card.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-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-summary.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-qPeQoSpS.js → vanilla-picker-BAqDsAyV.js} +1 -1
- package/dist/collection/components/salla-contacts/salla-contacts.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.css +3 -0
- package/dist/collection/components/salla-payments/salla-payments.js +22 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +20 -6
- package/dist/components/index.js +2 -2
- package/dist/components/salla-contacts.js +1 -1
- package/dist/components/salla-payments.js +23 -2
- package/dist/components/salla-quick-buy2.js +98 -21
- package/dist/docs.json +1 -1
- package/dist/esm/{filepond-cGd_8brq.js → filepond-Xi2-pJA0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DmVMpWPg.js → filepond-plugin-file-poster-DduYF-sA.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-vJfZzddp.js → filepond-plugin-file-validate-size-BkPirl0j.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DXfCY9T0.js → filepond-plugin-file-validate-type-BIX8_1CI.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DHBzZ_bY.js → filepond-plugin-image-edit--1Sv5xxH.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-2sbvlxy2.js → filepond-plugin-image-exif-orientation-Dss_DgF7.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BnPTV3nB.js → filepond-plugin-image-preview-CaA89Pn1.js} +1 -1
- package/dist/esm/{index-CpfofV0a.js → index-BtdIfJF8.js} +2 -2
- package/dist/esm/{intlTelInput-DxmbJyWe.js → intlTelInput-DxHIK3cL.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +99 -22
- 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-applied-filters.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-attachment-view_9.entry.js +10 -10
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-bullet-delivery_3.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +1 -1
- package/dist/esm/salla-comment-form_9.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +2 -2
- 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-gift-card-redeem.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
- 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.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_3.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_2.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-cancel.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-options-modal.entry.js +1 -1
- package/dist/esm/salla-order-shipments.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 +24 -3
- 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.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-review-order-item.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search-product-card.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-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/salla-wishlist-summary.entry.js +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-nA0gc1Cv.js → vanilla-picker-CdDrNNAM.js} +1 -1
- package/dist/twilight/{p-228007cc.entry.js → p-072455fd.entry.js} +1 -1
- package/dist/twilight/{p-2d6ac28f.entry.js → p-09f65942.entry.js} +1 -1
- package/dist/twilight/{p-555caba6.entry.js → p-0b975744.entry.js} +1 -1
- package/dist/twilight/{p-c956c5f0.entry.js → p-0d58eb8e.entry.js} +1 -1
- package/dist/twilight/{p-d8bb98ed.entry.js → p-14545c2e.entry.js} +1 -1
- package/dist/twilight/{p-ce4f7734.entry.js → p-15b4d61d.entry.js} +1 -1
- package/dist/twilight/{p-a1619269.entry.js → p-1f48b187.entry.js} +1 -1
- package/dist/twilight/{p-8ddf82ac.entry.js → p-20b122f5.entry.js} +1 -1
- package/dist/twilight/{p-523971f5.entry.js → p-20edfe7d.entry.js} +1 -1
- package/dist/twilight/{p-9974ecba.entry.js → p-22bf309f.entry.js} +1 -1
- package/dist/twilight/p-24ebf9d6.entry.js +4 -0
- package/dist/twilight/{p-4814b5d4.entry.js → p-26479dee.entry.js} +1 -1
- package/dist/twilight/{p-c5d5b9e9.entry.js → p-2a5844fa.entry.js} +1 -1
- package/dist/twilight/{p-944e0e08.entry.js → p-3212b345.entry.js} +1 -1
- package/dist/twilight/{p-c382d4e1.entry.js → p-32f6ea11.entry.js} +1 -1
- package/dist/twilight/{p-71e1f303.entry.js → p-340621ed.entry.js} +1 -1
- package/dist/twilight/{p-1075a4d0.entry.js → p-344e9465.entry.js} +1 -1
- package/dist/twilight/{p-d6fcc0ac.entry.js → p-357c7c69.entry.js} +1 -1
- package/dist/twilight/{p-07bb37a5.entry.js → p-3b37eccc.entry.js} +1 -1
- package/dist/twilight/{p-af82356a.entry.js → p-3b566d5d.entry.js} +1 -1
- package/dist/twilight/{p-f3d84cf0.entry.js → p-410af88a.entry.js} +1 -1
- package/dist/twilight/{p-5f41c9fe.entry.js → p-41b0367e.entry.js} +1 -1
- package/dist/twilight/{p-8c44f4f2.entry.js → p-49d4a3c2.entry.js} +1 -1
- package/dist/twilight/{p-8e2ea210.entry.js → p-4e5bde43.entry.js} +1 -1
- package/dist/twilight/{p-0df9bcc4.entry.js → p-506f1716.entry.js} +1 -1
- package/dist/twilight/{p-62555be5.entry.js → p-565f74fe.entry.js} +1 -1
- package/dist/twilight/{p-5fe757aa.entry.js → p-56b50c65.entry.js} +1 -1
- package/dist/twilight/{p-415eba06.entry.js → p-56f3be75.entry.js} +1 -1
- package/dist/twilight/{p-d92b735e.entry.js → p-5710d065.entry.js} +1 -1
- package/dist/twilight/{p-e3a06384.entry.js → p-573899dc.entry.js} +1 -1
- package/dist/twilight/{p-0782f0a7.entry.js → p-58a66109.entry.js} +1 -1
- package/dist/twilight/{p-2c92df45.entry.js → p-5afc95a7.entry.js} +1 -1
- package/dist/twilight/{p-9b2767b1.entry.js → p-5d8cc35c.entry.js} +1 -1
- package/dist/twilight/{p-f2e4492c.entry.js → p-5f7532b3.entry.js} +1 -1
- package/dist/twilight/{p-fd4272ca.entry.js → p-60a35744.entry.js} +1 -1
- package/dist/twilight/{p-ee056aef.entry.js → p-646d3f8f.entry.js} +1 -1
- package/dist/twilight/{p-83df1e8e.entry.js → p-67a08021.entry.js} +1 -1
- package/dist/twilight/{p-b5abf61f.entry.js → p-6b9c1c5d.entry.js} +1 -1
- package/dist/twilight/{p-8eb99a28.entry.js → p-6de41bdc.entry.js} +1 -1
- package/dist/twilight/{p-42c011f5.entry.js → p-6ed2c97c.entry.js} +1 -1
- package/dist/twilight/{p-b65576d3.entry.js → p-773de9cc.entry.js} +1 -1
- package/dist/twilight/{p-73ecd2bc.entry.js → p-7944abc5.entry.js} +1 -1
- package/dist/twilight/{p-6d9c2c00.entry.js → p-799027c5.entry.js} +1 -1
- package/dist/twilight/{p-BVZV3mwk.js → p-7Z5IAwod.js} +1 -1
- package/dist/twilight/{p-bde115c6.entry.js → p-7c1d3130.entry.js} +1 -1
- package/dist/twilight/{p-841f230a.entry.js → p-80818114.entry.js} +1 -1
- package/dist/twilight/{p-d680f719.entry.js → p-80a7d4af.entry.js} +1 -1
- package/dist/twilight/{p-51ecb2d9.entry.js → p-84588994.entry.js} +1 -1
- package/dist/twilight/{p-dc89997e.entry.js → p-89cbcd3c.entry.js} +1 -1
- package/dist/twilight/{p-f8858ab7.entry.js → p-8bf2a280.entry.js} +1 -1
- package/dist/twilight/{p-d6634a06.entry.js → p-8dac352c.entry.js} +1 -1
- package/dist/twilight/{p-c2bd158e.entry.js → p-93064a1f.entry.js} +1 -1
- package/dist/twilight/{p-ea3bb7fb.entry.js → p-9661b909.entry.js} +1 -1
- package/dist/twilight/{p-ea4f08bf.entry.js → p-97ead14b.entry.js} +1 -1
- package/dist/twilight/{p-41a26099.entry.js → p-98c519f7.entry.js} +1 -1
- package/dist/twilight/{p-b0350351.entry.js → p-9d3d89f8.entry.js} +1 -1
- package/dist/twilight/{p-CkkVp-q5.js → p-Bc26pjHG.js} +1 -1
- package/dist/twilight/{p-hBZ1atkH.js → p-BiGEqBIB.js} +1 -1
- package/dist/twilight/{p-Dxk4zt55.js → p-BjKw2hiE.js} +1 -1
- package/dist/twilight/{p-CpfofV0a.js → p-BtdIfJF8.js} +1 -1
- package/dist/twilight/{p-xMEM8S5Y.js → p-CKp7_rq_.js} +1 -1
- package/dist/twilight/{p-D0cyuYs_.js → p-D9PZqqzV.js} +2 -2
- package/dist/twilight/{p-BeznJhTa.js → p-DetotZcx.js} +1 -1
- package/dist/twilight/{p-D1Wbg5r1.js → p-DwNLIufU.js} +1 -1
- package/dist/twilight/{p-DY7GHkFV.js → p-ShShhGeu.js} +1 -1
- package/dist/twilight/{p-3ee5c715.entry.js → p-a0ad482e.entry.js} +1 -1
- package/dist/twilight/{p-4c7190e3.entry.js → p-a244a4f2.entry.js} +1 -1
- package/dist/twilight/{p-dc3bdfef.entry.js → p-a6c0154a.entry.js} +1 -1
- package/dist/twilight/{p-dd96258c.entry.js → p-a71b30fa.entry.js} +1 -1
- package/dist/twilight/{p-06724710.entry.js → p-a9857ca3.entry.js} +1 -1
- package/dist/twilight/{p-547d3b81.entry.js → p-ae543e87.entry.js} +1 -1
- package/dist/twilight/{p-ea96f4ff.entry.js → p-af6932b0.entry.js} +1 -1
- package/dist/twilight/{p-50c8e72c.entry.js → p-b199478b.entry.js} +1 -1
- package/dist/twilight/{p-bcfd547b.entry.js → p-b1f146d6.entry.js} +1 -1
- package/dist/twilight/{p-1bf5a9c5.entry.js → p-b492dd6a.entry.js} +1 -1
- package/dist/twilight/{p-4d7cf422.entry.js → p-b5b70b36.entry.js} +1 -1
- package/dist/twilight/{p-ae85b377.entry.js → p-b677ddca.entry.js} +1 -1
- package/dist/twilight/{p-b137c970.entry.js → p-bbfa65b5.entry.js} +1 -1
- package/dist/twilight/{p-7938aa97.entry.js → p-bce91b93.entry.js} +1 -1
- package/dist/twilight/{p-9b27ca27.entry.js → p-bd84e964.entry.js} +1 -1
- package/dist/twilight/{p-5b1a2e44.entry.js → p-be824cd2.entry.js} +1 -1
- package/dist/twilight/{p-547c2ed5.entry.js → p-c1caf8cb.entry.js} +1 -1
- package/dist/twilight/{p-33a611be.entry.js → p-c317b529.entry.js} +1 -1
- package/dist/twilight/{p-85fb9e19.entry.js → p-c3d67706.entry.js} +1 -1
- package/dist/twilight/{p-3444b26e.entry.js → p-c495c15f.entry.js} +1 -1
- package/dist/twilight/{p-a9d5b26c.entry.js → p-c571954d.entry.js} +1 -1
- package/dist/twilight/{p-d9758e1a.entry.js → p-c61fce7a.entry.js} +1 -1
- package/dist/twilight/p-c64aaef9.entry.js +4 -0
- package/dist/twilight/{p-6f7fba84.entry.js → p-cbe828f7.entry.js} +1 -1
- package/dist/twilight/{p-a35e39e5.entry.js → p-cec14ad5.entry.js} +1 -1
- package/dist/twilight/{p-43512641.entry.js → p-cf1ea038.entry.js} +1 -1
- package/dist/twilight/{p-a188bde3.entry.js → p-d3a3216f.entry.js} +1 -1
- package/dist/twilight/{p-c80c3bde.entry.js → p-d46adde4.entry.js} +1 -1
- package/dist/twilight/{p-a5ea67c7.entry.js → p-d720d65e.entry.js} +1 -1
- package/dist/twilight/{p-68dd78bc.entry.js → p-df4e13e9.entry.js} +1 -1
- package/dist/twilight/{p-e58faf81.entry.js → p-e3a2bf70.entry.js} +1 -1
- package/dist/twilight/{p-de880ecf.entry.js → p-e519da79.entry.js} +1 -1
- package/dist/twilight/{p-d3876217.entry.js → p-e583bb7d.entry.js} +1 -1
- package/dist/twilight/{p-5ca9e30b.entry.js → p-e9174da7.entry.js} +1 -1
- package/dist/twilight/{p-0103d0dc.entry.js → p-e9ab3ead.entry.js} +1 -1
- package/dist/twilight/{p-b7334ac9.entry.js → p-f318c73c.entry.js} +1 -1
- package/dist/twilight/{p-0470406f.entry.js → p-f32f8e51.entry.js} +1 -1
- package/dist/twilight/{p-afe27025.entry.js → p-f3cd8cf5.entry.js} +1 -1
- package/dist/twilight/{p-6713d7fd.entry.js → p-f4d02219.entry.js} +1 -1
- package/dist/twilight/{p-d50badfc.entry.js → p-f97885ed.entry.js} +1 -1
- package/dist/twilight/{p-cfa579ba.entry.js → p-fcbd0395.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +9 -0
- package/package.json +5 -5
- package/dist/twilight/p-37861ce2.entry.js +0 -4
- package/dist/twilight/p-741c66e3.entry.js +0 -4
|
@@ -79,7 +79,7 @@ const SallaContacts$1 = /*@__PURE__*/ proxyCustomElement(class SallaContacts ext
|
|
|
79
79
|
if (this.isHeader) {
|
|
80
80
|
return (h(Host, { class: "s-contacts s-contacts-header" }, contactsArray.filter((contact) => contact.type == 'phone' || contact.type == 'email').map((contact, index) => (h("a", { href: this.getContactLink(contact.type), key: index, class: "s-contacts-topnav-link" }, contact.type === 'email' ? (contact.value) : ([
|
|
81
81
|
h("span", null, this.contactsTitle, ": "),
|
|
82
|
-
h("
|
|
82
|
+
h("span", { class: "unicode" }, contact.value)
|
|
83
83
|
]))))));
|
|
84
84
|
}
|
|
85
85
|
return (h(Host, { class: "s-contacts" }, !this.hideTitle && h("h3", { class: "s-contacts-title" }, this.contactsTitle), h("div", { class: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
|
|
6
|
-
const sallaPaymentsCss = "/*!twlt*/:host{display:block}.static{position:static}.hidden{display:none}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-payments-list{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:0.5rem}.s-payments-list:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-payments-list-item{display:flex;height:2rem;width:3rem;align-items:center;justify-content:center;border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.25rem}.s-payments-list-item img{max-height:100%;object-fit:contain}.s-payments-sbc-image{height:1.5rem;border-radius:0.125rem;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-payments-sbc-image:hover{opacity:0.8}";
|
|
6
|
+
const sallaPaymentsCss = "/*!twlt*/:host{display:block}.visible{visibility:visible}.static{position:static}.hidden{display:none}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-payments-list{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:0.5rem}.s-payments-list:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-payments-list-item{display:flex;height:2rem;width:3rem;align-items:center;justify-content:center;border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.25rem}.s-payments-list-item img{max-height:100%;object-fit:contain}.s-payments-sbc-image{height:1.5rem;border-radius:0.125rem;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-payments-sbc-image:hover{opacity:0.8}";
|
|
7
7
|
|
|
8
8
|
const SallaPayments$1 = /*@__PURE__*/ proxyCustomElement(class SallaPayments extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -65,9 +65,18 @@ const SallaPayments$1 = /*@__PURE__*/ proxyCustomElement(class SallaPayments ext
|
|
|
65
65
|
return;
|
|
66
66
|
if (salla.config.get('page.slug') !== 'index')
|
|
67
67
|
return;
|
|
68
|
+
// Theme previews and editor frames are not what shoppers see.
|
|
69
|
+
if (salla.config.get('theme.mode') !== 'live' || window.self !== window.top)
|
|
70
|
+
return;
|
|
68
71
|
if (!salla.config.get('store.settings.commercial_number')
|
|
69
72
|
&& !salla.config.get('store.settings.freelance_number'))
|
|
70
73
|
return;
|
|
74
|
+
// Animations freeze while the page is hidden, so any hide in the window voids the check.
|
|
75
|
+
let pageWasHidden = false;
|
|
76
|
+
const trackVisibility = () => {
|
|
77
|
+
if (document.visibilityState !== 'visible')
|
|
78
|
+
pageWasHidden = true;
|
|
79
|
+
};
|
|
71
80
|
const isShown = (el) => {
|
|
72
81
|
const check = el.checkVisibility;
|
|
73
82
|
if (typeof check !== 'function')
|
|
@@ -83,6 +92,12 @@ const SallaPayments$1 = /*@__PURE__*/ proxyCustomElement(class SallaPayments ext
|
|
|
83
92
|
&& rect.top < window.innerHeight && rect.left < window.innerWidth);
|
|
84
93
|
};
|
|
85
94
|
const verdict = () => {
|
|
95
|
+
trackVisibility();
|
|
96
|
+
if (pageWasHidden)
|
|
97
|
+
return null;
|
|
98
|
+
// Read late: the app flag comes from the analytics context, set after load.
|
|
99
|
+
if (salla.config.isMobileApp())
|
|
100
|
+
return null;
|
|
86
101
|
const badges = Array.from(document.querySelectorAll('salla-trust-badges'));
|
|
87
102
|
if (!badges.length)
|
|
88
103
|
return 'absent';
|
|
@@ -96,13 +111,19 @@ const SallaPayments$1 = /*@__PURE__*/ proxyCustomElement(class SallaPayments ext
|
|
|
96
111
|
return;
|
|
97
112
|
SallaPayments.audited = true;
|
|
98
113
|
observer.disconnect();
|
|
114
|
+
trackVisibility();
|
|
115
|
+
document.addEventListener('visibilitychange', trackVisibility);
|
|
116
|
+
const stopTracking = () => document.removeEventListener('visibilitychange', trackVisibility);
|
|
99
117
|
// Settle first, so a footer still running its entrance animation is not read as a hide.
|
|
100
118
|
setTimeout(() => {
|
|
101
|
-
if (!verdict())
|
|
119
|
+
if (!verdict()) {
|
|
120
|
+
stopTracking();
|
|
102
121
|
return;
|
|
122
|
+
}
|
|
103
123
|
// Second look, so a late animation is not read as a hide.
|
|
104
124
|
setTimeout(async () => {
|
|
105
125
|
const cause = verdict();
|
|
126
|
+
stopTracking();
|
|
106
127
|
if (!cause || salla.storage.getWithTTL('salla::tb-audit'))
|
|
107
128
|
return;
|
|
108
129
|
try {
|
|
@@ -106,6 +106,43 @@ function ensureApplePaySdk() {
|
|
|
106
106
|
return sdkPromise;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Coerce a networks payload into an array. PHP serializes the list as an object when the
|
|
111
|
+
* array keys are non-sequential, so both shapes arrive.
|
|
112
|
+
*
|
|
113
|
+
* @param {string[]|Object|null|undefined} raw
|
|
114
|
+
* @returns {string[]}
|
|
115
|
+
*/
|
|
116
|
+
function normalizeApplePayNetworks(raw) {
|
|
117
|
+
if (Array.isArray(raw)) return [...raw];
|
|
118
|
+
if (raw && typeof raw === 'object') return Object.values(raw);
|
|
119
|
+
|
|
120
|
+
return [];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The store's buy-now networks from config.
|
|
125
|
+
*
|
|
126
|
+
* @returns {string[]}
|
|
127
|
+
*/
|
|
128
|
+
function applePayNetworks() {
|
|
129
|
+
return normalizeApplePayNetworks(
|
|
130
|
+
salla?.config?.get?.('store.settings.buy_now.supportedNetworks')
|
|
131
|
+
|| salla?.config?.get?.('store.settings.buy_now.networks'),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The networks for this attempt. `null`/`undefined` means "not supplied" and defers to config;
|
|
137
|
+
* an array — empty included — is the backend's answer and is used as-is.
|
|
138
|
+
*
|
|
139
|
+
* @param {string[]|Object|null|undefined} networks
|
|
140
|
+
* @returns {string[]}
|
|
141
|
+
*/
|
|
142
|
+
function resolveApplePayNetworks(networks) {
|
|
143
|
+
return networks == null ? applePayNetworks() : normalizeApplePayNetworks(networks);
|
|
144
|
+
}
|
|
145
|
+
|
|
109
146
|
/**
|
|
110
147
|
* Whether Apple Pay can be completed in the current browser: natively
|
|
111
148
|
* (Safari / Apple devices) or via the Payment Request API (non-Safari browsers
|
|
@@ -114,9 +151,16 @@ function ensureApplePaySdk() {
|
|
|
114
151
|
* For the QR path this awaits the SDK before probing, so callers get a stable
|
|
115
152
|
* answer on first load instead of racing the async script fetch.
|
|
116
153
|
* @param {string} [currency]
|
|
154
|
+
* @param {string[]} [networks] The backend's list; null/undefined defers to the buy-now config.
|
|
117
155
|
* @returns {Promise<boolean>}
|
|
118
156
|
*/
|
|
119
|
-
async function canCompleteApplePay(currency = 'SAR') {
|
|
157
|
+
async function canCompleteApplePay(currency = 'SAR', networks = null) {
|
|
158
|
+
const supportedNetworks = resolveApplePayNetworks(networks);
|
|
159
|
+
|
|
160
|
+
// Nothing to charge with — checked before the native probe, which would report "available"
|
|
161
|
+
// and only fail after the shopper taps pay.
|
|
162
|
+
if (!supportedNetworks.length) return false;
|
|
163
|
+
|
|
120
164
|
try {
|
|
121
165
|
if (window.ApplePaySession?.canMakePayments?.()) return true;
|
|
122
166
|
} catch (e) { /* not supported natively */ }
|
|
@@ -135,9 +179,7 @@ async function canCompleteApplePay(currency = 'SAR') {
|
|
|
135
179
|
buildApplePayMethodData({
|
|
136
180
|
version: 3,
|
|
137
181
|
merchantIdentifier: applePayMerchantId(),
|
|
138
|
-
supportedNetworks
|
|
139
|
-
|| salla?.config?.get?.('store.settings.buy_now.networks')
|
|
140
|
-
|| ['masterCard', 'visa'],
|
|
182
|
+
supportedNetworks,
|
|
141
183
|
countryCode: salla?.config?.get?.('store.store_country') || 'SA',
|
|
142
184
|
}),
|
|
143
185
|
{ total: { label: 'Salla', amount: { currency: currency || 'SAR', value: '0.00' } } },
|
|
@@ -588,6 +630,11 @@ const APPLE_PAY_METHOD = 'https://apple.com/apple-pay';
|
|
|
588
630
|
// only get it once the SDK loads. Keeps native-vs-PaymentRequest routing stable.
|
|
589
631
|
const HAS_NATIVE_APPLE_PAY = typeof window !== 'undefined' && !!window.ApplePaySession;
|
|
590
632
|
|
|
633
|
+
// Shown when the backend offers no usable network. twilight can ship ahead of Languages-Module,
|
|
634
|
+
// so fall through to `payment_failed` while the key is missing — never a hardcoded sentence.
|
|
635
|
+
const NO_SUPPORTED_NETWORK_KEY = 'pages.checkout.apple_pay_no_supported_network';
|
|
636
|
+
const NO_SUPPORTED_NETWORK_FALLBACK_KEY = 'pages.checkout.payment_failed';
|
|
637
|
+
|
|
591
638
|
/**
|
|
592
639
|
* Full Example
|
|
593
640
|
*
|
|
@@ -757,16 +804,12 @@ const SallaApplePay = typeof window !== 'undefined' ? {
|
|
|
757
804
|
startNativeSession: async function (event) {
|
|
758
805
|
|
|
759
806
|
let version = SallaApplePay.getApplePaySessionVersion();
|
|
760
|
-
//
|
|
761
|
-
//
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
let supportedNetworks = Array.isArray(rawNetworks) ? [...rawNetworks] : Object.values(rawNetworks || {});
|
|
807
|
+
// The backend resolves this per shopper, so it goes to Apple verbatim. Adding mada back
|
|
808
|
+
// here is what let a shopper authorize with Face ID and only then be refused.
|
|
809
|
+
let supportedNetworks = resolveApplePayNetworks(SallaApplePay.detail.supportedNetworks);
|
|
810
|
+
|
|
765
811
|
if (!supportedNetworks.length) {
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
if (version === 5 && !supportedNetworks.includes('mada')) {
|
|
769
|
-
supportedNetworks.push('mada');
|
|
812
|
+
return SallaApplePay.abandonNoSupportedNetwork();
|
|
770
813
|
}
|
|
771
814
|
|
|
772
815
|
SallaApplePay.request = {
|
|
@@ -897,6 +940,23 @@ const SallaApplePay = typeof window !== 'undefined' ? {
|
|
|
897
940
|
});
|
|
898
941
|
},
|
|
899
942
|
|
|
943
|
+
/**
|
|
944
|
+
* Give up before the sheet opens: the backend left no usable network.
|
|
945
|
+
*
|
|
946
|
+
* Routed through onCancel so the host gets the same terminal signals as a dismissal and the
|
|
947
|
+
* button recovers. trackPaymentFailed self-gates on Payment Submitted, so the funnel is safe.
|
|
948
|
+
*/
|
|
949
|
+
abandonNoSupportedNetwork: () => {
|
|
950
|
+
salla.logger.error('🍏 Pay: no supported network for this shopper — Apple Pay not offered');
|
|
951
|
+
|
|
952
|
+
const message = salla?.lang?.get?.(NO_SUPPORTED_NETWORK_KEY);
|
|
953
|
+
const resolved = !message || message === NO_SUPPORTED_NETWORK_KEY
|
|
954
|
+
? salla?.lang?.get?.(NO_SUPPORTED_NETWORK_FALLBACK_KEY)
|
|
955
|
+
: message;
|
|
956
|
+
|
|
957
|
+
SallaApplePay.onCancel({}, resolved || null);
|
|
958
|
+
},
|
|
959
|
+
|
|
900
960
|
onCancel: (event = {}, message = null) => {
|
|
901
961
|
SallaApplePay.canceled = true;
|
|
902
962
|
// Sheet opened (Payment Submitted already fired) but the attempt ended
|
|
@@ -1184,9 +1244,12 @@ const SallaApplePay = typeof window !== 'undefined' ? {
|
|
|
1184
1244
|
}
|
|
1185
1245
|
|
|
1186
1246
|
const version = SallaApplePay.getApplePaySessionVersion();
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1247
|
+
// Same contract as the native flow. resolveApplePayNetworks also handles the
|
|
1248
|
+
// object-shaped payload, which the old spread would have thrown on.
|
|
1249
|
+
const supportedNetworks = resolveApplePayNetworks(SallaApplePay.detail.supportedNetworks);
|
|
1250
|
+
|
|
1251
|
+
if (!supportedNetworks.length) {
|
|
1252
|
+
return SallaApplePay.abandonNoSupportedNetwork();
|
|
1190
1253
|
}
|
|
1191
1254
|
|
|
1192
1255
|
const methodData = [{
|
|
@@ -1854,6 +1917,17 @@ const SallaQuickBuy = /*@__PURE__*/ proxyCustomElement(class SallaQuickBuy exten
|
|
|
1854
1917
|
resolveCheckoutType() {
|
|
1855
1918
|
return this.applePayOnly && !this.productId ? 'mini_checkout' : 'buy_now';
|
|
1856
1919
|
}
|
|
1920
|
+
/**
|
|
1921
|
+
* The backend's networks for this attempt, never widened with a default set.
|
|
1922
|
+
* An empty array is the backend's answer, not a blank, so only an unset prop defers to config.
|
|
1923
|
+
*
|
|
1924
|
+
* The prop is typed `string[]`, but mini-checkout property-binds the raw backend value, which
|
|
1925
|
+
* PHP serializes as an object when its keys are non-sequential — spreading that throws. Route
|
|
1926
|
+
* it through the same normalizer the rest of the package uses.
|
|
1927
|
+
*/
|
|
1928
|
+
resolveSupportedNetworks() {
|
|
1929
|
+
return resolveApplePayNetworks(this.supportedNetworks);
|
|
1930
|
+
}
|
|
1857
1931
|
async settlePayment() {
|
|
1858
1932
|
//use this way to get quantity too
|
|
1859
1933
|
let data = this.host.getElementSallaData();
|
|
@@ -1900,8 +1974,7 @@ const SallaQuickBuy = /*@__PURE__*/ proxyCustomElement(class SallaQuickBuy exten
|
|
|
1900
1974
|
currency: this.currency || salla.config.get('store.settings.buy_now.currency') || 'SAR', // SAR
|
|
1901
1975
|
requiredShippingContactFields: this.getRequiredShippingContactFields(),
|
|
1902
1976
|
shippingMethods: this.isRequireShipping ? [] : undefined,
|
|
1903
|
-
supportedNetworks:
|
|
1904
|
-
? this.supportedNetworks : salla.config.get('store.settings.buy_now.supportedNetworks'),
|
|
1977
|
+
supportedNetworks: this.resolveSupportedNetworks(),
|
|
1905
1978
|
supportedCountries: (Array.isArray(this.supportedCountries) && this.supportedCountries.length)
|
|
1906
1979
|
? this.supportedCountries : salla.config.get('store.settings.buy_now.supportedCountries'),
|
|
1907
1980
|
countryCode: salla.config.get('store.store_country') || 'SA',
|
|
@@ -2034,7 +2107,10 @@ const SallaQuickBuy = /*@__PURE__*/ proxyCustomElement(class SallaQuickBuy exten
|
|
|
2034
2107
|
const canMakePayments = typeof window !== 'undefined' && !!window.ApplePaySession?.canMakePayments?.();
|
|
2035
2108
|
const storeHasApplePay = salla?.config?.get?.('store.settings.payments')?.includes?.('apple_pay') ?? true;
|
|
2036
2109
|
const isSallaGateway = salla?.config?.get?.('store.settings.is_salla_gateway', false) ?? true;
|
|
2037
|
-
|
|
2110
|
+
// No networks means nothing to charge with, so don't show the button — canMakePayments()
|
|
2111
|
+
// alone would light it up on Safari.
|
|
2112
|
+
this.isApplePayActive = canMakePayments && storeHasApplePay && isSallaGateway
|
|
2113
|
+
&& !!this.resolveSupportedNetworks().length;
|
|
2038
2114
|
const runInit = async () => {
|
|
2039
2115
|
if (!this.productId && salla?.config?.get && salla.url?.is_page) {
|
|
2040
2116
|
this.productId = salla.config.get('page.id');
|
|
@@ -2073,7 +2149,8 @@ const SallaQuickBuy = /*@__PURE__*/ proxyCustomElement(class SallaQuickBuy exten
|
|
|
2073
2149
|
// (non-Safari browsers / non-Apple devices via the QR-code fallback). The
|
|
2074
2150
|
// helper loads Apple's JS SDK and awaits it before probing, so this is a
|
|
2075
2151
|
// stable answer on first load (no race against the async script fetch).
|
|
2076
|
-
this.isApplePayActive = storeAllowsApplePay
|
|
2152
|
+
this.isApplePayActive = storeAllowsApplePay
|
|
2153
|
+
&& await canCompleteApplePay(this.currency, this.resolveSupportedNetworks());
|
|
2077
2154
|
};
|
|
2078
2155
|
return new Promise((resolve) => {
|
|
2079
2156
|
if (typeof salla?.onReady === 'function') {
|
|
@@ -2085,7 +2162,7 @@ const SallaQuickBuy = /*@__PURE__*/ proxyCustomElement(class SallaQuickBuy exten
|
|
|
2085
2162
|
});
|
|
2086
2163
|
}
|
|
2087
2164
|
render() {
|
|
2088
|
-
return h(Host, { key: '
|
|
2165
|
+
return h(Host, { key: '8d1d37acada1f9cdbe6913d01a97fe881facc7af' }, this.quickBuyButton());
|
|
2089
2166
|
}
|
|
2090
2167
|
quickBuyButton() {
|
|
2091
2168
|
return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
package/dist/docs.json
CHANGED