@salla.sa/twilight-components 2.14.275 → 2.14.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond-_hmCsUXQ.js → filepond-CJdn3F-U.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DsNkKTeP.js → filepond-plugin-file-poster-9Fr-RmFL.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-MurleCvA.js → filepond-plugin-file-validate-size-DZ0GCSMB.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CWyDAFwp.js → filepond-plugin-file-validate-type-DcP1-B8x.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BGz1QNAb.js → filepond-plugin-image-edit-8HFGaBO3.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CmCjSUwG.js → filepond-plugin-image-exif-orientation-5iHIwDRh.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Dc_H1NrZ.js → filepond-plugin-image-preview-DKEgagP8.js} +1 -1
- package/dist/cjs/{index-B9asE_s-.js → index-CkjvdkQC.js} +2 -2
- package/dist/cjs/{index-4kunrMSn.js → index-dH3wWzhA.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion_62.cjs.entry.js +137 -93
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +2 -2
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-review-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-reviews-page.cjs.entry.js +2 -2
- package/dist/cjs/salla-reviews.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +57 -26
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
- package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +2 -2
- package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
- package/dist/collection/components/salla-filters/salla-filters.js +1 -1
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
- package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
- package/dist/collection/components/salla-loading/salla-loading.js +1 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -1
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +17 -2
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-options/salla-product-options.js +2 -2
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +3 -3
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-slider/salla-slider.js +2 -2
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-bottom-alert.js +57 -26
- package/dist/components/salla-cart-summary.js +1 -1
- package/dist/components/salla-color-picker2.js +1 -1
- package/dist/components/salla-comment-form2.js +1 -1
- package/dist/components/salla-comment-item2.js +3 -3
- package/dist/components/salla-conditional-fields2.js +2 -2
- package/dist/components/salla-count-down2.js +1 -1
- package/dist/components/salla-datetime-picker2.js +1 -1
- package/dist/components/salla-file-upload2.js +2 -2
- package/dist/components/salla-filters-widget2.js +2 -2
- package/dist/components/salla-filters.js +1 -1
- package/dist/components/salla-gifting.js +2 -2
- package/dist/components/salla-list-tile2.js +1 -1
- package/dist/components/salla-loading2.js +1 -1
- package/dist/components/salla-localization-modal.js +1 -1
- package/dist/components/salla-loyalty-prize-item.js +1 -1
- package/dist/components/salla-loyalty-program.js +1 -1
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +3 -3
- package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +2 -2
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +17 -2
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-options2.js +2 -2
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +3 -3
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-slider2.js +2 -2
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-U0ZLYqIx.js → filepond-BxL3IX03.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-iP50zFtW.js → filepond-plugin-file-poster-deEpH5Ae.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Dvi3pvzQ.js → filepond-plugin-file-validate-size-BEa39Iuj.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-B01LNHct.js → filepond-plugin-file-validate-type-BMYP0roS.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DjoeTrI6.js → filepond-plugin-image-edit-pSxPuxEL.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BvISmjH_.js → filepond-plugin-image-exif-orientation-CyonCi7h.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BCKrsf9H.js → filepond-plugin-image-preview-AHE_PMa1.js} +1 -1
- package/dist/esm/{index-Ci3jSA26.js → index-BfGzZMRH.js} +1 -1
- package/dist/esm/{index-CUu-nBEz.js → index-j9Uu6Y6I.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion_62.entry.js +137 -93
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +3 -3
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
- package/dist/esm/salla-loyalty-program.entry.js +2 -2
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-summary.entry.js +2 -2
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-review-card.entry.js +2 -2
- package/dist/esm/salla-reviews-page.entry.js +2 -2
- package/dist/esm/salla-reviews.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/twilight/p-0484443e.entry.js +11 -0
- package/dist/twilight/{p-e955bf1a.entry.js → p-0f171baf.entry.js} +1 -1
- package/dist/twilight/{p-65b52702.entry.js → p-11723fa9.entry.js} +1 -1
- package/dist/twilight/{p-b659c87a.entry.js → p-13613c85.entry.js} +1 -1
- package/dist/twilight/{p-1608daf8.entry.js → p-2b2e15b5.entry.js} +1 -1
- package/dist/twilight/{p-f473dbd4.entry.js → p-2c1e7550.entry.js} +1 -1
- package/dist/twilight/{p-3e78e158.entry.js → p-32a6377d.entry.js} +1 -1
- package/dist/twilight/{p-2a970731.entry.js → p-3769fd33.entry.js} +1 -1
- package/dist/twilight/{p-77b70d15.entry.js → p-3ee548e4.entry.js} +1 -1
- package/dist/twilight/{p-78c8b9ac.entry.js → p-3f276d19.entry.js} +1 -1
- package/dist/twilight/{p-7e21fd40.entry.js → p-4308ad1a.entry.js} +1 -1
- package/dist/twilight/{p-df86fe67.entry.js → p-574b9f8e.entry.js} +1 -1
- package/dist/twilight/{p-b3c01e85.entry.js → p-5b347a60.entry.js} +1 -1
- package/dist/twilight/p-634c65ef.entry.js +4 -0
- package/dist/twilight/{p-f3565aed.entry.js → p-6b5416da.entry.js} +1 -1
- package/dist/twilight/{p-483763db.entry.js → p-6c37f18d.entry.js} +1 -1
- package/dist/twilight/{p-7e2fd95f.entry.js → p-6f1aed9c.entry.js} +1 -1
- package/dist/twilight/{p-2f2c0da5.entry.js → p-74eef3e7.entry.js} +1 -1
- package/dist/twilight/{p-01c2603a.entry.js → p-79ced751.entry.js} +1 -1
- package/dist/twilight/{p-7f90c563.entry.js → p-7c25b506.entry.js} +1 -1
- package/dist/twilight/{p-a9844a4c.entry.js → p-85f642e3.entry.js} +1 -1
- package/dist/twilight/{p-12c142ec.entry.js → p-91d1a93a.entry.js} +1 -1
- package/dist/twilight/{p-df704ac0.entry.js → p-9d7d937d.entry.js} +1 -1
- package/dist/twilight/{p-BtZp8quD.js → p-Bo2EdZkn.js} +1 -1
- package/dist/twilight/{p-taJtzKQF.js → p-BrlV1D3Z.js} +1 -1
- package/dist/twilight/{p-DZ-ZaVIZ.js → p-CKxrWB22.js} +1 -1
- package/dist/twilight/{p-Ceoss831.js → p-CnkghUch.js} +1 -1
- package/dist/twilight/p-D4skofjP.js +9 -0
- package/dist/twilight/{p-C0OhEyC2.js → p-DEpf3XmE.js} +1 -1
- package/dist/twilight/{p-CX7AVJNL.js → p-Di4wL4Pj.js} +1 -1
- package/dist/twilight/p-a5120a42.entry.js +4 -0
- package/dist/twilight/{p-e04ccc45.entry.js → p-af2f1b66.entry.js} +1 -1
- package/dist/twilight/{p-da590ac2.entry.js → p-b1d7d63c.entry.js} +1 -1
- package/dist/twilight/{p-421e75bc.entry.js → p-b45bc7b9.entry.js} +1 -1
- package/dist/twilight/{p-d78552f8.entry.js → p-d4873584.entry.js} +1 -1
- package/dist/twilight/{p-58ac7005.entry.js → p-d4ceb38c.entry.js} +1 -1
- package/dist/twilight/{p-01beb676.entry.js → p-d7e75ed2.entry.js} +1 -1
- package/dist/twilight/{p-2651f1a7.entry.js → p-e21f1df5.entry.js} +1 -1
- package/dist/twilight/{p-CUu-nBEz.js → p-j9Uu6Y6I.js} +1 -1
- package/dist/twilight/{p-BYDwbMDu.js → p-scg1-EfX.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bottom-alert/salla-bottom-alert.d.ts +4 -1
- package/package.json +5 -5
- package/dist/twilight/p-48a3d338.entry.js +0 -4
- package/dist/twilight/p-90641654.entry.js +0 -4
- package/dist/twilight/p-a01ccdb6.entry.js +0 -11
- package/dist/twilight/p-phNrkkQT.js +0 -9
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CkjvdkQC.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var specialDiscount = require('./special-discount-OVG_9Kf9.js');
|
|
9
9
|
var check = require('./check-CLRvuniI.js');
|
|
@@ -612,7 +612,7 @@ const SallaBottomAlert = class {
|
|
|
612
612
|
this.template = salla.config.get('store.template');
|
|
613
613
|
this.loading = false;
|
|
614
614
|
this.templateData = {};
|
|
615
|
-
this.defaultMessage = salla.lang.getWithDefault('common.elements.store_is_available_for_purchase', 'هذا المتجر
|
|
615
|
+
this.defaultMessage = salla.lang.getWithDefault('common.elements.store_is_available_for_purchase', 'هذا المتجر تجريبى ومتاح للشراء من المطور');
|
|
616
616
|
this.defaultActionLabel = salla.lang.get('common.elements.know_more');
|
|
617
617
|
this.storeFeatures = salla.lang.get('common.elements.store_features');
|
|
618
618
|
this.storeDetails = salla.lang.get('common.elements.store_details');
|
|
@@ -624,6 +624,8 @@ const SallaBottomAlert = class {
|
|
|
624
624
|
this.isRtl = salla.config.get('theme.is_rtl', true);
|
|
625
625
|
this.storeName = salla.config.get('store.name');
|
|
626
626
|
this.salla = salla.lang.getWithDefault('common.elements.salla', 'سلة');
|
|
627
|
+
this.readyStores = salla.lang.getWithDefault('common.elements.ready_stores', 'المتاجر الجاهزة');
|
|
628
|
+
this.moreDetailsLabel = salla.lang.getWithDefault('common.elements.more_details', 'More Details');
|
|
627
629
|
/**
|
|
628
630
|
* Alert Type
|
|
629
631
|
* */
|
|
@@ -635,6 +637,8 @@ const SallaBottomAlert = class {
|
|
|
635
637
|
this.storeDetails = salla.lang.get('common.elements.store_details');
|
|
636
638
|
this.templateInformation = salla.lang.get('common.elements.template_information');
|
|
637
639
|
this.buyTheTemplate = salla.lang.get('common.elements.buy_the_template');
|
|
640
|
+
salla.helpers.setNested(salla.lang.messages['ar.trans'], 'common.elements.more_details', 'تفاصيل أكثر');
|
|
641
|
+
salla.helpers.setNested(salla.lang.messages['en.trans'], 'common.elements.more_details', 'More Details');
|
|
638
642
|
salla.helpers.setNested(salla.lang.messages['ar.trans'], 'common.elements.store_price', 'سعر المتجر');
|
|
639
643
|
salla.helpers.setNested(salla.lang.messages['en.trans'], 'common.elements.store_price', 'Store Price');
|
|
640
644
|
salla.helpers.setNested(salla.lang.messages['ar.trans'], 'common.elements.the_developer', 'المطور');
|
|
@@ -643,34 +647,46 @@ const SallaBottomAlert = class {
|
|
|
643
647
|
salla.helpers.setNested(salla.lang.messages['en.trans'], 'common.elements.store_price_details', 'Price Includes');
|
|
644
648
|
salla.helpers.setNested(salla.lang.messages['ar.trans'], 'common.elements.salla', 'سلة');
|
|
645
649
|
salla.helpers.setNested(salla.lang.messages['en.trans'], 'common.elements.salla', 'Salla');
|
|
646
|
-
salla.helpers.setNested(salla.lang.messages['ar.trans'], 'common.elements.store_is_available_for_purchase', 'هذا المتجر
|
|
647
|
-
salla.helpers.setNested(salla.lang.messages['en.trans'], 'common.elements.store_is_available_for_purchase', 'This store is available for purchase from');
|
|
650
|
+
salla.helpers.setNested(salla.lang.messages['ar.trans'], 'common.elements.store_is_available_for_purchase', 'هذا المتجر تطويري ومتاح للشراء من');
|
|
651
|
+
salla.helpers.setNested(salla.lang.messages['en.trans'], 'common.elements.store_is_available_for_purchase', 'This ready store is available for purchase from');
|
|
652
|
+
salla.helpers.setNested(salla.lang.messages['ar.trans'], 'common.elements.ready_stores', 'المتاجر الجاهزة');
|
|
653
|
+
salla.helpers.setNested(salla.lang.messages['en.trans'], 'common.elements.ready_stores', 'Ready Stores');
|
|
648
654
|
setTimeout(() => {
|
|
649
655
|
this.storePrice = salla.lang.get('common.elements.store_price');
|
|
650
656
|
this.theDeveloper = salla.lang.get('common.elements.the_developer');
|
|
651
657
|
this.storePriceDetails = salla.lang.getWithDefault('common.elements.store_price_details', 'السعر يشمل');
|
|
652
658
|
this.salla = salla.lang.getWithDefault('common.elements.salla', 'سلة');
|
|
653
|
-
this.defaultMessage = salla.lang.getWithDefault('common.elements.store_is_available_for_purchase', 'هذا المتجر
|
|
659
|
+
this.defaultMessage = salla.lang.getWithDefault('common.elements.store_is_available_for_purchase', 'هذا المتجر تطويري ومتاح للشراء من');
|
|
660
|
+
this.readyStores = salla.lang.getWithDefault('common.elements.ready_stores', 'المتاجر الجاهزة');
|
|
661
|
+
// Initialize moreDetailsLabel after translations loaded
|
|
662
|
+
this.moreDetailsLabel = salla.lang.getWithDefault('common.elements.more_details', 'More Details');
|
|
654
663
|
}, 100);
|
|
655
664
|
});
|
|
656
665
|
}
|
|
666
|
+
componentDidLoad() {
|
|
667
|
+
// Fetch template data on mount if there's a template
|
|
668
|
+
if (this.template &&
|
|
669
|
+
typeof this.template === 'object' &&
|
|
670
|
+
Object.keys(this.template).length > 0) {
|
|
671
|
+
this.fetchTemplateData();
|
|
672
|
+
}
|
|
673
|
+
}
|
|
657
674
|
open() {
|
|
658
|
-
return this.drawer.open()
|
|
659
|
-
.then(() => this.handleTemplateRequest());
|
|
675
|
+
return this.drawer.open();
|
|
660
676
|
}
|
|
661
|
-
|
|
677
|
+
fetchTemplateData() {
|
|
662
678
|
if (Object.keys(this.templateData).length) {
|
|
663
679
|
return;
|
|
664
680
|
}
|
|
665
|
-
this.
|
|
666
|
-
return salla.api
|
|
667
|
-
.
|
|
668
|
-
|
|
681
|
+
this.loading = true;
|
|
682
|
+
return salla.api
|
|
683
|
+
.request(`/store/template`, {}, 'get', { 'Store-Identifier': this.storeId })
|
|
684
|
+
.then(res => {
|
|
669
685
|
this.templateData = res.data;
|
|
670
|
-
this.
|
|
686
|
+
this.loading = false;
|
|
671
687
|
})
|
|
672
688
|
.catch(() => {
|
|
673
|
-
this.
|
|
689
|
+
this.loading = false;
|
|
674
690
|
});
|
|
675
691
|
}
|
|
676
692
|
handleAction() {
|
|
@@ -682,21 +698,34 @@ const SallaBottomAlert = class {
|
|
|
682
698
|
}
|
|
683
699
|
}
|
|
684
700
|
popup() {
|
|
685
|
-
return (index.h("salla-drawer", { class: "s-bottom-alert-modal", ref: drawer => this.drawer = drawer, "no-padding": true
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
701
|
+
return (index.h("salla-drawer", { class: "s-bottom-alert-modal", ref: drawer => (this.drawer = drawer), "no-padding": true, onLoad: () => {
|
|
702
|
+
if (this.drawer && Object.keys(this.templateData).length) {
|
|
703
|
+
this.drawer.setTitle(this.storeDetails + ' ' + this.storeName);
|
|
704
|
+
}
|
|
705
|
+
} }, Object.keys(this.templateData).length
|
|
706
|
+
? [
|
|
707
|
+
index.h("div", { class: "s-bottom-alert-modal-inner s-scrollbar" }, index.h("div", { class: { 's-bottom-alert-modal-content': true } }, this.templateData?.features
|
|
708
|
+
? [
|
|
709
|
+
index.h("div", { class: "s-bottom-alert-modal-content-title" }, index.h("i", { innerHTML: ImageIcon, class: "s-bottom-alert-modal-content-icon" }), index.h("span", null, this.storeFeatures)),
|
|
710
|
+
index.h("div", { class: "s-bottom-alert-modal-content-features", innerHTML: this.templateData?.features }),
|
|
711
|
+
]
|
|
712
|
+
: ''), index.h("div", { class: {
|
|
713
|
+
's-bottom-alert-modal-content': true,
|
|
714
|
+
's-bottom-alert-modal-content-extra-padding': this.templateData?.price,
|
|
715
|
+
} }, this.templateData?.features
|
|
716
|
+
? [
|
|
717
|
+
index.h("div", { class: "s-bottom-alert-modal-content-title" }, index.h("i", { innerHTML: moneyIcon, class: "s-bottom-alert-modal-content-icon" }), index.h("span", null, this.storePriceDetails)),
|
|
718
|
+
index.h("div", { class: "s-bottom-alert-modal-content-price-details" }, this.templateData?.price_details?.items.map(item => (index.h("div", { class: "s-bottom-alert-modal-content-price-details-item" }, index.h("i", { innerHTML: checkCircleIcon, class: "s-bottom-alert-modal-content-price-details-item-icon" }), index.h("span", { class: "s-bottom-alert-modal-content-price-details-item-name" }, item.name), index.h("span", { class: "s-bottom-alert-modal-content-price-details-item-price", innerHTML: salla.money(item.price) }))))),
|
|
719
|
+
]
|
|
720
|
+
: ''), this.templateData?.link ? (index.h("div", { class: "s-bottom-alert-modal-content-footer" }, index.h("salla-button", { color: "primary", size: "medium", width: "wide", href: this.templateData?.link }, index.h("i", { innerHTML: PendingOrdersIcon }), this.buyTheTemplate))) : ('')),
|
|
721
|
+
]
|
|
722
|
+
: ''));
|
|
690
723
|
}
|
|
691
724
|
render() {
|
|
692
725
|
const hasTemplate = this.template && typeof this.template === 'object' && Object.keys(this.template).length > 0;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
// const developerUrl = null;//hasDeveloper && developer.url;
|
|
697
|
-
return (index.h(index.Host, { key: '39eb4b7f3c12ba74281ebcdd4b52cf04ec46054b', class: "s-bottom-alert-wrapper" }, index.h("div", { key: '94bdca640a4ae3434c9b6eaf2b3af8ffabfd5802', class: "s-bottom-alert-content" }, index.h("div", { key: 'cc218513a8d832155031cdf64f63c21bf01a0d1b', class: "s-bottom-alert-icon" }, this.icon ? index.h("i", { class: this.icon }) : index.h("i", { innerHTML: infoIcon })), index.h("div", { key: '97deba6e71c8507c68fb942940912e3e201dd65e', class: "s-bottom-alert-message" }, this.message ? (this.message) : hasTemplate ? (index.h("span", null, this.defaultMessage, " ", index.h("span", { class: {
|
|
698
|
-
"s-bottom-alert-message-highlight": true,
|
|
699
|
-
}, "aria-label": "Developer" }, this.salla), " ", index.h("span", { class: "s-bottom-alert-message-splitter" }, "|"), " ", this.storePrice, ":", " ", index.h("span", { class: "s-bottom-alert-message-highlight", innerHTML: salla.money(this.template.price) }))) : (this.defaultMessage)), this.type !== 'banner' && (index.h("div", { key: '7923680790c1db0ffeb716997b489dbb9b097125', class: "s-bottom-alert-action" }, index.h("salla-button", { key: 'f0d00ce883a1dec0a1640ad5f27b9eec3e645630', href: this.actionUrl, size: "medium", onClick: () => this.handleAction(), width: "normal" }, this.actionLabel || this.defaultActionLabel))), this.type === 'popup' && this.popup())));
|
|
726
|
+
return (index.h(index.Host, { key: '22bc05913f44884ed345a2383f17fb512968aebd', class: `s-bottom-alert-wrapper ${hasTemplate ? 's-bottom-alert-wrapper-with-template' : ''}` }, hasTemplate && (index.h("div", { key: 'a1dc9f892f647c5960bfd2589026229705c10c0a', class: "s-bottom-alert-logo-section" }, index.h("img", { key: '32ef74bceb5dded364d561c158fbc0208376c575', src: "https://cdn.salla.network/images/logo/logo-light.svg", alt: "Salla", class: "s-bottom-alert-logo" }), index.h("span", { key: 'abe6b25c03ccba4697b0327609566f31d5572981', class: "s-bottom-alert-logo-text" }, this.readyStores))), index.h("div", { key: 'c0456d80ff60b07f2a41159ff772e6c34287ae2e', class: "s-bottom-alert-content" }, index.h("div", { key: '260fb0bd6afc835868782dc6d18d3a5ca123ba17', class: "flex items-center gap-2" }, index.h("div", { key: '5b8ca236d5e14947a836cc13cbb03b63ab192631', class: "s-bottom-alert-icon" }, this.icon ? index.h("i", { class: this.icon }) : index.h("i", { innerHTML: infoIcon })), index.h("div", { key: 'a72648bb7f183ab3ca18b950be1c1fedfe74d2fd', class: "s-bottom-alert-message" }, this.message ? (this.message) : hasTemplate ? (index.h("span", { class: "flex flex-wrap items-center gap-1" }, this.defaultMessage, index.h("span", { class: {
|
|
727
|
+
's-bottom-alert-message-highlight': true,
|
|
728
|
+
}, "aria-label": "Developer" }, this.salla), index.h("span", { innerHTML: salla.money(this.template.price) }))) : (this.defaultMessage))), this.type !== 'banner' && (index.h("div", { key: 'ad14d669b36f43e6bbf2f5a084ea316b970f46ef', class: hasTemplate ? 's-bottom-alert-actions-group' : 's-bottom-alert-action' }, hasTemplate ? (index.h("div", { class: "s-bottom-alert-actions-group-container" }, index.h("a", { class: "s-bottom-alert-action-link", onClick: () => this.handleAction() }, this.actionLabel || this.moreDetailsLabel), this.templateData?.link ? (index.h("button", { type: "button", class: "s-bottom-alert-action-purchase-button", onClick: () => window.open(this.templateData?.link, '_blank') }, this.buyTheTemplate)) : null)) : (index.h("salla-button", { href: this.actionUrl, size: "medium", onClick: () => this.handleAction(), width: "normal" }, this.actionLabel || this.defaultActionLabel)))), this.type === 'popup' && this.popup())));
|
|
700
729
|
}
|
|
701
730
|
get host() { return index.getElement(this); }
|
|
702
731
|
};
|
|
@@ -1127,7 +1156,7 @@ const SallaCartSummary = class {
|
|
|
1127
1156
|
return cartUrl;
|
|
1128
1157
|
}
|
|
1129
1158
|
render() {
|
|
1130
|
-
return (index.h(index.Host, { key: '
|
|
1159
|
+
return (index.h(index.Host, { key: 'f22c9fc5b6ad2c7b7f026a7b9ad2510a3c27c281' }, index.h("a", { key: 'b329fa512839a8dd6d8a1b175e254308c22a9fb0', class: "s-cart-summary-wrapper", href: this.getCartLink() }, index.h("div", { key: 'fbe89bcca0f38393a23016cf45358d38a53e5f8f', id: "s-cart-icon" }, index.h("slot", { key: 'f2668edcc903f0a8fd112c6449d8cda9113e2ffa', name: "icon" }, index.h("i", { key: 'f4a2c742903302b2676c4628961a90a7bcfe43eb', class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), index.h("span", { key: '49678efeaae684b2da2c238382b014390516db8d', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), index.h("p", { key: '9a399f82fc90e6c974022b65ea75c3f556f67221', class: "s-cart-summary-content" }, this.showCartLabel && index.h("span", { key: '879348fe4998f2eb3f26e4bebe486877bc733bff', class: "s-cart-summary-label" }, this.cartLabel), index.h("b", { key: '237d3ee6ebed4203752b6f5c4e2cb962c03cc087', class: "s-cart-summary-total", innerHTML: salla.money(this.cartSummaryTotal) })))));
|
|
1131
1160
|
}
|
|
1132
1161
|
get host() { return index.getElement(this); }
|
|
1133
1162
|
};
|
|
@@ -2297,7 +2326,7 @@ const SallaColorPicker = class {
|
|
|
2297
2326
|
});
|
|
2298
2327
|
}
|
|
2299
2328
|
render() {
|
|
2300
|
-
return (index.h(index.Host, { key: '
|
|
2329
|
+
return (index.h(index.Host, { key: '8ed135a77f4664ae0820fe116c115ecde8600630', class: "s-color-picker-main" }, index.h("slot", { key: '9c03d6effac021a15f380b58e912556c8506df77', name: "widget" }, index.h("div", { key: '079346b844adf30b07ce387fd0a0ea553d6f6c3a', class: "s-color-picker-widget" }, index.h("div", { key: 'b585d7bb86c1e66ecf624f985482594e250f5337', class: "s-color-picker-widget-canvas", ref: dv => this.canvas = dv }), index.h("span", { key: '9a3029a2d447d5bcd7eeb17f4772b0c70ff6e1a5', innerHTML: specialDiscount.ArrowDownIcon }))), index.h("input", { key: '9ceac07e6277a096b1a7070d3d9ba2def7aa0839', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => this.colorInput = color })));
|
|
2301
2330
|
}
|
|
2302
2331
|
componentDidLoad() {
|
|
2303
2332
|
this.canvas.style.backgroundColor = this.color;
|
|
@@ -2341,7 +2370,7 @@ const SallaCommentForm = class {
|
|
|
2341
2370
|
.finally(() => this.submitBtn.stop);
|
|
2342
2371
|
}
|
|
2343
2372
|
render() {
|
|
2344
|
-
return (index.h(index.Host, { key: '
|
|
2373
|
+
return (index.h(index.Host, { key: 'fbea28507c188a338ee066b5198bcf93de2fbda2' }, !!this.canComment ? index.h("form", { ref: frm => this.commentForm = frm }, index.h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
|
|
2345
2374
|
index.h("img", { class: "s-comment-form-avatar", src: salla.config.get('user.avatar'), alt: "user avatar" }) : '', index.h("div", { class: "s-comment-form-content" }, index.h("textarea", { cols: 30, rows: 5, minlength: "4", maxlength: "500", ref: field => this.commentField = field, placeholder: this.placeholder, class: "s-comment-form-input", required: true }), index.h("br", null), index.h("div", { class: "s-comment-form-action" }, index.h("salla-button", { ref: btn => this.submitBtn = btn, "loader-position": 'center', onClick: () => this.submit() }, this.submitText))))) : ''));
|
|
2346
2375
|
}
|
|
2347
2376
|
};
|
|
@@ -2477,13 +2506,13 @@ const SallaCommentItem = class {
|
|
|
2477
2506
|
}
|
|
2478
2507
|
render() {
|
|
2479
2508
|
let isAdmin = this.comment.type == 'admin';
|
|
2480
|
-
return (index.h(index.Host, { key: '
|
|
2509
|
+
return (index.h(index.Host, { key: '23f7ca8136164177f5cf8f96b91193ff511e4fbb', class: isAdmin ? 's-comments-item-admin' : 's-comments-item' }, index.h("div", { key: 'dfbc3e5b58ddbcce247e1de767b477bab1eab2e3', class: { "s-comments-item-wrapper": !isAdmin, "s-comments-item-admin-wrapper": isAdmin }, id: `s-comments-item-${this.comment.id}` }, index.h("div", { key: 'b6c77afa13d1ede6145bd85942dca414414e4e9c', class: "s-comments-item-inner s-comments-flex-1" }, isAdmin && index.h("span", { key: 'cd8515e5bbe6b71ae23857cb7c3dca069b685475', class: "s-comments-item-reply-icon", innerHTML: Reply }), index.h("div", { key: 'b12ce64b8afc4f1c77d20ac4e76c25e02ecd2f4b', class: "s-comments-item-avatar" }, index.h("img", { key: 'fd554e59e550c22618249ef76ef784bc380bba22', "data-src": this.comment?.avatar, alt: this.comment?.name, src: this.comment?.avatar, class: "s-comments-item-avatar-img lazy" })), index.h("div", { key: '2e6c9beb412773bd117372768f67c28ac024a9c4', class: "s-comments-flex-1" }, index.h("div", { key: 'a4ea92bb3416fc603fcbe98a163ed506b1c43a49', class: "s-comments-item-user-wrapper" }, index.h("div", { key: '22c882510812ba6f0ac51818015e7863c27c16d3', class: "s-comments-item-user-info" }, index.h("h3", { key: 'b69e6dec2c1000b91fa112cbdefe0d173d975a45', class: "s-comments-item-user-info-name" }, this.comment?.name), (this.comment.has_order || !!this.comment.rating) && !this.comment.is_pending && !this.hideBought ?
|
|
2481
2510
|
index.h("div", { class: "s-comments-flex" }, this.comment.has_order ?
|
|
2482
2511
|
[index.h("span", { class: "s-comments-item-has-order-check-icon", innerHTML: check.IconVerified }), index.h("span", { class: "s-comments-item-has-order-check-text" }, this.has_bought_trans, " ", this.comment.rating ? ', ' : '')] : null, !!this.comment.rating ?
|
|
2483
2512
|
index.h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
|
|
2484
|
-
: null), index.h("p", { key: '
|
|
2513
|
+
: null), index.h("p", { key: 'cc89bf414f7cd2f512fac82312f412abc38a022a', class: "s-comments-item-timestamp s-ltr" }, " ", this.getDate(this.comment.created_at?.date), " ", index.h("span", { key: 'ccc1a1c62a1584a25f165db0366d9c30dca54e4b', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date), " ")), !!this.comment.rating || !!this.comment.stars ?
|
|
2485
2514
|
index.h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
|
|
2486
|
-
: null), index.h("div", { key: '
|
|
2515
|
+
: null), index.h("div", { key: 'c8de0a5afdb23c5c3cf78f0e0bee2f90e4222424', class: "s-comments-item-content" }, index.h("p", { key: 'a56d8cd320200f11b546f85729aac9c8e36a28e1', innerHTML: this.comment.content }), this.allowAttachImages && index.h("div", { key: 'b693e349105bb69a3f411f1ffcf84b700ac6aef5', class: "s-comments-item-images" }, this.comment.images.map((image, index$1) => (index.h("img", { key: index$1, src: image, alt: "", onClick: () => this.modal.open() }))), index.h("salla-modal", { key: 'cd57384d102f513beb82a8004663af1067a5b119', ref: modal => this.modal = modal, width: "sm" }, index.h("salla-slider", { key: '07e998f014edf222aab402ba8a0a7e0d05d19f53', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, index.h("div", { key: '95edb3475172c8262eb98d32d5750b2dbdc866fc', slot: 'items' }, this.comment.images.map((image, index$1) => (index.h("img", { key: index$1, src: image, alt: "" })))), index.h("div", { key: '1c8b6d610fe47c20bd2f41fae5df1c069c0f8894', slot: "thumbs" }, this.comment.images.map((image, index$1) => (index.h("div", { class: "s-comments-item-images-slider-thumb" }, index.h("img", { key: index$1, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && salla.url.is_page('product.single') ? index.h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, index.h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), index.h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
|
|
2487
2516
|
index.h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
|
|
2488
2517
|
this.getReplies().map((reply) => {
|
|
2489
2518
|
return index.h("div", null, index.h("salla-comment-item", { comment: reply }));
|
|
@@ -2799,7 +2828,7 @@ const SallaConditionalFields = class {
|
|
|
2799
2828
|
}
|
|
2800
2829
|
changeHandler(event) {
|
|
2801
2830
|
salla.event.emit('salla-onditional-fields::change', event);
|
|
2802
|
-
salla.log('Received the change/input event:', event);
|
|
2831
|
+
salla.log('Received the change/input event: ', event);
|
|
2803
2832
|
if (!event.target ||
|
|
2804
2833
|
(!['SELECT', 'INPUT', 'TEXTAREA'].includes(event.target.tagName) &&
|
|
2805
2834
|
!['checkbox', 'radio', 'text'].includes(event.target.getAttribute('type')))) {
|
|
@@ -2887,7 +2916,7 @@ const SallaConditionalFields = class {
|
|
|
2887
2916
|
});
|
|
2888
2917
|
}
|
|
2889
2918
|
render() {
|
|
2890
|
-
return (index.h(index.Host, { key: '
|
|
2919
|
+
return (index.h(index.Host, { key: 'af75ffed0725edefeb9e6fcd2f95bf9209f63dd0' }, index.h("slot", { key: 'b28f91555071a31d967d85ba7d693e16266bcc6c' })));
|
|
2891
2920
|
}
|
|
2892
2921
|
get host() { return index.getElement(this); }
|
|
2893
2922
|
};
|
|
@@ -3035,7 +3064,7 @@ const SallaCountDown = class {
|
|
|
3035
3064
|
return this.renderCountDown();
|
|
3036
3065
|
}
|
|
3037
3066
|
render() {
|
|
3038
|
-
return (index.h(index.Host, { key: '
|
|
3067
|
+
return (index.h(index.Host, { key: '96bba6312e710673e1f249cabecfc8756fac5c0e', class: `s-count-down-wrapper ${this.preOrder && this.isValidDate(this.date) ? 's-count-down-pre-order' : ''}` }, this.renderContent(), this.offerEnded && this.renderOfferEnded()));
|
|
3039
3068
|
}
|
|
3040
3069
|
};
|
|
3041
3070
|
SallaCountDown.style = sallaCountDownCss;
|
|
@@ -3247,7 +3276,7 @@ const SallaDatetimePicker = class {
|
|
|
3247
3276
|
}
|
|
3248
3277
|
}
|
|
3249
3278
|
render() {
|
|
3250
|
-
return index.h("div", { key: '
|
|
3279
|
+
return index.h("div", { key: 'f619b5fa5fdb68b3cc8562be43496dabb1d78f37', class: "s-datetime-picker" }, index.h("input", { key: 'dc9b5d0680cd31109a2b82fcf435b8b68d5fbb8d', type: "datetime", name: this.name, value: this.value, required: this.required, disabled: this.disabled, placeholder: this.placeholder, class: "s-datetime-picker-input", ref: (el) => this.dateInput = el }));
|
|
3251
3280
|
}
|
|
3252
3281
|
async componentDidLoad() {
|
|
3253
3282
|
// Load flatpickr before initializing
|
|
@@ -3514,13 +3543,13 @@ const SallaFileUpload = class {
|
|
|
3514
3543
|
return;
|
|
3515
3544
|
try {
|
|
3516
3545
|
const [FilePondModule, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster] = await Promise.all([
|
|
3517
|
-
Promise.resolve().then(function () { return require('./filepond-
|
|
3518
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-
|
|
3519
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-
|
|
3520
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-
|
|
3521
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-
|
|
3522
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-
|
|
3523
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-
|
|
3546
|
+
Promise.resolve().then(function () { return require('./filepond-CJdn3F-U.js'); }).then(function (n) { return n.filepond; }),
|
|
3547
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-DZ0GCSMB.js'); }).then(function (n) { return n.filepondPluginFileValidateSize; }),
|
|
3548
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-5iHIwDRh.js'); }).then(function (n) { return n.filepondPluginImageExifOrientation; }),
|
|
3549
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-DKEgagP8.js'); }).then(function (n) { return n.filepondPluginImagePreview; }),
|
|
3550
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-8HFGaBO3.js'); }).then(function (n) { return n.filepondPluginImageEdit; }),
|
|
3551
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-DcP1-B8x.js'); }).then(function (n) { return n.filepondPluginFileValidateType; }),
|
|
3552
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-9Fr-RmFL.js'); }).then(function (n) { return n.filepondPluginFilePoster; })
|
|
3524
3553
|
]);
|
|
3525
3554
|
this.FilePond = FilePondModule;
|
|
3526
3555
|
// Register plugins
|
|
@@ -3810,11 +3839,11 @@ const SallaFileUpload = class {
|
|
|
3810
3839
|
}
|
|
3811
3840
|
}
|
|
3812
3841
|
render() {
|
|
3813
|
-
return (index.h(index.Host, { key: '
|
|
3842
|
+
return (index.h(index.Host, { key: 'b5d3d0cf960e703c563f8999d55a99cbfe7a85e3', class: {
|
|
3814
3843
|
"s-file-upload": true,
|
|
3815
3844
|
"s-file-upload-profile-image": this.profileImage,
|
|
3816
3845
|
"s-file-upload-multiple": this.allowMultiple,
|
|
3817
|
-
} }, index.h("input", { key: '
|
|
3846
|
+
} }, index.h("input", { key: '5e9cc8cd73e83acbb0a9f04e15e530563e94988b', type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept }), this.allowMultiple && this.showMaxCountHint ? index.h("div", { class: "s-file-upload-hint s-hidden" }, this.max_count_hint(this.maxFilesCount)) : '', index.h("input", { key: '13a402c070302bfb00d82a24f523a9b764e39037', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
|
|
3818
3847
|
}
|
|
3819
3848
|
componentDidLoad() {
|
|
3820
3849
|
let files = this.getFiles();
|
|
@@ -4444,7 +4473,7 @@ const SallaGifting = class {
|
|
|
4444
4473
|
}
|
|
4445
4474
|
render() {
|
|
4446
4475
|
return [
|
|
4447
|
-
index.h("div", { key: '
|
|
4476
|
+
index.h("div", { key: '52ed7ef8e9908a42d1815aa021654557ac1eb77e' }, index.h("salla-list-tile", { key: 'd8732567c5d2fcf0a007679087af5bb4a6589649', class: this.generateClass() }, index.h("div", { key: '2d0b7cedaaa7b3248151dfa28683984accfbf57a', slot: "title" }, this.vertical ? index.h("span", { innerHTML: GiftSharing }) : '', index.h("h3", { key: '0089f484e18cb2da81c6c55e931298f80fd97348' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), index.h("div", { key: 'a5b6e824a20b10ec8d0b1b2e64ecb672799a0035', slot: "subtitle" }, index.h("div", { key: 'fb15018d2a456bac146dc1b3ad9c93ffe23bb8f8' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), index.h("div", { key: '7c10860a3881e933850ee7828d604c7a08b3700b', slot: "action" }, index.h("salla-button", { key: 'a9a4fc5c746c6e57851f9ea5bb6e026db92428e4', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, index.h("slot", { key: '2d94342daa320d9e374b7a9945860f1ba4b92abf', name: "widget-btn-content" }, index.h("div", { key: '74d29e05b046fa4d3cdd3dab35934f879e942be6', class: "s-gifting-widget-action-content" }, index.h("span", { key: '40818643fb4ca55a007cbecf1e94b26bbe3afbe3', innerHTML: GiftSharing }), " \u00A0", index.h("span", { key: '2bd1fbcb4c0bdedcf93f7c6f677fa177c088d8a4' }, this.sectionBtnText)))))), index.h("salla-modal", { key: '3bc1fe8bb1260983aae3750154025b6d5ce661bb', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, index.h("div", { key: '1fbd87115bde6dfcdf3c7c2753b051de51afda55', slot: "loading" }, index.h("div", { key: '47d7f1b00a4752192cfa42c2d725546194633e2f', class: "s-gifting-skeleton" }, index.h("div", { key: '189a65f204bd067e31ecdc7814b5cde81409f824', class: "s-gifting-modal-header" }, index.h("salla-skeleton", { key: 'bfe75d37f7933b1632c891eb1930e5a0f3efd4ac', type: 'circle', height: '5rem', width: '5rem' }), index.h("h2", { key: '2e5a16d86c0f0c79ec5d272f515ea64e52b07d83', class: "s-gifting-modal-title" }, index.h("div", { key: '931982ea16ad7b099ddc6c33929f96cf15c05307', class: "s-gifting-modal-badge-wrapper" }, index.h("salla-skeleton", { key: '724cb7f8e35c1319e974a53ac7de72090a71bf6a', height: '15px', width: '150px' })))), index.h("div", { key: '851f77aadad1f617129f03245bc8faa5eaf6f9f3', class: "s-gifting-skeleton-content" }, index.h("salla-skeleton", { key: 'd414c203fe82bc06c8fcaa596f3905e186757682', height: '10px', width: '150px' }), index.h("salla-skeleton", { key: 'a0bea49d6eae8d7a5c41f72f147ce7b702502f20', height: '230px' }), index.h("salla-skeleton", { key: '8d7af7c14a8adad6cfbf17a185148ce7b9324756', height: '10px', width: '150px' }), index.h("salla-skeleton", { key: '0e78d2bbe2035fd2fe3f3ad295e5901bf2a0e556', height: '30px' }), index.h("salla-skeleton", { key: '0a64e92db6ee425d22b332d3ada5c25ca5277076', height: '40px' })))), index.h("slot", { key: 'f79fa4c8d457619e77de8dc459f0a65c1078c8ef', name: "header" }), !!this.hasError ?
|
|
4448
4477
|
index.h("salla-placeholder", { alignment: "center" }, index.h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), index.h("span", { slot: "description" }, " "))
|
|
4449
4478
|
:
|
|
4450
4479
|
[
|
|
@@ -4460,7 +4489,7 @@ const SallaGifting = class {
|
|
|
4460
4489
|
index.h("div", null, index.h("div", { class: this.errors && this.errors['receiver.country'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, index.h("label", { class: "s-form-label" }, this.receiverCountryFieldLabel), index.h("select", { name: "country", class: "s-form-control", onChange: (event) => this.handleCountryChange(event), required: true }, index.h("option", { value: "" }, this.selectCountry), this.gift?.countries?.map((country) => (index.h("option", { value: country.id }, country.name)))), this.errors && this.errors['receiver.country'] ?
|
|
4461
4490
|
index.h("span", { class: "s-gifting-error" }, this.errors['receiver.country']) : ''), index.h("div", { class: this.errors && this.errors['receiver.city_id'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, index.h("label", { class: "s-form-label" }, this.receiverCityFieldLabel), index.h("select", { name: "city", class: "s-form-control", onChange: (event) => this.handleReceiverCity(event), disabled: this.loadingCities }, index.h("option", { value: "", selected: true }, this.loadingCities ? salla.lang.get('common.elements.loading') : this.selectCity), this.gift?.cities?.map((city) => (index.h("option", { value: city.id }, city.name)))), this.errors && this.errors['receiver.city_id'] ?
|
|
4462
4491
|
index.h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), index.h("div", { class: "s-gifting-info anime-item opacity-0" }, index.h("span", { innerHTML: Alert }), index.h("span", null, this.selectCityInfo))), !this.physicalProducts && index.h("div", { class: "anime-item opacity-0" }, index.h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, index.h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), index.h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), index.h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, index.h("label", { class: "s-form-label" }, this.selectSendDateAndTime), index.h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), index.h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), index.h("div", { class: "s-gifting-step-two-footer anime-item opacity-0" }, index.h("a", { href: "#!", innerHTML: arrowLeft.arrowLeft, onClick: (e) => this.goToStep1(e) }), index.h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, index.h("span", null, this.sendGift)))))
|
|
4463
|
-
], index.h("slot", { key: '
|
|
4492
|
+
], index.h("slot", { key: '3a0375eeb53c624d60601045e695d56ba6b92838', name: "footer" })))
|
|
4464
4493
|
];
|
|
4465
4494
|
}
|
|
4466
4495
|
};
|
|
@@ -4568,7 +4597,7 @@ const SallaListTile = class {
|
|
|
4568
4597
|
};
|
|
4569
4598
|
}
|
|
4570
4599
|
render() {
|
|
4571
|
-
return (index.h(index.Host, { key: '
|
|
4600
|
+
return (index.h(index.Host, { key: 'b1b2a6bf65c40643d59f392e91cc76acaea5e89e' }, index.h("a", { key: '4b2026fd739b243a41bfc37fcb55bc07a1a54636', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, index.h("div", { key: 'bbc7a7133da0e471ad92a5466e9ec0481d74cdd7', class: "s-list-tile-item-icon" }, index.h("slot", { key: 'e4e338854bfc7e6843c4b87f419c9aa59970c77b', name: 'icon' })), index.h("div", { key: '1b7b2e0a65193be521cdf6cccc314c83f853216d', class: "s-list-tile-item-content" }, index.h("div", { key: '4e6a178d219827b1feef394ea5564769bf11ded2', class: "s-list-tile-item-title" }, index.h("slot", { key: '75b036812aca3e00162fc8c40459b67d4db2cc6f', name: 'title' })), index.h("div", { key: 'ab0959a43214ae0eb4cf092ea3738c71ed987709', class: "s-list-tile-item-subtitle" }, index.h("slot", { key: 'e13f66fb2a0e1c5ab2a9081c808973c9f9ecca45', name: "subtitle" }))), index.h("div", { key: '78c7542367a41a1f8bc74bca73d2581f5c0b7bfd', class: "s-list-tile-item-action" }, index.h("slot", { key: '14c8c0f31d29855d743b52f82d52a3bed300b25f', name: 'action' })))));
|
|
4572
4601
|
}
|
|
4573
4602
|
};
|
|
4574
4603
|
SallaListTile.style = sallaListTileCss;
|
|
@@ -4596,7 +4625,7 @@ const SallaLoading = class {
|
|
|
4596
4625
|
this.bgColor = "#e5e7eb";
|
|
4597
4626
|
}
|
|
4598
4627
|
render() {
|
|
4599
|
-
return (index.h(index.Host, { key: '
|
|
4628
|
+
return (index.h(index.Host, { key: '0f3796a2a8f9610f40e20eb01e4d60fb56e11a03', class: "s-loading-container" }, index.h("svg", { key: 'd9d98cfa05e5c7d188237a0a4833c4cd13c2855c', "aria-hidden": "true", style: { width: `${this.size}px`, height: `${this.size}px`, fill: this.color, color: this.bgColor }, class: "s-loading", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '75ea4d6f86456c86249dab53f3e18d21cc0380ef', d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z", fill: "currentColor" }), index.h("path", { key: '8bfd0b7ea965749ed9456742f36d2ffa28cff9f3', d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z", fill: "currentFill" }))));
|
|
4600
4629
|
}
|
|
4601
4630
|
};
|
|
4602
4631
|
SallaLoading.style = sallaLoadingCss;
|
|
@@ -4704,7 +4733,7 @@ const SallaLocalizationModal = class {
|
|
|
4704
4733
|
});
|
|
4705
4734
|
}
|
|
4706
4735
|
render() {
|
|
4707
|
-
return (index.h("salla-modal", { key: '
|
|
4736
|
+
return (index.h("salla-modal", { key: '723456204235f09a432bb4c6a2efb8e3c240511a', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, index.h("div", { key: '71a27397f1f657a20e1b2a1973d177ec108e84ad', slot: 'loading' }, index.h("div", { key: '389c43a27caac28403179a3a2401e4d6ced5ea98', class: "s-localization-modal-skeleton" }, index.h("salla-skeleton", { key: '326e2f1af3ae44116d76ffa5cce9a5504f88f7ed', width: '25%', height: '15px' }), index.h("div", { key: '5a32fddf1e2d173dd5baec833c6069ea77f1840e', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => index.h("div", { class: "s-localization-modal-skeleton-item" }, index.h("div", { class: "s-localization-modal-skeleton-item-flex" }, index.h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), index.h("salla-skeleton", { height: '10px', width: '100px' })), index.h("salla-skeleton", { height: '15px', width: '20px' })))), index.h("salla-skeleton", { key: 'e96327a83510158dd8f929570204081464a8cc48', width: '25%', height: '15px' }), index.h("div", { key: '00679c38be6c2a4112df15c7bb054ad83c5104eb', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => index.h("div", { class: "s-localization-modal-skeleton-item" }, index.h("div", { class: "s-localization-modal-skeleton-item-flex" }, index.h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), index.h("salla-skeleton", { height: '10px', width: '100px' })), index.h("salla-skeleton", { height: '15px', width: '20px' })))), index.h("salla-skeleton", { key: '4eb11307a6dfe694017c175cc88b783a093750db', height: '40px', width: '100%' }))), !!this.hasError ?
|
|
4708
4737
|
index.h("salla-placeholder", { alignment: "center" }, index.h("span", { slot: "description" }, this.errorMessage)) :
|
|
4709
4738
|
index.h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
|
|
4710
4739
|
index.h("div", { class: "s-localization-modal-section" }, index.h("label", { class: "s-localization-modal-title" }, salla.lang.get('common.titles.language')), index.h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
|
|
@@ -5256,7 +5285,7 @@ const SallaMaintenanceAlert = class {
|
|
|
5256
5285
|
this.host.style.display = 'none';
|
|
5257
5286
|
}
|
|
5258
5287
|
render() {
|
|
5259
|
-
return (index.h(index.Host, { key: '
|
|
5288
|
+
return (index.h(index.Host, { key: 'ec1f4c39f02624943122e444dce1a19bbea34a07', class: "s-maintenance-alert-wrapper" }, index.h("button", { key: 'db2892331f6addedc5b916e9c4c666023d6765b0', class: "s-maintenance-alert-close", innerHTML: Cancel, onClick: () => this.closeAlert() }), index.h("div", { key: '2cc604e98eccd343eb0fbe07d6a030aeca28d142', class: "s-maintenance-alert-content" }, index.h("div", { key: '563c647d3e73b40f8db1c51dc6b74f4333c8964e', class: "s-maintenance-alert-container" }, index.h("div", { key: '662cb7f23d6fba70fa6f2025188e73fd7fad965d', class: "s-maintenance-alert-icon" }, index.h("img", { key: 'd5ce8780910ebefa6e16a720170d799974813816', src: salla.url.cdn('images/alert.png'), alt: "Alert" })), index.h("div", { key: '35f7d4d0a3af396e0ec2bd2f7362f4f1aa620523', class: "s-maintenance-alert-text" }, index.h("h2", { key: '14edaba08f2a7f48c673c5d9e714b7e6507543a2' }, this.title), index.h("p", { key: '5fd4831d78deebfc7c7b999c9a71225ab038ec14' }, this.message))), index.h("div", { key: 'f76912d23fe45cd1bd83a89faf646b3038402476' }, index.h("a", { key: '39f2609417b1ff80ea6376a0346fa1a227828c99', class: "s-maintenance-alert-btn", href: salla.config.get('maintenance_details.button_url') }, this.buttonTitle)))));
|
|
5260
5289
|
}
|
|
5261
5290
|
componentDidLoad() {
|
|
5262
5291
|
//auto-hide the alert if close button is clicked before one hour
|
|
@@ -5970,11 +5999,11 @@ const SallaMap = class {
|
|
|
5970
5999
|
}
|
|
5971
6000
|
// render
|
|
5972
6001
|
render() {
|
|
5973
|
-
return (index.h(index.Host, { key: '
|
|
6002
|
+
return (index.h(index.Host, { key: '4493051dec9a6e1dfd97037f913832badb001588', class: "s-map-wrapper" }, index.h("salla-modal", { key: '5e492140d308e80f3a0572906e26a2750affd7ea', class: "s-map-modal-wrapper", noPadding: true, ref: modal => {
|
|
5974
6003
|
this.locationModal = modal;
|
|
5975
|
-
} }, this.getLocationModal()), index.h("slot", { key: '
|
|
6004
|
+
} }, this.getLocationModal()), index.h("slot", { key: 'c631ddacaa4d957d35f224137769669645841ef4', name: "button" }, index.h("salla-button", { key: '2e6f39c033be6327460362a80b9b6be8a99cce75', onClick: () => {
|
|
5976
6005
|
this.open();
|
|
5977
|
-
}, color: "primary", class: "s-map-location-button" }, index.h("span", { key: '
|
|
6006
|
+
}, color: "primary", class: "s-map-location-button" }, index.h("span", { key: '88371c09fa3aece12575e6759470279267d828be', class: "s-map-location-icon", innerHTML: this.formattedAddress ? Edit : Location }), this.formattedAddress ? (index.h("div", null, this.locateButtonEdit, " | ", this.formatAddress(this.formattedAddress))) : (this.locateButtonTitle))), index.h("input", { key: 'bae03eb7d7f756f3b92b5eee56c7dc0f366aee74', class: "s-hidden", name: this.name, required: this.required, value: this.getLatLng(), ref: color => this.mapInput = color })));
|
|
5978
6007
|
}
|
|
5979
6008
|
get host() { return index.getElement(this); }
|
|
5980
6009
|
};
|
|
@@ -6332,7 +6361,7 @@ const SallaMultipleBundleProduct = class {
|
|
|
6332
6361
|
this.parseProducts(this.bundleSections);
|
|
6333
6362
|
}
|
|
6334
6363
|
render() {
|
|
6335
|
-
return (index.h(index.Host, { key: '
|
|
6364
|
+
return (index.h(index.Host, { key: 'e9b525af3c011566cd15247b5f1eaf274036cd98', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
6336
6365
|
}
|
|
6337
6366
|
static get watchers() { return {
|
|
6338
6367
|
"bundleSections": ["parseProducts"]
|
|
@@ -6370,7 +6399,7 @@ const SallaMultipleBundleProductCart = class {
|
|
|
6370
6399
|
return (index.h("div", { slot: "html", class: "s-multiple-bundle-product-cart-header-wrapper" }, index.h("div", { class: `s-multiple-bundle-product-cart-header ${hasOptions ? '' : 's-multiple-bundle-product-cart-header-no-options'}` }, index.h("div", { class: "s-multiple-bundle-product-cart-header-content" }, index.h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-image-wrapper" }, index.h("img", { src: product?.image?.url, alt: product?.image?.alt || product?.name, class: "s-multiple-bundle-product-cart-header-image" })), index.h("div", { class: "s-multiple-bundle-product-cart-header-content-details" }, index.h("h2", { class: "s-multiple-bundle-product-cart-header-content-details-title" }, index.h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-content-details-title-link" }, product?.name)), index.h("div", { class: "s-multiple-bundle-product-cart-header-content-details-price" }, index.h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-regular" }, index.h("span", { innerHTML: product?.price ? salla.money(product?.price) : '' })), product?.sale_price > 0 && (index.h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-sale" }, index.h("span", { innerHTML: salla.money(product?.sale_price) })))), product?.quantity_in_group > 0 && product?.quantity !== 0 && (index.h("p", { class: "s-multiple-bundle-product-cart-header-content-details-quantity" }, index.h("span", null, salla.lang.get('pages.products.number_of_pieces')), index.h("span", null, product?.quantity_in_group))))), !hasOptions && (index.h("div", { class: "s-multiple-bundle-product-cart-header-remove-button" }, this.renderRemoveButton(sectionId, product, false))))));
|
|
6371
6400
|
}
|
|
6372
6401
|
render() {
|
|
6373
|
-
return (index.h(index.Host, { key: '
|
|
6402
|
+
return (index.h(index.Host, { key: '38c6c9885f273f77ddffa9141f2274941f8a2e50', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: '8e26eb6d1c58d2d86ba7671b0cd0b7fbeccfa90f', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
|
|
6374
6403
|
return section.products.map(product => {
|
|
6375
6404
|
const bundleContext = {
|
|
6376
6405
|
sectionId: section.id,
|
|
@@ -6527,10 +6556,10 @@ const SallaMultipleBundleProductDetails = class {
|
|
|
6527
6556
|
}
|
|
6528
6557
|
}
|
|
6529
6558
|
render() {
|
|
6530
|
-
return (index.h(index.Host, { key: '
|
|
6559
|
+
return (index.h(index.Host, { key: '01b95de8e1add5136b0fbaa0ceff430acff73f63', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: '7736f0ab829921931872dc817815344fff90efe6', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index$1) => {
|
|
6531
6560
|
const selectedCount = this.selectedProducts[section.id]?.size || 0;
|
|
6532
6561
|
return (index.h("salla-accordion", { key: section.id, collapsed: index$1 === 1 ? true : false }, index.h("salla-accordion-head", null, this.renderAccordionHeader(section, selectedCount)), index.h("salla-accordion-body", null, index.h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index$1, selectedProducts: this.selectedProducts, onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
|
|
6533
|
-
})), index.h("salla-multiple-bundle-product-options-modal", { key: '
|
|
6562
|
+
})), index.h("salla-multiple-bundle-product-options-modal", { key: '1cf3eb8fdce83b3ebbdfa13f422490b20e370e8e' })));
|
|
6534
6563
|
}
|
|
6535
6564
|
get host() { return index.getElement(this); }
|
|
6536
6565
|
};
|
|
@@ -6981,7 +7010,7 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
6981
7010
|
render() {
|
|
6982
7011
|
const productId = this.product?.id;
|
|
6983
7012
|
const optionsWithSelectedState = this.getOptionsWithSelectedState();
|
|
6984
|
-
return (index.h(index.Host, { key: '
|
|
7013
|
+
return (index.h(index.Host, { key: 'f48867c1730d142b1e55ddb4442c7e7d789a35bb' }, index.h("salla-modal", { key: '62196cd41c3979ca5e71327d9aad450a819a45ec', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, index.h("div", { key: 'feee0e09d5f1dbb19f02b8c109f43e7dc5d1dad8', slot: "loading" }, index.h("salla-skeleton", { key: '149debcb4852d4096613721a202f4079439abf0a', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (index.h("salla-slider", { key: '591045fe1d3c9e30bb53a927d3e4d62b54623503', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
|
|
6985
7014
|
centeredSlides: true,
|
|
6986
7015
|
centeredSlidesBounds: true,
|
|
6987
7016
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
@@ -6990,13 +7019,13 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
6990
7019
|
watchSlidesProgress: true,
|
|
6991
7020
|
direction: 'vertical',
|
|
6992
7021
|
spaceBetween: 10,
|
|
6993
|
-
} }, index.h("div", { key: '
|
|
7022
|
+
} }, index.h("div", { key: '1c4163f6d60a89b12d681e3df2db87a523ab092b', slot: "items" }, this.product?.images &&
|
|
6994
7023
|
this.product?.images.map((image, index$1) => (index.h("div", { key: index$1, class: "swiper-slide" }, index.h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index$1 + 1}`, loading: "lazy", onError: e => {
|
|
6995
7024
|
e.target.style.display = 'none';
|
|
6996
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '
|
|
7025
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '911fe5aad35ab3e733871bb185e7a89bb74b6da3', slot: "thumbs" }, this.product?.images &&
|
|
6997
7026
|
this.product?.images.map((image, index$1) => (index.h("div", { key: index$1, "data-caption": `${this.product?.name} - Image ${index$1 + 1}` }, index.h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index$1 + 1}`, alt: image.alt || `${this.product?.name} - ${index$1 + 1}`, onError: e => {
|
|
6998
7027
|
e.target.style.display = 'none';
|
|
6999
|
-
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${this.sectionId}-${this.sectionIndex}-${productId}-persistent`, "product-id": productId }), index.h("div", { key: '
|
|
7028
|
+
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${this.sectionId}-${this.sectionIndex}-${productId}-persistent`, "product-id": productId }), index.h("div", { key: 'd107ebd058a3f349a5f2f05f4e2b685942d485d6', slot: "footer" }, index.h("div", { key: '01c7d37a91bb95eb830fcc3290a7cfde9ef7324b', class: "s-multiple-bundle-product-options-modal-footer" }, index.h("salla-button", { key: '402b9d19c176ebaec8bd7396b9bafe74b81fa456', onClick: e => this.onSave(e), loading: this.isLoading, disabled: this.isLoading }, this.isLoading
|
|
7000
7029
|
? salla.lang.get('common.elements.saving')
|
|
7001
7030
|
: salla.lang.get('common.elements.save')))))));
|
|
7002
7031
|
}
|
|
@@ -7044,9 +7073,9 @@ const SallaMultipleBundleProductSlider = class {
|
|
|
7044
7073
|
return `bundle[${sectionId}][${productIndex}][id]`;
|
|
7045
7074
|
}
|
|
7046
7075
|
render() {
|
|
7047
|
-
return (index.h(index.Host, { key: '
|
|
7076
|
+
return (index.h(index.Host, { key: 'ec6fb04196690c5299da565d852ec77bbee6b1e3' }, index.h("salla-slider", { key: 'a7e79c2f27a53135e55e2708b5aa60d05f9ad21b', type: "carousel", controlsOuter: false, showControls: false, id: "accordion-multiple-bundle-product", pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: {
|
|
7048
7077
|
spaceBetween: 0,
|
|
7049
|
-
} }, index.h("div", { key: '
|
|
7078
|
+
} }, index.h("div", { key: 'c07aa5a0ee4fe106764b47dfa6d9f6509fb659cf', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
7050
7079
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
7051
7080
|
return (index.h("div", { class: `swiper-slide s-multiple-bundle-product-slide-one-third ${product.quantity == 0
|
|
7052
7081
|
? 's-multiple-bundle-product-slide-one-third-disabled'
|
|
@@ -7173,7 +7202,22 @@ const SallaOfferModal = class {
|
|
|
7173
7202
|
return index.h("div", { class: "s-offer-modal-discount-table" }, index.h("table", null, index.h("tbody", null, this.offer.get.discounts_table?.map(discount => index.h("tr", null, index.h("td", null, discount.text), index.h("td", { class: "s-offer-modal-discount-table-cell" }, index.h("salla-button", { fill: "outline", shape: "btn", color: "primary", size: "medium", width: "normal", onClick: () => this.addToCart(discount.quantity) }, this.addToCartLabel)))))));
|
|
7174
7203
|
}
|
|
7175
7204
|
else if (this.offer.get.products?.length) {
|
|
7176
|
-
|
|
7205
|
+
const productsCount = this.offer.get.products?.length || 0;
|
|
7206
|
+
const sliderConfig = {
|
|
7207
|
+
slidesPerView: 'auto',
|
|
7208
|
+
spaceBetween: 16,
|
|
7209
|
+
breakpoints: {
|
|
7210
|
+
768: {
|
|
7211
|
+
slidesPerView: Math.min(2, productsCount),
|
|
7212
|
+
spaceBetween: 16
|
|
7213
|
+
},
|
|
7214
|
+
1024: {
|
|
7215
|
+
slidesPerView: Math.min(3, productsCount),
|
|
7216
|
+
spaceBetween: 16
|
|
7217
|
+
}
|
|
7218
|
+
}
|
|
7219
|
+
};
|
|
7220
|
+
return (index.h("salla-products-slider", { key: (this.offer.get.products?.map(product => product.id) || []).join(","), source: "selected", "source-value": `[${(this.offer.get.products?.map(product => product.id) || []).join(",")}]`, "slider-config": JSON.stringify(sliderConfig) }));
|
|
7177
7221
|
// return <salla-slider
|
|
7178
7222
|
// type="carousel"
|
|
7179
7223
|
// class={{"s-offer-modal-slider-centered": this.offer.get.products?.length <= 2, "s-offer-modal-slider": true}}
|
|
@@ -7228,7 +7272,7 @@ const SallaOfferModal = class {
|
|
|
7228
7272
|
// '</div>';
|
|
7229
7273
|
// }
|
|
7230
7274
|
render() {
|
|
7231
|
-
return index.h("salla-modal", { key: '
|
|
7275
|
+
return index.h("salla-modal", { key: 'b02cd6b8c4a1c04751c2de3a306141e3968763a0', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, index.h("div", { key: 'c9b9e414107e0c07f67df5b58ffb805d27b97f47', slot: 'loading' }, index.h("div", { key: 'f13f2d328f4e3e640c6f0e25bcd243b63674dede', class: "s-offer-modal-skeleton" }, index.h("div", { key: '161a274876c65985d9fa60cee6d034c8b40e5bc6', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: '2f856e9c905b2cf79e91b48929598e9ac2a87447', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: 'a736af3fddd6dd8b747e7cc2d644d9b60821fcc1', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: 'f86ed33bdc4dd86dd2ecdef7eff2a9a9153ee84b', height: '10px', width: '30%' })), index.h("div", { key: '3a901c4c34503323d3401a63fb2ea321eb272240', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => index.h("div", { class: "s-offer-modal-skeleton-item" }, index.h("salla-skeleton", { height: '9rem' }), index.h("div", { class: "s-offer-modal-skeleton-item-title" }, index.h("salla-skeleton", { height: '15px', width: '100%' })), index.h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, index.h("salla-skeleton", { height: '9px', width: '50%' }), index.h("div", { innerHTML: Cart2 }))))), index.h("div", { key: 'db979f351fbddf7508064633f90b44e6df84b86c', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: 'c88fa86157d68be127fe67546bdb498cdf07fe6c', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: 'c30f40898e2c28e7de57fbb205be287740fe1aa2', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
7232
7276
|
? [index.h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: specialDiscount.SpecialDiscountIcon }), this.getOfferContent(), index.h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
7233
7277
|
index.h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
7234
7278
|
: '', index.h("label", { class: "s-offer-modal-remember-label" }, index.h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
|
|
@@ -7277,7 +7321,7 @@ const SallaPlaceholder = class {
|
|
|
7277
7321
|
};
|
|
7278
7322
|
}
|
|
7279
7323
|
render() {
|
|
7280
|
-
return (index.h(index.Host, { key: '
|
|
7324
|
+
return (index.h(index.Host, { key: '547b7d65011d9c7bd6e6869f5696a25f43ecf097', class: this.alignmentClass() }, index.h("div", { key: '1de300f1452db30b4f01d9faaff0e65082405816', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), index.h("div", { key: '051acd85460d00197e8a262fb5ce1392568fed44', class: "s-placeholder-title" }, index.h("slot", { key: '6ce6ce968005423d9da909a10a394baf2f216d5d', name: 'title' }, index.h("span", { key: 'f5a25392b23919df87830a30cbee430a3c9bf4c8' }, salla.lang.get('common.elements.no_options')))), index.h("div", { key: '29cb81f664c1d55d8d5e6d625b0252113ca438b8', class: "s-placeholder-description" }, index.h("slot", { key: 'bf16d9d8ddfc1c3674ce8068f1bb8016b819d0ba', name: 'description' }, index.h("span", { key: '07ec33e7aaf36b729adbc9f3f401e287fe18035c' }, salla.lang.get('common.errors.empty_results'))))));
|
|
7281
7325
|
}
|
|
7282
7326
|
};
|
|
7283
7327
|
SallaPlaceholder.style = sallaPlaceholderCss;
|
|
@@ -7419,7 +7463,7 @@ const SallaProductAvailability = class {
|
|
|
7419
7463
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
7420
7464
|
}
|
|
7421
7465
|
render() {
|
|
7422
|
-
return (index.h(index.Host, { key: '
|
|
7466
|
+
return (index.h(index.Host, { key: '94979dc80347804a72904cb54f917070e0476489', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
|
|
7423
7467
|
? index.h("div", { class: "s-product-availability-subscribed" }, index.h("span", { innerHTML: BellRing, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
|
|
7424
7468
|
:
|
|
7425
7469
|
index.h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
|
|
@@ -7535,14 +7579,14 @@ const SallaProductCard = class {
|
|
|
7535
7579
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
7536
7580
|
};
|
|
7537
7581
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
7538
|
-
return (index.h(index.Host, { key: '
|
|
7582
|
+
return (index.h(index.Host, { key: '55d26993163d8a0f02afb90bcd2e4775c0917377', id: `product-${this.productData?.id}`, class: classes }, index.h("div", { key: 'e43d1bc58fa8108fd9472ca4887fab659a3eeccc', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, index.h("a", { key: '73d9499d8d61f834aa95278f061c9c891c1d590a', ...hrefProp }, index.h("img", { key: 'be4520c090a16a81078615d6a62affd507da6dd0', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
7539
7583
|
? 'contain'
|
|
7540
7584
|
: this.fitImageHeight
|
|
7541
7585
|
? this.fitImageHeight
|
|
7542
|
-
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", { key: '
|
|
7543
|
-
index.h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { key: '
|
|
7586
|
+
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", { key: '577b58ab0434c3b473ce2de3f28dc3e8b1c03f99', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
7587
|
+
index.h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { key: '1593d8c5336cc43e2aa1ba8d5ca7931b67fd9d46', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
7544
7588
|
index.h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, index.h("span", null, index.h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
7545
|
-
: '', index.h("div", { key: '
|
|
7589
|
+
: '', index.h("div", { key: 'a0605f788b05342c259e3f2ad87c8cf48f6d88ee', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { key: 'fce73d249c7a0a82bd395d291716c5b96e6b4a5a', class: "s-product-card-content-title" }, index.h("a", { key: '8610e37c9d8cb8cbb74578ae1fa9da3d59852d48', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
7546
7590
|
index.h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
7547
7591
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
7548
7592
|
[index.h("salla-progress-bar", { donation: this.productData?.donation }), index.h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -7551,7 +7595,7 @@ const SallaProductCard = class {
|
|
|
7551
7595
|
this.addBtn.donatingAmount = e.target.value;
|
|
7552
7596
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
7553
7597
|
: '')]
|
|
7554
|
-
: '', index.h("div", { key: '
|
|
7598
|
+
: '', index.h("div", { key: '1d1f7f7eaa467b059f6776d1e6f15d981edd0106', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
7555
7599
|
index.h("div", { class: "s-product-card-rating" }, index.h("span", { innerHTML: Rate }), index.h("span", null, this.productData.rating.stars))
|
|
7556
7600
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
7557
7601
|
? index.h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
@@ -8167,12 +8211,12 @@ const SallaProductOptions = class {
|
|
|
8167
8211
|
}
|
|
8168
8212
|
//@ts-ignore
|
|
8169
8213
|
textOption(option) {
|
|
8170
|
-
return index.h("div", { class: "s-product-options-text" }, index.h("input", { type: "text", value: option.value, maxLength: option?.length, class: 's-form-control', required: !option.visibility_condition && option.required, name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: e => this.changedHandler(e, option)
|
|
8214
|
+
return index.h("div", { class: "s-product-options-text" }, index.h("input", { type: "text", value: option.value, maxLength: option?.length, class: 's-form-control', required: !option.visibility_condition && option.required, name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: e => this.changedHandler(e, option) }));
|
|
8171
8215
|
}
|
|
8172
8216
|
//@ts-ignore
|
|
8173
8217
|
textareaOption(option) {
|
|
8174
8218
|
//todo::remove mt-1 class, and if it's okay to remove the tag itself will be great
|
|
8175
|
-
return index.h("div", { class: "s-product-options-textarea" }, index.h("div", { class: "mt-1" }, index.h("textarea", { rows: 4, value: option.value, maxLength: option?.length, class: "s-form-control", required: !option.visibility_condition && option.required, id: this.generateUniqueKey(option.id.toString()), name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: (e) => this.changedHandler(e, option)
|
|
8219
|
+
return index.h("div", { class: "s-product-options-textarea" }, index.h("div", { class: "mt-1" }, index.h("textarea", { rows: 4, value: option.value, maxLength: option?.length, class: "s-form-control", required: !option.visibility_condition && option.required, id: this.generateUniqueKey(option.id.toString()), name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: (e) => this.changedHandler(e, option) })));
|
|
8176
8220
|
}
|
|
8177
8221
|
//@ts-ignore
|
|
8178
8222
|
mapOption(option) {
|
|
@@ -8399,11 +8443,11 @@ const SallaProductSizeGuide = class {
|
|
|
8399
8443
|
return index.h("salla-placeholder", { alignment: "center", iconSize: "xl" }, index.h("div", { slot: "title" }, this.placeholder_title), index.h("div", { slot: "description" }, this.placeholder_description));
|
|
8400
8444
|
}
|
|
8401
8445
|
render() {
|
|
8402
|
-
return (index.h("salla-modal", { key: '
|
|
8446
|
+
return (index.h("salla-modal", { key: 'e1a4f46c6b2a3b9d06b2cd439a29dae3d3df1e2b', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, index.h("span", { key: '921988dcf15f88a4382244a710117a30466e51ec', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), index.h("div", { key: '7a74a5995882d1d597e3e3ca6594248e03225be9', slot: "loading" }, index.h("div", { key: 'c08eaeb646f503f14b1a6bc9e0132970b09c154c', class: "s-product-size-guide-skeleton" }, index.h("salla-skeleton", { key: 'b0319b0ac90388145e1db879571680eea3742722', height: '15px', width: '25%' }), index.h("div", { key: '4cb3620675a3f6ef49a33e35113fbac468578034', class: "s-product-size-guide-skeleton-header" }, index.h("salla-skeleton", { key: '7413b92d0b53d179876bf9938f546819d190b01f', height: '40px' }), index.h("salla-skeleton", { key: 'd4f211c5548045bb4faea5e1e832c784cc85d2d0', height: '40px' }), index.h("salla-skeleton", { key: '23cb9409fb9f4863e233fdbe86a7ddd89761e7ed', height: '40px' }), index.h("salla-skeleton", { key: '93f027dbf97b43bcffae29ebfdf5c15c7fa012bf', height: '40px' })), index.h("div", { key: '494ca32976d92c800c5be8e44f26cb972f8cf1e0', class: "s-product-size-guide-skeleton-content" }, index.h("salla-skeleton", { key: '9889791d8bba3e58c6315e5d76b6536ef14ac29d', height: '15px', width: '25%' }), index.h("salla-skeleton", { key: 'e607037bbcab29681ffe47424b9566fcf32e7a58', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '9eedac50c162985e5c49b6e5b56c4ad86e86c5a6', height: '10px', width: '50%' }), index.h("salla-skeleton", { key: '9b189d240da2d519a4b0586bb827fd79d9021e3e', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: 'b9341d1249c837d8b8a71b1c9c8793521c49808d', height: '10px', width: '100%' }), index.h("salla-skeleton", { key: 'c57270b467abbdae57a1a1389b4df6853b2de586', height: '10px', width: '25%' }), index.h("salla-skeleton", { key: 'e0d9e3646ffbd28ccf5c93fa99bb294b93f597e7', height: '10px', width: '60%' }), index.h("salla-skeleton", { key: '20bed29a322cfe01caf9b2c1c49c0d6b2be7afc5', height: '10px', width: '45%' }), index.h("salla-skeleton", { key: '132d3aee12bad2b3b84b769742c758854498a5b1', height: '10px', width: '30%' })))), index.h("slot", { key: '008b024c1d8daea0b17f184eda43eaab3d72069a', name: "header" }), !this.hasError && !!this.guides ?
|
|
8403
8447
|
[
|
|
8404
8448
|
index.h("salla-tabs", null, this.guides.map((guide) => index.h("salla-tab-header", { slot: "header", name: guide.name }, index.h("span", null, guide.name))), this.guides.map((guide) => index.h("salla-tab-content", { slot: "content", name: guide.name }, index.h("div", { innerHTML: guide.description }))))
|
|
8405
8449
|
]
|
|
8406
|
-
: this.showPlaceholder(), index.h("slot", { key: '
|
|
8450
|
+
: this.showPlaceholder(), index.h("slot", { key: '6aedc0d9ac633fe98c6475d2375d59ef761cc64e', name: "footer" })));
|
|
8407
8451
|
}
|
|
8408
8452
|
get host() { return index.getElement(this); }
|
|
8409
8453
|
};
|
|
@@ -9396,7 +9440,7 @@ const SallaQuantityInput = class {
|
|
|
9396
9440
|
return this.host;
|
|
9397
9441
|
}
|
|
9398
9442
|
render() {
|
|
9399
|
-
return (index.h(index.Host, { key: '
|
|
9443
|
+
return (index.h(index.Host, { key: '38d9902bc9bec3bca5f00d171bd39e86270e8c48', class: "s-quantity-input" }, index.h("div", { key: '20cb75636c55b09705a7a95857bc98d37b56e94c', class: "s-quantity-input-container" }, index.h("button", { key: '59077c6462c02124fde23a180766fa130d9ceb92', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button" }, !this.hasIncrementSlot ? index.h("span", { innerHTML: Add }) : '', index.h("slot", { key: '741be510b7b82a323be7a75d077bdb2e06dc4995', name: "increment-button" })), index.h("input", { key: '7d482864cf0e66d0d74c335f2b7e72302adaea47', class: "s-quantity-input-input", ...this.getInputAttributes(), ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), min: "1", value: this.quantity }), index.h("button", { key: '9a1458df4fecee23827801e9b3e463e86f47d497', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button" }, !this.hasDecrementSlot ? index.h("span", { innerHTML: Minus }) : '', index.h("slot", { key: '3b5fabbb5a3792608921ee14b45bc48f4068d21c', name: "decrement-button" })))));
|
|
9400
9444
|
}
|
|
9401
9445
|
get host() { return index.getElement(this); }
|
|
9402
9446
|
static get watchers() { return {
|
|
@@ -10296,7 +10340,7 @@ const SallaQuickBuy = class {
|
|
|
10296
10340
|
});
|
|
10297
10341
|
}
|
|
10298
10342
|
render() {
|
|
10299
|
-
return index.h(index.Host, { key: '
|
|
10343
|
+
return index.h(index.Host, { key: 'e6440de17b7c8185dbd0636d0c009a04014ae215' }, this.quickBuyButton());
|
|
10300
10344
|
}
|
|
10301
10345
|
quickBuyButton() {
|
|
10302
10346
|
return index.h("apple-pay-button", { locale: salla.config.get('user.language_code'), onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
|
@@ -11344,7 +11388,7 @@ const SallaScopees = class {
|
|
|
11344
11388
|
return salla.onReady();
|
|
11345
11389
|
}
|
|
11346
11390
|
render() {
|
|
11347
|
-
return (index.h(index.Host, { key: '
|
|
11391
|
+
return (index.h(index.Host, { key: 'eb070775cb835b58f2ca5d38d1b47c0e4c1efa8b' }, index.h("salla-modal", { key: 'a9ef86c5a4bc3db4353047163ce1cb794ca84345', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
|
|
11348
11392
|
index.h("div", { slot: "loading" }, index.h("div", { class: "s-scopes-skeleton" }, index.h("salla-list-tile", { class: "s-scopes-header" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon" }, index.h("salla-skeleton", { type: "circle" })), index.h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, index.h("salla-skeleton", { height: '15px', width: '50%' })), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, index.h("salla-skeleton", { height: '10px' }), index.h("salla-skeleton", { height: '10px', width: '75%' }))), index.h("div", { class: "s-scopes-skeleton-search" }, index.h("salla-skeleton", { height: '10px', width: '50%' }), index.h("salla-skeleton", { height: '30px', width: '100%' })), index.h("div", { class: "s-scopes-skeleton-scopes" }, index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' })), index.h("div", { class: "s-scopes-skeleton-btn" }, index.h("salla-skeleton", { height: '40px', width: '100%' }))))
|
|
11349
11393
|
:
|
|
11350
11394
|
[index.h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), index.h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), index.h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && index.h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
|
|
@@ -11478,12 +11522,12 @@ const SallaSearch = class {
|
|
|
11478
11522
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
11479
11523
|
}
|
|
11480
11524
|
render() {
|
|
11481
|
-
const searchContent = index.h("div", { key: '
|
|
11482
|
-
index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: Search })) : null), index.h("div", { key: '
|
|
11525
|
+
const searchContent = index.h("div", { key: '64b8dccb734fee6d08cec74f87d7fb8486f0da00', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => this.container = container }, index.h("div", { key: 'aef0ccb76aebff05b167dfe05a95ae19daa383ec', class: "s-search-input-wrapper" }, index.h("span", { key: 'ac7cb6699f2c6b09fb9da9e57cfe8e724c29e358', class: "s-search-icon-wrap" }, index.h("span", { key: '68f7207dafca4f6a337c2629338f84f29ccec3ef', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), index.h("input", { key: 'e182fff8d2f4d98cea7fd0a4c22b5fab5cff7dd2', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => this.searchInput = input, style: { height: this.height + 'px', borderRadius: this.oval ? this.height / 2 + 'px' : '' } }), this.showAction ?
|
|
11526
|
+
index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: Search })) : null), index.h("div", { key: 'a72889d16dc8949b3a42375f4377cda74f8de01a', class: "s-search-results" }, this.results?.data.map((product) => index.h("a", { href: product.url + '?from=search-bar', class: { "s-search-product": true, 's-search-product-not-available': !product.is_available }, innerHTML: this.productSlot
|
|
11483
11527
|
.replace(/\{name\}/g, product.name)
|
|
11484
11528
|
.replace(/\{price\}/g, product.price ? salla.money(product.price) : '')
|
|
11485
11529
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price ? salla.money(product.regular_price) : '')
|
|
11486
|
-
.replace(/\{image\}/g, product.image.url) })), index.h("p", { key: '
|
|
11530
|
+
.replace(/\{image\}/g, product.image.url) })), index.h("p", { key: '63ae4b78f510b2a013813a544b240ac0cc7a8c69', ref: el => this.noResults = el, class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options'))));
|
|
11487
11531
|
return (this.inline ?
|
|
11488
11532
|
index.h("div", { class: "s-search-modal" }, searchContent)
|
|
11489
11533
|
:
|
|
@@ -11526,7 +11570,7 @@ const SallaSkeleton = class {
|
|
|
11526
11570
|
's-skeleton-item': true,
|
|
11527
11571
|
's-skeleton-item-circular': this.type == 'circle',
|
|
11528
11572
|
};
|
|
11529
|
-
return (index.h(index.Host, { key: '
|
|
11573
|
+
return (index.h(index.Host, { key: '64e0a58754b26fcca6cbc93d636c1c4d4f895a53', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: '1e19620023d4dfc07d343e47bd2a0126db3f034a', class: classes }, "\u00A0")));
|
|
11530
11574
|
}
|
|
11531
11575
|
};
|
|
11532
11576
|
SallaSkeleton.style = sallaSkeletonCss;
|
|
@@ -12049,7 +12093,7 @@ const SallaSlider = class {
|
|
|
12049
12093
|
classes += this.verticalThumbs ? ' s-slider-vertical ' : ' s-slider-horizontal ';
|
|
12050
12094
|
classes += this.arrowsCentered ? ' s-slider-v-centered ' : '';
|
|
12051
12095
|
classes += this.gridThumbs ? ' s-slider-with-grid-thumbs ' : '';
|
|
12052
|
-
return (index.h(index.Host, { key: '
|
|
12096
|
+
return (index.h(index.Host, { key: 'f252a63bd425f788d31328179372fa365385a85c', class: 's-slider-wrapper ' + classes }, this.blockTitle || this.showControls ?
|
|
12053
12097
|
index.h("div", { class: "s-slider-block__title" }, this.blockTitle ?
|
|
12054
12098
|
index.h("div", { class: "s-slider-block__title-right" }, index.h("h2", null, this.blockTitle), this.blockSubtitle ? index.h("p", { innerHTML: this.blockSubtitle }) : '')
|
|
12055
12099
|
: '', index.h("div", { class: "s-slider-block__title-left" }, this.displayAllUrl ?
|
|
@@ -12057,7 +12101,7 @@ const SallaSlider = class {
|
|
|
12057
12101
|
: '', this.showControls ?
|
|
12058
12102
|
index.h("div", { class: "s-slider-block__title-nav", dir: "rtl" }, index.h("button", { "aria-label": "Previous Slide", class: "s-slider-prev s-slider-nav-arrow" }, index.h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowRightIcon : ArrowLeftIcon })), index.h("button", { "aria-label": "Next Slide", class: "s-slider-next s-slider-nav-arrow" }, index.h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowLeftIcon : ArrowRightIcon })))
|
|
12059
12103
|
: ''))
|
|
12060
|
-
: '', index.h("div", { key: '
|
|
12104
|
+
: '', index.h("div", { key: 'e84fedf7c982d9c15a2b43631123ae42ecf98ab8', class: "swiper s-slider-container", ref: el => this.sliderContainer = el, dir: this.vertical ? "ltr" : this.direction }, index.h("slot", { key: 'b91356832a6d5e19134073400f19046c3372b403' }), index.h("div", { key: '21d21f8ec73eb27016a199272e4193456e2e3823', class: "swiper-wrapper s-slider-swiper-wrapper", ref: el => this.sliderWrapper = el }, index.h("slot", { key: 'e18cdeba693a383a75523836c761f33bbc5e115e', name: 'items' })), this.pagination ? index.h("div", { class: "swiper-pagination" }) : ''), this.type == 'thumbs' && this.hasThumbSlot ? index.h("div", { class: "s-slider-thumbs" }, index.h("div", { class: "swiper s-slider-thumbs-container", dir: this.getThumbsDirection(), ref: el => this.thumbsSliderContainer = el }, index.h("div", { class: { "s-slider-swiper-wrapper swiper-wrapper": true, "s-slider-grid-thumbs": this.gridThumbs }, ref: el => this.thumbsSliderWrapper = el }, index.h("slot", { name: "thumbs" })), this.showThumbsControls ?
|
|
12061
12105
|
index.h("div", { class: "s-slider-thumbs-nav", dir: "rtl" }, index.h("button", { "aria-label": "Previous Slide", class: "s-slider-thumbs-prev s-slider-nav-arrow" }, index.h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowRightIcon : ArrowLeftIcon })), index.h("button", { "aria-label": "Next Slide", class: "s-slider-thumbs-next s-slider-nav-arrow" }, index.h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowLeftIcon : ArrowRightIcon })))
|
|
12062
12106
|
: null))
|
|
12063
12107
|
: null));
|
|
@@ -12220,7 +12264,7 @@ const SallaSocialShare = class {
|
|
|
12220
12264
|
window.a2a?.init('page');
|
|
12221
12265
|
}
|
|
12222
12266
|
render() {
|
|
12223
|
-
return (index.h("div", { key: '
|
|
12267
|
+
return (index.h("div", { key: 'dcba2bc3344b69f395379ac57b849d02013cd778', class: "s-social-share-wrapper" }, index.h("slot", { key: 'ce23f2263042bd09d1233570739756d8aa133145', name: 'widget' }, index.h("salla-button", { key: 'f76f0c7af4c6f717634575efae944e11fc5403d7', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index.h("span", { key: 'b6c190caf3f9ab6dbf930e62caed60f0c5cb6a39', innerHTML: this.opened ? Cancel : ShareAlt }))), index.h("ul", { key: '5eee0092e3596e384690b3ab3f2fb74a0fc22e66', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
|
|
12224
12268
|
return (index.h("li", null, index.h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
12225
12269
|
if (icon.name === platform) {
|
|
12226
12270
|
return index.h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -12259,7 +12303,7 @@ const SallaTabContent = class {
|
|
|
12259
12303
|
's-tabs-content': true,
|
|
12260
12304
|
's-tabs-content-selected': this.isSelected
|
|
12261
12305
|
};
|
|
12262
|
-
return (index.h("div", { key: '
|
|
12306
|
+
return (index.h("div", { key: '9e1a20d0877a9c3ca6b376fe22bfb52e93c8f873', class: classes }, index.h("slot", { key: 'f5b0593c4c9b8d808901ca79e3c6fd28c2a64f36' })));
|
|
12263
12307
|
}
|
|
12264
12308
|
};
|
|
12265
12309
|
SallaTabContent.style = sallaTabContentCss;
|
|
@@ -12318,7 +12362,7 @@ const SallaTabHeader = class {
|
|
|
12318
12362
|
's-tabs-active': this.isSelected,
|
|
12319
12363
|
};
|
|
12320
12364
|
return [
|
|
12321
|
-
index.h("div", { key: '
|
|
12365
|
+
index.h("div", { key: '7e9e75c995226ca1b23a9a185c8be46206362b61', class: classes, onClick: this.onClick.bind(this) }, index.h("slot", { key: '6ed7bf434cf6b1af235e2251f6d3f385cbbbcf0b' })),
|
|
12322
12366
|
];
|
|
12323
12367
|
}
|
|
12324
12368
|
};
|
|
@@ -12371,7 +12415,7 @@ const SallaTabs = class {
|
|
|
12371
12415
|
}
|
|
12372
12416
|
render() {
|
|
12373
12417
|
return [
|
|
12374
|
-
index.h("div", { key: '
|
|
12418
|
+
index.h("div", { key: 'a82184132426d8d221c31160f48f129b0cb43a0f', class: "s-tabs" }, index.h("div", { key: '199285e8eef1f8e825b174af3b6df06ffe1ffc6e', class: "s-tabs-header" }, index.h("slot", { key: '80f789aa0dec2dc44c15f269bb554a63e325c7be', name: "header" })), index.h("div", { key: '1c4fec4e20bab0302fd04a29ebfb2f2bb93380d0', class: "s-tabs-content-wrapper" }, index.h("slot", { key: '491f2f5149acac667b3036fba9b92cf1fa027fc8', name: "content" })))
|
|
12375
12419
|
];
|
|
12376
12420
|
}
|
|
12377
12421
|
get host() { return index.getElement(this); }
|
|
@@ -12389,7 +12433,7 @@ const SallaTelInput = class {
|
|
|
12389
12433
|
if (this.TelInput)
|
|
12390
12434
|
return;
|
|
12391
12435
|
try {
|
|
12392
|
-
const telInputModule = await Promise.resolve().then(function () { return require('./index-
|
|
12436
|
+
const telInputModule = await Promise.resolve().then(function () { return require('./index-dH3wWzhA.js'); }).then(function (n) { return n.index; });
|
|
12393
12437
|
this.TelInput = telInputModule.default;
|
|
12394
12438
|
}
|
|
12395
12439
|
catch (error) {
|
|
@@ -12503,7 +12547,7 @@ const SallaTelInput = class {
|
|
|
12503
12547
|
}
|
|
12504
12548
|
}
|
|
12505
12549
|
render() {
|
|
12506
|
-
return (index.h(index.Host, { key: '
|
|
12550
|
+
return (index.h(index.Host, { key: 'f16ad5846d12d5ecef7b30e3409cd57be9bb9763', class: "s-tel-input" }, index.h("input", { key: '08a876233bba3f7878bb9dc9668f60fd16d04903', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), index.h("span", { key: 'f02fa5d196bb959f6a281fa0dc9ff2c352b97e88', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), index.h("input", { key: 'fd0f6dcf6aba98356f7be85422918ff745dc2078', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
12507
12551
|
}
|
|
12508
12552
|
componentDidLoad() {
|
|
12509
12553
|
this.initTelInput();
|
|
@@ -13024,7 +13068,7 @@ const SallaUserSettings = class {
|
|
|
13024
13068
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
13025
13069
|
}
|
|
13026
13070
|
render() {
|
|
13027
|
-
return (index.h(index.Host, { key: '
|
|
13071
|
+
return (index.h(index.Host, { key: '33752e10e70ffbf01efb75b31d4849edef0a22ca', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: '93d51db7a7034bd47afa1743046e7ed1f723f60c', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: 'a5a516cd1fae2a592ce52d9eb4d406116b961d54' }, index.h("div", { key: '84810dc0921a67f0506796fef48e4e0bdd6065ac', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '6e9ec2538288787753b39b9eab5e73085fd77af2', innerHTML: UserCancel })), index.h("div", { key: 'ea4b1e3a1a7f0335041e6bf6f1ee17bf7c10df8d', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: '05c29800a9f48ec42a8681e44e65c347b635c02e', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: '14a925b8253d160fc13ba73eedc8dbc8cb950f89', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: 'cdf006b150c126d25ae01254f142bad8a20dd553', class: "s-toggle" }, index.h("input", { key: 'd22dbe40daf8ba763b24d3456161ac24b4d59ec3', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: '73831affe4a191d6cc2c7eb3ea360a01f0287eee', class: "s-toggle-switcher" }))))), index.h("div", { key: '891e04a67ad6d20da94947e8cfa2d6edf9c7bb84', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '206fe63e42899c9a8c7efffabd6feb49b6bcb917' }, index.h("div", { key: '5d93ddd0678238418b4edd4e59352fea431a1ca3', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'f58c73c740186085c5091139dad0270c18e96759', innerHTML: Bullhorn })), index.h("div", { key: 'b6cf780f0cfe38a6fb5dc63cb2d4857f4b909c58', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: '8e8a6d47fffa6b833b4047054d22faffac042936', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: '2599fbfb496b0a9ce58e6c8dea53a8535cac5204', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '0fbcb6ff94aeef953750fb8f8d22ece4b75c99b1', class: "s-toggle" }, index.h("input", { key: '859c64fd37986ce5615bfeaacf22cfeb4aff9c6c', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: 'e1f46d025760d058516036757b47c847bef54600', class: "s-toggle-switcher" }))))), index.h("div", { key: 'fee3c156efc03e2b7c3306f1399a862d7f42bfbb', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: '494c6b20eff0df5c1733c649b6383735589550d8' }, index.h("div", { key: '33f6dda6763b824e08071055bae7a993e54d82d7', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'fb7a0899c926b2be7b4ea03e8079c0f755a3a724', innerHTML: UserOff })), index.h("div", { key: '91a27cfb2b9e19bbb1fdedbac04cac60f783fa8a', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: 'fa780dd1c2a71d180eaaeec517e3195add641011', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: 'fe97d9c07fd65ae7469551cf9d0ae4451167943e', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: 'c656e8800d73c813d4e00c6078ed3c53a1ce788f', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: 'fa19e38a8ba2de3571045be2072097477e9ca797', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: '0d4eced0174ed3c4f13fddd61b711cd9d73dac47', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: '38be1edb34805de488c648e8312807e2d49a6733', class: "s-user-settings-confirmation" }, index.h("div", { key: '949a75940d5065c4bd412e49ebc18fc9f3d39c21', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: '09403f1c85cc9bbc941dcd04bfa88b99aa0ac7c6', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: 'ccb531ffa8af9e47e758b591b9d98d980a498611', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: '9783256bdabfab9dcb0452580748d4efd2ca0f88', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
13028
13072
|
}
|
|
13029
13073
|
};
|
|
13030
13074
|
SallaUserSettings.style = sallaUserSettingsCss;
|