@salla.sa/twilight-components 2.14.456 → 2.14.458

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 (330) hide show
  1. package/dist/cjs/{filepond-ByigWwFl.js → filepond-feaMFOj_.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-BiD-_Ds9.js → filepond-plugin-file-poster-BZT9ukbc.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size--jYzIVxc.js → filepond-plugin-file-validate-size--7D0QTWS.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-DSEoIdkG.js → filepond-plugin-file-validate-type-cLz_UQvD.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BxhNq1OW.js → filepond-plugin-image-edit--i9lQj9g.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CxhioraI.js → filepond-plugin-image-exif-orientation-DCA1ZCDJ.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-BOBfoOPj.js → filepond-plugin-image-preview-DGipSjOn.js} +1 -1
  8. package/dist/cjs/{functions-CzTE1Can.js → functions-45yOAuh2.js} +1 -1
  9. package/dist/cjs/{index-CHEJ_wTy.js → index-D1MNaBOd.js} +1 -1
  10. package/dist/cjs/{index-MWekS0mu.js → index-DoKZADm3.js} +6 -2
  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 +1 -1
  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 +4 -4
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer.cjs.entry.js +2 -2
  63. package/dist/cjs/salla-order-branch.cjs.entry.js +187 -0
  64. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-reward-action_4.cjs.entry.js +6 -3
  84. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tiered-offer.cjs.entry.js +7 -2
  92. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  99. package/dist/cjs/{tracked-promise-DzmWHAH-.js → tracked-promise-DBfKp0i-.js} +1 -1
  100. package/dist/cjs/twilight.cjs.js +2 -2
  101. package/dist/cjs/{vanilla-picker-D7NBRp4f.js → vanilla-picker-BlZm-f_Z.js} +1 -1
  102. package/dist/collection/assets/svg/clock-05.svg +5 -0
  103. package/dist/collection/assets/svg/navigation-03.svg +3 -0
  104. package/dist/collection/collection-manifest.json +1 -0
  105. package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +4 -4
  106. package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +3 -0
  107. package/dist/collection/components/salla-offer/salla-offer.js +1 -1
  108. package/dist/collection/components/salla-order-branch/helpers.js +50 -0
  109. package/dist/collection/components/salla-order-branch/interfaces.js +1 -0
  110. package/dist/collection/components/salla-order-branch/salla-order-branch.css +7 -0
  111. package/dist/collection/components/salla-order-branch/salla-order-branch.js +142 -0
  112. package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.js +6 -1
  113. package/dist/components/index.js +2 -2
  114. package/dist/components/salla-loyalty-panel.js +2 -2
  115. package/dist/components/salla-offer.js +1 -1
  116. package/dist/components/salla-order-branch.d.ts +11 -0
  117. package/dist/components/salla-order-branch.js +206 -0
  118. package/dist/components/salla-reward-action2.js +3 -0
  119. package/dist/components/salla-tiered-offer.js +6 -1
  120. package/dist/esm/{filepond-CRlzgcIb.js → filepond-CffxACiY.js} +1 -1
  121. package/dist/esm/{filepond-plugin-file-poster-ByayYzo6.js → filepond-plugin-file-poster-LzXPemRj.js} +1 -1
  122. package/dist/esm/{filepond-plugin-file-validate-size-Dzbvm4bE.js → filepond-plugin-file-validate-size-BBeG1YQF.js} +1 -1
  123. package/dist/esm/{filepond-plugin-file-validate-type-BLR4c3Mg.js → filepond-plugin-file-validate-type-DWCw6g0N.js} +1 -1
  124. package/dist/esm/{filepond-plugin-image-edit-C3Xg8l5R.js → filepond-plugin-image-edit-0ClTm033.js} +1 -1
  125. package/dist/esm/{filepond-plugin-image-exif-orientation-CVUrfrNW.js → filepond-plugin-image-exif-orientation-CR7WTm7O.js} +1 -1
  126. package/dist/esm/{filepond-plugin-image-preview-CGO8PkcS.js → filepond-plugin-image-preview-CHGE8apT.js} +1 -1
  127. package/dist/esm/{functions-gyNQgO8M.js → functions-Dd4f5cCM.js} +1 -1
  128. package/dist/esm/{index-CF5lYEtt.js → index-BxKt36mx.js} +6 -2
  129. package/dist/esm/{index-D8tNjsq-.js → index-DohtU8-7.js} +1 -1
  130. package/dist/esm/loader.js +3 -3
  131. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  132. package/dist/esm/salla-accordion_6.entry.js +1 -1
  133. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  134. package/dist/esm/salla-advertisement.entry.js +1 -1
  135. package/dist/esm/salla-alert_2.entry.js +1 -1
  136. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  137. package/dist/esm/salla-apps-icons.entry.js +1 -1
  138. package/dist/esm/salla-badge.entry.js +1 -1
  139. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  140. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  141. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  142. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  143. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  144. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  145. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  146. package/dist/esm/salla-contacts.entry.js +1 -1
  147. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  148. package/dist/esm/salla-count-down.entry.js +1 -1
  149. package/dist/esm/salla-custom-fields.entry.js +1 -1
  150. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  151. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  152. package/dist/esm/salla-filters-widget.entry.js +1 -1
  153. package/dist/esm/salla-filters.entry.js +1 -1
  154. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  155. package/dist/esm/salla-gifting.entry.js +1 -1
  156. package/dist/esm/salla-hook.entry.js +1 -1
  157. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  158. package/dist/esm/salla-installment.entry.js +1 -1
  159. package/dist/esm/salla-list-tile.entry.js +1 -1
  160. package/dist/esm/salla-localization-modal.entry.js +1 -1
  161. package/dist/esm/salla-login-modal.entry.js +1 -1
  162. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  163. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  164. package/dist/esm/salla-loyalty-panel.entry.js +4 -4
  165. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  166. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  167. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  168. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  169. package/dist/esm/salla-loyalty.entry.js +1 -1
  170. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  171. package/dist/esm/salla-map.entry.js +1 -1
  172. package/dist/esm/salla-menu.entry.js +1 -1
  173. package/dist/esm/salla-metadata.entry.js +1 -1
  174. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  175. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  176. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  177. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  178. package/dist/esm/salla-notification-item.entry.js +1 -1
  179. package/dist/esm/salla-notifications.entry.js +1 -1
  180. package/dist/esm/salla-offer-modal.entry.js +1 -1
  181. package/dist/esm/salla-offer.entry.js +2 -2
  182. package/dist/esm/salla-order-branch.entry.js +185 -0
  183. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  184. package/dist/esm/salla-order-details-options.entry.js +1 -1
  185. package/dist/esm/salla-order-details.entry.js +1 -1
  186. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  187. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  188. package/dist/esm/salla-order-edit.entry.js +1 -1
  189. package/dist/esm/salla-order-summary.entry.js +1 -1
  190. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  191. package/dist/esm/salla-orders.entry.js +1 -1
  192. package/dist/esm/salla-payments.entry.js +1 -1
  193. package/dist/esm/salla-placeholder.entry.js +1 -1
  194. package/dist/esm/salla-price-range.entry.js +1 -1
  195. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  196. package/dist/esm/salla-product-card_2.entry.js +1 -1
  197. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  198. package/dist/esm/salla-products-list.entry.js +1 -1
  199. package/dist/esm/salla-progress-bar.entry.js +1 -1
  200. package/dist/esm/salla-quick-order.entry.js +1 -1
  201. package/dist/esm/salla-rating-modal.entry.js +1 -1
  202. package/dist/esm/salla-reward-action_4.entry.js +6 -3
  203. package/dist/esm/salla-scopes.entry.js +1 -1
  204. package/dist/esm/salla-search.entry.js +1 -1
  205. package/dist/esm/salla-skeleton.entry.js +1 -1
  206. package/dist/esm/salla-slider.entry.js +1 -1
  207. package/dist/esm/salla-social-share.entry.js +1 -1
  208. package/dist/esm/salla-social.entry.js +1 -1
  209. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  210. package/dist/esm/salla-tiered-offer.entry.js +7 -2
  211. package/dist/esm/salla-tooltip.entry.js +1 -1
  212. package/dist/esm/salla-trust-badges.entry.js +1 -1
  213. package/dist/esm/salla-user-menu.entry.js +1 -1
  214. package/dist/esm/salla-user-profile.entry.js +1 -1
  215. package/dist/esm/salla-user-settings.entry.js +1 -1
  216. package/dist/esm/salla-verify.entry.js +1 -1
  217. package/dist/esm/salla-wallet.entry.js +1 -1
  218. package/dist/esm/{tracked-promise-p7166HJt.js → tracked-promise-tXUCoIr3.js} +1 -1
  219. package/dist/esm/twilight.js +3 -3
  220. package/dist/esm/{vanilla-picker-DNH0QcWx.js → vanilla-picker-Bn8UZjWt.js} +1 -1
  221. package/dist/twilight/p-02eb80b8.entry.js +4 -0
  222. package/dist/twilight/{p-1c87788f.entry.js → p-0306c8f5.entry.js} +1 -1
  223. package/dist/twilight/{p-4189d36a.entry.js → p-032b3143.entry.js} +1 -1
  224. package/dist/twilight/{p-b03ccd38.entry.js → p-0c4cba69.entry.js} +1 -1
  225. package/dist/twilight/{p-d4737a77.entry.js → p-13de7f9d.entry.js} +1 -1
  226. package/dist/twilight/{p-cdcf9152.entry.js → p-13fb05be.entry.js} +1 -1
  227. package/dist/twilight/{p-d0982f5f.entry.js → p-14818bbc.entry.js} +1 -1
  228. package/dist/twilight/{p-96015a02.entry.js → p-16abcebc.entry.js} +1 -1
  229. package/dist/twilight/{p-3586e535.entry.js → p-17d04d37.entry.js} +1 -1
  230. package/dist/twilight/{p-2d707e83.entry.js → p-1833e7f1.entry.js} +1 -1
  231. package/dist/twilight/{p-66fb0eed.entry.js → p-1c2a1511.entry.js} +1 -1
  232. package/dist/twilight/{p-ab8c90ab.entry.js → p-1dda49a2.entry.js} +1 -1
  233. package/dist/twilight/{p-b23c3b14.entry.js → p-1e0e3caf.entry.js} +1 -1
  234. package/dist/twilight/p-1ff67f37.entry.js +4 -0
  235. package/dist/twilight/{p-4d2ee4bf.entry.js → p-2082d185.entry.js} +1 -1
  236. package/dist/twilight/{p-8e84a8eb.entry.js → p-213dfc6e.entry.js} +1 -1
  237. package/dist/twilight/{p-3f7d4d95.entry.js → p-2177b796.entry.js} +1 -1
  238. package/dist/twilight/{p-814b5624.entry.js → p-23353fc1.entry.js} +1 -1
  239. package/dist/twilight/{p-d4415e81.entry.js → p-23aacddd.entry.js} +1 -1
  240. package/dist/twilight/{p-03d2a295.entry.js → p-23e780a2.entry.js} +1 -1
  241. package/dist/twilight/{p-c3ab6df4.entry.js → p-27ff5ee4.entry.js} +1 -1
  242. package/dist/twilight/{p-549dfe1b.entry.js → p-2a763bb1.entry.js} +1 -1
  243. package/dist/twilight/{p-3ab0ba37.entry.js → p-2d39c870.entry.js} +1 -1
  244. package/dist/twilight/{p-c19fc5f6.entry.js → p-2ec44c82.entry.js} +1 -1
  245. package/dist/twilight/{p-53db2588.entry.js → p-32d49832.entry.js} +1 -1
  246. package/dist/twilight/{p-44cb2ef8.entry.js → p-3737a731.entry.js} +1 -1
  247. package/dist/twilight/{p-00cae5da.entry.js → p-37b7f9a1.entry.js} +1 -1
  248. package/dist/twilight/{p-ade9674c.entry.js → p-3b627b8f.entry.js} +1 -1
  249. package/dist/twilight/{p-161bbb4d.entry.js → p-3d504212.entry.js} +1 -1
  250. package/dist/twilight/{p-07509240.entry.js → p-40f55e09.entry.js} +1 -1
  251. package/dist/twilight/{p-f1da2348.entry.js → p-44e22a0b.entry.js} +1 -1
  252. package/dist/twilight/{p-acb29315.entry.js → p-4c1cda26.entry.js} +1 -1
  253. package/dist/twilight/{p-72a7f290.entry.js → p-4e1e74e7.entry.js} +1 -1
  254. package/dist/twilight/{p-cf5f44a4.entry.js → p-4f02bb67.entry.js} +1 -1
  255. package/dist/twilight/{p-7046c764.entry.js → p-53c1d0b8.entry.js} +1 -1
  256. package/dist/twilight/{p-08e2d088.entry.js → p-55bdc159.entry.js} +1 -1
  257. package/dist/twilight/{p-4c74a0de.entry.js → p-59ce0a62.entry.js} +1 -1
  258. package/dist/twilight/p-5ba6fa7b.entry.js +4 -0
  259. package/dist/twilight/{p-c2818e13.entry.js → p-67378b91.entry.js} +1 -1
  260. package/dist/twilight/{p-a446b3b1.entry.js → p-6d99f564.entry.js} +1 -1
  261. package/dist/twilight/{p-fb088b52.entry.js → p-6e7c61b6.entry.js} +1 -1
  262. package/dist/twilight/{p-6612976a.entry.js → p-7069bc5a.entry.js} +1 -1
  263. package/dist/twilight/{p-4f623243.entry.js → p-71ff03c7.entry.js} +1 -1
  264. package/dist/twilight/{p-789816d3.entry.js → p-724f7df5.entry.js} +1 -1
  265. package/dist/twilight/{p-97647732.entry.js → p-73d8bada.entry.js} +1 -1
  266. package/dist/twilight/{p-585f6156.entry.js → p-74966aa4.entry.js} +1 -1
  267. package/dist/twilight/{p-72ec3a50.entry.js → p-76ebb1f3.entry.js} +1 -1
  268. package/dist/twilight/{p-fde1dd81.entry.js → p-7708a3e0.entry.js} +1 -1
  269. package/dist/twilight/{p-90e05e76.entry.js → p-7720867a.entry.js} +1 -1
  270. package/dist/twilight/{p-e71456a5.entry.js → p-7f6647bd.entry.js} +1 -1
  271. package/dist/twilight/{p-b4a5d9f1.entry.js → p-820ef744.entry.js} +1 -1
  272. package/dist/twilight/{p-bf38bbba.entry.js → p-85b3a22f.entry.js} +1 -1
  273. package/dist/twilight/{p-1745f9a1.entry.js → p-865541e7.entry.js} +1 -1
  274. package/dist/twilight/{p-d53cf37d.entry.js → p-87bfae72.entry.js} +1 -1
  275. package/dist/twilight/{p-1a647899.entry.js → p-92a18a14.entry.js} +1 -1
  276. package/dist/twilight/{p-ae31f13e.entry.js → p-940f0285.entry.js} +1 -1
  277. package/dist/twilight/{p-D0XsGIjC.js → p-B37vFXxB.js} +1 -1
  278. package/dist/twilight/{p-D58UweWS.js → p-BEUsRLpS.js} +1 -1
  279. package/dist/twilight/{p-DaxhHxCj.js → p-BF2OeDPC.js} +1 -1
  280. package/dist/twilight/{p-65q-Lspm.js → p-BJrHiNT7.js} +1 -1
  281. package/dist/twilight/{p-CF5lYEtt.js → p-BxKt36mx.js} +2 -2
  282. package/dist/twilight/{p-CgnSxwtl.js → p-C-xAJPgJ.js} +1 -1
  283. package/dist/twilight/{p-BevZXaXF.js → p-CLJJGa4R.js} +1 -1
  284. package/dist/twilight/{p-1P71keJV.js → p-CgUFhQLc.js} +1 -1
  285. package/dist/twilight/{p-CSn54B_A.js → p-CoKgv23c.js} +1 -1
  286. package/dist/twilight/{p-BWsYxy94.js → p-CwiIgE9I.js} +1 -1
  287. package/dist/twilight/{p-DFCW2iW-.js → p-DvUuxBCy.js} +1 -1
  288. package/dist/twilight/{p-4fbac225.entry.js → p-aa0a82ba.entry.js} +1 -1
  289. package/dist/twilight/{p-bf9ecde7.entry.js → p-ab8d1c50.entry.js} +1 -1
  290. package/dist/twilight/{p-5312991b.entry.js → p-ae873bb3.entry.js} +1 -1
  291. package/dist/twilight/{p-579c9941.entry.js → p-b3fca774.entry.js} +1 -1
  292. package/dist/twilight/{p-18eeb19b.entry.js → p-bedfe2f1.entry.js} +1 -1
  293. package/dist/twilight/{p-30f4c0c7.entry.js → p-bf991695.entry.js} +1 -1
  294. package/dist/twilight/{p-b94a95f9.entry.js → p-bfe100b5.entry.js} +1 -1
  295. package/dist/twilight/{p-60c4743f.entry.js → p-c27fbce5.entry.js} +1 -1
  296. package/dist/twilight/{p-a6b63629.entry.js → p-c32e2a71.entry.js} +1 -1
  297. package/dist/twilight/{p-c47b7eb7.entry.js → p-c4863bf6.entry.js} +1 -1
  298. package/dist/twilight/{p-e34af4af.entry.js → p-c5acb840.entry.js} +1 -1
  299. package/dist/twilight/{p-8714ba55.entry.js → p-c5fdba11.entry.js} +1 -1
  300. package/dist/twilight/{p-a3d00953.entry.js → p-c60cecc8.entry.js} +1 -1
  301. package/dist/twilight/{p-4ba8a32c.entry.js → p-cf71632e.entry.js} +1 -1
  302. package/dist/twilight/{p-bd692fdc.entry.js → p-d03f573b.entry.js} +1 -1
  303. package/dist/twilight/{p-74ad347b.entry.js → p-d2b3b6c5.entry.js} +1 -1
  304. package/dist/twilight/{p-d06ddfdd.entry.js → p-dc9d31bd.entry.js} +1 -1
  305. package/dist/twilight/{p-6e1cec7b.entry.js → p-e4b91ab1.entry.js} +1 -1
  306. package/dist/twilight/{p-ad411fb2.entry.js → p-e5494d9d.entry.js} +1 -1
  307. package/dist/twilight/{p-3e5d39d6.entry.js → p-e7bd71a3.entry.js} +1 -1
  308. package/dist/twilight/{p-25705059.entry.js → p-e7e7acbd.entry.js} +1 -1
  309. package/dist/twilight/{p-5b9aee81.entry.js → p-eb970c64.entry.js} +1 -1
  310. package/dist/twilight/{p-f77fa8c8.entry.js → p-eba31f7c.entry.js} +1 -1
  311. package/dist/twilight/{p-a7b4fb6b.entry.js → p-ef58d373.entry.js} +1 -1
  312. package/dist/twilight/{p-84eae64c.entry.js → p-f28a753d.entry.js} +1 -1
  313. package/dist/twilight/{p-8b9835be.entry.js → p-f5f84c2a.entry.js} +1 -1
  314. package/dist/twilight/{p-1dbb89d0.entry.js → p-f89ac2c3.entry.js} +1 -1
  315. package/dist/twilight/{p-469b9c3b.entry.js → p-f97149c2.entry.js} +1 -1
  316. package/dist/twilight/{p-19c86bc6.entry.js → p-fb12850b.entry.js} +1 -1
  317. package/dist/twilight/{p-e189cbcd.entry.js → p-fd54bb1a.entry.js} +1 -1
  318. package/dist/twilight/p-fd9b57a4.entry.js +4 -0
  319. package/dist/twilight/{p-BtV9ZEuP.js → p-pXzGsRrE.js} +1 -1
  320. package/dist/twilight/twilight.esm.js +1 -1
  321. package/dist/types/components/salla-loyalty-program/salla-loyalty-panel.d.ts +1 -1
  322. package/dist/types/components/salla-loyalty-program/salla-reward-action.d.ts +1 -0
  323. package/dist/types/components/salla-order-branch/helpers.d.ts +6 -0
  324. package/dist/types/components/salla-order-branch/interfaces.d.ts +39 -0
  325. package/dist/types/components/salla-order-branch/salla-order-branch.d.ts +25 -0
  326. package/dist/types/components.d.ts +31 -2
  327. package/package.json +5 -5
  328. package/dist/twilight/p-66384032.entry.js +0 -4
  329. package/dist/twilight/p-86be13c9.entry.js +0 -4
  330. package/dist/twilight/p-c0c2f66b.entry.js +0 -4
