@salla.sa/twilight-components 2.14.371 → 2.14.373
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-C5TyxymG.js → filepond-CXs-MqTC.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-r_KI_rF5.js → filepond-plugin-file-poster-C_2cyJP8.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BJQWzaZQ.js → filepond-plugin-file-validate-size-4nPUz6ol.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DCC7JLZQ.js → filepond-plugin-file-validate-type-CepBx5RP.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Cg9S2nTl.js → filepond-plugin-image-edit-BM279qcx.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-JUZj4EsQ.js → filepond-plugin-image-exif-orientation-B-r1ML5w.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CWGu07jL.js → filepond-plugin-image-preview-DAvqUcPB.js} +1 -1
- package/dist/cjs/{index-CHuTqO3q.js → index-B4KM1T_g.js} +6 -2
- package/dist/cjs/{index-9TK_5akL.js → index-ClUdAQsW.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/location-DIyESLuI.js +16 -0
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +5 -11
- package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +17 -17
- package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1980 -0
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +17 -5
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +8 -8
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +7 -7
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-gifting.cjs.entry.js +3 -3
- package/dist/cjs/salla-hook.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +2 -2
- 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 +4 -4
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +4 -4
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CQjvtSaq.js → vanilla-picker-DraU08VH.js} +1 -1
- package/dist/collection/assets/svg/get-directions.svg +6 -0
- package/dist/collection/assets/svg/gps.svg +17 -0
- package/dist/collection/assets/svg/location.svg +8 -4
- package/dist/collection/assets/svg/marker.svg +28 -0
- package/dist/collection/assets/svg/mini-google-map.svg +33 -0
- package/dist/collection/assets/svg/mini-map.svg +31 -0
- package/dist/collection/assets/svg/store3.svg +12 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-bullet-delivery/api-service.js +135 -0
- package/dist/collection/components/salla-bullet-delivery/helpers.js +125 -0
- package/dist/collection/components/salla-bullet-delivery/interfaces.js +1 -0
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +23 -0
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +1827 -0
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +16 -4
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
- package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
- package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
- package/dist/collection/components/salla-filters/salla-filters.js +1 -1
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
- package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
- package/dist/collection/components/salla-hook/salla-hook.js +1 -1
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
- package/dist/collection/components/salla-loading/salla-loading.js +1 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -1
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +3 -3
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- 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/components/index.js +2 -2
- package/dist/components/location.js +14 -0
- package/dist/components/salla-bullet-delivery.d.ts +11 -0
- package/dist/components/salla-bullet-delivery.js +2060 -0
- package/dist/components/salla-cart-summary.js +16 -4
- package/dist/components/salla-color-picker2.js +1 -1
- package/dist/components/salla-comment-form2.js +1 -1
- package/dist/components/salla-comment-item2.js +3 -3
- package/dist/components/salla-conditional-fields2.js +1 -1
- package/dist/components/salla-count-down2.js +1 -1
- package/dist/components/salla-datetime-picker2.js +1 -1
- package/dist/components/salla-file-upload2.js +2 -2
- package/dist/components/salla-filters-widget2.js +2 -2
- package/dist/components/salla-filters.js +1 -1
- package/dist/components/salla-gifting.js +2 -2
- package/dist/components/salla-hook.js +1 -1
- package/dist/components/salla-list-tile2.js +1 -1
- package/dist/components/salla-loading2.js +1 -1
- package/dist/components/salla-localization-modal.js +1 -1
- package/dist/components/salla-loyalty-prize-item.js +1 -1
- package/dist/components/salla-loyalty-program.js +1 -1
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +4 -10
- package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +3 -3
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- 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/esm/{filepond-mieJwBUE.js → filepond-DAL4Xltg.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BkUmku6Y.js → filepond-plugin-file-poster-pYAj1TCf.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BDlMxVlx.js → filepond-plugin-file-validate-size--DK_2h1f.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BuvgpREx.js → filepond-plugin-file-validate-type-CLv3B3w8.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CWrWDBtL.js → filepond-plugin-image-edit-D_juTeqv.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CpU_nGz_.js → filepond-plugin-image-exif-orientation-D6SDimvg.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BWz5PVcy.js → filepond-plugin-image-preview-EMuHdpX5.js} +1 -1
- package/dist/esm/{index-D7Bzwdti.js → index-D0I6A6_z.js} +6 -2
- package/dist/esm/{index-CfKLYGBH.js → index-DM9YbL3Z.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/location-BO5AoBAP.js +14 -0
- package/dist/esm/salla-accordion-body_3.entry.js +5 -11
- package/dist/esm/salla-accordion_6.entry.js +2 -2
- package/dist/esm/salla-add-product-button_4.entry.js +3 -3
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +17 -17
- package/dist/esm/salla-bullet-delivery.entry.js +1978 -0
- package/dist/esm/salla-cart-item-offers_2.entry.js +17 -5
- package/dist/esm/salla-comment-form_8.entry.js +8 -8
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +7 -7
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +3 -3
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-gifting.entry.js +3 -3
- package/dist/esm/salla-hook.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-localization-modal.entry.js +2 -2
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
- package/dist/esm/salla-loyalty-program.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +2 -2
- 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 +4 -4
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-notification-item.entry.js +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-summary.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +4 -4
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Br_hO4Uj.js → vanilla-picker-Qqo0H_M-.js} +1 -1
- package/dist/twilight/{p-34317dbd.entry.js → p-049efeda.entry.js} +1 -1
- package/dist/twilight/{p-2f8591d1.entry.js → p-078adc00.entry.js} +1 -1
- package/dist/twilight/{p-872afa97.entry.js → p-0a345a4f.entry.js} +1 -1
- package/dist/twilight/{p-e6290d65.entry.js → p-1124e117.entry.js} +1 -1
- package/dist/twilight/{p-8fe4e64c.entry.js → p-12d952ec.entry.js} +1 -1
- package/dist/twilight/{p-6fdee7e3.entry.js → p-1400a600.entry.js} +1 -1
- package/dist/twilight/{p-03c3460b.entry.js → p-165e1b7c.entry.js} +1 -1
- package/dist/twilight/{p-0a5e716e.entry.js → p-191b61bc.entry.js} +1 -1
- package/dist/twilight/{p-c1150cc5.entry.js → p-24c778de.entry.js} +1 -1
- package/dist/twilight/{p-374a338f.entry.js → p-259053f2.entry.js} +1 -1
- package/dist/twilight/p-2ea4ee86.entry.js +4 -0
- package/dist/twilight/{p-c222537d.entry.js → p-3accaca5.entry.js} +1 -1
- package/dist/twilight/{p-8ff1364e.entry.js → p-3bc62efe.entry.js} +1 -1
- package/dist/twilight/{p-fe411065.entry.js → p-3fd36e29.entry.js} +1 -1
- package/dist/twilight/{p-7633d0f9.entry.js → p-47d61973.entry.js} +1 -1
- package/dist/twilight/{p-5495f12b.entry.js → p-4b9b3e93.entry.js} +1 -1
- package/dist/twilight/{p-44a5fa6e.entry.js → p-503a47fc.entry.js} +1 -1
- package/dist/twilight/{p-45eebb06.entry.js → p-5a5d50f6.entry.js} +1 -1
- package/dist/twilight/{p-16fecad4.entry.js → p-6202c3db.entry.js} +1 -1
- package/dist/twilight/{p-67f57570.entry.js → p-6a818aa8.entry.js} +1 -1
- package/dist/twilight/{p-cd127c8f.entry.js → p-6b360187.entry.js} +1 -1
- package/dist/twilight/p-6f9b53cf.entry.js +4 -0
- package/dist/twilight/{p-7c0348db.entry.js → p-7177877e.entry.js} +1 -1
- package/dist/twilight/{p-c174520d.entry.js → p-755ab399.entry.js} +1 -1
- package/dist/twilight/p-797dfd7c.entry.js +4 -0
- package/dist/twilight/{p-506a4821.entry.js → p-7b6160d7.entry.js} +1 -1
- package/dist/twilight/p-81d6ecf6.entry.js +4 -0
- package/dist/twilight/{p-2b1773af.entry.js → p-84572940.entry.js} +1 -1
- package/dist/twilight/{p-44aa455b.entry.js → p-87dd72b9.entry.js} +1 -1
- package/dist/twilight/{p-5a734f65.entry.js → p-8a3e1f56.entry.js} +1 -1
- package/dist/twilight/p-8cd9364d.entry.js +4 -0
- package/dist/twilight/{p-5061d57a.entry.js → p-91e8d1aa.entry.js} +1 -1
- package/dist/twilight/{p-f27a95af.entry.js → p-92cb89fe.entry.js} +1 -1
- package/dist/twilight/{p-5c801824.entry.js → p-9303ae5e.entry.js} +1 -1
- package/dist/twilight/{p-59b665cc.entry.js → p-95c07362.entry.js} +1 -1
- package/dist/twilight/{p-56f61d6f.entry.js → p-9ad56294.entry.js} +1 -1
- package/dist/twilight/p-BO5AoBAP.js +4 -0
- package/dist/twilight/{p-5zOaKg_9.js → p-Bm7PVfv2.js} +1 -1
- package/dist/twilight/{p-DuNH_Aw7.js → p-CAvfXKfT.js} +1 -1
- package/dist/twilight/{p-CTOX1dM4.js → p-CXIkjeL5.js} +1 -1
- package/dist/twilight/{p-D7Bzwdti.js → p-D0I6A6_z.js} +1 -1
- package/dist/twilight/{p-CK_SuigF.js → p-D1zOfbCq.js} +1 -1
- package/dist/twilight/{p-CXeCu_jM.js → p-Dn05wIoL.js} +1 -1
- package/dist/twilight/{p-CUatGDGo.js → p-DscsSwIa.js} +1 -1
- package/dist/twilight/p-a6db79a2.entry.js +4 -0
- package/dist/twilight/{p-d1262d52.entry.js → p-a71cc1ff.entry.js} +1 -1
- package/dist/twilight/p-a7501d0e.entry.js +4 -0
- package/dist/twilight/{p-686c24b0.entry.js → p-a79a15bd.entry.js} +1 -1
- package/dist/twilight/{p-4d25e8c9.entry.js → p-a7c29ab2.entry.js} +1 -1
- package/dist/twilight/{p-72ce3910.entry.js → p-a8abd889.entry.js} +1 -1
- package/dist/twilight/{p-adf98dcd.entry.js → p-ac609ddd.entry.js} +1 -1
- package/dist/twilight/{p-2f40b47e.entry.js → p-b1f1e022.entry.js} +1 -1
- package/dist/twilight/{p-b9f04134.entry.js → p-b23eb62e.entry.js} +1 -1
- package/dist/twilight/{p-cbebd2a6.entry.js → p-beb81a94.entry.js} +1 -1
- package/dist/twilight/{p-805f75b1.entry.js → p-bf22c662.entry.js} +1 -1
- package/dist/twilight/{p-0f21b53d.entry.js → p-c0d6fde8.entry.js} +1 -1
- package/dist/twilight/{p-858639d1.entry.js → p-c816e7ec.entry.js} +1 -1
- package/dist/twilight/{p-20a3463b.entry.js → p-d2019eac.entry.js} +1 -1
- package/dist/twilight/{p-eaa5265d.entry.js → p-d3fd6daf.entry.js} +1 -1
- package/dist/twilight/{p-a13997ec.entry.js → p-d40c12ca.entry.js} +1 -1
- package/dist/twilight/{p-321b84a0.entry.js → p-d532cc5c.entry.js} +1 -1
- package/dist/twilight/{p-dd3ab123.entry.js → p-d60c17d1.entry.js} +1 -1
- package/dist/twilight/{p-88bf4d9a.entry.js → p-d634d9ba.entry.js} +1 -1
- package/dist/twilight/{p-29b57dba.entry.js → p-d69d9f88.entry.js} +1 -1
- package/dist/twilight/{p-534aefd5.entry.js → p-d75f911d.entry.js} +1 -1
- package/dist/twilight/{p-9aff2e0b.entry.js → p-d7974589.entry.js} +1 -1
- package/dist/twilight/{p-d554aae1.entry.js → p-e0aa9527.entry.js} +1 -1
- package/dist/twilight/p-e756721e.entry.js +4 -0
- package/dist/twilight/{p-e2ea1d25.entry.js → p-e7ef6d17.entry.js} +1 -1
- package/dist/twilight/{p-03b8dbdb.entry.js → p-e92f5e6d.entry.js} +1 -1
- package/dist/twilight/{p-586766e6.entry.js → p-ec4c5bdc.entry.js} +1 -1
- package/dist/twilight/{p-4a26acfc.entry.js → p-f3267e09.entry.js} +1 -1
- package/dist/twilight/{p-679a2b29.entry.js → p-f49fa6f4.entry.js} +1 -1
- package/dist/twilight/p-f8255074.entry.js +4 -0
- package/dist/twilight/{p-fc8338a5.entry.js → p-f9542326.entry.js} +1 -1
- package/dist/twilight/{p-9bd4d477.entry.js → p-ffcbf3a6.entry.js} +1 -1
- package/dist/twilight/{p-CW-amhuP.js → p-fhnRt3YI.js} +2 -2
- package/dist/twilight/{p-DxwVu0e0.js → p-k3_m9cjN.js} +1 -1
- package/dist/twilight/{p-DqlLeHWn.js → p-m0atWUhZ.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/api-service.d.ts +61 -0
- package/dist/types/components/salla-bullet-delivery/helpers.d.ts +39 -0
- package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +297 -0
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +202 -0
- package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +2 -1
- package/dist/types/components.d.ts +57 -0
- package/package.json +5 -5
- package/dist/twilight/p-1103aa23.entry.js +0 -4
- package/dist/twilight/p-23bd128b.entry.js +0 -4
- package/dist/twilight/p-2ac4b7eb.entry.js +0 -4
- package/dist/twilight/p-407ed3e9.entry.js +0 -4
- package/dist/twilight/p-87072244.entry.js +0 -4
- package/dist/twilight/p-c34516a0.entry.js +0 -4
- package/dist/twilight/p-c68a5519.entry.js +0 -4
- package/dist/twilight/p-d6207cfd.entry.js +0 -4
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { type EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import type { IntentType, Country, Region, City, District, Branch, SavedAddress, BulletDeliveryConfirmedEvent, AddressCreatedEvent, NewAddressFormData, HeaderContextUpdateEvent } from "./interfaces";
|
|
3
|
+
type ViewMode = "main" | "add-address";
|
|
4
|
+
/**
|
|
5
|
+
* @slot footer - The bottom section of the component for custom actions.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SallaBulletDelivery {
|
|
8
|
+
private modal;
|
|
9
|
+
private confirmBtn;
|
|
10
|
+
private confirming;
|
|
11
|
+
private branchSearchDebounceTimer;
|
|
12
|
+
private preselectedAddressId?;
|
|
13
|
+
private preselectedBranchId?;
|
|
14
|
+
private componentReady;
|
|
15
|
+
private pendingOpen;
|
|
16
|
+
private tabChanging;
|
|
17
|
+
private readonly intentStorageKey;
|
|
18
|
+
private readonly sessionShownKey;
|
|
19
|
+
private readonly cartItemAddedEvent;
|
|
20
|
+
private cartItemAddedHandler;
|
|
21
|
+
private useCartEventApi;
|
|
22
|
+
private bulletDeliveryOpenHandler;
|
|
23
|
+
private closeHandler;
|
|
24
|
+
private guestLoginSyncHandler;
|
|
25
|
+
/** True after saved addresses have been loaded (lazy: only when address tab is shown). */
|
|
26
|
+
private savedAddressesLoaded;
|
|
27
|
+
private isRTL;
|
|
28
|
+
loading: boolean;
|
|
29
|
+
activeTab: IntentType;
|
|
30
|
+
isLoggedIn: boolean;
|
|
31
|
+
viewMode: ViewMode;
|
|
32
|
+
countries: Country[];
|
|
33
|
+
regions: Region[];
|
|
34
|
+
cities: City[];
|
|
35
|
+
districts: District[];
|
|
36
|
+
loadingRegions: boolean;
|
|
37
|
+
selectedCountry: Country | null;
|
|
38
|
+
selectedRegion: Region | null;
|
|
39
|
+
selectedCity: City | null;
|
|
40
|
+
selectedDistrict: District | null;
|
|
41
|
+
districtName: string;
|
|
42
|
+
savedAddresses: SavedAddress[];
|
|
43
|
+
selectedSavedAddress: SavedAddress | null;
|
|
44
|
+
/** True when user selected the session address (guest address from before login, not yet saved) */
|
|
45
|
+
selectedSessionAddress: boolean;
|
|
46
|
+
branches: Branch[];
|
|
47
|
+
filteredBranches: Branch[];
|
|
48
|
+
selectedBranch: Branch | null;
|
|
49
|
+
branchSearchQuery: string;
|
|
50
|
+
loadingCities: boolean;
|
|
51
|
+
loadingDistricts: boolean;
|
|
52
|
+
loadingBranches: boolean;
|
|
53
|
+
loadingNearestBranch: boolean;
|
|
54
|
+
locationError: string;
|
|
55
|
+
savingAddress: boolean;
|
|
56
|
+
loadingSavedAddresses: boolean;
|
|
57
|
+
showCartWillBeClearedBanner: boolean;
|
|
58
|
+
/** Shown when scopes/allocation returns 422 (address outside delivery coverage). Only on delivery tab. */
|
|
59
|
+
allocationOutOfCoverageMessage: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* SA add-address view: 'confirmed' = selected address box + description + confirm, 'full' = all form fields (after Edit).
|
|
62
|
+
*/
|
|
63
|
+
private static readonly INITIAL_ADDRESS_FORM;
|
|
64
|
+
newAddressForm: NewAddressFormData;
|
|
65
|
+
/** Whether to show delivery + pickup tabs. From store.settings.bullet_delivery.supports_pickup */
|
|
66
|
+
private get supportsPickup();
|
|
67
|
+
/** The modal opening strategy: 'first_visit' | 'on_cart_click' | 'after_add_to_cart' */
|
|
68
|
+
private get openingType();
|
|
69
|
+
/** Whether the modal is required (cannot be closed/skipped). From store.settings.bullet_delivery.settings.is_required */
|
|
70
|
+
private get isRequired();
|
|
71
|
+
/**
|
|
72
|
+
* Emitted when the user confirms their selection
|
|
73
|
+
*/
|
|
74
|
+
bulletDeliveryConfirmed: EventEmitter<BulletDeliveryConfirmedEvent>;
|
|
75
|
+
/**
|
|
76
|
+
* Emitted when the modal is closed
|
|
77
|
+
*/
|
|
78
|
+
bulletDeliveryClosed: EventEmitter<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Emitted when a new address is created
|
|
81
|
+
*/
|
|
82
|
+
addressCreated: EventEmitter<AddressCreatedEvent>;
|
|
83
|
+
/**
|
|
84
|
+
* Emitted to sync with the global header (Delivering to: [location])
|
|
85
|
+
*/
|
|
86
|
+
headerContextUpdate: EventEmitter<HeaderContextUpdateEvent>;
|
|
87
|
+
/**
|
|
88
|
+
* Opens the bullet delivery modal
|
|
89
|
+
*/
|
|
90
|
+
open(): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Closes the bullet delivery modal
|
|
93
|
+
*/
|
|
94
|
+
close(): Promise<HTMLElement>;
|
|
95
|
+
private resetState;
|
|
96
|
+
private getIntentStorage;
|
|
97
|
+
private getStoredIntent;
|
|
98
|
+
private setStoredIntent;
|
|
99
|
+
private removeStoredIntent;
|
|
100
|
+
/**
|
|
101
|
+
* Single prefill flow: load geography from stored intent and set selected location + form.
|
|
102
|
+
* Assumes this.countries is already loaded. No-op if no intent or no city in intent.
|
|
103
|
+
*/
|
|
104
|
+
private prefillAddressFromStoredIntent;
|
|
105
|
+
private updateNewAddressForm;
|
|
106
|
+
/** Whether allocation completed successfully this session (modal won't auto-open again). */
|
|
107
|
+
private hasBeenShownThisSession;
|
|
108
|
+
/** Mark allocation as completed this session (called only after allocateScope succeeds). */
|
|
109
|
+
private markShownThisSession;
|
|
110
|
+
private loadCountries;
|
|
111
|
+
private loadCities;
|
|
112
|
+
private loadDistricts;
|
|
113
|
+
private findPrefillDistrict;
|
|
114
|
+
private loadBranches;
|
|
115
|
+
private filterBranches;
|
|
116
|
+
/**
|
|
117
|
+
* Prefill form fields from session storage
|
|
118
|
+
*/
|
|
119
|
+
private prefillFromSessionStorage;
|
|
120
|
+
private loadSavedAddresses;
|
|
121
|
+
private applyCountryChange;
|
|
122
|
+
private loadRegions;
|
|
123
|
+
/**
|
|
124
|
+
* AC7: Guest-to-Registered Sync
|
|
125
|
+
* Syncs guest session location to user profile on login
|
|
126
|
+
*/
|
|
127
|
+
private handleGuestToRegisteredSync;
|
|
128
|
+
/**
|
|
129
|
+
* Set an address as active/last used
|
|
130
|
+
*/
|
|
131
|
+
private setAddressAsActive;
|
|
132
|
+
/**
|
|
133
|
+
* Create a new address from guest session: only country, city and district IDs (no street, etc.).
|
|
134
|
+
* Uses address/location API; after fetch we return the newly created address from the list.
|
|
135
|
+
*/
|
|
136
|
+
private createAddressFromGuestSession;
|
|
137
|
+
private emitHeaderContextUpdate;
|
|
138
|
+
private handleBranchSearch;
|
|
139
|
+
private loadBranchesWithLocation;
|
|
140
|
+
/** Locate nearest branch using device geolocation (branches tab only). */
|
|
141
|
+
private handleFindNearestBranch;
|
|
142
|
+
private handleBranchSelect;
|
|
143
|
+
private handleSavedAddressSelect;
|
|
144
|
+
private handleSessionAddressSelect;
|
|
145
|
+
/** Show delete confirmation UI for this address (do not call API yet). */
|
|
146
|
+
/**
|
|
147
|
+
* Switch to add-address form (unified form). Preselects country from session when present.
|
|
148
|
+
*/
|
|
149
|
+
private handleAddNewAddress;
|
|
150
|
+
private handleBackToAddressList;
|
|
151
|
+
/**
|
|
152
|
+
* Build address/location payload from guest-form state (same fields as add-address).
|
|
153
|
+
*/
|
|
154
|
+
private buildAddressLocationPayload;
|
|
155
|
+
/**
|
|
156
|
+
* Submit add-address form: create address via API then switch back to list.
|
|
157
|
+
*/
|
|
158
|
+
private handleSubmitAddAddress;
|
|
159
|
+
private handleTabChange;
|
|
160
|
+
private isConfirmDisabled;
|
|
161
|
+
private handleLogin;
|
|
162
|
+
private buildIntentAddress;
|
|
163
|
+
private buildIntentAddressFromSaved;
|
|
164
|
+
private buildIntentBranch;
|
|
165
|
+
private handleConfirm;
|
|
166
|
+
private getCartViewConfig;
|
|
167
|
+
/** Creates the cart view DOM for mounting into cart.items.start hook */
|
|
168
|
+
private createCartViewElement;
|
|
169
|
+
private renderSkeleton;
|
|
170
|
+
private renderTabs;
|
|
171
|
+
private renderAlert;
|
|
172
|
+
private renderAllocationOutOfCoverageAlert;
|
|
173
|
+
private renderCountrySelect;
|
|
174
|
+
private renderSelectLoader;
|
|
175
|
+
private renderLoadingLabel;
|
|
176
|
+
/** Region select (SA only): shown when SA is selected; city and district disabled until region selected. */
|
|
177
|
+
private renderRegionSelect;
|
|
178
|
+
private renderCityDistrictSelects;
|
|
179
|
+
private renderSavedAddressesEmptyState;
|
|
180
|
+
/**
|
|
181
|
+
* Save session address (guest intent) to user profile. Returns the newly saved address or null.
|
|
182
|
+
*/
|
|
183
|
+
private saveSessionAddressToProfile;
|
|
184
|
+
private renderSavedAddresses;
|
|
185
|
+
private renderAddressRow;
|
|
186
|
+
private renderGuestDeliveryForm;
|
|
187
|
+
private renderDeliveryTab;
|
|
188
|
+
private renderBranchSearch;
|
|
189
|
+
private renderBranchList;
|
|
190
|
+
private renderPickupTab;
|
|
191
|
+
/** Add-address form: same fields as guest form (country, region, city, district) only. */
|
|
192
|
+
private renderAddAddressForm;
|
|
193
|
+
private renderFooter;
|
|
194
|
+
private renderMainView;
|
|
195
|
+
private handleAfterAddToCart;
|
|
196
|
+
private overrideScopeSwitchUI;
|
|
197
|
+
componentWillLoad(): Promise<void>;
|
|
198
|
+
render(): any;
|
|
199
|
+
componentDidLoad(): void;
|
|
200
|
+
disconnectedCallback(): void;
|
|
201
|
+
}
|
|
202
|
+
export {};
|
|
@@ -19,7 +19,8 @@ export declare class SallaCartSummary {
|
|
|
19
19
|
*/
|
|
20
20
|
componentWillLoad(): Promise<unknown>;
|
|
21
21
|
/**
|
|
22
|
-
* Compute cart href with scope
|
|
22
|
+
* Compute cart href with scope + allocation parameters.
|
|
23
|
+
* Uses storage (not config) so allocation_type/allocation_id set by bullet-delivery are included.
|
|
23
24
|
*/
|
|
24
25
|
private getCartLink;
|
|
25
26
|
render(): any;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Option } from "./components/salla-booking-field/interfaces";
|
|
9
|
+
import { AddressCreatedEvent, BulletDeliveryConfirmedEvent, HeaderContextUpdateEvent } from "./components/salla-bullet-delivery/interfaces";
|
|
9
10
|
import { Color, Options } from "./components/salla-color-picker/interfaces";
|
|
10
11
|
import { Comment, CommentType } from "./components/salla-comments/interfaces";
|
|
11
12
|
import { CustomField } from "./components/salla-user-profile/interfaces";
|
|
@@ -25,6 +26,7 @@ import { Review } from "./components/salla-review-card/interfaces";
|
|
|
25
26
|
import { ReviewType, SortingOption, Source } from "./components/salla-reviews/interfaces";
|
|
26
27
|
import { Phone } from "./components/salla-tel-input/interfaces";
|
|
27
28
|
export { Option } from "./components/salla-booking-field/interfaces";
|
|
29
|
+
export { AddressCreatedEvent, BulletDeliveryConfirmedEvent, HeaderContextUpdateEvent } from "./components/salla-bullet-delivery/interfaces";
|
|
28
30
|
export { Color, Options } from "./components/salla-color-picker/interfaces";
|
|
29
31
|
export { Comment, CommentType } from "./components/salla-comments/interfaces";
|
|
30
32
|
export { CustomField } from "./components/salla-user-profile/interfaces";
|
|
@@ -218,6 +220,16 @@ export namespace Components {
|
|
|
218
220
|
*/
|
|
219
221
|
interface SallaBreadcrumb {
|
|
220
222
|
}
|
|
223
|
+
interface SallaBulletDelivery {
|
|
224
|
+
/**
|
|
225
|
+
* Closes the bullet delivery modal
|
|
226
|
+
*/
|
|
227
|
+
"close": () => Promise<HTMLElement>;
|
|
228
|
+
/**
|
|
229
|
+
* Opens the bullet delivery modal
|
|
230
|
+
*/
|
|
231
|
+
"open": () => Promise<void>;
|
|
232
|
+
}
|
|
221
233
|
interface SallaButton {
|
|
222
234
|
/**
|
|
223
235
|
* Button Color
|
|
@@ -2884,6 +2896,10 @@ export interface SallaBookingFieldCustomEvent<T> extends CustomEvent<T> {
|
|
|
2884
2896
|
detail: T;
|
|
2885
2897
|
target: HTMLSallaBookingFieldElement;
|
|
2886
2898
|
}
|
|
2899
|
+
export interface SallaBulletDeliveryCustomEvent<T> extends CustomEvent<T> {
|
|
2900
|
+
detail: T;
|
|
2901
|
+
target: HTMLSallaBulletDeliveryElement;
|
|
2902
|
+
}
|
|
2887
2903
|
export interface SallaColorPickerCustomEvent<T> extends CustomEvent<T> {
|
|
2888
2904
|
detail: T;
|
|
2889
2905
|
target: HTMLSallaColorPickerElement;
|
|
@@ -3092,6 +3108,26 @@ declare global {
|
|
|
3092
3108
|
prototype: HTMLSallaBreadcrumbElement;
|
|
3093
3109
|
new (): HTMLSallaBreadcrumbElement;
|
|
3094
3110
|
};
|
|
3111
|
+
interface HTMLSallaBulletDeliveryElementEventMap {
|
|
3112
|
+
"bulletDeliveryConfirmed": BulletDeliveryConfirmedEvent;
|
|
3113
|
+
"bulletDeliveryClosed": void;
|
|
3114
|
+
"addressCreated": AddressCreatedEvent;
|
|
3115
|
+
"headerContextUpdate": HeaderContextUpdateEvent;
|
|
3116
|
+
}
|
|
3117
|
+
interface HTMLSallaBulletDeliveryElement extends Components.SallaBulletDelivery, HTMLStencilElement {
|
|
3118
|
+
addEventListener<K extends keyof HTMLSallaBulletDeliveryElementEventMap>(type: K, listener: (this: HTMLSallaBulletDeliveryElement, ev: SallaBulletDeliveryCustomEvent<HTMLSallaBulletDeliveryElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3119
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3120
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3121
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3122
|
+
removeEventListener<K extends keyof HTMLSallaBulletDeliveryElementEventMap>(type: K, listener: (this: HTMLSallaBulletDeliveryElement, ev: SallaBulletDeliveryCustomEvent<HTMLSallaBulletDeliveryElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3123
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3124
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3125
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3126
|
+
}
|
|
3127
|
+
var HTMLSallaBulletDeliveryElement: {
|
|
3128
|
+
prototype: HTMLSallaBulletDeliveryElement;
|
|
3129
|
+
new (): HTMLSallaBulletDeliveryElement;
|
|
3130
|
+
};
|
|
3095
3131
|
interface HTMLSallaButtonElement extends Components.SallaButton, HTMLStencilElement {
|
|
3096
3132
|
}
|
|
3097
3133
|
var HTMLSallaButtonElement: {
|
|
@@ -3972,6 +4008,7 @@ declare global {
|
|
|
3972
4008
|
"salla-booking-field": HTMLSallaBookingFieldElement;
|
|
3973
4009
|
"salla-bottom-alert": HTMLSallaBottomAlertElement;
|
|
3974
4010
|
"salla-breadcrumb": HTMLSallaBreadcrumbElement;
|
|
4011
|
+
"salla-bullet-delivery": HTMLSallaBulletDeliveryElement;
|
|
3975
4012
|
"salla-button": HTMLSallaButtonElement;
|
|
3976
4013
|
"salla-cart-item-offers": HTMLSallaCartItemOffersElement;
|
|
3977
4014
|
"salla-cart-summary": HTMLSallaCartSummaryElement;
|
|
@@ -4255,6 +4292,24 @@ declare namespace LocalJSX {
|
|
|
4255
4292
|
*/
|
|
4256
4293
|
interface SallaBreadcrumb {
|
|
4257
4294
|
}
|
|
4295
|
+
interface SallaBulletDelivery {
|
|
4296
|
+
/**
|
|
4297
|
+
* Emitted when a new address is created
|
|
4298
|
+
*/
|
|
4299
|
+
"onAddressCreated"?: (event: SallaBulletDeliveryCustomEvent<AddressCreatedEvent>) => void;
|
|
4300
|
+
/**
|
|
4301
|
+
* Emitted when the modal is closed
|
|
4302
|
+
*/
|
|
4303
|
+
"onBulletDeliveryClosed"?: (event: SallaBulletDeliveryCustomEvent<void>) => void;
|
|
4304
|
+
/**
|
|
4305
|
+
* Emitted when the user confirms their selection
|
|
4306
|
+
*/
|
|
4307
|
+
"onBulletDeliveryConfirmed"?: (event: SallaBulletDeliveryCustomEvent<BulletDeliveryConfirmedEvent>) => void;
|
|
4308
|
+
/**
|
|
4309
|
+
* Emitted to sync with the global header (Delivering to: [location])
|
|
4310
|
+
*/
|
|
4311
|
+
"onHeaderContextUpdate"?: (event: SallaBulletDeliveryCustomEvent<HeaderContextUpdateEvent>) => void;
|
|
4312
|
+
}
|
|
4258
4313
|
interface SallaButton {
|
|
4259
4314
|
/**
|
|
4260
4315
|
* Button Color
|
|
@@ -6662,6 +6717,7 @@ declare namespace LocalJSX {
|
|
|
6662
6717
|
"salla-booking-field": SallaBookingField;
|
|
6663
6718
|
"salla-bottom-alert": SallaBottomAlert;
|
|
6664
6719
|
"salla-breadcrumb": SallaBreadcrumb;
|
|
6720
|
+
"salla-bullet-delivery": SallaBulletDelivery;
|
|
6665
6721
|
"salla-button": SallaButton;
|
|
6666
6722
|
"salla-cart-item-offers": SallaCartItemOffers;
|
|
6667
6723
|
"salla-cart-summary": SallaCartSummary;
|
|
@@ -6788,6 +6844,7 @@ declare module "@stencil/core" {
|
|
|
6788
6844
|
* @tag salla-breadcrumb
|
|
6789
6845
|
*/
|
|
6790
6846
|
"salla-breadcrumb": LocalJSX.SallaBreadcrumb & JSXBase.HTMLAttributes<HTMLSallaBreadcrumbElement>;
|
|
6847
|
+
"salla-bullet-delivery": LocalJSX.SallaBulletDelivery & JSXBase.HTMLAttributes<HTMLSallaBulletDeliveryElement>;
|
|
6791
6848
|
"salla-button": LocalJSX.SallaButton & JSXBase.HTMLAttributes<HTMLSallaButtonElement>;
|
|
6792
6849
|
"salla-cart-item-offers": LocalJSX.SallaCartItemOffers & JSXBase.HTMLAttributes<HTMLSallaCartItemOffersElement>;
|
|
6793
6850
|
"salla-cart-summary": LocalJSX.SallaCartSummary & JSXBase.HTMLAttributes<HTMLSallaCartSummaryElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight-components",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.373",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"author": "Salla Team <support@salla.dev> (https://salla.dev)",
|
|
6
6
|
"bugs": {
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"typescript": "^5.4.5"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@salla.sa/applepay": "2.14.
|
|
83
|
-
"@salla.sa/twilight": "2.14.
|
|
84
|
-
"@salla.sa/twilight-tailwind-theme": "2.14.
|
|
82
|
+
"@salla.sa/applepay": "2.14.373",
|
|
83
|
+
"@salla.sa/twilight": "2.14.373",
|
|
84
|
+
"@salla.sa/twilight-tailwind-theme": "2.14.373",
|
|
85
85
|
"@types/node": "^20.4.8",
|
|
86
86
|
"animejs": "^3.2.2",
|
|
87
87
|
"filepond": "^4.30.6",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"vanilla-lazyload": "^17.8.5",
|
|
100
100
|
"vanilla-picker": "^2.12.2"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "0f0011cea0aa2cd41bbd0a84f1ec0e8d697d7c95"
|
|
103
103
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as e,h as s,H as i}from"./p-D7Bzwdti.js";import{a}from"./p-BedNk7k1.js";const l=class{constructor(s){t(this,s),this.changed=e(this,"changed"),this.min=0,this.max=1e4,this.moreThanLabel="أكثر من",this.lessThanLabel="أقل من",this.toLabel="الى",this.fromLabel="من",this.typing=!1,this.isMin=!1,this.isRTL=salla.config.get("theme.is_rtl",!0),this.filterValues=[]}connectedCallback(){if(this.filtersData&&this.filtersData?.price&&(this.minPrice=this.filtersData.price.min,this.maxPrice=this.filtersData.price.max),salla.lang.onLoaded((()=>{this.moreThanLabel=salla.lang.getWithDefault("common.elements.more_than",this.moreThanLabel),this.lessThanLabel=salla.lang.getWithDefault("common.elements.less_than",this.lessThanLabel),this.toLabel=salla.lang.getWithDefault("common.elements.to",this.toLabel),this.fromLabel=salla.lang.getWithDefault("common.elements.from",this.fromLabel)})),1==this.option.values.length)return;if(this.option.values.length<=5)return void(this.filterValues=this.option.values);const t=Math.ceil(this.option.values.length/5);for(let e=0;e<this.option.values.length;e+=t)this.filterValues.push(this.option.values.slice(e,e+t).reduce(((t,e)=>(t.to=e.to,t.count+=e.count,t))))}async reset(){this.minInput.value=null,this.maxInput.value=null,this.minPrice=null,this.maxPrice=null}getPriceLabel(t){return isNaN(t.from)||t.from<1?`${this.lessThanLabel} ${salla.money(t.to)}`:isNaN(t.to)||t.to<1?`${this.moreThanLabel} ${salla.money(t.from)}`:`${salla.money(t.from)} ${this.toLabel} ${salla.money(t.to)}`}minInputValidation(t){t&&(t>this.max||this.maxPrice&&t>this.maxPrice)||(t<this.min?this.minPrice=this.min:t&&(this.minPrice=t))}maxInputValidation(t){t&&(t<this.min||this.minPrice&&t<this.minPrice)||t>this.max&&(this.maxPrice=this.max)}async changedEventHandler(t){salla.helpers.inputDigitsOnly(this.minInput),salla.helpers.inputDigitsOnly(this.maxInput);const e=this.minPrice?1*+this.minPrice:null,s=this.maxPrice?1*+this.maxPrice:null;this.maxPrice||(this.maxPrice=""),this.isMin?this.minInputValidation(e):(this.minPrice||(this.minPrice=0),this.maxInputValidation(s)),this.isReady&&this.changed.emit({event:t,option:this.option,value:{max:this.maxPrice,min:this.minPrice}})}handleMinMaxPrice(t,e){this.minPrice=e.from,this.maxPrice="*"!==e.to?e.to:"",this.changedEventHandler(t)}isChecked(t){return!(!this.minPrice&&!this.maxPrice)&&(((t.from<1||"*"==t.from)&&0==this.minPrice||t.from==this.minPrice)&&("*"==t.to||!t.to||t.to==this.maxPrice))}handleMinPrice(t){this.isMin=!0;const e=t.target.value;this.minPrice=""===e?0:e}handleMaxPrice(t){this.isMin=!1;const e=t.target.value;this.maxPrice=void 0===e?"":e}render(){return s(i,{key:"38e861565eba32f7905401f18c4ca56af7a12c99"},this.filterValues.map(((t,e)=>s("label",{class:"s-filters-label",htmlFor:`${this.option.key}-${e}`,key:e},s("input",{id:`${this.option.key}-${e}`,name:"price",type:"radio",checked:this.isChecked(t),class:"s-filters-radio",onChange:e=>this.handleMinMaxPrice(e,t)}),s("span",{innerHTML:this.getPriceLabel(t)})))),s("div",{key:"0d36c5e34fa0aeffc82cb6d43069d568c7f60e27",class:"flex justify-center items-center"},s("div",{key:"92d12aec4ad4cafe4cc234697a2b8da941d79e2f",class:"relative max-w-xl w-full"},s("div",{key:"1cc8f2de52169095a130d386f0670c802508ba35",class:"s-price-range-inputs"},s("div",{key:"509a518a8de8177101805a4c81fd5f7a53007960",class:"s-price-range-relative"},s("div",{key:"b0cf4876758e86e676e850c3d2ac8610536892c0",class:"s-price-range-currency"}," ",salla.config.currency().symbol),s("input",{key:"00b6a1d73249153329b376eaf871d6be830d2d40",type:"number",maxlength:"5",ref:t=>this.minInput=t,onBlur:t=>this.handleMinPrice(t),value:this.minPrice,placeholder:this.fromLabel,class:"s-price-range-number-input"})),s("div",{key:"5517e97d2cb19bf2791c190b7803bc415394a3f6",class:"s-price-range-gray-text"}," -"),s("div",{key:"182a0cfae1c328e60116e6537872a7dc5ffab563",class:"s-price-range-relative"},s("div",{key:"6f936938df035b95288a683eeceb4f7962b1e0ac",class:"s-price-range-currency"}," ",salla.config.currency().symbol),s("input",{key:"5e143013b6ad7537a042c6801f581bf0cfa62b94",type:"number",maxlength:"5",ref:t=>this.maxInput=t,onBlur:t=>this.handleMaxPrice(t),value:this.maxPrice,placeholder:this.toLabel,class:"s-price-range-number-input","aria-describedby":"price-currency"})),s("salla-button",{key:"5ac9d08136618280814266d1108c042b1aac6822",color:"gray",shape:"icon",size:"small",fill:"outline",onClick:t=>this.changedEventHandler(t)},s("span",{key:"03795b3bf5881e5a39f8272c867bdbad049d203d",innerHTML:this.isRTL?a:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>arrow-right</title>\n<path d="M29.217 15.465c-0.019-0.044-0.056-0.077-0.080-0.119-0.067-0.116-0.139-0.227-0.236-0.317-0.011-0.009-0.013-0.024-0.024-0.033l-10.667-9.333c-0.553-0.484-1.396-0.429-1.881 0.125-0.484 0.555-0.428 1.396 0.127 1.881l7.996 6.997h-20.452c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h20.452l-7.996 6.997c-0.555 0.485-0.611 1.327-0.127 1.881 0.264 0.3 0.633 0.455 1.004 0.455 0.312 0 0.625-0.109 0.877-0.331l10.667-9.333c0.011-0.009 0.015-0.024 0.024-0.033 0.097-0.091 0.169-0.201 0.236-0.317 0.024-0.041 0.060-0.075 0.080-0.119 0.073-0.163 0.116-0.343 0.116-0.533s-0.043-0.371-0.116-0.535z"></path>\n</svg>\n'}))))))}componentDidLoad(){this.isReady=!0}};l.style=":host{display:block}.rtl .rtl-range-slider,[dir=rtl] .rtl-range-slider{transform:rotateY(180deg)}.rtl .rtl-range-numbers,[dir=rtl] .rtl-range-numbers{flex-direction:row-reverse}.rtl .form-select,.rtl select,[dir=rtl] .form-select,[dir=rtl] select{background-position:left 0.5rem center;padding-right:12px}.rtl .menu-divide li:not(:last-child):after,[dir=rtl] .menu-divide li:not(:last-child):after{left:0;right:auto}input[type=range]::-webkit-slider-thumb{pointer-events:all;width:24px;height:24px;-webkit-appearance:none}[type=checkbox]:checked{background-size:80%}";export{l as salla_price_range}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as s,c as a,a as i}from"./p-D7Bzwdti.js";import{p as l,m as o}from"./p-DfeagqF1.js";const r=class{constructor(t){e(this,t)}render(){return t(s,{key:"298d42a5bf1bcefdb181ec35060220cf749b56ed",class:"s-accordion-body-wrapper"},t("slot",{key:"6ab081e8b71b5dc69fb66fbdec82b4725ab53b0d"}))}};r.style="";const h=class{constructor(t){e(this,t),this.accordionToggle=a(this,"accordionToggle"),this.collapsible=!1,this.collapsed=!0}emitCollapsePanel(){this.accordionToggle.emit({payload:{collapsed:this.collapsed}})}toggleCollapse(){this.collapsible&&(this.collapsed=!this.collapsed,this.host.parentElement?.setAttribute("data-collapsed",this.collapsed.toString()),this.host.parentElement?.querySelector("salla-accordion-body")?.setAttribute("data-collapsed",this.collapsed.toString()),this.emitCollapsePanel())}render(){return t(s,{key:"9d88d243306cdf451c20d7068fbb9f48807b22e9","data-collapsed":this.collapsed.toString(),onClick:()=>this.toggleCollapse(),class:"s-accordion-head-wrapper"},t("div",{key:"bad4c5a913ce1c4581b09c0b6d96fcbdb4236638",class:"s-accordion-head-wrapper-start"},t("slot",{key:"acb83cec8cbca5771a9f84e81c0b955c3edad731",name:"title"}),t("slot",{key:"a4ad42ea6fad4f452c4c218a9ee02dca0adb4a67",name:"progress"}),t("slot",{key:"96ab95d413dc906ac299079f4008816f01881990",name:"html"})),(this.collapsible||this.host.querySelector('[slot="note"]'))&&t("div",{key:"8f9666a5038cd7b1ac6e357c6920ea26d31c5f03",class:"s-accordion-head-wrapper-end"},t("slot",{key:"14895e8c1385e91c14f046c9ae38ce5e4a4c9a60",name:"note"}),this.collapsible&&t("button",{key:"97dc7fabbb207fcc8b68ebf0a86f6c8a980dca13",class:{"s-accordion-head-wrapper-toggle":!0,active:!this.collapsed},onClick:e=>{e.stopPropagation(),this.toggleCollapse()}},t("span",{key:"3b24faf71dcd332663a354310b2ce09f7879eddc",class:"s-accordion-head-wrapper-toggle-icon",innerHTML:this.collapsed?l:o}))))}get host(){return i(this)}};h.style="";var c={light:[{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]}],dark:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}]};class n{constructor(e=null,t={}){if(this.apiKey=e,this.options=t,"undefined"==typeof window)throw new Error("google-maps is supported only in browser environment")}load(){return void 0!==this.api?Promise.resolve(this.api):void 0!==this.loader?this.loader:(window[n.CALLBACK_NAME]=()=>{if(this.api=window.google,void 0===this.resolve)throw new Error("Should not happen");this.resolve(this.api)},window.gm_authFailure=()=>{if(void 0===this.reject)throw new Error("Should not happen");this.reject(new Error("google-maps: authentication error"))},this.loader=new Promise(((e,t)=>{this.resolve=e,this.reject=t;const s=document.createElement("script");s.src=this.createUrl(),s.async=!0,s.onerror=e=>t(e),document.head.appendChild(s)})))}createUrl(){const e=[`callback=${n.CALLBACK_NAME}`];this.apiKey&&e.push(`key=${this.apiKey}`);for(let t in this.options)if(this.options.hasOwnProperty(t)){let s=this.options[t];"version"===t&&(t="v"),"libraries"===t&&(s=s.join(",")),e.push(`${t}=${s}`)}return`https://maps.googleapis.com/maps/api/js?${e.join("&")}`}}n.CALLBACK_NAME="_dk_google_maps_loader_cb";const d=class{constructor(t){e(this,t),this.selected=a(this,"selected"),this.mapClicked=a(this,"mapClicked"),this.currentLocationChanged=a(this,"currentLocationChanged"),this.invalidInput=a(this,"invalidInput"),this.defaultLat=21.419421,this.defaultLng=39.82553,this.modalActivityTitle=salla.lang.get("pages.checkout.select_your_address_from_map"),this.confirmButtonTitle=salla.lang.get("pages.checkout.confirm_address"),this.locateButtonTitle=salla.lang.get("pages.cart.detect_location"),this.locateButtonEdit=salla.lang.get("common.elements.edit"),this.searchPlaceholder=salla.lang.get("pages.checkout.search_for_address"),this.searchInputValue=null,this.formattedAddress="",this.geolocationError=!1,this.name="location",this.required=!1,this.readonly=!1,this.searchable=!1,this.zoom=10,this.theme="light",salla.lang.onLoaded((()=>{this.modalActivityTitle=salla.lang.get("pages.checkout.select_your_address_from_map"),this.confirmButtonTitle=salla.lang.get("pages.checkout.confirm_address"),this.locateButtonTitle=salla.lang.get("pages.cart.detect_location"),this.locateButtonEdit=salla.lang.get("common.elements.edit"),this.searchPlaceholder=salla.lang.get("pages.checkout.search_for_address")})),salla.onReady((()=>{this.apiKey=salla.config.get("store.settings.keys.maps","AIzaSyBFgFISAizDP3YVWj0y5rF8JKKNQ2vohdc")}))}formatAddress(e){return e.length>25?e.substring(0,25)+"...":e}getLatLng(){return this.selectedLat&&this.selectedLng?`${this.selectedLat}, ${this.selectedLng}`:null}getPositionAddress(e,t=!1){(new google.maps.Geocoder).geocode({location:e},((e,s)=>{s===google.maps.GeocoderStatus.OK&&(this.searchable&&(this.searchInputValue=e[0].formatted_address,this.searchInput.value=e[0].formatted_address),t&&(this.formattedAddress=e[0].formatted_address))}))}initGoogleMaps(e,t){new n(this.apiKey,e).load().then((e=>{if(this.map=new e.maps.Map(t,{center:this.lat||this.lng?{lat:this.lat,lng:this.lng}:{lat:this.defaultLat,lng:this.defaultLng},zoom:this.zoom,zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,disableDefaultUI:!1}),this.map.setOptions({styles:"light"===this.theme?c.light:c.dark}),this.marker=new e.maps.Marker({position:this.map.getCenter(),map:this.map,icon:{url:"data:image/svg+xml;utf8,"+encodeURIComponent('<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="36" height="36" rx="18" fill="#5CD5C4"/>\n<path d="M18 10C17.0104 10 16.1458 10.1771 15.4062 10.5312C14.6562 10.8854 14.026 11.3542 13.5156 11.9375C13.0156 12.5104 12.6406 13.1667 12.3906 13.9062C12.1302 14.6458 12 15.401 12 16.1719C12 16.8906 12.2604 17.7656 12.7812 18.7969C13.3021 19.8281 13.8854 20.8333 14.5312 21.8125C15.1875 22.7812 15.8073 23.6406 16.3906 24.3906C16.9844 25.1302 17.349 25.5885 17.4844 25.7656C17.5469 25.8385 17.625 25.8958 17.7188 25.9375C17.8125 25.9792 17.9062 26 18 26C18.1042 26 18.1979 25.9792 18.2812 25.9375C18.375 25.8958 18.4531 25.8385 18.5156 25.7656C18.651 25.5885 19.0156 25.1302 19.6094 24.3906C20.1927 23.6406 20.8073 22.7812 21.4531 21.8125C22.1094 20.8333 22.6979 19.8281 23.2188 18.7969C23.7396 17.7656 24 16.8906 24 16.1719C24 15.401 23.8698 14.6458 23.6094 13.9062C23.3594 13.1667 22.9792 12.5104 22.4688 11.9375C21.9688 11.3542 21.3438 10.8854 20.5938 10.5312C19.8542 10.1771 18.9896 10 18 10ZM18 24.2812C17.5833 23.75 17.1094 23.1198 16.5781 22.3906C16.0365 21.651 15.526 20.901 15.0469 20.1406C14.5677 19.3698 14.1615 18.6302 13.8281 17.9219C13.4948 17.2135 13.3281 16.6302 13.3281 16.1719C13.3281 15.5885 13.4219 15.0052 13.6094 14.4219C13.7969 13.849 14.0781 13.3333 14.4531 12.875C14.8385 12.4167 15.3281 12.0469 15.9219 11.7656C16.5052 11.474 17.1979 11.3281 18 11.3281C18.8021 11.3281 19.4948 11.474 20.0781 11.7656C20.6719 12.0469 21.1562 12.4167 21.5312 12.875C21.9167 13.3333 22.2031 13.849 22.3906 14.4219C22.5781 15.0052 22.6719 15.5885 22.6719 16.1719C22.6719 16.6302 22.5052 17.2135 22.1719 17.9219C21.8385 18.6302 21.4323 19.3698 20.9531 20.1406C20.474 20.901 19.9688 21.651 19.4375 22.3906C18.8958 23.1198 18.4167 23.75 18 24.2812ZM18 13.3281C17.2604 13.3281 16.6302 13.5885 16.1094 14.1094C15.5885 14.6302 15.3281 15.2604 15.3281 16C15.3281 16.7396 15.5885 17.3698 16.1094 17.8906C16.6302 18.4115 17.2604 18.6719 18 18.6719C18.7396 18.6719 19.3698 18.4115 19.8906 17.8906C20.4115 17.3698 20.6719 16.7396 20.6719 16C20.6719 15.2604 20.4115 14.6302 19.8906 14.1094C19.3698 13.5885 18.7396 13.3281 18 13.3281ZM18 17.3281C17.6354 17.3281 17.3229 17.1979 17.0625 16.9375C16.8021 16.6771 16.6719 16.3646 16.6719 16C16.6719 15.6354 16.8021 15.3229 17.0625 15.0625C17.3229 14.8021 17.6354 14.6719 18 14.6719C18.3646 14.6719 18.6771 14.8021 18.9375 15.0625C19.1979 15.3229 19.3281 15.6354 19.3281 16C19.3281 16.3646 19.1979 16.6771 18.9375 16.9375C18.6771 17.1979 18.3646 17.3281 18 17.3281Z" fill="white"/>\n</svg>\n'),scaledSize:new e.maps.Size(30,30)}}),this.searchable){const t=new e.maps.places.SearchBox(this.searchInput);e.maps.event.addListener(t,"places_changed",(()=>{const e=t.getPlaces();e.length>0&&this.map&&(this.map.setCenter(e[0].geometry.location),this.lat=e[0].geometry.location.lat(),this.lng=e[0].geometry.location.lng(),this.marker.setPosition(e[0].geometry.location),this.searchInputValue=e[0].formatted_address,this.formattedAddress=e[0].formatted_address)}))}e.maps.event.addListener(this.map,"click",(e=>{this.readonly||(this.marker.setPosition(e.latLng),this.lat=e.latLng.lat(),this.lng=e.latLng.lng(),this.getPositionAddress(e.latLng),this.mapClicked.emit({lat:e.latLng.lat(),lng:e.latLng.lng(),address:this.formattedAddress?this.formattedAddress:null}))})),this.lat||this.lng||(this.getCurrentLocation(),this.geolocationError&&(this.map.setCenter({lat:this.lat,lng:this.lng}),this.marker.setPosition({lat:this.lat,lng:this.lng})))}))}getCurrentLocation(){navigator.geolocation&&this.map?navigator.geolocation.getCurrentPosition((e=>{const t={center:new google.maps.LatLng(e.coords.latitude,e.coords.longitude),zoom:15};this.map.setOptions(t),this.marker.setPosition(t.center),this.getPositionAddress(t.center),this.lat=e.coords.latitude,this.lng=e.coords.longitude,this.currentLocationChanged.emit({lat:e.coords.latitude,lng:e.coords.longitude,address:this.formattedAddress?this.formattedAddress:null})}),this.handleLocationError.bind(this)):(salla.log("Geolocation is not supported by this browser."),this.geolocationError=!0)}handleLocationError(e){switch(this.geolocationError=!0,e.code){case e.PERMISSION_DENIED:salla.log("User denied the request for Geolocation.");break;case e.POSITION_UNAVAILABLE:salla.log("Location information is unavailable.");break;case e.TIMEOUT:salla.log("The request to get user location timed out.");break;case e.UNKNOWN_ERROR:salla.log("An unknown error occurred.")}}componentDidLoad(){this.lat&&this.lng&&fetch(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${this.lat},${this.lng}&key=${this.apiKey}&language=${salla.config.get("user.language_code")||document.documentElement.lang||"ar"}`).then((e=>e.json())).then((e=>{"OK"===e.status&&(this.formattedAddress=e.results[0].formatted_address,this.searchInputValue=e.results[0].formatted_address,this.searchInput.value=e.results[0].formatted_address,this.selectedLng=this.lng,this.selectedLat=this.lat)})),this.mapInput.addEventListener("invalid",(e=>{this.invalidInput.emit(e)})),this.mapInput.addEventListener("input",(()=>{this.mapInput.setCustomValidity(""),this.mapInput.reportValidity()}))}async open(){return this.map||this.initGoogleMaps({libraries:this.searchable?["places","search"]:[],language:salla.config.get("user.language_code")||document.documentElement.lang||"ar"},this.mapElement),await this.locationModal.open()}getLocationModal(){return t("div",null,t("div",{class:"s-map-modal-title"},this.modalTitle?this.modalTitle:this.modalActivityTitle),t("div",{class:"s-map-modal-body"},t("div",{class:"s-map-element",ref:e=>this.mapElement=e}),this.readonly?"":[this.searchable&&t("div",{class:"s-map-search-wrapper"},t("input",{class:"s-map-search-input",ref:e=>this.searchInput=e,placeholder:this.searchPlaceholder})),t("salla-button",{class:"s-map-my-location-button",onClick:()=>{this.getCurrentLocation()},shape:"icon",color:"primary"},t("span",{innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>location-target</title>\n<path d="M16 9.333c-3.676 0-6.667 2.991-6.667 6.667s2.991 6.667 6.667 6.667 6.667-2.991 6.667-6.667-2.991-6.667-6.667-6.667zM16 20c-2.205 0-4-1.795-4-4s1.795-4 4-4 4 1.795 4 4-1.795 4-4 4zM30.667 14.667h-1.401c-0.627-6.289-5.643-11.305-11.932-11.932v-1.401c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.401c-6.289 0.627-11.305 5.643-11.932 11.932h-1.401c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h1.401c0.628 6.289 5.643 11.305 11.932 11.932v1.401c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-1.401c6.289-0.628 11.305-5.643 11.932-11.932h1.401c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333zM16 26.667c-5.881 0-10.667-4.785-10.667-10.667s4.785-10.667 10.667-10.667 10.667 4.785 10.667 10.667-4.785 10.667-10.667 10.667z"></path>\n</svg>\n'})),t("salla-button",{class:"s-map-submit-button",color:"primary",width:"wide",onClick:()=>{let e={lat:this.lat,lng:this.lng,address:this.formattedAddress?this.formattedAddress:null};salla.event.emit("salla-map::selected",e),this.selected.emit(e),this.selectedLat=e.lat,this.selectedLng=e.lng,this.getPositionAddress(new google.maps.LatLng(e.lat,e.lng),!0),this.mapInput.value=this.selectedLat&&this.selectedLng?`${this.selectedLat}, ${this.selectedLng}`:null,this.mapInput.dispatchEvent(new window.Event("change",{bubbles:!0})),this.locationModal.close()}},this.confirmButtonTitle)]))}render(){return t(s,{key:"f3b0f4e444e266a4f9c60782bea7920a1b4c34b4",class:"s-map-wrapper"},t("salla-modal",{key:"5066a0f19b59509656350bd0a02bc8ff8bb3d9d7",class:"s-map-modal-wrapper",noPadding:!0,ref:e=>{this.locationModal=e}},this.getLocationModal()),t("slot",{key:"884266b42b7c5532486c4e8bd1aba8b0e6bf2f89",name:"button"},t("salla-button",{key:"32b96c45aca7589681a3819d165b38e8f9ee036e",onClick:()=>{this.open()},color:"primary",class:"s-map-location-button"},t("span",{key:"d73a9837cb6a6df740300a4f52c35dd7f9499e73",class:"s-map-location-icon",innerHTML:this.formattedAddress?'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>edit</title>\n<path d="M30.583 1.417c-1.828-1.829-5.019-1.829-6.847 0l-13.396 13.396c-0.161 0.161-0.279 0.361-0.341 0.581l-1.949 6.911c-0.131 0.464 0 0.964 0.341 1.305 0.253 0.252 0.593 0.389 0.943 0.389 0.121 0 0.243-0.016 0.361-0.051l6.911-1.949c0.22-0.061 0.419-0.179 0.581-0.34l10.455-10.453s0 0 0 0l2.941-2.941c1.887-1.888 1.887-4.96 0-6.848zM15.547 19.528l-4.284 1.208 1.208-4.284 9.265-9.265 3.076 3.076zM28.696 6.38l-1.999 1.999-3.076-3.076 1.999-1.999c0.849-0.848 2.227-0.848 3.076 0 0.848 0.848 0.848 2.227 0 3.076zM24 20c-0.737 0-1.333 0.597-1.333 1.333v4c0 2.205-1.795 4-4 4h-12c-2.205 0-4-1.795-4-4v-12c0-2.205 1.795-4 4-4h4c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333h-4c-3.676 0-6.667 2.991-6.667 6.667v12c0 3.676 2.991 6.667 6.667 6.667h12c3.676 0 6.667-2.991 6.667-6.667v-4c0-0.736-0.596-1.333-1.333-1.333z"></path>\n</svg>\n':'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>location</title>\n<path d="M16.001 0c-7.879 0-12.001 6.204-12.001 12.333 0 5.813 9.853 17.833 10.976 19.185 0.253 0.305 0.629 0.481 1.025 0.481s0.772-0.176 1.027-0.481c1.121-1.352 10.972-13.372 10.972-19.185 0-6.129-4.121-12.333-11.999-12.333zM16.001 28.549c-3.32-4.184-9.335-12.527-9.335-16.216 0-4.656 2.92-9.667 9.335-9.667 6.412 0 9.332 5.011 9.332 9.667 0 3.689-6.013 12.032-9.332 16.216zM16 6.667c-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333 5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM16 14.667c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z"></path>\n</svg>\n'}),this.formattedAddress?t("div",null,this.locateButtonEdit," | ",this.formatAddress(this.formattedAddress)):this.locateButtonTitle)),t("input",{key:"77a53ca7c0b51268813238d80db56a9b9449c3f9",class:"s-hidden",name:this.name,required:this.required,value:this.getLatLng(),ref:e=>this.mapInput=e}))}get host(){return i(this)}};d.style="";export{r as salla_accordion_body,h as salla_accordion_head,d as salla_map}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as s}from"./p-D7Bzwdti.js";const a=class{constructor(t){e(this,t),this.href=void 0,this.target="_self"}generateClass(){return{"s-list-tile-item":!0,"s-list-tile-item-href":!!this.href}}render(){return t(s,{key:"1e84d5e259adbf61502fbe1ee771ce948c87f218"},t("a",{key:"5e28c64a0f1c62e6749a32859180e705f99af27e",class:this.generateClass(),href:this.href||"#",target:this.target,"aria-label":"List Tile Link"},t("div",{key:"ace3fdaae7332c4c23ab411f0b97cb0699c26ec2",class:"s-list-tile-item-icon"},t("slot",{key:"f8790cd45f2004691b156ef96d12a0f003d99899",name:"icon"})),t("div",{key:"a788d022e2afe3cd383c321f4100dafbae84f844",class:"s-list-tile-item-content"},t("div",{key:"a07afce13d054e11236ffb282901de9db3d23923",class:"s-list-tile-item-title"},t("slot",{key:"43c23495cfb026ddba8739dcc1a619ec25fe98e0",name:"title"})),t("div",{key:"db5e2767a4220ee5d658b3b9384c28d0e105febb",class:"s-list-tile-item-subtitle"},t("slot",{key:"245f602055419b1f32fa943805a72c6a207eea3f",name:"subtitle"}))),t("div",{key:"394a2d1402d3e8346cbc1ebd8d410405ed568c77",class:"s-list-tile-item-action"},t("slot",{key:"6086eb6b1f9894f5a3a77ca484c74dd06f0d468f",name:"action"}))))}};a.style="";export{a as salla_list_tile}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as s,h as t,H as i,a}from"./p-D7Bzwdti.js";const e=class{constructor(t){s(this,t),this.exclude=[]}componentWillLoad(){return salla.onReady().then((()=>{if("string"==typeof this.exclude)try{this.exclude=JSON.parse(this.exclude)}catch(s){salla.logger.error("salla-payments:: failed to parse the exclude props!",this.exclude),this.exclude=[]}this.paymentSlot=this.host.querySelector('[slot="payment"]')?.innerHTML||'<li class="s-payments-list-item"><img width="100%" height="100%" decoding="async" loading="lazy" src="{image}" alt="{payment}" /></li>',this.sbcSlot=this.host.querySelector('[slot="sbc"]')?.innerHTML||'<li class="s-payments-list-item"><a target="_blank" href="{link}"><img width="100%" height="100%" decoding="async" loading="lazy" src="{image}" class="s-payments-sbc-image" alt="SBC" /></a></li>',this.codSlot=this.host.querySelector('[slot="cod"]')?.innerHTML||'<li class="s-payments-list-item"><img width="100%" height="100%" decoding="async" loading="lazy" src="{image}" alt="COD" /></li>',this.payments=salla.config.get("store.settings.payments")}))}render(){const s=!this.exclude.includes("made-in-ksa")&&salla.config.get("store.settings.made_in_ksa"),a=this.exclude.includes("sbc")?null:salla.config.get("store.settings.certificate.id");return t(i,{key:"d93c9cfafd67203e3d85f78296b6256dbdfd8d78",class:"s-payments-list-wrap"},t("ul",{key:"9520b4979082d6e733edb3ec5d6defe97beec6de",class:"s-payments-list"},s&&t("li",{key:"93ba9c342f5809d6b75ab00f99126a351c18ccc5",class:"s-payments-list-item"},t("img",{key:"8e62415523f4a1ccf839d394d5089ee49e0873c4",width:"100%",height:"100%",decoding:"async",loading:"lazy",src:salla.url.cdn("images/made-in-ksa.svg",58,58),alt:"made in KSA certified"})),this.payments.map((s=>t("div","cod"==s?{id:"cod-slot",innerHTML:this.codSlot.replace(/\{image\}/g,salla.url.cdn("images/payment/cod_mini.png",58,58))}:{id:"payment-slot",innerHTML:this.paymentSlot.replace(/\{image\}/g,salla.url.cdn(`images/payment/${s}_mini.png`,58,58)).replace(/\{payment\}/g,s)}))),a&&t("div",{key:"0acb0d8a0f4c4c53c9e439127418081684cd2bd1",id:"sbc-slot",innerHTML:this.sbcSlot.replace(/\{image\}/g,salla.url.cdn("images/sbc.png",58,58)).replace(/\{link\}/g,`https://eauthenticate.saudibusiness.gov.sa/certificate-details/${a}`)})))}componentDidRender(){this.host.querySelectorAll("#payment-slot").forEach((s=>s.replaceWith(s.firstChild))),this.host.querySelectorAll("#sbc-slot").forEach((s=>s.replaceWith(s.firstChild))),this.host.querySelectorAll("#cod-slot").forEach((s=>s.replaceWith(s.firstChild))),this.host.querySelector('[slot="payment"]')?.remove(),this.host.querySelector('[slot="sbc"]')?.remove(),this.host.querySelector('[slot="cod"]')?.remove()}get host(){return a(this)}};e.style=":host{display:block}";export{e as salla_payments}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as s,h as t,H as e}from"./p-D7Bzwdti.js";const a=class{constructor(t){s(this,t),this.type="normal",this.width="100%",this.height="100%"}render(){return t(e,{key:"ad465a77b10e2f1d739c802643076f63985cfda5",class:"s-skeleton-wrapper",style:{width:this.width,height:this.height}},t("div",{key:"0b05bcfc21d3bcb85389a2a0c9b63c3a7aa28d60",class:{"s-skeleton-item":!0,"s-skeleton-item-circular":"circle"==this.type}}," "))}};a.style=":host{display:block}";export{a as salla_skeleton}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as i,h as c}from"./p-D7Bzwdti.js";const e=class{constructor(c){i(this,c)}render(){return c("a",{key:"3eebe833efbc8110fe1c4cdd8f2f19cb9af5c0a4",href:this.notification.url,class:{"s-notifications-item":!0,"s-notifications-item-shadow":!0,"s-notifications-item-read":!this.notification.is_new}},c("span",{key:"a7aa7033c2ec4d5dee948ffb417ca8ca02b4f73f",class:"s-notifications-item-icon"},c("i",{key:"c7fbc7610abb1d98b30789daa11663cb354ba407",class:{"s-notifications-item-icon sicon-bell-ring":!0,"s-notifications-item-icon-new":this.notification.is_new}})),c("div",{key:"61abbf927872b32b7036c7c2dfc71814c6348ecc",class:"s-notifications-item-content"},c("div",{key:"01412cc63786c56cfaa342de3dfc381649e8db22",class:"s-notifications-item-content-leading"},c("h4",{key:"9b32ebdf75c612df75feead00340bba8ff4b520a"},this.notification.title),c("p",{key:"d04f93b82e384845cd62c931bc48a0093541746d"},this.notification.sub_title)),c("span",{key:"20ff569fdf0e473add87a30c96f5af018949508b",class:"s-notifications-item-content-trailing"},c("i",{key:"1b24f570a592d7bc840b9ad447a8414bd1bccce9",class:"sicon-time s-notifications-item-content-trailing-icon"}),c("span",{key:"379990c2b53929d6c14ee2ef4049e35de255fe27"},this.notification.date))))}};e.style="";export{e as salla_notification_item}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as a,h as s,H as t,a as o}from"./p-D7Bzwdti.js";const n=class{constructor(s){a(this,s)}async mount(a){this.host.before(a)}render(){return s(t,{key:"189812f50392c4713c5d178b7ca17934b6407eac"})}async componentDidLoad(){await Salla.hooks.registerComponent("salla-hook",this)}get host(){return o(this)}};n.style=":host {\n all: unset;\n display: none; /* marker only */\n }";export{n as salla_hook}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as a,h as i,H as s}from"./p-D7Bzwdti.js";const e=class{constructor(i){t(this,i),this.prizeItemSelected=a(this,"prizeItemSelected")}onPrizeItemClick(){this.prizeItemSelected.emit(this.item)}render(){return i(s,{key:"6aad4c3c2052fc29cb04aafc307831ae92c9caf7"},i("div",{key:"aec0459249272685c12b451dce725857d514dcc9",onClick:this.onPrizeItemClick.bind(this)},i("img",{key:"0bd6790bdb8f8e0c2f630801b370564d2b2f0ee4",class:"s-loyalty-prize-item-image",src:this.item.image,alt:this.item.name}),i("div",{key:"5f96c2b7b091b943044f1765d205dd4315227b56",class:"s-loyalty-prize-item-title"},this.item.name),i("div",{key:"d1124db21faf13b3275064b63f54f4119ff62f54",class:"s-loyalty-prize-item-subtitle"},this.item.description),i("div",{key:"fb6ca5f5d7994721c3ab36729a1cf07b494ac91a",class:"s-loyalty-prize-item-points"},this.item.cost_points," ",salla.lang.get("pages.loyalty_program.point"))))}};e.style="salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";export{e as salla_loyalty_prize_item}
|