@salla.sa/twilight-components 2.14.308 → 2.14.310

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.
Files changed (141) hide show
  1. package/dist/cjs/{filepond-OUUN-5NN.js → filepond-h5N922xu.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CkePS8DS.js → filepond-plugin-file-poster-CRl7s-AG.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-d3Wn3PkY.js → filepond-plugin-file-validate-size-DARqmqRu.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CLmEWQl_.js → filepond-plugin-file-validate-type-6YKtVIYy.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-C3vRwJRJ.js → filepond-plugin-image-edit-CIBU-x5i.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CPEad0SZ.js → filepond-plugin-image-exif-orientation-Dr0pROTo.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-B9fo9KBE.js → filepond-plugin-image-preview-BwizNP0O.js} +1 -1
  8. package/dist/cjs/{index-D4rsEAHT.js → index-BSAcismy.js} +2 -2
  9. package/dist/cjs/{index-Bc_DbVjx.js → index-Da-Fc_Dv.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/salla-accordion_62.cjs.entry.js +22 -25
  12. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  45. package/dist/cjs/twilight.cjs.js +1 -1
  46. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +12 -15
  47. package/dist/collection/components/salla-user-menu/salla-user-menu.js +1 -1
  48. package/dist/components/index.js +2 -2
  49. package/dist/components/salla-multiple-bundle-product-options-modal2.js +12 -15
  50. package/dist/components/salla-user-menu.js +1 -1
  51. package/dist/esm/{filepond-Yb-P3i1T.js → filepond-C5Ev_LRh.js} +1 -1
  52. package/dist/esm/{filepond-plugin-file-poster-DxDVU0an.js → filepond-plugin-file-poster-Cf4aX93c.js} +1 -1
  53. package/dist/esm/{filepond-plugin-file-validate-size-CXQcPSKc.js → filepond-plugin-file-validate-size-DzuISSe6.js} +1 -1
  54. package/dist/esm/{filepond-plugin-file-validate-type-DzBHcvIJ.js → filepond-plugin-file-validate-type-C9J5EVwa.js} +1 -1
  55. package/dist/esm/{filepond-plugin-image-edit-BdG17mhM.js → filepond-plugin-image-edit-B-kqsQ7Z.js} +1 -1
  56. package/dist/esm/{filepond-plugin-image-exif-orientation-bwmDnzkU.js → filepond-plugin-image-exif-orientation-CYim0AQy.js} +1 -1
  57. package/dist/esm/{filepond-plugin-image-preview-CNKGV3GP.js → filepond-plugin-image-preview-Bj8wrh8K.js} +1 -1
  58. package/dist/esm/{index-DLpukFTh.js → index-CS3HDvos.js} +2 -2
  59. package/dist/esm/{index-BCX93lY7.js → index-iOFc3cdD.js} +1 -1
  60. package/dist/esm/loader.js +2 -2
  61. package/dist/esm/salla-accordion_62.entry.js +22 -25
  62. package/dist/esm/salla-advertisement.entry.js +1 -1
  63. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  64. package/dist/esm/salla-apps-icons.entry.js +1 -1
  65. package/dist/esm/salla-cart-item-offers.entry.js +1 -1
  66. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  67. package/dist/esm/salla-contacts.entry.js +1 -1
  68. package/dist/esm/salla-custom-fields.entry.js +1 -1
  69. package/dist/esm/salla-filters-widget.entry.js +1 -1
  70. package/dist/esm/salla-filters.entry.js +1 -1
  71. package/dist/esm/salla-installment.entry.js +1 -1
  72. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  73. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  74. package/dist/esm/salla-metadata.entry.js +1 -1
  75. package/dist/esm/salla-notification-item.entry.js +1 -1
  76. package/dist/esm/salla-notifications.entry.js +1 -1
  77. package/dist/esm/salla-offer.entry.js +1 -1
  78. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  79. package/dist/esm/salla-order-details-options.entry.js +1 -1
  80. package/dist/esm/salla-order-details.entry.js +1 -1
  81. package/dist/esm/salla-order-summary.entry.js +1 -1
  82. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  83. package/dist/esm/salla-orders.entry.js +1 -1
  84. package/dist/esm/salla-payments.entry.js +1 -1
  85. package/dist/esm/salla-price-range.entry.js +1 -1
  86. package/dist/esm/salla-review-card.entry.js +1 -1
  87. package/dist/esm/salla-reviews-page.entry.js +1 -1
  88. package/dist/esm/salla-reviews.entry.js +1 -1
  89. package/dist/esm/salla-social.entry.js +1 -1
  90. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  91. package/dist/esm/salla-tooltip.entry.js +1 -1
  92. package/dist/esm/salla-trust-badges.entry.js +1 -1
  93. package/dist/esm/salla-verify.entry.js +1 -1
  94. package/dist/esm/salla-wallet.entry.js +1 -1
  95. package/dist/esm/twilight.js +2 -2
  96. package/dist/twilight/{p-51458fd8.entry.js → p-0090a073.entry.js} +1 -1
  97. package/dist/twilight/{p-1ae27c01.entry.js → p-1104aec0.entry.js} +1 -1
  98. package/dist/twilight/{p-120fdc67.entry.js → p-1fd4feea.entry.js} +1 -1
  99. package/dist/twilight/{p-986f14fc.entry.js → p-25b06f0b.entry.js} +1 -1
  100. package/dist/twilight/{p-6ff28aa6.entry.js → p-2863c253.entry.js} +1 -1
  101. package/dist/twilight/{p-534aebe8.entry.js → p-3085be93.entry.js} +1 -1
  102. package/dist/twilight/{p-fff75696.entry.js → p-33165663.entry.js} +1 -1
  103. package/dist/twilight/{p-Bm-OTntK.js → p-3aZYPmNi.js} +1 -1
  104. package/dist/twilight/{p-744bf31c.entry.js → p-48841974.entry.js} +1 -1
  105. package/dist/twilight/{p-8f1ef938.entry.js → p-4c7eb26d.entry.js} +1 -1
  106. package/dist/twilight/p-514b28b4.entry.js +4 -0
  107. package/dist/twilight/{p-5a95c459.entry.js → p-54750047.entry.js} +1 -1
  108. package/dist/twilight/{p-0ebf3cf5.entry.js → p-548eb5a9.entry.js} +1 -1
  109. package/dist/twilight/{p-08f3a904.entry.js → p-5abed22f.entry.js} +1 -1
  110. package/dist/twilight/{p-6af9f6d4.entry.js → p-5d831b24.entry.js} +1 -1
  111. package/dist/twilight/{p-b72246fc.entry.js → p-62f74d46.entry.js} +1 -1
  112. package/dist/twilight/{p-e00ffee6.entry.js → p-641e95ff.entry.js} +1 -1
  113. package/dist/twilight/{p-512e9e2a.entry.js → p-655334ed.entry.js} +1 -1
  114. package/dist/twilight/{p-79c01eeb.entry.js → p-6b633bad.entry.js} +1 -1
  115. package/dist/twilight/{p-195e0abd.entry.js → p-7921f34d.entry.js} +1 -1
  116. package/dist/twilight/{p-5995c4cf.entry.js → p-80f4782c.entry.js} +1 -1
  117. package/dist/twilight/{p-2fc57284.entry.js → p-8771caa4.entry.js} +1 -1
  118. package/dist/twilight/{p-bfc95eae.entry.js → p-9ed50290.entry.js} +1 -1
  119. package/dist/twilight/{p-C0bntoqM.js → p-BNCAsdrU.js} +2 -2
  120. package/dist/twilight/{p-Cv04OsQc.js → p-BftmF7A4.js} +1 -1
  121. package/dist/twilight/{p-DLpukFTh.js → p-CS3HDvos.js} +1 -1
  122. package/dist/twilight/{p-CC2JlxEZ.js → p-D64-sfKJ.js} +1 -1
  123. package/dist/twilight/{p-Cetso8sO.js → p-DAiXY47w.js} +1 -1
  124. package/dist/twilight/{p-_lsZ_Fz4.js → p-GC5QwqwX.js} +1 -1
  125. package/dist/twilight/{p-0d0dfb3c.entry.js → p-a5f714c7.entry.js} +1 -1
  126. package/dist/twilight/{p-554f07a3.entry.js → p-b3101599.entry.js} +1 -1
  127. package/dist/twilight/{p-7cbac0af.entry.js → p-b3bd3e08.entry.js} +1 -1
  128. package/dist/twilight/{p-00919833.entry.js → p-c0781b02.entry.js} +1 -1
  129. package/dist/twilight/{p-4b3a5c8d.entry.js → p-c79d3385.entry.js} +1 -1
  130. package/dist/twilight/{p-e4a5852a.entry.js → p-cb57b82f.entry.js} +1 -1
  131. package/dist/twilight/{p-714b8f8d.entry.js → p-cc522297.entry.js} +1 -1
  132. package/dist/twilight/{p-f938fc0d.entry.js → p-e3f0a14d.entry.js} +1 -1
  133. package/dist/twilight/{p-ab07f903.entry.js → p-ecb40dd9.entry.js} +1 -1
  134. package/dist/twilight/{p-da59dd6e.entry.js → p-f20c22d0.entry.js} +1 -1
  135. package/dist/twilight/{p-294d14e4.entry.js → p-fa0a4f00.entry.js} +1 -1
  136. package/dist/twilight/{p-952d3910.entry.js → p-fdcb5066.entry.js} +2 -2
  137. package/dist/twilight/{p-vdaGXF-0.js → p-q3t2oiUx.js} +1 -1
  138. package/dist/twilight/{p-BpxYnrUi.js → p-wxiLbf1Q.js} +1 -1
  139. package/dist/twilight/twilight.esm.js +1 -1
  140. package/package.json +5 -5
  141. package/dist/twilight/p-c5a35ba5.entry.js +0 -4
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index$2 = require('./index-D4rsEAHT.js');
6
+ var index$2 = require('./index-BSAcismy.js');
7
7
 
8
8
  function _mergeNamespaces(n, m) {
9
9
  m.forEach(function (e) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.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-OUUN-5NN.js'); }).then(function (n) { return n.filepond; }),
3548
- Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-d3Wn3PkY.js'); }).then(function (n) { return n.filepondPluginFileValidateSize; }),
3549
- Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-CPEad0SZ.js'); }).then(function (n) { return n.filepondPluginImageExifOrientation; }),
3550
- Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-B9fo9KBE.js'); }).then(function (n) { return n.filepondPluginImagePreview; }),
3551
- Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-C3vRwJRJ.js'); }).then(function (n) { return n.filepondPluginImageEdit; }),
3552
- Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-CLmEWQl_.js'); }).then(function (n) { return n.filepondPluginFileValidateType; }),
3553
- Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-CkePS8DS.js'); }).then(function (n) { return n.filepondPluginFilePoster; })
3547
+ Promise.resolve().then(function () { return require('./filepond-h5N922xu.js'); }).then(function (n) { return n.filepond; }),
3548
+ Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-DARqmqRu.js'); }).then(function (n) { return n.filepondPluginFileValidateSize; }),
3549
+ Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-Dr0pROTo.js'); }).then(function (n) { return n.filepondPluginImageExifOrientation; }),
3550
+ Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-BwizNP0O.js'); }).then(function (n) { return n.filepondPluginImagePreview; }),
3551
+ Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-CIBU-x5i.js'); }).then(function (n) { return n.filepondPluginImageEdit; }),
3552
+ Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-6YKtVIYy.js'); }).then(function (n) { return n.filepondPluginFileValidateType; }),
3553
+ Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-CRl7s-AG.js'); }).then(function (n) { return n.filepondPluginFilePoster; })
3554
3554
  ]);
3555
3555
  this.FilePond = FilePondModule;
3556
3556
  // Register plugins
@@ -6682,17 +6682,13 @@ const SallaMultipleBundleProductOptionsModal = class {
6682
6682
  salla.event.on('multiple-bundle-product-modal::clear-options', this.clearOptionsListener);
6683
6683
  // Create and store the option change listener for proper cleanup
6684
6684
  this.optionChangeListener = (e) => {
6685
- const { productId, option, detail } = e.detail;
6686
- // Convert productId to the same type as our product ID
6687
- const normalizedProductId = this.product?.id ? String(this.product.id) : null;
6688
- const normalizedEventProductId = productId ? String(productId) : null;
6689
- // Only handle events for the current product
6690
- if (normalizedProductId &&
6691
- normalizedEventProductId &&
6692
- normalizedProductId === normalizedEventProductId &&
6693
- option &&
6694
- detail) {
6695
- this.handleOptionChange(Number(normalizedProductId), option, detail);
6685
+ const data = e.detail || e;
6686
+ const { option, detail } = data;
6687
+ // If data is a detail object (has option_id), find the option from product
6688
+ const actualOption = option || (data.option_id && this.product?.options?.find(opt => opt.id === data.option_id || String(opt.id) === String(data.option_id)));
6689
+ const actualDetail = detail || (data.id ? data : null);
6690
+ if (this.product?.id && actualOption) {
6691
+ this.handleOptionChange(Number(this.product.id), actualOption, actualDetail);
6696
6692
  }
6697
6693
  };
6698
6694
  salla.event.on('product-options::change', this.optionChangeListener);
@@ -7057,7 +7053,8 @@ const SallaMultipleBundleProductOptionsModal = class {
7057
7053
  const optionsWithSelectedState = this.getOptionsWithSelectedState();
7058
7054
  const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
7059
7055
  const resetToken = this.optionsResetTokens[cacheKey] || 0;
7060
- return (index.h(index.Host, { key: 'ce4cec97975d0aef32b50a13237a2d64701d8e9f' }, index.h("salla-modal", { key: 'cda08db7768f0b987a9569ca1170b059a58a417e', 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: 'd093204f6d85e7a874e0a69a826869e179aeafa4', slot: "loading" }, index.h("salla-skeleton", { key: '140608027bb0237b62eeb24d1eb5e47c5279c7e3', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (index.h("salla-slider", { key: '807f2428e8219d9ab6e46163a5d03ad0b2e1b9a3', 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: {
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: '27c9b7b2698aede358cb8d1a01d774c625b7ead4' }, index.h("salla-modal", { key: 'c9ae157c9ee8f3b13a19cbfc601b4c8f717d8024', 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: 'a2bf7d4eed854e89d314454294c84eaf43fef844', slot: "loading" }, index.h("salla-skeleton", { key: '06bf42347a2c9f6ff5472a856ead808609bd6792', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (index.h("salla-slider", { key: '2c70545009d063b72b7ac0a20cdc7cc94ab4c43b', 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: {
7061
7058
  centeredSlides: true,
7062
7059
  centeredSlidesBounds: true,
7063
7060
  slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
@@ -7066,13 +7063,13 @@ const SallaMultipleBundleProductOptionsModal = class {
7066
7063
  watchSlidesProgress: true,
7067
7064
  direction: 'vertical',
7068
7065
  spaceBetween: 10,
7069
- } }, index.h("div", { key: 'f287bea52aa1e3c68debd0b68d011025ea3f9157', slot: "items" }, this.product?.images &&
7066
+ } }, index.h("div", { key: '8747d7510657f714da731f49e8b1e174be95bc66', slot: "items" }, this.product?.images &&
7070
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 => {
7071
7068
  e.target.style.display = 'none';
7072
- } }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '5d8064ef63c91a660a3b3267afb29e498ac76f4c', slot: "thumbs" }, this.product?.images &&
7069
+ } }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '61ca305d33f2b0f40e17c6ce3dc4fd571db7308c', slot: "thumbs" }, this.product?.images &&
7073
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 => {
7074
7071
  e.target.style.display = 'none';
7075
- } })))))))), 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: '2f6c7f133ccabd75bbb9e8649c056619ce754296', slot: "footer" }, index.h("div", { key: '1c04908511a480af63fc4e358393514c74967508', class: "s-multiple-bundle-product-options-modal-footer" }, index.h("salla-button", { key: '49fbad4b1e71004dc8fd6df5d0f1a61b1ef25b8d', onClick: e => this.onSave(e), loading: this.isLoading, disabled: this.isLoading }, this.isLoading
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: 'd79f6e9a2f753de6c9097bb3a8f095ed9bdde081', slot: "footer" }, index.h("div", { key: '22f78a4c9b8ad8891cbcd9b5318c5a406258cea1', class: "s-multiple-bundle-product-options-modal-footer" }, index.h("salla-button", { key: 'f17424c72c6e9d1b9cd0ef2602ac8b52002bc39a', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
7076
7073
  ? salla.lang.get('common.elements.saving')
7077
7074
  : salla.lang.get('common.elements.save')))))));
7078
7075
  }
@@ -12557,7 +12554,7 @@ const SallaTelInput = class {
12557
12554
  if (this.TelInput)
12558
12555
  return;
12559
12556
  try {
12560
- const telInputModule = await Promise.resolve().then(function () { return require('./index-Bc_DbVjx.js'); }).then(function (n) { return n.index; });
12557
+ const telInputModule = await Promise.resolve().then(function () { return require('./index-Da-Fc_Dv.js'); }).then(function (n) { return n.index; });
12561
12558
  this.TelInput = telInputModule.default;
12562
12559
  }
12563
12560
  catch (error) {
@@ -12830,7 +12827,7 @@ const SallaUserMenu = class {
12830
12827
  await salla.onReady();
12831
12828
  await salla.lang.onLoaded();
12832
12829
  this.sallaAccountEnabled = Salla.config.get('store.features')?.includes('salla-account');
12833
- this.profileUrl = `${salla.config.get('account.url', 'https://accounts.salla.com')}/${salla.config.get('user.language_code')}/user?store=${salla.config.get('store.id')}&info=${salla.storage.get('token')}`;
12830
+ this.profileUrl = `${salla.config.get('account.url', 'https://accounts.salla.com')}/${Salla.config.get('user.language_code')}/user?store=${Salla.config.get('store.id')}&info=${encodeURIComponent(Salla.storage.get('token'))}`;
12834
12831
  const trigger = this.host.querySelector('[slot="trigger"]');
12835
12832
  this.triggerSlot =
12836
12833
  '<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>';
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
 
9
9
  const sallaAdvertisementCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaAppInstallAlertCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaAppsIconsCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var specialDiscount = require('./special-discount-OVG_9Kf9.js');
8
8
  var gift = require('./gift-BPDUPIY_.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  var DiscountType;
9
9
  (function (DiscountType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var whatsapp2 = require('./whatsapp2-D7Sbg8Ey.js');
8
8
  var mail = require('./mail-CO8cFZH7.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var interfaces = require('./interfaces-CX9-6aLf.js');
8
8
 
9
9
  const sallaCustomFieldsCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var Helper = require('./Helper-B5NunIdR.js');
8
8
  var interfaces = require('./interfaces-DZDQwN6-.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var interfaces = require('./interfaces-DZDQwN6-.js');
8
8
  var Helper = require('./Helper-B5NunIdR.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var gift = require('./gift-BPDUPIY_.js');
8
8
 
9
9
  const sallaLoyaltyProgramCss = "";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaMetadataCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaNotificationsCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var Helper = require('./Helper-B5NunIdR.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  var PageType;
9
9
  (function (PageType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaOrderDetailsMultipleBundleProductCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  var copyIcon = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaOrderDetailsCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var check = require('./check-CLRvuniI.js');
8
8
 
9
9
  var iconFileArchive = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaOrderTotalsCardCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var Helper = require('./Helper-B5NunIdR.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaPaymentsCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var arrowLeft = require('./arrow-left-xSEmRpp6.js');
8
8
 
9
9
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var check = require('./check-CLRvuniI.js');
8
8
 
9
9
  var IconStar2 = ` <svg width="18" height="17" view-box="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
8
8
  var Helper = require('./Helper-B5NunIdR.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var arrowLeft = require('./arrow-left-xSEmRpp6.js');
8
8
  var Helper = require('./Helper-B5NunIdR.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var twitter = require('./twitter-pOrUNjXi.js');
8
8
 
9
9
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  var DiscountType;
9
9
  (function (DiscountType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaTrustBadgesCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
  var mail = require('./mail-CO8cFZH7.js');
8
8
 
9
9
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-D4rsEAHT.js');
6
+ var index = require('./index-BSAcismy.js');
7
7
 
8
8
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
9
9
  /*
@@ -83,17 +83,13 @@ export class SallaMultipleBundleProductOptionsModal {
83
83
  salla.event.on('multiple-bundle-product-modal::clear-options', this.clearOptionsListener);
84
84
  // Create and store the option change listener for proper cleanup
85
85
  this.optionChangeListener = (e) => {
86
- const { productId, option, detail } = e.detail;
87
- // Convert productId to the same type as our product ID
88
- const normalizedProductId = this.product?.id ? String(this.product.id) : null;
89
- const normalizedEventProductId = productId ? String(productId) : null;
90
- // Only handle events for the current product
91
- if (normalizedProductId &&
92
- normalizedEventProductId &&
93
- normalizedProductId === normalizedEventProductId &&
94
- option &&
95
- detail) {
96
- this.handleOptionChange(Number(normalizedProductId), option, detail);
86
+ const data = e.detail || e;
87
+ const { option, detail } = data;
88
+ // If data is a detail object (has option_id), find the option from product
89
+ const actualOption = option || (data.option_id && this.product?.options?.find(opt => opt.id === data.option_id || String(opt.id) === String(data.option_id)));
90
+ const actualDetail = detail || (data.id ? data : null);
91
+ if (this.product?.id && actualOption) {
92
+ this.handleOptionChange(Number(this.product.id), actualOption, actualDetail);
97
93
  }
98
94
  };
99
95
  salla.event.on('product-options::change', this.optionChangeListener);
@@ -458,7 +454,8 @@ export class SallaMultipleBundleProductOptionsModal {
458
454
  const optionsWithSelectedState = this.getOptionsWithSelectedState();
459
455
  const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
460
456
  const resetToken = this.optionsResetTokens[cacheKey] || 0;
461
- return (h(Host, { key: 'ce4cec97975d0aef32b50a13237a2d64701d8e9f' }, h("salla-modal", { key: 'cda08db7768f0b987a9569ca1170b059a58a417e', 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" }, h("div", { key: 'd093204f6d85e7a874e0a69a826869e179aeafa4', slot: "loading" }, h("salla-skeleton", { key: '140608027bb0237b62eeb24d1eb5e47c5279c7e3', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: '807f2428e8219d9ab6e46163a5d03ad0b2e1b9a3', 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: {
457
+ const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
458
+ return (h(Host, { key: '27c9b7b2698aede358cb8d1a01d774c625b7ead4' }, h("salla-modal", { key: 'c9ae157c9ee8f3b13a19cbfc601b4c8f717d8024', 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" }, h("div", { key: 'a2bf7d4eed854e89d314454294c84eaf43fef844', slot: "loading" }, h("salla-skeleton", { key: '06bf42347a2c9f6ff5472a856ead808609bd6792', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: '2c70545009d063b72b7ac0a20cdc7cc94ab4c43b', 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: {
462
459
  centeredSlides: true,
463
460
  centeredSlidesBounds: true,
464
461
  slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
@@ -467,13 +464,13 @@ export class SallaMultipleBundleProductOptionsModal {
467
464
  watchSlidesProgress: true,
468
465
  direction: 'vertical',
469
466
  spaceBetween: 10,
470
- } }, h("div", { key: 'f287bea52aa1e3c68debd0b68d011025ea3f9157', slot: "items" }, this.product?.images &&
467
+ } }, h("div", { key: '8747d7510657f714da731f49e8b1e174be95bc66', slot: "items" }, this.product?.images &&
471
468
  this.product?.images.map((image, index) => (h("div", { key: index, class: "swiper-slide" }, h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index + 1}`, loading: "lazy", onError: e => {
472
469
  e.target.style.display = 'none';
473
- } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '5d8064ef63c91a660a3b3267afb29e498ac76f4c', slot: "thumbs" }, this.product?.images &&
470
+ } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '61ca305d33f2b0f40e17c6ce3dc4fd571db7308c', slot: "thumbs" }, this.product?.images &&
474
471
  this.product?.images.map((image, index) => (h("div", { key: index, "data-caption": `${this.product?.name} - Image ${index + 1}` }, h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index + 1}`, alt: image.alt || `${this.product?.name} - ${index + 1}`, onError: e => {
475
472
  e.target.style.display = 'none';
476
- } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '2f6c7f133ccabd75bbb9e8649c056619ce754296', slot: "footer" }, h("div", { key: '1c04908511a480af63fc4e358393514c74967508', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '49fbad4b1e71004dc8fd6df5d0f1a61b1ef25b8d', onClick: e => this.onSave(e), loading: this.isLoading, disabled: this.isLoading }, this.isLoading
473
+ } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: 'd79f6e9a2f753de6c9097bb3a8f095ed9bdde081', slot: "footer" }, h("div", { key: '22f78a4c9b8ad8891cbcd9b5318c5a406258cea1', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: 'f17424c72c6e9d1b9cd0ef2602ac8b52002bc39a', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
477
474
  ? salla.lang.get('common.elements.saving')
478
475
  : salla.lang.get('common.elements.save')))))));
479
476
  }
@@ -132,7 +132,7 @@ export class SallaUserMenu {
132
132
  await salla.onReady();
133
133
  await salla.lang.onLoaded();
134
134
  this.sallaAccountEnabled = Salla.config.get('store.features')?.includes('salla-account');
135
- this.profileUrl = `${salla.config.get('account.url', 'https://accounts.salla.com')}/${salla.config.get('user.language_code')}/user?store=${salla.config.get('store.id')}&info=${salla.storage.get('token')}`;
135
+ this.profileUrl = `${salla.config.get('account.url', 'https://accounts.salla.com')}/${Salla.config.get('user.language_code')}/user?store=${Salla.config.get('store.id')}&info=${encodeURIComponent(Salla.storage.get('token'))}`;
136
136
  const trigger = this.host.querySelector('[slot="trigger"]');
137
137
  this.triggerSlot =
138
138
  '<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>';