@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-comment-form.entry.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,sBAAsB;;MCMrC,gBAAgB;EAE3B;;IA2BS,gBAAW,GAAW,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IACpE,eAAU,GAAW,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IA3BrE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;MAClB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAA;MAChE,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;KAC3D,CAAC,CAAC;IACH,KAAK,CAAC,OAAO,CAAC;MACZ,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;MACvD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;MAC1C,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,MAAM,GAAG,S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,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,IAClG,IAAI,CAAC,UAAU,CACH,CACX,CACF,CACF,CACD,GAAG,EAAE,CACP,EACP;GACH;;;;;;","names":[],"sources":["./src/components/salla-comment-form/salla-comment-form.scss?tag=salla-comment-form","./src/components/salla-comment-form/salla-comment-form.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import {Component, Host, State, h, Prop} from '@stencil/core';\n\n@Component({\n tag: 'salla-comment-form',\n styleUrl: 'salla-comment-form.scss',\n})\nexport class SallaCommentForm {\n\n constructor() {\n salla.lang.onLoaded(() => {\n this.placeholder = salla.lang.get('blocks.comments.placeholder')\n this.submitText = salla.lang.get('blocks.comments.submit')\n });\n salla.onReady(() => {\n this.canComment = salla.config.get('user.can_comment');\n this.itemId = salla.config.get('page.id');\n this.type = salla.url.is_page('page-single') ? 'page' : 'product';\n });\n }\n\n /**\n * Type of entity the comment is being submitted for. Defaults to `salla.url.is_page('page-single') ? 'page' : 'product'`\n */\n @Prop({mutable: true, reflect: true}) type: 'product' | 'page';\n\n /**\n * To show the avatar or not in the comment form\n */\n @Prop() showAvatar: boolean;\n\n /**\n * The ID of the item(as defined in the type), where the comment is for. defaults to `salla.config.get('page.id')`\n */\n @Prop({mutable: true, reflect: true}) itemId?: string | number;\n\n @State() placeholder: string = salla.lang.get('blocks.comments.placeholder');\n @State() submitText: string = salla.lang.get('blocks.comments.submit');\n @State() canComment: boolean;\n\n private commentField: HTMLTextAreaElement;\n private submitBtn: HTMLSallaButtonElement;\n private commentForm: HTMLFormElement;\n\n\n private submit() {\n if (!this.commentForm.reportValidity()) {\n salla.log('CommentForm:: validation error!');\n return;\n }\n this.submitBtn.load()\n .then(() => salla.comment.add({id: this.itemId, comment: this.commentField.value, type: this.type}))\n .finally(() => this.submitBtn.stop);\n }\n\n render() {\n return (\n <Host>\n {!!this.canComment ? <form ref={frm => this.commentForm = frm}>\n <div class=\"s-comment-form-wrapper\">\n {this.showAvatar ?\n <img class=\"s-comment-form-avatar\" src={salla.config.get('user.avatar')} alt=\"user avatar\"/> : ''}\n <div class=\"s-comment-form-content\">\n <textarea cols={30} rows={5} minlength=\"4\" maxlength=\"500\"\n ref={field => this.commentField = field}\n placeholder={this.placeholder}\n class=\"s-comment-form-input\"\n required/>\n <br/>\n <div class=\"s-comment-form-action\">\n <salla-button ref={btn => this.submitBtn = btn} loader-position='center' onClick={() => this.submit()}>\n {this.submitText}\n </salla-button>\n </div>\n </div>\n </div>\n </form> : ''}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-conditional-fields.entry.js","mappings":";;;;;MASa,sBAAsB;;;;EAIzB,cAAc,CAAC,QAAQ;IAC7B,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,6BAA6B,QAAQ,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAkB;MAC/F,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;MAC9B,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;MAC5C,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAC3B,CAAC,CAAC;GACJ;EAEO,aAAa,CAAC,KAAK;IACzB,KAAK,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK;;MAE7C,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;MACnC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;MAClC,IAAI,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,WAAW,EAAE,MAAK,QAAQ,EAAE;QAC9C,KAAK,CAAC,KAAK,GAAG,EAAE,CAAA;OACjB;MACD,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,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,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC5C,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC9B,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;OAC3B;KACF,CAAC,CAAC;GACN;EAED,kBAAkB;IAChB,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK;;;MAE3D,IAAI,UAAU,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;MACnF,IAAI,CAAC,UAAU,EAAE;QACf,OAAO;OACR;MAED,IAAI,CAAC,aAAa,CAAC;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG,UAAU,GAAG,IAAI,CAAC;OAChE,CAAC,CAAA;KACH,CAAC,CAAC;GACJ;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACH,eAAa,CACR,EACP;GACH;;;;;;","names":[],"sources":["./src/components/salla-conditional-fields/salla-conditional-fields.tsx"],"sourcesContent":["import { Component, Element, Host, Listen, h } from '@stencil/core';\n\n/**\n * its to easy to use, currenlty its support select & checkbox input as trigger for show/hide the dom\n * the dom you can put it like this data-show-when=\"{name of the field} {= or !=} {value of the field}\"\n */\n@Component({\n tag: 'salla-conditional-fields'\n})\nexport class SallaConditionalFields {\n\n @Element() host: HTMLElement;\n\n private hideAllOptions(optionId) {\n this.host.querySelectorAll(`[data-show-when^=\"options[${optionId}\"]`).forEach((field: HTMLElement) => {\n field.classList.add('hidden');\n this.hideAllOptions(field.dataset.optionId);\n this.disableInputs(field);\n });\n }\n\n private disableInputs(field) {\n field.querySelectorAll('[name]').forEach((input) => {\n\n input.setAttribute('disabled', '');\n input.removeAttribute('required');\n if (input?.tagName?.toLowerCase() === 'select') {\n input.value = ''\n }\n if (['checkbox'].includes(input.getAttribute('type')) && input.hasOwnProperty('checked')) {\n // @ts-ignore\n input.checked = false;\n }\n });\n }\n \n @Listen('change')\n changeHandler(event) {\n salla.event.emit('salla-onditional-fields::change', event);\n salla.log('Received the change event: ', event);\n\n if (!event.target || !['SELECT'].includes(event.target.tagName) && !['checkbox'].includes(event.target.getAttribute('type'))) {\n salla.log('Ignore the change because is not support input: ' + (event?.target?.tagName || 'N/A'));\n return;\n }\n\n // to extract the option id from the input name, the supported names are name[*] and name[*][]\n let optionId = event.target.name.replace('[]', '');\n let isMultiple = event.target.getAttribute('type') === 'checkbox';\n\n\n salla.log('Trying to find all the element with condition:', `[data-show-when^=\"${optionId}\"]`);\n\n this.host.querySelectorAll(`[data-show-when^=\"${optionId}\"]`)\n .forEach((field: HTMLElement) => {\n let isEqual = !field?.dataset.showWhen.includes('!=');\n let value = field?.dataset.showWhen.replace(/(.*)(=|!=)(.*)/gm, '$3').trim();\n // let isSelected = isMultiple ? event.target?.checked : value === event.target.value;\n let isSelected;\n\n if (isMultiple) {\n // @ts-ignore\n let selectedValues = Array.from(this.host.querySelectorAll(`input[name=\"${event.target.name}\"]:checked`), e => e?.value);\n isSelected = selectedValues.includes(value.toString());\n } else {\n isSelected = value === event.target.value;\n }\n\n salla.log('The input is ', (isMultiple ? 'Multiple' : 'Single'), ' value:', isSelected);\n\n let showTheInput = (isEqual && isSelected) || (!isEqual && !isSelected);\n if (showTheInput) {\n field.classList.remove('hidden');\n field.querySelectorAll('[name]').forEach((input) => {\n input.removeAttribute('disabled');\n\n //To handle focus on hidden input error\n if (!['checkbox'].includes(input.getAttribute('type')) && field.getElementsByClassName('required').length) {\n input.setAttribute('required', '');\n }\n });\n } else {\n this.hideAllOptions(field.dataset.optionId);\n field.classList.add('hidden');\n this.disableInputs(field);\n }\n });\n }\n\n componentDidRender() {\n this.host.querySelectorAll(`[data-show-when]`).forEach((field) => {\n // @ts-ignore\n let optionName = field?.dataset?.showWhen.replace(/(.*)(=|!=)(.*)/gm, '$1').trim();\n if (!optionName) {\n return;\n }\n\n this.changeHandler({\n target: this.host.querySelector('[name^=\"' + optionName + '\"]')\n })\n });\n }\n\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"salla-installment.entry.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,mvGAAmvG;;MCOlwG,gBAAgB;EAI3B;;IAHQ,uBAAkB,GAAY,KAAK,CAAC;IACpC,2BAAsB,GAAW,CAAC,CAAC;;;;IAqBnC,aAAQ,GAAW,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;;;;IAI1D,aAAQ,GAAW,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAtBhE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;MAClB,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;MACpE,IAAI,WAAW,EAAE;QACf,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;QACjE,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QAC/D,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;OAC1D;MACD,IAAI,CAAC,kBAAkB,EAAE,CAAC;KAC3B,CAAC,CAAC;GACJ;EAmBD,MAAM;IACJ,QACE,EAAC,IAAI,QACF,IAAI,CAAC,cAAc;MAClB,WAAK,KAAK,EAAC,uBAAuB,gBACjB,IAAI,CAAC,KAAK,mBACP,IAAI,CAAC,QAAQ,eACjB,IAAI,CAAC,QAAQ,uBACN,aAAa,GAC9B;QACJ,EAAE,EAEL,IAAI,CAAC,aAAa;MACjB,WAAK,EAAE,EAAC,mBAAmB,IACzB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,KAAK,GAAQ,QAAQ,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;MAC/D,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,6CAA6C,CAAC,GAAG,IAAI,CAAC;MACrG,IAAI,KAAK,EAAE;QACT,KAAK,CAAC,KAAK,GAAG,yCAAyC,CAAC;QACxD,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;OAChC;WAAM;QACL,IAAI,CAAC,iBAAiB,EAAE,CAAC;OAC1B;KACF,EAAE,IAAI,CAAC,sBAAsB,GAAG,GAAG,CAAC,CAAA;GACtC;;;;;;","names":[],"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-loyalty-prize-item.entry.js","mappings":";;;;;AAAA,MAAM,wBAAwB,GAAG,2JAA2J;;MCQ/K,qBAAqB;;;;;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":[],"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-product-options.entry.js","mappings":";;;;;;AAAA,IAAY,WAoBX;AApBD,WAAY,WAAW;EACrB,8BAAe,CAAA;EACf,4BAAa,CAAA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;;;;","names":[],"sources":["./src/components/salla-product-options/interfaces.ts","./src/components/salla-product-options/salla-product-options.scss?tag=salla-product-options","./src/components/salla-product-options/salla-product-options.tsx"],"sourcesContent":["export enum DisplayType {\n COLOR = \"color\",\n DATE = \"date\",\n DATETIME = \"datetime\",\n DONATION = \"donation\",\n IMAGE = \"image\",\n MULTIPLE_OPTIONS = \"multiple-options\",\n NUMBER = \"number\",\n SINGLE_OPTION = \"single-option\",\n SPLITTER = \"splitter\",\n TEXT = \"text\",\n TEXTAREA = \"textarea\",\n THUMBNAIL = \"thumbnail\",\n TIME = \"time\",\n RADIO = \"radio\",\n CHECKBOX = \"checkbox\",\n MAP = \"map\",\n FILE = \"file\", // similar to image type (file-uploader component)\n COLOR_PICKER = \"color_picker\"\n\n}\n\nexport interface ProductDetail {\n id: string;\n sku: string;\n name: string;\n description: string;\n url: string;\n promotion_title: string;\n subtitle: string;\n type: string;\n status: string;\n price: number;\n sale_price: number;\n regular_price: number;\n starting_price: null;\n quantity: number;\n max_quantity: number;\n discount_ends: number;\n is_taxable: boolean;\n has_read_more: boolean;\n can_add_note: boolean;\n can_show_remained_quantity: boolean;\n can_upload_file: boolean;\n has_custom_form: boolean;\n is_on_sale: boolean;\n is_hidden_quantity: boolean;\n is_available: boolean;\n is_out_of_stock: boolean;\n weight: null;\n calories: null;\n image: SimpleImage;\n brand: Brand;\n donation?: ProductDonation;\n images: Image[];\n tags: Tag[];\n notify_availability: null;\n rating: Rating;\n options: Option[];\n sold_quantity: number;\n category: Category;\n}\n\nexport interface SimpleImage {\n url: string;\n alt: string;\n}\n\nexport interface Category {\n name: string;\n url: string;\n icon: string;\n}\n\nexport interface ProductDonation {\n target_message?: string;\n collected_amount?: number;\n target_amount?: number;\n target_percent?: number;\n target_end_date?: string;\n can_donate: boolean;\n}\n\nexport interface Image {\n id: number;\n url: string;\n main: boolean;\n three_d_image_url: string;\n alt: string;\n video_url: string;\n type: string;\n sort: number;\n}\n\nexport interface Option {\n id: number;\n name: string;\n required: boolean;\n type: string;\n placeholder: string;\n option_type: string;\n not_same_day_order: boolean;\n availability_range: number;\n from_date_time: null;\n to_date_time: null;\n visibility_condition?: { option: number, operator: \"=\" | \"!=\", value: number };\n details?: Detail[];\n condition_attributes: string;\n value?: any;\n donation?: Donation\n}\n\nexport interface Donation {\n target_message?: string;\n target_date: string | \"2023-04-18\";\n target_end_date: string | \"2023-04-18\";\n target_amount: number;\n collected_amount: number;\n can_donate: boolean;\n}\n\nexport interface Detail {\n id: number;\n option_id: number;\n name: string;\n additional_price: number;\n option_value: null | string;\n image: null | string;\n color: null | string;\n is_out: boolean;\n skus_availability?: { [sku_id: number]: boolean };\n is_selected: boolean;\n}\n\nexport interface Brand {\n id: string;\n url: string;\n name: string;\n logo: string;\n}\n\nexport interface PreTaxPrice {\n amount: number;\n currency: Currency;\n}\n\nexport enum Currency {\n Sar = \"SAR\",\n}\n\nexport interface Promotion {\n title: string;\n sub_title: string;\n}\n\nexport interface Rating {\n count: number;\n stars: number;\n}\n\nexport interface Tag {\n name: string;\n url: string;\n}\n","\n.s-product-options{\n &-wrapper{\n\n }\n &-option-container{\n\n }\n &-option{\n\n }\n &-option-label{\n\n }\n &-option-content{\n\n }\n &-colors-wrapper{\n\n }\n &-date-element{\n\n }\n &-time-element{\n \n }\n &-datetime-element{\n\n }\n &-image-input{\n\n }\n &-multiple-options-wrapper{\n\n }\n &-splitter{\n\n }\n &-text{\n\n }\n &-textarea{\n\n }\n &-thumbnails-wrapper{\n\n }\n}","import {Component, Prop, h, State, Element, Host, Event, EventEmitter, Method} from '@stencil/core';\nimport {Option, DisplayType, Detail} from './interfaces';\nimport CheckCircleIcon from '../../assets/svg/check.svg';\nimport CameraIcon from '../../assets/svg/camera.svg';\nimport FileIcon from '../../assets/svg/file-upload.svg';\n\n\n@Component({\n tag: 'salla-product-options',\n styleUrl: 'salla-product-options.scss',\n})\nexport class SallaProductOptions {\n\n constructor() {\n this.canDisabled = !salla.config.get('store.settings.products.notify_options_availability');\n salla.lang.onLoaded(() => {\n this.outOfStockText = salla.lang.get(\"pages.products.out_of_stock\");\n this.donationAmount = salla.lang.get('pages.products.donation_amount');\n });\n\n if (this.options) {\n try {\n this.setOptionsData(JSON.parse(this.options));\n return;\n } catch (e) {\n salla.log('Bad json passed via options prop');\n }\n }\n if (!Array.isArray(this.optionsData)) {\n salla.log('Options is not an array[] ---> ', this.optionsData);\n this.setOptionsData([]);\n }\n\n if (this.productId && !salla.url.is_page('cart')) {\n salla.api.product.getDetails(this.productId, ['options']).then(resp => this.setOptionsData(resp.data.options));\n }\n }\n\n private setOptionsData(optionsData: Option[]) {\n this.optionsData = optionsData;\n let that = this\n this.optionsData[0]?.details?.forEach(function (detail) {\n Object.entries(detail.skus_availability || {})\n .filter(sku => !sku[1])\n .map(sku => that.outSkus.push(Number(sku[0])));\n });\n }\n\n\n @Element() host: HTMLElement;\n\n private fileTypes: Object = {\n pdf: 'application/pdf',\n png: 'image/png',\n jpg: 'image/jpeg',\n word: 'application/doc,application/ms-doc,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n exl: 'application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n txt: 'text/plain',\n };\n\n @State() optionsData: Option[];\n @State() outOfStockText: string = ''\n @State() donationAmount: string = salla.lang.get('pages.products.donation_amount')\n @State() selectedOptions: Array<any> = [];\n @State() canDisabled: boolean;\n @State() selectedSkus?: Array<string | number>;\n @State() selectedOutSkus?: Array<string | number>;\n private outSkus: Array<string | number> = [];\n\n\n /**\n * The id of the product to which the options are going to be fetched for.\n */\n @Prop() productId: number = salla.config.get('page.id');\n\n /**\n * Product detail information.\n */\n @Prop() options: string;\n\n /**\n * Get the id's of the selected options.\n * */\n @Method()\n async getSelectedOptionsData() {\n let selectedOptions = {}\n let formData = (this.host as any).getElementSallaData();\n formData.forEach(function (value, key) {\n key.startsWith('options[') && (selectedOptions[key.replace('options[', '').replace(']', '')] = value);\n });\n return selectedOptions;\n }\n\n /**\n * Report options form validity.\n * */\n @Method()\n async reportValidity() {\n let requiredElements: Array<HTMLInputElement> = this.host.querySelectorAll('[required]') as any;\n let pass = true;\n for (let i = 0; i < requiredElements.length; i++) {\n //if there is only one invalid option, return false\n if ('reportValidity' in requiredElements[i] && !requiredElements[i].reportValidity()) {\n pass = false;\n }\n }\n return pass;\n }\n\n /**\n * Return true if there is any out of stock options are selected and vise versa.\n * */\n @Method()\n async hasOutOfStockOption() {\n return this.selectedOptions.some(option => option.is_out) || (this.selectedSkus.length && this.selectedSkus.every(sku => this.outSkus.includes(sku)));\n }\n\n /**\n * Get selected options.\n * */\n @Method()\n async getSelectedOptions() {\n return this.selectedOptions;\n }\n\n /**\n * Get a specific option by its id.\n * */\n @Method()\n async getOption(option_id) {\n return this.optionsData.find(option => option.id === option_id);\n }\n\n /**\n * An event that emitted when any option is changed.\n */\n @Event() changed: EventEmitter;\n\n // @ts-ignore\n private invalidHandler(event, option: Option) {\n const closestProductOption = (event.target as HTMLInputElement).closest('.s-product-options-option') as HTMLElement;\n if (!salla.url.is_page('cart')) {\n closestProductOption.scrollIntoView({behavior: 'smooth', block: 'center'});\n }\n closestProductOption.classList.add('s-product-options-option-error');\n }\n\n private changedHandler(event, option) {\n let data = {event: event, option: option, detail: null};\n if (option.details) {\n let detail = option.details.find((detail) => {\n return Number(detail.id) === Number(event.target.value);\n });\n data.detail = detail\n }\n\n let optionElement = event.target.closest('.s-product-options-option');\n if (event.target.value \n || ((option.type == DisplayType.FILE || option.type == DisplayType.IMAGE) && event.type === 'added') \n || (option.type == DisplayType.MAP && event.type === 'selected' && (event.target.lat && event.target.lng))) {\n setTimeout(() => {\n optionElement.classList.remove('s-product-options-option-error');\n }, 200);\n }\n\n const index = this.selectedOptions.findIndex(option => option.option_id === data.option.id);\n index > -1 ? this.selectedOptions[index] = {\n ...data.detail,\n option_id: data.option.id\n } : this.selectedOptions.push({...data.detail, option_id: data.option.id})\n\n this.setSelectedSkus();\n this.handleRequiredMultipleOptions(option);\n this.changed.emit(data);\n salla.event.emit('product-options::change', data);\n }\n\n /**\n * loop throw all selected details, then get common sku, if it's only one, means we selected all of them;\n */\n private setSelectedSkus() {\n this.selectedSkus = this.selectedOptions.map(detail => Object.keys(detail.skus_availability || {}))\n .reduce((p, c) => p.filter(e => c.includes(e)))\n .map(sku => Number(sku));\n }\n\n private handleRequiredMultipleOptions(option) {\n if (option.type !== DisplayType.MULTIPLE_OPTIONS || !option.required) {\n return;\n }\n const optionContainer = this.host.querySelector(`[data-option-id=\"${option.id}\"]`);\n const hasChecked = optionContainer.querySelectorAll('input:checked').length;\n optionContainer.querySelectorAll('input').forEach(input => input.toggleAttribute('required', !hasChecked));\n }\n\n private getLatLng(value, type: 'lat' | 'lng') {\n return value\n ? value.split(',')[type == 'lat' ? 0 : 1]\n : '';\n }\n\n private getDisplayForType(option: Option) {\n if (this[`${option.type}Option`]) {\n return this[`${option.type}Option`](option);\n }\n\n if (option.type === DisplayType.COLOR_PICKER) {\n return this.colorPickerOption(option)\n }\n\n if (option.type === DisplayType.MULTIPLE_OPTIONS) {\n return this.multipleOptions(option);\n }\n\n if (option.type === DisplayType.SINGLE_OPTION) {\n return this.singleOption(option);\n }\n salla.log(`Couldn't find options type(${option.type})😢`);\n return '';\n }\n\n protected getOptionShownWhen(option: Option) {\n return option.visibility_condition\n ? {\"data-show-when\": `options[${option.visibility_condition.option}] ${option.visibility_condition.operator} ${option.visibility_condition.value}`}\n : {};\n }\n\n //we need the cart Id for productOption Image\n componentWillLoad() {\n this.outOfStockText = salla.lang.get('pages.products.out_of_stock')\n return salla.api.cart.getCurrentCartId();\n }\n\n render() {\n if (this.optionsData?.length == 0) {\n return;\n }\n\n return (\n <Host class=\"s-product-options-wrapper\">\n {/* TODO:: move salla-conditional-field logic to here, no need of another component*/}\n <salla-conditional-fields>\n {this.optionsData.map((option: Option) =>\n <div class={`s-product-options-option-container${option.visibility_condition ? ' hidden' : ''}`}\n data-option-id={option.id}\n {...this.getOptionShownWhen(option)}>\n {option.name == 'splitter' ?\n this.splitterOption()\n : <div class=\"s-product-options-option\" data-option-type={option.type}\n data-option-required={`${option.required}`}>\n <label htmlFor={'options[' + option.id + ']'} class=\"s-product-options-option-label\">\n <b>\n {option.name}\n {option.required && <span> * </span>} </b>\n <small>{option.placeholder}</small>\n </label>\n <div class=\"s-product-options-option-content\">\n {this.getDisplayForType(option)}\n </div>\n </div>}\n </div>\n )}\n </salla-conditional-fields>\n </Host>\n );\n\n }\n\n //@ts-ignore\n private donationOption(option: Option, product: Product) {\n return <div class=\"s-product-options-donation-wrapper\">\n {\n option.donation ?\n <div class=\"s-product-options-donation-progress\">\n <salla-progress-bar donation={option.donation}>\n </salla-progress-bar>\n </div>\n : ''\n }\n <div class=\"s-product-options-donation-input-group\">\n <input\n type=\"text\"\n id=\"donating-amount\"\n name=\"donating_amount\"\n class=\"s-form-control\"\n value={option.value}\n required\n placeholder={option.placeholder}\n onInput={e => salla.helpers.inputDigitsOnly(e.target)}\n onBlur={e => this.changedHandler(e, option)}\n onInvalid={(e) => this.invalidHandler(e, option)}\n />\n {/* value={option.value} */}\n <span class=\"s-product-options-donation-amount-currency\">\n {salla.config.currency(salla.config.get('user.currency_code')).symbol}\n </span>\n </div>\n </div>\n }\n\n private fileUploader(option: Option, additions: Object | null = null) {\n return <salla-file-upload\n {...(additions || {})}\n payload-name=\"file\"\n value={option.value}\n instant-upload={true}\n name={`options[${option.id}]`}\n required={option.required}\n height=\"120px\"\n onAdded={(e) => this.changedHandler(e, option)}\n url={salla.cart.api.getUploadImageEndpoint()}\n form-data={{cart_item_id: this.productId, product_id: this.productId}}\n onInvalidInput={(e) => this.invalidHandler(e, option)}\n class={{\"s-product-options-image-input\": true, required: option.required}}\n >\n <div class=\"s-product-options-filepond-placeholder\">\n <span class=\"s-product-options-filepond-placeholder-icon\"\n innerHTML={(additions as any).accept && (additions as any).accept.split(',').every(type => type.includes('image'))\n ? CameraIcon\n : FileIcon}\n />\n <p class=\"s-product-options-filepond-placeholder-text\">{salla.lang.get('common.uploader.drag_and_drop')}</p>\n <span class=\"filepond--label-action\">{salla.lang.get('common.uploader.browse')}</span>\n </div>\n </salla-file-upload>\n }\n\n //@ts-ignore\n private imageOption(option: Option) {\n return this.fileUploader(option, {accept: 'image/png,image/jpeg,image/jpg,image/gif'});\n }\n\n //@ts-ignore\n private fileOption(option: Option) {\n let types = option.details.map(detail => this.fileTypes[detail.name]).filter(Boolean);\n return types?.length\n ? this.fileUploader(option, {accept: types.join(',')})\n : 'File types not selected.';\n }\n\n //@ts-ignore\n private numberOption(option: Option) {\n return <input\n type=\"text\"\n value={option.value}\n class=\"s-form-control\"\n required={option.required}\n name={`options[${option.id}]`}\n placeholder={option.placeholder}\n onBlur={e => this.changedHandler(e, option)}\n onInvalid={(e) => this.invalidHandler(e, option)}\n onInput={e => salla.helpers.inputDigitsOnly(e.target)}/>\n }\n\n //@ts-ignore\n private splitterOption() {\n return <div class=\"s-product-options-splitter\"/>\n }\n\n //@ts-ignore\n private textOption(option: Option) {\n return <div class=\"s-product-options-text\">\n <input\n type=\"text\"\n value={option.value}\n class='s-form-control'\n required={option.required}\n name={`options[${option.id}]`}\n placeholder={option.placeholder}\n onInvalid={(e) => this.invalidHandler(e, option)}\n onInput={e => this.changedHandler(e, option)}/>\n </div>\n }\n\n //@ts-ignore\n private textareaOption(option: Option) {\n //todo::remove mt-1 class, and if it's okay to remove the tag itself will be great\n return <div class=\"s-product-options-textarea\">\n <div class=\"mt-1\">\n <textarea\n rows={4}\n value={option.value}\n class=\"s-form-control\"\n required={option.required}\n id={`options[${option.id}]`}\n name={`options[${option.id}]`}\n placeholder={option.placeholder}\n onInvalid={(e) => this.invalidHandler(e, option)}\n onInput={(e) => this.changedHandler(e, option)}/>\n </div>\n </div>\n }\n\n //@ts-ignore\n private mapOption(option: Option) {\n return <salla-map\n zoom={15}\n lat={this.getLatLng(option.value, 'lat')}\n lng={this.getLatLng(option.value, 'lng')}\n name={`options[${option.id}]`}\n searchable={true}\n required={option.required}\n onInvalidInput={(e) => this.invalidHandler(e, option)}\n onSelected={e => this.changedHandler(e, option)}/>\n }\n\n private colorPickerOption(option: Option) {\n return <salla-color-picker\n onSubmitted={e => this.changedHandler(e, option)}\n name={`options[${option.id}]`}\n required={option.required}\n onInvalidInput={(e) => this.invalidHandler(e, option)}\n color={option.value}/>\n }\n\n /**\n * ============= Date Time options =============\n */\n //@ts-ignore\n private timeOption(option: Option) {\n return <salla-datetime-picker\n noCalendar={true}\n enableTime={true}\n dateFormat=\"h:i K\"\n value={option.value}\n placeholder={option.name}\n required={option.required}\n name={`options[${option.id}]`}\n class=\"s-product-options-time-element\"\n onInvalidInput={(e) => this.invalidHandler(e, option)}\n onPicked={e => this.changedHandler(e, option)}/>\n }\n\n //@ts-ignore\n private dateOption(option: Option) {\n //todo:: consider date-range @see https://github.com/SallaApp/theme-raed/blob/master/src/assets/js/partials/product-options.js#L8-L23\n return <div class=\"s-product-options-date-element\">\n <salla-datetime-picker\n value={option.value}\n placeholder={option.name}\n required={option.required}\n minDate={new Date()}\n name={`options[${option.id}]`}\n onInvalidInput={(e) => this.invalidHandler(e, option)}\n onPicked={e => this.changedHandler(e, option)}/>\n </div>\n }\n\n //@ts-ignore\n private datetimeOption(option: Option) {\n //todo:: consider date-range @see https://github.com/SallaApp/theme-raed/blob/master/src/assets/js/partials/product-options.js#L8-L23\n return <div class=\"s-product-options-datetime-element\">\n <salla-datetime-picker\n enableTime={true}\n value={option.value}\n dateFormat=\"Y-m-d G:i:K\"\n placeholder={option.name}\n required={option.required}\n name={`options[${option.id}]`}\n maxDate={option.to_date_time}\n minDate={option.from_date_time}\n onInvalidInput={(e) => this.invalidHandler(e, option)}\n onPicked={e => this.changedHandler(e, option)}/>\n </div>\n }\n\n /**\n * ============= Advanced options =============\n */\n protected getOptionDetailName(detail: Detail, outOfStock: boolean = true, optionType?: string) {\n if (optionType && optionType == DisplayType.COLOR) {\n return detail.name\n + ((outOfStock && this.isOptionDetailOut(detail)) ? ` <br/> <p> ${this.outOfStockText} </p>` : '')\n + (detail.additional_price ? ` <p> (${salla.money(detail.additional_price)}) </p>` : '');\n }\n\n return detail.name\n + ((outOfStock && this.isOptionDetailOut(detail)) ? ` - ${this.outOfStockText}` : '')\n + (detail.additional_price ? ` (${salla.money(detail.additional_price)})` : '');\n }\n\n\n protected isOptionDetailOut(detail: Detail) {\n if (detail.is_out || !detail.skus_availability || !this.selectedSkus?.length) {\n return detail.is_out;\n }\n\n let isDetailSelected = this.selectedOptions.filter(option => option.id == detail.id).length;\n //if the current options is the only selected option, so we are sure that it's not out, because there is no other options selected yet\n if (isDetailSelected && this.selectedOptions.length == 1) {\n return false;\n }\n\n //if current details has sku in the possible outSkus it's out for sure\n if (isDetailSelected) {\n //here we will get the possible outSkus for current selected options\n let outSelectableSkus = this.selectedSkus.filter(sku => this.outSkus.includes(sku));\n return Object.keys(detail.skus_availability).some(sku => outSelectableSkus.includes(Number(sku)))\n }\n\n return this.selectedOptions.some(option => option.is_out && option.option_id !== detail.option_id)\n\n }\n\n private singleOption(option: Option) {\n return <div>\n <select name={`options[${option.id}]`}\n required={option.required}\n class=\"s-form-control\"\n onInvalid={(e) => this.invalidHandler(e, option)}\n onChange={e => this.changedHandler(e, option)}>\n <option value=\"\">{option.placeholder}</option>\n {\n option?.details.map((detail: Detail) => {\n return <option value={detail.id} disabled={this.canDisabled && this.isOptionDetailOut(detail)}\n selected={detail.is_selected}>\n {this.getOptionDetailName(detail)}\n </option>\n })\n }\n </select>\n </div>\n }\n\n private multipleOptions(option: Option) {\n return <div class={{\"s-product-options-multiple-options-wrapper\": true, 'required': option.required}}>\n {\n option?.details.map((detail: Detail) => {\n return <div>\n <input type=\"checkbox\"\n value={detail.id}\n disabled={this.isOptionDetailOut(detail)}\n checked={detail.is_selected}\n required={option.required}\n name={`options[${option.id}][]`}\n id={`field-${option.id}-${detail.id}`}\n onChange={(e) => this.changedHandler(e, option)}\n onInvalid={(e) => this.invalidHandler(e, option)}\n aria-describedby={`options[${option.id}]-description`}/>\n <label htmlFor={`field-${option.id}-${detail.id}`}>{this.getOptionDetailName(detail)}</label>\n </div>\n })\n }\n </div>\n }\n\n //@ts-ignore\n private colorOption(option: Option) {\n return <fieldset class=\"s-product-options-colors-wrapper\">\n {\n option?.details.map((detail) =>\n <div class=\"s-product-options-colors-item\">\n <input type=\"radio\"\n value={detail.id}\n required={option.required}\n checked={detail.is_selected}\n name={`options[${option.id}]`}\n disabled={this.canDisabled && this.isOptionDetailOut(detail)}\n id={`color-${this.productId}-${option.id}-${detail.id}`}\n onInvalid={(e) => this.invalidHandler(e, option)}\n onChange={e => this.changedHandler(e, option)}/>\n <label htmlFor={`color-${this.productId}-${option.id}-${detail.id}`}>\n <span style={{\"background-color\": detail.color}}/>\n <div innerHTML={this.getOptionDetailName(detail, true, option.type)}></div>\n </label>\n </div>\n )\n }\n </fieldset>\n }\n\n //@ts-ignore\n private thumbnailOption(option: Option) {\n return <div class=\"s-product-options-thumbnails-wrapper\">\n {option.details.map((detail: Detail) => {\n return <div>\n <input type=\"radio\"\n value={detail.id}\n data-itemid={detail.id} //todo:: why need this? it's already in the value!\n required={option.required}\n checked={detail.is_selected}\n name={`options[${option.id}]`}\n data-img-id={detail.option_value}\n disabled={this.canDisabled && this.isOptionDetailOut(detail)}\n id={`option_${this.productId}-${option.id}_${detail.id}`}\n onInvalid={(e) => this.invalidHandler(e, option)}\n onChange={(e) => this.changedHandler(e, option)}/>\n <label htmlFor={`option_${this.productId}-${option.id}_${detail.id}`}\n data-img-id={detail.option_value}\n class=\"go-to-slide\">\n <img data-src={detail.image} src={detail.image} title={detail.name} alt={detail.name}/>\n <span innerHTML={CheckCircleIcon} class=\"s-product-options-thumbnails-icon\"/>\n {this.isOptionDetailOut(detail) ?\n [\n <small class=\"s-product-options-thumbnails-stock-badge\">{this.outOfStockText}</small>,\n this.canDisabled ? <div class=\"s-product-options-thumbnails-badge-overlay\"/> : '',\n ]\n : ''}\n </label>\n <p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AAS,EAAE,EAAE,EAAC,UAAU,EAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,IACzN,CAAC,CAAC,IAAI,CAAC,WAAW;MACjB,cAAQ,QAAQ,EAAE,CAAC,IAAI,CAAC,KAAK,IAAG,IAAI,CAAC,WAAW,CAAU;QACxD,EAAE,EAEJ,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAqB;;IAEnC,cAAQ,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAW;;;KAGrJ,CACI,EACT,WAAK,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,IACxC,IAAI,CAAC,YAAY,EAAE,CAChB,CAED,EACP;GACH;;;;;;","names":[],"sources":["./src/components/salla-select/salla-select.scss?tag=salla-select","./src/components/salla-select/salla-select.tsx"],"sourcesContent":[".s-select-label {\n display: block;\n margin-bottom: 0.5rem;\n color: #111827;\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 500;\n}\n\n.s-select-underline {\n display: block;\n padding-left: 0;\n padding-right: 0;\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n background-color: transparent;\n color: #6B7280;\n font-size: 0.875rem;\n line-height: 1.25rem;\n width: 100%;\n border-width: 0;\n border-bottom-width: 2px;\n border-color: #E5E7EB;\n appearance: none;\n}\n\n.s-select-outlined {\n display: block;\n padding: 0.625rem;\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n padding-left: 1rem;\n padding-right: 1rem;\n background-color: #F9FAFB;\n color: #111827;\n font-size: 0.875rem;\n line-height: 1.25rem;\n width: 100%;\n border-radius: 0.5rem;\n border-width: 1px;\n border-color: #D1D5DB;\n}\n\n.s-select-x-large {\n height: 5rem;\n}\n\n.s-select-large {\n height: 4rem;\n}\n\n.s-select-normal {\n height: 3rem;\n}\n\n.s-select-small {\n height: 3rem;\n}\n\n.s-select-x-small {\n height: 2.5rem;\n}\n\n.s-select-field {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n margin: 0;\n font-size: 1.125rem;\n line-height: 1.75rem;\n font-weight: 400;\n line-height: 1.75rem;\n width: 100%;\n border-radius: 0.375rem;\n border-color: #9CA3AF;\n box-shadow: none;\n}\n\n\n.s-select-hint {\n margin-top: 0.25rem;\n color: #374151;\n font-size: 0.875rem;\n line-height: 1.25rem;\n line-height: 1.25rem;\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'salla-select',\n styleUrl: 'salla-select.scss',\n})\nexport class SallaSelect {\n\n /**\n * Sets label\n */\n @Prop() label: string = undefined;\n\n /**\n * Can be an array of objects or array of strings. \n * When using objects, will look for a text, value and disabled keys.\n */\n @Prop() items: any[] = [];\n\n /**\n * Set property of items’s text value\n */\n @Prop() itemText: string /* | any[] | Function */ = \"text\";\n\n /**\n * Set property of items’s value - must be primitive. \n * Dot notation is supported.\n */\n @Prop() itemValue: string /* | any[] | Function */ = \"value\";\n\n /**\n * Set property of items’s disabled value\n */\n @Prop() itemDisabled: string /* | any[] | Function */ = 'disabled';\n\n /**\n * Sizing options\n */\n @Prop() size: 'x-large' | 'large' | 'normal' | 'small' | 'x-small' = 'normal';\n\n /**\n * The selected value\n */\n @Prop({ mutable: true }) value: any = undefined;\n\n /**\n * Enable autofocus\n */\n @Prop() autofocus: boolean = false;\n\n /**\n * Add input clear functionality, default icon is `sicon-cancel`\n */\n @Prop() clearable: boolean = false;\n\n /**\n * Applied when using clearable and the input is dirty\n */\n @Prop() clearIcon: string = 'sicon-cancel';\n\n /**\n * Applies specified color to the control.\n */\n @Prop() color: 'primary' | 'success' | 'warning' | 'danger' | 'light' | 'gray' | 'dark' = 'primary';\n\n /**\n * Remove elevation or box shadow.\n */\n @Prop() flat: boolean = undefined;\n\n /**\n * Disable the input\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Displays linear progress bar.\n */\n @Prop() loading: boolean = false;\n\n /**\n * Specifies which color is applied to the progress bar.\n */\n @Prop() loadingColor: string = 'primary';\n\n /**\n * Hint text\n */\n @Prop() hint: string = undefined;\n\n /**\n * Forces hint to always be visible.\n */\n @Prop() persistHint: boolean = false;\n\n /**\n * Sets the input’s placeholder text.\n */\n @Prop() placeholder: string = undefined;\n\n /**\n * Enable multiple item selection\n */\n @Prop() multiple: boolean = false;\n\n /**\n * Enable multiple item selection\n */\n @Prop() autocomplete: boolean = false;\n\n /**\n * Enable multiple item selection\n */\n @Prop() required: boolean = false;\n\n /**\n * Changes display of selections to chips\n */\n @Prop() chips: boolean = false;\n\n /**\n * Define appearance of the component\n */\n @Prop() shape: 'underline' | 'outlined' = 'outlined';\n\n /**\n * Changes the selection behavior to return the object directly \n * rather than the value specified with item-value\n */\n @Prop() returnObject: boolean = false;\n\n /**\n * Hides hint if any\n */\n @Prop() hideDetail: boolean = false;\n\n\n\n\n private selectClass() {\n return `s-select-field s-select-${this.shape} ${this.color} ${this.size}`\n }\n\n private onSelectedItemChange(event: Event) {\n let selectedIndex = (event.target as HTMLSelectElement).selectedIndex;\n if (selectedIndex < 0) {\n this.value = undefined;\n return;\n }\n let selectedItem = this.items[!!this.placeholder ? selectedIndex - 1 : selectedIndex]\n\n this.value = this.returnObject ? selectedItem : selectedItem[this.itemValue]\n }\n\n private generateHint() {\n if (!this.persistHint && !this.value) {\n return \"\"\n }\n return <div class=\"s-select-hint\">{this.hint}</div>\n }\n\n private checkForSelected(item) {\n if (this.returnObject && !!this.value) {\n return item[this.itemValue] = this.value[this.itemValue]\n }\n return item[this.itemValue] == this.value\n }\n\n\n render() {\n return (\n <Host>\n {!!this.label ?\n <label htmlFor=\"s-select\" class=\"s-select-label\">{this.label}</label>\n : \"\"\n }\n <select multiple={this.multiple} autocomplete={this.autocomplete ? 'on' : 'off'} disabled={this.disabled} autoFocus={this.autofocus} id=\"s-select\" class={this.selectClass()} onChange={this.onSelectedItemChange.bind(this)}>\n {!!this.placeholder ?\n <option selected={!this.value}>{this.placeholder}</option>\n : \"\"}\n {\n this.items.map((item: Object | string) =>\n // item instanceof Object ?\n <option label={item[this.itemText]} value={item[this.itemValue]} selected={this.checkForSelected(item)} disabled={item[this.itemDisabled]}></option>\n // :\n // <option label={item} value={item} selected={item == this.value} disabled={item == this.itemDisabled}></option>\n )}\n </select>\n <div class={{ \"s-hidden\": this.hideDetail }}>\n {this.generateHint()}\n </div>\n\n </Host>\n );\n }\n\n}"],"version":3}
|
package/dist/esm/twilight.js
CHANGED
|
@@ -78,3 +78,5 @@ patchBrowser().then(options => {
|
|
|
78
78
|
globalScripts();
|
|
79
79
|
return bootstrapLazy(JSON.parse("[[\"salla-button_37\",[[4,\"salla-gifting\",{\"productId\":[2,\"product-id\"],\"widgetSubtitle\":[1,\"widget-subtitle\"],\"sectionTitle\":[32],\"sectionSubtitle\":[32],\"sectionBtnText\":[32],\"giftDetails\":[32],\"selectImageForYourGift\":[32],\"selectImageOrUpload\":[32],\"selectGiftMessage\":[32],\"giftCustomText\":[32],\"textId\":[32],\"incorrectGiftText\":[32],\"nextStep\":[32],\"senderNameLabel\":[32],\"receiverNameFieldLabel\":[32],\"receiverMobileFieldLabel\":[32],\"receiverEmailFieldLabel\":[32],\"emailPlaceholder\":[32],\"sendLater\":[32],\"selectSendDateAndTime\":[32],\"canNotEditOrderAfterSelectDate\":[32],\"sendGift\":[32],\"donationRequired\":[32],\"currentStep\":[32],\"showCalendar\":[32],\"showGiftText\":[32],\"currentLang\":[32],\"parentClass\":[32],\"errors\":[32],\"gift\":[32],\"selectedGiftTextOption\":[32],\"showTextArea\":[32],\"selectedImage\":[32],\"uploadedImage\":[32],\"selectedText\":[32],\"senderName\":[32],\"errorMessage\":[32],\"hasError\":[32],\"quantity\":[32],\"deliveryDate\":[32],\"timeZone\":[32],\"receiverName\":[32],\"receiverMobile\":[32],\"receiverCountryCode\":[32],\"receiverEmail\":[32],\"open\":[64],\"close\":[64],\"goToStep2\":[64]}],[4,\"salla-loyalty\",{\"prizePoints\":[1544,\"prize-points\"],\"customerPoints\":[1538,\"customer-points\"],\"prizeTitle\":[1537,\"prize-title\"],\"allowEmail\":[4,\"allow-email\"],\"allowMobile\":[4,\"allow-mobile\"],\"requireEmail\":[4,\"require-email\"],\"guestMessage\":[1025,\"guest-message\"],\"loyaltyProgram\":[32],\"buttonLoading\":[32],\"selectedItem\":[32],\"askConfirmation\":[32],\"is_loggedin\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64],\"resetExchange\":[64],\"exchangeLoyaltyPoint\":[64]}],[4,\"salla-product-size-guide\",{\"guides\":[32],\"productId\":[32],\"placeholder_title\":[32],\"placeholder_description\":[32],\"modal_title\":[32],\"hasError\":[32],\"open\":[64],\"close\":[64]}],[4,\"salla-login-modal\",{\"isEmailAllowed\":[1028,\"is-email-allowed\"],\"isMobileAllowed\":[1028,\"is-mobile-allowed\"],\"isEmailRequired\":[1028,\"is-email-required\"],\"supportWebAuth\":[516,\"support-web-auth\"],\"currentTabName\":[32],\"regType\":[32],\"translationLoaded\":[32],\"title\":[32],\"emailErrorMsg\":[32],\"firstNameErrorMsg\":[32],\"lastNameErrorMsg\":[32],\"dragAndDrop\":[32],\"browseFromFiles\":[32],\"customFields\":[32],\"uploadedImage\":[32],\"open\":[64]},[[8,\"verified\",\"onVerified\"]]],[0,\"salla-offer-modal\",{\"offer\":[32],\"offer_name\":[32],\"offer_message\":[32],\"hasError\":[32],\"errorMessage\":[32],\"productID\":[32],\"offer_type\":[32],\"translationLoaded\":[32],\"addToCartLabel\":[32],\"open\":[64],\"showOffer\":[64]}],[0,\"salla-rating-modal\",{\"orderId\":[2,\"order-id\"],\"order\":[32],\"hasError\":[32],\"errorMessage\":[32],\"translationLoaded\":[32],\"open\":[64],\"close\":[64]}],[4,\"salla-scopes\",{\"selection\":[1],\"searchDisplayLimit\":[2,\"search-display-limit\"],\"translationLoaded\":[32],\"mode\":[32],\"current_scope\":[32],\"scopes\":[32],\"originalScopesList\":[32],\"selected_scope\":[32],\"isOpenedBefore\":[32],\"hasError\":[32],\"loading\":[32],\"close\":[64],\"open\":[64],\"handleSubmit\":[64]}],[0,\"salla-localization-modal\",{\"language\":[1537],\"currency\":[1537],\"translationLoaded\":[32],\"languages\":[32],\"currencies\":[32],\"hasError\":[32],\"errorMessage\":[32],\"open\":[64],\"close\":[64],\"submit\":[64]}],[0,\"salla-quick-order\",{\"quickOrderTitle\":[1025,\"quick-order-title\"],\"subTitle\":[1025,\"sub-title\"],\"payButtonTitle\":[1025,\"pay-button-title\"],\"confirmPayButtonTitle\":[1025,\"confirm-pay-button-title\"],\"agreementText\":[1025,\"agreement-text\"],\"isEmailRequired\":[1028,\"is-email-required\"],\"productId\":[1025,\"product-id\"],\"thanksMessage\":[1025,\"thanks-message\"],\"quickOrderStyle\":[1025,\"quick-order-style\"],\"user\":[32],\"isAvailable\":[32],\"oneClick\":[32],\"expanded\":[32],\"isTermsRequired\":[32],\"countryCode\":[32],\"submitSucess\":[32],\"placeHolderEmail\":[32],\"emailOptional\":[32],\"agreementShowText\":[32],\"agreementModalHead\":[32],\"userNameLabel\":[32],\"termsChecked\":[32]}],[0,\"salla-user-settings\",{\"isNotifiable\":[516,\"is-notifiable\"],\"deactivateAccount\":[32],\"promotionalMsgs\":[32],\"deactivateDesc\":[32],\"promotionalMsgsDesc\":[32],\"sorryForLeavingText\":[32],\"warningText\":[32],\"keepAccount\":[32],\"buttonLoading\":[32]}],[0,\"salla-search\",{\"inline\":[4],\"oval\":[4],\"height\":[2],\"translationLoaded\":[32],\"results\":[32],\"loading\":[32],\"typing\":[32],\"debounce\":[32],\"search_term\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]],[4,\"salla-social-share\",{\"url\":[513],\"urlName\":[513,\"url-name\"],\"platforms\":[513],\"opened\":[32],\"allPlatforms\":[32],\"platformIcons\":[32],\"convertedPlatforms\":[32],\"open\":[64]}],[4,\"salla-cart-summary\",{\"showCartLabel\":[4,\"show-cart-label\"],\"cartSummaryCount\":[32],\"cartSummaryTotal\":[32],\"cartLabel\":[32],\"animateToCart\":[64]}],[0,\"salla-count-down\",{\"date\":[1],\"boxed\":[4],\"size\":[1],\"color\":[1],\"labeled\":[4],\"endText\":[1,\"end-text\"],\"digits\":[1],\"endOfDay\":[4,\"end-of-day\"],\"daysLabel\":[32],\"hoursLabel\":[32],\"minutesLabel\":[32],\"secondsLabel\":[32],\"endLabel\":[32],\"invalidDate\":[32],\"offerEnded\":[32],\"countInterval\":[32],\"endCountDown\":[64]}],[4,\"salla-infinite-scroll\",{\"nextPage\":[1,\"next-page\"],\"autoload\":[1028],\"container\":[1],\"item\":[1],\"loadMore\":[32],\"noMore\":[32],\"failedToLoad\":[32]}],[4,\"salla-quantity-input\",{\"quantity\":[32],\"decrease\":[64],\"increase\":[64],\"setValue\":[64]}],[0,\"salla-user-menu\",{\"inline\":[516],\"avatarOnly\":[516,\"avatar-only\"],\"showHeader\":[516,\"show-header\"],\"relativeDropdown\":[516,\"relative-dropdown\"],\"accountLoading\":[32],\"opened\":[32],\"notifications\":[32],\"orders\":[32],\"pending_orders\":[32],\"wishlist\":[32],\"profile\":[32],\"rating\":[32],\"logout\":[32],\"hello\":[32],\"first_name\":[32],\"last_name\":[32],\"avatar\":[32],\"badges\":[32],\"hasBadges\":[32],\"OrderUpdate\":[32]}],[0,\"salla-product-availability\",{\"channels\":[1],\"notifyOptionsAvailability\":[4,\"notify-options-availability\"],\"productId\":[2,\"product-id\"],\"isSubscribed\":[1028,\"is-subscribed\"],\"translationLoaded\":[32],\"title_\":[32],\"isVisitorSubscribed\":[32]}],[4,\"salla-map\",{\"name\":[1],\"required\":[4],\"readonly\":[4],\"searchable\":[1028],\"lat\":[1026],\"lng\":[1026],\"apiKey\":[1025,\"api-key\"],\"modalTitle\":[1,\"modal-title\"],\"zoom\":[1026],\"theme\":[1025],\"modalActivityTitle\":[32],\"confirmButtonTitle\":[32],\"locateButtonTitle\":[32],\"locateButtonEdit\":[32],\"searchPlaceholder\":[32],\"searchInputValue\":[32],\"formattedAddress\":[32],\"geolocationError\":[32],\"searchInput\":[32],\"mapInput\":[32],\"mapElement\":[32],\"selectedLat\":[32],\"selectedLng\":[32],\"open\":[64]}],[4,\"salla-verify\",{\"display\":[1],\"type\":[1025],\"autoReload\":[4,\"auto-reload\"],\"supportWebAuth\":[4,\"support-web-auth\"],\"translationLoaded\":[32],\"title\":[32],\"resendAfter\":[32],\"isProfileVerify\":[32],\"getCode\":[64],\"open\":[64]}],[0,\"salla-quick-buy\",{\"type\":[1025],\"productId\":[1025,\"product-id\"],\"amount\":[1538],\"currency\":[1025],\"options\":[16],\"isRequireShipping\":[1028,\"is-require-shipping\"],\"isApplePayActive\":[32],\"quickBuy\":[32]}],[4,\"salla-color-picker\",{\"name\":[1],\"required\":[4],\"color\":[1537],\"format\":[1],\"showCancelButton\":[4,\"show-cancel-button\"],\"showTextField\":[4,\"show-text-field\"],\"enableAlpha\":[4,\"enable-alpha\"],\"widgetColor\":[32],\"setPickerOption\":[64],\"movePopUp\":[64],\"setColorValue\":[64],\"openPicker\":[64],\"closePicker\":[64],\"destroyPicker\":[64]}],[0,\"salla-progress-bar\",{\"donation\":[1],\"target\":[1026],\"value\":[1026],\"height\":[1025],\"header\":[1025],\"stripped\":[1028],\"message\":[1025],\"unit\":[1025],\"color\":[1025]}],[0,\"salla-rating-stars\",{\"name\":[1],\"size\":[1],\"value\":[2],\"reviews\":[2]}],[0,\"salla-datetime-picker\",{\"value\":[1537],\"required\":[4],\"name\":[513],\"placeholder\":[1],\"allowInput\":[4,\"allow-input\"],\"allowInvalidPreload\":[4,\"allow-invalid-preload\"],\"altFormat\":[1,\"alt-format\"],\"altInput\":[4,\"alt-input\"],\"altInputClass\":[1,\"alt-input-class\"],\"appendTo\":[16],\"ariaDateFormat\":[1,\"aria-date-format\"],\"autoFillDefaultTime\":[4,\"auto-fill-default-time\"],\"clickOpens\":[4,\"click-opens\"],\"closeOnSelect\":[4,\"close-on-select\"],\"conjunction\":[1],\"dateFormat\":[1,\"date-format\"],\"defaultDate\":[8,\"default-date\"],\"defaultHour\":[2,\"default-hour\"],\"defaultMinute\":[2,\"default-minute\"],\"defaultSeconds\":[2,\"default-seconds\"],\"disable\":[16],\"disableMobile\":[4,\"disable-mobile\"],\"enable\":[16],\"enableSeconds\":[4,\"enable-seconds\"],\"enableTime\":[4,\"enable-time\"],\"formatDate\":[16],\"hourIncrement\":[2,\"hour-increment\"],\"inline\":[4],\"locale\":[1],\"maxDate\":[8,\"max-date\"],\"maxTime\":[8,\"max-time\"],\"minDate\":[8,\"min-date\"],\"minTime\":[8,\"min-time\"],\"minuteIncrement\":[2,\"minute-increment\"],\"mode\":[1],\"monthSelectorType\":[1,\"month-selector-type\"],\"nextArrow\":[1,\"next-arrow\"],\"noCalendar\":[4,\"no-calendar\"],\"dateParser\":[16],\"position\":[1],\"positionElement\":[16],\"prevArrow\":[1,\"prev-arrow\"],\"shorthandCurrentMonth\":[4,\"shorthand-current-month\"],\"static\":[4],\"showMonths\":[2,\"show-months\"],\"time_24hr\":[4,\"time_-2-4hr\"],\"weekNumbers\":[4,\"week-numbers\"],\"wrap\":[4]}],[4,\"salla-tab-content\",{\"name\":[1],\"isSelected\":[32],\"getChild\":[64]}],[4,\"salla-tab-header\",{\"name\":[1],\"activeClass\":[1,\"active-class\"],\"height\":[8],\"centered\":[4],\"isSelected\":[32],\"getChild\":[64]}],[4,\"salla-tabs\",{\"backgroundColor\":[1,\"background-color\"],\"vertical\":[4]},[[0,\"tabSelected\",\"onSelectedTab\"]]],[0,\"salla-file-upload\",{\"value\":[1537],\"files\":[513],\"height\":[513],\"cartItemId\":[1,\"cart-item-id\"],\"profileImage\":[516,\"profile-image\"],\"name\":[1537],\"payloadName\":[1,\"payload-name\"],\"accept\":[1537],\"fileId\":[2,\"file-id\"],\"url\":[1025],\"method\":[1],\"formData\":[1,\"form-data\"],\"required\":[4],\"maxFileSize\":[1,\"max-file-size\"],\"disabled\":[4],\"allowDrop\":[4,\"allow-drop\"],\"allowBrowse\":[4,\"allow-browse\"],\"allowPaste\":[4,\"allow-paste\"],\"allowMultiple\":[4,\"allow-multiple\"],\"allowReplace\":[4,\"allow-replace\"],\"allowRevert\":[4,\"allow-revert\"],\"allowRemove\":[4,\"allow-remove\"],\"allowProcess\":[4,\"allow-process\"],\"allowReorder\":[4,\"allow-reorder\"],\"storeAsFile\":[4,\"store-as-file\"],\"forceRevert\":[4,\"force-revert\"],\"maxFilesCount\":[2,\"max-files-count\"],\"maxParallelUploads\":[2,\"max-parallel-uploads\"],\"checkValidity\":[4,\"check-validity\"],\"itemInsertLocation\":[1,\"item-insert-location\"],\"itemInsertInterval\":[2,\"item-insert-interval\"],\"credits\":[4],\"dropOnPage\":[4,\"drop-on-page\"],\"dropOnElement\":[4,\"drop-on-element\"],\"dropValidation\":[4,\"drop-validation\"],\"ignoredFiles\":[16],\"instantUpload\":[1028,\"instant-upload\"],\"chunkUploads\":[4,\"chunk-uploads\"],\"chunkForce\":[4,\"chunk-force\"],\"chunkSize\":[2,\"chunk-size\"],\"chunkRetryDelays\":[16],\"labelDecimalSeparator\":[1,\"label-decimal-separator\"],\"labelThousandsSeparator\":[1,\"label-thousands-separator\"],\"labelIdle\":[1025,\"label-idle\"],\"iconRemove\":[1,\"icon-remove\"],\"iconProcess\":[1,\"icon-process\"],\"iconRetry\":[1,\"icon-retry\"],\"iconUndo\":[1,\"icon-undo\"],\"setOption\":[64]}],[4,\"salla-slider\",{\"blockTitle\":[513,\"block-title\"],\"listenToThumbnailsOption\":[516,\"listen-to-thumbnails-option\"],\"blockSubtitle\":[513,\"block-subtitle\"],\"displayAllUrl\":[513,\"display-all-url\"],\"arrowsCentered\":[516,\"arrows-centered\"],\"verticalThumbs\":[516,\"vertical-thumbs\"],\"vertical\":[516],\"autoHeight\":[516,\"auto-height\"],\"showControls\":[516,\"show-controls\"],\"controlsOuter\":[516,\"controls-outer\"],\"showThumbsControls\":[4,\"show-thumbs-controls\"],\"autoPlay\":[4,\"auto-play\"],\"slidesPerView\":[1,\"slides-per-view\"],\"pagination\":[4],\"centered\":[4],\"loop\":[4],\"type\":[1],\"sliderConfig\":[520,\"slider-config\"],\"thumbsConfig\":[520,\"thumbs-config\"],\"currentIndex\":[32],\"isEnd\":[32],\"isBeginning\":[32],\"isRTL\":[32],\"swiperScript\":[32],\"displayAllTitle\":[32],\"slideTo\":[64],\"slideNext\":[64],\"slidePrev\":[64],\"slideToLoop\":[64],\"slideNextLoop\":[64],\"slidePrevLoop\":[64],\"slideReset\":[64],\"slideToClosest\":[64],\"update\":[64],\"updateAutoHeight\":[64],\"updateSlides\":[64],\"updateProgress\":[64],\"updateSlidesClasses\":[64],\"getSlides\":[64]}],[4,\"salla-list-tile\",{\"href\":[1],\"target\":[1]}],[0,\"salla-tel-input\",{\"phone\":[1025],\"name\":[1],\"countryCode\":[1025,\"country-code\"],\"mobileRequired\":[32],\"countryCodeLabel\":[32],\"mobileLabel\":[32],\"tooShort\":[32],\"tooLong\":[32],\"invalidCountryCode\":[32],\"invalidNumber\":[32],\"errorMap\":[32],\"getValues\":[64],\"isValid\":[64]}],[4,\"salla-placeholder\",{\"icon\":[1],\"alignment\":[1],\"iconSize\":[1,\"icon-size\"],\"translationLoaded\":[32]}],[0,\"salla-skeleton\",{\"type\":[1],\"width\":[1],\"height\":[1]}],[4,\"salla-modal\",{\"isClosable\":[1028,\"is-closable\"],\"width\":[513],\"position\":[513],\"visible\":[516],\"hasSkeleton\":[516,\"has-skeleton\"],\"isLoading\":[1540,\"is-loading\"],\"subTitleFirst\":[4,\"sub-title-first\"],\"noPadding\":[4,\"no-padding\"],\"subTitle\":[1,\"sub-title\"],\"centered\":[4],\"iconStyle\":[1,\"icon-style\"],\"modalTitle\":[32],\"open\":[64],\"close\":[64],\"setTitle\":[64],\"loading\":[64],\"stopLoading\":[64]},[[0,\"keyup\",\"handleKeyUp\"]]],[4,\"salla-button\",{\"shape\":[513],\"color\":[513],\"fill\":[513],\"size\":[513],\"width\":[513],\"loading\":[516],\"disabled\":[516],\"loaderPosition\":[1,\"loader-position\"],\"href\":[1],\"load\":[64],\"stop\":[64],\"setText\":[64],\"disable\":[64],\"enable\":[64]}],[0,\"salla-loading\",{\"size\":[8],\"width\":[8],\"color\":[1],\"bgColor\":[1,\"bg-color\"]}]]],[\"salla-product-options\",[[0,\"salla-product-options\",{\"productId\":[2,\"product-id\"],\"options\":[1],\"optionsData\":[32],\"outOfStockText\":[32],\"donationAmount\":[32],\"selectedOptions\":[32],\"canDisabled\":[32],\"selectedSkus\":[32],\"selectedOutSkus\":[32],\"getSelectedOptionsData\":[64],\"reportValidity\":[64],\"hasOutOfStockOption\":[64],\"getSelectedOptions\":[64],\"getOption\":[64]}]]],[\"salla-add-product-button\",[[4,\"salla-add-product-button\",{\"channels\":[513],\"subscribedOptions\":[1,\"subscribed-options\"],\"quickBuy\":[1540,\"quick-buy\"],\"quantity\":[514],\"donatingAmount\":[514,\"donating-amount\"],\"notifyOptionsAvailability\":[516,\"notify-options-availability\"],\"productId\":[520,\"product-id\"],\"supportStickyBar\":[516,\"support-sticky-bar\"],\"productStatus\":[513,\"product-status\"],\"productType\":[513,\"product-type\"],\"hasOutOfStockOption\":[32],\"hasSubscribedOptions\":[32],\"selectedOptions\":[32],\"showQuickBuy\":[32]}]]],[\"salla-comment-form\",[[0,\"salla-comment-form\",{\"type\":[1537],\"showAvatar\":[4,\"show-avatar\"],\"itemId\":[1544,\"item-id\"],\"placeholder\":[32],\"submitText\":[32],\"canComment\":[32]}]]],[\"salla-installment\",[[0,\"salla-installment\",{\"price\":[1],\"language\":[1],\"currency\":[1],\"tamaraIsActive\":[32],\"tabbyIsActive\":[32],\"spotiiIsActive\":[32]}]]],[\"salla-loyalty-prize-item\",[[0,\"salla-loyalty-prize-item\",{\"item\":[16]}]]],[\"salla-select\",[[0,\"salla-select\",{\"label\":[1],\"items\":[16],\"itemText\":[1,\"item-text\"],\"itemValue\":[1,\"item-value\"],\"itemDisabled\":[1,\"item-disabled\"],\"size\":[1],\"value\":[1032],\"autofocus\":[4],\"clearable\":[4],\"clearIcon\":[1,\"clear-icon\"],\"color\":[1],\"flat\":[4],\"disabled\":[4],\"loading\":[4],\"loadingColor\":[1,\"loading-color\"],\"hint\":[1],\"persistHint\":[4,\"persist-hint\"],\"placeholder\":[1],\"multiple\":[4],\"autocomplete\":[4],\"required\":[4],\"chips\":[4],\"shape\":[1],\"returnObject\":[4,\"return-object\"],\"hideDetail\":[4,\"hide-detail\"]}]]],[\"salla-conditional-fields\",[[4,\"salla-conditional-fields\",null,[[0,\"change\",\"changeHandler\"]]]]]]"), options);
|
|
80
80
|
});
|
|
81
|
+
|
|
82
|
+
//# sourceMappingURL=twilight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"twilight.js","mappings":";;;;;;;AAAA;AACA;AACA;AAGA,MAAM,wBAAwB,GAAG,CAAC,SAAS,KAAK,CAAC,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AACjG,MAAM,YAAY,GAAG,MAAM;AAK3B,IAA0B;AAC1B;AACA,QAAQ,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;AACtC,KAAK;AAgBL;AACA,IAAI,MAAM,SAAS,GACT,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,CAAC,EAAE,EAAE,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,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AAS,CAAC;AACV,KAAK;AACL,CAAC;;ACpGD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAC/B,EAAE,aAAa,EAAE,CAAC;AAClB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==="function"){cachedSetTimeout=setTimeout}if(typeof global$1.clearTimeout==="function"){cachedClearTimeout=clearTimeout}function runTimeout(e){if(cachedSetTimeout===setTimeout){return setTimeout(e,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(e,0)}try{return cachedSetTimeout(e,0)}catch(r){try{return cachedSetTimeout.call(null,e,0)}catch(r){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout){return clearTimeout(e)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(e)}try{return cachedClearTimeout(e)}catch(r){try{return cachedClearTimeout.call(null,e)}catch(r){return cachedClearTimeout.call(this,e)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var e=runTimeout(cleanUpNextTick);draining=true;var r=queue.length;while(r){currentQueue=queue;queue=[];while(++queueIndex<r){if(currentQueue){currentQueue[queueIndex].run()}}queueIndex=-1;r=queue.length}currentQueue=null;draining=false;runClearTimeout(e)}function nextTick(e){var r=new Array(arguments.length-1);if(arguments.length>1){for(var t=1;t<arguments.length;t++){r[t-1]=arguments[t]}}queue.push(new Item(e,r));if(queue.length===1&&!draining){runTimeout(drainQueue)}}function Item(e,r){this.fun=e;this.array=r}Item.prototype.run=function(){this.fun.apply(null,this.array)};var title="browser";var platform="browser";var browser=true;var env={};var argv=[];var version="";var versions={};var release={};var config={};function noop(){}var on=noop;var addListener=noop;var once=noop;var off=noop;var removeListener=noop;var removeAllListeners=noop;var emit=noop;function binding(e){throw new Error("process.binding is not supported")}function cwd(){return"/"}function chdir(e){throw new Error("process.chdir is not supported")}function umask(){return 0}var performance=global$1.performance||{};var performanceNow=performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return(new Date).getTime()};function hrtime(e){var r=performanceNow.call(performance)*.001;var t=Math.floor(r);var n=Math.floor(r%1*1e9);if(e){t=t-e[0];n=n-e[1];if(n<0){t--;n+=1e9}}return[t,n]}var startTime=new Date;function uptime(){var e=new Date;var r=e-startTime;return r/1e3}var browser$1={nextTick:nextTick,title:title,browser:browser,env:env,argv:argv,version:version,versions:versions,on:on,addListener:addListener,once:once,off:off,removeListener:removeListener,removeAllListeners:removeAllListeners,emit:emit,binding:binding,cwd:cwd,chdir:chdir,umask:umask,hrtime:hrtime,platform:platform,release:release,config:config,uptime:uptime};var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function createCommonjsModule(e,r,t){return t={path:r,exports:{},require:function(e,r){return commonjsRequire()}},e(t,t.exports),t.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}export{createCommonjsModule as a,browser$1 as b,commonjsGlobal as c,getDefaultExportFromCjs as d,global$1 as g};
|
|
4
|
+
var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==="function"){cachedSetTimeout=setTimeout}if(typeof global$1.clearTimeout==="function"){cachedClearTimeout=clearTimeout}function runTimeout(e){if(cachedSetTimeout===setTimeout){return setTimeout(e,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(e,0)}try{return cachedSetTimeout(e,0)}catch(r){try{return cachedSetTimeout.call(null,e,0)}catch(r){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout){return clearTimeout(e)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(e)}try{return cachedClearTimeout(e)}catch(r){try{return cachedClearTimeout.call(null,e)}catch(r){return cachedClearTimeout.call(this,e)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var e=runTimeout(cleanUpNextTick);draining=true;var r=queue.length;while(r){currentQueue=queue;queue=[];while(++queueIndex<r){if(currentQueue){currentQueue[queueIndex].run()}}queueIndex=-1;r=queue.length}currentQueue=null;draining=false;runClearTimeout(e)}function nextTick(e){var r=new Array(arguments.length-1);if(arguments.length>1){for(var t=1;t<arguments.length;t++){r[t-1]=arguments[t]}}queue.push(new Item(e,r));if(queue.length===1&&!draining){runTimeout(drainQueue)}}function Item(e,r){this.fun=e;this.array=r}Item.prototype.run=function(){this.fun.apply(null,this.array)};var title="browser";var platform="browser";var browser=true;var env={};var argv=[];var version="";var versions={};var release={};var config={};function noop(){}var on=noop;var addListener=noop;var once=noop;var off=noop;var removeListener=noop;var removeAllListeners=noop;var emit=noop;function binding(e){throw new Error("process.binding is not supported")}function cwd(){return"/"}function chdir(e){throw new Error("process.chdir is not supported")}function umask(){return 0}var performance=global$1.performance||{};var performanceNow=performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return(new Date).getTime()};function hrtime(e){var r=performanceNow.call(performance)*.001;var t=Math.floor(r);var n=Math.floor(r%1*1e9);if(e){t=t-e[0];n=n-e[1];if(n<0){t--;n+=1e9}}return[t,n]}var startTime=new Date;function uptime(){var e=new Date;var r=e-startTime;return r/1e3}var browser$1={nextTick:nextTick,title:title,browser:browser,env:env,argv:argv,version:version,versions:versions,on:on,addListener:addListener,once:once,off:off,removeListener:removeListener,removeAllListeners:removeAllListeners,emit:emit,binding:binding,cwd:cwd,chdir:chdir,umask:umask,hrtime:hrtime,platform:platform,release:release,config:config,uptime:uptime};var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function createCommonjsModule(e,r,t){return t={path:r,exports:{},require:function(e,r){return commonjsRequire()}},e(t,t.exports),t.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}export{createCommonjsModule as a,browser$1 as b,commonjsGlobal as c,getDefaultExportFromCjs as d,global$1 as g};
|
|
5
|
+
//# sourceMappingURL=_commonjsHelpers-a7c4abac.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["node_modules/rollup-plugin-node-polyfills/polyfills/global.js","node_modules/rollup-plugin-node-polyfills/polyfills/process-es6.js"],"names":["global$1","global","self","window","defaultSetTimout","Error","defaultClearTimeout","cachedSetTimeout","cachedClearTimeout","setTimeout","clearTimeout","runTimeout","fun","e","call","this","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","length","concat","drainQueue","timeout","len","run","nextTick","args","Array","arguments","i","push","Item","array","prototype","apply","title","platform","browser","env","argv","version","versions","release","config","noop","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","name","cwd","chdir","dir","umask","performance","performanceNow","now","mozNow","msNow","oNow","webkitNow","Date","getTime","hrtime","previousTimestamp","clocktime","seconds","Math","floor","nanoseconds","startTime","uptime","currentTime","dif","browser$1"],"mappings":";;;AAAA,IAAAA,gBAAuBC,SAAW,YAAcA,cACvCC,OAAS,YAAcA,YACvBC,SAAW,YAAcA,OAAS,GCC3C,SAASC,mBACL,MAAM,IAAIC,MAAM,mCAEpB,SAASC,sBACL,MAAM,IAAID,MAAM,qCAEpB,IAAIE,iBAAmBH,iBACvB,IAAII,mBAAqBF,oBACzB,UAAWL,SAAOQ,aAAe,WAAY,CACzCF,iBAAmBE,WAEvB,UAAWR,SAAOS,eAAiB,WAAY,CAC3CF,mBAAqBE,aAGzB,SAASC,WAAWC,GAChB,GAAIL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,EAAQG,GAGlB,IAAIC,UAAY,IAAIT,KACpB,SAASU,SACP,IAAIC,EAAc,IAAIX,KACtB,IAAIY,EAAMD,EAAcF,UACxB,OAAOG,EAAM,IAGZ,IAACC,UAAY,CACdrD,SAAUA,SACVU,MAAOA,MACPE,QAASA,QACTC,IAAKA,IACLC,KAAMA,KACNC,QAASA,QACTC,SAAUA,SACVI,GAAIA,GACJC,YAAaA,YACbC,KAAMA,KACNC,IAAKA,IACLC,eAAgBA,eAChBC,mBAAoBA,mBACpBC,KAAMA,KACNC,QAASA,QACTE,IAAKA,IACLC,MAAOA,MACPE,MAAOA,MACPU,OAAQA,OACR/B,SAAUA,SACVM,QAASA,QACTC,OAAQA,OACRgC,OAAQA","sourcesContent":["export default (typeof global !== \"undefined\" ? global :\n typeof self !== \"undefined\" ? self :\n typeof window !== \"undefined\" ? window : {});","// shim for using process in browser\n// based off https://github.com/defunctzombie/node-process/blob/master/browser.js\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\nvar cachedSetTimeout = defaultSetTimout;\nvar cachedClearTimeout = defaultClearTimeout;\nif (typeof global.setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n}\nif (typeof global.clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n}\n\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\nfunction nextTick(fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n}\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nvar title = 'browser';\nvar platform = 'browser';\nvar browser = true;\nvar env = {};\nvar argv = [];\nvar version = ''; // empty string to avoid regexp issues\nvar versions = {};\nvar release = {};\nvar config = {};\n\nfunction noop() {}\n\nvar on = noop;\nvar addListener = noop;\nvar once = noop;\nvar off = noop;\nvar removeListener = noop;\nvar removeAllListeners = noop;\nvar emit = noop;\n\nfunction binding(name) {\n throw new Error('process.binding is not supported');\n}\n\nfunction cwd () { return '/' }\nfunction chdir (dir) {\n throw new Error('process.chdir is not supported');\n}function umask() { return 0; }\n\n// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js\nvar performance = global.performance || {};\nvar performanceNow =\n performance.now ||\n performance.mozNow ||\n performance.msNow ||\n performance.oNow ||\n performance.webkitNow ||\n function(){ return (new Date()).getTime() };\n\n// generate timestamp or delta\n// see http://nodejs.org/api/process.html#process_process_hrtime\nfunction hrtime(previousTimestamp){\n var clocktime = performanceNow.call(performance)*1e-3;\n var seconds = Math.floor(clocktime);\n var nanoseconds = Math.floor((clocktime%1)*1e9);\n if (previousTimestamp) {\n seconds = seconds - previousTimestamp[0];\n nanoseconds = nanoseconds - previousTimestamp[1];\n if (nanoseconds<0) {\n seconds--;\n nanoseconds += 1e9;\n }\n }\n return [seconds,nanoseconds]\n}\n\nvar startTime = new Date();\nfunction uptime() {\n var currentTime = new Date();\n var dif = currentTime - startTime;\n return dif / 1000;\n}\n\nvar browser$1 = {\n nextTick: nextTick,\n title: title,\n browser: browser,\n env: env,\n argv: argv,\n version: version,\n versions: versions,\n on: on,\n addListener: addListener,\n once: once,\n off: off,\n removeListener: removeListener,\n removeAllListeners: removeAllListeners,\n emit: emit,\n binding: binding,\n cwd: cwd,\n chdir: chdir,\n umask: umask,\n hrtime: hrtime,\n platform: platform,\n release: release,\n config: config,\n uptime: uptime\n};\n\nexport default browser$1;\nexport { addListener, argv, binding, browser, chdir, config, cwd, emit, env, hrtime, nextTick, off, on, once, platform, release, removeAllListeners, removeListener, title, umask, uptime, version, versions };\n"]}
|