@salla.sa/twilight-components 2.14.288 → 2.14.290

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 (139) hide show
  1. package/dist/cjs/{filepond-DSKzXLak.js → filepond-CsSVZI6b.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-DsRzjpgs.js → filepond-plugin-file-poster-DJjaIMfQ.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-Du7c4t_r.js → filepond-plugin-file-validate-size-DGUa4QzB.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-C9t5Ml7g.js → filepond-plugin-file-validate-type-DJmeqtsg.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-SDz40zJG.js → filepond-plugin-image-edit-5OewQYOY.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-B0AJiMbp.js → filepond-plugin-image-exif-orientation-CG2IXf0d.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-B2iXLCiF.js → filepond-plugin-image-preview-CBLsOLDc.js} +1 -1
  8. package/dist/cjs/{index-CAG6WJnV.js → index-DaoXQTQv.js} +1 -1
  9. package/dist/cjs/{index-CUHB4YPW.js → index-QiRNeWgQ.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/salla-accordion_62.cjs.entry.js +16 -31
  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-order-totals-card.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  44. package/dist/cjs/twilight.cjs.js +1 -1
  45. package/dist/collection/components/salla-product-options/salla-product-options.js +5 -20
  46. package/dist/collection/components/salla-user-menu/salla-user-menu.js +1 -1
  47. package/dist/components/index.js +2 -2
  48. package/dist/components/salla-product-options2.js +6 -21
  49. package/dist/components/salla-user-menu.js +1 -1
  50. package/dist/esm/{filepond-DMcg2cKA.js → filepond-DG5ftHEu.js} +1 -1
  51. package/dist/esm/{filepond-plugin-file-poster-Y1eN00gQ.js → filepond-plugin-file-poster-DJnNcY8m.js} +1 -1
  52. package/dist/esm/{filepond-plugin-file-validate-size-DUzHKkmi.js → filepond-plugin-file-validate-size-Ij_3QNnX.js} +1 -1
  53. package/dist/esm/{filepond-plugin-file-validate-type-CoTA06q_.js → filepond-plugin-file-validate-type-KfkcHm4r.js} +1 -1
  54. package/dist/esm/{filepond-plugin-image-edit-GfLMMCuU.js → filepond-plugin-image-edit-DGwQ9z-F.js} +1 -1
  55. package/dist/esm/{filepond-plugin-image-exif-orientation-DO08VSyc.js → filepond-plugin-image-exif-orientation-D3He5h3f.js} +1 -1
  56. package/dist/esm/{filepond-plugin-image-preview-cXsZEjQs.js → filepond-plugin-image-preview-CW-_uvrw.js} +1 -1
  57. package/dist/esm/{index-BxZNU2kk.js → index-BSnsSL0d.js} +2 -2
  58. package/dist/esm/{index-DhmmwLl5.js → index-D4ggsvU3.js} +1 -1
  59. package/dist/esm/loader.js +2 -2
  60. package/dist/esm/salla-accordion_62.entry.js +16 -31
  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-order-totals-card.entry.js +1 -1
  81. package/dist/esm/salla-orders.entry.js +1 -1
  82. package/dist/esm/salla-payments.entry.js +1 -1
  83. package/dist/esm/salla-price-range.entry.js +1 -1
  84. package/dist/esm/salla-review-card.entry.js +1 -1
  85. package/dist/esm/salla-reviews-page.entry.js +1 -1
  86. package/dist/esm/salla-reviews.entry.js +1 -1
  87. package/dist/esm/salla-social.entry.js +1 -1
  88. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  89. package/dist/esm/salla-tooltip.entry.js +1 -1
  90. package/dist/esm/salla-trust-badges.entry.js +1 -1
  91. package/dist/esm/salla-verify.entry.js +1 -1
  92. package/dist/esm/salla-wallet.entry.js +1 -1
  93. package/dist/esm/twilight.js +2 -2
  94. package/dist/twilight/{p-1b749268.entry.js → p-00955919.entry.js} +1 -1
  95. package/dist/twilight/{p-57cd5215.entry.js → p-0619cc09.entry.js} +1 -1
  96. package/dist/twilight/{p-13fccbec.entry.js → p-06af203a.entry.js} +1 -1
  97. package/dist/twilight/{p-42147376.entry.js → p-06b5b3e4.entry.js} +1 -1
  98. package/dist/twilight/{p-b490226a.entry.js → p-06cc0ac3.entry.js} +1 -1
  99. package/dist/twilight/{p-f0968d56.entry.js → p-075b3b52.entry.js} +1 -1
  100. package/dist/twilight/{p-7fc6d8b6.entry.js → p-0b3f063c.entry.js} +1 -1
  101. package/dist/twilight/{p-c3fac91b.entry.js → p-0beb6f5d.entry.js} +1 -1
  102. package/dist/twilight/{p-d52eaf9c.entry.js → p-33712517.entry.js} +1 -1
  103. package/dist/twilight/{p-d837cda7.entry.js → p-34ed3d3f.entry.js} +1 -1
  104. package/dist/twilight/{p-06b52ab1.entry.js → p-36fb1519.entry.js} +1 -1
  105. package/dist/twilight/{p-6d4536d4.entry.js → p-43dbbda5.entry.js} +1 -1
  106. package/dist/twilight/{p-79ee0b30.entry.js → p-51c65ed9.entry.js} +2 -2
  107. package/dist/twilight/{p-14284daf.entry.js → p-532376e1.entry.js} +1 -1
  108. package/dist/twilight/{p-fe1ec85a.entry.js → p-5aba0f7f.entry.js} +1 -1
  109. package/dist/twilight/{p-182e7d2e.entry.js → p-5ae41031.entry.js} +1 -1
  110. package/dist/twilight/{p-60bda4da.entry.js → p-5c58eb9d.entry.js} +1 -1
  111. package/dist/twilight/{p-828b6a06.entry.js → p-6299bd02.entry.js} +1 -1
  112. package/dist/twilight/{p-625658da.entry.js → p-672f8206.entry.js} +1 -1
  113. package/dist/twilight/{p-09fcbd93.entry.js → p-6e6f80ef.entry.js} +1 -1
  114. package/dist/twilight/{p-3a81a1ea.entry.js → p-736693a1.entry.js} +1 -1
  115. package/dist/twilight/{p-55ea3889.entry.js → p-7434d2ef.entry.js} +1 -1
  116. package/dist/twilight/{p-c7e8ad00.entry.js → p-7684f980.entry.js} +1 -1
  117. package/dist/twilight/{p-48158ef6.entry.js → p-823e64aa.entry.js} +1 -1
  118. package/dist/twilight/{p-5cb9c09a.entry.js → p-977818f1.entry.js} +1 -1
  119. package/dist/twilight/p-9Dp5S3a0.js +9 -0
  120. package/dist/twilight/{p-CG-nPUZW.js → p-B1hrg10h.js} +1 -1
  121. package/dist/twilight/{p-CTGMsQWa.js → p-B2wjlPIP.js} +1 -1
  122. package/dist/twilight/{p-BxZNU2kk.js → p-BSnsSL0d.js} +1 -1
  123. package/dist/twilight/{p-esv1netT.js → p-Bgf4h7Oc.js} +1 -1
  124. package/dist/twilight/{p-DnsmLn6U.js → p-CaOlYtot.js} +1 -1
  125. package/dist/twilight/{p-FqVdDv2v.js → p-DP8Fqw7G.js} +1 -1
  126. package/dist/twilight/{p-C6Ak6FfG.js → p-DdxZpDbY.js} +1 -1
  127. package/dist/twilight/{p-B1zeuX_x.js → p-DuneTSVd.js} +1 -1
  128. package/dist/twilight/{p-bea856e4.entry.js → p-b3d1e538.entry.js} +1 -1
  129. package/dist/twilight/{p-7665e5e1.entry.js → p-b8229259.entry.js} +1 -1
  130. package/dist/twilight/{p-58b61a48.entry.js → p-c00a7ae6.entry.js} +1 -1
  131. package/dist/twilight/p-ceb2f617.entry.js +4 -0
  132. package/dist/twilight/{p-58ae422d.entry.js → p-d3e3e3c0.entry.js} +1 -1
  133. package/dist/twilight/{p-68f18e66.entry.js → p-e9340ae5.entry.js} +1 -1
  134. package/dist/twilight/{p-3acd0ed9.entry.js → p-ebe69ca5.entry.js} +1 -1
  135. package/dist/twilight/{p-830c5474.entry.js → p-f9202fc1.entry.js} +1 -1
  136. package/dist/twilight/twilight.esm.js +1 -1
  137. package/package.json +5 -5
  138. package/dist/twilight/p-7883f900.entry.js +0 -4
  139. package/dist/twilight/p-c7m6mHKB.js +0 -9
@@ -447,12 +447,9 @@ const SallaProductOptions = /*@__PURE__*/ proxyCustomElement(class SallaProductO
447
447
  */
448
448
  handlePaste(event) {
449
449
  const target = event.target;
450
- // Check if this is an options input (standard or bundle naming)
451
- const isOptionsInput = target.name.startsWith('options[') || target.name.includes('[options][');
452
450
  if (!Salla.helpers.hasApplePay()
453
451
  || !(target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement)
454
- || !target.classList.contains('s-form-control')
455
- || !isOptionsInput) {
452
+ || !target.classList.contains('s-form-control')) {
456
453
  return;
457
454
  }
458
455
  // Prevent default paste (to avoid Safari inserting extra content)
@@ -466,23 +463,11 @@ const SallaProductOptions = /*@__PURE__*/ proxyCustomElement(class SallaProductO
466
463
  target.value = newValue;
467
464
  // Reset cursor position
468
465
  target.setSelectionRange(start + text.length, start + text.length);
469
- // Find the option this input belongs to and trigger changedHandler
470
- // Handle both standard (options[id]) and bundle (bundle[...][options][id]) naming conventions
471
- let optionIdMatch = target.name.match(/options\[(\d+)\]/);
472
- if (!optionIdMatch) {
473
- optionIdMatch = target.name.match(/\[options\]\[(\d+)\]/);
474
- }
475
- if (optionIdMatch) {
476
- const optionId = Number(optionIdMatch[1]);
477
- const option = this.optionsData.find(opt => opt.id === optionId);
478
- if (option) {
479
- // Create a synthetic event object to pass to changedHandler
480
- const syntheticEvent = {
481
- target: target,
482
- type: 'input'
483
- };
484
- this.changedHandler(syntheticEvent, option);
485
- }
466
+ try {
467
+ target.dispatchEvent(new window.Event('change', { bubbles: true }));
468
+ }
469
+ catch (error) {
470
+ Salla.log('Error on change');
486
471
  }
487
472
  }
488
473
  hideDigitalCardsOptions(option) {
@@ -216,7 +216,7 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
216
216
  return (h("li", { class: {
217
217
  's-user-menu-dropdown-item': true,
218
218
  's-user-menu-dropdown-item-logout': i + 1 == Object.entries(this.items).length,
219
- } }, h("a", { href: salla.url.get(item[0]), onClick: event => this.menuItemClicked(event, item) }, h("i", { innerHTML: item[1] }, " "), h("span", { class: "s-user-menu-dropdown-item-title" }, this[item[0]]), !['٠', '0', undefined].includes(this.badges[item[0]]) ? (h("span", { class: "s-user-menu-dropdown-item-badge" }, this.badges[item[0]])) : (''))));
219
+ } }, h("a", { href: salla.url.get(item[0] === 'loyalty_program' ? 'loyalty' : item[0]), onClick: event => this.menuItemClicked(event, item) }, h("i", { innerHTML: item[1] }, " "), h("span", { class: "s-user-menu-dropdown-item-title" }, this[item[0]]), !['٠', '0', undefined].includes(this.badges[item[0]]) ? (h("span", { class: "s-user-menu-dropdown-item-badge" }, this.badges[item[0]])) : (''))));
220
220
  }
221
221
  componentShouldUpdate() {
222
222
  if (!this.opened) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxZNU2kk.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BSnsSL0d.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxZNU2kk.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BSnsSL0d.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxZNU2kk.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BSnsSL0d.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxZNU2kk.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BSnsSL0d.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxZNU2kk.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BSnsSL0d.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxZNU2kk.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BSnsSL0d.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxZNU2kk.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BSnsSL0d.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {