@salla.sa/twilight-components 2.14.468 → 2.14.470

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 (316) hide show
  1. package/dist/cjs/{filepond-C1SAyrFq.js → filepond-jdX95qxM.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-DAhQ7rGa.js → filepond-plugin-file-poster-DC9ozntr.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-qfwxpApK.js → filepond-plugin-file-validate-size-DxUUyj2Z.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-BbYanfPf.js → filepond-plugin-file-validate-type-DB4YCfw-.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-lWdFhMNt.js → filepond-plugin-image-edit-QlnXOcNf.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-C2wUYBSb.js → filepond-plugin-image-exif-orientation-D6HJ47N2.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-B1ukjrjT.js → filepond-plugin-image-preview-DCaj9jNI.js} +1 -1
  8. package/dist/cjs/{functions-DCSgyun2.js → functions-C_kzehHT.js} +1 -1
  9. package/dist/cjs/{index-CXr_39D8.js → index-CmPl0fIy.js} +2 -2
  10. package/dist/cjs/{index-D3oJJZKW.js → index-SIy6bIWx.js} +1 -1
  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_2.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 +1 -1
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-gifting.cjs.entry.js +69 -17
  37. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  50. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  51. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  85. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  101. package/dist/cjs/{tracked-promise-BsYRgTGD.js → tracked-promise-D-gQXgPZ.js} +1 -1
  102. package/dist/cjs/twilight.cjs.js +2 -2
  103. package/dist/cjs/{vanilla-picker-DkdzTjSC.js → vanilla-picker-CZ_8m6i_.js} +1 -1
  104. package/dist/collection/components/salla-gifting/salla-gifting.css +19 -1
  105. package/dist/collection/components/salla-gifting/salla-gifting.js +68 -15
  106. package/dist/components/index.js +2 -2
  107. package/dist/components/salla-gifting.js +69 -16
  108. package/dist/esm/{filepond-C4pZr9nR.js → filepond-DLJR7kqO.js} +1 -1
  109. package/dist/esm/{filepond-plugin-file-poster-CXpAGxT4.js → filepond-plugin-file-poster-BPPxfj_a.js} +1 -1
  110. package/dist/esm/{filepond-plugin-file-validate-size-Dk4M6ge1.js → filepond-plugin-file-validate-size-CCqZAz2o.js} +1 -1
  111. package/dist/esm/{filepond-plugin-file-validate-type-DD7qvRsg.js → filepond-plugin-file-validate-type-YEjyqpU3.js} +1 -1
  112. package/dist/esm/{filepond-plugin-image-edit-DMllAEkg.js → filepond-plugin-image-edit-tiyoM7iJ.js} +1 -1
  113. package/dist/esm/{filepond-plugin-image-exif-orientation-BRCbcu_E.js → filepond-plugin-image-exif-orientation-CESSG4q3.js} +1 -1
  114. package/dist/esm/{filepond-plugin-image-preview-DgeylrwN.js → filepond-plugin-image-preview-CTrGLHaX.js} +1 -1
  115. package/dist/esm/{functions-DrS7by6t.js → functions-iGPmc3ui.js} +1 -1
  116. package/dist/esm/{index-D2yBy7Jh.js → index-Dckjjczv.js} +2 -2
  117. package/dist/esm/{index-9SnsJoYO.js → index-pj-XyI3U.js} +1 -1
  118. package/dist/esm/loader.js +3 -3
  119. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  120. package/dist/esm/salla-accordion_6.entry.js +1 -1
  121. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  122. package/dist/esm/salla-advertisement.entry.js +1 -1
  123. package/dist/esm/salla-alert_2.entry.js +1 -1
  124. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  125. package/dist/esm/salla-apps-icons.entry.js +1 -1
  126. package/dist/esm/salla-badge.entry.js +1 -1
  127. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  128. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  129. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  130. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  131. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  132. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  133. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  134. package/dist/esm/salla-contacts.entry.js +1 -1
  135. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  136. package/dist/esm/salla-count-down.entry.js +1 -1
  137. package/dist/esm/salla-custom-fields.entry.js +1 -1
  138. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  139. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  140. package/dist/esm/salla-filters-widget.entry.js +1 -1
  141. package/dist/esm/salla-filters.entry.js +1 -1
  142. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  143. package/dist/esm/salla-gifting.entry.js +69 -17
  144. package/dist/esm/salla-hook.entry.js +1 -1
  145. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  146. package/dist/esm/salla-installment.entry.js +1 -1
  147. package/dist/esm/salla-list-tile.entry.js +1 -1
  148. package/dist/esm/salla-localization-modal.entry.js +1 -1
  149. package/dist/esm/salla-login-modal.entry.js +1 -1
  150. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  151. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  152. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  153. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  154. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  155. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  156. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  157. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  158. package/dist/esm/salla-loyalty.entry.js +1 -1
  159. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  160. package/dist/esm/salla-map.entry.js +1 -1
  161. package/dist/esm/salla-menu.entry.js +1 -1
  162. package/dist/esm/salla-metadata.entry.js +1 -1
  163. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  164. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  165. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  166. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  167. package/dist/esm/salla-notification-item.entry.js +1 -1
  168. package/dist/esm/salla-notifications.entry.js +1 -1
  169. package/dist/esm/salla-offer-modal.entry.js +1 -1
  170. package/dist/esm/salla-offer.entry.js +1 -1
  171. package/dist/esm/salla-order-branch.entry.js +1 -1
  172. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  173. package/dist/esm/salla-order-details-options.entry.js +1 -1
  174. package/dist/esm/salla-order-details.entry.js +1 -1
  175. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  176. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  177. package/dist/esm/salla-order-edit.entry.js +1 -1
  178. package/dist/esm/salla-order-summary.entry.js +1 -1
  179. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  180. package/dist/esm/salla-orders.entry.js +1 -1
  181. package/dist/esm/salla-payments.entry.js +1 -1
  182. package/dist/esm/salla-placeholder.entry.js +1 -1
  183. package/dist/esm/salla-price-range.entry.js +1 -1
  184. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  185. package/dist/esm/salla-product-card_2.entry.js +1 -1
  186. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  187. package/dist/esm/salla-products-list.entry.js +1 -1
  188. package/dist/esm/salla-progress-bar.entry.js +1 -1
  189. package/dist/esm/salla-quick-order.entry.js +1 -1
  190. package/dist/esm/salla-rating-modal.entry.js +1 -1
  191. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  192. package/dist/esm/salla-scopes.entry.js +1 -1
  193. package/dist/esm/salla-search.entry.js +1 -1
  194. package/dist/esm/salla-skeleton.entry.js +1 -1
  195. package/dist/esm/salla-slider.entry.js +1 -1
  196. package/dist/esm/salla-social-share.entry.js +1 -1
  197. package/dist/esm/salla-social.entry.js +1 -1
  198. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  199. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  200. package/dist/esm/salla-tooltip.entry.js +1 -1
  201. package/dist/esm/salla-trust-badges.entry.js +1 -1
  202. package/dist/esm/salla-user-menu.entry.js +1 -1
  203. package/dist/esm/salla-user-profile.entry.js +1 -1
  204. package/dist/esm/salla-user-settings.entry.js +1 -1
  205. package/dist/esm/salla-verify.entry.js +1 -1
  206. package/dist/esm/salla-wallet.entry.js +1 -1
  207. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  208. package/dist/esm/{tracked-promise-CTcAqNfZ.js → tracked-promise-CfOFv_ZQ.js} +1 -1
  209. package/dist/esm/twilight.js +3 -3
  210. package/dist/esm/{vanilla-picker-DfeK45Yv.js → vanilla-picker-BwAhzkb2.js} +1 -1
  211. package/dist/twilight/{p-BojnM4VS.js → p--Jfvyk1f.js} +1 -1
  212. package/dist/twilight/{p-50dfec0a.entry.js → p-0052df8e.entry.js} +1 -1
  213. package/dist/twilight/{p-2c7f524a.entry.js → p-017500f8.entry.js} +1 -1
  214. package/dist/twilight/{p-e80ee5b0.entry.js → p-052922a0.entry.js} +1 -1
  215. package/dist/twilight/{p-8b5d26d3.entry.js → p-05ffde56.entry.js} +1 -1
  216. package/dist/twilight/{p-a79f60e6.entry.js → p-092318cc.entry.js} +1 -1
  217. package/dist/twilight/{p-3c2fe8cd.entry.js → p-0a8fdddc.entry.js} +1 -1
  218. package/dist/twilight/{p-83b6c374.entry.js → p-0bf6b9ad.entry.js} +1 -1
  219. package/dist/twilight/{p-749dbf27.entry.js → p-0fa958a8.entry.js} +1 -1
  220. package/dist/twilight/{p-c4bc10c1.entry.js → p-193f4672.entry.js} +1 -1
  221. package/dist/twilight/{p-3d7c0ac6.entry.js → p-1da95f6f.entry.js} +1 -1
  222. package/dist/twilight/{p-d0cae7da.entry.js → p-1eadcac5.entry.js} +1 -1
  223. package/dist/twilight/{p-5e433652.entry.js → p-1fa5c385.entry.js} +1 -1
  224. package/dist/twilight/{p-3d8d289e.entry.js → p-21e43f89.entry.js} +1 -1
  225. package/dist/twilight/{p-53f83426.entry.js → p-294a3248.entry.js} +1 -1
  226. package/dist/twilight/{p-f0dedf42.entry.js → p-2b2af618.entry.js} +1 -1
  227. package/dist/twilight/{p-d0a8b9be.entry.js → p-30fe7a02.entry.js} +1 -1
  228. package/dist/twilight/{p-ae8bd2e7.entry.js → p-3100186f.entry.js} +1 -1
  229. package/dist/twilight/{p-db43fa93.entry.js → p-31fca96b.entry.js} +1 -1
  230. package/dist/twilight/{p-fe1bced4.entry.js → p-37299c40.entry.js} +1 -1
  231. package/dist/twilight/{p-cebad615.entry.js → p-38b5829a.entry.js} +1 -1
  232. package/dist/twilight/{p-1574176e.entry.js → p-3995c76e.entry.js} +1 -1
  233. package/dist/twilight/{p-a3e1fafc.entry.js → p-3d65f310.entry.js} +1 -1
  234. package/dist/twilight/{p-ee8c7a5a.entry.js → p-45a786cd.entry.js} +1 -1
  235. package/dist/twilight/{p-7ffc1711.entry.js → p-463cf5ea.entry.js} +1 -1
  236. package/dist/twilight/{p-e34f68e0.entry.js → p-46b75509.entry.js} +1 -1
  237. package/dist/twilight/p-476463ea.entry.js +4 -0
  238. package/dist/twilight/{p-1920b702.entry.js → p-4d2f0573.entry.js} +1 -1
  239. package/dist/twilight/{p-30ea9a82.entry.js → p-51b4ab80.entry.js} +1 -1
  240. package/dist/twilight/{p-54e9ac89.entry.js → p-56f4d005.entry.js} +1 -1
  241. package/dist/twilight/{p-6046666d.entry.js → p-58bcae28.entry.js} +1 -1
  242. package/dist/twilight/{p-c6e18746.entry.js → p-5d19859e.entry.js} +1 -1
  243. package/dist/twilight/{p-ad0a27e2.entry.js → p-5f989a35.entry.js} +1 -1
  244. package/dist/twilight/{p-daa9c0b3.entry.js → p-61bcbf9a.entry.js} +1 -1
  245. package/dist/twilight/{p-4144c908.entry.js → p-623b0c48.entry.js} +1 -1
  246. package/dist/twilight/{p-e4cac2a9.entry.js → p-63f20aa0.entry.js} +1 -1
  247. package/dist/twilight/{p-5a9b94f8.entry.js → p-6543c5eb.entry.js} +1 -1
  248. package/dist/twilight/{p-3d1e7982.entry.js → p-66d2b9e3.entry.js} +1 -1
  249. package/dist/twilight/{p-28bdf8ec.entry.js → p-681a053f.entry.js} +1 -1
  250. package/dist/twilight/{p-1b7ebf47.entry.js → p-69e7eb15.entry.js} +1 -1
  251. package/dist/twilight/{p-f3a01895.entry.js → p-6ce0ab6e.entry.js} +1 -1
  252. package/dist/twilight/{p-313d38cd.entry.js → p-6e2c05e8.entry.js} +1 -1
  253. package/dist/twilight/{p-9ba953ab.entry.js → p-6ee5c24d.entry.js} +1 -1
  254. package/dist/twilight/{p-266f57de.entry.js → p-6f63f391.entry.js} +1 -1
  255. package/dist/twilight/{p-67e23040.entry.js → p-6f86922a.entry.js} +1 -1
  256. package/dist/twilight/{p-223d7ceb.entry.js → p-721ae2c4.entry.js} +1 -1
  257. package/dist/twilight/{p-cbf547f0.entry.js → p-7288ff02.entry.js} +1 -1
  258. package/dist/twilight/{p-5d06fe77.entry.js → p-768b4a83.entry.js} +1 -1
  259. package/dist/twilight/{p-b80016c8.entry.js → p-77db23d2.entry.js} +1 -1
  260. package/dist/twilight/{p-571b8e00.entry.js → p-780abf03.entry.js} +1 -1
  261. package/dist/twilight/{p-cb855cb3.entry.js → p-7a75c505.entry.js} +1 -1
  262. package/dist/twilight/{p-af121bbf.entry.js → p-83222f33.entry.js} +1 -1
  263. package/dist/twilight/{p-c637b6bb.entry.js → p-84dc489a.entry.js} +1 -1
  264. package/dist/twilight/p-85d1767d.entry.js +4 -0
  265. package/dist/twilight/{p-c0f40eea.entry.js → p-869773d3.entry.js} +1 -1
  266. package/dist/twilight/{p-b0f28806.entry.js → p-89dae763.entry.js} +1 -1
  267. package/dist/twilight/{p-a6a9e398.entry.js → p-9196d137.entry.js} +1 -1
  268. package/dist/twilight/{p-a463d567.entry.js → p-9668a8aa.entry.js} +1 -1
  269. package/dist/twilight/{p-e5de1833.entry.js → p-97b74b76.entry.js} +1 -1
  270. package/dist/twilight/{p-a0d88c4d.entry.js → p-9a6ea758.entry.js} +1 -1
  271. package/dist/twilight/{p-0eadca17.entry.js → p-9ac3d874.entry.js} +1 -1
  272. package/dist/twilight/{p-b3f6b725.entry.js → p-9dca7f59.entry.js} +1 -1
  273. package/dist/twilight/{p-6c777951.entry.js → p-9f8a065c.entry.js} +1 -1
  274. package/dist/twilight/{p-D01LipFK.js → p-BFEfBkEW.js} +1 -1
  275. package/dist/twilight/{p-BZhp8a87.js → p-BPasfwVf.js} +1 -1
  276. package/dist/twilight/{p-CGd7EQZr.js → p-BgFqaLNN.js} +1 -1
  277. package/dist/twilight/{p-BGpAIcg-.js → p-BxhAwisc.js} +1 -1
  278. package/dist/twilight/{p-BHkz1ssL.js → p-CHsBLTlN.js} +1 -1
  279. package/dist/twilight/{p-CBU9I-zy.js → p-D2W2ygY1.js} +1 -1
  280. package/dist/twilight/{p-paiaALkJ.js → p-DNU1AEuR.js} +1 -1
  281. package/dist/twilight/{p-xz8gqXL9.js → p-DVCS8qoq.js} +1 -1
  282. package/dist/twilight/{p-DSgSJMud.js → p-DWcI2hUr.js} +1 -1
  283. package/dist/twilight/{p-D2yBy7Jh.js → p-Dckjjczv.js} +1 -1
  284. package/dist/twilight/{p-Bo1nXenO.js → p-DzHsJ03K.js} +1 -1
  285. package/dist/twilight/{p-453a7bb2.entry.js → p-a2ff9abd.entry.js} +1 -1
  286. package/dist/twilight/{p-4c457ba5.entry.js → p-a756b0a4.entry.js} +1 -1
  287. package/dist/twilight/{p-315ce27b.entry.js → p-a8a9b151.entry.js} +1 -1
  288. package/dist/twilight/{p-a2b53a52.entry.js → p-ad60969e.entry.js} +1 -1
  289. package/dist/twilight/{p-0e1bab4f.entry.js → p-b1d439e7.entry.js} +1 -1
  290. package/dist/twilight/{p-17015f9c.entry.js → p-ba55e58f.entry.js} +1 -1
  291. package/dist/twilight/{p-9a0514dd.entry.js → p-ba5d1170.entry.js} +1 -1
  292. package/dist/twilight/{p-fb56a444.entry.js → p-badfd153.entry.js} +1 -1
  293. package/dist/twilight/{p-07af3286.entry.js → p-bc1725dd.entry.js} +1 -1
  294. package/dist/twilight/{p-255f5d2a.entry.js → p-be077285.entry.js} +1 -1
  295. package/dist/twilight/{p-aadfd70e.entry.js → p-c4c3e16f.entry.js} +1 -1
  296. package/dist/twilight/{p-5c1c520a.entry.js → p-c907509d.entry.js} +1 -1
  297. package/dist/twilight/{p-cfd910a8.entry.js → p-d059046e.entry.js} +1 -1
  298. package/dist/twilight/{p-378d45e2.entry.js → p-dc9b7a8e.entry.js} +1 -1
  299. package/dist/twilight/{p-08771dff.entry.js → p-dcc34752.entry.js} +1 -1
  300. package/dist/twilight/{p-12ccc1ab.entry.js → p-ddbffad3.entry.js} +1 -1
  301. package/dist/twilight/{p-cbc44b3e.entry.js → p-de70e0f6.entry.js} +1 -1
  302. package/dist/twilight/{p-4dedb514.entry.js → p-df72e6a9.entry.js} +1 -1
  303. package/dist/twilight/{p-4d3bcacd.entry.js → p-e2e38f7d.entry.js} +1 -1
  304. package/dist/twilight/{p-1a844fda.entry.js → p-e573c23d.entry.js} +1 -1
  305. package/dist/twilight/{p-d861eea6.entry.js → p-eaf8f509.entry.js} +1 -1
  306. package/dist/twilight/{p-1a1cebfa.entry.js → p-ef26e3be.entry.js} +1 -1
  307. package/dist/twilight/{p-2c7086ec.entry.js → p-f145dc81.entry.js} +1 -1
  308. package/dist/twilight/{p-b7e720e8.entry.js → p-f4f47286.entry.js} +1 -1
  309. package/dist/twilight/{p-e8ffc069.entry.js → p-fc7a1f2f.entry.js} +1 -1
  310. package/dist/twilight/{p-e06a7e19.entry.js → p-fca82074.entry.js} +1 -1
  311. package/dist/twilight/{p-08337b2b.entry.js → p-fe2a4d07.entry.js} +1 -1
  312. package/dist/twilight/twilight.esm.js +1 -1
  313. package/dist/types/components/salla-gifting/salla-gifting.d.ts +10 -0
  314. package/package.json +5 -5
  315. package/dist/twilight/p-5a5057a8.entry.js +0 -4
  316. package/dist/twilight/p-7bd464f3.entry.js +0 -4
