@salla.sa/twilight-components 2.14.600 → 2.14.601

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 (325) hide show
  1. package/dist/cjs/{filepond-DVmQ7csb.js → filepond-D8C4FvMF.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-DMSpzTqe.js → filepond-plugin-file-poster-Bha1u8_P.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-D_ptbEIk.js → filepond-plugin-file-validate-size-BrGHDbNv.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-0yFqmcfN.js → filepond-plugin-file-validate-type-D1ZhZw29.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-E7sYYAWn.js → filepond-plugin-image-edit-CpMtbo-c.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-DbrEAQoa.js → filepond-plugin-image-exif-orientation-C106fw_6.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-DO_tpcG1.js → filepond-plugin-image-preview-B2u9bre9.js} +1 -1
  8. package/dist/cjs/{index-Bw9ZFzBG.js → index-CIcdvW25.js} +7 -7
  9. package/dist/cjs/{intlTelInput-DxYQu3W_.js → intlTelInput-C_vfjTaa.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-applied-filters.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-attachment-view_9.cjs.entry.js +10 -10
  20. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-comment-form_9.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-gift-card-redeem_2.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-map_3.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notification-item_2.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-cancel.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  105. package/dist/cjs/salla-wishlist-summary.cjs.entry.js +1 -1
  106. package/dist/cjs/twilight.cjs.js +1 -1
  107. package/dist/cjs/{vanilla-picker-CcRVM0uV.js → vanilla-picker-9cRfp20y.js} +1 -1
  108. package/dist/components/index.js +7 -7
  109. package/dist/docs.json +1 -1
  110. package/dist/esm/{filepond-CMtCLsIc.js → filepond-CdHKzx8o.js} +1 -1
  111. package/dist/esm/{filepond-plugin-file-poster-OjOFU-jw.js → filepond-plugin-file-poster-Dv1xmT8j.js} +1 -1
  112. package/dist/esm/{filepond-plugin-file-validate-size-BFCz_KY1.js → filepond-plugin-file-validate-size-yC6pu05S.js} +1 -1
  113. package/dist/esm/{filepond-plugin-file-validate-type-BaPcxnrR.js → filepond-plugin-file-validate-type-6BfFanp-.js} +1 -1
  114. package/dist/esm/{filepond-plugin-image-edit-D_tfXMIg.js → filepond-plugin-image-edit-DXVicFoW.js} +1 -1
  115. package/dist/esm/{filepond-plugin-image-exif-orientation-DS2k4xg9.js → filepond-plugin-image-exif-orientation-lh9c78ZN.js} +1 -1
  116. package/dist/esm/{filepond-plugin-image-preview-B6bJkNCH.js → filepond-plugin-image-preview--nSwXCrA.js} +1 -1
  117. package/dist/esm/{index-C670SYee.js → index-8Kr0yg20.js} +7 -7
  118. package/dist/esm/{intlTelInput-BUOxAmWZ.js → intlTelInput-l4GKBLuF.js} +1 -1
  119. package/dist/esm/loader.js +2 -2
  120. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  121. package/dist/esm/salla-accordion_6.entry.js +1 -1
  122. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  123. package/dist/esm/salla-advertisement.entry.js +1 -1
  124. package/dist/esm/salla-alert_2.entry.js +1 -1
  125. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  126. package/dist/esm/salla-applied-filters.entry.js +1 -1
  127. package/dist/esm/salla-apps-icons.entry.js +1 -1
  128. package/dist/esm/salla-attachment-view_9.entry.js +10 -10
  129. package/dist/esm/salla-badge.entry.js +1 -1
  130. package/dist/esm/salla-basket-gap.entry.js +1 -1
  131. package/dist/esm/salla-bullet-delivery_3.entry.js +1 -1
  132. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  133. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  134. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  135. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  136. package/dist/esm/salla-comment-factors.entry.js +1 -1
  137. package/dist/esm/salla-comment-form_9.entry.js +1 -1
  138. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  139. package/dist/esm/salla-contacts.entry.js +1 -1
  140. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  141. package/dist/esm/salla-count-down.entry.js +1 -1
  142. package/dist/esm/salla-custom-fields.entry.js +1 -1
  143. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  144. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  145. package/dist/esm/salla-filters-widget.entry.js +1 -1
  146. package/dist/esm/salla-filters.entry.js +1 -1
  147. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  148. package/dist/esm/salla-gift-card-redeem_2.entry.js +1 -1
  149. package/dist/esm/salla-gifting.entry.js +1 -1
  150. package/dist/esm/salla-hook.entry.js +1 -1
  151. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  152. package/dist/esm/salla-installment.entry.js +1 -1
  153. package/dist/esm/salla-list-tile.entry.js +1 -1
  154. package/dist/esm/salla-localization-modal.entry.js +1 -1
  155. package/dist/esm/salla-login-modal.entry.js +1 -1
  156. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  157. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  158. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  159. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  160. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  161. package/dist/esm/salla-loyalty.entry.js +1 -1
  162. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  163. package/dist/esm/salla-map_3.entry.js +1 -1
  164. package/dist/esm/salla-menu.entry.js +1 -1
  165. package/dist/esm/salla-metadata.entry.js +1 -1
  166. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  167. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  168. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  169. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  170. package/dist/esm/salla-notification-item_2.entry.js +1 -1
  171. package/dist/esm/salla-offer-modal.entry.js +1 -1
  172. package/dist/esm/salla-offer.entry.js +1 -1
  173. package/dist/esm/salla-order-branch.entry.js +1 -1
  174. package/dist/esm/salla-order-cancel.entry.js +1 -1
  175. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  176. package/dist/esm/salla-order-details-options.entry.js +1 -1
  177. package/dist/esm/salla-order-details.entry.js +1 -1
  178. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  179. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  180. package/dist/esm/salla-order-edit.entry.js +1 -1
  181. package/dist/esm/salla-order-options-modal.entry.js +1 -1
  182. package/dist/esm/salla-order-shipments.entry.js +1 -1
  183. package/dist/esm/salla-order-summary.entry.js +1 -1
  184. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  185. package/dist/esm/salla-orders.entry.js +1 -1
  186. package/dist/esm/salla-payments.entry.js +1 -1
  187. package/dist/esm/salla-placeholder.entry.js +1 -1
  188. package/dist/esm/salla-price-range.entry.js +1 -1
  189. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  190. package/dist/esm/salla-product-card.entry.js +1 -1
  191. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  192. package/dist/esm/salla-products-list.entry.js +1 -1
  193. package/dist/esm/salla-products-slider.entry.js +1 -1
  194. package/dist/esm/salla-quick-order.entry.js +1 -1
  195. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  196. package/dist/esm/salla-rating-modal.entry.js +1 -1
  197. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  198. package/dist/esm/salla-review-order-item.entry.js +1 -1
  199. package/dist/esm/salla-scopes.entry.js +1 -1
  200. package/dist/esm/salla-search-product-card.entry.js +1 -1
  201. package/dist/esm/salla-search.entry.js +1 -1
  202. package/dist/esm/salla-skeleton.entry.js +1 -1
  203. package/dist/esm/salla-social-share.entry.js +1 -1
  204. package/dist/esm/salla-social.entry.js +1 -1
  205. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  206. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  207. package/dist/esm/salla-trust-badges.entry.js +1 -1
  208. package/dist/esm/salla-user-menu.entry.js +1 -1
  209. package/dist/esm/salla-user-profile.entry.js +1 -1
  210. package/dist/esm/salla-user-settings.entry.js +1 -1
  211. package/dist/esm/salla-verify.entry.js +1 -1
  212. package/dist/esm/salla-wallet.entry.js +1 -1
  213. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  214. package/dist/esm/salla-wishlist-summary.entry.js +1 -1
  215. package/dist/esm/twilight.js +2 -2
  216. package/dist/esm/{vanilla-picker-vQxevRSA.js → vanilla-picker-Cz2XdDMP.js} +1 -1
  217. package/dist/twilight/{p-167a9c58.entry.js → p-00654af3.entry.js} +1 -1
  218. package/dist/twilight/{p-9ace9fc5.entry.js → p-048ee93a.entry.js} +1 -1
  219. package/dist/twilight/{p-b3f0b7e3.entry.js → p-052fb212.entry.js} +1 -1
  220. package/dist/twilight/{p-6eb365f3.entry.js → p-06b45154.entry.js} +1 -1
  221. package/dist/twilight/{p-ce8bdea8.entry.js → p-0e98fddd.entry.js} +1 -1
  222. package/dist/twilight/{p-4ea3a8a1.entry.js → p-0fdbd8cc.entry.js} +1 -1
  223. package/dist/twilight/{p-6cfb6628.entry.js → p-11695661.entry.js} +1 -1
  224. package/dist/twilight/{p-dff87ddc.entry.js → p-126d5595.entry.js} +1 -1
  225. package/dist/twilight/{p-660271f5.entry.js → p-16479b90.entry.js} +1 -1
  226. package/dist/twilight/{p-3eface57.entry.js → p-16dcf15c.entry.js} +1 -1
  227. package/dist/twilight/{p-321022f5.entry.js → p-1db334c5.entry.js} +1 -1
  228. package/dist/twilight/{p-c6f677aa.entry.js → p-1e0df65d.entry.js} +1 -1
  229. package/dist/twilight/p-2173c0f0.entry.js +4 -0
  230. package/dist/twilight/{p-f52c49c8.entry.js → p-23073b8a.entry.js} +1 -1
  231. package/dist/twilight/{p-36ddb8db.entry.js → p-254c863e.entry.js} +1 -1
  232. package/dist/twilight/{p-57ddfcfe.entry.js → p-25f15ab6.entry.js} +1 -1
  233. package/dist/twilight/{p-8f1789f7.entry.js → p-270e4b2d.entry.js} +1 -1
  234. package/dist/twilight/{p-8d119291.entry.js → p-28c75dcf.entry.js} +1 -1
  235. package/dist/twilight/{p-d2b41e2d.entry.js → p-2a160737.entry.js} +1 -1
  236. package/dist/twilight/{p-dfcb0978.entry.js → p-2a28633d.entry.js} +1 -1
  237. package/dist/twilight/{p-f106d1e8.entry.js → p-2bf57ca7.entry.js} +1 -1
  238. package/dist/twilight/{p-b59eab4f.entry.js → p-3118f527.entry.js} +1 -1
  239. package/dist/twilight/{p-27d94a42.entry.js → p-3130e363.entry.js} +1 -1
  240. package/dist/twilight/{p-ccd75cf6.entry.js → p-3179c72b.entry.js} +1 -1
  241. package/dist/twilight/{p-ea4e6f55.entry.js → p-3392ced8.entry.js} +1 -1
  242. package/dist/twilight/{p-07453f6c.entry.js → p-34b6c381.entry.js} +1 -1
  243. package/dist/twilight/{p-r8T0WY8a.js → p-3RAlOumf.js} +1 -1
  244. package/dist/twilight/{p-d923ecda.entry.js → p-3ad77173.entry.js} +1 -1
  245. package/dist/twilight/{p-e506fbee.entry.js → p-3c89325e.entry.js} +1 -1
  246. package/dist/twilight/{p-9a7da6d0.entry.js → p-3cd513b2.entry.js} +1 -1
  247. package/dist/twilight/{p-4678b6d7.entry.js → p-476e3d1b.entry.js} +1 -1
  248. package/dist/twilight/{p-73189ed2.entry.js → p-490493cc.entry.js} +1 -1
  249. package/dist/twilight/{p-87feddeb.entry.js → p-4b559931.entry.js} +1 -1
  250. package/dist/twilight/{p-73125aab.entry.js → p-4cfca9e1.entry.js} +1 -1
  251. package/dist/twilight/{p-90765c65.entry.js → p-5076dfe4.entry.js} +1 -1
  252. package/dist/twilight/{p-46334bbe.entry.js → p-5500cb85.entry.js} +1 -1
  253. package/dist/twilight/{p-af525459.entry.js → p-5b0259d8.entry.js} +1 -1
  254. package/dist/twilight/{p-57768c0e.entry.js → p-5bfe0a12.entry.js} +1 -1
  255. package/dist/twilight/{p-60e920c6.entry.js → p-5de3e4c3.entry.js} +1 -1
  256. package/dist/twilight/{p-b2da9ea7.entry.js → p-5f176cff.entry.js} +1 -1
  257. package/dist/twilight/{p-b124899c.entry.js → p-60a16078.entry.js} +1 -1
  258. package/dist/twilight/{p-19b7fccb.entry.js → p-62081545.entry.js} +1 -1
  259. package/dist/twilight/{p-da9b84ee.entry.js → p-64ce7d04.entry.js} +1 -1
  260. package/dist/twilight/{p-d897273e.entry.js → p-654d7158.entry.js} +1 -1
  261. package/dist/twilight/{p-e80bc0ce.entry.js → p-66739790.entry.js} +1 -1
  262. package/dist/twilight/{p-b40466ae.entry.js → p-68bab651.entry.js} +1 -1
  263. package/dist/twilight/{p-8359286c.entry.js → p-6b9e0168.entry.js} +1 -1
  264. package/dist/twilight/{p-0116fc35.entry.js → p-6d629a37.entry.js} +1 -1
  265. package/dist/twilight/{p-132d9742.entry.js → p-6f64aca2.entry.js} +1 -1
  266. package/dist/twilight/{p-2df4e63a.entry.js → p-70e1cddf.entry.js} +1 -1
  267. package/dist/twilight/{p-62690afe.entry.js → p-722a1d49.entry.js} +1 -1
  268. package/dist/twilight/{p-de0ce00a.entry.js → p-72f1eb9d.entry.js} +1 -1
  269. package/dist/twilight/{p-ef9567bd.entry.js → p-73be3e2b.entry.js} +1 -1
  270. package/dist/twilight/{p-ea82cbb3.entry.js → p-78fce485.entry.js} +1 -1
  271. package/dist/twilight/{p-1f3d5e3e.entry.js → p-7a7efc1e.entry.js} +1 -1
  272. package/dist/twilight/{p-0f68e660.entry.js → p-80986ebf.entry.js} +1 -1
  273. package/dist/twilight/{p-0c6290e0.entry.js → p-8456fc2b.entry.js} +1 -1
  274. package/dist/twilight/{p-c7728312.entry.js → p-845d6d9f.entry.js} +1 -1
  275. package/dist/twilight/p-8Kr0yg20.js +5 -0
  276. package/dist/twilight/{p-1ea04494.entry.js → p-8bb54ab1.entry.js} +1 -1
  277. package/dist/twilight/{p-e8f7ed7b.entry.js → p-8bd722e2.entry.js} +1 -1
  278. package/dist/twilight/{p-744c8337.entry.js → p-942a9370.entry.js} +1 -1
  279. package/dist/twilight/{p-157873ee.entry.js → p-96028c8b.entry.js} +1 -1
  280. package/dist/twilight/{p-94f18d97.entry.js → p-96b9ba64.entry.js} +1 -1
  281. package/dist/twilight/{p-02946cf5.entry.js → p-98de4c11.entry.js} +1 -1
  282. package/dist/twilight/{p-f37cc89b.entry.js → p-9a30c09e.entry.js} +1 -1
  283. package/dist/twilight/{p-22fc1505.entry.js → p-9bc1676b.entry.js} +1 -1
  284. package/dist/twilight/{p-D-pGRpnm.js → p-B-WH3lv4.js} +1 -1
  285. package/dist/twilight/{p-D33qIToB.js → p-BNVpOSmh.js} +1 -1
  286. package/dist/twilight/{p-DYkb22mH.js → p-B_znruWg.js} +1 -1
  287. package/dist/twilight/{p-CcijNXaY.js → p-BwJOl2G2.js} +1 -1
  288. package/dist/twilight/{p-DOJsGUE-.js → p-CSgEn8iE.js} +1 -1
  289. package/dist/twilight/{p-Kqe2HSSB.js → p-C_-Bd9R8.js} +1 -1
  290. package/dist/twilight/{p-DIJHCILO.js → p-DCZHPueO.js} +1 -1
  291. package/dist/twilight/{p-DEtbzT0x.js → p-DdILhElb.js} +1 -1
  292. package/dist/twilight/{p-c840c67c.entry.js → p-a3630cbf.entry.js} +1 -1
  293. package/dist/twilight/{p-cba57487.entry.js → p-a98f0462.entry.js} +1 -1
  294. package/dist/twilight/{p-316be8a7.entry.js → p-ac719286.entry.js} +1 -1
  295. package/dist/twilight/{p-e1b853b2.entry.js → p-b68679eb.entry.js} +1 -1
  296. package/dist/twilight/{p-afc17688.entry.js → p-b7ed8e39.entry.js} +1 -1
  297. package/dist/twilight/{p-9b9c2adf.entry.js → p-b85d3a54.entry.js} +1 -1
  298. package/dist/twilight/{p-0cb5d9c6.entry.js → p-b8e56642.entry.js} +1 -1
  299. package/dist/twilight/{p-6b28397a.entry.js → p-c0d00e89.entry.js} +1 -1
  300. package/dist/twilight/{p-1c7999c9.entry.js → p-c1039294.entry.js} +1 -1
  301. package/dist/twilight/{p-b6674eab.entry.js → p-c6c496ec.entry.js} +1 -1
  302. package/dist/twilight/{p-f5f448b7.entry.js → p-ca838de0.entry.js} +1 -1
  303. package/dist/twilight/{p-6bacaa30.entry.js → p-cf742415.entry.js} +1 -1
  304. package/dist/twilight/{p-b13efdf9.entry.js → p-d062becf.entry.js} +1 -1
  305. package/dist/twilight/{p-bf95f806.entry.js → p-d7cb0405.entry.js} +1 -1
  306. package/dist/twilight/{p-2bb95112.entry.js → p-d9360a47.entry.js} +1 -1
  307. package/dist/twilight/{p-19d9b193.entry.js → p-db5d3d60.entry.js} +1 -1
  308. package/dist/twilight/{p-34ab84e2.entry.js → p-dc226d90.entry.js} +1 -1
  309. package/dist/twilight/{p-e4ba8208.entry.js → p-df6a4f43.entry.js} +1 -1
  310. package/dist/twilight/{p-6339c31f.entry.js → p-e12337ab.entry.js} +1 -1
  311. package/dist/twilight/{p-82430d31.entry.js → p-e54b95a6.entry.js} +1 -1
  312. package/dist/twilight/{p-b7f5a180.entry.js → p-e5f0a5f3.entry.js} +1 -1
  313. package/dist/twilight/{p-84ed92e9.entry.js → p-e62dd507.entry.js} +1 -1
  314. package/dist/twilight/{p-3b45e21a.entry.js → p-e7ac6421.entry.js} +1 -1
  315. package/dist/twilight/{p-161fce7a.entry.js → p-e93bcc6e.entry.js} +1 -1
  316. package/dist/twilight/{p-2d8d9829.entry.js → p-eb91b45a.entry.js} +1 -1
  317. package/dist/twilight/{p-56d064c0.entry.js → p-f1eca4da.entry.js} +1 -1
  318. package/dist/twilight/{p-6cffd732.entry.js → p-f6b40c3f.entry.js} +1 -1
  319. package/dist/twilight/{p-1c75de1e.entry.js → p-f6dc6e8a.entry.js} +1 -1
  320. package/dist/twilight/{p-2a865b0b.entry.js → p-fd4786e4.entry.js} +1 -1
  321. package/dist/twilight/{p-9ab10a2f.entry.js → p-ff64dad1.entry.js} +1 -1
  322. package/dist/twilight/twilight.esm.js +1 -1
  323. package/package.json +5 -5
  324. package/dist/twilight/p-84ee1884.entry.js +0 -4
  325. package/dist/twilight/p-C670SYee.js +0 -5
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r,h as e,H as t,F as n}from"./p-C670SYee.js";function i(r,e){if("string"!=typeof r)return r??e;const t=r.trim();if(!t)return e;try{return JSON.parse(t)}catch{return e}}function a(r){if(r)return"string"==typeof r?i(r,void 0):r}function o(r,e="ar"){const[t,n]=String(r).trim().split(":").map(Number);if(!Number.isFinite(t)||!Number.isFinite(n))return r;const i=new Date(2e3,0,1,t,n),a={hour:"numeric",minute:"2-digit",hour12:!0};try{return i.toLocaleTimeString(e,a)}catch{return i.toLocaleTimeString("ar",a)}}const s=class{constructor(e){r(this,e),this.stackCards=!1,this.isLoading=!1,this.translationDefaults={"pages.orders.pickup_instructions":{ar:"معلومات إرشادية",en:"Pickup instructions"}}}componentWillLoad(){return salla.lang.onLoaded?.((()=>this.registerTranslationDefaults())),this.registerTranslationDefaults(),this.getBranchData()}registerTranslationDefaults(){if(!salla?.lang?.addBulk)return;const r=Object.entries(this.translationDefaults).reduce(((r,[e,t])=>(salla.lang.get?.(e)===e&&(r[e]=t),r)),{});Object.keys(r).length&&salla.lang.addBulk(r)}async getBranchData(){const r=salla.config.get("page.id");if(r){this.isLoading=!0;try{const e=await salla.order.api.getBranchDetails(r);this.branchData=this.parseBranchResponse(e)}catch(r){this.notifyApiError(r)}finally{this.isLoading=!1}}}parseBranchResponse(r){const e=r?.data?.data||r?.data||r;return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"branch")?e.branch?a(e.branch):void 0:a(e)}getApiErrorMessage(r){return r?.response?.data?.error?.message||r?.response?.data?.message}notifyApiError(r){const e=this.getApiErrorMessage(r);e&&salla.notify.error(e)}label(r,e){return salla.lang.getWithDefault(r,e)}bilingualLabel(r){const e=this.translationDefaults[r],t=(salla.lang.locale||"ar").startsWith("en")?"en":"ar";return this.label(r,e?.[t]??e?.ar??r)}get preparationText(){const r=this.branchData?.preparation_time_range;if(!r?.from||!r?.to)return"";const e=salla.helpers.number(r.from.value),t=salla.helpers.number(r.to.value),n=this.unitLabel(r.to.unit),i=e===t?e:`⁦${e}-${t}⁩`;return this.label("pages.orders.pickup_ready_after","جاهز للاستلام بعد :time").replace(":time",`${i} ${n}`)}unitLabel(r){const e=function(r){const e=String(r||"hour").toLowerCase();return e.startsWith("min")?"minute":e.startsWith("day")?"day":"hour"}(r);return"minute"===e?this.label("pages.checkout.minute","دقيقة"):"day"===e?this.label("pages.checkout.day","يوم"):this.label("pages.checkout.hour","ساعة")}get workingHoursItems(){const r=this.branchData;if(!r)return[];if(!0===r.always_open||1===r.always_open||"1"===r.always_open)return[this.label("pages.orders.branch_always_open","مفتوح على مدار الساعة")];const e=salla.lang.locale||"ar";return(r.working_hours||[]).filter((r=>r?.name&&r.times?.length)).map((r=>{const t=r.times[0];return`${r.name}: ${o(t.from,e)} - ${o(t.to,e)}`}))}get branchAddress(){return this.branchData?.address||""}get mapUrl(){const r=this.branchData?.location;if(null!=r?.lat&&null!=r?.lng)return`https://www.google.com/maps?q=${r.lat},${r.lng}`}get phone(){return function(r){const e=i(r,null),t=e&&"object"==typeof e?e.phone:"";return"string"==typeof t?t.trim():""}(this.branchData?.contacts)}get pickupInstructions(){const r=this.branchData?.pickup_instructions;return"string"==typeof r&&r.trim()?r:""}renderPickupInstructions(){const r=this.pickupInstructions;return r?e("div",{class:"s-order-branch-instructions"},e("div",{class:"s-order-branch-instructions-heading"},e("span",{"aria-hidden":"true"},e("i",{class:"sicon-info"})),e("span",null,this.bilingualLabel("pages.orders.pickup_instructions"))),e("p",{class:"s-order-branch-instructions-content"},r)):null}renderDetailsColumn(){const r=this.phone;return r?e("div",{class:"s-order-branch-details"},e("div",{class:"s-order-branch-info-card"},e("span",{class:"s-order-branch-info-icon",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>phone-talking</title>\n<path d="M18.667 8c2.941 0 5.333 2.392 5.333 5.333 0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333c0-4.412-3.588-8-8-8-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333zM18.667 2.667c5.881 0 10.667 4.785 10.667 10.667 0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333c0-7.352-5.981-13.333-13.333-13.333-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333zM26.939 17.831c-1.568-1.568-4.119-1.568-5.689 0l-2.567 2.568c-3.064-1.499-5.584-4.019-7.083-7.083l2.569-2.567c1.567-1.569 1.567-4.121-0.001-5.689l-3.88-3.881c-1.521-1.521-4.169-1.521-5.691 0l-1.847 1.847c-2.22 2.22-3.183 5.408-2.573 8.527 1.979 10.144 10.127 18.292 20.271 20.271 0.617 0.121 1.236 0.18 1.851 0.18 2.491 0 4.895-0.972 6.676-2.752l1.847-1.847c1.569-1.569 1.569-4.12 0-5.689zM28.936 25.517l-1.847 1.847c-1.591 1.591-3.876 2.281-6.131 1.841-9.089-1.776-16.388-9.075-18.163-18.165-0.439-2.247 0.249-4.539 1.841-6.129l1.847-1.847c0.256-0.257 0.597-0.397 0.959-0.397s0.701 0.14 0.959 0.397l3.883 3.883c0.528 0.528 0.528 1.389 0 1.917l-3.22 3.219c-0.383 0.384-0.496 0.959-0.288 1.457 1.815 4.34 5.344 7.868 9.684 9.684 0.5 0.205 1.075 0.095 1.457-0.288l3.219-3.219c0.528-0.531 1.389-0.529 1.917-0.001l3.883 3.883c0.529 0.529 0.529 1.389 0 1.919z"></path>\n</svg>\n'}),e("div",{class:"s-order-branch-info-text"},e("span",{class:"s-order-branch-info-label"},this.label("pages.orders.branch_contacts","ارقام التواصل")),e("span",{class:"s-order-branch-info-value",dir:"ltr"},r)))):null}renderWorkingHoursCard(){const r=this.workingHoursItems;return r.length?e("div",{class:"s-order-branch-info-card s-order-branch-hours-card"},e("span",{class:"s-order-branch-info-icon","aria-hidden":"true"},e("i",{class:"sicon-calendar-alt"})),e("div",{class:"s-order-branch-info-text"},e("span",{class:"s-order-branch-info-label"},this.label("pages.checkout.working_hours","ساعات العمل")),e("div",{class:"s-order-branch-hours-list"},r.map(((r,t)=>e("span",{key:`${r}-${t}`,class:"s-order-branch-hours-item"},r)))))):null}renderBranchIdentityCard(){const r=this.branchData,t=this.branchAddress,n=this.preparationText;return e("section",{class:"s-order-branch-card"},e("div",{class:"s-order-branch-location"},e("div",{class:"s-order-branch-identity"},e("span",{class:"s-order-branch-store-icon"},e("i",{class:"sicon-store","aria-hidden":"true"})),e("div",{class:"s-order-branch-text"},e("div",{class:"s-order-branch-name-row"},r?.name?e("span",{class:"s-order-branch-name"},r.name):null,n?e("span",{class:"s-order-branch-ready"},n):null),t?e("span",{class:"s-order-branch-address"},t):null)),this.mapUrl?e("div",{class:"s-order-branch-actions"},e("a",{href:this.mapUrl,target:"_blank",rel:"noopener noreferrer",class:"s-order-branch-map-link"},e("span",null,this.label("pages.orders.branch_map","موقع الفرع علي الخريطة")),e("span",{class:"s-order-branch-action-icon",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.95448 2.79419C9.7395 1.84477 11.132 1.37005 11.881 2.11902C12.6299 2.86799 12.1552 4.2605 11.2058 7.04551L10.5593 8.94203C9.83014 11.0809 9.46556 12.1503 8.8646 12.2388C8.70303 12.2626 8.53577 12.2483 8.37592 12.197C7.78135 12.0061 7.46705 10.8785 6.83846 8.62339C6.69903 8.12319 6.62932 7.87308 6.47057 7.68206C6.4245 7.62662 6.37338 7.5755 6.31794 7.52943C6.12692 7.37068 5.87681 7.30097 5.37661 7.16154C3.12148 6.53295 1.99391 6.21865 1.80302 5.62408C1.7517 5.46423 1.73738 5.29698 1.76117 5.1354C1.84968 4.53444 2.91911 4.16986 5.05797 3.44072L6.95448 2.79419Z" stroke="currentColor" stroke-width="1.5"/>\n</svg>\n'}))):null),this.renderPickupInstructions())}render(){return this.isLoading||!this.branchData?e(t,{class:"s-order-branch-wrapper"}):e(t,{class:"s-order-branch-wrapper"},this.stackCards?e(n,null,this.renderBranchIdentityCard(),this.renderDetailsColumn()):e("div",{class:"s-order-branch-container"},this.renderBranchIdentityCard(),this.renderDetailsColumn()),this.renderWorkingHoursCard())}};s.style="/*!twlt*/:host{display:block}.s-order-branch-ready{background-color:color-mix(in srgb, var(--color-primary) 30%, transparent)}.s-order-branch-instructions{background-color:color-mix(in srgb, var(--color-primary) 10%, transparent)}.s-order-branch-instructions-content{white-space:pre-wrap}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-order-branch-wrapper{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:1rem;font-family:inherit}.s-order-branch-container{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));align-items:stretch;gap:1rem}@media (min-width: 768px){.s-order-branch-container{grid-template-columns:repeat(2, minmax(0, 1fr))}}.s-order-branch-details{display:grid;align-content:stretch;gap:1rem}.s-order-branch-info-card{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:0.75rem;border-radius:0.5rem;border-width:1px;border-color:var(--color-border,#eee);background-color:var(--color-surface,#fff);padding:0.75rem}.s-order-branch-info-text{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;gap:3px;text-align:start}.s-order-branch-info-label{font-size:0.75rem;line-height:1rem;line-height:1.35;color:var(--color-text-secondary,#666)}.s-order-branch-info-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.875rem;line-height:1.25rem;font-weight:500;line-height:1.45;color:var(--color-text-primary,#1d1d1d)}.s-order-branch-hours-card .s-order-branch-info-text{gap:0.5rem}.s-order-branch-hours-list{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem}.s-order-branch-hours-item{display:inline-flex;align-items:center;white-space:nowrap;border-radius:0.375rem;border-width:1px;border-color:var(--color-border,#eee);padding-left:0.625rem;padding-right:0.625rem;padding-top:0.25rem;padding-bottom:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:500;line-height:1.45;color:var(--color-text-primary,#1d1d1d)}.s-order-branch-info-action{display:inline-flex;height:3rem;width:3rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:0.5rem;background-color:var(--color-surface-secondary,#f6f6f6);color:var(--color-text-primary,#2b2d34);text-decoration-line:none}.s-order-branch-info-icon{display:inline-flex;height:3rem;width:3rem;align-items:center;justify-content:center;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:22px;color:currentColor}.s-order-branch-info-icon svg{height:1.5rem;width:1.5rem;fill:currentColor}.s-order-branch-card{display:flex;flex-direction:column;gap:0.75rem;border-radius:0.5rem;border-width:1px;border-color:var(--color-border,#eee);background-color:var(--color-surface,#fff);padding:1rem}@media (min-width: 768px){.s-order-branch-card{padding:1.25rem}}.s-order-branch-ready{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;border-radius:9999px;border-width:1px;border-color:var(--color-primary,#236e4c);padding-left:0.75rem;padding-right:0.75rem;padding-top:0.25rem;padding-bottom:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:500;color:var(--color-primary-dark,#0c2519)}.s-order-branch-location{display:flex;min-height:52px;flex-direction:column;align-items:stretch;justify-content:space-between;gap:1.5rem}@media (min-width: 768px){.s-order-branch-location{flex-direction:row;align-items:center}}.s-order-branch-identity{display:flex;min-width:0px;flex:1 1 0%;align-items:center;gap:0.75rem}.s-order-branch-store-icon{display:inline-flex;height:3rem;width:3rem;flex-shrink:0;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:1.5rem;line-height:2rem;color:var(--color-text-primary,#2b2d34)}.s-order-branch-store-icon svg{height:1em;width:1em;fill:currentColor}.s-order-branch-text{display:flex;min-width:0px;flex-direction:column;gap:0.25rem;text-align:start}.s-order-branch-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem}.s-order-branch-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:500;line-height:1.45;color:var(--color-text-primary,#2b2d34)}.s-order-branch-address{overflow-wrap:break-word;font-size:0.75rem;line-height:1rem;line-height:1.45;color:var(--color-text-secondary,#666)}.s-order-branch-instructions{border-radius:0.5rem;padding:1rem;text-align:start}.s-order-branch-instructions-heading{margin-bottom:0.5rem;display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;line-height:1rem;line-height:1.35}.s-order-branch-instructions-heading i{font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.s-order-branch-instructions-content{margin:0px;overflow-wrap:break-word;font-size:0.875rem;line-height:1.25rem;font-weight:600;line-height:1.6}.s-order-branch-actions{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;gap:0.75rem}@media (min-width: 768px){.s-order-branch-actions{flex-wrap:nowrap}}.s-order-branch-map-link{display:inline-flex;min-height:2.25rem;align-items:center;justify-content:center;gap:0.5rem;white-space:nowrap;border-radius:0.375rem;border-width:1px;border-color:var(--color-primary,#236e4c);padding-left:0.875rem;padding-right:0.875rem;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;line-height:1.2;color:var(--color-primary,#236e4c);text-decoration-line:none}.s-order-branch-action-icon{display:inline-flex;align-items:center;justify-content:center;font-size:0.875rem;line-height:1.25rem;color:currentColor}.s-order-branch-action-icon svg{height:1em;width:1em}";export{s as salla_order_branch}
4
+ import{r,h as e,H as t,F as n}from"./p-8Kr0yg20.js";function i(r,e){if("string"!=typeof r)return r??e;const t=r.trim();if(!t)return e;try{return JSON.parse(t)}catch{return e}}function a(r){if(r)return"string"==typeof r?i(r,void 0):r}function o(r,e="ar"){const[t,n]=String(r).trim().split(":").map(Number);if(!Number.isFinite(t)||!Number.isFinite(n))return r;const i=new Date(2e3,0,1,t,n),a={hour:"numeric",minute:"2-digit",hour12:!0};try{return i.toLocaleTimeString(e,a)}catch{return i.toLocaleTimeString("ar",a)}}const s=class{constructor(e){r(this,e),this.stackCards=!1,this.isLoading=!1,this.translationDefaults={"pages.orders.pickup_instructions":{ar:"معلومات إرشادية",en:"Pickup instructions"}}}componentWillLoad(){return salla.lang.onLoaded?.((()=>this.registerTranslationDefaults())),this.registerTranslationDefaults(),this.getBranchData()}registerTranslationDefaults(){if(!salla?.lang?.addBulk)return;const r=Object.entries(this.translationDefaults).reduce(((r,[e,t])=>(salla.lang.get?.(e)===e&&(r[e]=t),r)),{});Object.keys(r).length&&salla.lang.addBulk(r)}async getBranchData(){const r=salla.config.get("page.id");if(r){this.isLoading=!0;try{const e=await salla.order.api.getBranchDetails(r);this.branchData=this.parseBranchResponse(e)}catch(r){this.notifyApiError(r)}finally{this.isLoading=!1}}}parseBranchResponse(r){const e=r?.data?.data||r?.data||r;return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"branch")?e.branch?a(e.branch):void 0:a(e)}getApiErrorMessage(r){return r?.response?.data?.error?.message||r?.response?.data?.message}notifyApiError(r){const e=this.getApiErrorMessage(r);e&&salla.notify.error(e)}label(r,e){return salla.lang.getWithDefault(r,e)}bilingualLabel(r){const e=this.translationDefaults[r],t=(salla.lang.locale||"ar").startsWith("en")?"en":"ar";return this.label(r,e?.[t]??e?.ar??r)}get preparationText(){const r=this.branchData?.preparation_time_range;if(!r?.from||!r?.to)return"";const e=salla.helpers.number(r.from.value),t=salla.helpers.number(r.to.value),n=this.unitLabel(r.to.unit),i=e===t?e:`⁦${e}-${t}⁩`;return this.label("pages.orders.pickup_ready_after","جاهز للاستلام بعد :time").replace(":time",`${i} ${n}`)}unitLabel(r){const e=function(r){const e=String(r||"hour").toLowerCase();return e.startsWith("min")?"minute":e.startsWith("day")?"day":"hour"}(r);return"minute"===e?this.label("pages.checkout.minute","دقيقة"):"day"===e?this.label("pages.checkout.day","يوم"):this.label("pages.checkout.hour","ساعة")}get workingHoursItems(){const r=this.branchData;if(!r)return[];if(!0===r.always_open||1===r.always_open||"1"===r.always_open)return[this.label("pages.orders.branch_always_open","مفتوح على مدار الساعة")];const e=salla.lang.locale||"ar";return(r.working_hours||[]).filter((r=>r?.name&&r.times?.length)).map((r=>{const t=r.times[0];return`${r.name}: ${o(t.from,e)} - ${o(t.to,e)}`}))}get branchAddress(){return this.branchData?.address||""}get mapUrl(){const r=this.branchData?.location;if(null!=r?.lat&&null!=r?.lng)return`https://www.google.com/maps?q=${r.lat},${r.lng}`}get phone(){return function(r){const e=i(r,null),t=e&&"object"==typeof e?e.phone:"";return"string"==typeof t?t.trim():""}(this.branchData?.contacts)}get pickupInstructions(){const r=this.branchData?.pickup_instructions;return"string"==typeof r&&r.trim()?r:""}renderPickupInstructions(){const r=this.pickupInstructions;return r?e("div",{class:"s-order-branch-instructions"},e("div",{class:"s-order-branch-instructions-heading"},e("span",{"aria-hidden":"true"},e("i",{class:"sicon-info"})),e("span",null,this.bilingualLabel("pages.orders.pickup_instructions"))),e("p",{class:"s-order-branch-instructions-content"},r)):null}renderDetailsColumn(){const r=this.phone;return r?e("div",{class:"s-order-branch-details"},e("div",{class:"s-order-branch-info-card"},e("span",{class:"s-order-branch-info-icon",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>phone-talking</title>\n<path d="M18.667 8c2.941 0 5.333 2.392 5.333 5.333 0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333c0-4.412-3.588-8-8-8-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333zM18.667 2.667c5.881 0 10.667 4.785 10.667 10.667 0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333c0-7.352-5.981-13.333-13.333-13.333-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333zM26.939 17.831c-1.568-1.568-4.119-1.568-5.689 0l-2.567 2.568c-3.064-1.499-5.584-4.019-7.083-7.083l2.569-2.567c1.567-1.569 1.567-4.121-0.001-5.689l-3.88-3.881c-1.521-1.521-4.169-1.521-5.691 0l-1.847 1.847c-2.22 2.22-3.183 5.408-2.573 8.527 1.979 10.144 10.127 18.292 20.271 20.271 0.617 0.121 1.236 0.18 1.851 0.18 2.491 0 4.895-0.972 6.676-2.752l1.847-1.847c1.569-1.569 1.569-4.12 0-5.689zM28.936 25.517l-1.847 1.847c-1.591 1.591-3.876 2.281-6.131 1.841-9.089-1.776-16.388-9.075-18.163-18.165-0.439-2.247 0.249-4.539 1.841-6.129l1.847-1.847c0.256-0.257 0.597-0.397 0.959-0.397s0.701 0.14 0.959 0.397l3.883 3.883c0.528 0.528 0.528 1.389 0 1.917l-3.22 3.219c-0.383 0.384-0.496 0.959-0.288 1.457 1.815 4.34 5.344 7.868 9.684 9.684 0.5 0.205 1.075 0.095 1.457-0.288l3.219-3.219c0.528-0.531 1.389-0.529 1.917-0.001l3.883 3.883c0.529 0.529 0.529 1.389 0 1.919z"></path>\n</svg>\n'}),e("div",{class:"s-order-branch-info-text"},e("span",{class:"s-order-branch-info-label"},this.label("pages.orders.branch_contacts","ارقام التواصل")),e("span",{class:"s-order-branch-info-value",dir:"ltr"},r)))):null}renderWorkingHoursCard(){const r=this.workingHoursItems;return r.length?e("div",{class:"s-order-branch-info-card s-order-branch-hours-card"},e("span",{class:"s-order-branch-info-icon","aria-hidden":"true"},e("i",{class:"sicon-calendar-alt"})),e("div",{class:"s-order-branch-info-text"},e("span",{class:"s-order-branch-info-label"},this.label("pages.checkout.working_hours","ساعات العمل")),e("div",{class:"s-order-branch-hours-list"},r.map(((r,t)=>e("span",{key:`${r}-${t}`,class:"s-order-branch-hours-item"},r)))))):null}renderBranchIdentityCard(){const r=this.branchData,t=this.branchAddress,n=this.preparationText;return e("section",{class:"s-order-branch-card"},e("div",{class:"s-order-branch-location"},e("div",{class:"s-order-branch-identity"},e("span",{class:"s-order-branch-store-icon"},e("i",{class:"sicon-store","aria-hidden":"true"})),e("div",{class:"s-order-branch-text"},e("div",{class:"s-order-branch-name-row"},r?.name?e("span",{class:"s-order-branch-name"},r.name):null,n?e("span",{class:"s-order-branch-ready"},n):null),t?e("span",{class:"s-order-branch-address"},t):null)),this.mapUrl?e("div",{class:"s-order-branch-actions"},e("a",{href:this.mapUrl,target:"_blank",rel:"noopener noreferrer",class:"s-order-branch-map-link"},e("span",null,this.label("pages.orders.branch_map","موقع الفرع علي الخريطة")),e("span",{class:"s-order-branch-action-icon",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.95448 2.79419C9.7395 1.84477 11.132 1.37005 11.881 2.11902C12.6299 2.86799 12.1552 4.2605 11.2058 7.04551L10.5593 8.94203C9.83014 11.0809 9.46556 12.1503 8.8646 12.2388C8.70303 12.2626 8.53577 12.2483 8.37592 12.197C7.78135 12.0061 7.46705 10.8785 6.83846 8.62339C6.69903 8.12319 6.62932 7.87308 6.47057 7.68206C6.4245 7.62662 6.37338 7.5755 6.31794 7.52943C6.12692 7.37068 5.87681 7.30097 5.37661 7.16154C3.12148 6.53295 1.99391 6.21865 1.80302 5.62408C1.7517 5.46423 1.73738 5.29698 1.76117 5.1354C1.84968 4.53444 2.91911 4.16986 5.05797 3.44072L6.95448 2.79419Z" stroke="currentColor" stroke-width="1.5"/>\n</svg>\n'}))):null),this.renderPickupInstructions())}render(){return this.isLoading||!this.branchData?e(t,{class:"s-order-branch-wrapper"}):e(t,{class:"s-order-branch-wrapper"},this.stackCards?e(n,null,this.renderBranchIdentityCard(),this.renderDetailsColumn()):e("div",{class:"s-order-branch-container"},this.renderBranchIdentityCard(),this.renderDetailsColumn()),this.renderWorkingHoursCard())}};s.style="/*!twlt*/:host{display:block}.s-order-branch-ready{background-color:color-mix(in srgb, var(--color-primary) 30%, transparent)}.s-order-branch-instructions{background-color:color-mix(in srgb, var(--color-primary) 10%, transparent)}.s-order-branch-instructions-content{white-space:pre-wrap}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-order-branch-wrapper{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:1rem;font-family:inherit}.s-order-branch-container{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));align-items:stretch;gap:1rem}@media (min-width: 768px){.s-order-branch-container{grid-template-columns:repeat(2, minmax(0, 1fr))}}.s-order-branch-details{display:grid;align-content:stretch;gap:1rem}.s-order-branch-info-card{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:0.75rem;border-radius:0.5rem;border-width:1px;border-color:var(--color-border,#eee);background-color:var(--color-surface,#fff);padding:0.75rem}.s-order-branch-info-text{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;gap:3px;text-align:start}.s-order-branch-info-label{font-size:0.75rem;line-height:1rem;line-height:1.35;color:var(--color-text-secondary,#666)}.s-order-branch-info-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.875rem;line-height:1.25rem;font-weight:500;line-height:1.45;color:var(--color-text-primary,#1d1d1d)}.s-order-branch-hours-card .s-order-branch-info-text{gap:0.5rem}.s-order-branch-hours-list{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem}.s-order-branch-hours-item{display:inline-flex;align-items:center;white-space:nowrap;border-radius:0.375rem;border-width:1px;border-color:var(--color-border,#eee);padding-left:0.625rem;padding-right:0.625rem;padding-top:0.25rem;padding-bottom:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:500;line-height:1.45;color:var(--color-text-primary,#1d1d1d)}.s-order-branch-info-action{display:inline-flex;height:3rem;width:3rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:0.5rem;background-color:var(--color-surface-secondary,#f6f6f6);color:var(--color-text-primary,#2b2d34);text-decoration-line:none}.s-order-branch-info-icon{display:inline-flex;height:3rem;width:3rem;align-items:center;justify-content:center;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:22px;color:currentColor}.s-order-branch-info-icon svg{height:1.5rem;width:1.5rem;fill:currentColor}.s-order-branch-card{display:flex;flex-direction:column;gap:0.75rem;border-radius:0.5rem;border-width:1px;border-color:var(--color-border,#eee);background-color:var(--color-surface,#fff);padding:1rem}@media (min-width: 768px){.s-order-branch-card{padding:1.25rem}}.s-order-branch-ready{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;border-radius:9999px;border-width:1px;border-color:var(--color-primary,#236e4c);padding-left:0.75rem;padding-right:0.75rem;padding-top:0.25rem;padding-bottom:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:500;color:var(--color-primary-dark,#0c2519)}.s-order-branch-location{display:flex;min-height:52px;flex-direction:column;align-items:stretch;justify-content:space-between;gap:1.5rem}@media (min-width: 768px){.s-order-branch-location{flex-direction:row;align-items:center}}.s-order-branch-identity{display:flex;min-width:0px;flex:1 1 0%;align-items:center;gap:0.75rem}.s-order-branch-store-icon{display:inline-flex;height:3rem;width:3rem;flex-shrink:0;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:1.5rem;line-height:2rem;color:var(--color-text-primary,#2b2d34)}.s-order-branch-store-icon svg{height:1em;width:1em;fill:currentColor}.s-order-branch-text{display:flex;min-width:0px;flex-direction:column;gap:0.25rem;text-align:start}.s-order-branch-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem}.s-order-branch-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:500;line-height:1.45;color:var(--color-text-primary,#2b2d34)}.s-order-branch-address{overflow-wrap:break-word;font-size:0.75rem;line-height:1rem;line-height:1.45;color:var(--color-text-secondary,#666)}.s-order-branch-instructions{border-radius:0.5rem;padding:1rem;text-align:start}.s-order-branch-instructions-heading{margin-bottom:0.5rem;display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;line-height:1rem;line-height:1.35}.s-order-branch-instructions-heading i{font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.s-order-branch-instructions-content{margin:0px;overflow-wrap:break-word;font-size:0.875rem;line-height:1.25rem;font-weight:600;line-height:1.6}.s-order-branch-actions{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;gap:0.75rem}@media (min-width: 768px){.s-order-branch-actions{flex-wrap:nowrap}}.s-order-branch-map-link{display:inline-flex;min-height:2.25rem;align-items:center;justify-content:center;gap:0.5rem;white-space:nowrap;border-radius:0.375rem;border-width:1px;border-color:var(--color-primary,#236e4c);padding-left:0.875rem;padding-right:0.875rem;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;line-height:1.2;color:var(--color-primary,#236e4c);text-decoration-line:none}.s-order-branch-action-icon{display:inline-flex;align-items:center;justify-content:center;font-size:0.875rem;line-height:1.25rem;color:currentColor}.s-order-branch-action-icon svg{height:1em;width:1em}";export{s as salla_order_branch}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as i,h as s,H as t}from"./p-C670SYee.js";import{H as r}from"./p-00vBRoH3.js";import{H as e}from"./p-Brgf4SAC.js";import"./p-CgtvEd63.js";const a=class{constructor(s){i(this,s),this.isEnabled=!1,this.wishlistCount=0,this.wishlistLabel=salla.lang.get("common.titles.wishlist"),salla.wishlist.event.onAdded((()=>this.syncCount())),salla.wishlist.event.onRemoved((()=>this.syncCount())),salla.event.on("wishlist::storage.synced",(()=>this.syncCount()))}componentWillLoad(){return new Promise((i=>salla.onReady((()=>{const s=e.getPlanName();this.isEnabled=!!s&&["basic","plus"].includes(s),this.syncCount(),i()}))))}syncCount(){this.wishlistCount=(salla.storage.get("salla::wishlist",[])||[]).length}render(){const i=salla.config.isGuest();return!this.isEnabled||i?s(t,{hidden:!0}):s(t,null,s("a",{class:"s-wishlist-summary-wrapper",href:salla.url.get("account/wishlist"),"aria-label":this.wishlistLabel},s("i",{class:"s-wishlist-summary-icon",innerHTML:r}),this.wishlistCount>0&&s("span",{class:"s-wishlist-summary-count"},salla.helpers.number(this.wishlistCount))))}};a.style='/*!twlt*/:host{display:inline-flex;align-items:center;margin-inline-start:1rem}.hidden{display:none}.s-wishlist-summary-wrapper{position:relative;margin-inline-start:0.75rem;display:inline-flex;align-items:center;border-style:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-wishlist-summary-wrapper:hover{opacity:0.8}.s-wishlist-summary-icon{display:inline-flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-radius:9999px;border-width:1px;border-color:var(--color-border,#e5e7eb);color:var(--color-text-primary,#374151)}.s-wishlist-summary-icon svg{height:1.25rem;width:1.25rem;fill:currentColor}.s-wishlist-summary-count{position:absolute;top:-4px;left:-6px;display:inline-flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1));padding:0.25rem;font-size:0.75rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-wishlist-summary-count:where([dir="rtl"],[dir="rtl"] *){left:unset;right:-6px}';export{a as salla_wishlist_summary}
4
+ import{r as i,h as s,H as t}from"./p-8Kr0yg20.js";import{H as r}from"./p-00vBRoH3.js";import{H as e}from"./p-Brgf4SAC.js";import"./p-CgtvEd63.js";const a=class{constructor(s){i(this,s),this.isEnabled=!1,this.wishlistCount=0,this.wishlistLabel=salla.lang.get("common.titles.wishlist"),salla.wishlist.event.onAdded((()=>this.syncCount())),salla.wishlist.event.onRemoved((()=>this.syncCount())),salla.event.on("wishlist::storage.synced",(()=>this.syncCount()))}componentWillLoad(){return new Promise((i=>salla.onReady((()=>{const s=e.getPlanName();this.isEnabled=!!s&&["basic","plus"].includes(s),this.syncCount(),i()}))))}syncCount(){this.wishlistCount=(salla.storage.get("salla::wishlist",[])||[]).length}render(){const i=salla.config.isGuest();return!this.isEnabled||i?s(t,{hidden:!0}):s(t,null,s("a",{class:"s-wishlist-summary-wrapper",href:salla.url.get("account/wishlist"),"aria-label":this.wishlistLabel},s("i",{class:"s-wishlist-summary-icon",innerHTML:r}),this.wishlistCount>0&&s("span",{class:"s-wishlist-summary-count"},salla.helpers.number(this.wishlistCount))))}};a.style='/*!twlt*/:host{display:inline-flex;align-items:center;margin-inline-start:1rem}.hidden{display:none}.s-wishlist-summary-wrapper{position:relative;margin-inline-start:0.75rem;display:inline-flex;align-items:center;border-style:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-wishlist-summary-wrapper:hover{opacity:0.8}.s-wishlist-summary-icon{display:inline-flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-radius:9999px;border-width:1px;border-color:var(--color-border,#e5e7eb);color:var(--color-text-primary,#374151)}.s-wishlist-summary-icon svg{height:1.25rem;width:1.25rem;fill:currentColor}.s-wishlist-summary-count{position:absolute;top:-4px;left:-6px;display:inline-flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1));padding:0.25rem;font-size:0.75rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-wishlist-summary-count:where([dir="rtl"],[dir="rtl"] *){left:unset;right:-6px}';export{a as salla_wishlist_summary}