@@ -5,6 +5,9 @@ import { h } from "@stencil/core";
5
5
  import { closeModals } from "./functions";
6
6
  export class SallaRewardAction {
7
7
  constructor() {
8
+ this.isClickable = (_prize) => {
9
+ return true;
10
+ };
8
11
  this.isShopNow = (prize) => {
9
12
  if (!(salla.config.get('store.features') || []).includes('loyalty-system-v2')) {
10
13
  return false;
@@ -117,7 +117,7 @@ export class SallaOffer {
117
117
  }
118
118
  throw new Error("Merchant disabled showing the offers on product page");
119
119
  })
120
- .then(async () => salla.api.request(await this.getEndpointByPageName()))
120
+ .then(async () => this.currentPage == PageType.Cart ? salla.api.cart.offers() : salla.api.request(await this.getEndpointByPageName()))
121
121
  .then(async (res) => {
122
122
  if (!(this.offersList = res.data).length) {
123
123
  throw new Error('salla-offers:: There is no offers!');
@@ -0,0 +1,50 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ export function parseMaybeJson(value, fallback) {
5
+ if (typeof value !== 'string') {
6
+ return (value ?? fallback);
7
+ }
8
+ const trimmed = value.trim();
9
+ if (!trimmed)
10
+ return fallback;
11
+ try {
12
+ return JSON.parse(trimmed);
13
+ }
14
+ catch {
15
+ return fallback;
16
+ }
17
+ }
18
+ export function parseOrderBranch(value) {
19
+ if (!value)
20
+ return undefined;
21
+ return typeof value === 'string'
22
+ ? parseMaybeJson(value, undefined)
23
+ : value;
24
+ }
25
+ export function getBranchPhone(contacts) {
26
+ const parsed = parseMaybeJson(contacts, null);
27
+ const phone = parsed && typeof parsed === 'object' ? parsed.phone : '';
28
+ return typeof phone === 'string' ? phone.trim() : '';
29
+ }
30
+ export function formatTimeTo12h(time24, locale = 'ar') {
31
+ const [hours, minutes] = String(time24).trim().split(':').map(Number);
32
+ if (!Number.isFinite(hours) || !Number.isFinite(minutes))
33
+ return time24;
34
+ const date = new Date(2000, 0, 1, hours, minutes);
35
+ const options = { hour: 'numeric', minute: '2-digit', hour12: true };
36
+ try {
37
+ return date.toLocaleTimeString(locale, options);
38
+ }
39
+ catch {
40
+ return date.toLocaleTimeString('ar', options);
41
+ }
42
+ }
43
+ export function normalizeTimeUnit(unit) {
44
+ const normalized = String(unit || 'hour').toLowerCase();
45
+ if (normalized.startsWith('min'))
46
+ return 'minute';
47
+ if (normalized.startsWith('day'))
48
+ return 'day';
49
+ return 'hour';
50
+ }
@@ -0,0 +1,7 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .s-order-branch-ready {
6
+ background-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
7
+ }
@@ -0,0 +1,142 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { h, Host } from "@stencil/core";
5
+ import { formatTimeTo12h, getBranchPhone, normalizeTimeUnit, parseOrderBranch } from "./helpers";
6
+ import navigationIcon from "../../assets/svg/navigation-03.svg";
7
+ import phoneTalkingIcon from "../../assets/svg/phone-talking.svg";
8
+ /**
9
+ * @salla/ui-components
10
+ * The `salla-order-branch` component renders pickup branch details for thank-you pages.
11
+ */
12
+ export class SallaOrderBranch {
13
+ constructor() {
14
+ this.isLoading = false;
15
+ }
16
+ componentWillLoad() {
17
+ return this.getBranchData();
18
+ }
19
+ async getBranchData() {
20
+ const orderId = salla.config.get('page.id');
21
+ if (!orderId)
22
+ return;
23
+ this.isLoading = true;
24
+ try {
25
+ const response = await salla.order.api.getBranchDetails(orderId);
26
+ this.branchData = this.parseBranchResponse(response);
27
+ }
28
+ catch (error) {
29
+ this.notifyApiError(error);
30
+ }
31
+ finally {
32
+ this.isLoading = false;
33
+ }
34
+ }
35
+ parseBranchResponse(response) {
36
+ const data = response?.data?.data || response?.data || response;
37
+ if (data && typeof data === 'object' && Object.prototype.hasOwnProperty.call(data, 'branch')) {
38
+ return data.branch ? parseOrderBranch(data.branch) : undefined;
39
+ }
40
+ return parseOrderBranch(data);
41
+ }
42
+ getApiErrorMessage(error) {
43
+ return error?.response?.data?.error?.message || error?.response?.data?.message;
44
+ }
45
+ notifyApiError(error) {
46
+ const message = this.getApiErrorMessage(error);
47
+ if (message) {
48
+ salla.notify.error(message);
49
+ }
50
+ }
51
+ label(key, fallback) {
52
+ return salla.lang.getWithDefault(key, fallback);
53
+ }
54
+ get preparationText() {
55
+ const range = this.branchData?.preparation_time_range;
56
+ if (!range?.from || !range?.to)
57
+ return '';
58
+ const fromValue = salla.helpers.number(range.from.value);
59
+ const toValue = salla.helpers.number(range.to.value);
60
+ const unitLabel = this.unitLabel(range.to.unit);
61
+ const amount = fromValue === toValue ? fromValue : `\u2066${fromValue}-${toValue}\u2069`;
62
+ return this.label('pages.orders.pickup_ready_after', 'جاهز للاستلام بعد :time').replace(':time', `${amount} ${unitLabel}`);
63
+ }
64
+ unitLabel(unit) {
65
+ const normalized = normalizeTimeUnit(unit);
66
+ if (normalized === 'minute') {
67
+ return this.label('pages.checkout.minute', 'دقيقة');
68
+ }
69
+ if (normalized === 'day') {
70
+ return this.label('pages.checkout.day', 'يوم');
71
+ }
72
+ return this.label('pages.checkout.hour', 'ساعة');
73
+ }
74
+ get workingHoursItems() {
75
+ const branch = this.branchData;
76
+ if (!branch)
77
+ return [];
78
+ if (branch.always_open === true || branch.always_open === 1 || branch.always_open === '1') {
79
+ return [this.label('pages.orders.branch_always_open', 'مفتوح على مدار الساعة')];
80
+ }
81
+ const locale = salla.lang.locale || 'ar';
82
+ return (branch.working_hours || [])
83
+ .filter(day => day?.name && day.times?.length)
84
+ .map(day => {
85
+ const slot = day.times[0];
86
+ return `${day.name}: ${formatTimeTo12h(slot.from, locale)} - ${formatTimeTo12h(slot.to, locale)}`;
87
+ });
88
+ }
89
+ get branchAddress() {
90
+ return this.branchData?.address || '';
91
+ }
92
+ get mapUrl() {
93
+ const location = this.branchData?.location;
94
+ if (location?.lat == null || location?.lng == null)
95
+ return undefined;
96
+ return `https://www.google.com/maps?q=${location.lat},${location.lng}`;
97
+ }
98
+ get phone() {
99
+ return getBranchPhone(this.branchData?.contacts);
100
+ }
101
+ renderDetailsColumn() {
102
+ const phone = this.phone;
103
+ if (!phone)
104
+ return null;
105
+ return (h("div", { class: "s-order-branch-details" }, h("div", { class: "s-order-branch-info-card" }, h("span", { class: "s-order-branch-info-icon", innerHTML: phoneTalkingIcon }), h("div", { class: "s-order-branch-info-text" }, h("span", { class: "s-order-branch-info-label" }, this.label('pages.orders.branch_contacts', 'ارقام التواصل')), h("span", { class: "s-order-branch-info-value", dir: "ltr" }, phone)))));
106
+ }
107
+ renderWorkingHoursCard() {
108
+ const items = this.workingHoursItems;
109
+ if (!items.length)
110
+ return null;
111
+ return (h("div", { class: "s-order-branch-info-card s-order-branch-hours-card" }, h("span", { class: "s-order-branch-info-icon", "aria-hidden": "true" }, h("i", { class: "sicon-calendar-alt" })), h("div", { class: "s-order-branch-info-text" }, h("span", { class: "s-order-branch-info-label" }, this.label('pages.checkout.working_hours', 'ساعات العمل')), h("div", { class: "s-order-branch-hours-list" }, items.map(item => (h("span", { class: "s-order-branch-hours-item" }, item)))))));
112
+ }
113
+ renderBranchIdentityCard() {
114
+ const branch = this.branchData;
115
+ const address = this.branchAddress;
116
+ const readyText = this.preparationText;
117
+ return (h("section", { class: "s-order-branch-card" }, h("div", { class: "s-order-branch-location" }, h("div", { class: "s-order-branch-identity" }, h("span", { class: "s-order-branch-store-icon" }, h("i", { class: "sicon-store", "aria-hidden": "true" })), h("div", { class: "s-order-branch-text" }, h("div", { class: "s-order-branch-name-row" }, branch?.name ? h("span", { class: "s-order-branch-name" }, branch.name) : null, readyText ? h("span", { class: "s-order-branch-ready" }, readyText) : null), address ? h("span", { class: "s-order-branch-address" }, address) : null)), this.mapUrl ? (h("div", { class: "s-order-branch-actions" }, h("a", { href: this.mapUrl, target: "_blank", rel: "noopener noreferrer", class: "s-order-branch-map-link" }, h("span", null, this.label('pages.orders.branch_map', 'موقع الفرع علي الخريطة')), h("span", { class: "s-order-branch-action-icon", innerHTML: navigationIcon })))) : null)));
118
+ }
119
+ render() {
120
+ if (this.isLoading || !this.branchData) {
121
+ return h(Host, { class: "s-order-branch-wrapper" });
122
+ }
123
+ return (h(Host, { class: "s-order-branch-wrapper" }, h("div", { class: "s-order-branch-container" }, this.renderBranchIdentityCard(), this.renderDetailsColumn()), this.renderWorkingHoursCard()));
124
+ }
125
+ static get is() { return "salla-order-branch"; }
126
+ static get originalStyleUrls() {
127
+ return {
128
+ "$": ["salla-order-branch.scss"]
129
+ };
130
+ }
131
+ static get styleUrls() {
132
+ return {
133
+ "$": ["salla-order-branch.css"]
134
+ };
135
+ }
136
+ static get states() {
137
+ return {
138
+ "branchData": {},
139
+ "isLoading": {}
140
+ };
141
+ }
142
+ }
@@ -108,7 +108,12 @@ export class SallaTieredOffer {
108
108
  componentDidLoad() {
109
109
  salla.event.on("cart::updated", async (updatedCart) => {
110
110
  const offerData = await this.fetchTieredOfferData();
111
- if (offerData) {
111
+ if (!offerData)
112
+ return;
113
+ if (!this.tieredOfferData) {
114
+ this.initializeComponent(offerData);
115
+ }
116
+ else {
112
117
  this.updateOfferValues(updatedCart, offerData);
113
118
  }
114
119
  });