@salla.sa/twilight-components 2.14.421 → 2.14.423

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 (334) hide show
  1. package/dist/cjs/{filepond-DZq6rMpU.js → filepond-Do86Z81F.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-bfKXAWda.js → filepond-plugin-file-poster-BltmTwcK.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-Q7fD5HS8.js → filepond-plugin-file-validate-size-D6qDjnWw.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-B3IiM9Bk.js → filepond-plugin-file-validate-type-BTcaw3yC.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BIoXePuj.js → filepond-plugin-image-edit-BfSALTq0.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BZnWr0Hm.js → filepond-plugin-image-exif-orientation-YyoN3ZPE.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CFBJltLk.js → filepond-plugin-image-preview-DPZhJU-S.js} +1 -1
  8. package/dist/cjs/{functions-BRkBgcI0.js → functions-Vqr_tH33.js} +1 -1
  9. package/dist/cjs/{index-fXg1FwER.js → index-BKsfuSTK.js} +1 -1
  10. package/dist/cjs/{index-DDYWBzxi.js → index-B_ubSXmY.js} +12 -8
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  21. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +3 -9
  24. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cookies-bar.cjs.entry.js +20 -1
  28. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  43. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  45. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  48. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-menu.cjs.entry.js +14 -2
  52. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +126 -0
  57. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-offer-modal.cjs.entry.js +8 -2
  60. package/dist/cjs/salla-offer.cjs.entry.js +24 -4
  61. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-summary.cjs.entry.js +3 -9
  68. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-reward-action_4.cjs.entry.js +10 -7
  80. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  95. package/dist/cjs/swap-stroke-CYGxjKIS.js +13 -0
  96. package/dist/cjs/tag-money-Cuohw_4j.js +13 -0
  97. package/dist/cjs/{tracked-promise-DzZoxrcZ.js → tracked-promise-DfEtIz3d.js} +1 -1
  98. package/dist/cjs/twilight.cjs.js +2 -2
  99. package/dist/cjs/{vanilla-picker-BVAoSLKh.js → vanilla-picker-n2ZBl__a.js} +1 -1
  100. package/dist/collection/collection-manifest.json +6 -0
  101. package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +40 -0
  102. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +7 -4
  103. package/dist/collection/components/salla-menu/salla-menu.js +35 -2
  104. package/dist/collection/components/salla-next-order-coupon/interfaces.js +1 -0
  105. package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.css +3 -0
  106. package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.js +142 -0
  107. package/dist/collection/components/salla-offer/salla-offer.js +23 -3
  108. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +7 -1
  109. package/dist/components/index.js +2 -2
  110. package/dist/components/salla-cart-item-offers.js +1 -7
  111. package/dist/components/salla-cookies-bar.js +21 -1
  112. package/dist/components/salla-menu.js +16 -2
  113. package/dist/components/salla-next-order-coupon.d.ts +11 -0
  114. package/dist/components/salla-next-order-coupon.js +165 -0
  115. package/dist/components/salla-offer-modal.js +7 -1
  116. package/dist/components/salla-offer.js +23 -3
  117. package/dist/components/salla-order-summary.js +1 -7
  118. package/dist/components/salla-reward-details2.js +7 -4
  119. package/dist/components/swap-stroke.js +11 -0
  120. package/dist/components/tag-money.js +11 -0
  121. package/dist/esm/{filepond-BkG7zRNW.js → filepond-C27NJlHY.js} +1 -1
  122. package/dist/esm/{filepond-plugin-file-poster-BBohUknW.js → filepond-plugin-file-poster-CbA3Ow5D.js} +1 -1
  123. package/dist/esm/{filepond-plugin-file-validate-size-CWM6JwDZ.js → filepond-plugin-file-validate-size-DeVDysqG.js} +1 -1
  124. package/dist/esm/{filepond-plugin-file-validate-type-D9vBlpjh.js → filepond-plugin-file-validate-type-Bk2vWN-H.js} +1 -1
  125. package/dist/esm/{filepond-plugin-image-edit-BwGogzgJ.js → filepond-plugin-image-edit-MZT3Vams.js} +1 -1
  126. package/dist/esm/{filepond-plugin-image-exif-orientation-DNFa2Zgg.js → filepond-plugin-image-exif-orientation-CUi24gW6.js} +1 -1
  127. package/dist/esm/{filepond-plugin-image-preview-DrbIi9ph.js → filepond-plugin-image-preview-DNteLpdV.js} +1 -1
  128. package/dist/esm/{functions-7e80w1OB.js → functions-WZTrXRSI.js} +1 -1
  129. package/dist/esm/{index-DbC46u_V.js → index-Z9TEkBrE.js} +12 -8
  130. package/dist/esm/{index-DWiN6nE9.js → index-xqn3qtN8.js} +1 -1
  131. package/dist/esm/loader.js +3 -3
  132. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  133. package/dist/esm/salla-accordion_6.entry.js +1 -1
  134. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  135. package/dist/esm/salla-advertisement.entry.js +1 -1
  136. package/dist/esm/salla-alert_2.entry.js +1 -1
  137. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  138. package/dist/esm/salla-apps-icons.entry.js +1 -1
  139. package/dist/esm/salla-badge.entry.js +1 -1
  140. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  141. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  142. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  143. package/dist/esm/salla-cart-item-offers_2.entry.js +2 -8
  144. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  145. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  146. package/dist/esm/salla-contacts.entry.js +1 -1
  147. package/dist/esm/salla-cookies-bar.entry.js +20 -1
  148. package/dist/esm/salla-count-down.entry.js +1 -1
  149. package/dist/esm/salla-custom-fields.entry.js +1 -1
  150. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  151. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  152. package/dist/esm/salla-filters-widget.entry.js +1 -1
  153. package/dist/esm/salla-filters.entry.js +1 -1
  154. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  155. package/dist/esm/salla-gifting.entry.js +1 -1
  156. package/dist/esm/salla-hook.entry.js +1 -1
  157. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  158. package/dist/esm/salla-installment.entry.js +1 -1
  159. package/dist/esm/salla-list-tile.entry.js +1 -1
  160. package/dist/esm/salla-localization-modal.entry.js +1 -1
  161. package/dist/esm/salla-login-modal.entry.js +1 -1
  162. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  163. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  164. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  165. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  166. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  167. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  168. package/dist/esm/salla-loyalty.entry.js +1 -1
  169. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  170. package/dist/esm/salla-map.entry.js +1 -1
  171. package/dist/esm/salla-menu.entry.js +14 -2
  172. package/dist/esm/salla-metadata.entry.js +1 -1
  173. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  174. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  175. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  176. package/dist/esm/salla-next-order-coupon.entry.js +124 -0
  177. package/dist/esm/salla-notification-item.entry.js +1 -1
  178. package/dist/esm/salla-notifications.entry.js +1 -1
  179. package/dist/esm/salla-offer-modal.entry.js +8 -2
  180. package/dist/esm/salla-offer.entry.js +24 -4
  181. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  182. package/dist/esm/salla-order-details-options.entry.js +1 -1
  183. package/dist/esm/salla-order-details.entry.js +1 -1
  184. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  185. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  186. package/dist/esm/salla-order-edit.entry.js +1 -1
  187. package/dist/esm/salla-order-summary.entry.js +2 -8
  188. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  189. package/dist/esm/salla-orders.entry.js +1 -1
  190. package/dist/esm/salla-payments.entry.js +1 -1
  191. package/dist/esm/salla-placeholder.entry.js +1 -1
  192. package/dist/esm/salla-price-range.entry.js +1 -1
  193. package/dist/esm/salla-product-card_2.entry.js +1 -1
  194. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  195. package/dist/esm/salla-products-list.entry.js +1 -1
  196. package/dist/esm/salla-progress-bar.entry.js +1 -1
  197. package/dist/esm/salla-quick-order.entry.js +1 -1
  198. package/dist/esm/salla-rating-modal.entry.js +1 -1
  199. package/dist/esm/salla-reward-action_4.entry.js +10 -7
  200. package/dist/esm/salla-scopes.entry.js +1 -1
  201. package/dist/esm/salla-search.entry.js +1 -1
  202. package/dist/esm/salla-skeleton.entry.js +1 -1
  203. package/dist/esm/salla-slider.entry.js +1 -1
  204. package/dist/esm/salla-social-share.entry.js +1 -1
  205. package/dist/esm/salla-social.entry.js +1 -1
  206. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  207. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  208. package/dist/esm/salla-tooltip.entry.js +1 -1
  209. package/dist/esm/salla-trust-badges.entry.js +1 -1
  210. package/dist/esm/salla-user-menu.entry.js +1 -1
  211. package/dist/esm/salla-user-profile.entry.js +1 -1
  212. package/dist/esm/salla-user-settings.entry.js +1 -1
  213. package/dist/esm/salla-verify.entry.js +1 -1
  214. package/dist/esm/salla-wallet.entry.js +1 -1
  215. package/dist/esm/swap-stroke-DqDX5na4.js +11 -0
  216. package/dist/esm/tag-money-CJUR4sUM.js +11 -0
  217. package/dist/esm/{tracked-promise-BoMxGtXb.js → tracked-promise-9ayPcQ9V.js} +1 -1
  218. package/dist/esm/twilight.js +3 -3
  219. package/dist/esm/{vanilla-picker-BoNPoxF7.js → vanilla-picker-DU5T_3-T.js} +1 -1
  220. package/dist/twilight/{p-18cdd8f5.entry.js → p-10311a85.entry.js} +1 -1
  221. package/dist/twilight/{p-ad519098.entry.js → p-132d5758.entry.js} +1 -1
  222. package/dist/twilight/{p-33df683c.entry.js → p-1357f11f.entry.js} +1 -1
  223. package/dist/twilight/{p-1a0b4f94.entry.js → p-15b8af3d.entry.js} +1 -1
  224. package/dist/twilight/{p-59d30e13.entry.js → p-15d242d1.entry.js} +1 -1
  225. package/dist/twilight/{p-30dc117d.entry.js → p-1aa4f79a.entry.js} +1 -1
  226. package/dist/twilight/{p-b2aa7372.entry.js → p-1daa9a08.entry.js} +1 -1
  227. package/dist/twilight/{p-06196216.entry.js → p-1e6a741d.entry.js} +1 -1
  228. package/dist/twilight/{p-0d56ce44.entry.js → p-1f3d64f3.entry.js} +1 -1
  229. package/dist/twilight/{p-79d1120e.entry.js → p-25a9da9c.entry.js} +1 -1
  230. package/dist/twilight/{p-77bcab66.entry.js → p-268c86dd.entry.js} +1 -1
  231. package/dist/twilight/{p-f68ac4e6.entry.js → p-296b7778.entry.js} +1 -1
  232. package/dist/twilight/{p-b88f28ed.entry.js → p-2e69e2a7.entry.js} +1 -1
  233. package/dist/twilight/p-3175cab9.entry.js +4 -0
  234. package/dist/twilight/{p-55d18399.entry.js → p-31cdb580.entry.js} +1 -1
  235. package/dist/twilight/{p-c3762539.entry.js → p-321d4374.entry.js} +1 -1
  236. package/dist/twilight/{p-0daa4d70.entry.js → p-38eb6f08.entry.js} +1 -1
  237. package/dist/twilight/{p-458b78f1.entry.js → p-4208c68b.entry.js} +1 -1
  238. package/dist/twilight/{p-71393aad.entry.js → p-475bfa77.entry.js} +1 -1
  239. package/dist/twilight/{p-f66b17b4.entry.js → p-51ccd249.entry.js} +1 -1
  240. package/dist/twilight/p-51eb69d7.entry.js +4 -0
  241. package/dist/twilight/{p-f5b9e709.entry.js → p-58f17ecc.entry.js} +1 -1
  242. package/dist/twilight/{p-fbdbc033.entry.js → p-598c73c9.entry.js} +1 -1
  243. package/dist/twilight/{p-563aaf0e.entry.js → p-5bd92466.entry.js} +1 -1
  244. package/dist/twilight/{p-26e8e86d.entry.js → p-612f2099.entry.js} +1 -1
  245. package/dist/twilight/{p-34064c35.entry.js → p-61b6fac2.entry.js} +1 -1
  246. package/dist/twilight/{p-f1aa34f0.entry.js → p-647a76d0.entry.js} +1 -1
  247. package/dist/twilight/{p-4839e7b8.entry.js → p-69d98642.entry.js} +1 -1
  248. package/dist/twilight/{p-935cff30.entry.js → p-6ab7c83d.entry.js} +1 -1
  249. package/dist/twilight/{p-1a14ddaf.entry.js → p-6d4850df.entry.js} +1 -1
  250. package/dist/twilight/{p-b8eeb61e.entry.js → p-735e5378.entry.js} +1 -1
  251. package/dist/twilight/{p-e12a5af8.entry.js → p-74362d6a.entry.js} +1 -1
  252. package/dist/twilight/{p-d3a14c1b.entry.js → p-75066345.entry.js} +1 -1
  253. package/dist/twilight/{p-5694334c.entry.js → p-75826fc3.entry.js} +1 -1
  254. package/dist/twilight/{p-58f092bc.entry.js → p-776a0bda.entry.js} +1 -1
  255. package/dist/twilight/{p-d2b8c827.entry.js → p-777a765e.entry.js} +1 -1
  256. package/dist/twilight/{p-449ffdea.entry.js → p-79340697.entry.js} +1 -1
  257. package/dist/twilight/{p-3ff5e879.entry.js → p-79d9b828.entry.js} +1 -1
  258. package/dist/twilight/{p-298c1c9e.entry.js → p-7d2ec078.entry.js} +1 -1
  259. package/dist/twilight/{p-c02a2fcd.entry.js → p-7d4c5da3.entry.js} +1 -1
  260. package/dist/twilight/{p-850570b7.entry.js → p-8138fe7c.entry.js} +1 -1
  261. package/dist/twilight/{p-1d7a48d5.entry.js → p-847d884f.entry.js} +1 -1
  262. package/dist/twilight/{p-04336d38.entry.js → p-8631c200.entry.js} +1 -1
  263. package/dist/twilight/{p-03cbc25a.entry.js → p-872b6790.entry.js} +1 -1
  264. package/dist/twilight/{p-68c9066c.entry.js → p-88c6e6ec.entry.js} +1 -1
  265. package/dist/twilight/{p-ab69d680.entry.js → p-8b15a7c2.entry.js} +1 -1
  266. package/dist/twilight/p-93221e58.entry.js +4 -0
  267. package/dist/twilight/{p-91e115ee.entry.js → p-93715135.entry.js} +1 -1
  268. package/dist/twilight/{p-69d25f66.entry.js → p-9410f28a.entry.js} +1 -1
  269. package/dist/twilight/p-97033016.entry.js +4 -0
  270. package/dist/twilight/{p-09ef1bfd.entry.js → p-9b64e741.entry.js} +1 -1
  271. package/dist/twilight/{p-41743733.entry.js → p-9c36f5f1.entry.js} +1 -1
  272. package/dist/twilight/{p-07b48592.entry.js → p-9d30457e.entry.js} +1 -1
  273. package/dist/twilight/{p-B4aouEym.js → p-B7NkulJ-.js} +1 -1
  274. package/dist/twilight/{p-BfBD_dZY.js → p-BDJ2Ykel.js} +1 -1
  275. package/dist/twilight/{p-D70co0Me.js → p-BlcvrTiO.js} +1 -1
  276. package/dist/twilight/p-BswrPpfs.js +9 -0
  277. package/dist/twilight/{p-DpyekdaY.js → p-C9yU50YT.js} +2 -2
  278. package/dist/twilight/p-CJUR4sUM.js +4 -0
  279. package/dist/twilight/{p-Lt3b2USq.js → p-CmoDOvZI.js} +1 -1
  280. package/dist/twilight/{p-Dr1FS7by.js → p-CxlEUP15.js} +1 -1
  281. package/dist/twilight/{p-C52jz7Qy.js → p-DG0XMtHg.js} +1 -1
  282. package/dist/twilight/p-DqDX5na4.js +4 -0
  283. package/dist/twilight/{p-Ck_RfmRo.js → p-DqwP0D-u.js} +1 -1
  284. package/dist/twilight/{p-C4GWkh-f.js → p-EhkdtrLx.js} +1 -1
  285. package/dist/twilight/{p-DbC46u_V.js → p-Z9TEkBrE.js} +1 -1
  286. package/dist/twilight/{p-DXvleSvk.js → p-ZJAW9yxk.js} +1 -1
  287. package/dist/twilight/{p-29353f6d.entry.js → p-a6429df2.entry.js} +1 -1
  288. package/dist/twilight/p-a9f85080.entry.js +4 -0
  289. package/dist/twilight/{p-ad033d91.entry.js → p-aba22621.entry.js} +1 -1
  290. package/dist/twilight/{p-d88a136d.entry.js → p-b253d360.entry.js} +1 -1
  291. package/dist/twilight/{p-30b20068.entry.js → p-b5c33519.entry.js} +1 -1
  292. package/dist/twilight/{p-30e87289.entry.js → p-b785d75d.entry.js} +1 -1
  293. package/dist/twilight/{p-0f68b304.entry.js → p-b7aa5623.entry.js} +1 -1
  294. package/dist/twilight/p-be58b3a7.entry.js +4 -0
  295. package/dist/twilight/{p-fb818de2.entry.js → p-c038e432.entry.js} +1 -1
  296. package/dist/twilight/{p-c22dbb9a.entry.js → p-c19887c7.entry.js} +1 -1
  297. package/dist/twilight/{p-5695e345.entry.js → p-c2dd5774.entry.js} +1 -1
  298. package/dist/twilight/{p-a9be6107.entry.js → p-c4a80854.entry.js} +1 -1
  299. package/dist/twilight/{p-40d6f65f.entry.js → p-c4bb47b0.entry.js} +1 -1
  300. package/dist/twilight/{p-d70f0f18.entry.js → p-c763b517.entry.js} +1 -1
  301. package/dist/twilight/p-c77bcf09.entry.js +4 -0
  302. package/dist/twilight/{p-c3a53221.entry.js → p-c7b15f0a.entry.js} +1 -1
  303. package/dist/twilight/{p-0e5c5cc9.entry.js → p-cb476df4.entry.js} +1 -1
  304. package/dist/twilight/{p-a86695b3.entry.js → p-d049f98a.entry.js} +1 -1
  305. package/dist/twilight/{p-11c2fdd8.entry.js → p-d0898538.entry.js} +1 -1
  306. package/dist/twilight/{p-5a30b7be.entry.js → p-d8d62f74.entry.js} +1 -1
  307. package/dist/twilight/{p-ed50975c.entry.js → p-dc1b4da2.entry.js} +1 -1
  308. package/dist/twilight/{p-6f9a2d6f.entry.js → p-ea0b6753.entry.js} +1 -1
  309. package/dist/twilight/{p-8f808e77.entry.js → p-eed5585b.entry.js} +1 -1
  310. package/dist/twilight/{p-087c9bdc.entry.js → p-ef60225f.entry.js} +1 -1
  311. package/dist/twilight/{p-29d3dd5f.entry.js → p-f087988a.entry.js} +1 -1
  312. package/dist/twilight/{p-17371658.entry.js → p-f423f1cf.entry.js} +1 -1
  313. package/dist/twilight/{p-efe216ac.entry.js → p-f4582cc9.entry.js} +1 -1
  314. package/dist/twilight/{p-e1dd834e.entry.js → p-f45efc0c.entry.js} +1 -1
  315. package/dist/twilight/p-f82d4a36.entry.js +4 -0
  316. package/dist/twilight/{p-1ec3c41a.entry.js → p-fae2be1f.entry.js} +1 -1
  317. package/dist/twilight/twilight.esm.js +1 -1
  318. package/dist/types/components/salla-cookies-bar/salla-cookies-bar.d.ts +6 -0
  319. package/dist/types/components/salla-menu/salla-menu.d.ts +6 -0
  320. package/dist/types/components/salla-next-order-coupon/interfaces.d.ts +11 -0
  321. package/dist/types/components/salla-next-order-coupon/salla-next-order-coupon.d.ts +24 -0
  322. package/dist/types/components/salla-offer/interfaces.d.ts +6 -1
  323. package/dist/types/components/salla-offer/salla-offer.d.ts +1 -0
  324. package/dist/types/components/salla-offer-modal/offer-schema.d.ts +5 -0
  325. package/dist/types/components.d.ts +27 -0
  326. package/package.json +5 -5
  327. package/dist/twilight/p-22e5882c.entry.js +0 -4
  328. package/dist/twilight/p-2da1ab0d.entry.js +0 -4
  329. package/dist/twilight/p-51898257.entry.js +0 -4
  330. package/dist/twilight/p-62252d95.entry.js +0 -4
  331. package/dist/twilight/p-7816b794.entry.js +0 -4
  332. package/dist/twilight/p-90d5b4d3.entry.js +0 -4
  333. package/dist/twilight/p-DRrArHhd.js +0 -9
  334. package/dist/twilight/p-bfae823f.entry.js +0 -4
