@salla.sa/twilight-components 2.14.274 → 2.14.276

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 (134) hide show
  1. package/dist/cjs/{filepond-L1nMkdqn.js → filepond-6SEXVM6z.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-BYZl5BE2.js → filepond-plugin-file-poster-n2iYVp3t.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DSrSXg4-.js → filepond-plugin-file-validate-size-Iy3hm_gs.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CgnsyE2V.js → filepond-plugin-file-validate-type-BwgIXaDl.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-lODj8ghv.js → filepond-plugin-image-edit-D0Zm0Ae7.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-uQ5EYlsy.js → filepond-plugin-image-exif-orientation-O9keaTXk.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-Cm1OgAvZ.js → filepond-plugin-image-preview-Cu__OpX5.js} +1 -1
  8. package/dist/cjs/{index-D0NII6ks.js → index-CW7Dnp8P.js} +1 -1
  9. package/dist/cjs/{index-BEeccvkl.js → index-zDUTAnXB.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/salla-accordion_62.cjs.entry.js +29 -14
  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-filters-widget.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  42. package/dist/cjs/twilight.cjs.js +1 -1
  43. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
  44. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +17 -2
  45. package/dist/collection/components/salla-product-options/salla-product-options.js +2 -2
  46. package/dist/components/index.js +2 -2
  47. package/dist/components/salla-conditional-fields2.js +1 -1
  48. package/dist/components/salla-offer-modal.js +17 -2
  49. package/dist/components/salla-product-options2.js +2 -2
  50. package/dist/esm/{filepond-plugin-file-poster-13kSl6pa.js → filepond-plugin-file-poster-CLU6w9b3.js} +1 -1
  51. package/dist/esm/{filepond-plugin-file-validate-size-DGYz9wX6.js → filepond-plugin-file-validate-size-CX6dlm3b.js} +1 -1
  52. package/dist/esm/{filepond-plugin-file-validate-type-7M_EeTPs.js → filepond-plugin-file-validate-type-Dww6qss9.js} +1 -1
  53. package/dist/esm/{filepond-plugin-image-edit-C5N0Q0IF.js → filepond-plugin-image-edit-DwudZslr.js} +1 -1
  54. package/dist/esm/{filepond-plugin-image-exif-orientation-BvYJ1LVk.js → filepond-plugin-image-exif-orientation-BrZGrwe5.js} +1 -1
  55. package/dist/esm/{filepond-plugin-image-preview-P4HnGsSt.js → filepond-plugin-image-preview-NpeY7GZZ.js} +1 -1
  56. package/dist/esm/{filepond-JStnJXdo.js → filepond-tsafeG0B.js} +1 -1
  57. package/dist/esm/{index-CqLymITv.js → index-DEsUYBYx.js} +1 -1
  58. package/dist/esm/{index-Bdj1TBK9.js → index-mrlY8HKK.js} +2 -2
  59. package/dist/esm/loader.js +2 -2
  60. package/dist/esm/salla-accordion_62.entry.js +29 -14
  61. package/dist/esm/salla-advertisement.entry.js +1 -1
  62. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  63. package/dist/esm/salla-apps-icons.entry.js +1 -1
  64. package/dist/esm/salla-cart-item-offers.entry.js +1 -1
  65. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  66. package/dist/esm/salla-contacts.entry.js +1 -1
  67. package/dist/esm/salla-filters-widget.entry.js +1 -1
  68. package/dist/esm/salla-filters.entry.js +1 -1
  69. package/dist/esm/salla-installment.entry.js +1 -1
  70. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  71. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  72. package/dist/esm/salla-metadata.entry.js +1 -1
  73. package/dist/esm/salla-notification-item.entry.js +1 -1
  74. package/dist/esm/salla-notifications.entry.js +1 -1
  75. package/dist/esm/salla-offer.entry.js +1 -1
  76. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  77. package/dist/esm/salla-order-details-options.entry.js +1 -1
  78. package/dist/esm/salla-order-details.entry.js +1 -1
  79. package/dist/esm/salla-order-summary.entry.js +1 -1
  80. package/dist/esm/salla-orders.entry.js +1 -1
  81. package/dist/esm/salla-payments.entry.js +1 -1
  82. package/dist/esm/salla-price-range.entry.js +1 -1
  83. package/dist/esm/salla-review-card.entry.js +1 -1
  84. package/dist/esm/salla-reviews-page.entry.js +1 -1
  85. package/dist/esm/salla-reviews.entry.js +1 -1
  86. package/dist/esm/salla-social.entry.js +1 -1
  87. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  88. package/dist/esm/salla-tooltip.entry.js +1 -1
  89. package/dist/esm/salla-verify.entry.js +1 -1
  90. package/dist/esm/salla-wallet.entry.js +1 -1
  91. package/dist/esm/twilight.js +2 -2
  92. package/dist/twilight/{p-895bd462.entry.js → p-087697fd.entry.js} +1 -1
  93. package/dist/twilight/{p-78e6e403.entry.js → p-0da66c10.entry.js} +1 -1
  94. package/dist/twilight/{p-a8d01888.entry.js → p-0f14e2e4.entry.js} +1 -1
  95. package/dist/twilight/{p-0f8534fd.entry.js → p-267dd052.entry.js} +1 -1
  96. package/dist/twilight/{p-f85916d5.entry.js → p-29a1db13.entry.js} +1 -1
  97. package/dist/twilight/{p-4d05539c.entry.js → p-2b6d8153.entry.js} +1 -1
  98. package/dist/twilight/{p-bf90a8c8.entry.js → p-2e1734e7.entry.js} +1 -1
  99. package/dist/twilight/{p-a1e9d695.entry.js → p-366503cd.entry.js} +1 -1
  100. package/dist/twilight/{p-f7784dda.entry.js → p-4066a1b1.entry.js} +1 -1
  101. package/dist/twilight/{p-550d2b59.entry.js → p-49e5435a.entry.js} +1 -1
  102. package/dist/twilight/{p-faee9d58.entry.js → p-4cda348c.entry.js} +1 -1
  103. package/dist/twilight/{p-282f4f69.entry.js → p-64d87b2c.entry.js} +1 -1
  104. package/dist/twilight/{p-1be88437.entry.js → p-69109692.entry.js} +1 -1
  105. package/dist/twilight/{p-cc93a79e.entry.js → p-79277342.entry.js} +1 -1
  106. package/dist/twilight/{p-a5681537.entry.js → p-8138baca.entry.js} +1 -1
  107. package/dist/twilight/{p-c9ad0ad1.entry.js → p-879c7b3b.entry.js} +1 -1
  108. package/dist/twilight/{p-34e10e96.entry.js → p-8aa7c264.entry.js} +1 -1
  109. package/dist/twilight/{p-456d49c3.entry.js → p-9481158a.entry.js} +1 -1
  110. package/dist/twilight/{p-3a4137eb.entry.js → p-98121aa5.entry.js} +1 -1
  111. package/dist/twilight/p-9f14803b.entry.js +11 -0
  112. package/dist/twilight/{p-BP3jjHyr.js → p-BPs87J_p.js} +1 -1
  113. package/dist/twilight/{p-CDM6fsL2.js → p-BQGKNqrM.js} +2 -2
  114. package/dist/twilight/{p-Btn8p1Mk.js → p-C0xTsGCO.js} +1 -1
  115. package/dist/twilight/{p-DD6CdbcU.js → p-CCWkGy7g.js} +1 -1
  116. package/dist/twilight/{p-DYhkBiMu.js → p-CSGfyf5g.js} +1 -1
  117. package/dist/twilight/{p-AhRhML1e.js → p-DM6HkKTq.js} +1 -1
  118. package/dist/twilight/{p-723d7b1b.entry.js → p-b072c1f9.entry.js} +1 -1
  119. package/dist/twilight/{p-b254a752.entry.js → p-b42d8a8b.entry.js} +1 -1
  120. package/dist/twilight/{p-5971eca7.entry.js → p-b648da57.entry.js} +1 -1
  121. package/dist/twilight/{p-bd7a0c4f.entry.js → p-c526838b.entry.js} +1 -1
  122. package/dist/twilight/{p-e825aae4.entry.js → p-d6be71c8.entry.js} +1 -1
  123. package/dist/twilight/{p-f232e683.entry.js → p-de076268.entry.js} +1 -1
  124. package/dist/twilight/{p-D6-aDTP4.js → p-dm1mR3lo.js} +1 -1
  125. package/dist/twilight/{p-1d81f143.entry.js → p-eceb7c9e.entry.js} +1 -1
  126. package/dist/twilight/{p-9760fa21.entry.js → p-ee9dd25a.entry.js} +1 -1
  127. package/dist/twilight/{p-e99645f0.entry.js → p-f1e1b555.entry.js} +1 -1
  128. package/dist/twilight/{p-Ccp_rmSW.js → p-fG9MNMWw.js} +1 -1
  129. package/dist/twilight/{p-57629f65.entry.js → p-fa3319f5.entry.js} +1 -1
  130. package/dist/twilight/{p-f96be282.entry.js → p-faf1616b.entry.js} +1 -1
  131. package/dist/twilight/{p-Bdj1TBK9.js → p-mrlY8HKK.js} +2 -2
  132. package/dist/twilight/twilight.esm.js +1 -1
  133. package/package.json +5 -5
  134. package/dist/twilight/p-c293f9c1.entry.js +0 -11
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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');
@@ -2799,7 +2799,7 @@ const SallaConditionalFields = class {
2799
2799
  }
2800
2800
  changeHandler(event) {
2801
2801
  salla.event.emit('salla-onditional-fields::change', event);
2802
- salla.log('Received the change/input event:', event);
2802
+ salla.log('Received the change/input event: ', event);
2803
2803
  if (!event.target ||
2804
2804
  (!['SELECT', 'INPUT', 'TEXTAREA'].includes(event.target.tagName) &&
2805
2805
  !['checkbox', 'radio', 'text'].includes(event.target.getAttribute('type')))) {
@@ -3514,13 +3514,13 @@ const SallaFileUpload = class {
3514
3514
  return;
3515
3515
  try {
3516
3516
  const [FilePondModule, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster] = await Promise.all([
3517
- Promise.resolve().then(function () { return require('./filepond-L1nMkdqn.js'); }).then(function (n) { return n.filepond; }),
3518
- Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-DSrSXg4-.js'); }).then(function (n) { return n.filepondPluginFileValidateSize; }),
3519
- Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-uQ5EYlsy.js'); }).then(function (n) { return n.filepondPluginImageExifOrientation; }),
3520
- Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-Cm1OgAvZ.js'); }).then(function (n) { return n.filepondPluginImagePreview; }),
3521
- Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-lODj8ghv.js'); }).then(function (n) { return n.filepondPluginImageEdit; }),
3522
- Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-CgnsyE2V.js'); }).then(function (n) { return n.filepondPluginFileValidateType; }),
3523
- Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-BYZl5BE2.js'); }).then(function (n) { return n.filepondPluginFilePoster; })
3517
+ Promise.resolve().then(function () { return require('./filepond-6SEXVM6z.js'); }).then(function (n) { return n.filepond; }),
3518
+ Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-Iy3hm_gs.js'); }).then(function (n) { return n.filepondPluginFileValidateSize; }),
3519
+ Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-O9keaTXk.js'); }).then(function (n) { return n.filepondPluginImageExifOrientation; }),
3520
+ Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-Cu__OpX5.js'); }).then(function (n) { return n.filepondPluginImagePreview; }),
3521
+ Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-D0Zm0Ae7.js'); }).then(function (n) { return n.filepondPluginImageEdit; }),
3522
+ Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-BwgIXaDl.js'); }).then(function (n) { return n.filepondPluginFileValidateType; }),
3523
+ Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-n2iYVp3t.js'); }).then(function (n) { return n.filepondPluginFilePoster; })
3524
3524
  ]);
3525
3525
  this.FilePond = FilePondModule;
3526
3526
  // Register plugins
@@ -7173,7 +7173,22 @@ const SallaOfferModal = class {
7173
7173
  return index.h("div", { class: "s-offer-modal-discount-table" }, index.h("table", null, index.h("tbody", null, this.offer.get.discounts_table?.map(discount => index.h("tr", null, index.h("td", null, discount.text), index.h("td", { class: "s-offer-modal-discount-table-cell" }, index.h("salla-button", { fill: "outline", shape: "btn", color: "primary", size: "medium", width: "normal", onClick: () => this.addToCart(discount.quantity) }, this.addToCartLabel)))))));
7174
7174
  }
7175
7175
  else if (this.offer.get.products?.length) {
7176
- return (index.h("salla-products-slider", { key: (this.offer.get.products?.map(product => product.id) || []).join(","), source: "selected", "source-value": `[${(this.offer.get.products?.map(product => product.id) || []).join(",")}]`, "slider-config": '{"slidesPerView": 1, "spaceBetween": 16, "breakpoints": { "768": { "slidesPerView": 2 }, "1024": { "slidesPerView": 3 } }}' }));
7176
+ const productsCount = this.offer.get.products?.length || 0;
7177
+ const sliderConfig = {
7178
+ slidesPerView: 'auto',
7179
+ spaceBetween: 16,
7180
+ breakpoints: {
7181
+ 768: {
7182
+ slidesPerView: Math.min(2, productsCount),
7183
+ spaceBetween: 16
7184
+ },
7185
+ 1024: {
7186
+ slidesPerView: Math.min(3, productsCount),
7187
+ spaceBetween: 16
7188
+ }
7189
+ }
7190
+ };
7191
+ return (index.h("salla-products-slider", { key: (this.offer.get.products?.map(product => product.id) || []).join(","), source: "selected", "source-value": `[${(this.offer.get.products?.map(product => product.id) || []).join(",")}]`, "slider-config": JSON.stringify(sliderConfig) }));
7177
7192
  // return <salla-slider
7178
7193
  // type="carousel"
7179
7194
  // class={{"s-offer-modal-slider-centered": this.offer.get.products?.length <= 2, "s-offer-modal-slider": true}}
@@ -7228,7 +7243,7 @@ const SallaOfferModal = class {
7228
7243
  // '</div>';
7229
7244
  // }
7230
7245
  render() {
7231
- return index.h("salla-modal", { key: '6dce27c3f20b031aa33b7e15980c55af84d1c9f6', "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: '1f63aa0fd3a95ba54e8ed5168f1439f4cafce036', slot: 'loading' }, index.h("div", { key: '748de710f2ad5c6c60a9e324d1e1b44672dee28f', class: "s-offer-modal-skeleton" }, index.h("div", { key: '96d6d1d8edc3e511c87eaa44539617d529e8a3e0', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: '1abe6ddf5096af877c9ce59dfbcdecb08a263e4b', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: '7010a9056b168f4df7168a55dbfde1da2726c913', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '4168b53b7a4358240f8f6d4d3b9f9a999992ddcb', height: '10px', width: '30%' })), index.h("div", { key: 'd019372cebf6d3e4d80842fa48e3ce1433457f06', 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: '4cbc9f99a98ccc9ea27f41e50fa037ea44d85048', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: '467546d4ded93cd95a7be78e6dd39935a20867c8', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '399a4a4ebedcc54def70ff428f3c5f24fd98a775', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
7246
+ return index.h("salla-modal", { key: '4fb68893e77f22143be6042b3d36727c41b0d519', "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: '4e1cdc78386fa8fbea214e6a62ba340661878da5', slot: 'loading' }, index.h("div", { key: '02f6b9416aee06f02cd7d6e0a8c306ec723f8abd', class: "s-offer-modal-skeleton" }, index.h("div", { key: 'c02a7642cc86a71173deb91762754b1db28f6b3d', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: 'abd69d4e511a48c45941259576928a8cf3a57447', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: 'aa967d8d284f7be4679d1f31dcf502a845920da9', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: 'eeef2a1bf033785b1d53166de1df0b627e9af5cc', height: '10px', width: '30%' })), index.h("div", { key: '54a362df2f3caced4b1e981b5e3b503bf1b4c5b6', 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: '63eee8ce9f67519694f66ded772f3a6e88ba1985', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: '15ac931ba315933d6cf36880b68d1cd14d91c6d6', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '87232e1af65f13cd668d7ad1ee6aff80acbbbc33', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
7232
7247
  ? [index.h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: specialDiscount.SpecialDiscountIcon }), this.getOfferContent(), index.h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
7233
7248
  index.h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
7234
7249
  : '', 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'))),
@@ -8167,12 +8182,12 @@ const SallaProductOptions = class {
8167
8182
  }
8168
8183
  //@ts-ignore
8169
8184
  textOption(option) {
8170
- return index.h("div", { class: "s-product-options-text" }, index.h("input", { type: "text", value: option.value, maxLength: option?.length, class: 's-form-control', required: !option.visibility_condition && option.required, name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: e => this.changedHandler(e, option), onInput: e => this.changedHandler(e, option) }));
8185
+ return index.h("div", { class: "s-product-options-text" }, index.h("input", { type: "text", value: option.value, maxLength: option?.length, class: 's-form-control', required: !option.visibility_condition && option.required, name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: e => this.changedHandler(e, option) }));
8171
8186
  }
8172
8187
  //@ts-ignore
8173
8188
  textareaOption(option) {
8174
8189
  //todo::remove mt-1 class, and if it's okay to remove the tag itself will be great
8175
- return index.h("div", { class: "s-product-options-textarea" }, index.h("div", { class: "mt-1" }, index.h("textarea", { rows: 4, value: option.value, maxLength: option?.length, class: "s-form-control", required: !option.visibility_condition && option.required, id: this.generateUniqueKey(option.id.toString()), name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: (e) => this.changedHandler(e, option), onInput: (e) => this.changedHandler(e, option) })));
8190
+ return index.h("div", { class: "s-product-options-textarea" }, index.h("div", { class: "mt-1" }, index.h("textarea", { rows: 4, value: option.value, maxLength: option?.length, class: "s-form-control", required: !option.visibility_condition && option.required, id: this.generateUniqueKey(option.id.toString()), name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: (e) => this.changedHandler(e, option) })));
8176
8191
  }
8177
8192
  //@ts-ignore
8178
8193
  mapOption(option) {
@@ -12389,7 +12404,7 @@ const SallaTelInput = class {
12389
12404
  if (this.TelInput)
12390
12405
  return;
12391
12406
  try {
12392
- const telInputModule = await Promise.resolve().then(function () { return require('./index-D0NII6ks.js'); }).then(function (n) { return n.index; });
12407
+ const telInputModule = await Promise.resolve().then(function () { return require('./index-CW7Dnp8P.js'); }).then(function (n) { return n.index; });
12393
12408
  this.TelInput = telInputModule.default;
12394
12409
  }
12395
12410
  catch (error) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.js');
7
7
  var Helper = require('./Helper-C9UmWIYn.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.js');
7
7
  var interfaces = require('./interfaces-DZDQwN6-.js');
8
8
  var Helper = require('./Helper-C9UmWIYn.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.js');
7
7
  var Helper = require('./Helper-C9UmWIYn.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.js');
7
7
  var Helper = require('./Helper-C9UmWIYn.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.js');
7
7
  var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
8
8
  var Helper = require('./Helper-C9UmWIYn.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.js');
7
7
  var arrowLeft = require('./arrow-left-xSEmRpp6.js');
8
8
  var Helper = require('./Helper-C9UmWIYn.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.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-BEeccvkl.js');
6
+ var index = require('./index-zDUTAnXB.js');
7
7
 
8
8
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
9
9
  /*
@@ -29,7 +29,7 @@ export class SallaConditionalFields {
29
29
  }
30
30
  changeHandler(event) {
31
31
  salla.event.emit('salla-onditional-fields::change', event);
32
- salla.log('Received the change/input event:', event);
32
+ salla.log('Received the change/input event: ', event);
33
33
  if (!event.target ||
34
34
  (!['SELECT', 'INPUT', 'TEXTAREA'].includes(event.target.tagName) &&
35
35
  !['checkbox', 'radio', 'text'].includes(event.target.getAttribute('type')))) {
@@ -110,7 +110,22 @@ export class SallaOfferModal {
110
110
  return h("div", { class: "s-offer-modal-discount-table" }, h("table", null, h("tbody", null, this.offer.get.discounts_table?.map(discount => h("tr", null, h("td", null, discount.text), h("td", { class: "s-offer-modal-discount-table-cell" }, h("salla-button", { fill: "outline", shape: "btn", color: "primary", size: "medium", width: "normal", onClick: () => this.addToCart(discount.quantity) }, this.addToCartLabel)))))));
111
111
  }
112
112
  else if (this.offer.get.products?.length) {
113
- return (h("salla-products-slider", { key: (this.offer.get.products?.map(product => product.id) || []).join(","), source: "selected", "source-value": `[${(this.offer.get.products?.map(product => product.id) || []).join(",")}]`, "slider-config": '{"slidesPerView": 1, "spaceBetween": 16, "breakpoints": { "768": { "slidesPerView": 2 }, "1024": { "slidesPerView": 3 } }}' }));
113
+ const productsCount = this.offer.get.products?.length || 0;
114
+ const sliderConfig = {
115
+ slidesPerView: 'auto',
116
+ spaceBetween: 16,
117
+ breakpoints: {
118
+ 768: {
119
+ slidesPerView: Math.min(2, productsCount),
120
+ spaceBetween: 16
121
+ },
122
+ 1024: {
123
+ slidesPerView: Math.min(3, productsCount),
124
+ spaceBetween: 16
125
+ }
126
+ }
127
+ };
128
+ return (h("salla-products-slider", { key: (this.offer.get.products?.map(product => product.id) || []).join(","), source: "selected", "source-value": `[${(this.offer.get.products?.map(product => product.id) || []).join(",")}]`, "slider-config": JSON.stringify(sliderConfig) }));
114
129
  // return <salla-slider
115
130
  // type="carousel"
116
131
  // class={{"s-offer-modal-slider-centered": this.offer.get.products?.length <= 2, "s-offer-modal-slider": true}}
@@ -165,7 +180,7 @@ export class SallaOfferModal {
165
180
  // '</div>';
166
181
  // }
167
182
  render() {
168
- return h("salla-modal", { key: '6dce27c3f20b031aa33b7e15980c55af84d1c9f6', "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 : ''}` }, h("div", { key: '1f63aa0fd3a95ba54e8ed5168f1439f4cafce036', slot: 'loading' }, h("div", { key: '748de710f2ad5c6c60a9e324d1e1b44672dee28f', class: "s-offer-modal-skeleton" }, h("div", { key: '96d6d1d8edc3e511c87eaa44539617d529e8a3e0', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: '1abe6ddf5096af877c9ce59dfbcdecb08a263e4b', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '7010a9056b168f4df7168a55dbfde1da2726c913', height: '15px', width: '50%' }), h("salla-skeleton", { key: '4168b53b7a4358240f8f6d4d3b9f9a999992ddcb', height: '10px', width: '30%' })), h("div", { key: 'd019372cebf6d3e4d80842fa48e3ce1433457f06', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '4cbc9f99a98ccc9ea27f41e50fa037ea44d85048', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '467546d4ded93cd95a7be78e6dd39935a20867c8', height: '15px', width: '50%' }), h("salla-skeleton", { key: '399a4a4ebedcc54def70ff428f3c5f24fd98a775', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
183
+ return h("salla-modal", { key: '4fb68893e77f22143be6042b3d36727c41b0d519', "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 : ''}` }, h("div", { key: '4e1cdc78386fa8fbea214e6a62ba340661878da5', slot: 'loading' }, h("div", { key: '02f6b9416aee06f02cd7d6e0a8c306ec723f8abd', class: "s-offer-modal-skeleton" }, h("div", { key: 'c02a7642cc86a71173deb91762754b1db28f6b3d', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'abd69d4e511a48c45941259576928a8cf3a57447', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: 'aa967d8d284f7be4679d1f31dcf502a845920da9', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'eeef2a1bf033785b1d53166de1df0b627e9af5cc', height: '10px', width: '30%' })), h("div", { key: '54a362df2f3caced4b1e981b5e3b503bf1b4c5b6', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '63eee8ce9f67519694f66ded772f3a6e88ba1985', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '15ac931ba315933d6cf36880b68d1cd14d91c6d6', height: '15px', width: '50%' }), h("salla-skeleton", { key: '87232e1af65f13cd668d7ad1ee6aff80acbbbc33', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
169
184
  ? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
170
185
  h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
171
186
  : '', h("label", { class: "s-offer-modal-remember-label" }, h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
@@ -551,12 +551,12 @@ export class SallaProductOptions {
551
551
  }
552
552
  //@ts-ignore
553
553
  textOption(option) {
554
- return h("div", { class: "s-product-options-text" }, h("input", { type: "text", value: option.value, maxLength: option?.length, class: 's-form-control', required: !option.visibility_condition && option.required, name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: e => this.changedHandler(e, option), onInput: e => this.changedHandler(e, option) }));
554
+ return h("div", { class: "s-product-options-text" }, h("input", { type: "text", value: option.value, maxLength: option?.length, class: 's-form-control', required: !option.visibility_condition && option.required, name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: e => this.changedHandler(e, option) }));
555
555
  }
556
556
  //@ts-ignore
557
557
  textareaOption(option) {
558
558
  //todo::remove mt-1 class, and if it's okay to remove the tag itself will be great
559
- return h("div", { class: "s-product-options-textarea" }, h("div", { class: "mt-1" }, h("textarea", { rows: 4, value: option.value, maxLength: option?.length, class: "s-form-control", required: !option.visibility_condition && option.required, id: this.generateUniqueKey(option.id.toString()), name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: (e) => this.changedHandler(e, option), onInput: (e) => this.changedHandler(e, option) })));
559
+ return h("div", { class: "s-product-options-textarea" }, h("div", { class: "mt-1" }, h("textarea", { rows: 4, value: option.value, maxLength: option?.length, class: "s-form-control", required: !option.visibility_condition && option.required, id: this.generateUniqueKey(option.id.toString()), name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: (e) => this.changedHandler(e, option) })));
560
560
  }
561
561
  //@ts-ignore
562
562
  mapOption(option) {