@salla.sa/twilight-components 2.11.86 → 2.11.88
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/_commonjsHelpers-f57e29ee.js +2 -0
- package/dist/cjs/_commonjsHelpers-f57e29ee.js.map +1 -0
- package/dist/cjs/app-globals-bf20263f.js +2 -0
- package/dist/cjs/app-globals-bf20263f.js.map +1 -0
- package/dist/cjs/camera-058ddeeb.js +2 -0
- package/dist/cjs/camera-058ddeeb.js.map +1 -0
- package/dist/cjs/cart-3ecaa815.js +2 -0
- package/dist/cjs/cart-3ecaa815.js.map +1 -0
- package/dist/cjs/css-shim-c9fa4209.js +2 -0
- package/dist/cjs/css-shim-c9fa4209.js.map +1 -0
- package/dist/cjs/dom-92c2a073.js +2 -0
- package/dist/cjs/dom-92c2a073.js.map +1 -0
- package/dist/cjs/index-1d2b3370.js +2 -0
- package/dist/cjs/index-1d2b3370.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/salla-add-product-button.cjs.entry.js +2 -0
- package/dist/cjs/salla-add-product-button.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-button_37.cjs.entry.js +3 -1
- package/dist/cjs/salla-button_37.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-comment-form.cjs.entry.js +2 -0
- package/dist/cjs/salla-comment-form.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-conditional-fields.cjs.entry.js +2 -0
- package/dist/cjs/salla-conditional-fields.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-installment.cjs.entry.js +2 -0
- package/dist/cjs/salla-installment.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-product-options.cjs.entry.js +2 -0
- package/dist/cjs/salla-product-options.cjs.entry.js.map +1 -0
- package/dist/cjs/salla-select.cjs.entry.js +2 -0
- package/dist/cjs/salla-select.cjs.entry.js.map +1 -0
- package/dist/cjs/twilight.cjs.js +2 -0
- package/dist/cjs/twilight.cjs.js.map +1 -0
- package/dist/collection/Helpers/Helper.js +1 -0
- package/dist/collection/Helpers/Helper.js.map +1 -0
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +1 -0
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.js.map +1 -0
- package/dist/collection/components/salla-button/salla-button.js +1 -0
- package/dist/collection/components/salla-button/salla-button.js.map +1 -0
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -0
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js.map +1 -0
- package/dist/collection/components/salla-color-picker/interfaces.js +1 -0
- package/dist/collection/components/salla-color-picker/interfaces.js.map +1 -0
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -0
- package/dist/collection/components/salla-color-picker/salla-color-picker.js.map +1 -0
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -0
- package/dist/collection/components/salla-comment-form/salla-comment-form.js.map +1 -0
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -0
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js.map +1 -0
- package/dist/collection/components/salla-count-down/salla-count-down.js +1 -0
- package/dist/collection/components/salla-count-down/salla-count-down.js.map +1 -0
- package/dist/collection/components/salla-datetime-picker/interfaces.js +1 -0
- package/dist/collection/components/salla-datetime-picker/interfaces.js.map +1 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js.map +1 -0
- package/dist/collection/components/salla-file-upload/interfaces.js +1 -0
- package/dist/collection/components/salla-file-upload/interfaces.js.map +1 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +1 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.js.map +1 -0
- package/dist/collection/components/salla-gifting/gift-schema.js +1 -0
- package/dist/collection/components/salla-gifting/gift-schema.js.map +1 -0
- package/dist/collection/components/salla-gifting/intefaces.js +1 -0
- package/dist/collection/components/salla-gifting/intefaces.js.map +1 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +1 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js.map +1 -0
- package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.js +1 -0
- package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.js.map +1 -0
- package/dist/collection/components/salla-installment/salla-installment.js +1 -0
- package/dist/collection/components/salla-installment/salla-installment.js.map +1 -0
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -0
- package/dist/collection/components/salla-list-tile/salla-list-tile.js.map +1 -0
- package/dist/collection/components/salla-loading/salla-loading.js +1 -0
- package/dist/collection/components/salla-loading/salla-loading.js.map +1 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js.map +1 -0
- package/dist/collection/components/salla-login-modal/intefaces.js +1 -0
- package/dist/collection/components/salla-login-modal/intefaces.js.map +1 -0
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +1 -0
- package/dist/collection/components/salla-login-modal/salla-login-modal.js.map +1 -0
- package/dist/collection/components/salla-loyalty/loyalty-schema.js +1 -0
- package/dist/collection/components/salla-loyalty/loyalty-schema.js.map +1 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js.map +1 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty.js +1 -0
- package/dist/collection/components/salla-loyalty/salla-loyalty.js.map +1 -0
- package/dist/collection/components/salla-map/map-styles.js +1 -0
- package/dist/collection/components/salla-map/map-styles.js.map +1 -0
- package/dist/collection/components/salla-map/salla-map.js +1 -0
- package/dist/collection/components/salla-map/salla-map.js.map +1 -0
- package/dist/collection/components/salla-modal/salla-modal.js +1 -0
- package/dist/collection/components/salla-modal/salla-modal.js.map +1 -0
- package/dist/collection/components/salla-offer-modal/offer-schema.js +1 -0
- package/dist/collection/components/salla-offer-modal/offer-schema.js.map +1 -0
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -0
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js.map +1 -0
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -0
- package/dist/collection/components/salla-placeholder/salla-placeholder.js.map +1 -0
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -0
- package/dist/collection/components/salla-product-availability/salla-product-availability.js.map +1 -0
- package/dist/collection/components/salla-product-options/interfaces.js +1 -0
- package/dist/collection/components/salla-product-options/interfaces.js.map +1 -0
- package/dist/collection/components/salla-product-options/salla-product-options.js +1 -0
- package/dist/collection/components/salla-product-options/salla-product-options.js.map +1 -0
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +1 -0
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js.map +1 -0
- package/dist/collection/components/salla-progress-bar/salla-progress-bar.js +1 -0
- package/dist/collection/components/salla-progress-bar/salla-progress-bar.js.map +1 -0
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -0
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js.map +1 -0
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +2 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js.map +1 -0
- package/dist/collection/components/salla-quick-order/salla-quick-order.js +1 -0
- package/dist/collection/components/salla-quick-order/salla-quick-order.js.map +1 -0
- package/dist/collection/components/salla-rating-modal/order-feedback-response.js +1 -0
- package/dist/collection/components/salla-rating-modal/order-feedback-response.js.map +1 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +1 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js.map +1 -0
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +1 -0
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.js.map +1 -0
- package/dist/collection/components/salla-scopes/interfaces.js +1 -0
- package/dist/collection/components/salla-scopes/interfaces.js.map +1 -0
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -0
- package/dist/collection/components/salla-scopes/salla-scopes.js.map +1 -0
- package/dist/collection/components/salla-search/salla-search.js +1 -0
- package/dist/collection/components/salla-search/salla-search.js.map +1 -0
- package/dist/collection/components/salla-search/search-response.js +1 -0
- package/dist/collection/components/salla-search/search-response.js.map +1 -0
- package/dist/collection/components/salla-select/salla-select.js +1 -0
- package/dist/collection/components/salla-select/salla-select.js.map +1 -0
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -0
- package/dist/collection/components/salla-skeleton/salla-skeleton.js.map +1 -0
- package/dist/collection/components/salla-slider/salla-slider.js +1 -0
- package/dist/collection/components/salla-slider/salla-slider.js.map +1 -0
- package/dist/collection/components/salla-social-share/interfaces.js +1 -0
- package/dist/collection/components/salla-social-share/interfaces.js.map +1 -0
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -0
- package/dist/collection/components/salla-social-share/salla-social-share.js.map +1 -0
- package/dist/collection/components/salla-tabs/interfaces.js +1 -0
- package/dist/collection/components/salla-tabs/interfaces.js.map +1 -0
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -0
- package/dist/collection/components/salla-tabs/salla-tab-content.js.map +1 -0
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -0
- package/dist/collection/components/salla-tabs/salla-tab-header.js.map +1 -0
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -0
- package/dist/collection/components/salla-tabs/salla-tabs.js.map +1 -0
- package/dist/collection/components/salla-tabs/utils.js +1 -0
- package/dist/collection/components/salla-tabs/utils.js.map +1 -0
- package/dist/collection/components/salla-tel-input/interfaces.js +1 -0
- package/dist/collection/components/salla-tel-input/interfaces.js.map +1 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -0
- package/dist/collection/components/salla-tel-input/salla-tel-input.js.map +1 -0
- package/dist/collection/components/salla-user-menu/interfaces.js +1 -0
- package/dist/collection/components/salla-user-menu/interfaces.js.map +1 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +1 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.js.map +1 -0
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -0
- package/dist/collection/components/salla-user-settings/salla-user-settings.js.map +1 -0
- package/dist/collection/components/salla-verify/salla-verify.js +1 -0
- package/dist/collection/components/salla-verify/salla-verify.js.map +1 -0
- package/dist/collection/global/app-dev.js +1 -0
- package/dist/collection/global/app-dev.js.map +1 -0
- package/dist/collection/global/app.js +1 -0
- package/dist/collection/global/app.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/interfaces/colors.js +1 -0
- package/dist/collection/interfaces/colors.js.map +1 -0
- package/dist/collection/interfaces/index.js +1 -0
- package/dist/collection/interfaces/index.js.map +1 -0
- package/dist/collection/interfaces/ratio.js +1 -0
- package/dist/collection/interfaces/ratio.js.map +1 -0
- package/dist/components/Helper.js +2 -0
- package/dist/components/Helper.js.map +1 -0
- package/dist/components/_commonjsHelpers.js +2 -0
- package/dist/components/_commonjsHelpers.js.map +1 -0
- package/dist/components/anime.es.js +2 -0
- package/dist/components/anime.es.js.map +1 -0
- package/dist/components/bell-ring.js +2 -0
- package/dist/components/bell-ring.js.map +1 -0
- package/dist/components/camera.js +2 -0
- package/dist/components/camera.js.map +1 -0
- package/dist/components/cancel.js +2 -0
- package/dist/components/cancel.js.map +1 -0
- package/dist/components/cart.js +2 -0
- package/dist/components/cart.js.map +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/keyboard_arrow_down.js +2 -0
- package/dist/components/keyboard_arrow_down.js.map +1 -0
- package/dist/components/keyboard_arrow_right.js +2 -0
- package/dist/components/keyboard_arrow_right.js.map +1 -0
- package/dist/components/mail.js +2 -0
- package/dist/components/mail.js.map +1 -0
- package/dist/components/salla-add-product-button.js +2 -0
- package/dist/components/salla-add-product-button.js.map +1 -0
- package/dist/components/salla-button.js +2 -0
- package/dist/components/salla-button.js.map +1 -0
- package/dist/components/salla-button2.js +2 -0
- package/dist/components/salla-button2.js.map +1 -0
- package/dist/components/salla-cart-summary.js +2 -0
- package/dist/components/salla-cart-summary.js.map +1 -0
- package/dist/components/salla-color-picker.js +2 -0
- package/dist/components/salla-color-picker.js.map +1 -0
- package/dist/components/salla-color-picker2.js +2 -0
- package/dist/components/salla-color-picker2.js.map +1 -0
- package/dist/components/salla-comment-form.js +2 -0
- package/dist/components/salla-comment-form.js.map +1 -0
- package/dist/components/salla-conditional-fields.js +2 -0
- package/dist/components/salla-conditional-fields.js.map +1 -0
- package/dist/components/salla-conditional-fields2.js +2 -0
- package/dist/components/salla-conditional-fields2.js.map +1 -0
- package/dist/components/salla-count-down.js +2 -0
- package/dist/components/salla-count-down.js.map +1 -0
- package/dist/components/salla-datetime-picker.js +2 -0
- package/dist/components/salla-datetime-picker.js.map +1 -0
- package/dist/components/salla-datetime-picker2.js +2 -0
- package/dist/components/salla-datetime-picker2.js.map +1 -0
- package/dist/components/salla-file-upload.js +2 -0
- package/dist/components/salla-file-upload.js.map +1 -0
- package/dist/components/salla-file-upload2.js +2 -0
- package/dist/components/salla-file-upload2.js.map +1 -0
- package/dist/components/salla-gifting.js +2 -0
- package/dist/components/salla-gifting.js.map +1 -0
- package/dist/components/salla-infinite-scroll.js +2 -0
- package/dist/components/salla-infinite-scroll.js.map +1 -0
- package/dist/components/salla-installment.js +2 -0
- package/dist/components/salla-installment.js.map +1 -0
- package/dist/components/salla-list-tile.js +2 -0
- package/dist/components/salla-list-tile.js.map +1 -0
- package/dist/components/salla-list-tile2.js +2 -0
- package/dist/components/salla-list-tile2.js.map +1 -0
- package/dist/components/salla-loading.js +2 -0
- package/dist/components/salla-loading.js.map +1 -0
- package/dist/components/salla-loading2.js +2 -0
- package/dist/components/salla-loading2.js.map +1 -0
- package/dist/components/salla-localization-modal.js +2 -0
- package/dist/components/salla-localization-modal.js.map +1 -0
- package/dist/components/salla-login-modal.js +2 -0
- package/dist/components/salla-login-modal.js.map +1 -0
- package/dist/components/salla-loyalty-prize-item.js +2 -0
- package/dist/components/salla-loyalty-prize-item.js.map +1 -0
- package/dist/components/salla-loyalty.js +2 -0
- package/dist/components/salla-loyalty.js.map +1 -0
- package/dist/components/salla-map.js +2 -0
- package/dist/components/salla-map.js.map +1 -0
- package/dist/components/salla-map2.js +2 -0
- package/dist/components/salla-map2.js.map +1 -0
- package/dist/components/salla-modal.js +2 -0
- package/dist/components/salla-modal.js.map +1 -0
- package/dist/components/salla-modal2.js +2 -0
- package/dist/components/salla-modal2.js.map +1 -0
- package/dist/components/salla-offer-modal.js +2 -0
- package/dist/components/salla-offer-modal.js.map +1 -0
- package/dist/components/salla-placeholder.js +2 -0
- package/dist/components/salla-placeholder.js.map +1 -0
- package/dist/components/salla-placeholder2.js +2 -0
- package/dist/components/salla-placeholder2.js.map +1 -0
- package/dist/components/salla-product-availability.js +2 -0
- package/dist/components/salla-product-availability.js.map +1 -0
- package/dist/components/salla-product-availability2.js +2 -0
- package/dist/components/salla-product-availability2.js.map +1 -0
- package/dist/components/salla-product-options.js +2 -0
- package/dist/components/salla-product-options.js.map +1 -0
- package/dist/components/salla-product-size-guide.js +2 -0
- package/dist/components/salla-product-size-guide.js.map +1 -0
- package/dist/components/salla-progress-bar.js +2 -0
- package/dist/components/salla-progress-bar.js.map +1 -0
- package/dist/components/salla-progress-bar2.js +2 -0
- package/dist/components/salla-progress-bar2.js.map +1 -0
- package/dist/components/salla-quantity-input.js +2 -0
- package/dist/components/salla-quantity-input.js.map +1 -0
- package/dist/components/salla-quick-buy.js +2 -0
- package/dist/components/salla-quick-buy.js.map +1 -0
- package/dist/components/salla-quick-buy2.js +3 -1
- package/dist/components/salla-quick-buy2.js.map +1 -0
- package/dist/components/salla-quick-order.js +2 -0
- package/dist/components/salla-quick-order.js.map +1 -0
- package/dist/components/salla-rating-modal.js +2 -0
- package/dist/components/salla-rating-modal.js.map +1 -0
- package/dist/components/salla-rating-stars.js +2 -0
- package/dist/components/salla-rating-stars.js.map +1 -0
- package/dist/components/salla-rating-stars2.js +2 -0
- package/dist/components/salla-rating-stars2.js.map +1 -0
- package/dist/components/salla-scopes.js +2 -0
- package/dist/components/salla-scopes.js.map +1 -0
- package/dist/components/salla-search.js +2 -0
- package/dist/components/salla-search.js.map +1 -0
- package/dist/components/salla-select.js +2 -0
- package/dist/components/salla-select.js.map +1 -0
- package/dist/components/salla-skeleton.js +2 -0
- package/dist/components/salla-skeleton.js.map +1 -0
- package/dist/components/salla-skeleton2.js +2 -0
- package/dist/components/salla-skeleton2.js.map +1 -0
- package/dist/components/salla-slider.js +2 -0
- package/dist/components/salla-slider.js.map +1 -0
- package/dist/components/salla-slider2.js +2 -0
- package/dist/components/salla-slider2.js.map +1 -0
- package/dist/components/salla-social-share.js +2 -0
- package/dist/components/salla-social-share.js.map +1 -0
- package/dist/components/salla-tab-content.js +2 -0
- package/dist/components/salla-tab-content.js.map +1 -0
- package/dist/components/salla-tab-content2.js +2 -0
- package/dist/components/salla-tab-content2.js.map +1 -0
- package/dist/components/salla-tab-header.js +2 -0
- package/dist/components/salla-tab-header.js.map +1 -0
- package/dist/components/salla-tab-header2.js +2 -0
- package/dist/components/salla-tab-header2.js.map +1 -0
- package/dist/components/salla-tabs.js +2 -0
- package/dist/components/salla-tabs.js.map +1 -0
- package/dist/components/salla-tabs2.js +2 -0
- package/dist/components/salla-tabs2.js.map +1 -0
- package/dist/components/salla-tel-input.js +2 -0
- package/dist/components/salla-tel-input.js.map +1 -0
- package/dist/components/salla-tel-input2.js +2 -0
- package/dist/components/salla-tel-input2.js.map +1 -0
- package/dist/components/salla-user-menu.js +2 -0
- package/dist/components/salla-user-menu.js.map +1 -0
- package/dist/components/salla-user-settings.js +2 -0
- package/dist/components/salla-user-settings.js.map +1 -0
- package/dist/components/salla-verify.js +2 -0
- package/dist/components/salla-verify.js.map +1 -0
- package/dist/components/salla-verify2.js +2 -0
- package/dist/components/salla-verify2.js.map +1 -0
- package/dist/components/search.js +2 -0
- package/dist/components/search.js.map +1 -0
- package/dist/components/star.js +2 -0
- package/dist/components/star.js.map +1 -0
- package/dist/components/star2.js +2 -0
- package/dist/components/star2.js.map +1 -0
- package/dist/esm/_commonjsHelpers-a7c4abac.js +2 -0
- package/dist/esm/_commonjsHelpers-a7c4abac.js.map +1 -0
- package/dist/esm/app-globals-30874674.js +2 -0
- package/dist/esm/app-globals-30874674.js.map +1 -0
- package/dist/esm/camera-647ab50f.js +2 -0
- package/dist/esm/camera-647ab50f.js.map +1 -0
- package/dist/esm/cart-8c60b447.js +2 -0
- package/dist/esm/cart-8c60b447.js.map +1 -0
- package/dist/esm/css-shim-0e7604db.js +2 -0
- package/dist/esm/css-shim-0e7604db.js.map +1 -0
- package/dist/esm/dom-a1a72c67.js +2 -0
- package/dist/esm/dom-a1a72c67.js.map +1 -0
- package/dist/esm/index-f1d446ac.js +2 -0
- package/dist/esm/index-f1d446ac.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +2 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/salla-add-product-button.entry.js +2 -0
- package/dist/esm/salla-add-product-button.entry.js.map +1 -0
- package/dist/esm/salla-button_37.entry.js +3 -1
- package/dist/esm/salla-button_37.entry.js.map +1 -0
- package/dist/esm/salla-comment-form.entry.js +2 -0
- package/dist/esm/salla-comment-form.entry.js.map +1 -0
- package/dist/esm/salla-conditional-fields.entry.js +2 -0
- package/dist/esm/salla-conditional-fields.entry.js.map +1 -0
- package/dist/esm/salla-installment.entry.js +2 -0
- package/dist/esm/salla-installment.entry.js.map +1 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +2 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js.map +1 -0
- package/dist/esm/salla-product-options.entry.js +2 -0
- package/dist/esm/salla-product-options.entry.js.map +1 -0
- package/dist/esm/salla-select.entry.js +2 -0
- package/dist/esm/salla-select.entry.js.map +1 -0
- package/dist/esm/twilight.js +2 -0
- package/dist/esm/twilight.js.map +1 -0
- package/dist/esm-es5/_commonjsHelpers-a7c4abac.js +2 -1
- package/dist/esm-es5/_commonjsHelpers-a7c4abac.js.map +1 -0
- package/dist/esm-es5/app-globals-30874674.js +2 -1
- package/dist/esm-es5/app-globals-30874674.js.map +1 -0
- package/dist/esm-es5/camera-647ab50f.js +2 -1
- package/dist/esm-es5/camera-647ab50f.js.map +1 -0
- package/dist/esm-es5/cart-8c60b447.js +2 -1
- package/dist/esm-es5/cart-8c60b447.js.map +1 -0
- package/dist/esm-es5/css-shim-0e7604db.js +2 -1
- package/dist/esm-es5/css-shim-0e7604db.js.map +1 -0
- package/dist/esm-es5/dom-a1a72c67.js +2 -1
- package/dist/esm-es5/dom-a1a72c67.js.map +1 -0
- package/dist/esm-es5/index-f1d446ac.js +2 -1
- package/dist/esm-es5/index-f1d446ac.js.map +1 -0
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/index.js.map +1 -0
- package/dist/esm-es5/loader.js +2 -1
- package/dist/esm-es5/loader.js.map +1 -0
- package/dist/esm-es5/salla-add-product-button.entry.js +2 -1
- package/dist/esm-es5/salla-add-product-button.entry.js.map +1 -0
- package/dist/esm-es5/salla-button_37.entry.js +2 -1
- package/dist/esm-es5/salla-button_37.entry.js.map +1 -0
- package/dist/esm-es5/salla-comment-form.entry.js +2 -1
- package/dist/esm-es5/salla-comment-form.entry.js.map +1 -0
- package/dist/esm-es5/salla-conditional-fields.entry.js +2 -1
- package/dist/esm-es5/salla-conditional-fields.entry.js.map +1 -0
- package/dist/esm-es5/salla-installment.entry.js +2 -1
- package/dist/esm-es5/salla-installment.entry.js.map +1 -0
- package/dist/esm-es5/salla-loyalty-prize-item.entry.js +2 -1
- package/dist/esm-es5/salla-loyalty-prize-item.entry.js.map +1 -0
- package/dist/esm-es5/salla-product-options.entry.js +2 -1
- package/dist/esm-es5/salla-product-options.entry.js.map +1 -0
- package/dist/esm-es5/salla-select.entry.js +2 -1
- package/dist/esm-es5/salla-select.entry.js.map +1 -0
- package/dist/esm-es5/twilight.js +2 -1
- package/dist/esm-es5/twilight.js.map +1 -0
- package/dist/twilight/index.esm.js +2 -0
- package/dist/twilight/index.esm.js.map +1 -0
- package/dist/twilight/p-195385b2.system.entry.js +2 -1
- package/dist/twilight/p-195385b2.system.entry.js.map +1 -0
- package/dist/twilight/p-1b53ebda.system.entry.js +2 -1
- package/dist/twilight/p-1b53ebda.system.entry.js.map +1 -0
- package/dist/twilight/p-217e1d1c.system.entry.js +2 -1
- package/dist/twilight/p-217e1d1c.system.entry.js.map +1 -0
- package/dist/twilight/p-244303eb.system.entry.js +2 -1
- package/dist/twilight/p-244303eb.system.entry.js.map +1 -0
- package/dist/twilight/p-263fa3eb.entry.js +5 -0
- package/dist/twilight/p-263fa3eb.entry.js.map +1 -0
- package/dist/twilight/p-3d828bb4.js +2 -1
- package/dist/twilight/p-3d828bb4.js.map +1 -0
- package/dist/twilight/{p-0d221d45.system.entry.js → p-47d4791b.system.entry.js} +2 -1
- package/dist/twilight/p-47d4791b.system.entry.js.map +1 -0
- package/dist/twilight/p-4bf1c1a4.system.js +2 -1
- package/dist/twilight/p-4bf1c1a4.system.js.map +1 -0
- package/dist/twilight/p-4db4fcd9.entry.js +5 -0
- package/dist/twilight/p-4db4fcd9.entry.js.map +1 -0
- package/dist/twilight/p-56830c52.system.entry.js +2 -1
- package/dist/twilight/p-56830c52.system.entry.js.map +1 -0
- package/dist/twilight/p-5db948f2.js +12 -9
- package/dist/twilight/p-5db948f2.js.map +1 -0
- package/dist/twilight/p-6c70f3bc.entry.js +5 -0
- package/dist/twilight/p-6c70f3bc.entry.js.map +1 -0
- package/dist/twilight/p-71b1ddca.js +10 -3
- package/dist/twilight/p-71b1ddca.js.map +1 -0
- package/dist/twilight/p-776c1d2a.system.entry.js +2 -1
- package/dist/twilight/p-776c1d2a.system.entry.js.map +1 -0
- package/dist/twilight/p-7dc66c07.js +3 -2
- package/dist/twilight/p-7dc66c07.js.map +1 -0
- package/dist/twilight/p-7f520307.system.js +2 -1
- package/dist/twilight/p-7f520307.system.js.map +1 -0
- package/dist/twilight/p-854e2c89.system.js +2 -1
- package/dist/twilight/p-854e2c89.system.js.map +1 -0
- package/dist/twilight/p-89f1c6be.system.js +2 -1
- package/dist/twilight/p-89f1c6be.system.js.map +1 -0
- package/dist/twilight/p-8a13cf01.js +2 -1
- package/dist/twilight/p-8a13cf01.js.map +1 -0
- package/dist/twilight/p-916b409e.entry.js +5 -0
- package/dist/twilight/p-916b409e.entry.js.map +1 -0
- package/dist/twilight/p-99ed8fff.system.js +2 -1
- package/dist/twilight/p-99ed8fff.system.js.map +1 -0
- package/dist/twilight/p-a2885c84.entry.js +54 -0
- package/dist/twilight/p-a2885c84.entry.js.map +1 -0
- package/dist/twilight/p-ad42e3b6.system.js +2 -1
- package/dist/twilight/p-ad42e3b6.system.js.map +1 -0
- package/dist/twilight/p-b540cfc6.system.entry.js +2 -1
- package/dist/twilight/p-b540cfc6.system.entry.js.map +1 -0
- package/dist/twilight/p-b7610000.system.js +2 -1
- package/dist/twilight/p-b7610000.system.js.map +1 -0
- package/dist/twilight/p-bf0e322d.entry.js +5 -0
- package/dist/twilight/p-bf0e322d.entry.js.map +1 -0
- package/dist/twilight/p-c328c14e.system.js +2 -1
- package/dist/twilight/p-c328c14e.system.js.map +1 -0
- package/dist/twilight/p-ccd78636.js +2 -1
- package/dist/twilight/p-ccd78636.js.map +1 -0
- package/dist/twilight/p-ce54db8d.js +2 -1
- package/dist/twilight/p-ce54db8d.js.map +1 -0
- package/dist/twilight/p-d9130020.system.js +2 -1
- package/dist/twilight/p-d9130020.system.js.map +1 -0
- package/dist/twilight/p-ea05267e.entry.js +5 -0
- package/dist/twilight/p-ea05267e.entry.js.map +1 -0
- package/dist/twilight/p-fc4186fb.entry.js +5 -0
- package/dist/twilight/p-fc4186fb.entry.js.map +1 -0
- package/dist/twilight/twilight.esm.js +2 -1
- package/dist/twilight/twilight.esm.js.map +1 -0
- package/package.json +2 -2
- package/dist/twilight/p-03695034.entry.js +0 -4
- package/dist/twilight/p-55eb5ff5.entry.js +0 -4
- package/dist/twilight/p-643ea74e.entry.js +0 -4
- package/dist/twilight/p-7707edf6.entry.js +0 -4
- package/dist/twilight/p-7d966812.entry.js +0 -4
- package/dist/twilight/p-a7bd281c.entry.js +0 -4
- package/dist/twilight/p-df0e0ea8.entry.js +0 -36
- package/dist/twilight/p-f0de0ca1.entry.js +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-gifting.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,qmBAAqmB;;MCahnBA,cAAY;EACvB;;;IAyCS,2BAAsB,GAAW,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;IAiB7F,gBAAW,GAAW,CAAC,CAAC;IACxB,iBAAY,GAAY,KAAK,CAAC;IAC9B,iBAAY,GAAY,KAAK,CAAC;IAC9B,gBAAW,GAAW,EAAE,CAAC;IACzB,gBAAW,GAAW,mBAAmB,CAAC;IAC1C,WAAM,GAAW,EAAE,CAAC;IAEpB,SAAI,GAAiB,SAAS,CAAC;IAC/B,2BAAsB,GAAW,SAAS,CAAC;IAE3C,iBAAY,GAAY,KAAK,CAAC;;IAG9B,kBAAa,GAAW,SAAS,CAAC;IAClC,kBAAa,GAAW,SAAS,CAAC;IAClC,iBAAY,GAAW,SAAS,CAAC;IAGjC,aAAQ,GAAY,KAAK,CAAC;IAG1B,aAAQ,GAAY,IAAI,CAAC;IA9EhC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;MAClB,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,2CAA2C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SallaGifting"],"sources":["./src/components/salla-gifting/salla-gifting.scss?tag=salla-gifting","./src/components/salla-gifting/salla-gifting.tsx"],"sourcesContent":[".s-gifting-steps-wrapper {\n transition: .2s cubic-bezier(.55, 0, .1, 1) 0s;\n}\n\n.s-gifting-select{\n background-image: url(\"data:image/svg+xml;utf8,<svg version='1.1' fill='gray' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><title>keyboard_arrow_down</title><path d='M9.875 11.104l6.125 6.125 6.125-6.125 1.875 1.875-8 8-8-8z'></path></svg>\");\n background-size: 24px;\n background-repeat: no-repeat;\n background-position: 99%;\n appearance: none;\n}\n// dir rtl\n[dir=rtl] .s-gifting-select{\n background-position: 5px;\n}","import anime from 'animejs';\nimport {GiftResponse, GiftImage, GiftText} from './gift-schema'\nimport {Component, h, Prop, State, Method} from '@stencil/core';\nimport Images from '../../assets/svg/images.svg';\nimport LeftArrow from '../../assets/svg/arrow-left.svg';\nimport Cancel from '../../assets/svg/cancel.svg';\nimport GiftSharing from '../../assets/svg/gift-sharing.svg';\nimport {GiftToCardDTO, Phone} from './intefaces';\n\n@Component({\n tag: 'salla-gifting',\n styleUrl: 'salla-gifting.scss',\n})\nexport class SallaGifting {\n constructor() {\n salla.lang.onLoaded(() => {\n this.selectImageOrUpload = salla.lang.get('blocks.buy_as_gift.select_image_or_upload');\n this.selectImageForYourGift = salla.lang.get('blocks.buy_as_gift.select_image_for_your_gift');\n this.sectionTitle = salla.lang.get('blocks.buy_as_gift.gift_the_one_you_love');\n this.sectionSubtitle = salla.lang.get('blocks.buy_as_gift.gift_the_one_you_love_message')\n this.sectionBtnText = salla.lang.get('blocks.buy_as_gift.send_as_a_gift');\n this.giftDetails = salla.lang.get('blocks.buy_as_gift.gift_details');\n this.selectGiftMessage = salla.lang.get('blocks.buy_as_gift.select_gift_message');\n this.giftCustomText = salla.lang.get('blocks.buy_as_gift.gift_custom_text');\n this.textId = salla.lang.get('blocks.buy_as_gift.text_id');\n this.incorrectGiftText = salla.lang.get('blocks.buy_as_gift.incorrect_gift_text');\n this.nextStep = salla.lang.get('blocks.buy_as_gift.next_step');\n this.senderNameLabel = salla.lang.get('blocks.buy_as_gift.sender_name');\n this.receiverNameFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_name');\n this.receiverMobileFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_mobile');\n this.receiverEmailFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_email');\n this.emailPlaceholder = salla.lang.get('common.elements.email_placeholder');\n this.sendLater = salla.lang.get('blocks.buy_as_gift.send_later');\n this.selectSendDateAndTime = salla.lang.get('blocks.buy_as_gift.select_send_date_and_time');\n this.canNotEditOrderAfterSelectDate = salla.lang.get('blocks.buy_as_gift.can_not_edit_order_after_select_date');\n this.sendGift = salla.lang.get('blocks.buy_as_gift.send_gift');\n this.donationRequired = salla.lang.get('pages.products.donation_amount_required');\n this.currentLang = salla.lang.locale\n });\n }\n\n private modal: HTMLSallaModalElement;\n private uploader?: HTMLDivElement;\n private stepsWrapper?: HTMLDivElement;\n private textSelect?: HTMLDivElement;\n private customTextArea?: HTMLDivElement;\n private textArea?: HTMLTextAreaElement;\n private calendarFormGroup?: HTMLDivElement;\n private step1Elems?: HTMLDivElement;\n private step2Elems?: HTMLDivElement;\n\n @State() sectionTitle: string;\n @State() sectionSubtitle: string;\n @State() sectionBtnText: string;\n @State() giftDetails: string;\n @State() selectImageForYourGift: string = salla.lang.get('blocks.buy_as_gift.select_image_or_upload');\n @State() selectImageOrUpload: string;\n @State() selectGiftMessage: string;\n @State() giftCustomText: string;\n @State() textId: string;\n @State() incorrectGiftText: string;\n @State() nextStep: string;\n @State() senderNameLabel: string;\n @State() receiverNameFieldLabel: string;\n @State() receiverMobileFieldLabel: string;\n @State() receiverEmailFieldLabel: string;\n @State() emailPlaceholder: string;\n @State() sendLater: string;\n @State() selectSendDateAndTime: string;\n @State() canNotEditOrderAfterSelectDate: string;\n @State() sendGift: string;\n @State() donationRequired: string;\n @State() currentStep: number = 1;\n @State() showCalendar: boolean = false;\n @State() showGiftText: boolean = false;\n @State() currentLang: string = '';\n @State() parentClass: string = \"is-current-step-1\";\n @State() errors: object = {};\n\n @State() gift: GiftResponse = undefined;\n @State() selectedGiftTextOption: string = undefined;\n\n @State() showTextArea: boolean = false;\n\n /// Gift Form Data\n @State() selectedImage: string = undefined;\n @State() uploadedImage: string = undefined;\n @State() selectedText: string = undefined;\n @State() senderName: string;\n @State() errorMessage: string;\n @State() hasError: boolean = false;\n @State() quantity: number;\n @State() deliveryDate: string;\n @State() timeZone?: string = null;\n // Receiver Data\n @State() receiverName: string;\n @State() receiverMobile: string;\n @State() receiverCountryCode: string;\n @State() receiverEmail: string;\n\n\n /**\n * The product id for which the gifting system is required.\n */\n @Prop() productId: number;\n\n /**\n * Widget subtitle\n */\n @Prop() widgetSubtitle: string;\n\n componentDidLoad() {\n salla.event.product.onPriceUpdated(() => {\n const quantityInput = document.querySelector('.s-quantity-input-input') as HTMLElement\n // @ts-ignore\n this.quantity = quantityInput.value\n });\n }\n\n /**\n * Show / Open the gifting modal window\n */\n @Method()\n async open() {\n if (salla.config.isGuest()) {\n salla.event.dispatch('login::open');\n return;\n }\n this.modal.open()\n return await salla.api.withoutNotifier(() => salla.product.getGiftDetails(this.productId))\n .then((response) => {\n this.gift = response.data;\n this.senderName = this.gift.sender_name;\n })\n .catch(e => {\n this.hasError = true;\n this.errorMessage = e.response?.data?.error?.message || e.response?.data;\n })\n .finally(() => this.modal.stopLoading());\n }\n\n /**\n *\n * Hide / close the gifting modal window\n */\n @Method()\n async close() {\n return this.modal.close();\n }\n\n\n /**\n * Update the modal height based on the changes on the inner elements height for a specific step OR just a pass a new fixed height\n */\n private async setWrapperHeight(asStep = 1, delay = 250, additionSpace = 0, newHeight = 0) {\n let currentStep: HTMLElement = document.querySelector(`.gift-step-${asStep}`) as HTMLElement;\n setTimeout(() => {\n let currentStepHeight: number = currentStep.offsetHeight;\n if (newHeight) {\n this.stepsWrapper.style.height = `${newHeight}px`;\n } else {\n this.stepsWrapper.style.height = currentStepHeight + additionSpace + 'px';\n }\n }, delay)\n }\n\n private toggleCalendar() {\n this.showCalendar = !this.showCalendar;\n this.setWrapperHeight(2, 150, 0);\n }\n\n private toggleGiftText(event) {\n this.textSelect?.classList.remove('s-form-has-error');\n let dataID = event.target.children[event.target.selectedIndex].getAttribute('data-id')\n let customID = dataID == \"custom\";\n this.showGiftText = customID;\n\n if (dataID) {\n this.selectedGiftTextOption = dataID\n customID ? this.selectedText = undefined : this.selectedText = event.target.value\n this.setWrapperHeight(1, 150, 5);\n } else {\n // empty textarea value\n this.textArea.value = '';\n this.selectedText = undefined\n this.selectedGiftTextOption = undefined\n this.setWrapperHeight(1, 150, -15);\n }\n\n }\n\n /**\n *\n * Go to the step 2\n */\n @Method()\n async goToStep2() {\n if (!this.selectedGiftTextOption) {\n this.textSelect.classList.add('s-form-has-error');\n this.customTextArea.classList.remove('s-form-has-error');\n return;\n } else if (this.selectedGiftTextOption == 'custom' && !this.selectedText) {\n this.textSelect.classList.remove('s-form-has-error');\n this.customTextArea.classList.add('s-form-has-error');\n return;\n } else {\n this.textSelect.classList.remove('s-form-has-error');\n this.customTextArea.classList.remove('s-form-has-error');\n }\n this.setWrapperHeight(2, 600, 0);\n\n let stepNextAnime = new anime.timeline();\n stepNextAnime.add({\n targets: this.step1Elems.querySelectorAll('.anime-item'),\n opacity: [1, 0],\n translateX: [0, 50],\n delay: anime.stagger(70),\n // easing: 'easeOutExpo',\n duration: 1200,\n })\n .add({\n targets: '.gift-step-2',\n translateX: ['-110%', 0],\n opacity: [0, 1],\n }, '-=1800')\n .add({\n targets: this.step2Elems.querySelectorAll('.anime-item'),\n opacity: [0, 1],\n translateX: [-50, 0],\n delay: anime.stagger(70),\n duration: 1200,\n complete: () => {\n this.step2Elems.querySelectorAll('.anime-item').forEach(item => {\n item.classList.remove('opacity-0')\n item.removeAttribute('style');\n })\n }\n }, '-=1200')\n this.currentStep = 2;\n this.parentClass = `is-current-step-${this.currentStep}`\n }\n\n /**\n *\n * Go to the step 1\n */\n goToStep1(e) {\n e.preventDefault();\n let stepBackAnime = new anime.timeline({\n autoplay: false,\n });\n\n stepBackAnime.add({\n targets: this.step2Elems.querySelectorAll('.anime-item'),\n opacity: [1, 0],\n translateX: [0, -50],\n delay: anime.stagger(70),\n // easing: 'easeOutExpo',\n duration: 1200,\n })\n .add({\n targets: '.gift-step-1',\n translateX: ['110%', 0],\n opacity: [0, 1],\n }, '-=1800')\n .add({\n targets: this.step1Elems.querySelectorAll('.anime-item'),\n opacity: [0, 1],\n translateX: [50, 0],\n delay: anime.stagger(70),\n duration: 1200,\n complete: () => {\n this.step1Elems.querySelectorAll('.anime-item').forEach(item => {\n item.classList.remove('opacity-0')\n item.removeAttribute('style');\n })\n }\n }, '-=1200')\n\n stepBackAnime.play();\n this.setWrapperHeight(1, 600, 0);\n this.currentStep = 1;\n this.parentClass = `is-current-step-${this.currentStep}`\n }\n\n private getFilepondPlaceholder() {\n return `<div class=\"s-gifting-filepond-placeholder\"><span class=\"s-gifting-filepond-placeholder-icon\">${Images}</span><p class=\"s-gifting-filepond-placeholder-text\">${this.selectImageOrUpload ? this.selectImageOrUpload : ''}</p></div>`\n }\n\n setPreview(image: GiftImage) {\n this.uploader?.classList.add('has-bg')\n var bg = document.querySelector('.filepond-bg') ? document.querySelector('.filepond-bg') as HTMLElement : document.createElement('div') as HTMLElement;\n bg.classList.add('filepond-bg')\n bg.classList.remove('s-hidden')\n bg.style.backgroundImage = \"url('\" + image.url + \"')\"\n this.uploader?.querySelector('.filepond--root').appendChild(bg);\n this.uploadedImage = image.url;\n if (!!this.gift && this.gift.gift_images.length) {\n this.setWrapperHeight(1, 150, 0);\n }\n }\n\n removePreview() {\n this.uploader.classList.remove('has-bg');\n let bg = document.querySelector('.filepond-bg') as HTMLElement;\n bg.removeAttribute('style');\n bg.classList.add('s-hidden');\n this.handleRemoveImage()\n }\n\n private handleTextAreaChange(event) {\n this.selectedText = event.target.value;\n this.customTextArea.classList.remove('s-form-has-error');\n }\n\n private handleSenderName(event) {\n this.senderName = event.target.value;\n }\n\n private handleReceiverName(event) {\n this.receiverName = event.target.value;\n }\n\n private handleUploadImage(img) {\n this.uploadedImage = img;\n if (!!this.gift && this.gift.gift_images.length) {\n this.setWrapperHeight(1, 150, 0);\n }\n }\n\n private handleRemoveImage() {\n this.uploadedImage = '';\n if (!!this.gift && this.gift.gift_images.length) {\n this.setWrapperHeight(1, 150, 0);\n }\n }\n\n // private handleReceiverEmail(event) {\n // this.receiverEmail = event.target.value;\n // }\n\n private handlePhoneInputChange(event) {\n let phone: Phone = event.detail;\n this.receiverMobile = phone.number;\n this.receiverCountryCode = phone.country_code;\n }\n\n private handleDateTimePicker(event) {\n this.deliveryDate = event.detail;\n }\n\n private getCalendarClasses() {\n return {\n \"s-form-group\": true,\n \"anime-item\": true,\n \"s-gifting-calendar\": true,\n \"shown\": this.showCalendar,\n \"hide\": !this.showCalendar,\n \"s-form-has-error\": !!this.errors && this.errors['deliver_at']\n }\n }\n\n private async submitForm() {\n // @ts-ignore\n const donatingAmount = document.querySelector('#donating-amount')?.value\n this.calendarFormGroup.classList.remove('s-form-has-error');\n if (!!this.errors) {\n this.errors = {}\n this.setWrapperHeight(2, 150, 0);\n }\n if (this.showCalendar && !this.deliveryDate) {\n this.calendarFormGroup.classList.add('s-form-has-error');\n return;\n }\n let payload: GiftToCardDTO = {\n text: this.selectedText,\n sender_name: this.senderName,\n quantity: this.quantity,\n deliver_at: this.showCalendar ? this.deliveryDate : null,\n image_url: this.uploadedImage ?? this.selectedImage,\n donation_amount: donatingAmount ? donatingAmount : null,\n receiver: {\n name: this.receiverName,\n country_code: this.receiverCountryCode,\n mobile: this.receiverMobile\n }\n }\n return await salla.product.addGiftToCart(this.productId, payload, true).then((resp) => {\n console.log(resp);\n this.modal.close()\n }).catch((e) => {\n if (e.response.status == 422) {\n this.errors = e.response.data.error.fields\n } else {\n console.log(e);\n }\n this.setWrapperHeight(2, 150, 0);\n })\n }\n\n render() {\n return [\n <div>\n <salla-list-tile class=\"s-gifting-widget\">\n <div slot=\"title\">\n <h3>{this.sectionTitle}</h3>\n </div>\n <div slot=\"subtitle\">\n <div>{!!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle}</div>\n </div>\n <div slot=\"action\">\n <salla-button class=\"s-gifting-widget-action\" color=\"gray\" onClick={() => this.open()}>\n <span innerHTML={GiftSharing}></span> \n <span>{this.sectionBtnText}</span>\n </salla-button>\n </div>\n </salla-list-tile>\n\n <salla-modal id='salla-gifting-modal' isLoading={true} class=\"s-gifting-modal\" width=\"sm\"\n ref={modal => this.modal = modal}>\n <div slot=\"loading\">\n <div class=\"s-gifting-skeleton\">\n <div class=\"s-gifting-modal-header\">\n <salla-skeleton type='circle' height='5rem' width='5rem'></salla-skeleton>\n <h2 class=\"s-gifting-modal-title\">\n <div class=\"s-gifting-modal-badge-wrapper\">\n <salla-skeleton height='15px' width='150px'></salla-skeleton>\n </div>\n </h2>\n </div>\n <div class=\"s-gifting-skeleton-content\">\n <salla-skeleton height='10px' width='150px'></salla-skeleton>\n <salla-skeleton height='230px'></salla-skeleton>\n <salla-skeleton height='10px' width='150px'></salla-skeleton>\n <salla-skeleton height='30px'></salla-skeleton>\n <salla-skeleton height='40px'></salla-skeleton>\n </div>\n </div>\n </div>\n <slot name=\"header\"/>\n {!!this.hasError ?\n <salla-placeholder alignment=\"center\">\n <span slot=\"title\">{this.errorMessage || salla.lang.get('common.errors.empty_results')}</span>\n <span slot=\"description\"> </span>\n </salla-placeholder>\n :\n [\n <div class=\"s-gifting-modal-header\">\n <span class=\"s-gifting-modal-icon\">\n <span innerHTML={GiftSharing}></span>\n </span>\n <h2 class=\"s-gifting-modal-title\">\n <div class=\"s-gifting-modal-badge-wrapper\">\n <div class=\"s-gifting-modal-badge\">\n <span><span>{this.currentStep}</span>/2</span>\n </div>\n <span>{this.giftDetails}</span>\n </div>\n </h2>\n </div>,\n <div class={\"s-gifting-steps-wrapper \" + this.parentClass} ref={el => this.stepsWrapper = el}>\n <div class=\"s-gifting-step-one gift-step-1\" ref={el => this.step1Elems = el}>\n <div class=\"s-gifting-modal-uploader-title anime-item\">\n {this.selectImageForYourGift}\n </div>\n <div class=\"s-gifting-modal-uploader anime-item\" ref={el => this.uploader = el as HTMLDivElement}>\n <span class=\"s-gifting-remove-preview\" onClick={() => this.removePreview()} innerHTML={Cancel}/>\n {this.selectImageOrUpload && <salla-file-upload\n instant-upload={true}\n name=\"image_url\"\n url={salla.url.api(salla.product.api.getUrl('giftImage'))}\n onUploaded={event => this.handleUploadImage(event.detail)}\n labelIdle={this.getFilepondPlaceholder()}\n onRemoved={() => this.handleRemoveImage()}/>}\n\n </div>\n <div class=\"anime-item\">\n {!this.uploadedImage && !!this.gift && this.gift.gift_images.length > 0 ?\n <salla-slider\n id=\"gifting-slider\"\n loop={false}\n //todo:: it looks bad attribute\n controls-outer={true}\n class=\"s-gifting-slider\"\n type=\"carousel\">\n <div slot=\"items\">\n {this.gift?.gift_images.map((item: GiftImage) =>\n <img class=\"s-gifting-image s-gifting-clickable\" src={item.url}\n onClick={() => this.setPreview(item)} alt={`${item.id}`}/>\n )}\n </div>\n </salla-slider>\n : \"\"}\n </div>\n <div class=\"anime-item\">\n\n <div class=\"s-form-group s-gifting-selectText\" ref={el => this.textSelect = el as HTMLDivElement}>\n <select id=\"gift-text-selection\" name=\"gift-text-selection\"\n class=\"s-form-control s-gifting-select\" onChange={e => this.toggleGiftText(e)}>\n <option data-id={null} selected>{this.selectGiftMessage}</option>\n {this.gift?.gift_texts.map((txt: GiftText) =>\n <option data-id={txt.id} value={txt.text} key={txt.id}>{txt.text}</option>\n )}\n <option data-id=\"custom\">{this.giftCustomText}</option>\n </select>\n </div>\n\n <div\n class={this.showGiftText ? \"s-form-group s-gifting-textarea shown\" : \"s-form-group s-gifting-textarea hide\"}\n ref={(el) => this.customTextArea = el}>\n <label htmlFor=\"gift-custom-text\" class=\"s-form-label\">{this.giftCustomText}</label>\n <div class=\"mt-1\">\n <textarea onInput={(event) => this.handleTextAreaChange(event)} rows={4}\n ref={(el) => this.textArea = el} name=\"gift-custom-text\" id=\"gift-custom-text\"\n class=\"s-form-control\"/>\n </div>\n </div>\n </div>\n\n <div class=\"anime-item\">\n\n <salla-button color=\"primary\" width=\"wide\" onClick={() => this.goToStep2()}>\n <span>{this.nextStep}</span>\n </salla-button>\n </div>\n\n </div>\n <div class=\"s-gifting-step-two gift-step-2\" ref={el => this.step2Elems = el}>\n <div\n class={this.errors && this.errors['sender_name'] ? \"s-form-group s-form-has-error anime-item opacity-0\" : \"s-form-group anime-item opacity-0\"}>\n <label htmlFor=\"sender_name\" class=\"s-form-label\">{this.senderNameLabel}</label>\n <input type=\"text\"\n class=\"s-form-control\"\n name=\"sender_name\"\n id=\"sender_name\"\n value={this.senderName}\n onInput={(event) => this.handleSenderName(event)}\n placeholder=\"\"\n />\n {this.errors && this.errors['sender_name'] ?\n <span class=\"text-danger text-xs\">{this.errors['sender_name']}</span> : ''}\n </div>\n <div\n class={this.errors && this.errors['receiver.name'] ? \"s-form-group s-form-has-error anime-item opacity-0\" : \"s-form-group anime-item opacity-0\"}>\n <label htmlFor=\"receiver_name\" class=\"s-form-label\">{this.receiverNameFieldLabel}</label>\n <input type=\"text\"\n class=\"s-form-control\"\n name=\"receiver_name\"\n id=\"receiver_name\"\n value=\"\"\n onInput={(event) => this.handleReceiverName(event)}\n placeholder=\"\"\n />\n {this.errors && this.errors['receiver.name'] ?\n <span class=\"text-danger text-xs\">{this.errors['receiver.name']}</span> : ''}\n </div>\n <div\n class={this.errors && this.errors['receiver.mobile'] ? \"s-form-group s-form-has-error anime-item opacity-0\" : \"s-form-group anime-item opacity-0\"}>\n <label class=\"s-form-label\">{this.receiverMobileFieldLabel}</label>\n <salla-tel-input class=\"s-gifting-tel-input\" phone={this.receiverMobile}\n countryCode={this.receiverCountryCode}\n onPhoneEntered={(e) => this.handlePhoneInputChange(e)}/>\n {this.errors && this.errors['receiver.mobile'] ?\n <span class=\"text-danger text-xs\">{this.errors['receiver.mobile']}</span> : ''}\n </div>\n <div class=\"anime-item opacity-0\">\n <label class=\"s-gifting-schedule s-gifting-clickable\" htmlFor=\"schedule\">\n <input type=\"checkbox\" name='schedule' id='schedule' onChange={() => this.toggleCalendar()}\n class=\"s-checkbox\"/>\n <span class=\"s-form-label\"> {this.sendLater} </span>\n </label>\n\n </div>\n <div class={this.getCalendarClasses()} ref={(el) => this.calendarFormGroup = el}>\n <label class=\"s-form-label\">{this.selectSendDateAndTime}</label>\n <salla-datetime-picker value={this.deliveryDate} placeholder={this.selectSendDateAndTime}\n enable-time date-format=\"Y-m-d h:i K\"\n onPicked={(event) => this.handleDateTimePicker(event)}\n >\n </salla-datetime-picker>\n <span class=\"s-gifting-calendar-hint\">{this.canNotEditOrderAfterSelectDate}</span>\n </div>\n <div class=\"s-gifting-step-two-footer anime-item opacity-0\">\n <a href=\"#!\" innerHTML={LeftArrow} onClick={(e) => this.goToStep1(e)}/>\n\n <salla-button onClick={() => this.submitForm()} color=\"primary\" width='wide'>\n <span>{this.sendGift}</span>\n </salla-button>\n </div>\n </div>\n </div>]\n }\n <slot name=\"footer\"/>\n </salla-modal>\n </div>\n\n ]\n }\n\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-infinite-scroll.js","mappings":";;;;;;AAAA,MAAM,sBAAsB,GAAG,EAAE;;MCKpBA,qBAAmB;EAC9B;;;;;;IAuBQ,aAAQ,GAAW,EAAE,CAAC;;;;IAIL,aAAQ,GAAY,KAAK,CAAC;;;;IAI3C,cAAS,GAAW,uBAAuB,CAAC;;;;IAI5C,SAAI,GAAW,2BAA2B,CAAC;IAlCjD,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,aAAa,CA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AAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;GAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SallaInfiniteScroll"],"sources":["./src/components/salla-infinite-scroll/salla-infinite-scroll.scss?tag=salla-infinite-scroll","./src/components/salla-infinite-scroll/salla-infinite-scroll.tsx"],"sourcesContent":["/*\n* Salla Infinite Scroll Component: used in latest-products page, comments, brands, orders and so on..\n* You can use these classes to target the elements in the component.\n*/\n\n.s-infinite-scroll {\n &-wrapper {\n \n }\n // last & error message wrapper.\n &-status{\n\n }\n // the message that displys after reaching the last page.\n &-last {\n \n }\n // the message that displys if there is an error on loading\n &-error {\n \n }\n // Load more button\n &-btn{\n // button text\n &-text{\n\n }\n // spinner loader\n &-loader{\n\n }\n }\n}","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\nimport Helper from '../../Helpers/Helper';\n/**\n */\n@Component({ tag: 'salla-infinite-scroll', styleUrl: 'salla-infinite-scroll.scss' })\nexport class SallaInfiniteScroll {\n constructor() {\n this.status = document.createElement('div');\n this.status.className = 's-infinite-scroll-wrapper';\n this.status.innerHTML = `<div class=\"s-infinite-scroll-status\" style=\"display:none\">\n <p class=\"s-infinite-scroll-last infinite-scroll-last\"></p>\n <p class=\"s-infinite-scroll-error infinite-scroll-error\"></p>\n </div>\n <a href=\"${this.nextPage}\" class=\"s-infinite-scroll-btn s-button-btn s-button-primary\">\n <span class=\"s-button-text s-infinite-scroll-btn-text\">${salla.lang.get('common.elements.load_more')}</span>\n <span class=\"s-button-loader s-button-loader-center s-infinite-scroll-btn-loader\" style=\"display: none\"></span>\n </a>`;\n this.btnLoader = this.status.querySelector('.s-button-loader');\n salla.lang.onLoaded(() => {\n this.status.querySelector('.s-button-text').innerHTML = salla.lang.get('common.elements.load_more');\n this.status.querySelector('.s-infinite-scroll-last').innerHTML = salla.lang.get('common.elements.end_of_content');\n this.status.querySelector('.s-infinite-scroll-error').innerHTML = salla.lang.get('common.elements.failed_to_load_more');\n });\n }\n\n\n /**\n * Next Page element\n */\n @Prop() nextPage: string = '';\n /**\n * Is there is need to autoload next page when scroll `next-page-autoload|next-page.autoload`\n */\n @Prop({ mutable: true }) autoload: boolean = false;\n /**\n * Class selector to know the container if it's not the host `<salla-infinite-scroll>`\n */\n @Prop() container: string = 'salla-infinite-scroll';\n /**\n * Class selector to know list items\n */\n @Prop() item: string = 'salla-infinite-scroll > *';\n @State() loadMore: string;\n @State() noMore: string;\n @State() failedToLoad: string;\n private readonly status: HTMLDivElement;\n private btnLoader: HTMLAnchorElement;\n\n @Element() host: HTMLElement;\n\n private loading(isLoading = true) {\n let btnText = this.status.querySelector('.s-button-text');\n Helper.toggleElementClassIf(btnText, 's-button-hide', 's-button-show', () => isLoading);\n this.btnLoader.style.display = isLoading ? 'inherit' : 'none';\n }\n\n render() {\n return this.nextPage.length > 1 ?\n <Host class=\"s-infinite-scroll-container\">\n <slot />\n </Host> : '';\n }\n\n componentDidLoad() {\n if (this.nextPage.length === 0) {\n return;\n }\n this.host.insertAdjacentElement('afterend', this.status);\n let that = this;\n let infScroll = salla.infiniteScroll.initiate(this.container, {\n history: this.autoload ? 'push' : false,\n scrollThreshold: this.autoload ? 400 : false,\n nextPage: this.nextPage,\n checkLastPage: 'salla-infinite-scroll[next-page*=\":\"],salla-infinite-scroll[next-page*=\".\"]',\n status: '.s-infinite-scroll-status',\n button: this.status.querySelector('.s-button-btn'),\n append: this.item,\n path: function () {\n return that.nextPage.replace(/page\\=(\\d)/g, 'page=' + (this.loadCount + 2));\n },\n })\n .on('request', () => this.loading())\n .on('load', () => {\n this.loading(false);\n\n if (infScroll.pageIndex == 2) {\n infScroll.option({ loadOnScroll: false });\n }\n\n if (infScroll.pageIndex == 3) {\n infScroll.option({ loadOnScroll: true });\n }\n })\n .on('error', () => this.loading(false));\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-installment.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,mvGAA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,CAAC;OAChC;WAAM;QACL,IAAI,CAAC,iBAAiB,EAAE,CAAC;OAC1B;KACF,EAAE,IAAI,CAAC,sBAAsB,GAAG,GAAG,CAAC,CAAA;GACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SallaInstallment"],"sources":["./src/components/salla-installment/salla-installment.scss?tag=salla-installment","./src/components/salla-installment/salla-installment.tsx"],"sourcesContent":["/*\n The whole installment methods is a third-party widgets,\n So there aren't a custom classes (as other components) to style them.\n*/\n\nsalla-installment:empty {\n display: none;\n}\n/*\n* Installment::Tabby\n*/\n#tabbyPromoWrapper {\n background: white;\n border-radius: 0.375rem;\n transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);\n margin-bottom: 20px;\n\n .salla-y &{\n border: 1px solid var(--color-grey-dark);\n border-radius: 12px\n }\n\n &:hover{\n box-shadow: 0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D;\n }\n\n #tabbyPromo {\n * {\n font-family: var(--font-main);\n }\n\n > div > div {\n max-width: none;\n //padding: 15px;\n box-shadow: none;\n border: none;\n }\n\n .tabby-promo-snippet {\n max-width: 100%;\n min-height: 100px;\n padding: 18px 20px;\n // border-color: var(--color-grey-dark);\n border: none !important;\n\n\n &__text, &__link {\n font-size: var(--font-sm);\n color: var(--color-text) !important;\n }\n\n &__link {\n font-weight: bold;\n }\n }\n }\n}\n\n.tabby-promo-wrapper {\n #tabby-promo {\n font-family: var(--font-main) !important;\n\n .tabby-promo {\n &__feature-title {\n font-size: var(--font-md);\n }\n\n &__feature-desc {\n font-size: var(--font-sm);\n line-height: 20px;\n }\n }\n }\n}\n\n/*\n* Installment::Tamara & Spotii\n*/\n.tamara-product-widget{\n margin-bottom: 20px;\n}\n\n.tamara-product-widget,\n.spotii-wrapper {\n min-height: 100px;\n position: relative;\n color: var(--color-text);\n font-size: var(--font-sm);\n line-height: 1.25;\n padding: 18px 20px 18px 100px !important;\n background: white;\n border-radius: 0.375rem;\n transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);\n\n .salla-y &{\n border-radius: 12px;\n border: 1px solid var(--color-grey-dark);\n }\n\n &:hover{\n box-shadow: 0 0 #0000, 0 0 #0000, 5px 10px 30px #2B2D340D;\n }\n .spotii-logo {\n float: left;\n margin: 0 0 0 -75px;\n }\n}\n.ltr .tamara-product-widget,\n.ltr .spotii-wrapper{\n text-align: left;\n padding: 18px 100px 18px 20px !important;\n .spotii-logo {\n float: right;\n margin: 0 -75px 0 0;\n }\n .spotii-product-widget {\n text-align: left !important;\n }\n}\n\n.spotii-wrapper {\n margin-bottom: 20px;\n .spotii-promo {\n font-size: var(--font-md);\n }\n\n .spotii-product-widget {\n font-size: var(--font-sm) !important;\n margin-top: 10px;\n }\n}\n\n.tamara-product-widget{\n .tamara-logo {\n position: absolute;\n left: 20px;\n top: 18px;\n margin: 0 !important;\n\n .ltr &{\n right: 20px;\n left: auto;\n }\n }\n\n span {\n font-family: var(--font-main);\n font-size: var(--font-sm);\n color: var(--color-text);\n\n &:last-child {\n display: block;\n position: relative;\n margin-top: 8px;\n }\n }\n}\n\n.tamara-popup {\n &__wrap {\n overflow: auto !important;\n }\n}\n","import {Component, Host, h, Prop, State} from '@stencil/core';\n\n@Component({\n tag: 'salla-installment',\n styleUrl: 'salla-installment.scss',\n})\n\nexport class SallaInstallment {\n private tabbyBorderRemoved: boolean = false;\n private tabbyRemoveBorderTries: number = 0;\n\n constructor() {\n salla.lang.onLoaded(() => {\n const installment = salla.config.get('store.settings.installments');\n if (installment) {\n this.tamaraIsActive = installment.includes('tamara_installment');\n this.tabbyIsActive = installment.includes('tabby_installment');\n this.spotiiIsActive = installment.includes('spotii_pay');\n }\n this.renderInstallments();\n });\n }\n\n /**\n * Current product price\n */\n @Prop() price: string;\n /**\n * Language code\n */\n @Prop() language: string = salla.config.get('user.language_code');\n /**\n * Currency code\n */\n @Prop() currency: string = salla.config.get('user.currency_code');\n\n @State() tamaraIsActive: boolean;\n @State() tabbyIsActive: boolean;\n @State() spotiiIsActive: boolean;\n\n render() {\n return (\n <Host>\n {this.tamaraIsActive ?\n <div class=\"tamara-product-widget\"\n data-price={this.price}\n data-currency={this.currency}\n data-lang={this.language}\n data-payment-type=\"installment\">\n </div>\n : ''}\n\n {this.tabbyIsActive ?\n <div id=\"tabbyPromoWrapper\">\n <div id=\"tabbyPromo\"></div>\n </div>\n : ''}\n\n {this.spotiiIsActive ?\n <div class=\"spotii-wrapper\">\n {/*No need for the price, the price already in the page, and also tammara & tabby doesn't have price */}\n <div class=\"spotii-promo\"></div>\n </div>\n : ''}\n </Host>\n );\n }\n\n renderInstallments() {\n // Tamara\n if (this.tamaraIsActive) {\n var script = document.createElement('script');\n script.setAttribute('src', 'https://cdn.tamara.co/widget/product-widget.min.js');\n document.head.appendChild(script);\n script.onload = () => {\n window.TamaraProductWidget.init({lang: this.language})\n setTimeout(() => {\n window.TamaraProductWidget.render()\n }, 300)\n }\n }\n\n // tabby\n if (this.tabbyIsActive) {\n var script = document.createElement('script');\n script.setAttribute('src', 'https://checkout.tabby.ai/tabby-promo.js');\n document.head.appendChild(script);\n script.onload = () => {\n const TabbyPromo = window.TabbyPromo;\n new TabbyPromo({\n selector: '#tabbyPromo',\n currency: this.currency,\n price: this.price,\n lang: this.language,\n });\n document.querySelectorAll('.tabby-promo-snippet__logo').forEach(function (element) {\n element.setAttribute('aria-label', 'Tabby Logo')\n });\n }\n //this is workaround to remove the default border and add margin\n this.removeTabbyBorder();\n }\n\n // Spotii\n if (this.spotiiIsActive) {\n let amount = salla.money((Number(this.price) / 3).toFixed(2));\n let isRTL = salla.config.get('theme.is_rtl', true);\n window.spotiiConfig = {\n targetXPath: ['.spotii-wrapper'],\n renderToPath: ['.spotii-promo'],\n numberOfPayment: 3,\n currency: this.currency,\n templateLine: \"${textOne} ${number} ${textTwo} \" + amount + \"${logo} ${info}\",\n //todo:: translate these\n textOne: isRTL ? \"جزء الدفع على\" : \"Split it into\",\n textTwo: isRTL ? \"أقساط متساوية بدون تكاليف اضافية بقيمة\" : \"payments of\",\n textThree: \"مع\",\n price: this.price,\n // forcedShow: false,\n // merchantID: null,\n }\n\n var script = document.createElement('script');\n\n script.setAttribute('src', salla.url.cdn('js/price-widget-ar-salla.js'));\n document.head.appendChild(script);\n // script.onload = () => {\n // // setTimeout()\n // }\n }\n\n }\n\n /**\n * this is workaround to remove the default border and add margin\n * we will try to remove tabby border 5 times for 7.5 seconds\n */\n removeTabbyBorder() {\n if (this.tabbyBorderRemoved || this.tabbyRemoveBorderTries > 5) {\n return;\n }\n this.tabbyRemoveBorderTries++;\n setTimeout(() => {\n let promo: any = document.querySelector('#tabbyPromo>div>div');\n promo = promo ? promo.shadowRoot.querySelector('div[class^=\"styles__tabby-promo-snippet--\"]') : null;\n if (promo) {\n promo.style = 'border: none; margin: 15px 0!important;';\n this.tabbyBorderRemoved = true;\n } else {\n this.removeTabbyBorder();\n }\n }, this.tabbyRemoveBorderTries * 500)\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-list-tile.js","mappings":";;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-list-tile2.js","mappings":";;;;;AAAA,MAAM,gBAAgB,GAAG,EAAE;;MCad,aAAa;EAL1B;;;;;;IAUU,SAAI,GAAuB,SAAS,CAAC;;;;IAKrC,WAAM,GAA0D,OAAO,CAAC;GA+BjF;EA7BS,aAAa;IACnB,OAAO;MACL,kBAAkB,EAAE,IAAI;MACxB,uBAAuB,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI;KACrC,CAAA;GACF;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACH,SAAG,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAClE,WAAK,KAAK,EAAC,uBAAuB,IAChC,YAAM,IAAI,EAAC,MAAM,GAAE,CACf,EACN,WAAK,KAAK,EAAC,0BAA0B,IACnC,WAAK,KAAK,EAAC,wBAAwB,IACjC,YAAM,IAAI,EAAC,OAAO,GAAE,CAChB,EACN,WAAK,KAAK,EAAC,2BAA2B,IACpC,YAAM,IAAI,EAAC,UAAU,GAAE,CACnB,CACF,EACN,WAAK,KAAK,EAAC,yBAAyB,IAClC,YAAM,IAAI,EAAC,QAAQ,GAAE,CACjB,CACJ,CACC,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/salla-list-tile/salla-list-tile.scss?tag=salla-list-tile","./src/components/salla-list-tile/salla-list-tile.tsx"],"sourcesContent":["","import {Component, Host, h, Prop} from '@stencil/core';\n\n/**\n * @slot icon - An icon to display before the title.\n * @slot title - The primary content of the list tile.\n * @slot subtitle - Additional content displayed below the title.\n * @slot action - An element to display after the title.\n */\n@Component({\n tag: 'salla-list-tile',\n styleUrl: 'salla-list-tile.scss',\n shadow: false,\n})\nexport class SallaListTile {\n\n /**\n * Designates the component as anchor and applies the `href` attribute.\n */\n @Prop() href: string | undefined = undefined;\n\n /**\n * Designates the target attribute. This should only be applied when using the `href` prop.\n */\n @Prop() target: \"_blank\" | \"_self\" | \"_parent\" | \"_top\" | \"framename\" = \"_self\";\n\n private generateClass() {\n return {\n \"s-list-tile-item\": true,\n \"s-list-tile-item-href\": !!this.href\n }\n }\n\n render() {\n return (\n <Host>\n <a class={this.generateClass()} href={this.href} target={this.target}>\n <div class=\"s-list-tile-item-icon\">\n <slot name='icon'/>\n </div>\n <div class=\"s-list-tile-item-content\">\n <div class=\"s-list-tile-item-title\">\n <slot name='title'/>\n </div>\n <div class=\"s-list-tile-item-subtitle\">\n <slot name=\"subtitle\"/>\n </div>\n </div>\n <div class=\"s-list-tile-item-action\">\n <slot name='action'/>\n </div>\n </a>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-loading.js","mappings":";;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-loading2.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,whBAAwhB;;MCMniB,YAAY;EAJzB;;;;;;IAQU,SAAI,GAAoB,EAAE,CAAC;;;;IAK3B,UAAK,GAAoB,CAAC,CAAC;;;;IAK3B,UAAK,GAAW,SAAS,CAAC;;;;IAK1B,YAAO,GAAW,SAAS,CAAA;GAapC;EAXC,MAAM;IACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,IAC/B,0BAAiB,MAAM,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAC,WAAW,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,IACjN,YAAM,CAAC,EAAC,8WAA8W,EAAC,IAAI,EAAC,cAAc,GAAG,EAC7Y,YAAM,CAAC,EAAC,+kBAA+kB,EAAC,IAAI,EAAC,aAAa,GAAG,CACzmB,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/salla-loading/salla-loading.scss?tag=salla-loading","./src/components/salla-loading/salla-loading.tsx"],"sourcesContent":["\n.s-loading {\n animation: spin 1s linear infinite;\n fill: var(--color-primary)\n}\n\n\n.s-loading-container {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n","import { Component, Prop, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'salla-loading',\n styleUrl: 'salla-loading.scss',\n})\nexport class SallaLoading {\n /**\n * Sets the diameter of the circle in pixels, Defaults to `32`\n */\n @Prop() size: number | string = 32;\n\n /**\n * Sets the stroke of the circle (border) in pixels, Defaults to `4`\n */\n @Prop() width: number | string = 2;\n\n /**\n * Spinner content color.\n */\n @Prop() color: string = undefined; // TODO: Should be replaced with primary color (variable)\n\n /**\n * Spinner background color.\n */\n @Prop() bgColor: string = \"#e5e7eb\"\n\n render() {\n return (\n <Host class=\"s-loading-container\">\n <svg aria-hidden=\"true\" style={{ width: `${this.size}px`, height: `${this.size}px`, fill: this.color, color: this.bgColor }} class=\"s-loading\" viewBox=\"0 0 100 101\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\" fill=\"currentColor\" />\n <path d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\" fill=\"currentFill\" />\n </svg>\n </Host>\n );\n }\n\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
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AAmB,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAQ,CAC1D,CACP;UACD,cAAQ,KAAK,EAAC,6BAA6B,EAAC,IAAI,EAAC,UAAU,EAAC,QAAQ,EAAE,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAChG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,IAC3B,cAAQ,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,IAAG,QAAQ,CAAC,IAAI,CAAU,CACjG,CACM,CAEP,CACF;UACJ,EAAE,EAEN,oBAAc,KAAK,EAAC,MAAM,EAAC,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,GAAG,GAAG,GAAG,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,IAChF,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,CACxB,CACX,CAEI,EACd;GACH;;;;EAKD,kBAAkB;IAChB,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1F,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;GAC3F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SallaLocalizationModal"],"sources":["./src/components/salla-localization-modal/salla-localization-modal.scss?tag=salla-localization-modal","./src/components/salla-localization-modal/salla-localization-modal.tsx"],"sourcesContent":["\n/*\n* Salla Localization Component: Languages & Currencies popup modal\n* You can use these classes to target the elements in the component.\n*/\n\n.s-localization-modal {\n &-title {\n\n }\n &-section {\n\n }\n &-section-inner {\n\n }\n &-item {\n\n }\n &-input {\n\n }\n &-label-slot {\n \n }\n &-label {\n\n }\n &-flag {\n\n }\n &-currency {\n\n }\n // dropdwon select, displys if the itmes length is more thant 5 items.\n &-select {\n background-image: url(\"data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\");\n }\n}\n\n\n\n// Flags imported from Int-tel-input\n// used in tel-input & localiztions components\n.iti__flag {\n $item-width-maps: (ac: 20px, ad: 20px, ae: 20px, af: 20px, ag: 20px, ai: 20px, al: 20px, am: 20px, ao: 20px, aq: 20px, ar: 20px, as: 20px, at: 20px, au: 20px, aw: 20px, ax: 20px, az: 20px, ba: 20px, bb: 20px, bd: 20px, be: 18px, bf: 20px, bg: 20px, bh: 20px, bi: 20px, bj: 20px, bl: 20px, bm: 20px, bn: 20px, bo: 20px, bq: 20px, br: 20px, bs: 20px, bt: 20px, bv: 20px, bw: 20px, by: 20px, bz: 20px, ca: 20px, cc: 20px, cd: 20px, cf: 20px, cg: 20px, ch: 15px, ci: 20px, ck: 20px, cl: 20px, cm: 20px, cn: 20px, co: 20px, cp: 20px, cr: 20px, cu: 20px, cv: 20px, cw: 20px, cx: 20px, cy: 20px, cz: 20px, de: 20px, dg: 20px, dj: 20px, dk: 20px, dm: 20px, do: 20px, dz: 20px, ea: 20px, ec: 20px, ee: 20px, eg: 20px, eh: 20px, er: 20px, es: 20px, et: 20px, eu: 20px, fi: 20px, fj: 20px, fk: 20px, fm: 20px, fo: 20px, fr: 20px, ga: 20px, gb: 20px, gd: 20px, ge: 20px, gf: 20px, gg: 20px, gh: 20px, gi: 20px, gl: 20px, gm: 20px, gn: 20px, gp: 20px, gq: 20px, gr: 20px, gs: 20px, gt: 20px, gu: 20px, gw: 20px, gy: 20px, hk: 20px, hm: 20px, hn: 20px, hr: 20px, ht: 20px, hu: 20px, ic: 20px, id: 20px, ie: 20px, il: 20px, im: 20px, in: 20px, io: 20px, iq: 20px, ir: 20px, is: 20px, it: 20px, je: 20px, jm: 20px, jo: 20px, jp: 20px, ke: 20px, kg: 20px, kh: 20px, ki: 20px, km: 20px, kn: 20px, kp: 20px, kr: 20px, kw: 20px, ky: 20px, kz: 20px, la: 20px, lb: 20px, lc: 20px, li: 20px, lk: 20px, lr: 20px, ls: 20px, lt: 20px, lu: 20px, lv: 20px, ly: 20px, ma: 20px, mc: 19px, md: 20px, me: 20px, mf: 20px, mg: 20px, mh: 20px, mk: 20px, ml: 20px, mm: 20px, mn: 20px, mo: 20px, mp: 20px, mq: 20px, mr: 20px, ms: 20px, mt: 20px, mu: 20px, mv: 20px, mw: 20px, mx: 20px, my: 20px, mz: 20px, na: 20px, nc: 20px, ne: 18px, nf: 20px, ng: 20px, ni: 20px, nl: 20px, no: 20px, np: 13px, nr: 20px, nu: 20px, nz: 20px, om: 20px, pa: 20px, pe: 20px, pf: 20px, pg: 20px, ph: 20px, pk: 20px, pl: 20px, pm: 20px, pn: 20px, pr: 20px, ps: 20px, pt: 20px, pw: 20px, py: 20px, qa: 20px, re: 20px, ro: 20px, rs: 20px, ru: 20px, rw: 20px, sa: 20px, sb: 20px, sc: 20px, sd: 20px, se: 20px, sg: 20px, sh: 20px, si: 20px, sj: 20px, sk: 20px, sl: 20px, sm: 20px, sn: 20px, so: 20px, sr: 20px, ss: 20px, st: 20px, sv: 20px, sx: 20px, sy: 20px, sz: 20px, ta: 20px, tc: 20px, td: 20px, tf: 20px, tg: 20px, th: 20px, tj: 20px, tk: 20px, tl: 20px, tm: 20px, tn: 20px, to: 20px, tr: 20px, tt: 20px, tv: 20px, tw: 20px, tz: 20px, ua: 20px, ug: 20px, um: 20px, un: 20px, us: 20px, uy: 20px, uz: 20px, va: 15px, vc: 20px, ve: 20px, vg: 20px, vi: 20px, vn: 20px, vu: 20px, wf: 20px, ws: 20px, xk: 20px, ye: 20px, yt: 20px, za: 20px, zm: 20px, zw: 20px, );\n \n $standard-country: 'ac';\n width: map-get($item-width-maps, $standard-country);\n\n @each $key, $width in $item-width-maps {\n @if $width != map-get($item-width-maps, $standard-country) {\n &.iti__#{$key} {\n width: $width;\n }\n }\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n background-size: 5652px 15px;\n }\n\n &.iti__ac {\n height: 10px;\n background-position: 0px 0px;\n }\n &.iti__ad {\n height: 14px;\n background-position: -22px 0px;\n }\n &.iti__ae {\n height: 10px;\n background-position: -44px 0px;\n }\n &.iti__af {\n height: 14px;\n background-position: -66px 0px;\n }\n &.iti__ag {\n height: 14px;\n background-position: -88px 0px;\n }\n &.iti__ai {\n height: 10px;\n background-position: -110px 0px;\n }\n &.iti__al {\n height: 15px;\n background-position: -132px 0px;\n }\n &.iti__am {\n height: 10px;\n background-position: -154px 0px;\n }\n &.iti__ao {\n height: 14px;\n background-position: -176px 0px;\n }\n &.iti__aq {\n height: 14px;\n background-position: -198px 0px;\n }\n &.iti__ar {\n height: 13px;\n background-position: -220px 0px;\n }\n &.iti__as {\n height: 10px;\n background-position: -242px 0px;\n }\n &.iti__at {\n height: 14px;\n background-position: -264px 0px;\n }\n &.iti__au {\n height: 10px;\n background-position: -286px 0px;\n }\n &.iti__aw {\n height: 14px;\n background-position: -308px 0px;\n }\n &.iti__ax {\n height: 13px;\n background-position: -330px 0px;\n }\n &.iti__az {\n height: 10px;\n background-position: -352px 0px;\n }\n &.iti__ba {\n height: 10px;\n background-position: -374px 0px;\n }\n &.iti__bb {\n height: 14px;\n background-position: -396px 0px;\n }\n &.iti__bd {\n height: 12px;\n background-position: -418px 0px;\n }\n &.iti__be {\n height: 15px;\n background-position: -440px 0px;\n }\n &.iti__bf {\n height: 14px;\n background-position: -460px 0px;\n }\n &.iti__bg {\n height: 12px;\n background-position: -482px 0px;\n }\n &.iti__bh {\n height: 12px;\n background-position: -504px 0px;\n }\n &.iti__bi {\n height: 12px;\n background-position: -526px 0px;\n }\n &.iti__bj {\n height: 14px;\n background-position: -548px 0px;\n }\n &.iti__bl {\n height: 14px;\n background-position: -570px 0px;\n }\n &.iti__bm {\n height: 10px;\n background-position: -592px 0px;\n }\n &.iti__bn {\n height: 10px;\n background-position: -614px 0px;\n }\n &.iti__bo {\n height: 14px;\n background-position: -636px 0px;\n }\n &.iti__bq {\n height: 14px;\n background-position: -658px 0px;\n }\n &.iti__br {\n height: 14px;\n background-position: -680px 0px;\n }\n &.iti__bs {\n height: 10px;\n background-position: -702px 0px;\n }\n &.iti__bt {\n height: 14px;\n background-position: -724px 0px;\n }\n &.iti__bv {\n height: 15px;\n background-position: -746px 0px;\n }\n &.iti__bw {\n height: 14px;\n background-position: -768px 0px;\n }\n &.iti__by {\n height: 10px;\n background-position: -790px 0px;\n }\n &.iti__bz {\n height: 14px;\n background-position: -812px 0px;\n }\n &.iti__ca {\n height: 10px;\n background-position: -834px 0px;\n }\n &.iti__cc {\n height: 10px;\n background-position: -856px 0px;\n }\n &.iti__cd {\n height: 15px;\n background-position: -878px 0px;\n }\n &.iti__cf {\n height: 14px;\n background-position: -900px 0px;\n }\n &.iti__cg {\n height: 14px;\n background-position: -922px 0px;\n }\n &.iti__ch {\n height: 15px;\n background-position: -944px 0px;\n }\n &.iti__ci {\n height: 14px;\n background-position: -961px 0px;\n }\n &.iti__ck {\n height: 10px;\n background-position: -983px 0px;\n }\n &.iti__cl {\n height: 14px;\n background-position: -1005px 0px;\n }\n &.iti__cm {\n height: 14px;\n background-position: -1027px 0px;\n }\n &.iti__cn {\n height: 14px;\n background-position: -1049px 0px;\n }\n &.iti__co {\n height: 14px;\n background-position: -1071px 0px;\n }\n &.iti__cp {\n height: 14px;\n background-position: -1093px 0px;\n }\n &.iti__cr {\n height: 12px;\n background-position: -1115px 0px;\n }\n &.iti__cu {\n height: 10px;\n background-position: -1137px 0px;\n }\n &.iti__cv {\n height: 12px;\n background-position: -1159px 0px;\n }\n &.iti__cw {\n height: 14px;\n background-position: -1181px 0px;\n }\n &.iti__cx {\n height: 10px;\n background-position: -1203px 0px;\n }\n &.iti__cy {\n height: 14px;\n background-position: -1225px 0px;\n }\n &.iti__cz {\n height: 14px;\n background-position: -1247px 0px;\n }\n &.iti__de {\n height: 12px;\n background-position: -1269px 0px;\n }\n &.iti__dg {\n height: 10px;\n background-position: -1291px 0px;\n }\n &.iti__dj {\n height: 14px;\n background-position: -1313px 0px;\n }\n &.iti__dk {\n height: 15px;\n background-position: -1335px 0px;\n }\n &.iti__dm {\n height: 10px;\n background-position: -1357px 0px;\n }\n &.iti__do {\n height: 14px;\n background-position: -1379px 0px;\n }\n &.iti__dz {\n height: 14px;\n background-position: -1401px 0px;\n }\n &.iti__ea {\n height: 14px;\n background-position: -1423px 0px;\n }\n &.iti__ec {\n height: 14px;\n background-position: -1445px 0px;\n }\n &.iti__ee {\n height: 13px;\n background-position: -1467px 0px;\n }\n &.iti__eg {\n height: 14px;\n background-position: -1489px 0px;\n }\n &.iti__eh {\n height: 10px;\n background-position: -1511px 0px;\n }\n &.iti__er {\n height: 10px;\n background-position: -1533px 0px;\n }\n &.iti__es {\n height: 14px;\n background-position: -1555px 0px;\n }\n &.iti__et {\n height: 10px;\n background-position: -1577px 0px;\n }\n &.iti__eu {\n height: 14px;\n background-position: -1599px 0px;\n }\n &.iti__fi {\n height: 12px;\n background-position: -1621px 0px;\n }\n &.iti__fj {\n height: 10px;\n background-position: -1643px 0px;\n }\n &.iti__fk {\n height: 10px;\n background-position: -1665px 0px;\n }\n &.iti__fm {\n height: 11px;\n background-position: -1687px 0px;\n }\n &.iti__fo {\n height: 15px;\n background-position: -1709px 0px;\n }\n &.iti__fr {\n height: 14px;\n background-position: -1731px 0px;\n }\n &.iti__ga {\n height: 15px;\n background-position: -1753px 0px;\n }\n &.iti__gb {\n height: 10px;\n background-position: -1775px 0px;\n }\n &.iti__gd {\n height: 12px;\n background-position: -1797px 0px;\n }\n &.iti__ge {\n height: 14px;\n background-position: -1819px 0px;\n }\n &.iti__gf {\n height: 14px;\n background-position: -1841px 0px;\n }\n &.iti__gg {\n height: 14px;\n background-position: -1863px 0px;\n }\n &.iti__gh {\n height: 14px;\n background-position: -1885px 0px;\n }\n &.iti__gi {\n height: 10px;\n background-position: -1907px 0px;\n }\n &.iti__gl {\n height: 14px;\n background-position: -1929px 0px;\n }\n &.iti__gm {\n height: 14px;\n background-position: -1951px 0px;\n }\n &.iti__gn {\n height: 14px;\n background-position: -1973px 0px;\n }\n &.iti__gp {\n height: 14px;\n background-position: -1995px 0px;\n }\n &.iti__gq {\n height: 14px;\n background-position: -2017px 0px;\n }\n &.iti__gr {\n height: 14px;\n background-position: -2039px 0px;\n }\n &.iti__gs {\n height: 10px;\n background-position: -2061px 0px;\n }\n &.iti__gt {\n height: 13px;\n background-position: -2083px 0px;\n }\n &.iti__gu {\n height: 11px;\n background-position: -2105px 0px;\n }\n &.iti__gw {\n height: 10px;\n background-position: -2127px 0px;\n }\n &.iti__gy {\n height: 12px;\n background-position: -2149px 0px;\n }\n &.iti__hk {\n height: 14px;\n background-position: -2171px 0px;\n }\n &.iti__hm {\n height: 10px;\n background-position: -2193px 0px;\n }\n &.iti__hn {\n height: 10px;\n background-position: -2215px 0px;\n }\n &.iti__hr {\n height: 10px;\n background-position: -2237px 0px;\n }\n &.iti__ht {\n height: 12px;\n background-position: -2259px 0px;\n }\n &.iti__hu {\n height: 10px;\n background-position: -2281px 0px;\n }\n &.iti__ic {\n height: 14px;\n background-position: -2303px 0px;\n }\n &.iti__id {\n height: 14px;\n background-position: -2325px 0px;\n }\n &.iti__ie {\n height: 10px;\n background-position: -2347px 0px;\n }\n &.iti__il {\n height: 15px;\n background-position: -2369px 0px;\n }\n &.iti__im {\n height: 10px;\n background-position: -2391px 0px;\n }\n &.iti__in {\n height: 14px;\n background-position: -2413px 0px;\n }\n &.iti__io {\n height: 10px;\n background-position: -2435px 0px;\n }\n &.iti__iq {\n height: 14px;\n background-position: -2457px 0px;\n }\n &.iti__ir {\n height: 12px;\n background-position: -2479px 0px;\n }\n &.iti__is {\n height: 15px;\n background-position: -2501px 0px;\n }\n &.iti__it {\n height: 14px;\n background-position: -2523px 0px;\n }\n &.iti__je {\n height: 12px;\n background-position: -2545px 0px;\n }\n &.iti__jm {\n height: 10px;\n background-position: -2567px 0px;\n }\n &.iti__jo {\n height: 10px;\n background-position: -2589px 0px;\n }\n &.iti__jp {\n height: 14px;\n background-position: -2611px 0px;\n }\n &.iti__ke {\n height: 14px;\n background-position: -2633px 0px;\n }\n &.iti__kg {\n height: 12px;\n background-position: -2655px 0px;\n }\n &.iti__kh {\n height: 13px;\n background-position: -2677px 0px;\n }\n &.iti__ki {\n height: 10px;\n background-position: -2699px 0px;\n }\n &.iti__km {\n height: 12px;\n background-position: -2721px 0px;\n }\n &.iti__kn {\n height: 14px;\n background-position: -2743px 0px;\n }\n &.iti__kp {\n height: 10px;\n background-position: -2765px 0px;\n }\n &.iti__kr {\n height: 14px;\n background-position: -2787px 0px;\n }\n &.iti__kw {\n height: 10px;\n background-position: -2809px 0px;\n }\n &.iti__ky {\n height: 10px;\n background-position: -2831px 0px;\n }\n &.iti__kz {\n height: 10px;\n background-position: -2853px 0px;\n }\n &.iti__la {\n height: 14px;\n background-position: -2875px 0px;\n }\n &.iti__lb {\n height: 14px;\n background-position: -2897px 0px;\n }\n &.iti__lc {\n height: 10px;\n background-position: -2919px 0px;\n }\n &.iti__li {\n height: 12px;\n background-position: -2941px 0px;\n }\n &.iti__lk {\n height: 10px;\n background-position: -2963px 0px;\n }\n &.iti__lr {\n height: 11px;\n background-position: -2985px 0px;\n }\n &.iti__ls {\n height: 14px;\n background-position: -3007px 0px;\n }\n &.iti__lt {\n height: 12px;\n background-position: -3029px 0px;\n }\n &.iti__lu {\n height: 12px;\n background-position: -3051px 0px;\n }\n &.iti__lv {\n height: 10px;\n background-position: -3073px 0px;\n }\n &.iti__ly {\n height: 10px;\n background-position: -3095px 0px;\n }\n &.iti__ma {\n height: 14px;\n background-position: -3117px 0px;\n }\n &.iti__mc {\n height: 15px;\n background-position: -3139px 0px;\n }\n &.iti__md {\n height: 10px;\n background-position: -3160px 0px;\n }\n &.iti__me {\n height: 10px;\n background-position: -3182px 0px;\n }\n &.iti__mf {\n height: 14px;\n background-position: -3204px 0px;\n }\n &.iti__mg {\n height: 14px;\n background-position: -3226px 0px;\n }\n &.iti__mh {\n height: 11px;\n background-position: -3248px 0px;\n }\n &.iti__mk {\n height: 10px;\n background-position: -3270px 0px;\n }\n &.iti__ml {\n height: 14px;\n background-position: -3292px 0px;\n }\n &.iti__mm {\n height: 14px;\n background-position: -3314px 0px;\n }\n &.iti__mn {\n height: 10px;\n background-position: -3336px 0px;\n }\n &.iti__mo {\n height: 14px;\n background-position: -3358px 0px;\n }\n &.iti__mp {\n height: 10px;\n background-position: -3380px 0px;\n }\n &.iti__mq {\n height: 14px;\n background-position: -3402px 0px;\n }\n &.iti__mr {\n height: 14px;\n background-position: -3424px 0px;\n }\n &.iti__ms {\n height: 10px;\n background-position: -3446px 0px;\n }\n &.iti__mt {\n height: 14px;\n background-position: -3468px 0px;\n }\n &.iti__mu {\n height: 14px;\n background-position: -3490px 0px;\n }\n &.iti__mv {\n height: 14px;\n background-position: -3512px 0px;\n }\n &.iti__mw {\n height: 14px;\n background-position: -3534px 0px;\n }\n &.iti__mx {\n height: 12px;\n background-position: -3556px 0px;\n }\n &.iti__my {\n height: 10px;\n background-position: -3578px 0px;\n }\n &.iti__mz {\n height: 14px;\n background-position: -3600px 0px;\n }\n &.iti__na {\n height: 14px;\n background-position: -3622px 0px;\n }\n &.iti__nc {\n height: 10px;\n background-position: -3644px 0px;\n }\n &.iti__ne {\n height: 15px;\n background-position: -3666px 0px;\n }\n &.iti__nf {\n height: 10px;\n background-position: -3686px 0px;\n }\n &.iti__ng {\n height: 10px;\n background-position: -3708px 0px;\n }\n &.iti__ni {\n height: 12px;\n background-position: -3730px 0px;\n }\n &.iti__nl {\n height: 14px;\n background-position: -3752px 0px;\n }\n &.iti__no {\n height: 15px;\n background-position: -3774px 0px;\n }\n &.iti__np {\n height: 15px;\n background-position: -3796px 0px;\n }\n &.iti__nr {\n height: 10px;\n background-position: -3811px 0px;\n }\n &.iti__nu {\n height: 10px;\n background-position: -3833px 0px;\n }\n &.iti__nz {\n height: 10px;\n background-position: -3855px 0px;\n }\n &.iti__om {\n height: 10px;\n background-position: -3877px 0px;\n }\n &.iti__pa {\n height: 14px;\n background-position: -3899px 0px;\n }\n &.iti__pe {\n height: 14px;\n background-position: -3921px 0px;\n }\n &.iti__pf {\n height: 14px;\n background-position: -3943px 0px;\n }\n &.iti__pg {\n height: 15px;\n background-position: -3965px 0px;\n }\n &.iti__ph {\n height: 10px;\n background-position: -3987px 0px;\n }\n &.iti__pk {\n height: 14px;\n background-position: -4009px 0px;\n }\n &.iti__pl {\n height: 13px;\n background-position: -4031px 0px;\n }\n &.iti__pm {\n height: 14px;\n background-position: -4053px 0px;\n }\n &.iti__pn {\n height: 10px;\n background-position: -4075px 0px;\n }\n &.iti__pr {\n height: 14px;\n background-position: -4097px 0px;\n }\n &.iti__ps {\n height: 10px;\n background-position: -4119px 0px;\n }\n &.iti__pt {\n height: 14px;\n background-position: -4141px 0px;\n }\n &.iti__pw {\n height: 13px;\n background-position: -4163px 0px;\n }\n &.iti__py {\n height: 11px;\n background-position: -4185px 0px;\n }\n &.iti__qa {\n height: 8px;\n background-position: -4207px 0px;\n }\n &.iti__re {\n height: 14px;\n background-position: -4229px 0px;\n }\n &.iti__ro {\n height: 14px;\n background-position: -4251px 0px;\n }\n &.iti__rs {\n height: 14px;\n background-position: -4273px 0px;\n }\n &.iti__ru {\n height: 14px;\n background-position: -4295px 0px;\n }\n &.iti__rw {\n height: 14px;\n background-position: -4317px 0px;\n }\n &.iti__sa {\n height: 14px;\n background-position: -4339px 0px;\n }\n &.iti__sb {\n height: 10px;\n background-position: -4361px 0px;\n }\n &.iti__sc {\n height: 10px;\n background-position: -4383px 0px;\n }\n &.iti__sd {\n height: 10px;\n background-position: -4405px 0px;\n }\n &.iti__se {\n height: 13px;\n background-position: -4427px 0px;\n }\n &.iti__sg {\n height: 14px;\n background-position: -4449px 0px;\n }\n &.iti__sh {\n height: 10px;\n background-position: -4471px 0px;\n }\n &.iti__si {\n height: 10px;\n background-position: -4493px 0px;\n }\n &.iti__sj {\n height: 15px;\n background-position: -4515px 0px;\n }\n &.iti__sk {\n height: 14px;\n background-position: -4537px 0px;\n }\n &.iti__sl {\n height: 14px;\n background-position: -4559px 0px;\n }\n &.iti__sm {\n height: 15px;\n background-position: -4581px 0px;\n }\n &.iti__sn {\n height: 14px;\n background-position: -4603px 0px;\n }\n &.iti__so {\n height: 14px;\n background-position: -4625px 0px;\n }\n &.iti__sr {\n height: 14px;\n background-position: -4647px 0px;\n }\n &.iti__ss {\n height: 10px;\n background-position: -4669px 0px;\n }\n &.iti__st {\n height: 10px;\n background-position: -4691px 0px;\n }\n &.iti__sv {\n height: 12px;\n background-position: -4713px 0px;\n }\n &.iti__sx {\n height: 14px;\n background-position: -4735px 0px;\n }\n &.iti__sy {\n height: 14px;\n background-position: -4757px 0px;\n }\n &.iti__sz {\n height: 14px;\n background-position: -4779px 0px;\n }\n &.iti__ta {\n height: 10px;\n background-position: -4801px 0px;\n }\n &.iti__tc {\n height: 10px;\n background-position: -4823px 0px;\n }\n &.iti__td {\n height: 14px;\n background-position: -4845px 0px;\n }\n &.iti__tf {\n height: 14px;\n background-position: -4867px 0px;\n }\n &.iti__tg {\n height: 13px;\n background-position: -4889px 0px;\n }\n &.iti__th {\n height: 14px;\n background-position: -4911px 0px;\n }\n &.iti__tj {\n height: 10px;\n background-position: -4933px 0px;\n }\n &.iti__tk {\n height: 10px;\n background-position: -4955px 0px;\n }\n &.iti__tl {\n height: 10px;\n background-position: -4977px 0px;\n }\n &.iti__tm {\n height: 14px;\n background-position: -4999px 0px;\n }\n &.iti__tn {\n height: 14px;\n background-position: -5021px 0px;\n }\n &.iti__to {\n height: 10px;\n background-position: -5043px 0px;\n }\n &.iti__tr {\n height: 14px;\n background-position: -5065px 0px;\n }\n &.iti__tt {\n height: 12px;\n background-position: -5087px 0px;\n }\n &.iti__tv {\n height: 10px;\n background-position: -5109px 0px;\n }\n &.iti__tw {\n height: 14px;\n background-position: -5131px 0px;\n }\n &.iti__tz {\n height: 14px;\n background-position: -5153px 0px;\n }\n &.iti__ua {\n height: 14px;\n background-position: -5175px 0px;\n }\n &.iti__ug {\n height: 14px;\n background-position: -5197px 0px;\n }\n &.iti__um {\n height: 11px;\n background-position: -5219px 0px;\n }\n &.iti__un {\n height: 14px;\n background-position: -5241px 0px;\n }\n &.iti__us {\n height: 11px;\n background-position: -5263px 0px;\n }\n &.iti__uy {\n height: 14px;\n background-position: -5285px 0px;\n }\n &.iti__uz {\n height: 10px;\n background-position: -5307px 0px;\n }\n &.iti__va {\n height: 15px;\n background-position: -5329px 0px;\n }\n &.iti__vc {\n height: 14px;\n background-position: -5346px 0px;\n }\n &.iti__ve {\n height: 14px;\n background-position: -5368px 0px;\n }\n &.iti__vg {\n height: 10px;\n background-position: -5390px 0px;\n }\n &.iti__vi {\n height: 14px;\n background-position: -5412px 0px;\n }\n &.iti__vn {\n height: 14px;\n background-position: -5434px 0px;\n }\n &.iti__vu {\n height: 12px;\n background-position: -5456px 0px;\n }\n &.iti__wf {\n height: 14px;\n background-position: -5478px 0px;\n }\n &.iti__ws {\n height: 10px;\n background-position: -5500px 0px;\n }\n &.iti__xk {\n height: 15px;\n background-position: -5522px 0px;\n }\n &.iti__ye {\n height: 14px;\n background-position: -5544px 0px;\n }\n &.iti__yt {\n height: 14px;\n background-position: -5566px 0px;\n }\n &.iti__za {\n height: 14px;\n background-position: -5588px 0px;\n }\n &.iti__zm {\n height: 14px;\n background-position: -5610px 0px;\n }\n &.iti__zw {\n height: 10px;\n background-position: -5632px 0px;\n }\n}\n\n.iti__flag {\n height: 15px;\n box-shadow: 0px 0px 1px 0px #888;\n background-image: url(\"https://cdn.salla.network/images/flags.png\");\n background-repeat: no-repeat;\n // empty state\n background-color: #f5f7f9;\n background-position: 20px 0;\n}\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n .iti__flag {\n background-image: url(\"https://cdn.salla.network/images/flags@2x.png\");\n }\n}\n.iti__flag.iti__np {\n background-color: transparent;\n}","import { Component, Element, h, Method, Prop, State } from '@stencil/core';\n/**\n * @slot header - The top of the modal.\n * @slot footer - Replaces the bottom button.\n * @slot language - Replaces language label, has replaceable props `{name}`, `{code}`, `{country_code}`.\n * @slot currency - Replaces currency label, has replaceable props `{name}`, `{code}`, `{country_code}`.\n */\n@Component({ tag: 'salla-localization-modal', styleUrl: 'salla-localization-modal.scss' })\n\nexport class SallaLocalizationModal {\n constructor() {\n salla.event.on('localization::open', () => this.open());\n\n salla.lang.onLoaded(() => {\n this.translationLoaded = true;\n });\n\n /**\n * letting developer to insert his own slot like:\n * <salla-localization>\n * <div slot=\"language\">...{name}....</div>\n * <div slot=\"currency\">...{name}....</div>\n * </salla-localization>\n * Because scoped templates not supported in stencil );\n * we made a workaround to pass language & currency attributes, then replace names in rendering\n */\n this.languageSlot = this.host.querySelector('[slot=\"language\"]')?.innerHTML || '<label class=\"s-localization-modal-label\" for=\"lang-{code}\"><span>{name}</span><div class=\"s-localization-modal-flag flag iti__flag iti__{country_code}\"></div></label>';\n this.currencySlot = this.host.querySelector('[slot=\"currency\"]')?.innerHTML || '<label class=\"s-localization-modal-label\" for=\"currency-{code}\"><span>{name}</span><small class=\"s-localization-modal-currency\">{code}</small></label>';\n }\n\n private modal: HTMLSallaModalElement;\n private btn: HTMLSallaButtonElement;\n private readonly languageSlot: string;\n private readonly currencySlot: string;\n\n @State() translationLoaded: boolean = false;\n @State() languages: Array<any> = [];\n @State() currencies: Array<any> = [];\n @State() hasError: boolean = false;\n @State() errorMessage: string;\n\n\n\n /**\n * Current language (existing or newly selected)\n */\n @Prop({ mutable: true, reflect: true }) language: string = salla.config.get('user.language_code');\n\n /**\n * Current currency (existing or newly selected)\n */\n @Prop({ mutable: true, reflect: true }) currency: string = salla.config.get('user.currency_code');\n\n @Element() host: HTMLElement;\n\n /**\n * open the component\n */\n @Method()\n async open() {\n this.modal.open()\n return await salla.api.withoutNotifier(() => this.getLanguages())\n .then(() => this.getCurrencies())\n .then(() => {\n if (this.languages.length < 2 && this.currencies.length < 2) {\n this.modal.close();\n }\n })\n .catch(e => {\n console.log(e)\n this.hasError = true;\n this.errorMessage = e.response?.data?.error?.message || e.response?.data;\n })\n .finally(() => this.modal.stopLoading());\n }\n\n /**\n * Hide the component\n */\n @Method()\n async close() {\n return this.modal.close();\n }\n\n private async getLanguages() {\n this.language = this.language || salla.config.get('user.language_code');\n return this.languages.length > 1 ? null : await salla.config.languages().then(data => this.languages = data);\n }\n\n private async getCurrencies() {\n this.currency = this.currency || salla.config.get('user.currency_code');\n return this.currencies.length > 1 ? null : await salla.config.currencies().then(data => this.currencies = Object.values(data || {}));\n }\n\n private onChangeCurrency(event) {\n this.currency = event.target.value;\n }\n\n private onChangeLanguage(event) {\n this.language = event.target.value;\n }\n\n /**\n * Change currency and language to the selected ones.\n */\n @Method()\n async submit() {\n let url: string;\n this.btn.load()\n .then(() => {\n if (!this.currency) {\n salla.log('There is no currency!');\n return;\n }\n if (this.currency === salla.config.get('user.currency_code', 'SAR')) {\n return;\n }\n url = window.location.href;\n return salla.currency.api.change(this.currency);\n })\n .then(() => {\n if (this.language !== salla.config.get('user.language_code', 'ar')) {\n url = salla.helpers.addParamToUrl('lang', this.language)\n }\n })\n .then(() => this.btn.stop())\n .then(() => this.close())\n .then(() => {\n if(url){\n window.location.href = url.replace(`/${salla.config.get('user.language_code')}/`,`/${this.language}/`);\n }\n });\n }\n\n render() {\n return (\n <salla-modal isLoading={true} class=\"s-hidden\" ref={modal => this.modal = modal as HTMLSallaModalElement} width=\"xs\">\n <div slot='loading'>\n <div class=\"s-localization-modal-skeleton\">\n <salla-skeleton width='25%' height='15px'></salla-skeleton>\n <div class=\"s-localization-modal-skeleton-content\">\n {[...Array(4)].map(() =>\n <div class=\"s-localization-modal-skeleton-item\">\n <div class=\"s-localization-modal-skeleton-item-flex\">\n <salla-skeleton type='circle' height='16px' width='16px'></salla-skeleton>\n <salla-skeleton height='10px' width='100px'></salla-skeleton>\n </div>\n <salla-skeleton height='15px' width='20px'></salla-skeleton>\n </div>\n )}\n </div>\n <salla-skeleton width='25%' height='15px'></salla-skeleton>\n <div class=\"s-localization-modal-skeleton-content\">\n {[...Array(4)].map(() =>\n <div class=\"s-localization-modal-skeleton-item\">\n <div class=\"s-localization-modal-skeleton-item-flex\">\n <salla-skeleton type='circle' height='16px' width='16px'></salla-skeleton>\n <salla-skeleton height='10px' width='100px'></salla-skeleton>\n </div>\n <salla-skeleton height='15px' width='20px'></salla-skeleton>\n </div>\n )}\n </div>\n <salla-skeleton height='40px' width='100%'></salla-skeleton>\n </div>\n </div>\n {!!this.hasError ?\n <salla-placeholder alignment=\"center\">\n <span slot=\"description\">{this.errorMessage}</span>\n </salla-placeholder> :\n <div class=\"s-localization-modal-inner\">\n {this.languages.length > 1 ?\n <div class=\"s-localization-modal-section\">\n <label class=\"s-localization-modal-title\">{salla.lang.get('common.titles.language')}</label>\n <div class=\"s-localization-modal-section-inner\">\n {this.languages.length < 6 || this.currencies.length == 1 ?\n this.languages.map(lang =>\n <div class=\"s-localization-modal-item\">\n <input class=\"s-localization-modal-input\" type=\"radio\"\n checked={this.language == lang.iso_code}\n onChange={() => this.language = lang.iso_code}\n name=\"language\"\n id={'lang-' + lang.code.toLowerCase()}\n value={lang.code} />\n <div class=\"s-localization-modal-label-slot\" id=\"language-slot\" innerHTML={this.languageSlot\n .replace(/\\{name\\}/g, lang.name)\n .replace(/\\{code\\}/g, lang.code)\n .replace(/\\{country_code\\}/g, lang.country_code)}></div>\n </div>\n ) :\n <select class=\"s-localization-modal-select\" name=\"language\" onChange={e => this.onChangeLanguage(e)}>\n {this.languages.map(lang =>\n <option value={lang.code} selected={this.language == lang.code}>{lang.name}</option>\n )}\n </select>\n }\n </div>\n </div>\n : ''\n }\n\n {this.currencies.length > 1 ?\n <div class=\"s-localization-modal-section\">\n <label class=\"s-localization-modal-title\">{salla.lang.get('common.titles.currency')}</label>\n <div class=\"s-localization-modal-section-inner\">\n {this.currencies.length < 6 || this.languages.length == 1 ?\n this.currencies.map(currency =>\n <div class=\"s-localization-modal-item\">\n <input class=\"s-localization-modal-input\" type=\"radio\"\n name=\"currency\"\n checked={this.currency == currency.code}\n onChange={() => this.currency = currency.code}\n id={'currency-' + currency.code}\n value={currency.code} />\n <div class=\"s-localization-modal-label-slot\" id=\"currency-slot\" innerHTML={this.currencySlot\n .replace(/\\{name\\}/g, currency.name)\n .replace(/\\{code\\}/g, currency.code)\n .replace(/\\{country_code\\}/g, currency.country_code)}></div>\n </div>\n ) :\n <select class=\"s-localization-modal-select\" name=\"currency\" onChange={e => this.onChangeCurrency(e)}>\n {this.currencies.map(currency =>\n <option value={currency.code} selected={this.currency == currency.code}>{currency.name}</option>\n )}\n </select>\n }\n </div>\n </div>\n : ''\n }\n <salla-button width=\"wide\" ref={btn => this.btn = btn} onClick={() => this.submit()}>\n {salla.lang.get('common.elements.ok')}\n </salla-button>\n </div>\n }\n </salla-modal>\n );\n }\n\n /**\n * to reduce dom levels we will move slot data into the parent dom\n */\n componentDidRender() {\n this.host.querySelectorAll('#currency-slot').forEach(el => el.replaceWith(el.firstChild));\n this.host.querySelectorAll('#language-slot').forEach(el => el.replaceWith(el.firstChild));\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-login-modal.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAY,eAIX;AAJD,WAAY,eAAe;EACvB,gCAAa,CAAA;EACb,oCAAiB,CAAA;EACjB,kCAAe,CAAA;AACnB,CAAC,EAJW,eAAe,KAAf,eAAe;;ACR3B,MAAM,kBAAkB,GAAG,EAAE;;MC2BhBA,iBAAe;EAC1B;;;;;;IAiCuB,oBAAe,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K,CAAC,QAAQ,EACxB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,EAAE,EAAE,GAAG,KAAK,CAAC,EAAE,EAAE,EACjB,KAAK,EAAC,2BAA2B,GAAE;MACvC,YAAM,KAAK,EAAC,6BAA6B,GAAE;KAC5C,CAAC,CACG,EAEP,uCAA8B,QAAQ,EAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,EACnE,GAAG,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAgB,EAClG,YAAM,IAAI,EAAC,oBAAoB,GAAE,CAC7B,CACF,CACM,EACd;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SallaLoginModal","EmailIcon"],"sources":["./src/components/salla-login-modal/intefaces.ts","./src/components/salla-login-modal/salla-login-modal.scss?tag=salla-login-modal","./src/components/salla-login-modal/salla-login-modal.tsx"],"sourcesContent":["export interface CustomField {\n id: number;\n label: string;\n description: string;\n type: string;\n required: boolean;\n}\n\nexport enum CustomFieldType {\n TEXT = 'text',\n NUMBER = 'number',\n PHOTO = 'photo'\n}","/*\n* Salla Login Component: login popup modal\n* You can use these classes to target the elements in the component.\n*/\n\n.s-login-modal {\n &-sub-title {\n\n }\n &-main-btn {\n \n }\n &-main-btn-icon {\n\n }\n &-main-btn-text {\n\n }\n &-main-btn-arrow {\n\n }\n &-label {\n\n }\n &-input {\n\n }\n &-otp-input {\n\n }\n &-link {\n\n }\n &-error-message {\n\n }\n &-wrapper {\n\n }\n &-tab {\n\n }\n &-active {\n\n }\n &-unactive {\n\n }\n}\n","import {Component, Element, h, Listen, Method, Prop, State} from '@stencil/core';\nimport UserIcon from \"../../assets/svg/user.svg\";\nimport PhoneIcon from \"../../assets/svg/phone.svg\";\nimport EmailIcon from \"../../assets/svg/mail.svg\";\nimport CameraIcon from '../../assets/svg/camera.svg';\nimport KeyboardArrowRightIcon from \"../../assets/svg/keyboard_arrow_right.svg\";\nimport ArrowRightIcon from \"../../assets/svg/arrow-right.svg\";\nimport Helper from '../../Helpers/Helper';\nimport {CustomField, CustomFieldType} from './intefaces';\n\n/**\n * @slot footer - The footer of modal\n * @slot before-login-type - placeholder position\n * @slot after-login-type - placeholder position\n * @slot before-login-mobile - placeholder position\n * @slot after-login-mobile - placeholder position\n * @slot before-login-email - placeholder position\n * @slot after-login-email - placeholder position\n * @slot before-registration - placeholder position\n * @slot after-registration - placeholder position\n */\n@Component({\n tag: 'salla-login-modal',\n styleUrl: 'salla-login-modal.scss'\n})\n\n\nexport class SallaLoginModal {\n constructor() {\n\n this.title = this.host.title || salla.lang.get('blocks.header.login');\n this.host.removeAttribute('title');\n\n this.emailErrorMsg = salla.lang.get('common.elements.email_is_valid');\n this.firstNameErrorMsg = salla.lang.get('common.errors.field_required', {attribute: salla.lang.get('pages.profile.first_name')});\n this.lastNameErrorMsg = salla.lang.get('common.errors.field_required', {attribute: salla.lang.get('pages.profile.last_name')});\n\n salla.lang.onLoaded(() => {\n this.translationLoaded = true;\n this.title = salla.lang.get('blocks.header.login');\n this.dragAndDrop = salla.lang.get('common.uploader.drag_and_drop');\n this.browseFromFiles = salla.lang.get('common.uploader.browse');\n this.updateTranslations();\n });\n\n salla.event.on('login::open', (event) => this.open(event));\n salla.onReady( () => {\n this.isEmailAllowed = salla.config.get('store.settings.auth.email_allowed', this.isEmailAllowed);\n this.isMobileAllowed = salla.config.get('store.settings.auth.mobile_allowed', this.isMobileAllowed);\n this.isEmailRequired = salla.config.get('store.settings.auth.is_email_required', this.isEmailRequired);\n });\n }\n\n @Element() host: HTMLElement;\n /**\n * Does the merchant allow to login using email\n */\n @Prop({mutable: true}) isEmailAllowed: boolean ;\n /**\n * Does the merchant/current location for visitor allow to login using mobile, By default outside KSA is `false`\n */\n @Prop({mutable: true}) isMobileAllowed: boolean = true;\n /**\n * Does the merchant require registration with email & mobile\n */\n @Prop({mutable: true}) isEmailRequired: boolean = false;\n\n /**\n * Once the api verify success, it will be login the customer in web pages\n */\n @Prop({reflect: true}) supportWebAuth: boolean = true;\n\n private modal: HTMLSallaModalElement;\n private homeTab: HTMLDivElement;\n private mobileTab: HTMLDivElement;\n private emailTab: HTMLDivElement;\n private verifyTab: HTMLSallaVerifyElement;\n private registrationTab: HTMLDivElement;\n private regTelInput: HTMLSallaTelInputElement;\n private regEmail: HTMLInputElement;\n private customFieldsWrapper: HTMLDivElement;\n private loginTelInput: HTMLSallaTelInputElement;\n private loginEmail: HTMLInputElement;\n private firstName: HTMLInputElement;\n private lastName: HTMLInputElement;\n private smsBtn: HTMLSallaButtonElement;\n private emailBtn: HTMLSallaButtonElement;\n private regBtn: HTMLSallaButtonElement;\n\n @State() currentTabName = 'home'\n @State() regType: 'phone' | 'email' = 'phone';\n\n\n @State() translationLoaded: boolean = false;\n @State() title: string;\n @State() emailErrorMsg: string;\n @State() firstNameErrorMsg: string;\n @State() lastNameErrorMsg: string;\n\n @State() dragAndDrop: string = salla.lang.get('common.uploader.drag_and_drop');\n @State() browseFromFiles: string = salla.lang.get('common.uploader.browse');\n @State() customFields: CustomField[] = [];\n\n private customFieldsValues: Object = {};\n @State() uploadedImage: string = undefined;\n\n @Listen('verified', {target: 'window'})\n /**\n * @param {CustomEvent|{details:{case:'new_customer'|'authenticated', redirect_url:string|null}}} event\n */\n onVerified(event) {\n salla.log('verified', event);\n //there is a case when force login is activated & is new user, it will return case inside error key., so cover it.\n let verifyCase = event.detail?.data.case || event.detail?.error.case;\n if (!verifyCase) {\n salla.log('verified but without case!');\n return;\n }\n\n if (verifyCase === \"new_customer\") {\n this.customFields = event.detail?.data?.custom_fields || [];\n return this.showTab(this.registrationTab);\n }\n\n if (!salla.auth.canRedirect()) {\n salla.log('Will not auto redirect or reload, due to `salla.auth.canRedirect()`');\n this.modal.close();\n return;\n }\n\n if (event.detail.data.redirect_url) {\n return window.location.href = event.detail.data.redirect_url;\n }\n\n /**\n * we don't want to reload the page if this is not web auth\n * because we'll need the token in the page itself and its there\n * todo :: store the user data in storage for non-web auth and set the config.user from it\n */\n if (this.supportWebAuth) {\n window.location.reload();\n } else {\n this.modal.close();\n }\n }\n\n updateTranslations() {\n this.emailErrorMsg = salla.lang.get('common.elements.email_is_valid');\n this.firstNameErrorMsg = salla.lang.get('common.errors.field_required', {attribute: salla.lang.get('pages.profile.first_name')});\n this.lastNameErrorMsg = salla.lang.get('common.errors.field_required', {attribute: salla.lang.get('pages.profile.last_name')});\n this.modal?.setTitle(this.title);\n }\n\n /**\n * Open login component\n */\n @Method()\n // @ts-ignore\n async open(event = null) {\n // todo :: support change the settings from event details\n // if(event && event.hasOwnProperty('isEmailAllowed')){\n // this.isEmailAllowed = event?.isEmailAllowed;\n // }\n //\n // if(event && event.hasOwnProperty('isMobileAllowed')){\n // this.isMobileAllowed = event?.isMobileAllowed;\n // }\n\n if (this.isEmailAllowed && this.isMobileAllowed) {\n this.showTab(this.homeTab);\n } else if (this.isEmailAllowed) {\n this.showTab(this.emailTab);\n } else if (this.isMobileAllowed) {\n this.showTab(this.mobileTab);\n }\n return this.modal.open();\n }\n\n private showTab(tab, evt?) {\n evt?.preventDefault();\n this.currentTabName = tab.getAttribute('data-name');\n\n // todo:: use better way for resize the modal\n // setTimeout(() => this.modal.querySelector('.s-login-modal-wrapper')?.setAttribute('style', 'height:' + tab?.scrollHeight + 'px'));\n\n if ([this.mobileTab, this.emailTab].includes(tab)) {\n this.regType = tab === this.mobileTab ? 'phone' : 'email';\n }\n\n const input = tab.querySelector('input[type=\"tel\"], input[type=\"email\"]');\n input && setTimeout(() => {\n input.focus();\n }, 100); \n\n this.modal?.setTitle(this.currentTabName === 'registration' ? salla.lang.get('common.titles.registration') : this.title);\n\n return this;\n }\n\n private typing = (e, submitMethod = null) => {\n const error = e.target.nextElementSibling;\n e.target.classList.remove('s-has-error');\n error?.classList.contains('s-login-modal-error-message') && (error.innerText = '');\n //it was sending two requests for send two verification requests\n submitMethod && e.key == 'Enter' && submitMethod();\n }\n\n private loginBySMS = async (event = null) => {\n event?.preventDefault();\n const {phone, countryCode} = await this.loginTelInput.getValues();\n const isPhoneValid = await this.loginTelInput.isValid();\n if (!isPhoneValid) {\n return;\n }\n\n this.login(this.smsBtn, {type: 'mobile', phone: phone, country_code: countryCode});\n\n return false;\n }\n\n private loginByEmail = (event = null) => {\n event?.preventDefault();\n if (!Helper.isValidEmail(this.loginEmail.value)) {\n this.validateField(this.loginEmail, this.emailErrorMsg);\n return;\n }\n\n this.login(this.emailBtn, {type: 'email', email: this.loginEmail.value});\n }\n\n private login(btn: HTMLSallaButtonElement, data) {\n btn.load()\n .then(() => btn.disable())\n .then(() => salla.auth.api.login(data))\n .then(() => this.showTab(this.verifyTab))\n .then(() => this.verifyTab.open(data))\n .finally(() => btn.stop() && btn.enable());\n }\n\n private newUser = async () => {\n const {\n phone: regPhone,\n countryCode\n } = this.regType == \"email\" ? await this.regTelInput.getValues() : await this.loginTelInput.getValues(),\n emailValue = this.regEmail.value || this.loginEmail?.value\n await this.newUserValidation();\n await this.regBtn.load();\n await this.regBtn.disable();\n\n let data: any = {\n first_name: this.firstName.value,\n last_name: this.lastName.value,\n phone: regPhone || this.loginTelInput.phone,\n country_code: countryCode,\n verified_by: this.regType,\n custom_fields: this.customFieldsValues,\n };\n emailValue && (data = {...data, email: emailValue});\n this.verifyTab.getCode()\n .then(code => salla.auth.api.register({...data, code}))\n .then(() => salla.auth.canRedirect && window.location.reload())\n .catch((error) => {\n salla.logger.error(error);\n this.regBtn.stop() && this.regBtn.enable()\n })\n }\n\n private async newUserValidation() {\n const isLogByPhone = this.regType == \"phone\",\n isLogByEmail = this.regType == \"email\",\n emailValue = this.regEmail.value || (isLogByEmail && this.loginEmail.value),\n isEmailValid = Helper.isValidEmail(emailValue),\n isFirstNameValid = this.firstName.value.length > 0,\n isLastNameValid = this.lastName.value.length > 0,\n isPhoneValid = await this.regTelInput.isValid() || isLogByPhone && await this.loginTelInput.isValid(),\n emailValidation = (emailValue && isEmailValid) || (!emailValue && !this.isEmailRequired);\n\n // Custom Fields Validation\n var isCustomFieldValid = true;\n //we should make sure that there is text nodes between children\n this.customFieldsWrapper.childNodes\n .forEach((field: HTMLSallaFileUploadElement | HTMLInputElement) => {\n this.customFieldsValues[field.id] = field['value'];\n if (!field.required || this.customFieldsValues[field.id].length) {\n return;\n }\n isCustomFieldValid = false;\n const errorMsg: string = salla.lang.get('common.errors.field_required', {attribute: field.title});\n this.validateField(field, errorMsg)\n });\n\n if (emailValidation && isPhoneValid && isFirstNameValid && isLastNameValid && isCustomFieldValid) return;\n !isEmailValid && this.validateField(this.regEmail, this.emailErrorMsg);\n !isFirstNameValid && this.validateField(this.firstName, this.firstNameErrorMsg);\n !isLastNameValid && this.validateField(this.lastName, this.lastNameErrorMsg);\n throw 'Please insert required fields';\n }\n\n private getFilepondPlaceholder() {\n return `<div class=\"s-login-modal-filepond-placeholder\"><span class=\"s-login-modal-filepond-placeholder-icon\">${CameraIcon}</span><p class=\"s-login-modal-filepond-placeholder-text\">${this.dragAndDrop}</p> <span class=\"filepond--label-action\">${this.browseFromFiles}</span></div>`\n }\n\n // eslint-disable-next-line @stencil/own-methods-must-be-private\n validateField(field: HTMLInputElement | HTMLSallaFileUploadElement, errorMsg: string) {\n field.classList.add('s-has-error');\n field.nextElementSibling['innerText'] = '* ' + errorMsg;\n }\n\n generateTabClasses(tabName) {\n return {\n 's-login-modal-tab': tabName !== 'registration' && tabName !== 'otp',\n \"s-hidden\": this.currentTabName !== tabName,\n \"s-show\": this.currentTabName === tabName,\n 's-login-modal-unactive': tabName !== 'registration' && tabName !== 'otp' && this.currentTabName !== tabName,\n 's-login-modal-active': tabName !== 'registration' && tabName !== 'otp' && this.currentTabName === tabName\n }\n }\n\n generateRegClasses(regType) {\n return {\n \"mb-1.5\": true,\n \"s-hidden\": this.regType === regType\n }\n }\n\n render() {\n // @ts-ignore\n // @ts-ignore\n return (\n <salla-modal class=\"s-login-modal\" modal-title={this.title} ref={modal => this.modal = modal} width=\"xs\">\n <span slot='icon' class=\"s-login-modal-header-icon\" innerHTML={UserIcon}/>\n <div class=\"s-login-modal-wrapper\">\n\n {/* Tab 1 (Select Login Type)*/}\n {this.isEmailAllowed && this.isMobileAllowed ?\n <div class={this.generateTabClasses('home')} data-name=\"home\" ref={tab => this.homeTab = tab}>\n <p class=\"s-login-modal-sub-title\">{salla.lang.get('blocks.header.select_login_way')}</p>\n <slot name=\"before-login-type\"/>\n <a href=\"#\" class=\"s-login-modal-main-btn\" onClick={(evt) => this.showTab(this.mobileTab, evt)}>\n <span class=\"s-login-modal-main-btn-icon\" innerHTML={PhoneIcon}/>\n <span class=\"s-login-modal-main-btn-text\">{salla.lang.get('blocks.header.sms')}</span>\n <span class=\"s-login-modal-main-btn-arrow\" innerHTML={KeyboardArrowRightIcon}/>\n </a>\n <a href=\"#\" class=\"s-login-modal-main-btn\" onClick={(evt) => this.showTab(this.emailTab, evt)}>\n <span class=\"s-login-modal-main-btn-icon\" innerHTML={EmailIcon}/>\n <span class=\"s-login-modal-main-btn-text\">{salla.lang.get('common.elements.email')}</span>\n <span class=\"s-login-modal-main-btn-arrow\" innerHTML={KeyboardArrowRightIcon}/>\n </a>\n <slot name=\"after-login-type\"/>\n </div>\n : ''}\n\n\n {/* Tab 2 (Login By Mobile)*/}\n {this.isMobileAllowed ?\n <div class={this.generateTabClasses('login-phone')} data-name=\"login-phone\"\n ref={tab => this.mobileTab = tab}>\n <slot name=\"before-login-mobile\"/>\n <form onSubmit={(event) => this.loginBySMS(event)} method=\"POST\">\n <label class=\"s-login-modal-label\">{salla.lang.get('common.elements.mobile')}</label>\n <salla-tel-input tabindex=\"0\" ref={el => this.loginTelInput = el}\n onKeyDown={e => this.typing(e)}></salla-tel-input>\n {/* @ts-ignore */}\n <salla-button class=\"s-login-modal-enter-button\" type=\"submit\" loader-position='center' width=\"wide\" ref={b => this.smsBtn = b}>\n {salla.lang.get('blocks.header.enter')}\n </salla-button>\n </form>\n {this.isEmailAllowed ?\n <a href=\"#\" onClick={() => this.showTab(this.emailTab)}\n class=\"s-login-modal-link\">{salla.lang.get('blocks.header.login_by_email')}</a> : ''}\n <slot name=\"after-login-mobile\"/>\n </div> : ''}\n\n\n {/* Tab 3 (Login By Email)*/}\n {this.isEmailAllowed ?\n <div class={this.generateTabClasses('login-email')} data-name=\"login-email\"\n ref={tab => this.emailTab = tab}>\n <slot name=\"before-login-email\"/>\n <label class=\"s-login-modal-label\">{salla.lang.get('common.elements.email')}</label>\n <form onSubmit={() => this.loginByEmail(event)} method=\"POST\">\n <input type=\"email\" ref={el => this.loginEmail = el} onKeyDown={e => this.typing(e)}\n placeholder=\"your@email.com\"\n enterkeyhint=\"next\"\n class=\"s-login-modal-input s-ltr\"/>\n <span class=\"s-login-modal-error-message\"/>\n <salla-button loader-position='center' width=\"wide\" onClick={() => this.loginByEmail()}\n ref={b => this.emailBtn = b}>{salla.lang.get('blocks.header.enter')}</salla-button>\n </form>\n {this.isMobileAllowed ?\n <a href=\"#\" onClick={() => this.showTab(this.mobileTab)}\n class=\"s-login-modal-link\">{salla.lang.get('blocks.header.login_by_sms')}</a>\n : ''\n }\n <slot name=\"after-login-email\"/>\n </div> : ''}\n\n\n {/* Tab 4 (Verify OTP)*/}\n <salla-verify display=\"inline\" support-web-auth={this.supportWebAuth ? 'true' : 'false'}\n class={this.generateTabClasses('otp')} data-name=\"otp\" ref={tab => this.verifyTab = tab}\n autoReload={false}>\n <a onClick={() => this.showTab(this.regType == 'phone' ? this.mobileTab : this.emailTab)}\n class=\"s-verify-back\"\n innerHTML={ArrowRightIcon}\n slot=\"after-footer\"\n href=\"#\"/>\n </salla-verify>\n\n {/* Tab 5 (Register New User)*/}\n <div data-name=\"registration\" class={this.generateTabClasses('registration')}\n ref={tab => this.registrationTab = tab}>\n <slot name=\"before-registration\"/>\n <div>\n <label class=\"s-login-modal-label\">{salla.lang.get('blocks.header.your_name')}</label>\n <input type=\"text\" class=\"s-login-modal-input\" ref={el => this.firstName = el}\n onKeyDown={e => this.typing(e, this.newUser)}\n placeholder={salla.lang.get('pages.profile.first_name')}/>\n <span class=\"s-login-modal-error-message\"/>\n </div>\n\n <div>\n <label class=\"s-login-modal-label\">{salla.lang.get('pages.profile.last_name')}</label>\n <input type=\"text\" class=\"s-login-modal-input\" ref={el => this.lastName = el}\n onKeyDown={e => this.typing(e, this.newUser)}\n placeholder={salla.lang.get('pages.profile.last_name')}/>\n <span class=\"s-login-modal-error-message\"/>\n </div>\n\n <div class={this.generateRegClasses('phone')}>\n <label class=\"s-login-modal-label\">{salla.lang.get('common.elements.mobile')}</label>\n <salla-tel-input ref={el => this.regTelInput = el}\n onKeyDown={e => this.typing(e, this.newUser)}></salla-tel-input>\n </div>\n\n <div class={this.generateRegClasses('email')}>\n <label class=\"s-login-modal-label\">{salla.lang.get('common.elements.email')}</label>\n <input type=\"email\" ref={el => this.regEmail = el} onKeyDown={e => this.typing(e, this.newUser)}\n placeholder=\"your@email.com\"\n class=\"s-login-modal-input s-ltr\"/>\n <span class=\"s-login-modal-error-message\"/>\n </div>\n <div class=\"s-login-modal-custom-fields\" ref={el => this.customFieldsWrapper = el}>{\n this.customFields.map((field: CustomField) => [\n <label class=\"s-login-modal-label\">{field.label}</label>,\n field.type === CustomFieldType.PHOTO\n ? <salla-file-upload\n name=\"image\"\n instant-upload\n id={`${field.id}`}\n title={field.label}\n required={field.required}\n url={salla.url.get('upload-image')}\n // onUploaded={}\n labelIdle={this.getFilepondPlaceholder()}/>\n : <input\n type=\"text\"\n onKeyDown={e => this.typing(e, this.newUser)}\n onInput={el => field.type == CustomFieldType.NUMBER ? salla.helpers.inputDigitsOnly(el.target) : {}}\n placeholder={field.description}\n required={field.required}\n title={field.label}\n id={`${field.id}`}\n class=\"s-login-modal-input s-ltr\"/>,\n <span class=\"s-login-modal-error-message\"/>\n ])\n }</div>\n\n <salla-button loader-position='center' width=\"wide\" onClick={() => this.newUser()}\n ref={b => this.regBtn = b}>{salla.lang.get('blocks.header.register')}</salla-button>\n <slot name=\"after-registration\"/>\n </div>\n </div>\n </salla-modal>\n );\n }\n}\n\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-loyalty-prize-item.js","mappings":";;;;;AAAA,MAAM,wBAAwB,GAAG,2JAA2J;;MCQ/KA,uBAAqB;;;;;;EAY9B,gBAAgB;IACZ,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GACzC;EAED,MAAM;IACF,QACI,EAAC,IAAI,QACD,WAAK,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,IAC1C,WAAK,KAAK,EAAC,4BAA4B,EAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,GAAI,EACrF,WAAK,KAAK,EAAC,4BAA4B,IAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAO,EAC9D,WAAK,KAAK,EAAC,+BAA+B,IAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAO,EACxE,WAAK,KAAK,EAAC,6BAA6B,IAAE,IAAI,CAAC,IAAI,CAAC,WAAW,YAAc,CAC3E,CACH,EACT;GACL;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SallaLoyaltyPrizeItem"],"sources":["./src/components/salla-loyalty/salla-loyalty-prize-item.scss?tag=salla-loyalty-prize-item","./src/components/salla-loyalty/salla-loyalty-prize-item.tsx"],"sourcesContent":["\nsalla-loyalty-prize-item:hover {\n box-shadow: 0 5px 15px 1px rgb(0 0 0 / 4%)!important;\n}\n\n","import { Component, h, Prop, Host, Event, EventEmitter } from '@stencil/core';\nimport { Item } from \"./loyalty-schema\"\n\n\n@Component({\n tag: 'salla-loyalty-prize-item',\n styleUrl: 'salla-loyalty-prize-item.scss',\n})\nexport class SallaLoyaltyPrizeItem {\n\n /**\n * Prize item to be displayed in this component.\n */\n @Prop() item: Item;\n\n /**\n * Event emmited when the user select this item.\n */\n @Event() prizeItemSelected: EventEmitter<Item>\n\n onPrizeItemClick() {\n this.prizeItemSelected.emit(this.item)\n }\n\n render() {\n return (\n <Host>\n <div onClick={this.onPrizeItemClick.bind(this)}>\n <img class=\"s-loyalty-prize-item-image\" src={this.item.image} alt={this.item.name} />\n <div class=\"s-loyalty-prize-item-title\">{this.item.name}</div>\n <div class=\"s-loyalty-prize-item-subtitle\">{this.item.description}</div>\n <div class=\"s-loyalty-prize-item-points\">{this.item.cost_points} Points</div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-loyalty.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,EAAE;;MCebA,cAAY;EAEvB;;;IAsBS,mBAAc,GAAmB,SAAS,CAAC;IAC3C,kBAAa,GAAY,KAAK,CAAC;IAC/B,iBAAY,GAAqB,SAAS,CAAC;IAC3C,oBAAe,GAAY,KAAK,CAAC;IACjC,gBAAW,GAAY,KAAK,CAAC;IAC7B,aAAQ,GAAY,KAAK,CAAC;;;;IAyB3B,eAAU,GAAY,IAAI,CAAC;;;;IAK3B,gBAAW,GAAY,IAAI,CAAC;;;;IAK5B,iBAAY,GAAY,KAAK,CAAC;IA7DpC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAEnD,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;MAC1B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;KACxB,CAAC,CAAA;IAEF,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;MAClB,IAAI,CAAC,YAAY,GAAG,KAAK,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,CAAC,YAAY,GAAG,YAAM,IAAI,EAAC,aAAa,IAAE,IAAI,CAAC,YAAY,CAAQ,GAAG,EAAE,CAC7D,CAEZ;KACf,CAAC;GACH;EAED,gBAAgB;IACd,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAA;GACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SallaLoyalty","CancelIcon","Star2"],"sources":["./src/components/salla-loyalty/salla-loyalty.scss?tag=salla-loyalty","./src/components/salla-loyalty/salla-loyalty.tsx"],"sourcesContent":["","import {Item, LoyaltyProgram, Prize} from './loyalty-schema';\nimport {Component, h, Method, Prop, State} from '@stencil/core';\nimport Star2 from '../../assets/svg/star2.svg';\nimport Star3 from '../../assets/svg/star3.svg';\nimport CancelIcon from '../../assets/svg/cancel.svg';\nimport GiftImg from '../../assets/svg/flat.svg';\n\n/**\n * @slot widget - When used, will activate the component and needs to emit `loyalty::open` event to open the modal. If not provided the default value will be used.\n * @slot points-applied-widget - Widget to show information about the already exchanged points. It should have it's own resetting action and call the `resetExchange` method. If not provided, it will use the default value.\n */\n@Component({\n tag: 'salla-loyalty',\n styleUrl: 'salla-loyalty.scss',\n})\nexport class SallaLoyalty {\n\n constructor() {\n salla.event.on('loyalty::open', () => this.open());\n\n salla.auth.event.onLoggedIn(() => {\n this.is_loggedin = true\n })\n\n salla.lang.onLoaded(() => {\n this.guestMessage = salla.lang.get('pages.loyalty_program.guest_message');\n this.translationLoaded = true;\n })\n\n salla.cart.event.onUpdated(cart => {\n this.prizePoints = cart.loyalty.prize?.points;\n this.prizeTitle = cart.loyalty.prize?.title;\n this.customerPoints = cart.loyalty.customer_points || this.customerPoints;\n })\n }\n\n private modal: HTMLSallaModalElement;\n private confirmationModal: HTMLSallaModalElement;\n\n @State() loyaltyProgram: LoyaltyProgram = undefined;\n @State() buttonLoading: boolean = false;\n @State() selectedItem: Item | undefined = undefined;\n @State() askConfirmation: boolean = false;\n @State() is_loggedin: boolean = false;\n @State() hasError: boolean = false;\n\n @State() errorMessage: string;\n\n //todo:: drop it\n @State() translationLoaded: boolean;\n\n /**\n * The exchanged prize point\n */\n @Prop({mutable: true, reflect: true}) prizePoints: string | number;\n\n /**\n * Available customer points with which they can exchange.\n */\n @Prop({mutable: true, reflect: true}) customerPoints: number;\n\n /**\n * The prize title\n */\n @Prop({mutable: true, reflect: true}) prizeTitle: string;\n\n /**\n * Does the merchant allow to login using email\n */\n @Prop() allowEmail: boolean = true;\n\n /**\n * Does the merchant/current location for visitor allow to login using mobile, By default outside KSA is `false`\n */\n @Prop() allowMobile: boolean = true;\n\n /**\n * Does the merchant require registration with email & mobile\n */\n @Prop() requireEmail: boolean = false;\n\n //todo:: change it to state\n /**\n * Message to show for guest users.\n */\n @Prop({mutable: true}) guestMessage: string\n\n\n private setSelectedPrizeItem(item) {\n if (!this.selectedItem || this.selectedItem?.id != item.id) {\n this.selectedItem = item;\n } else {\n this.selectedItem = undefined\n }\n }\n\n private handleLongText(text: string) {\n if (text.length > 150) {\n return text.substring(0, 150) + '...';\n }\n\n return text;\n }\n\n private prizeItem(item: Item) {\n let klass = {\n 's-loyalty-prize-item-selected': !!this.selectedItem && this.selectedItem?.id == item.id,\n \"s-loyalty-prize-item\": true\n }\n return <div onClick={() => this.setSelectedPrizeItem(item)} class={klass}>\n <img class=\"s-loyalty-prize-item-image\" src={item.image} alt={item.name}/>\n <div class=\"s-loyalty-prize-item-title\">{item.name}</div>\n <div class=\"s-loyalty-prize-item-subtitle\">{this.handleLongText(item.description)}</div>\n <div class=\"s-loyalty-prize-item-points\">\n {item.cost_points} {salla.lang.get('pages.loyalty_program.point')}\n <div class=\"s-loyalty-prize-item-check\">\n <div></div>\n </div>\n </div>\n </div>\n }\n\n private getConfirmationModal() {\n return [\n <salla-placeholder alignment=\"center\" icon={Star3} class=\"s-loyalty-confirmation-modal-content\">\n <div slot=\"title\" class=\"s-loyalty-confirmation-title\">\n {salla.lang.get('pages.loyalty_program.exchange_points')}\n </div>\n <div slot=\"description\">\n {salla.lang.get('pages.loyalty_program.are_you_sure_to_exchange')} ( <strong>{this.selectedItem?.cost_points}</strong> {salla.lang.get('pages.loyalty_program.point')} ) {salla.lang.get('pages.loyalty_program.for')} ( <strong>{this.selectedItem?.name}</strong> )\n </div>\n </salla-placeholder>,\n <div class=\"s-loyalty-confirmation-actions\">\n <salla-button fill='outline' width=\"wide\"\n onClick={() => this.cancelProcess()}>{salla.lang.get('pages.loyalty_program.cancellation')}</salla-button>\n <salla-button loading={this.buttonLoading} width=\"wide\"\n onClick={() => this.exchangeLoyaltyPoint()}>{salla.lang.get('pages.loyalty_program.confirm')}</salla-button>\n </div>\n ]\n }\n\n private getAfterExchangeUI() {\n return <slot name='points-applied-widget'>\n <salla-list-tile class=\"s-loyalty-after-exchange\">\n <div slot=\"title\" class=\"s-loyalty-after-exchange-title\">\n {this.prizeTitle} - {this.prizePoints} {salla.lang.get('pages.loyalty_program.point')}\n </div>\n <div slot='action' class=\"s-loyalty-after-exchange-action\">\n <salla-button class=\"s-loyalty-after-exchange-reset\" shape=\"icon\" fill='outline' color=\"danger\" size=\"small\"\n onClick={() => this.resetExchange()}>\n <span innerHTML={CancelIcon}/>\n </salla-button>\n </div>\n </salla-list-tile>\n </slot>\n }\n\n /**\n * Show loyalty modal\n */\n @Method()\n async open() {\n if (!this.is_loggedin) return salla.event.dispatch('login::open');\n this.modal?.open()\n return await salla.loyalty.getProgram()\n .then(response => this.loyaltyProgram = response.data)\n .catch(e => {\n this.hasError = true;\n this.errorMessage = e.response?.data?.error?.message || e.response?.data;\n })\n .finally(() => this.modal?.stopLoading())\n\n }\n\n /**\n *\n * Hide loyalty modal\n */\n @Method()\n async close() {\n return this.modal.close();\n }\n\n /**\n *\n * Cancel Exchanged prizes\n */\n @Method()\n async resetExchange() {\n return await salla.loyalty.reset();\n }\n\n /**\n * Open Confirmation modal\n */\n private async openConfirmation() {\n return await this.modal.close()\n .then(() => this.confirmationModal?.open())\n .catch(e => console.log(e))\n }\n\n /**\n * Cancel process\n */\n private async cancelProcess() {\n return await this.confirmationModal.close()\n .then(() => this.selectedItem = null)\n .catch(e => console.log(e))\n }\n\n /**\n * Exchange loyalty points with the selected prize item\n * @param {number} loyalty_prize_id\n *\n */\n @Method()\n async exchangeLoyaltyPoint() {\n this.buttonLoading = true;\n return await salla.loyalty.exchange(this.selectedItem?.id)\n .then(() => this.selectedItem.key == \"FREE_PRODUCT\" && salla.url.is_page('cart') && window.location.reload())\n .finally(() => {\n this.buttonLoading = false;\n this.cancelProcess()\n }\n )\n }\n\n render() {\n\n // A. when the exchange is done, and we have the final prize points to show it in cart page\n if (this.prizePoints) {\n return this.getAfterExchangeUI();\n }\n\n //todo:: change all translations to states\n return [\n <slot name='widget'>\n {/* B. he wants to use the default widget by pass the customer points . */}\n {\n this.customerPoints ?\n <salla-list-tile class='s-loyalty-widget'>\n <div slot=\"icon\" class=\"s-loyalty-widget-icon\" innerHTML={Star2}/>\n <div slot=\"subtitle\">\n {this.customerPoints ? salla.lang.get('pages.loyalty_program.cart_total_point_summary', {\"balance\": this.customerPoints}) : this.guestMessage}\n <salla-button shape=\"link\" color=\"primary\" onClick={() => salla.event.dispatch(\"loyalty::open\")}>\n {this.customerPoints ? salla.lang.get('pages.loyalty_program.cart_point_exchange_now') : salla.lang.get('blocks.header.login')}\n </salla-button>\n </div>\n </salla-list-tile> :\n ''\n }\n </slot>,\n <salla-modal noPadding width=\"sm\"\n ref={modal => this.confirmationModal = modal}>\n {this.getConfirmationModal()}\n </salla-modal>,\n <salla-modal isLoading={true} has-skeleton={true} width=\"md\" ref={modal => this.modal = modal}>\n <div slot=\"loading\">\n <div class=\"s-loyalty-skeleton\">\n <salla-list-tile class=\"s-loyalty-header\">\n <div slot=\"icon\" class=\"s-loyalty-header-icon\">\n <salla-skeleton type=\"circle\" height='6rem' width='6rem'/>\n </div>\n\n <div slot=\"title\" class=\"s-loyalty-header-title mb-5\">\n <salla-skeleton height='15px' width='50%'/>\n </div>\n <div slot=\"subtitle\" class=\"s-loyalty-header-subtitle\">\n <salla-skeleton height='10px'/>\n <salla-skeleton height='10px' width='75%'/>\n </div>\n\n </salla-list-tile>\n <div class=\"s-loyalty-skeleton-cards\">\n {[...Array(3)].map(() =>\n <div class=\"s-loyalty-prize-item swiper-slide\">\n <salla-skeleton height='9rem'/>\n <div class=\"s-loyalty-prize-item-title\">\n <salla-skeleton height='15px' width='75%'/>\n </div>\n <div class=\"s-loyalty-prize-item-subtitle\">\n <salla-skeleton height='10px' width='50%'/>\n <salla-skeleton height='10px' width='25%'/>\n </div>\n <div class=\"s-loyalty-prize-item-points\">\n <salla-skeleton height='15px' width='100px'/>\n <div class=\"s-loyalty-prize-item-check\">\n <salla-skeleton height='1rem' width='1rem' type='circle'/>\n </div>\n </div>\n </div>\n )}\n </div>\n </div>\n </div>\n {\n !this.hasError && !!this.loyaltyProgram ?\n [\n <salla-list-tile id='s-loyalty-header' class=\"s-loyalty-header\">\n <div slot=\"icon\" class=\"s-loyalty-header-icon\" innerHTML={GiftImg}/>\n\n <div slot=\"title\" class=\"s-loyalty-header-title\">\n {this.loyaltyProgram.prize_promotion_title}\n </div>\n\n <div slot=\"subtitle\" class=\"s-loyalty-header-subtitle\">\n {this.loyaltyProgram.prize_promotion_description}\n </div>\n\n </salla-list-tile>,\n <salla-tabs>\n {this.loyaltyProgram.prizes.map((prize: Prize) =>\n <salla-tab-header slot=\"header\" name={prize.title}>\n <span>{prize.title}</span>\n </salla-tab-header>\n )}\n {this.loyaltyProgram.prizes.map((prize: Prize, index) =>\n <salla-tab-content slot=\"content\" name={prize.title}>\n <salla-slider\n class=\"s-loyalty-slider\"\n loop={false}\n controls-outer={true}\n id={'loyalty-popup-slider-' + index}\n type=\"carousel\">\n <div slot='items'>\n {prize.items.map((item: Item) =>\n this.prizeItem(item)\n )}\n </div>\n </salla-slider>\n </salla-tab-content>\n )}\n </salla-tabs>,\n <salla-button disabled={!this.selectedItem} width=\"wide\"\n class=\"s-loyalty-program-redeem-btn\"\n onClick={() => this.openConfirmation()}>{salla.lang.get('pages.loyalty_program.exchange_points')}</salla-button>,\n\n ]\n : <salla-placeholder class=\"s-loyalty-placeholder\" alignment=\"center\">\n {!!this.errorMessage ? <span slot=\"description\">{this.errorMessage}</span> : ''}\n </salla-placeholder>\n }\n </salla-modal>,\n ];\n }\n\n componentDidLoad() {\n this.is_loggedin = salla.config.isUser()\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-map.js","mappings":";;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|