@@ -0,0 +1,142 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { h } from "@stencil/core";
5
+ import TagMoneyIcon from "../../assets/svg/tag-money.svg";
6
+ import SwapStrokeIcon from "../../assets/svg/swap-stroke.svg";
7
+ export class SallaNextOrderCoupon {
8
+ constructor() {
9
+ this.coupon = null;
10
+ this.isLoading = true;
11
+ this.titlePercentTpl = '';
12
+ this.titleFixedTpl = '';
13
+ this.badgeLabel = '';
14
+ this.minSpendTpl = '';
15
+ this.expiresTpl = '';
16
+ this.shopNowLabel = '';
17
+ this.copyLabel = '';
18
+ this.copiedLabel = '';
19
+ }
20
+ componentWillLoad() {
21
+ Salla.onReady()
22
+ .then(() => Salla.lang.onLoaded())
23
+ .then(() => {
24
+ this.loadTranslations();
25
+ return this.loadCoupon();
26
+ })
27
+ .catch(() => {
28
+ this.isLoading = false;
29
+ });
30
+ }
31
+ loadTranslations() {
32
+ this.titlePercentTpl = Salla.lang.get('pages.thank_you.next_order_coupon.title_percent') || '';
33
+ this.titleFixedTpl = Salla.lang.get('pages.thank_you.next_order_coupon.title_fixed') || '';
34
+ this.badgeLabel = Salla.lang.get('pages.thank_you.next_order_coupon.badge') || '';
35
+ this.minSpendTpl = Salla.lang.get('pages.thank_you.next_order_coupon.min_spend') || '';
36
+ this.expiresTpl = Salla.lang.get('pages.thank_you.next_order_coupon.expires') || '';
37
+ this.shopNowLabel = Salla.lang.get('pages.thank_you.next_order_coupon.shop_now') || '';
38
+ this.copyLabel = Salla.lang.get('common.elements.copy') || '';
39
+ this.copiedLabel = Salla.lang.get('pages.thank_you.next_order_coupon.copied') || '';
40
+ }
41
+ async loadCoupon() {
42
+ try {
43
+ const response = await salla.api.request('coupons', { type: 'thankyou' });
44
+ const raw = response?.data;
45
+ const list = Array.isArray(raw) ? raw : (Array.isArray(raw?.data) ? raw.data : []);
46
+ this.coupon = list[0] ?? null;
47
+ }
48
+ catch {
49
+ this.coupon = null;
50
+ }
51
+ finally {
52
+ this.isLoading = false;
53
+ }
54
+ }
55
+ async copyCode() {
56
+ if (!this.coupon)
57
+ return;
58
+ try {
59
+ await navigator.clipboard.writeText(this.coupon.code);
60
+ salla.notify.success(this.copiedLabel);
61
+ salla.event.dispatch('salla::next-order-coupon.code.copied', { code: this.coupon.code });
62
+ }
63
+ catch {
64
+ // clipboard write failed silently
65
+ }
66
+ }
67
+ isPercentage() {
68
+ return this.coupon?.type === 'P' || this.coupon?.type === 'percentage';
69
+ }
70
+ formatAmount() {
71
+ if (!this.coupon)
72
+ return '';
73
+ if (this.isPercentage()) {
74
+ return `${salla.helpers.number(this.coupon.amount)}%`;
75
+ }
76
+ const amt = this.coupon.amount;
77
+ if (typeof amt === 'object' && amt.amount) {
78
+ const a = amt;
79
+ return h("span", { innerHTML: salla.money(a.amount, a.currency) });
80
+ }
81
+ return h("span", { innerHTML: salla.money(amt) });
82
+ }
83
+ formatMinSpend() {
84
+ const min = this.coupon?.minimum_amount;
85
+ if (!min)
86
+ return '';
87
+ if (typeof min === 'string') {
88
+ return min.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
89
+ }
90
+ return salla.money(min.amount, min.currency);
91
+ }
92
+ formatExpiry() {
93
+ const d = this.coupon?.expiry_date;
94
+ if (!d)
95
+ return '';
96
+ return new Date(d).toLocaleDateString(Salla.lang.locale || 'en-GB');
97
+ }
98
+ renderSkeleton() {
99
+ return (h("div", { class: "s-next-order-coupon-wrapper s-next-order-coupon-skeleton" }, h("div", { class: "s-next-order-coupon-inner" }, h("div", { class: "s-next-order-coupon-info" }, h("salla-skeleton", { type: "normal", width: "48px", height: "48px" }), h("div", { class: "s-next-order-coupon-details" }, h("salla-skeleton", { height: "14px", width: "220px" }), h("salla-skeleton", { height: "12px", width: "140px" }))), h("div", { class: "s-next-order-coupon-actions" }, h("salla-skeleton", { height: "40px", width: "140px" }), h("salla-skeleton", { height: "40px", width: "100px" })))));
100
+ }
101
+ renderTitle() {
102
+ const amount = this.formatAmount();
103
+ const tpl = this.isPercentage() ? this.titlePercentTpl : this.titleFixedTpl;
104
+ const placeholder = this.isPercentage() ? ':amount%' : ':amount';
105
+ const parts = tpl.split(placeholder);
106
+ return (h("p", { class: "s-next-order-coupon-title" }, parts[0], h("span", { class: "s-next-order-coupon-amount" }, amount), parts[1] || ''));
107
+ }
108
+ render() {
109
+ if (this.isLoading)
110
+ return this.renderSkeleton();
111
+ if (!this.coupon)
112
+ return null;
113
+ const minSpend = this.formatMinSpend();
114
+ const expiry = this.formatExpiry();
115
+ return (h("div", { class: "s-next-order-coupon-wrapper" }, h("div", { class: "s-next-order-coupon-inner" }, h("div", { class: "s-next-order-coupon-info" }, h("div", { class: "s-next-order-coupon-icon-wrap" }, h("span", { class: "s-next-order-coupon-icon-bg" }), h("span", { class: "s-next-order-coupon-icon", innerHTML: TagMoneyIcon })), h("div", { class: "s-next-order-coupon-details" }, h("div", { class: "s-next-order-coupon-title-row" }, this.renderTitle(), h("span", { class: "s-next-order-coupon-badge" }, h("span", { class: "s-next-order-coupon-badge-bg" }), h("span", { class: "s-next-order-coupon-badge-text" }, this.badgeLabel))), (minSpend || expiry) && (h("p", { class: "s-next-order-coupon-meta" }, minSpend && (h("span", { innerHTML: this.minSpendTpl.replace(':amount', minSpend) })), expiry && (h("span", null, this.expiresTpl.replace(':date', expiry))))))), h("div", { class: "s-next-order-coupon-actions" }, h("div", { class: "s-next-order-coupon-code-box" }, h("span", { class: "s-next-order-coupon-code-text" }, this.coupon.code), h("salla-button", { shape: "link", class: "s-next-order-coupon-copy-btn", title: this.copyLabel, onClick: () => this.copyCode() }, h("span", { class: "s-next-order-coupon-copy-icon", innerHTML: SwapStrokeIcon }))), h("salla-button", { href: salla.url.get(''), class: "s-next-order-coupon-shop-btn" }, this.shopNowLabel)))));
116
+ }
117
+ static get is() { return "salla-next-order-coupon"; }
118
+ static get originalStyleUrls() {
119
+ return {
120
+ "$": ["salla-next-order-coupon.scss"]
121
+ };
122
+ }
123
+ static get styleUrls() {
124
+ return {
125
+ "$": ["salla-next-order-coupon.css"]
126
+ };
127
+ }
128
+ static get states() {
129
+ return {
130
+ "coupon": {},
131
+ "isLoading": {},
132
+ "titlePercentTpl": {},
133
+ "titleFixedTpl": {},
134
+ "badgeLabel": {},
135
+ "minSpendTpl": {},
136
+ "expiresTpl": {},
137
+ "shopNowLabel": {},
138
+ "copyLabel": {},
139
+ "copiedLabel": {}
140
+ };
141
+ }
142
+ }
@@ -181,6 +181,9 @@ export class SallaOffer {
181
181
  if (details.apply_to === 'brand' && details.targets) {
182
182
  details.brands = details.targets;
183
183
  }
184
+ if (details.apply_to === 'tag' && details.targets) {
185
+ details.tags = details.targets;
186
+ }
184
187
  if (offer.type === OfferType.BuyXGetY && details.get) {
185
188
  const getY = details.get;
186
189
  if (getY.source === 'products' && getY.source_value) {
@@ -301,7 +304,7 @@ export class SallaOffer {
301
304
  const products = this.getOfferProducts(offer);
302
305
  const hasProducts = products && products.length > 0;
303
306
  const isCollapsed = this.collapsedOffers[offer.id] !== false; // Default to collapsed
304
- return (h("div", { class: "s-offer-drawer-card" }, h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer))) : (h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer))))), hasProducts && (h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, h("div", { slot: "title", class: "s-offer-products-thumbnails" }, h("span", { class: "s-offer-products-title" }, this.products_link_text, h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index) => (h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index + 1}` } }, h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), h("salla-accordion-body", null, h("div", { class: "s-offer-products-content" }, h("salla-products-list", { source: "selected", "source-value": JSON.stringify(products.map(p => p.id)), "product-card-component": this.productCardComponent, "horizontal-cards": true, "compact-cards": true, includes: ["images"] })))))));
307
+ return (h("div", { class: "s-offer-drawer-card" }, h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))) : (h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))))), hasProducts && (h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, h("div", { slot: "title", class: "s-offer-products-thumbnails" }, h("span", { class: "s-offer-products-title" }, this.products_link_text, h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index) => (h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index + 1}` } }, h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), h("salla-accordion-body", null, h("div", { class: "s-offer-products-content" }, h("salla-products-list", { source: "selected", "source-value": JSON.stringify(products.map(p => p.id)), "product-card-component": this.productCardComponent, "horizontal-cards": true, "compact-cards": true, includes: ["images"] })))))));
305
308
  }
306
309
  renderOfferCard(offer, position = 1) {
307
310
  return (h("div", { class: "s-offer-slide-one-fourth swiper-slide", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card" }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), h("div", { class: "s-offer-card-details" }, offer.type === OfferType.DiscountsTable
@@ -310,11 +313,13 @@ export class SallaOffer {
310
313
  ? [
311
314
  this.renderPercentageOrFixedOfferContent(offer),
312
315
  this.renderOfferCategories(offer),
313
- this.renderOfferBrands(offer)
316
+ this.renderOfferBrands(offer),
317
+ this.renderOfferTags(offer)
314
318
  ]
315
319
  : [
316
320
  this.renderOfferCategories(offer),
317
- this.renderOfferBrands(offer)
321
+ this.renderOfferBrands(offer),
322
+ this.renderOfferTags(offer)
318
323
  ], this.renderProductsLinkForModalCard(offer, false))))));
319
324
  }
320
325
  getOfferIcon(offerType) {
@@ -394,6 +399,21 @@ export class SallaOffer {
394
399
  this.toggleCategoryExpansion(offer.id);
395
400
  } }, isExpanded ? (h("span", null, h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${brands.length - maxVisible}`, ' ', h("i", { class: "sicon-keyboard_arrow_down" }))))))));
396
401
  }
402
+ renderOfferTags(offer) {
403
+ const details = offer.details;
404
+ const tags = details.tags || [];
405
+ if (!tags.length)
406
+ return null;
407
+ const maxVisible = 3;
408
+ const isExpanded = this.expandedCategories[offer.id];
409
+ const shouldShowMore = tags.length > maxVisible;
410
+ const visibleTags = isExpanded ? tags : tags.slice(0, maxVisible);
411
+ return (h("div", { class: "s-offer-categories" }, h("div", { class: "s-offer-categories-list" }, visibleTags.map((tag, index) => (h("a", { key: index, class: "s-offer-category-item", href: tag.url || salla.url.create('tags', tag.id) }, tag.name))), shouldShowMore && (h("span", { class: "s-offer-categories-toggle", onClick: (e) => {
412
+ e.preventDefault();
413
+ e.stopPropagation();
414
+ this.toggleCategoryExpansion(offer.id);
415
+ } }, isExpanded ? (h("span", null, h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${tags.length - maxVisible}`, ' ', h("i", { class: "sicon-keyboard_arrow_down" }))))))));
416
+ }
397
417
  /**
398
418
  * Toggle category expansion for a specific offer
399
419
  */