@@ -31,7 +31,7 @@ var Alert = `<!-- Generated by IcoMoon.io -->
31
31
  </svg>
32
32
  `;
33
33
 
34
- const sallaGiftingCss = ".s-gifting-steps-wrapper{transition:0.2s cubic-bezier(0.55, 0, 0.1, 1) 0s}.s-gifting-select{background-image:url(\"data:image/svg+xml;utf8,<svg version='1.1' fill='gray' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><title>keyboard_arrow_down</title><path d='M9.875 11.104l6.125 6.125 6.125-6.125 1.875 1.875-8 8-8-8z'></path></svg>\");background-size:24px;background-repeat:no-repeat;background-position:99%;appearance:none}[dir=rtl] .s-gifting-select{background-position:5px}.s-gifting-widget-vertical .s-list-tile-item [slot=title]{display:flex;align-items:center;gap:1.5rem}.s-gifting-widget-vertical .s-list-tile-item-content{width:100%}.s-gifting-modal .s-searchable-dropdown-trigger{border-color:#d1d5db}.s-gifting-modal .s-searchable-dropdown-trigger:hover:not(.s-searchable-dropdown-trigger--disabled){border-color:#d1d5db}.s-gifting-modal .s-searchable-dropdown-trigger--open,.s-gifting-modal .s-searchable-dropdown-trigger:focus{border-color:var(--color-primary, #00897b);box-shadow:0 0 0 1px var(--color-primary, #00897b)}.s-gifting-modal .s-searchable-dropdown-trigger-placeholder{color:#000}";
34
+ const sallaGiftingCss = ".s-gifting-steps-wrapper{transition:height 0.8s cubic-bezier(0.55, 0, 0.1, 1) 0s}.s-gifting-select{background-image:url(\"data:image/svg+xml;utf8,<svg version='1.1' fill='gray' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><title>keyboard_arrow_down</title><path d='M9.875 11.104l6.125 6.125 6.125-6.125 1.875 1.875-8 8-8-8z'></path></svg>\");background-size:24px;background-repeat:no-repeat;background-position:99%;appearance:none}[dir=rtl] .s-gifting-select{background-position:5px}.s-gifting-widget-vertical .s-list-tile-item [slot=title]{display:flex;align-items:center;gap:1.5rem}.s-gifting-widget-vertical .s-list-tile-item-content{width:100%}.s-gifting-modal .s-searchable-dropdown-trigger{border-color:#d1d5db}.s-gifting-modal .s-searchable-dropdown-trigger:hover:not(.s-searchable-dropdown-trigger--disabled){border-color:#d1d5db}.s-gifting-modal .s-searchable-dropdown-trigger--open,.s-gifting-modal .s-searchable-dropdown-trigger:focus{border-color:var(--color-primary, #00897b);box-shadow:0 0 0 1px var(--color-primary, #00897b)}.s-gifting-modal .s-searchable-dropdown-trigger-placeholder{color:#000}.s-gifting-modal .s-gifting-image-section{margin-bottom:1.5rem}.s-gifting-modal .s-gifting-slider{margin-bottom:0.5rem}.s-gifting-modal .s-gifting-image{display:block}.s-gifting-modal .s-gifting-image img{display:block;width:auto;height:100px;object-fit:contain}.s-gifting-modal .s-gifting-image-section+.anime-item .s-gifting-text-title{margin-top:1rem}";
35
35
 
