@salla.sa/twilight-components 2.14.311 → 2.14.313
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-C1XiGYXI.js → filepond-Cb19kTbw.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Buj7uCrK.js → filepond-plugin-file-poster-DVc66rcg.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DF5yjsD2.js → filepond-plugin-file-validate-size-BC6y9Sv3.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-xiEipTfa.js → filepond-plugin-file-validate-type-npctEnon.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DiWHC4pN.js → filepond-plugin-image-edit-CJrWzKcr.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DT-DOub-.js → filepond-plugin-image-exif-orientation-CEZiujht.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BnQaLNMf.js → filepond-plugin-image-preview-Bk5_ED_I.js} +1 -1
- package/dist/cjs/{index-Bpe38t8n.js → index-CeCbuoue.js} +1 -1
- package/dist/cjs/{index-CXC9Tj5-.js → index-DCJLMRDw.js} +6 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion_62.cjs.entry.js +59 -51
- 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-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +26 -0
- 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-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-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-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-hook/salla-hook.js +72 -0
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
- package/dist/collection/components/salla-loading/salla-loading.js +1 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -1
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +3 -3
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-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-menu/salla-user-menu.js +9 -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-hook.d.ts +11 -0
- package/dist/components/salla-hook.js +46 -0
- 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 +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +3 -3
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-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-menu.js +9 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-RxewwAln.js → filepond-9b3kZc-1.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DA_4sF_w.js → filepond-plugin-file-poster-CUQ3777V.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DXEZzHxl.js → filepond-plugin-file-validate-size-Dfk5mlDB.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DEXpzCfX.js → filepond-plugin-file-validate-type-BPui8oQ-.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BZ3QiF7z.js → filepond-plugin-image-edit-BHp0JfV4.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DNtcleQU.js → filepond-plugin-image-exif-orientation-BZ-x6UNo.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-NjmxyWIx.js → filepond-plugin-image-preview-D_CJzbI7.js} +1 -1
- package/dist/esm/{index-ChHsXzQp.js → index-90xXQpPV.js} +1 -1
- package/dist/esm/{index-DPwa4NOx.js → index-CtDnNMoY.js} +6 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion_62.entry.js +59 -51
- 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-custom-fields.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +24 -0
- 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-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-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-trust-badges.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/twilight/{p-37636816.entry.js → p-10c954ff.entry.js} +1 -1
- package/dist/twilight/{p-17c2d01a.entry.js → p-23b0afa5.entry.js} +1 -1
- package/dist/twilight/{p-d4cf4b47.entry.js → p-257c97c7.entry.js} +1 -1
- package/dist/twilight/{p-ac520537.entry.js → p-2f30b7d6.entry.js} +1 -1
- package/dist/twilight/{p-6815d5f3.entry.js → p-44c0c27c.entry.js} +1 -1
- package/dist/twilight/{p-174f6141.entry.js → p-4cb3c829.entry.js} +1 -1
- package/dist/twilight/{p-2f7e2c29.entry.js → p-66e73a02.entry.js} +1 -1
- package/dist/twilight/{p-2edcccf2.entry.js → p-6a6ca941.entry.js} +1 -1
- package/dist/twilight/{p-a1a1f0e1.entry.js → p-6baecf00.entry.js} +1 -1
- package/dist/twilight/{p-451d1c21.entry.js → p-6f1bf015.entry.js} +1 -1
- package/dist/twilight/{p-0ecfdb3a.entry.js → p-742e5dad.entry.js} +1 -1
- package/dist/twilight/{p-334fb235.entry.js → p-751f8d64.entry.js} +1 -1
- package/dist/twilight/{p-c85ae4c7.entry.js → p-77dbe4d3.entry.js} +1 -1
- package/dist/twilight/p-7b38bcfd.entry.js +4 -0
- package/dist/twilight/{p-a4568a88.entry.js → p-7da316d9.entry.js} +1 -1
- package/dist/twilight/{p-46363539.entry.js → p-81cb2ef8.entry.js} +1 -1
- package/dist/twilight/{p-38d8a361.entry.js → p-9006bd13.entry.js} +1 -1
- package/dist/twilight/{p-4987fa21.entry.js → p-90f48bbc.entry.js} +1 -1
- package/dist/twilight/{p-f7e03ebb.entry.js → p-95e20ce6.entry.js} +1 -1
- package/dist/twilight/p-98dc3c50.entry.js +4 -0
- package/dist/twilight/{p-ac1e7799.entry.js → p-9f895d32.entry.js} +1 -1
- package/dist/twilight/{p-F3EUSeeS.js → p-B3B6KApY.js} +1 -1
- package/dist/twilight/{p-D4RMmydN.js → p-C99niCgx.js} +1 -1
- package/dist/twilight/{p-BD1SYaja.js → p-CSuYUYU-.js} +1 -1
- package/dist/twilight/{p-Dy4bQAqN.js → p-ChN2gm1a.js} +1 -1
- package/dist/twilight/{p-DPwa4NOx.js → p-CtDnNMoY.js} +2 -2
- package/dist/twilight/{p-CeMwSX70.js → p-Cu8zDA0W.js} +2 -2
- package/dist/twilight/{p-DVNe0IfA.js → p-RIImqj-k.js} +1 -1
- package/dist/twilight/{p-CZvp_jll.js → p-VBs0_gXo.js} +1 -1
- package/dist/twilight/{p-2804334f.entry.js → p-a0720857.entry.js} +1 -1
- package/dist/twilight/{p-9490b410.entry.js → p-a48db011.entry.js} +1 -1
- package/dist/twilight/{p-702b7a0c.entry.js → p-a93459da.entry.js} +1 -1
- package/dist/twilight/{p-1eb7c65b.entry.js → p-aad5ea17.entry.js} +1 -1
- package/dist/twilight/{p-14e15e23.entry.js → p-abb6acb7.entry.js} +1 -1
- package/dist/twilight/p-b3299eeb.entry.js +4 -0
- package/dist/twilight/{p-817795b1.entry.js → p-b6834fe3.entry.js} +1 -1
- package/dist/twilight/{p-3eb18097.entry.js → p-bcae2015.entry.js} +1 -1
- package/dist/twilight/{p-e2677580.entry.js → p-c1f93ef4.entry.js} +1 -1
- package/dist/twilight/{p-8c297660.entry.js → p-cfd1bd43.entry.js} +1 -1
- package/dist/twilight/{p-f394d71c.entry.js → p-e32ffd30.entry.js} +2 -2
- package/dist/twilight/{p-424d2aba.entry.js → p-e47e36d7.entry.js} +1 -1
- package/dist/twilight/{p-68f69af5.entry.js → p-edc30e8d.entry.js} +1 -1
- package/dist/twilight/{p-c6f7fe97.entry.js → p-fdda110d.entry.js} +1 -1
- package/dist/twilight/{p-39vweM4j.js → p-my_auvQd.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-hook/salla-hook.d.ts +7 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +5 -5
- package/dist/twilight/p-2ab7f5a7.entry.js +0 -4
- package/dist/twilight/p-91c3423f.entry.js +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DCJLMRDw.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');
|
|
@@ -3544,13 +3544,13 @@ const SallaFileUpload = class {
|
|
|
3544
3544
|
return;
|
|
3545
3545
|
try {
|
|
3546
3546
|
const [FilePondModule, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster] = await Promise.all([
|
|
3547
|
-
Promise.resolve().then(function () { return require('./filepond-
|
|
3548
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-
|
|
3549
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-
|
|
3550
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-
|
|
3551
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-
|
|
3552
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-
|
|
3553
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-
|
|
3547
|
+
Promise.resolve().then(function () { return require('./filepond-Cb19kTbw.js'); }).then(function (n) { return n.filepond; }),
|
|
3548
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-BC6y9Sv3.js'); }).then(function (n) { return n.filepondPluginFileValidateSize; }),
|
|
3549
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-CEZiujht.js'); }).then(function (n) { return n.filepondPluginImageExifOrientation; }),
|
|
3550
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-Bk5_ED_I.js'); }).then(function (n) { return n.filepondPluginImagePreview; }),
|
|
3551
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-CJrWzKcr.js'); }).then(function (n) { return n.filepondPluginImageEdit; }),
|
|
3552
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-npctEnon.js'); }).then(function (n) { return n.filepondPluginFileValidateType; }),
|
|
3553
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-DVc66rcg.js'); }).then(function (n) { return n.filepondPluginFilePoster; })
|
|
3554
3554
|
]);
|
|
3555
3555
|
this.FilePond = FilePondModule;
|
|
3556
3556
|
// Register plugins
|
|
@@ -4616,7 +4616,7 @@ const SallaListTile = class {
|
|
|
4616
4616
|
};
|
|
4617
4617
|
}
|
|
4618
4618
|
render() {
|
|
4619
|
-
return (index.h(index.Host, { key: '
|
|
4619
|
+
return (index.h(index.Host, { key: '2b73681383da172ed01bb199b117d2063228e01e' }, index.h("a", { key: 'af5913df51093694667751d16b5ec686103791a4', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, index.h("div", { key: '49fdb468a67f0a015762a1539d2333ad694628ec', class: "s-list-tile-item-icon" }, index.h("slot", { key: '97417d4c9bf63e498510549d08dbf5df55050526', name: 'icon' })), index.h("div", { key: '53544687a14f2c992ad17d0194a10fba0ad40631', class: "s-list-tile-item-content" }, index.h("div", { key: 'a8803d707ccd88df74d425a004e5c180d0106c50', class: "s-list-tile-item-title" }, index.h("slot", { key: '27b091e8cf03dc9253baf135bdc6a8166eac566c', name: 'title' })), index.h("div", { key: 'c2ab48314fe243e6cea9dd7e8f0be4104a0b89e3', class: "s-list-tile-item-subtitle" }, index.h("slot", { key: '31c7e05be4026e990704926f6b29c8b1e570a548', name: "subtitle" }))), index.h("div", { key: '4fb89eaad3693b3b49e6d4ac72f09dca7c52eeeb', class: "s-list-tile-item-action" }, index.h("slot", { key: '7e587373e0282a22387028aaa6a801b9909f707a', name: 'action' })))));
|
|
4620
4620
|
}
|
|
4621
4621
|
};
|
|
4622
4622
|
SallaListTile.style = sallaListTileCss;
|
|
@@ -4644,7 +4644,7 @@ const SallaLoading = class {
|
|
|
4644
4644
|
this.bgColor = "#e5e7eb";
|
|
4645
4645
|
}
|
|
4646
4646
|
render() {
|
|
4647
|
-
return (index.h(index.Host, { key: '
|
|
4647
|
+
return (index.h(index.Host, { key: 'a3ab1e66f7b26628e7bfb1f5560127d042203cf3', class: "s-loading-container" }, index.h("svg", { key: 'e33089cee347160eaea4ded8ab8a5543a91f5ea1', "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: '8163f98231203552ea3f514ac3b8cd16a8d9426c', 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: '959ea259b039d16be8b9dc39a2fb2e409bfffe0e', 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" }))));
|
|
4648
4648
|
}
|
|
4649
4649
|
};
|
|
4650
4650
|
SallaLoading.style = sallaLoadingCss;
|
|
@@ -4750,7 +4750,7 @@ const SallaLocalizationModal = class {
|
|
|
4750
4750
|
});
|
|
4751
4751
|
}
|
|
4752
4752
|
render() {
|
|
4753
|
-
return (index.h("salla-modal", { key: '
|
|
4753
|
+
return (index.h("salla-modal", { key: '5dc52d55d6f0734fe012a0b2e0905726fe38d589', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, index.h("div", { key: '4bca65d74ec913cd87a90013fef53f6be5211aae', slot: 'loading' }, index.h("div", { key: '0340dd7b21ee3f7aedc40d86f4b495ff9e837e2f', class: "s-localization-modal-skeleton" }, index.h("salla-skeleton", { key: 'd68c42e1c0084cd0f34dde3db6379dc5419861a3', width: '25%', height: '15px' }), index.h("div", { key: 'b5dbb8ef6e18b9c01ad2100aec210b21ecade841', 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: 'f7bd2e49a093a6c6e768db33571ddeaa59b4c436', width: '25%', height: '15px' }), index.h("div", { key: '81a89116ff23690183def7fd97a1e4c6372625cf', 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: 'a10ab122c15b27161f4c451449dbf28975f3da2f', height: '40px', width: '100%' }))), !!this.hasError ?
|
|
4754
4754
|
index.h("salla-placeholder", { alignment: "center" }, index.h("span", { slot: "description" }, this.errorMessage)) :
|
|
4755
4755
|
index.h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
|
|
4756
4756
|
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 ?
|
|
@@ -5301,7 +5301,7 @@ const SallaMaintenanceAlert = class {
|
|
|
5301
5301
|
this.host.style.display = 'none';
|
|
5302
5302
|
}
|
|
5303
5303
|
render() {
|
|
5304
|
-
return (index.h(index.Host, { key: '
|
|
5304
|
+
return (index.h(index.Host, { key: 'ffed38acd231d54e0d4df132b6d1713af73daacb', class: "s-maintenance-alert-wrapper" }, index.h("button", { key: '470e4bab2c7887985eb2f6cbb9660e8cde45b933', class: "s-maintenance-alert-close", innerHTML: Cancel, onClick: () => this.closeAlert() }), index.h("div", { key: '5de8c0fa8d3736ecb7ff943e4b221ec6bf02d5c0', class: "s-maintenance-alert-content" }, index.h("div", { key: '2b8dc5265cadee940c93956fe605480b9604b861', class: "s-maintenance-alert-container" }, index.h("div", { key: '18af440184afbfba639aa21f0831e58c1cb68bc8', class: "s-maintenance-alert-icon" }, index.h("img", { key: '9c9436340095cc0b512a71d5a19513e09ec0a20b', src: salla.url.cdn('images/alert.png'), alt: "Alert" })), index.h("div", { key: '41aebccf4457a3c2dad233a3fd9f90cb044bc569', class: "s-maintenance-alert-text" }, index.h("h2", { key: 'd1ac960765a3d6dadd9a59534c02fb397d0f4f49' }, this.title), index.h("p", { key: '42b2e8f3bb14358f7bb701c44c6a9cb20bb74201' }, this.message))), index.h("div", { key: '41c618aaf1c711238f91d9508c3a4b72ceebd3e7' }, index.h("a", { key: 'af42812f260c486c9cf5bcfe9a2d9e812ea2ee27', class: "s-maintenance-alert-btn", href: salla.config.get('maintenance_details.button_url') }, this.buttonTitle)))));
|
|
5305
5305
|
}
|
|
5306
5306
|
componentDidLoad() {
|
|
5307
5307
|
//auto-hide the alert if close button is clicked before one hour
|
|
@@ -6015,11 +6015,11 @@ const SallaMap = class {
|
|
|
6015
6015
|
}
|
|
6016
6016
|
// render
|
|
6017
6017
|
render() {
|
|
6018
|
-
return (index.h(index.Host, { key: '
|
|
6018
|
+
return (index.h(index.Host, { key: 'a01ad8517c8fc750d31af4259bc00e26a0cb7f42', class: "s-map-wrapper" }, index.h("salla-modal", { key: '2e99a7b59fb59fdd25984c534ee0f60c1678da12', class: "s-map-modal-wrapper", noPadding: true, ref: modal => {
|
|
6019
6019
|
this.locationModal = modal;
|
|
6020
|
-
} }, this.getLocationModal()), index.h("slot", { key: '
|
|
6020
|
+
} }, this.getLocationModal()), index.h("slot", { key: '96a8702d408225075a18356a79f3597893186fdb', name: "button" }, index.h("salla-button", { key: 'e56b39a804f458d2a25cbbe3eb884d4b38855c92', onClick: () => {
|
|
6021
6021
|
this.open();
|
|
6022
|
-
}, color: "primary", class: "s-map-location-button" }, index.h("span", { key: '
|
|
6022
|
+
}, color: "primary", class: "s-map-location-button" }, index.h("span", { key: 'd362aba9fc12ddb34fb2cf13eb162d1d411694d8', 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: '336253ca8c391854e28fde526b26df1b049191d3', class: "s-hidden", name: this.name, required: this.required, value: this.getLatLng(), ref: color => this.mapInput = color })));
|
|
6023
6023
|
}
|
|
6024
6024
|
get host() { return index.getElement(this); }
|
|
6025
6025
|
};
|
|
@@ -6377,7 +6377,7 @@ const SallaMultipleBundleProduct = class {
|
|
|
6377
6377
|
this.parseProducts(this.bundleSections);
|
|
6378
6378
|
}
|
|
6379
6379
|
render() {
|
|
6380
|
-
return (index.h(index.Host, { key: '
|
|
6380
|
+
return (index.h(index.Host, { key: 'f97e22f3a04a75514d348c6f0fc3f820991d0726', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
6381
6381
|
}
|
|
6382
6382
|
static get watchers() { return {
|
|
6383
6383
|
"bundleSections": ["parseProducts"]
|
|
@@ -6415,7 +6415,7 @@ const SallaMultipleBundleProductCart = class {
|
|
|
6415
6415
|
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))))));
|
|
6416
6416
|
}
|
|
6417
6417
|
render() {
|
|
6418
|
-
return (index.h(index.Host, { key: '
|
|
6418
|
+
return (index.h(index.Host, { key: '8873c3019b035f2dcc56d675009516f9a116ac65', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: '1a807469e13754220d5a3f60f51d71a4dd2876b9', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
|
|
6419
6419
|
return section.products.map(product => {
|
|
6420
6420
|
const bundleContext = {
|
|
6421
6421
|
sectionId: section.id,
|
|
@@ -6587,10 +6587,10 @@ const SallaMultipleBundleProductDetails = class {
|
|
|
6587
6587
|
}
|
|
6588
6588
|
}
|
|
6589
6589
|
render() {
|
|
6590
|
-
return (index.h(index.Host, { key: '
|
|
6590
|
+
return (index.h(index.Host, { key: '009238f9ea463ac6dcf5cf2daaff8a5a0bc9e7c6', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: 'c683c0a95aa5e6d429d59608b113ac3cf6f6d507', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index$1) => {
|
|
6591
6591
|
const selectedCount = this.selectedProducts[section.id]?.size || 0;
|
|
6592
6592
|
return (index.h("salla-accordion", { key: section.id, collapsed: index$1 === 0 ? false : true }, 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 }))));
|
|
6593
|
-
})), index.h("salla-multiple-bundle-product-options-modal", { key: '
|
|
6593
|
+
})), index.h("salla-multiple-bundle-product-options-modal", { key: '1fbc34fc1a72f24c70f15de33d0514806c993276' })));
|
|
6594
6594
|
}
|
|
6595
6595
|
get host() { return index.getElement(this); }
|
|
6596
6596
|
};
|
|
@@ -7054,7 +7054,7 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
7054
7054
|
const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
|
|
7055
7055
|
const resetToken = this.optionsResetTokens[cacheKey] || 0;
|
|
7056
7056
|
const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
|
|
7057
|
-
return (index.h(index.Host, { key: '
|
|
7057
|
+
return (index.h(index.Host, { key: 'dd62350dcfa58a893ef2df53ec911fd8b5815e2b' }, index.h("salla-modal", { key: '3462904c6a7afd45b60e6834fb84256934d88250', 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: '44fa4b732355fe67cb0210b1a2358dee0e87b971', slot: "loading" }, index.h("salla-skeleton", { key: '3406dcb4405fcb2bc8591ed76dbe06f4c33a6ed5', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (index.h("salla-slider", { key: '31083863740477cf51c9ae26ff67f8dd29480b68', 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: {
|
|
7058
7058
|
centeredSlides: true,
|
|
7059
7059
|
centeredSlidesBounds: true,
|
|
7060
7060
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
@@ -7063,13 +7063,13 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
7063
7063
|
watchSlidesProgress: true,
|
|
7064
7064
|
direction: 'vertical',
|
|
7065
7065
|
spaceBetween: 10,
|
|
7066
|
-
} }, index.h("div", { key: '
|
|
7066
|
+
} }, index.h("div", { key: '9fe8ed837b38786c7b859a82e8660c68a67e8ea1', slot: "items" }, this.product?.images &&
|
|
7067
7067
|
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 => {
|
|
7068
7068
|
e.target.style.display = 'none';
|
|
7069
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '
|
|
7069
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '49283e693516dc459f3787cc1c4d5509818b7e26', slot: "thumbs" }, this.product?.images &&
|
|
7070
7070
|
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 => {
|
|
7071
7071
|
e.target.style.display = 'none';
|
|
7072
|
-
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), index.h("div", { key: '
|
|
7072
|
+
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), index.h("div", { key: '12cc11756bdd49d315f6afa406c117df3e37407c', slot: "footer" }, index.h("div", { key: 'd87fa48d3b7fec07cc0043cc24b9308a2c2cec70', class: "s-multiple-bundle-product-options-modal-footer" }, index.h("salla-button", { key: 'c5b6c42452e2762a4c43800f18febb3398ef8f37', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
|
|
7073
7073
|
? salla.lang.get('common.elements.saving')
|
|
7074
7074
|
: salla.lang.get('common.elements.save')))))));
|
|
7075
7075
|
}
|
|
@@ -7167,7 +7167,7 @@ const SallaMultipleBundleProductSlider = class {
|
|
|
7167
7167
|
return `bundle[${sectionId}][${productIndex}][id]`;
|
|
7168
7168
|
}
|
|
7169
7169
|
render() {
|
|
7170
|
-
return (index.h(index.Host, { key: '
|
|
7170
|
+
return (index.h(index.Host, { key: '4ef22b64a4a3392ccd2ddc029af11ba76ff4c47a' }, index.h("salla-slider", { key: 'dd84eb1d64a44a705d777c74e069ae80e1d944eb', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, index.h("div", { key: 'aec640b2b29a0b0876af8b544df4c7ee15a74e27', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
7171
7171
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
7172
7172
|
const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
|
|
7173
7173
|
const optionsButtonLabel = hasSavedOptions
|
|
@@ -7371,7 +7371,7 @@ const SallaOfferModal = class {
|
|
|
7371
7371
|
// '</div>';
|
|
7372
7372
|
// }
|
|
7373
7373
|
render() {
|
|
7374
|
-
return index.h("salla-modal", { key: '
|
|
7374
|
+
return index.h("salla-modal", { key: 'cce39e37f10738b57aa3981b402fd695e5614f69', "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: '44db6d240ef285ceadaa8304c8a7321770b59541', slot: 'loading' }, index.h("div", { key: 'f2721f8dd62465f41b80cd87e93871423da0d687', class: "s-offer-modal-skeleton" }, index.h("div", { key: 'bc1bbf966b5111455a38ca9eedd5e3159ed86956', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: '8a4d75112081bdb3664e240fcd95be52f6ad5527', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: '65985bda2934c676a5758e6b94e118bcf0696351', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: 'fb5c108d26a3ff305c2cc729cdc1a616db68b20c', height: '10px', width: '30%' })), index.h("div", { key: '706c54146077f6c92130114df5f66ec65699beb4', 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: 'c9aca5136d7fafd43104ee1564de95685ace0e4a', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: 'd9552f41873c2e30a3297b0d95ff144d4e2dc4c6', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '2ea2374ea472716d167e9acc5588cdc0315c6c2a', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
7375
7375
|
? [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 ?
|
|
7376
7376
|
index.h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
7377
7377
|
: '', 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'))),
|
|
@@ -7420,7 +7420,7 @@ const SallaPlaceholder = class {
|
|
|
7420
7420
|
};
|
|
7421
7421
|
}
|
|
7422
7422
|
render() {
|
|
7423
|
-
return (index.h(index.Host, { key: '
|
|
7423
|
+
return (index.h(index.Host, { key: '0afff2490cf356f9d186c8a057c360cba1ff12f4', class: this.alignmentClass() }, index.h("div", { key: '26bcb2fad3db4a59ac152938ef8af92f7ec4711f', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), index.h("div", { key: 'c54ea123915f1a754539b8f27ce4517caa913624', class: "s-placeholder-title" }, index.h("slot", { key: '3bf84aee6bb36e791277c7375a520b7aa1e627e2', name: 'title' }, index.h("span", { key: '8d5690cc966a43f25b6b4353573dbedefb42d3a7' }, salla.lang.get('common.elements.no_options')))), index.h("div", { key: '050d6c66c9f692b4f57987f40079dca3e0275dda', class: "s-placeholder-description" }, index.h("slot", { key: '9dfc09558c3ab64880199963265d373cbe485a42', name: 'description' }, index.h("span", { key: '5aa46516c9f9c48c8541c70804297642cd9c0128' }, salla.lang.get('common.errors.empty_results'))))));
|
|
7424
7424
|
}
|
|
7425
7425
|
};
|
|
7426
7426
|
SallaPlaceholder.style = sallaPlaceholderCss;
|
|
@@ -7562,7 +7562,7 @@ const SallaProductAvailability = class {
|
|
|
7562
7562
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
7563
7563
|
}
|
|
7564
7564
|
render() {
|
|
7565
|
-
return (index.h(index.Host, { key: '
|
|
7565
|
+
return (index.h(index.Host, { key: 'b2874946fa09ff790fbeb3bdd143cca505542c7f', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
|
|
7566
7566
|
? 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'))
|
|
7567
7567
|
:
|
|
7568
7568
|
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()));
|
|
@@ -7678,14 +7678,14 @@ const SallaProductCard = class {
|
|
|
7678
7678
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
7679
7679
|
};
|
|
7680
7680
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
7681
|
-
return (index.h(index.Host, { key: '
|
|
7681
|
+
return (index.h(index.Host, { key: '1ba722ea589409d9f1e87bf80fb264c39ff3407d', id: `product-${this.productData?.id}`, class: classes }, index.h("div", { key: '4135a9d0ae731d5afd212f827268fc28fdfc4371', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, index.h("a", { key: '16205494a9694e206e7c641928b39d0908f0e5f8', ...hrefProp }, index.h("img", { key: '96240283880488f6a24ae907dc941af3faff2cdd', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
7682
7682
|
? 'contain'
|
|
7683
7683
|
: this.fitImageHeight
|
|
7684
7684
|
? this.fitImageHeight
|
|
7685
|
-
: '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: '
|
|
7686
|
-
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: '
|
|
7685
|
+
: '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: '16de8b85fe8a6be739a8c237a9b87e793440e543', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
7686
|
+
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: 'd9f6ee716826fedad7bb2fa278aec7c671f9d054', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
7687
7687
|
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" })))
|
|
7688
|
-
: '', index.h("div", { key: '
|
|
7688
|
+
: '', index.h("div", { key: '80c860822eec4ab94d6a4044eebd7b421422c6ce', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { key: 'b8637cb5b9bdf4122e1dcde796acca11fa5d529e', class: "s-product-card-content-title" }, index.h("a", { key: '7463a7dda95db7177e01755731ec1e1396b52fa6', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
7689
7689
|
index.h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
7690
7690
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
7691
7691
|
[index.h("salla-progress-bar", { donation: this.productData?.donation }), index.h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -7694,7 +7694,7 @@ const SallaProductCard = class {
|
|
|
7694
7694
|
this.addBtn.donatingAmount = e.target.value;
|
|
7695
7695
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
7696
7696
|
: '')]
|
|
7697
|
-
: '', index.h("div", { key: '
|
|
7697
|
+
: '', index.h("div", { key: '1f0c75f85dccf881d067b615d5adb6c3ce48dda3', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
7698
7698
|
index.h("div", { class: "s-product-card-rating" }, index.h("span", { innerHTML: Rate }), index.h("span", null, this.productData.rating.stars))
|
|
7699
7699
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
7700
7700
|
? index.h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
@@ -8539,11 +8539,11 @@ const SallaProductSizeGuide = class {
|
|
|
8539
8539
|
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));
|
|
8540
8540
|
}
|
|
8541
8541
|
render() {
|
|
8542
|
-
return (index.h("salla-modal", { key: '
|
|
8542
|
+
return (index.h("salla-modal", { key: '384f363c957c3df3ee65334136f7d0ef09ce36fc', 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: '0c049828fbf3eae9156f24d6ef30b5b823bfd2c1', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), index.h("div", { key: '8166846ab7611d50796bce6d208f6978f5c1c088', slot: "loading" }, index.h("div", { key: '6feaa9186dfd939b36d05c5f337c8784fc644480', class: "s-product-size-guide-skeleton" }, index.h("salla-skeleton", { key: '921e7520d9a90e751222c18716bfb39a865b4b46', height: '15px', width: '25%' }), index.h("div", { key: '1ecb6eb9a1728656ddfe699cf376737dd7b72357', class: "s-product-size-guide-skeleton-header" }, index.h("salla-skeleton", { key: '9d8c11db7b515db9b4c341c90211882803a58e9c', height: '40px' }), index.h("salla-skeleton", { key: 'e91f8003b99e1126e5254a729d62542e032f4e99', height: '40px' }), index.h("salla-skeleton", { key: 'e6d30569c9d87bc0e9e273df13fb2d57d5bd3716', height: '40px' }), index.h("salla-skeleton", { key: '112765ae4bc7e1a41377e67523737049b8234e8d', height: '40px' })), index.h("div", { key: '2248ed8073b05ccea031742a498e1dc3bb3178e3', class: "s-product-size-guide-skeleton-content" }, index.h("salla-skeleton", { key: '7d5929af223435e8f43362f78b277bbd0e0d9479', height: '15px', width: '25%' }), index.h("salla-skeleton", { key: 'cd4eab828a3e625ab3a8f16f6199861035c1fe49', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '83c1a6ed44dc352dfb7e29e41f82b4f6043b0695', height: '10px', width: '50%' }), index.h("salla-skeleton", { key: 'f9c4005b5b2dbf50ec29506ccbf13fee6642fffa', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: 'fed1a272411d0d092c9d384962e0d1dcfb10ca40', height: '10px', width: '100%' }), index.h("salla-skeleton", { key: 'a8933a1796a4993431fce91f9f471310aeca3a77', height: '10px', width: '25%' }), index.h("salla-skeleton", { key: '79a1e76732a2aff6245fd860940c37ea7e1a1b2b', height: '10px', width: '60%' }), index.h("salla-skeleton", { key: '19cf1175e01bb2e88e8253c5389d137d00441d77', height: '10px', width: '45%' }), index.h("salla-skeleton", { key: '919c1fe25c1d87a986560d915e1684ce041c3b41', height: '10px', width: '30%' })))), index.h("slot", { key: '583482193b8fbc5305b3f17e2a4b5ac432d02914', name: "header" }), !this.hasError && !!this.guides ?
|
|
8543
8543
|
[
|
|
8544
8544
|
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 }))))
|
|
8545
8545
|
]
|
|
8546
|
-
: this.showPlaceholder(), index.h("slot", { key: '
|
|
8546
|
+
: this.showPlaceholder(), index.h("slot", { key: 'd6ad0d235f1bb604cdef6a8e092b80eb09e5c447', name: "footer" })));
|
|
8547
8547
|
}
|
|
8548
8548
|
get host() { return index.getElement(this); }
|
|
8549
8549
|
};
|
|
@@ -9537,7 +9537,7 @@ const SallaQuantityInput = class {
|
|
|
9537
9537
|
return this.host;
|
|
9538
9538
|
}
|
|
9539
9539
|
render() {
|
|
9540
|
-
return (index.h(index.Host, { key: '
|
|
9540
|
+
return (index.h(index.Host, { key: '28affdf05857418dae49033176368c0d94adb689', class: "s-quantity-input" }, index.h("div", { key: 'be40a888c3c22ff958e8c32691ad881d9d4b6fd5', class: "s-quantity-input-container" }, index.h("button", { key: '50149c259fb29239c685568b15320f11d6c278bd', 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: 'c8e0e34aa674924fd5163cea734891d865ce22d0', name: "increment-button" })), index.h("input", { key: '778309d2e7e4c47fefecdcb0b2d56373eb120511', 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: '8827f979a0606757f904c9d92c42b86940bda956', 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: '2d3bd8ae0cd13042dfc88314d6f4dfad751d004d', name: "decrement-button" })))));
|
|
9541
9541
|
}
|
|
9542
9542
|
get host() { return index.getElement(this); }
|
|
9543
9543
|
static get watchers() { return {
|
|
@@ -10442,7 +10442,7 @@ const SallaQuickBuy = class {
|
|
|
10442
10442
|
});
|
|
10443
10443
|
}
|
|
10444
10444
|
render() {
|
|
10445
|
-
return index.h(index.Host, { key: '
|
|
10445
|
+
return index.h(index.Host, { key: '0d36f47ae833aca9cd0b70490eb7092d8d430e24' }, this.quickBuyButton());
|
|
10446
10446
|
}
|
|
10447
10447
|
quickBuyButton() {
|
|
10448
10448
|
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 });
|
|
@@ -11509,7 +11509,7 @@ const SallaScopees = class {
|
|
|
11509
11509
|
return salla.onReady();
|
|
11510
11510
|
}
|
|
11511
11511
|
render() {
|
|
11512
|
-
return (index.h(index.Host, { key: '
|
|
11512
|
+
return (index.h(index.Host, { key: 'c9e89e9452e6227472d007e01bcb84f3e8662b31' }, index.h("salla-modal", { key: '9f3bde0125dec95840a9df1c1ae7730f291acc6f', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
|
|
11513
11513
|
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%' }))))
|
|
11514
11514
|
:
|
|
11515
11515
|
[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 ?
|
|
@@ -11643,12 +11643,12 @@ const SallaSearch = class {
|
|
|
11643
11643
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
11644
11644
|
}
|
|
11645
11645
|
render() {
|
|
11646
|
-
const searchContent = index.h("div", { key: '
|
|
11647
|
-
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: '
|
|
11646
|
+
const searchContent = index.h("div", { key: '87730f3e2b289256978be308b6c89e7c6442fe90', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => this.container = container }, index.h("div", { key: '45cbe1c5c33aee61a41108c8a3d988f5148db9c9', class: "s-search-input-wrapper" }, index.h("span", { key: '804b1374b1d382a994329f966194b28b02cdaf67', class: "s-search-icon-wrap" }, index.h("span", { key: '750df807146faed676ecb89157d5c9c85b835e22', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), index.h("input", { key: '3a1c7f98c40dff3d62f70d5e82f2c3d82436d29d', 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 ?
|
|
11647
|
+
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: '52327f5d989f66c2d56574b88ca91c4397b9ef28', 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
|
|
11648
11648
|
.replace(/\{name\}/g, product.name)
|
|
11649
11649
|
.replace(/\{price\}/g, product.price ? salla.money(product.price) : '')
|
|
11650
11650
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price ? salla.money(product.regular_price) : '')
|
|
11651
|
-
.replace(/\{image\}/g, product.image.url) })), index.h("p", { key: '
|
|
11651
|
+
.replace(/\{image\}/g, product.image.url) })), index.h("p", { key: '0a6c1a9fd26eb21e94a23d1b4a12ad159e3321c7', ref: el => this.noResults = el, class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options'))));
|
|
11652
11652
|
return (this.inline ?
|
|
11653
11653
|
index.h("div", { class: "s-search-modal" }, searchContent)
|
|
11654
11654
|
:
|
|
@@ -11691,7 +11691,7 @@ const SallaSkeleton = class {
|
|
|
11691
11691
|
's-skeleton-item': true,
|
|
11692
11692
|
's-skeleton-item-circular': this.type == 'circle',
|
|
11693
11693
|
};
|
|
11694
|
-
return (index.h(index.Host, { key: '
|
|
11694
|
+
return (index.h(index.Host, { key: '30502d1578371d865a0e18585d2c6a8943862d2e', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: '9888e6790e33749ef8b9e5f0e0dbdbb12c202169', class: classes }, "\u00A0")));
|
|
11695
11695
|
}
|
|
11696
11696
|
};
|
|
11697
11697
|
SallaSkeleton.style = sallaSkeletonCss;
|
|
@@ -12214,7 +12214,7 @@ const SallaSlider = class {
|
|
|
12214
12214
|
classes += this.verticalThumbs ? ' s-slider-vertical ' : ' s-slider-horizontal ';
|
|
12215
12215
|
classes += this.arrowsCentered ? ' s-slider-v-centered ' : '';
|
|
12216
12216
|
classes += this.gridThumbs ? ' s-slider-with-grid-thumbs ' : '';
|
|
12217
|
-
return (index.h(index.Host, { key: '
|
|
12217
|
+
return (index.h(index.Host, { key: '5f395e1022170d4e3c7d73868c107c240cd3e859', class: 's-slider-wrapper ' + classes }, this.blockTitle || this.showControls ?
|
|
12218
12218
|
index.h("div", { class: "s-slider-block__title" }, this.blockTitle ?
|
|
12219
12219
|
index.h("div", { class: "s-slider-block__title-right" }, index.h("h2", null, this.blockTitle), this.blockSubtitle ? index.h("p", { innerHTML: this.blockSubtitle }) : '')
|
|
12220
12220
|
: '', index.h("div", { class: "s-slider-block__title-left" }, this.displayAllUrl ?
|
|
@@ -12222,7 +12222,7 @@ const SallaSlider = class {
|
|
|
12222
12222
|
: '', this.showControls ?
|
|
12223
12223
|
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 })))
|
|
12224
12224
|
: ''))
|
|
12225
|
-
: '', index.h("div", { key: '
|
|
12225
|
+
: '', index.h("div", { key: '6fe1748e02836b39f80c55871e3f62d94cf1402c', class: "swiper s-slider-container", ref: el => this.sliderContainer = el, dir: this.vertical ? "ltr" : this.direction }, index.h("slot", { key: 'bcb56faea40964993d0fce7355aab7b59d722f02' }), index.h("div", { key: '030ab812826807417b743659f1bf33aa534bd585', class: "swiper-wrapper s-slider-swiper-wrapper", ref: el => this.sliderWrapper = el }, index.h("slot", { key: 'a5e25081d9b27f188f818b3cfe9b973fabc7e256', 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 ?
|
|
12226
12226
|
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 })))
|
|
12227
12227
|
: null))
|
|
12228
12228
|
: null));
|
|
@@ -12385,7 +12385,7 @@ const SallaSocialShare = class {
|
|
|
12385
12385
|
window.a2a?.init('page');
|
|
12386
12386
|
}
|
|
12387
12387
|
render() {
|
|
12388
|
-
return (index.h("div", { key: '
|
|
12388
|
+
return (index.h("div", { key: '0cc4ce871482b02588ae793d581b452c074ae292', class: "s-social-share-wrapper" }, index.h("slot", { key: 'b953d89a698d4c1801ef99831a9f29432f23f0f7', name: 'widget' }, index.h("salla-button", { key: 'f152f0839aa50406a5bac84298e580e6c51ca749', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index.h("span", { key: '2e424400e4253f36824338c825bf9762fada793c', innerHTML: this.opened ? Cancel : ShareAlt }))), index.h("ul", { key: '38b3c21e35746e90d00d2fa14107cb66ab5b6eb4', 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 => {
|
|
12389
12389
|
return (index.h("li", null, index.h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
12390
12390
|
if (icon.name === platform) {
|
|
12391
12391
|
return index.h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -12424,7 +12424,7 @@ const SallaTabContent = class {
|
|
|
12424
12424
|
's-tabs-content': true,
|
|
12425
12425
|
's-tabs-content-selected': this.isSelected
|
|
12426
12426
|
};
|
|
12427
|
-
return (index.h("div", { key: '
|
|
12427
|
+
return (index.h("div", { key: '5514145160fbb89b7a1eec0263c8ae164399da05', class: classes }, index.h("slot", { key: 'd6a6e6e2245f7225e6f40f700d00b3fe8a3f0f31' })));
|
|
12428
12428
|
}
|
|
12429
12429
|
};
|
|
12430
12430
|
SallaTabContent.style = sallaTabContentCss;
|
|
@@ -12483,7 +12483,7 @@ const SallaTabHeader = class {
|
|
|
12483
12483
|
's-tabs-active': this.isSelected,
|
|
12484
12484
|
};
|
|
12485
12485
|
return [
|
|
12486
|
-
index.h("div", { key: '
|
|
12486
|
+
index.h("div", { key: 'e5789e9c370c6ad2bcda924605ff41bbf222cb33', class: classes, onClick: this.onClick.bind(this) }, index.h("slot", { key: 'b0f31634fd70d3a46d6dca7f7a951be1bdbf6569' })),
|
|
12487
12487
|
];
|
|
12488
12488
|
}
|
|
12489
12489
|
};
|
|
@@ -12536,7 +12536,7 @@ const SallaTabs = class {
|
|
|
12536
12536
|
}
|
|
12537
12537
|
render() {
|
|
12538
12538
|
return [
|
|
12539
|
-
index.h("div", { key: '
|
|
12539
|
+
index.h("div", { key: '663a81a31e6b49c72d8ba27706037846385a5048', class: "s-tabs" }, index.h("div", { key: 'd58fb40e9afe024d274d9779d3bca68dcc1cb22f', class: "s-tabs-header" }, index.h("slot", { key: '513bbd3091f24dd9f8cb7a1f6750a8fe75d79bb1', name: "header" })), index.h("div", { key: 'daeb6318f0e10c1676a0c2b82e68af9e109397d9', class: "s-tabs-content-wrapper" }, index.h("slot", { key: '39b4e0ee8592d6c77007f61bb9a80043d20b3a72', name: "content" })))
|
|
12540
12540
|
];
|
|
12541
12541
|
}
|
|
12542
12542
|
get host() { return index.getElement(this); }
|
|
@@ -12554,7 +12554,7 @@ const SallaTelInput = class {
|
|
|
12554
12554
|
if (this.TelInput)
|
|
12555
12555
|
return;
|
|
12556
12556
|
try {
|
|
12557
|
-
const telInputModule = await Promise.resolve().then(function () { return require('./index-
|
|
12557
|
+
const telInputModule = await Promise.resolve().then(function () { return require('./index-CeCbuoue.js'); }).then(function (n) { return n.index; });
|
|
12558
12558
|
this.TelInput = telInputModule.default;
|
|
12559
12559
|
}
|
|
12560
12560
|
catch (error) {
|
|
@@ -12668,7 +12668,7 @@ const SallaTelInput = class {
|
|
|
12668
12668
|
}
|
|
12669
12669
|
}
|
|
12670
12670
|
render() {
|
|
12671
|
-
return (index.h(index.Host, { key: '
|
|
12671
|
+
return (index.h(index.Host, { key: 'c1970701aebf32650bec6072f4c5494a7b443c79', class: "s-tel-input" }, index.h("input", { key: '9774b0740d214eb72f3da4ebd10f119ac4c47d89', 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: '9f159c42e3f9c8c0dba6205ba13d6de1f4462109', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), index.h("input", { key: 'a9c5b9c2aba8b5b35378481686ec9b6783fb101b', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
12672
12672
|
}
|
|
12673
12673
|
componentDidLoad() {
|
|
12674
12674
|
this.initTelInput();
|
|
@@ -12819,6 +12819,7 @@ const SallaUserMenu = class {
|
|
|
12819
12819
|
async componentWillLoad() {
|
|
12820
12820
|
await salla.onReady();
|
|
12821
12821
|
await salla.lang.onLoaded();
|
|
12822
|
+
Salla.event.on('api::token.injected', (token) => this.profileUrl = this.buildProfileUrl(token));
|
|
12822
12823
|
this.sallaAccountEnabled = Salla.config.get('store.features')?.includes('salla-account');
|
|
12823
12824
|
this.items = this.sallaAccountEnabled ? { ...this.items, settings: SettingstIcon } : this.items;
|
|
12824
12825
|
//we need it only in theme-y
|
|
@@ -12827,7 +12828,11 @@ const SallaUserMenu = class {
|
|
|
12827
12828
|
}
|
|
12828
12829
|
//we need it to be the last item
|
|
12829
12830
|
this.items.logout = LogoutIcon;
|
|
12830
|
-
|
|
12831
|
+
let token = Salla.storage.get('token');
|
|
12832
|
+
if (!token) {
|
|
12833
|
+
token = '';
|
|
12834
|
+
}
|
|
12835
|
+
this.profileUrl = this.buildProfileUrl(token);
|
|
12831
12836
|
const trigger = this.host.querySelector('[slot="trigger"]');
|
|
12832
12837
|
this.triggerSlot =
|
|
12833
12838
|
'<div class="s-user-menu-trigger"><div class="s-user-menu-avatar-wrap"><img class="s-user-menu-trigger-avatar" src="{avatar}" alt="{first_name}{last_name}" /></div><div class="s-user-menu-trigger-content"><span class="s-user-menu-trigger-hello">{hello}</span><p class="s-user-menu-trigger-name">{first_name} {last_name}</p></div> <i class="s-user-menu-trigger-icon">{icon}</i></div>';
|
|
@@ -12925,6 +12930,9 @@ const SallaUserMenu = class {
|
|
|
12925
12930
|
componentDidLoad() {
|
|
12926
12931
|
document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
|
|
12927
12932
|
}
|
|
12933
|
+
buildProfileUrl(token) {
|
|
12934
|
+
return `${Salla.config.get('account.url', 'https://accounts.salla.com')}/${salla.config.get('user.language_code')}/user?store=${Salla.config.get('store.id')}&info=${encodeURIComponent(token)}`;
|
|
12935
|
+
}
|
|
12928
12936
|
get host() { return index.getElement(this); }
|
|
12929
12937
|
};
|
|
12930
12938
|
SallaUserMenu.style = sallaUserMenuCss;
|
|
@@ -13140,7 +13148,7 @@ const SallaUserSettings = class {
|
|
|
13140
13148
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
13141
13149
|
}
|
|
13142
13150
|
render() {
|
|
13143
|
-
return (index.h(index.Host, { key: '
|
|
13151
|
+
return (index.h(index.Host, { key: 'ec0a4acb9df3401db99cec16067f6bd942a13dac', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: 'e2326b1cf07a71b6153cf308cbc6576603750238', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: 'dfb2108ffb91585ed13fbd57dd022be26caba564' }, index.h("div", { key: '5c409c117bab9442aa80d9a76e781e0494c74eae', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '5f361b8df7d36ae67c2538e420332cf2cd35dcad', innerHTML: UserCancel })), index.h("div", { key: '11efad0c8c14f372c6377b419545151f10468d06', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: '7eb0871e5bbc9b1d93fa2531665ea71a86abe909', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: '2c3458300fcd6e77c3ee6ac793e7e48a0973c19a', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '21ce7928f15d6e366dc0ff9741f1e335551221e3', class: "s-toggle" }, index.h("input", { key: 'd2795c7b04b4a88d86f7df40eb0b8a4c91d67e26', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: '3a5f79277e6001a46daa62ddc3a1b7fe1e90aba0', class: "s-toggle-switcher" }))))), index.h("div", { key: '3c4dbc2b6246bad36014b2a546fcbb601cf492db', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '9aa2588f75f13249cd4f3afb8754c7e83cfd99dc' }, index.h("div", { key: '46676cb5c9252c00a964d0a7d9e65c8b6307d0c0', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '512c9be252b70f029c39da90a4253a86e28600a1', innerHTML: Bullhorn })), index.h("div", { key: '3765c432fbf079214bcd79ae247e8b8a04c7bdff', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: 'c5f16f46d894631182f1266efc3b5835a75fc100', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: '3d8d2440fc51853efbdfbe97968d14a770a96e46', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '6d6d4d80b2d81fc99460e8b895afbbe2ceee674c', class: "s-toggle" }, index.h("input", { key: '1be1bc0d9fab3d1829e3aea336bfabef0ec46936', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: '1f2a00f621a5521b378e4c059d13a778277b66d0', class: "s-toggle-switcher" }))))), index.h("div", { key: '45f7184fecc12b058d27dbc698a486661dbd246f', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: '7b8d46aae51b3a416bca566e8f0bb328f2544bf2' }, index.h("div", { key: '914cdf3d0ee608988ebade460a39d41e303a6b95', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'a9fad1f10f2eef6c617130bbf48054f1945ff307', innerHTML: UserOff })), index.h("div", { key: 'f6e0e1735fa46b2b5a759858d8c24ffee917c6c6', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: '71b84f766856ad6844805cfaf6146717bcae36ff', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: 'f2ae2cfaba59e1c745b96722076ec30600984925', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: '5bf8bb39df0caab3b4ad77381799814632c65599', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: '6b11f4737f2db50c1856583d56454bf77fbb11b1', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: '00116a316bf222ec493951b4ada7ccd26044d3fe', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: 'dfb25cd0a4d95581fe9ea6b0f2524fcac32d3a53', class: "s-user-settings-confirmation" }, index.h("div", { key: '113dab7cf24bf0d66823a77ccb60c9f7f1513090', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: 'b0316ad64a4b449d0cc4ec04e7aaaf9286caeb53', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: 'd0d97ccdd2ce6450f485043afaab0c08f2ef694d', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: '772f3dca599f001e508e460f59a0b06deff94fbd', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
13144
13152
|
}
|
|
13145
13153
|
};
|
|
13146
13154
|
SallaUserSettings.style = sallaUserSettingsCss;
|