@@ -110,6 +110,9 @@ export class SallaOfferModal {
110
110
  else if (this.offer.get.brands?.length) {
111
111
  this.offer_type = 'brands';
112
112
  }
113
+ else if (this.offer.get.tags?.length) {
114
+ this.offer_type = 'tags';
115
+ }
113
116
  this.modal.setTitle(this.offer_name);
114
117
  this.emitPromotionViewed(this.offer);
115
118
  }
@@ -182,6 +185,9 @@ export class SallaOfferModal {
182
185
  else if (this.offer.get.brands?.length) {
183
186
  return h("salla-slider", { type: "carousel", class: { "s-offer-modal-slider-centered": this.offer.get.brands?.length <= 2, "s-offer-modal-slider": true }, id: "offer-modal-slider", "controls-outer": true, "show-controls": this.offer.get.brands?.length <= 2 ? 'false' : 'true' }, h("div", { slot: 'items' }, this.offer.get.brands.map((brand) => h("a", { href: brand.url || salla.url.create('brands', brand.id), class: "s-offer-modal-badge s-offer-modal-slider-item s-offer-modal-brand-item" }, h("div", { class: "s-offer-modal-brand-logo" }, h("img", { src: brand.logo, alt: brand.name })), h("span", { class: "s-offer-modal-badge-text" }, brand.name)))));
184
187
  }
188
+ else if (this.offer.get.tags?.length) {
189
+ return h("salla-slider", { type: "carousel", class: { "s-offer-modal-slider-centered": this.offer.get.tags?.length <= 2, "s-offer-modal-slider": true }, id: "offer-modal-slider", "controls-outer": true, "show-controls": this.offer.get.tags?.length <= 2 ? 'false' : 'true' }, h("div", { slot: 'items' }, this.offer.get.tags.map((tag) => h("a", { href: tag.url || salla.url.create('tags', tag.id), class: "s-offer-modal-badge s-offer-modal-slider-item s-offer-modal-tag-item" }, h("span", { class: "s-offer-modal-badge-icon", innerHTML: Tag }), h("span", { class: "s-offer-modal-badge-text" }, tag.name)))));
190
+ }
185
191
  }