36
36
  const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting extends HTMLElement {
37
37
  constructor() {
@@ -131,6 +131,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
131
131
  this.sectionBtnText = salla.lang.get('blocks.buy_as_gift.send_as_a_gift');
132
132
  this.giftDetails = salla.lang.get('blocks.buy_as_gift.gift_details');
133
133
  this.selectGiftMessage = salla.lang.get('blocks.buy_as_gift.select_gift_message');
134
+ this.giftText = salla.lang.get('blocks.buy_as_gift.gift_text');
134
135
  this.giftCustomText = salla.lang.get('blocks.buy_as_gift.gift_custom_text');
135
136
  this.textId = salla.lang.get('blocks.buy_as_gift.text_id');
136
137
  this.incorrectGiftText = salla.lang.get('blocks.buy_as_gift.incorrect_gift_text');
@@ -200,13 +201,19 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
200
201
  salla.event.dispatch('login::open', { withoutReload: true });
201
202
  return;
202
203
  }
204
+ // Reopen on step 1, but KEEP the user's selections (image / text / custom
205
+ // message / sender+receiver). The modal element is never destroyed, so its
206
+ // state and DOM survive close→reopen without a page refresh — we only reset
207
+ // the step view and clear anime.js's leftover inline styles so the slide
208
+ // doesn't reopen with step 2 painted on top.
209
+ this.resetStepsAnimation();
203
210
  this.currentStep = 1;
204
211
  this.parentClass = 'is-current-step-1';
205
212
  this.step2Animated = false;
206
- this.selectedText = undefined;
207
- this.selectedGiftTextOption = undefined;
208
- this.uploadedImage = undefined;
209
- this.selectedImage = undefined;
213
+ // Drop any stale inline height from the previous session's step (e.g. step 2,
214
+ // shorter for digital products) so reopening to step 1 isn't clipped. Cleared
215
+ // while the modal is hidden, so the later set won't animate.
216
+ this.stepsWrapper?.style.removeProperty('height');
210
217
  await this.modal.open();
211
218
  // Determine the appropriate method to call based on the `physicalProducts` flag
212
219
  const giftDetailsMethod = this.productId ? () => salla.product.getGiftProductDetails(this.productId) : () => salla.cart.getGiftCartDetails();
@@ -238,6 +245,31 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
238
245
  skipStep1() {
239
246
  return !!this.gift && !this.gift.show_images && !this.gift.show_texts;
240
247
  }
248
+ /**
249
+ * anime.js writes inline transform/opacity onto the step containers and their
250
+ * `.anime-item` children while transitioning between steps. The modal is only
251
+ * hidden on close (the component is never destroyed), and Stencil never set
252
+ * those inline styles so it won't clear them on re-render. Without this reset,
253
+ * reopening keeps step 2 painted on top (leftover opacity/translate) while the
254
+ * markup is back on step 1 — clicks then fall through to step 1's uploader.
255
+ */
256
+ resetStepsAnimation() {
257
+ // `.anime-item` children carry no JSX-managed style, so clearing them fully is safe.
258
+ [this.step1Elems, this.step2Elems].forEach(stepEl => {
259
+ stepEl?.querySelectorAll('.anime-item')
260
+ .forEach(item => item.removeAttribute('style'));
261
+ });
262
+ // step 1 container can carry anime leftovers (goToStep1 animates it) and has
263
+ // no JSX-managed style, so a full clear is safe.
264
+ this.step1Elems?.removeAttribute('style');
265
+ // step 2 container is animated by goToStep2 too, but in the skip-step-1 case
266
+ // its style is JSX-managed. Only strip the anime-applied props so we don't
267
+ // fight Stencil's vnode-level style diffing (which would not restore it).
268
+ if (this.step2Elems && !this.skipStep1()) {
269
+ this.step2Elems.style.removeProperty('opacity');
270
+ this.step2Elems.style.removeProperty('transform');
271
+ }
272
+ }
241
273
  /**
242
274
  *
243
275
  * Hide / close the gifting modal window
@@ -274,18 +306,23 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
274
306
  this.textSelect?.classList.remove('s-form-has-error');
275
307
  let dataID = event.target.children[event.target.selectedIndex].getAttribute('data-id');
276
308
  let customID = dataID == "custom";
309
+ // Only the custom-text textarea changes the layout; resize the wrapper just
310
+ // when it actually appears/disappears so picking or clearing a normal option
311
+ // doesn't jump the modal height.
312
+ const customVisibilityChanged = this.showGiftText !== customID;
277
313
  this.showGiftText = customID;
278
314
  if (dataID) {
279
315
  this.selectedGiftTextOption = dataID;
280
316
  customID ? this.selectedText = undefined : this.selectedText = event.target.value;
281
- this.setWrapperHeight(1, 150, 5);
282
317
  }
283
318
  else {
284
319
  // empty textarea value
285
320
  this.textArea.value = '';
286
321
  this.selectedText = undefined;
287
322
  this.selectedGiftTextOption = undefined;
288
- this.setWrapperHeight(1, 150, -15);
323
+ }
324
+ if (customVisibilityChanged) {
325
+ this.setWrapperHeight(1, 150, 5);
289
326
  }
290
327
  }
291
328
  /**
@@ -298,7 +335,17 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
298
335
  if (withValidation && !this.validateStep1()) {
299
336
  return;
300
337
  }
301
- this.setWrapperHeight(2, 600, 0);
338
+ // Pin the wrapper to step 1's current height as an explicit px value first.
339
+ // The wrapper is `auto` on open, and CSS can't transition from `auto` — it
340
+ // would snap (flash straight to the big size). With a px starting point the
341
+ // grow to step 2 animates smoothly, in sync with the slide.
342
+ if (this.stepsWrapper && this.step1Elems) {
343
+ this.stepsWrapper.style.height = `${this.step1Elems.offsetHeight}px`;
344
+ }
345
+ // Step 2 is absolutely positioned, so its height is measurable even while it's
346
+ // translated off-screen. Grow right away (small delay only to flush the pending
347
+ // re-render and let the px start-height paint) so the background expands in sync.
348
+ this.setWrapperHeight(2, 50, 0);
302
349
  let stepNextAnime = new anime.timeline();
303
350
  stepNextAnime.add({
304
351
  targets: this.step1Elems.querySelectorAll(`#${this.hostId} .anime-item`),
@@ -629,8 +676,12 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
629
676
  this.setWrapperHeight(2, 150, 0);
630
677
  return;
631
678
  }
679
+ // A preset option from the list sends its id as `text_id`; the custom option
680
+ // sends the typed message as `text`.
681
+ const isCustomText = this.selectedGiftTextOption === 'custom';
632
682
  const giftPayload = {
633
- text: this.selectedText,
683
+ text: isCustomText ? this.selectedText : undefined,
684
+ text_id: !isCustomText && this.selectedGiftTextOption ? Number(this.selectedGiftTextOption) : undefined,
634
685
  sender_name: this.senderName,
635
686
  quantity: this.quantity,
636
687
  deliver_at: this.showCalendar ? this.deliveryDate : null,
@@ -703,18 +754,19 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
703
754
  }
704
755
  render() {
705
756
  return [
706
- h("div", { key: '7872fb48bbc18682b2dffec6e45469ed1f348cd2' }, h("salla-list-tile", { key: 'c1885fdb40f33d203b857de13644f43964570f71', class: this.generateClass() }, h("div", { key: '77bd3860e23af43f088ee96b74901e2048baaafc', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: '72e2e4d99b227b48bdd1f13866c3eea874139096' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: '63c219936015b9d5ee3a8102dbbce748ce0e62c5', slot: "subtitle" }, h("div", { key: '4f31a0c50120697a9b96a2b77411d74f4efc5e66' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: '47f0c995ad0f921a2fdca1c8e5f0e25d897e1fb0', slot: "action" }, h("salla-button", { key: '40145bed2bc9464279d1ae16a358b5a30d255ffd', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: 'd5620606453e0af1a5186f84fa12e1f4957a9747', name: "widget-btn-content" }, h("div", { key: '038ff62e726de1800907f8a8c136a434c7c6d036', class: "s-gifting-widget-action-content" }, h("span", { key: '4e785b4e17db238b6bfeb7646709006c9a4502bb', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: '5965ed90aeaf684db53d3241a9287de290f10b4a' }, this.sectionBtnText)))))), h("salla-modal", { key: 'b150b2b29f751fa4db3bfff17c4e617eb7b6db5d', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '57167453738915bb235da0bc44498f66daaa9454', slot: "loading" }, h("div", { key: 'fd0eab2fd0d46a76dcd00511ec05366862d86d2c', class: "s-gifting-skeleton" }, h("div", { key: '6d2bb659ca06a2cadf203d83e4f5966a78bc5f01', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: 'cb47841822cf9fed5b5c20664617ac52bad135ce', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: 'e9823fc0c00a326b495e4e7e6ff6567f03d1423e', class: "s-gifting-modal-title" }, h("div", { key: '584d50ba2c1bec0fb8e530418be60fc8a0b9c2d8', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '493b5e6f9fa7a1d45fa52a6f3f4602e5737b9632', height: '15px', width: '150px' })))), h("div", { key: 'd33d22031f8cd6084a1c177ada6657a89ff45ad8', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '792e91cdcd7ede6896653fa147124cfcdc649a9f', height: '10px', width: '150px' }), h("salla-skeleton", { key: '88ca984320729528e2a3e7cab350a96202a81da6', height: '230px' }), h("salla-skeleton", { key: 'fad81ac6972eaa37766cb489d175516249afb5e6', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'a4e82c29d7940b7af14af4251cc6f97e811be99a', height: '30px' }), h("salla-skeleton", { key: '6339a34ffc0deb925f69b5b0a0ed540d986e0a0b', height: '40px' })))), h("slot", { key: '8fd7cad6fbc2d73fb770ae75301f327906817c6f', name: "header" }), !!this.hasError ?
757
+ h("div", { key: 'b26068c5c6b0c40814e1cb67208afa352b1d913c' }, h("salla-list-tile", { key: '22189813371c56f1b66334d826c342d30dade34f', class: this.generateClass() }, h("div", { key: '5f9c597b87ab39d591144c4943feba0c775d645b', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: '4341ea66f7d9a547d919be173476908c5d0f018a' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'f2eb13ddcd7810da368ea35e161addbef1af5ce4', slot: "subtitle" }, h("div", { key: '1b69dfbce6b7b7d94bbee4e325d8f65c2b34dcce' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: '6a8f526bcbb0a659e028155ce08aec2538e4fff2', slot: "action" }, h("salla-button", { key: '5cf31da452a173a487c4ea9dbd1356fd10d3b800', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '4aef407fd0a79b0172f0803a7134bd366ac6b034', name: "widget-btn-content" }, h("div", { key: '333273064da0b5071a7a7433ec7626ef00bd9e1e', class: "s-gifting-widget-action-content" }, h("span", { key: '913d82d641ed54218f20a76acefca855d1324427', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: 'acc39208f212714bef2c56bd9b5e5c482e3a7122' }, this.sectionBtnText)))))), h("salla-modal", { key: '9bceb2e1a4bb4c9880b220d679a0e295ba1ae732', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '0ea0746b7c11c98c8a6d9535771afb3a4681c1c1', slot: "loading" }, h("div", { key: '5dcfb9acd127f3cf786b626a1be7e9f27ff7ac31', class: "s-gifting-skeleton" }, h("div", { key: 'd5205c53714ca60277a82abce7fb12f0a01dd38d', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: 'fde7ede398b9edb638ade25677915747855584f2', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '61bb2c36958080e37f83b9bc27ce05db5abb3230', class: "s-gifting-modal-title" }, h("div", { key: '10125cb25732100787b118f34a4e323aa215185c', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '2ee525ae05fb6540bc0fdcaa846b14e4a476a297', height: '15px', width: '150px' })))), h("div", { key: '8e4544f3bd4a81c961259de27ebf255a998a5e4f', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '237f0961f0748aeef3c5b77819234b3215f794e2', height: '10px', width: '150px' }), h("salla-skeleton", { key: '19510cb426335b9733ef4a34dc7b8e5bffe0c23c', height: '230px' }), h("salla-skeleton", { key: '78defffee0c94e9323ede7e12660ae234d84d019', height: '10px', width: '150px' }), h("salla-skeleton", { key: '21b800dff2bec3c1caea94115a37153e406eef11', height: '30px' }), h("salla-skeleton", { key: 'd8a08143339c184d05758d1497e22ad23cdac4f6', height: '40px' })))), h("slot", { key: '9ef7679d02250428236347b5bb4a080b04244a53', name: "header" }), !!this.hasError ?
707
758
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
708
759
  :
709
760
  [
710
761
  h("div", { class: "s-gifting-modal-header" }, h("span", { class: "s-gifting-modal-icon" }, h("span", { innerHTML: SIGiftSharing })), h("h2", { class: "s-gifting-modal-title" }, h("div", { class: "s-gifting-modal-badge-wrapper" }, !this.skipStep1() && h("div", { class: "s-gifting-modal-badge" }, h("span", null, h("span", null, this.currentStep), "/2")), h("span", null, this.giftDetails)))),
711
- h("div", { class: "s-gifting-steps-wrapper " + this.parentClass, ref: el => this.stepsWrapper = el }, !this.skipStep1() && h("div", { class: "s-gifting-step-one gift-step-1", ref: el => this.step1Elems = el }, h("div", { class: "s-gifting-modal-uploader-title anime-item" }, this.selectImageForYourGift), this.gift && this.gift.show_images &&
712
- h("div", null, h("div", { class: `s-gifting-modal-uploader anime-item ${this.disableClass}`, ref: el => this.uploader = el }, h("span", { class: "s-gifting-remove-preview pointer-events-auto", onClick: () => this.removePreview(), innerHTML: Cancel }), this.selectImageOrUpload && this.gift && h("salla-file-upload", { "instant-upload": true, name: "image_url", url: salla.url.api(salla.product.api.getUrl('giftImage')), onUploaded: event => this.handleUploadImage(event.detail), labelIdle: this.getFilepondPlaceholder(), onRemoved: () => this.handleRemoveImage() })), h("div", { class: "anime-item" }, !this.uploadedImage && !!this.gift && !!this.gift.gift_images && this.gift.gift_images.length > 0 ?
762
+ h("div", { class: "s-gifting-steps-wrapper " + this.parentClass, ref: el => this.stepsWrapper = el }, !this.skipStep1() && h("div", { class: "s-gifting-step-one gift-step-1", ref: el => this.step1Elems = el }, this.gift && this.gift.show_images &&
763
+ h("div", { class: "s-gifting-modal-uploader-title anime-item" }, this.selectImageForYourGift), this.gift && this.gift.show_images &&
764
+ h("div", { class: "s-gifting-image-section" }, h("div", { class: `s-gifting-modal-uploader anime-item ${this.disableClass}`, ref: el => this.uploader = el }, h("span", { class: "s-gifting-remove-preview pointer-events-auto", onClick: () => this.removePreview(), innerHTML: Cancel }), this.selectImageOrUpload && this.gift && h("salla-file-upload", { "instant-upload": true, name: "image_url", url: salla.url.api(salla.product.api.getUrl('giftImage')), onUploaded: event => this.handleUploadImage(event.detail), labelIdle: this.getFilepondPlaceholder(), onRemoved: () => this.handleRemoveImage() })), h("div", { class: "anime-item" }, !this.uploadedImage && !!this.gift && !!this.gift.gift_images && this.gift.gift_images.length > 0 ?
713
765
  h("salla-slider", { id: "gifting-slider", loop: false, "controls-outer": true, class: "s-gifting-slider", type: "carousel" }, h("div", { slot: "items" }, this.gift && this.gift.gift_images ?
714
- this.gift?.gift_images.map((item) => h("a", { class: "s-gifting-clickable s-gifting-image", onClick: () => this.setPreview(item) }, h("img", { style: { "width": "120px" }, src: item.url, alt: `${item.id}` }))) : ''))
766
+ this.gift?.gift_images.map((item) => h("a", { class: "s-gifting-clickable s-gifting-image", onClick: () => this.setPreview(item) }, h("img", { src: item.url, alt: `${item.id}` }))) : ''))
715
767
  : "")), this.gift && this.gift.show_texts ?
716
- h("div", { class: "anime-item" }, h("div", { class: "s-form-group s-gifting-selectText", ref: el => this.textSelect = el }, h("select", { id: "gift-text-selection", name: "gift-text-selection", class: "s-form-control s-gifting-select", onChange: e => this.toggleGiftText(e) }, h("option", { "data-id": null, selected: true }, this.selectGiftMessage), this.gift && this.gift.gift_texts ?
717
- this.gift?.gift_texts.map((txt) => h("option", { "data-id": txt.id, value: txt.text, key: txt.id }, txt.text)) : '', this.gift && this.gift.show_custom_text ? h("option", { "data-id": "custom" }, this.giftCustomText) : null)), h("div", { class: this.showGiftText && this.gift && this.gift.show_custom_text ? "s-form-group s-gifting-textarea shown" : "s-form-group s-gifting-textarea hide", ref: (el) => this.customTextArea = el }, h("label", { htmlFor: "gift-custom-text", class: "s-form-label" }, this.giftCustomText), h("div", { class: "mt-1" }, h("textarea", { onInput: (event) => this.handleTextAreaChange(event), rows: 4, ref: (el) => this.textArea = el, name: "gift-custom-text", id: "gift-custom-text", class: "s-form-control" })))) : null, h("div", { class: "anime-item" }, h("salla-button", { color: "primary", width: "wide", onClick: () => this.goToStep2(!!this.gift?.show_texts) }, h("span", null, this.nextStep)))), h("div", { class: "s-gifting-step-two gift-step-2", style: this.skipStep1() ? { opacity: '1', transform: 'translateX(0)', position: 'relative' } : undefined, ref: el => this.step2Elems = el }, h("div", { class: this.step2ItemClass(this.errors?.['sender_name'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { htmlFor: "sender_name", class: "s-form-label" }, this.senderNameLabel), h("input", { type: "text", class: "s-form-control", name: "sender_name", id: "sender_name", value: this.senderName, onInput: (event) => this.handleSenderName(event), placeholder: "" }), this.errors && this.errors['sender_name'] ?
768
+ h("div", { class: "anime-item" }, h("div", { class: "s-gifting-modal-uploader-title s-gifting-text-title" }, this.giftText), h("div", { class: "s-form-group s-gifting-selectText", ref: el => this.textSelect = el }, h("select", { id: "gift-text-selection", name: "gift-text-selection", class: "s-form-control s-gifting-select", onChange: e => this.toggleGiftText(e) }, h("option", { "data-id": null, selected: !this.selectedGiftTextOption }, this.selectGiftMessage), this.gift && this.gift.gift_texts ?
769
+ this.gift?.gift_texts.map((txt) => h("option", { "data-id": txt.id, value: txt.text, key: txt.id, selected: String(this.selectedGiftTextOption) === String(txt.id) }, txt.text)) : '', this.gift && this.gift.show_custom_text ? h("option", { "data-id": "custom", selected: this.selectedGiftTextOption === 'custom' }, this.giftCustomText) : null)), h("div", { class: this.showGiftText && this.gift && this.gift.show_custom_text ? "s-form-group s-gifting-textarea shown" : "s-form-group s-gifting-textarea hide", ref: (el) => this.customTextArea = el }, h("label", { htmlFor: "gift-custom-text", class: "s-form-label" }, this.giftCustomText), h("div", { class: "mt-1" }, h("textarea", { onInput: (event) => this.handleTextAreaChange(event), rows: 4, ref: (el) => this.textArea = el, name: "gift-custom-text", id: "gift-custom-text", class: "s-form-control" })))) : null, h("div", { class: "anime-item" }, h("salla-button", { color: "primary", width: "wide", onClick: () => this.goToStep2(!!this.gift?.show_texts) }, h("span", null, this.nextStep)))), h("div", { class: "s-gifting-step-two gift-step-2", style: this.skipStep1() ? { opacity: '1', transform: 'translateX(0)', position: 'relative' } : undefined, ref: el => this.step2Elems = el }, h("div", { class: this.step2ItemClass(this.errors?.['sender_name'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { htmlFor: "sender_name", class: "s-form-label" }, this.senderNameLabel), h("input", { type: "text", class: "s-form-control", name: "sender_name", id: "sender_name", value: this.senderName, onInput: (event) => this.handleSenderName(event), placeholder: "" }), this.errors && this.errors['sender_name'] ?
718
770
  h("span", { class: "s-gifting-error" }, this.errors['sender_name']) : ''), h("div", { class: this.step2ItemClass(this.errors?.['receiver.name'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { htmlFor: "receiver_name", class: "s-form-label" }, this.receiverNameFieldLabel), h("input", { type: "text", class: "s-form-control", name: "receiver_name", id: "receiver_name", value: "", onInput: (event) => this.handleReceiverName(event), placeholder: "" }), this.errors && this.errors['receiver.name'] ?
719
771
  h("span", { class: "s-gifting-error" }, this.errors['receiver.name']) : ''), h("div", { class: this.step2ItemClass(this.errors?.['receiver.mobile'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label" }, this.receiverMobileFieldLabel), h("salla-tel-input", { class: "s-gifting-tel-input", phone: this.receiverMobile, countryCode: this.receiverCountryCode, onPhoneEntered: (e) => this.handlePhoneInputChange(e) }), this.errors && this.errors['receiver.mobile'] ?
720
772
  h("span", { class: "s-gifting-error" }, this.errors['receiver.mobile']) : ''), this.isPhysical() &&
@@ -725,7 +777,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
725
777
  h("div", { class: this.step2ItemClass(this.errors?.['receiver.city_id'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label", htmlFor: `${this.hostId}-city` }, this.receiverCityFieldLabel), h("salla-searchable-dropdown", { placeholder: this.selectCity, items: this.displayedCities, selectedItem: this.selectedCity, loading: this.loadingCities, searching: this.searchingCities, disabled: this.loadingCities || (this.isKSA && !this.selectedRegionId), required: true, inputId: `${this.hostId}-city`, searchQuery: this.citySearchQuery, clientSearch: !this.enableCityAjaxSearch, dropUp: true, keepParentScroll: true, onItemSelected: (e) => this.handleCitySelected(e.detail), onSearchInput: (e) => this.handleCitySearch(e.detail), onDropdownClosed: () => this.handleCityDropdownClosed() }), this.errors && this.errors['receiver.city_id'] ?
726
778
  h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
727
779
  h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo)), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, !this.skipStep1() && h("a", { href: "#!", innerHTML: IconArrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
728
- ], h("slot", { key: 'bdc014a95dab59f9f1e22f71741b5ba5f2ea3ee8', name: "footer" })))
780
+ ], h("slot", { key: 'e40029ee1e6fa463711fd088ba05c0edda5dd683', name: "footer" })))
729
781
  ];
730
782
  }
731
783
  static get style() { return sallaGiftingCss; }
@@ -744,6 +796,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
744
796
  "selectImageForYourGift": [32],
745
797
  "selectImageOrUpload": [32],
746
798
  "selectGiftMessage": [32],
799
+ "giftText": [32],
747
800
  "giftCustomText": [32],
748
801
  "textId": [32],
749
802
  "incorrectGiftText": [32],
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-D2yBy7Jh.js';
4
+ import { d as getDefaultExportFromCjs } from './index-Dckjjczv.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-D2yBy7Jh.js';
4
+ import { d as getDefaultExportFromCjs } from './index-Dckjjczv.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-D2yBy7Jh.js';
4
+ import { d as getDefaultExportFromCjs } from './index-Dckjjczv.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-D2yBy7Jh.js';
4
+ import { d as getDefaultExportFromCjs } from './index-Dckjjczv.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-D2yBy7Jh.js';
4
+ import { d as getDefaultExportFromCjs } from './index-Dckjjczv.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-D2yBy7Jh.js';
4
+ import { d as getDefaultExportFromCjs } from './index-Dckjjczv.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-D2yBy7Jh.js';
4
+ import { d as getDefaultExportFromCjs } from './index-Dckjjczv.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 { h } from './index-D2yBy7Jh.js';
4
+ import { h } from './index-Dckjjczv.js';
5
5
 
6
6
  function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
7
7
  return number < multipleOf ? number : number - (number % multipleOf);