@salla.sa/twilight-components 2.14.469 → 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 (320) hide show
  1. package/dist/cjs/{filepond-CG7dNZgq.js → filepond-jdX95qxM.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-B1zrjwgr.js → filepond-plugin-file-poster-DC9ozntr.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-BqZtoWbe.js → filepond-plugin-file-validate-size-DxUUyj2Z.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-BGmGKK9L.js → filepond-plugin-file-validate-type-DB4YCfw-.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CYeh6qmG.js → filepond-plugin-image-edit-QlnXOcNf.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BEVpo-ZQ.js → filepond-plugin-image-exif-orientation-D6HJ47N2.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-C7MMEZFE.js → filepond-plugin-image-preview-DCaj9jNI.js} +1 -1
  8. package/dist/cjs/{functions-CnBVKKGk.js → functions-C_kzehHT.js} +1 -1
  9. package/dist/cjs/{index-inmL4H71.js → index-CmPl0fIy.js} +2 -2
  10. package/dist/cjs/{index-BNOCK3IN.js → index-SIy6bIWx.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  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 +57 -24
  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-DvLhM2Sx.js → tracked-promise-D-gQXgPZ.js} +1 -1
  102. package/dist/cjs/twilight.cjs.js +1 -1
  103. package/dist/cjs/{vanilla-picker-DtuN6WGq.js → vanilla-picker-CZ_8m6i_.js} +1 -1
  104. package/dist/collection/components/salla-gifting/salla-gifting.css +1 -1
  105. package/dist/collection/components/salla-gifting/salla-gifting.js +55 -22
  106. package/dist/components/index.js +2 -2
  107. package/dist/components/salla-gifting.js +56 -23
  108. package/dist/esm/{filepond-D4dDq1wa.js → filepond-DLJR7kqO.js} +1 -1
  109. package/dist/esm/{filepond-plugin-file-poster-CcnsMPSH.js → filepond-plugin-file-poster-BPPxfj_a.js} +1 -1
  110. package/dist/esm/{filepond-plugin-file-validate-size-qgEgRYkk.js → filepond-plugin-file-validate-size-CCqZAz2o.js} +1 -1
  111. package/dist/esm/{filepond-plugin-file-validate-type-BuFGnco8.js → filepond-plugin-file-validate-type-YEjyqpU3.js} +1 -1
  112. package/dist/esm/{filepond-plugin-image-edit-kS2Sie2d.js → filepond-plugin-image-edit-tiyoM7iJ.js} +1 -1
  113. package/dist/esm/{filepond-plugin-image-exif-orientation-Bjoh_of2.js → filepond-plugin-image-exif-orientation-CESSG4q3.js} +1 -1
  114. package/dist/esm/{filepond-plugin-image-preview-b_VEHHGf.js → filepond-plugin-image-preview-CTrGLHaX.js} +1 -1
  115. package/dist/esm/{functions-ISZQDw0y.js → functions-iGPmc3ui.js} +1 -1
  116. package/dist/esm/{index-Cqh-ta1v.js → index-Dckjjczv.js} +2 -2
  117. package/dist/esm/{index-CqC4wD_f.js → index-pj-XyI3U.js} +1 -1
  118. package/dist/esm/loader.js +2 -2
  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 +57 -24
  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-CH_UyK-l.js → tracked-promise-CfOFv_ZQ.js} +1 -1
  209. package/dist/esm/twilight.js +2 -2
  210. package/dist/esm/{vanilla-picker-PE31tu9y.js → vanilla-picker-BwAhzkb2.js} +1 -1
  211. package/dist/twilight/{p-m2p-QAbu.js → p--Jfvyk1f.js} +1 -1
  212. package/dist/twilight/{p-3b198162.entry.js → p-0052df8e.entry.js} +1 -1
  213. package/dist/twilight/{p-71f2ba66.entry.js → p-017500f8.entry.js} +1 -1
  214. package/dist/twilight/{p-40eb9556.entry.js → p-052922a0.entry.js} +1 -1
  215. package/dist/twilight/{p-8bcc3b86.entry.js → p-05ffde56.entry.js} +1 -1
  216. package/dist/twilight/{p-7afe6e1a.entry.js → p-092318cc.entry.js} +1 -1
  217. package/dist/twilight/p-0a8fdddc.entry.js +4 -0
  218. package/dist/twilight/{p-93ec294d.entry.js → p-0bf6b9ad.entry.js} +1 -1
  219. package/dist/twilight/{p-0cca1b63.entry.js → p-0fa958a8.entry.js} +1 -1
  220. package/dist/twilight/{p-6590acee.entry.js → p-193f4672.entry.js} +1 -1
  221. package/dist/twilight/{p-8db52fe9.entry.js → p-1da95f6f.entry.js} +1 -1
  222. package/dist/twilight/{p-e06e37c1.entry.js → p-1eadcac5.entry.js} +1 -1
  223. package/dist/twilight/{p-196fad8d.entry.js → p-1fa5c385.entry.js} +1 -1
  224. package/dist/twilight/{p-559bdcca.entry.js → p-21e43f89.entry.js} +1 -1
  225. package/dist/twilight/{p-49181c4a.entry.js → p-294a3248.entry.js} +1 -1
  226. package/dist/twilight/{p-06c06719.entry.js → p-2b2af618.entry.js} +1 -1
  227. package/dist/twilight/{p-219b14c4.entry.js → p-30fe7a02.entry.js} +1 -1
  228. package/dist/twilight/{p-74e0d0c2.entry.js → p-3100186f.entry.js} +1 -1
  229. package/dist/twilight/{p-d23eeb0c.entry.js → p-31fca96b.entry.js} +1 -1
  230. package/dist/twilight/{p-badf4c9d.entry.js → p-37299c40.entry.js} +1 -1
  231. package/dist/twilight/{p-4c370853.entry.js → p-38b5829a.entry.js} +1 -1
  232. package/dist/twilight/{p-77d2312a.entry.js → p-3995c76e.entry.js} +1 -1
  233. package/dist/twilight/{p-06372aeb.entry.js → p-3d65f310.entry.js} +1 -1
  234. package/dist/twilight/{p-5334222c.entry.js → p-45a786cd.entry.js} +1 -1
  235. package/dist/twilight/{p-732bd9fb.entry.js → p-463cf5ea.entry.js} +1 -1
  236. package/dist/twilight/{p-2ba603bc.entry.js → p-46b75509.entry.js} +1 -1
  237. package/dist/twilight/p-476463ea.entry.js +4 -0
  238. package/dist/twilight/{p-681f8874.entry.js → p-4d2f0573.entry.js} +1 -1
  239. package/dist/twilight/{p-e265d626.entry.js → p-51b4ab80.entry.js} +1 -1
  240. package/dist/twilight/{p-054c9462.entry.js → p-56f4d005.entry.js} +1 -1
  241. package/dist/twilight/{p-d823cbcd.entry.js → p-58bcae28.entry.js} +1 -1
  242. package/dist/twilight/{p-227d11a0.entry.js → p-5d19859e.entry.js} +1 -1
  243. package/dist/twilight/{p-1415eb5e.entry.js → p-5f989a35.entry.js} +1 -1
  244. package/dist/twilight/{p-6e723d46.entry.js → p-61bcbf9a.entry.js} +1 -1
  245. package/dist/twilight/{p-d0c8435f.entry.js → p-623b0c48.entry.js} +1 -1
  246. package/dist/twilight/{p-61ad2660.entry.js → p-63f20aa0.entry.js} +1 -1
  247. package/dist/twilight/{p-ccd8c960.entry.js → p-6543c5eb.entry.js} +1 -1
  248. package/dist/twilight/{p-dc8555bf.entry.js → p-66d2b9e3.entry.js} +1 -1
  249. package/dist/twilight/{p-9785f314.entry.js → p-681a053f.entry.js} +1 -1
  250. package/dist/twilight/{p-73d9e4c8.entry.js → p-69e7eb15.entry.js} +1 -1
  251. package/dist/twilight/{p-16c64a38.entry.js → p-6ce0ab6e.entry.js} +1 -1
  252. package/dist/twilight/{p-7e185acf.entry.js → p-6e2c05e8.entry.js} +1 -1
  253. package/dist/twilight/{p-17920aa7.entry.js → p-6ee5c24d.entry.js} +1 -1
  254. package/dist/twilight/{p-5d364fc2.entry.js → p-6f63f391.entry.js} +1 -1
  255. package/dist/twilight/{p-a85d80b5.entry.js → p-6f86922a.entry.js} +1 -1
  256. package/dist/twilight/{p-79c20964.entry.js → p-721ae2c4.entry.js} +1 -1
  257. package/dist/twilight/{p-a918b812.entry.js → p-7288ff02.entry.js} +1 -1
  258. package/dist/twilight/{p-d63f2cbd.entry.js → p-768b4a83.entry.js} +1 -1
  259. package/dist/twilight/{p-14a3277b.entry.js → p-77db23d2.entry.js} +1 -1
  260. package/dist/twilight/{p-4b20872a.entry.js → p-780abf03.entry.js} +1 -1
  261. package/dist/twilight/{p-19fe2b27.entry.js → p-7a75c505.entry.js} +1 -1
  262. package/dist/twilight/{p-6b6f9822.entry.js → p-83222f33.entry.js} +1 -1
  263. package/dist/twilight/p-84dc489a.entry.js +4 -0
  264. package/dist/twilight/p-85d1767d.entry.js +4 -0
  265. package/dist/twilight/{p-78ff445c.entry.js → p-869773d3.entry.js} +1 -1
  266. package/dist/twilight/{p-f64168cc.entry.js → p-89dae763.entry.js} +1 -1
  267. package/dist/twilight/{p-aec0a2df.entry.js → p-9196d137.entry.js} +1 -1
  268. package/dist/twilight/p-9668a8aa.entry.js +4 -0
  269. package/dist/twilight/{p-e0671ff1.entry.js → p-97b74b76.entry.js} +1 -1
  270. package/dist/twilight/{p-c6be8afd.entry.js → p-9a6ea758.entry.js} +1 -1
  271. package/dist/twilight/{p-51c30ec2.entry.js → p-9ac3d874.entry.js} +1 -1
  272. package/dist/twilight/{p-f67639df.entry.js → p-9dca7f59.entry.js} +1 -1
  273. package/dist/twilight/{p-fd180bd3.entry.js → p-9f8a065c.entry.js} +1 -1
  274. package/dist/twilight/{p-DyQ5MH6F.js → p-BFEfBkEW.js} +1 -1
  275. package/dist/twilight/{p-dKdk2xpB.js → p-BPasfwVf.js} +1 -1
  276. package/dist/twilight/{p-J_27I63T.js → p-BgFqaLNN.js} +1 -1
  277. package/dist/twilight/{p-CUfwD9kr.js → p-BxhAwisc.js} +1 -1
  278. package/dist/twilight/{p-DZ18vMT2.js → p-CHsBLTlN.js} +1 -1
  279. package/dist/twilight/{p-C3kw3FEZ.js → p-D2W2ygY1.js} +1 -1
  280. package/dist/twilight/{p-B0uENqSF.js → p-DNU1AEuR.js} +1 -1
  281. package/dist/twilight/{p-yyvPGK6r.js → p-DVCS8qoq.js} +2 -2
  282. package/dist/twilight/{p-5fxCpxw5.js → p-DWcI2hUr.js} +1 -1
  283. package/dist/twilight/{p-Cqh-ta1v.js → p-Dckjjczv.js} +1 -1
  284. package/dist/twilight/p-DzHsJ03K.js +4 -0
  285. package/dist/twilight/{p-31bd852c.entry.js → p-a2ff9abd.entry.js} +1 -1
  286. package/dist/twilight/{p-d6b6a8ad.entry.js → p-a756b0a4.entry.js} +1 -1
  287. package/dist/twilight/{p-16b64bb5.entry.js → p-a8a9b151.entry.js} +1 -1
  288. package/dist/twilight/{p-8b538bd7.entry.js → p-ad60969e.entry.js} +1 -1
  289. package/dist/twilight/{p-38a791cb.entry.js → p-b1d439e7.entry.js} +1 -1
  290. package/dist/twilight/{p-b6c0aa79.entry.js → p-ba55e58f.entry.js} +1 -1
  291. package/dist/twilight/{p-32a7cb85.entry.js → p-ba5d1170.entry.js} +1 -1
  292. package/dist/twilight/{p-cee7a8ad.entry.js → p-badfd153.entry.js} +1 -1
  293. package/dist/twilight/{p-f0e96875.entry.js → p-bc1725dd.entry.js} +1 -1
  294. package/dist/twilight/{p-9a3f27e9.entry.js → p-be077285.entry.js} +1 -1
  295. package/dist/twilight/{p-b7727021.entry.js → p-c4c3e16f.entry.js} +1 -1
  296. package/dist/twilight/{p-b16d8b19.entry.js → p-c907509d.entry.js} +1 -1
  297. package/dist/twilight/{p-1c0f9fd9.entry.js → p-d059046e.entry.js} +1 -1
  298. package/dist/twilight/{p-4a81a708.entry.js → p-dc9b7a8e.entry.js} +1 -1
  299. package/dist/twilight/{p-798fb3c7.entry.js → p-dcc34752.entry.js} +1 -1
  300. package/dist/twilight/{p-15b3f969.entry.js → p-ddbffad3.entry.js} +1 -1
  301. package/dist/twilight/{p-6d23fd92.entry.js → p-de70e0f6.entry.js} +1 -1
  302. package/dist/twilight/{p-3e5a57cc.entry.js → p-df72e6a9.entry.js} +1 -1
  303. package/dist/twilight/{p-3d517178.entry.js → p-e2e38f7d.entry.js} +1 -1
  304. package/dist/twilight/{p-1db8b515.entry.js → p-e573c23d.entry.js} +1 -1
  305. package/dist/twilight/{p-5701244a.entry.js → p-eaf8f509.entry.js} +1 -1
  306. package/dist/twilight/{p-36884c05.entry.js → p-ef26e3be.entry.js} +1 -1
  307. package/dist/twilight/{p-dca3b67e.entry.js → p-f145dc81.entry.js} +1 -1
  308. package/dist/twilight/{p-32d5d279.entry.js → p-f4f47286.entry.js} +1 -1
  309. package/dist/twilight/{p-0c7efc0b.entry.js → p-fc7a1f2f.entry.js} +1 -1
  310. package/dist/twilight/{p-4ee20a54.entry.js → p-fca82074.entry.js} +1 -1
  311. package/dist/twilight/{p-b295c1f1.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 +9 -0
  314. package/package.json +5 -5
  315. package/dist/twilight/p-293a6d6b.entry.js +0 -4
  316. package/dist/twilight/p-2dbb3b49.entry.js +0 -4
  317. package/dist/twilight/p-7FtjQghq.js +0 -4
  318. package/dist/twilight/p-ce0410d5.entry.js +0 -4
  319. package/dist/twilight/p-d8f22e4b.entry.js +0 -4
  320. package/dist/twilight/p-dbdbb882.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}.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}";
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() {
@@ -201,26 +201,25 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
201
201
  salla.event.dispatch('login::open', { withoutReload: true });
202
202
  return;
203
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();
204
210
  this.currentStep = 1;
205
211
  this.parentClass = 'is-current-step-1';
206
212
  this.step2Animated = false;
207
- this.selectedText = undefined;
208
- this.selectedGiftTextOption = undefined;
209
- this.uploadedImage = undefined;
210
- 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');
211
217
  await this.modal.open();
212
218
  // Determine the appropriate method to call based on the `physicalProducts` flag
213
219
  const giftDetailsMethod = this.productId ? () => salla.product.getGiftProductDetails(this.productId) : () => salla.cart.getGiftCartDetails();
214
220
  return await salla.api.withoutNotifier(giftDetailsMethod)
215
221
  .then((response) => {
216
222
  this.gift = response.data;
217
- // Backward-compat: older BE responses omit these visibility flags. Treat a
218
- // missing flag as enabled so the image/text steps still render until the BE
219
- // that returns them is deployed. Use `??` so an explicit `false` is preserved.
220
- this.gift.show_texts = this.gift.show_texts ?? true;
221
- this.gift.show_images = this.gift.show_images ?? true;
222
- this.gift.show_custom_text = this.gift.show_custom_text ?? true;
223
- this.gift.show_image_upload = this.gift.show_image_upload ?? true;
224
223
  this.senderName = this.gift.sender_name;
225
224
  this.disableClass = this.gift?.show_image_upload ? '' : 'pointer-events-none';
226
225
  if (!this.gift.show_texts) {
@@ -236,11 +235,6 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
236
235
  this.parentClass = 'is-current-step-2';
237
236
  this.step2Animated = true;
238
237
  }
239
- else if (!this.gift.show_images) {
240
- // the slider lays out asynchronously,
241
- // so an early measurement would pin it too short and overlap the button.
242
- this.setWrapperHeight(1, 250, 5);
243
- }
244
238
  })
245
239
  .catch(e => {
246
240
  this.hasError = true;
@@ -251,6 +245,31 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
251
245
  skipStep1() {
252
246
  return !!this.gift && !this.gift.show_images && !this.gift.show_texts;
253
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
+ }
254
273
  /**
255
274
  *
256
275
  * Hide / close the gifting modal window
@@ -316,7 +335,17 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
316
335
  if (withValidation && !this.validateStep1()) {
317
336
  return;
318
337
  }
319
- 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);
320
349
  let stepNextAnime = new anime.timeline();
321
350
  stepNextAnime.add({
322
351
  targets: this.step1Elems.querySelectorAll(`#${this.hostId} .anime-item`),
@@ -647,8 +676,12 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
647
676
  this.setWrapperHeight(2, 150, 0);
648
677
  return;
649
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';
650
682
  const giftPayload = {
651
- text: this.selectedText,
683
+ text: isCustomText ? this.selectedText : undefined,
684
+ text_id: !isCustomText && this.selectedGiftTextOption ? Number(this.selectedGiftTextOption) : undefined,
652
685
  sender_name: this.senderName,
653
686
  quantity: this.quantity,
654
687
  deliver_at: this.showCalendar ? this.deliveryDate : null,
@@ -721,7 +754,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
721
754
  }
722
755
  render() {
723
756
  return [
724
- h("div", { key: 'fdb6b68a052a9fa0a0d527edb25e3d7783cc47e9' }, h("salla-list-tile", { key: '3cfb7f37df96e924af7f977fd17f4161e40f83fe', class: this.generateClass() }, h("div", { key: '291a27d70bc43d6edac5c5838d93eaa6a51fb84a', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: 'c49f119d84a279338c4478872883ba7356e118ce' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: '2ccfb84620132477c0845ffc0bbc257c350cdeb9', slot: "subtitle" }, h("div", { key: '2840a426b505f7fe7ac5c285ab9b74ca4f99ab55' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'e3560b1bc8a6c062417f3e2b7a91b5b20b4e1880', slot: "action" }, h("salla-button", { key: '5d96fb354f2845955344d782e693fe27a0fa2652', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '384ab549dc1942a600cc37c4df26008a8a05e9ab', name: "widget-btn-content" }, h("div", { key: '80d83cd6296f2e93ebbc0eada8737d65c76e4ce0', class: "s-gifting-widget-action-content" }, h("span", { key: '69f6686f6fe23bdab891ab12b295cf918ba0a8fb', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: '495c9e9b10dcb69a1335d0345d42a8323b52abef' }, this.sectionBtnText)))))), h("salla-modal", { key: '303a208c394aa2c91f2273b3909208c29266b490', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '985a4d292ea01cb7ff48b443afe854de6f293abf', slot: "loading" }, h("div", { key: 'ba2b61f3bebf33d04d7132a00d3334a35042646a', class: "s-gifting-skeleton" }, h("div", { key: '4c8d2a5f128407423fd0c3070907d7781fb92283', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '8585263f0bcb523a5b537c3b13f9c2a0a3a898d0', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: 'dbd2c3efbe5c91563275c09efd832709b6ed6748', class: "s-gifting-modal-title" }, h("div", { key: '4885e29c71001b530be33a4cf585fd77cf434dfd', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '6c248a65bcc92c51555f0dd8f6d10c6f9d4a2b9a', height: '15px', width: '150px' })))), h("div", { key: '07de64586572cea82b2561344b5922ad4f7cb2c1', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '9a9e45772c6f5ce30a19ebcb53405032dfc25862', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'd1165987504fb2e5a7d013118b6ca5db2bf1523c', height: '230px' }), h("salla-skeleton", { key: '33cc657831541bcf6916c54c8dffca3b9933ccbb', height: '10px', width: '150px' }), h("salla-skeleton", { key: '46ff78b7725c57c955c73e9a71b9bf1c7340a354', height: '30px' }), h("salla-skeleton", { key: '520bd0a02c0bf4ef6109f014856dfad71d779aca', height: '40px' })))), h("slot", { key: '5519fd6df4f911b042f68f6825a563ce92f16733', 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 ?
725
758
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
726
759
  :
727
760
  [
@@ -732,8 +765,8 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
732
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 ?
733
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}` }))) : ''))
734
767
  : "")), this.gift && this.gift.show_texts ?
735
- 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: true }, this.selectGiftMessage), this.gift && this.gift.gift_texts ?
736
- 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'] ?
737
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'] ?
738
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'] ?
739
772
  h("span", { class: "s-gifting-error" }, this.errors['receiver.mobile']) : ''), this.isPhysical() &&
@@ -744,7 +777,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
744
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'] ?
745
778
  h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
746
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)))))
747
- ], h("slot", { key: '9413ec459b3b5dc137a90979990022b7ec1c6453', name: "footer" })))
780
+ ], h("slot", { key: 'e40029ee1e6fa463711fd088ba05c0edda5dd683', name: "footer" })))
748
781
  ];
749
782
  }
750
783
  static get style() { return sallaGiftingCss; }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-Cqh-ta1v.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-Cqh-ta1v.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-Cqh-ta1v.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-Cqh-ta1v.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-Cqh-ta1v.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-Cqh-ta1v.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-Cqh-ta1v.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-Cqh-ta1v.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);