186
192
  //todo:: pass event then use sallaButton from it
187
193
  // private addItem() {
@@ -199,7 +205,7 @@ export class SallaOfferModal {
199
205
  // '</div>';
200
206
  // }
201
207
  render() {
202
- return h("salla-modal", { key: '8be68e5882a9cbb1f4286f765f5db3ce88689c16', "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: '570bcafe6a1a00534b26ee25aa154e46594cb662', slot: 'loading' }, h("div", { key: 'baee23d1ad4429e8663fcf043004bf0747fe47de', class: "s-offer-modal-skeleton" }, h("div", { key: '1c6967ecfb17092c48247c17c2ce86b8ca048c77', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'a6ce5a415d4e6350c2467d7d3c070fddaeccd074', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '2d65ed027b9fff7eae7ecbb372f9e584a0334cf5', height: '15px', width: '50%' }), h("salla-skeleton", { key: '247706c9ddf7d2b9f96c7ea2deac960de3449017', height: '10px', width: '30%' })), h("div", { key: 'b5c9fec6565313706e2d6b73e2f060e4b216ffbc', 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: '58e2d38061e8e4434113b1fc16f3601969e342da', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: 'c388e246236e4849e5d97592ea6a803e6409083f', height: '15px', width: '50%' }), h("salla-skeleton", { key: '4ccd783b15647cf62f1b5b4d760f3e7feead7bfb', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
208
+ return h("salla-modal", { key: '3387816ac4997e48ce463de1acae69583a99eef1', "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: '38ee273912aeec936b6762cac52eca16b65c2744', slot: 'loading' }, h("div", { key: '05911f31ca0884953185cbc1ac1c7b7ad007baf1', class: "s-offer-modal-skeleton" }, h("div", { key: '095055ba94627a2800e65be09a516286f3eea9c3', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'b1469e4e49e0d90602b9d0fac8672a9a063141f6', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '7b738f6b9b153a49d03bb76a57690e2de9749d87', height: '15px', width: '50%' }), h("salla-skeleton", { key: '6d88e7ad3e419ab5a647bdd2215976bacd892e8d', height: '10px', width: '30%' })), h("div", { key: 'ee012a7a75a728ee76fa0888c487ac6d63c05efa', 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: 'db71ea2e16e6d219bfeb1320b174e75d9e5fab19', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '862658e0a5df3c1a2350c2a571f4f0e8f8a4d0af', height: '15px', width: '50%' }), h("salla-skeleton", { key: '0f3c58145caf12c90626742c8cbc768a442a3ce4', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
203
209
  ? [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 ?
204
210
  h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
205
211
  : '', 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'))),