@salla.sa/twilight-components 2.14.376 → 2.14.378

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 (244) hide show
  1. package/dist/cjs/{filepond-Dd3I4rgw.js → filepond-QBbfa1kb.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-5djSowYt.js → filepond-plugin-file-poster-D73Ejtx6.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-Cu2EHcXR.js → filepond-plugin-file-validate-size-B9s06RWW.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-DcLyIuh_.js → filepond-plugin-file-validate-type-D0RhYoZP.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-Dqqtvcxc.js → filepond-plugin-image-edit-VMHg4Uws.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-C3GbyQ0e.js → filepond-plugin-image-exif-orientation-BRPczdYm.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-DvR00gFp.js → filepond-plugin-image-preview-CE0l5H-P.js} +1 -1
  8. package/dist/cjs/{index-DyIre-QC.js → index-BSeuTimA.js} +1 -1
  9. package/dist/cjs/{index-D3izAH5D.js → index-CfjtAMJT.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/salla-accordion-body_3.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_4.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-apps-icons.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  19. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +35 -38
  20. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  79. package/dist/cjs/twilight.cjs.js +1 -1
  80. package/dist/cjs/{vanilla-picker-RmaN5uNR.js → vanilla-picker-eNn0ke6P.js} +1 -1
  81. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +34 -37
  82. package/dist/components/index.js +2 -2
  83. package/dist/components/salla-bullet-delivery.js +34 -37
  84. package/dist/esm/{filepond-DR04w4Gj.js → filepond-buH_syGL.js} +1 -1
  85. package/dist/esm/{filepond-plugin-file-poster-B2IuQmji.js → filepond-plugin-file-poster-CrCmJw6m.js} +1 -1
  86. package/dist/esm/{filepond-plugin-file-validate-size-AvcAnLs8.js → filepond-plugin-file-validate-size-ZEbffSET.js} +1 -1
  87. package/dist/esm/{filepond-plugin-file-validate-type-Dw8J2cdC.js → filepond-plugin-file-validate-type-B8tKWOv8.js} +1 -1
  88. package/dist/esm/{filepond-plugin-image-edit-r16XZ3To.js → filepond-plugin-image-edit-DQ1j_1Hs.js} +1 -1
  89. package/dist/esm/{filepond-plugin-image-exif-orientation-Bf0AAHG5.js → filepond-plugin-image-exif-orientation-S36ZMTTn.js} +1 -1
  90. package/dist/esm/{filepond-plugin-image-preview-r-_bB1wt.js → filepond-plugin-image-preview-Ck3h57QG.js} +1 -1
  91. package/dist/esm/{index-tPV-H3dI.js → index-CLfrQ6bI.js} +2 -2
  92. package/dist/esm/{index-DCcWXApI.js → index-DoMCP0As.js} +1 -1
  93. package/dist/esm/loader.js +2 -2
  94. package/dist/esm/salla-accordion-body_3.entry.js +1 -1
  95. package/dist/esm/salla-accordion_6.entry.js +1 -1
  96. package/dist/esm/salla-add-product-button_4.entry.js +1 -1
  97. package/dist/esm/salla-advertisement.entry.js +1 -1
  98. package/dist/esm/salla-alert_2.entry.js +1 -1
  99. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  100. package/dist/esm/salla-apps-icons.entry.js +1 -1
  101. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  102. package/dist/esm/salla-bullet-delivery.entry.js +35 -38
  103. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  104. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  105. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  106. package/dist/esm/salla-contacts.entry.js +1 -1
  107. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  108. package/dist/esm/salla-count-down_2.entry.js +1 -1
  109. package/dist/esm/salla-custom-fields.entry.js +1 -1
  110. package/dist/esm/salla-filters-widget.entry.js +1 -1
  111. package/dist/esm/salla-filters.entry.js +1 -1
  112. package/dist/esm/salla-gifting.entry.js +1 -1
  113. package/dist/esm/salla-hook.entry.js +1 -1
  114. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  115. package/dist/esm/salla-installment.entry.js +1 -1
  116. package/dist/esm/salla-list-tile.entry.js +1 -1
  117. package/dist/esm/salla-localization-modal.entry.js +1 -1
  118. package/dist/esm/salla-login-modal.entry.js +1 -1
  119. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  120. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  121. package/dist/esm/salla-loyalty.entry.js +1 -1
  122. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  123. package/dist/esm/salla-menu.entry.js +1 -1
  124. package/dist/esm/salla-metadata.entry.js +1 -1
  125. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  126. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  127. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  128. package/dist/esm/salla-notification-item.entry.js +1 -1
  129. package/dist/esm/salla-notifications.entry.js +1 -1
  130. package/dist/esm/salla-offer-modal.entry.js +1 -1
  131. package/dist/esm/salla-offer.entry.js +1 -1
  132. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  133. package/dist/esm/salla-order-details-options.entry.js +1 -1
  134. package/dist/esm/salla-order-details.entry.js +1 -1
  135. package/dist/esm/salla-order-summary.entry.js +1 -1
  136. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  137. package/dist/esm/salla-orders.entry.js +1 -1
  138. package/dist/esm/salla-payments.entry.js +1 -1
  139. package/dist/esm/salla-placeholder.entry.js +1 -1
  140. package/dist/esm/salla-price-range.entry.js +1 -1
  141. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  142. package/dist/esm/salla-products-list.entry.js +1 -1
  143. package/dist/esm/salla-products-slider.entry.js +1 -1
  144. package/dist/esm/salla-progress-bar.entry.js +1 -1
  145. package/dist/esm/salla-quick-order.entry.js +1 -1
  146. package/dist/esm/salla-rating-modal.entry.js +1 -1
  147. package/dist/esm/salla-scopes.entry.js +1 -1
  148. package/dist/esm/salla-search.entry.js +1 -1
  149. package/dist/esm/salla-skeleton.entry.js +1 -1
  150. package/dist/esm/salla-slider.entry.js +1 -1
  151. package/dist/esm/salla-social-share.entry.js +1 -1
  152. package/dist/esm/salla-social.entry.js +1 -1
  153. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  154. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  155. package/dist/esm/salla-tooltip.entry.js +1 -1
  156. package/dist/esm/salla-trust-badges.entry.js +1 -1
  157. package/dist/esm/salla-user-menu.entry.js +1 -1
  158. package/dist/esm/salla-user-profile.entry.js +1 -1
  159. package/dist/esm/salla-user-settings.entry.js +1 -1
  160. package/dist/esm/salla-verify.entry.js +1 -1
  161. package/dist/esm/salla-wallet.entry.js +1 -1
  162. package/dist/esm/twilight.js +2 -2
  163. package/dist/esm/{vanilla-picker-r-Gkwefa.js → vanilla-picker-C-jd9K2P.js} +1 -1
  164. package/dist/twilight/{p-2be9a0eb.entry.js → p-0197571f.entry.js} +1 -1
  165. package/dist/twilight/{p-869a1401.entry.js → p-0260619d.entry.js} +1 -1
  166. package/dist/twilight/{p-c2d8dc32.entry.js → p-03f8ad9e.entry.js} +1 -1
  167. package/dist/twilight/{p-54455d78.entry.js → p-051e3dda.entry.js} +1 -1
  168. package/dist/twilight/{p-66f6c1b8.entry.js → p-053b71e6.entry.js} +1 -1
  169. package/dist/twilight/{p-b3201ba3.entry.js → p-08073b13.entry.js} +1 -1
  170. package/dist/twilight/{p-61e496a2.entry.js → p-0c94a0ba.entry.js} +1 -1
  171. package/dist/twilight/{p-5a18cf72.entry.js → p-0d89d8e1.entry.js} +1 -1
  172. package/dist/twilight/{p-77e92155.entry.js → p-14b1e2d0.entry.js} +1 -1
  173. package/dist/twilight/{p-4ee14ebc.entry.js → p-20e9c331.entry.js} +1 -1
  174. package/dist/twilight/{p-c11c511c.entry.js → p-26032f24.entry.js} +1 -1
  175. package/dist/twilight/{p-3ccb51d4.entry.js → p-30a0ad26.entry.js} +1 -1
  176. package/dist/twilight/{p-dc76fb54.entry.js → p-36bbf0f4.entry.js} +1 -1
  177. package/dist/twilight/{p-d5b58a28.entry.js → p-36e8eb7c.entry.js} +1 -1
  178. package/dist/twilight/{p-830b2283.entry.js → p-377e1c79.entry.js} +1 -1
  179. package/dist/twilight/{p-3302cd20.entry.js → p-38191a0e.entry.js} +1 -1
  180. package/dist/twilight/{p-36f1db49.entry.js → p-3b80943f.entry.js} +1 -1
  181. package/dist/twilight/{p-b984cb48.entry.js → p-3d4a1b1b.entry.js} +1 -1
  182. package/dist/twilight/{p-f8938945.entry.js → p-4440a6ff.entry.js} +1 -1
  183. package/dist/twilight/{p-fdadc257.entry.js → p-4886e880.entry.js} +1 -1
  184. package/dist/twilight/{p-533fa9c6.entry.js → p-48e70cb0.entry.js} +1 -1
  185. package/dist/twilight/{p-7e8959cf.entry.js → p-4a09504d.entry.js} +1 -1
  186. package/dist/twilight/{p-9829cf1f.entry.js → p-4c99593f.entry.js} +1 -1
  187. package/dist/twilight/{p-4c8241d3.entry.js → p-4e06ddfa.entry.js} +1 -1
  188. package/dist/twilight/{p-5e5e095f.entry.js → p-4e42d162.entry.js} +1 -1
  189. package/dist/twilight/{p-569595a3.entry.js → p-4f076de1.entry.js} +1 -1
  190. package/dist/twilight/{p-b722032c.entry.js → p-5840e752.entry.js} +1 -1
  191. package/dist/twilight/{p-3714d18d.entry.js → p-6907c710.entry.js} +1 -1
  192. package/dist/twilight/{p-d591f0ca.entry.js → p-6af3c1f6.entry.js} +1 -1
  193. package/dist/twilight/{p-929c7727.entry.js → p-6b471877.entry.js} +1 -1
  194. package/dist/twilight/{p-b072eac3.entry.js → p-6de27f49.entry.js} +1 -1
  195. package/dist/twilight/{p-937aeda4.entry.js → p-74855829.entry.js} +1 -1
  196. package/dist/twilight/{p-e2a36803.entry.js → p-76c9b4a4.entry.js} +1 -1
  197. package/dist/twilight/{p-5472995e.entry.js → p-76f2f01b.entry.js} +1 -1
  198. package/dist/twilight/{p-52c45fad.entry.js → p-79f8ca6d.entry.js} +1 -1
  199. package/dist/twilight/{p-3253720a.entry.js → p-7ad96323.entry.js} +1 -1
  200. package/dist/twilight/{p-3d5b254f.entry.js → p-7e4be0c4.entry.js} +1 -1
  201. package/dist/twilight/{p-50472812.entry.js → p-8717ee61.entry.js} +1 -1
  202. package/dist/twilight/{p-0769d555.entry.js → p-95ee89d0.entry.js} +1 -1
  203. package/dist/twilight/{p-H_UM2yHj.js → p-BFDfgy7S.js} +1 -1
  204. package/dist/twilight/{p-DDEnR3gK.js → p-CENly0Ds.js} +1 -1
  205. package/dist/twilight/{p-tPV-H3dI.js → p-CLfrQ6bI.js} +1 -1
  206. package/dist/twilight/{p-BDVIVE46.js → p-CfPcIuUK.js} +1 -1
  207. package/dist/twilight/{p-BppJ4FQ3.js → p-DX7cHKQU.js} +1 -1
  208. package/dist/twilight/{p-dpTfUdyk.js → p-DcXc0Zp9.js} +1 -1
  209. package/dist/twilight/{p-u-3-Hs-0.js → p-Dh0de9Ra.js} +1 -1
  210. package/dist/twilight/{p-CUyHDQ4B.js → p-Dmq3escH.js} +1 -1
  211. package/dist/twilight/{p-B0EU8pwr.js → p-EHepWG4x.js} +2 -2
  212. package/dist/twilight/{p-B6ISKHWd.js → p-SC958swN.js} +1 -1
  213. package/dist/twilight/{p-e63aa139.entry.js → p-a01445f4.entry.js} +1 -1
  214. package/dist/twilight/{p-b325dc37.entry.js → p-a034c54c.entry.js} +1 -1
  215. package/dist/twilight/{p-4fc3ca9d.entry.js → p-a19b6177.entry.js} +1 -1
  216. package/dist/twilight/{p-36b5c441.entry.js → p-a3d6030f.entry.js} +1 -1
  217. package/dist/twilight/{p-511056d9.entry.js → p-a7754ee7.entry.js} +1 -1
  218. package/dist/twilight/{p-0579e2e1.entry.js → p-ae633d64.entry.js} +1 -1
  219. package/dist/twilight/{p-d3e38f65.entry.js → p-b5366d24.entry.js} +1 -1
  220. package/dist/twilight/{p-470418bf.entry.js → p-bb910a1c.entry.js} +1 -1
  221. package/dist/twilight/{p-6b104508.entry.js → p-bf34a39d.entry.js} +1 -1
  222. package/dist/twilight/{p-3916a321.entry.js → p-bffdfc94.entry.js} +1 -1
  223. package/dist/twilight/{p-6105ab3d.entry.js → p-ca30c6ee.entry.js} +1 -1
  224. package/dist/twilight/{p-e36d3b80.entry.js → p-cc3fbf6a.entry.js} +1 -1
  225. package/dist/twilight/{p-27daf422.entry.js → p-d294fb4e.entry.js} +1 -1
  226. package/dist/twilight/{p-37f63c73.entry.js → p-d8a664c6.entry.js} +1 -1
  227. package/dist/twilight/{p-448c10ba.entry.js → p-d9cf9ee1.entry.js} +1 -1
  228. package/dist/twilight/{p-0f29b15e.entry.js → p-dcb89afa.entry.js} +1 -1
  229. package/dist/twilight/{p-d7f95270.entry.js → p-dcddba20.entry.js} +1 -1
  230. package/dist/twilight/{p-15492069.entry.js → p-e0bcc8d3.entry.js} +1 -1
  231. package/dist/twilight/{p-95d2137a.entry.js → p-e15cc4e1.entry.js} +1 -1
  232. package/dist/twilight/{p-81b354ff.entry.js → p-e3b54aea.entry.js} +1 -1
  233. package/dist/twilight/{p-80fc55b0.entry.js → p-ec02e14c.entry.js} +1 -1
  234. package/dist/twilight/{p-bf4b33e8.entry.js → p-f14a6a4a.entry.js} +1 -1
  235. package/dist/twilight/{p-829773bc.entry.js → p-f350c729.entry.js} +1 -1
  236. package/dist/twilight/{p-203f7b3e.entry.js → p-f618bcba.entry.js} +1 -1
  237. package/dist/twilight/{p-12aedefe.entry.js → p-f9978b96.entry.js} +1 -1
  238. package/dist/twilight/{p-ae065b2e.entry.js → p-fc72ec63.entry.js} +1 -1
  239. package/dist/twilight/{p-9f14e44b.entry.js → p-fd97048c.entry.js} +1 -1
  240. package/dist/twilight/{p-bc7861ff.entry.js → p-fdbe9004.entry.js} +1 -1
  241. package/dist/twilight/{p-a5f7cd65.entry.js → p-fe8869f5.entry.js} +1 -1
  242. package/dist/twilight/twilight.esm.js +1 -1
  243. package/dist/types/components/salla-bullet-delivery/helpers.d.ts +4 -4
  244. package/package.json +5 -5
@@ -1716,15 +1716,18 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
1716
1716
  selected: this.selectedSessionAddress,
1717
1717
  onClick: () => this.handleSessionAddressSelect(),
1718
1718
  }), this.savedAddresses.map((address) => {
1719
- const addrLine1 = address.formatted?.address_one ?? address.short_address ?? "";
1720
- const line1 = [address.building_number, address.street]
1719
+ const builtLine1 = [address.building_number, address.street]
1721
1720
  .filter(Boolean)
1722
- .join("، ") || addrLine1;
1723
- const districtName = address.district?.name ?? "";
1724
- const cityName = address.city?.name ?? "";
1725
- const line2 = this.isRTL && districtName
1726
- ? `${Salla.lang.get("pages.checkout.district_field")} ${districtName}، ${cityName}`
1727
- : [districtName, cityName].filter(Boolean).join("، ");
1721
+ .join("، ");
1722
+ const line1 = builtLine1 || address.formatted?.address_one || address.short_address || "";
1723
+ const builtLine2 = [
1724
+ address.district?.name,
1725
+ address.city?.name,
1726
+ address.country?.name,
1727
+ ]
1728
+ .filter(Boolean)
1729
+ .join("، ");
1730
+ const line2 = (builtLine2 || address.formatted?.address_two) ?? "";
1728
1731
  const inCoverage = address.is_in_coverage !== false;
1729
1732
  return this.renderAddressRow({
1730
1733
  key: String(address.id),
@@ -1850,35 +1853,35 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
1850
1853
  }
1851
1854
  overrideScopeSwitchUI() {
1852
1855
  const intent = this.getStoredIntent();
1853
- if (!intent)
1854
- return;
1855
- const scopesTriggerButton = Array.from(document.querySelectorAll('[onclick*="scopes"]')).find((el) => /scopes/.test(el.getAttribute("onclick") || ""));
1856
- if (!scopesTriggerButton)
1856
+ const btn = document.querySelector('[onclick*="scopes"]');
1857
+ if (!btn)
1857
1858
  return;
1858
- scopesTriggerButton.onclick = () => {
1859
- this.open();
1860
- };
1861
- const isBranch = intent.type === "branch";
1862
- const truncate = (str, max) => str && str.length > max ? `${str.slice(0, max)}...` : (str ?? "");
1863
- const labelText = isBranch
1864
- ? `${Salla.lang.get("mobile_app.strings.pickup")} ${Salla.lang.get("common.elements.from")} ${truncate(intent.branch_details?.name, 20)}`
1865
- : `${Salla.lang.get("mobile_app.strings.delivery")} ${Salla.lang.get("common.elements.to")} ${truncate(intent.address_details?.city?.name, 10)}`;
1866
- const spanLabel = scopesTriggerButton.querySelector('span:not([class*="sicon"]):not([class*="icon"])');
1867
- if (spanLabel) {
1868
- spanLabel.textContent = labelText;
1859
+ const trunc = (s, max) => s && s.length > max ? `${s.slice(0, max)}...` : (s ?? "");
1860
+ const label = !intent
1861
+ ? Salla.lang.get("common.titles.shipping")
1862
+ : intent.type === "branch"
1863
+ ? `${Salla.lang.get("mobile_app.strings.pickup")} ${Salla.lang.get("common.elements.from")} ${trunc(intent.branch_details?.name, 20)}`
1864
+ : `${Salla.lang.get("mobile_app.strings.delivery")} ${Salla.lang.get("common.elements.to")} ${trunc(intent.address_details?.city?.name, 10)}`;
1865
+ btn.style.display = intent ? "" : "none";
1866
+ btn.onclick = () => this.open();
1867
+ const span = btn.querySelector('span:not([class*="sicon"]):not([class*="icon"])');
1868
+ if (span) {
1869
+ span.textContent = label;
1869
1870
  }
1870
1871
  else {
1871
- // Replace bare text nodes (e.g. " متجر السعودية") directly on the button
1872
- for (const node of Array.from(scopesTriggerButton.childNodes)) {
1873
- if (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) {
1874
- node.textContent = ` ${labelText}`;
1875
- break;
1876
- }
1877
- }
1872
+ const textNode = Array.from(btn.childNodes).find((n) => n.nodeType === Node.TEXT_NODE && n.textContent?.trim());
1873
+ if (textNode)
1874
+ textNode.textContent = ` ${label}`;
1878
1875
  }
1879
1876
  }
1880
1877
  async componentWillLoad() {
1881
1878
  await Salla.onReady();
1879
+ try {
1880
+ this.overrideScopeSwitchUI();
1881
+ }
1882
+ catch (e) {
1883
+ console.warn("SallaBulletDelivery: overrideScopeSwitchUI failed", e);
1884
+ }
1882
1885
  Salla.event.on("bullet-delivery::open", this.bulletDeliveryOpenHandler);
1883
1886
  this.closeHandler = this.close.bind(this);
1884
1887
  Salla.event.on("bullet-delivery::close", this.closeHandler);
@@ -1896,15 +1899,9 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
1896
1899
  else {
1897
1900
  Salla.event.on(this.cartItemAddedEvent, this.cartItemAddedHandler);
1898
1901
  }
1899
- try {
1900
- this.overrideScopeSwitchUI();
1901
- }
1902
- catch (e) {
1903
- console.warn("SallaBulletDelivery: overrideScopeSwitchUI failed", e);
1904
- }
1905
1902
  }
1906
1903
  render() {
1907
- return (h(Host, { key: '85d39043bd2ff75d9803d9beea9f5a7aee57e4d8', class: "s-bullet-delivery" }, h("salla-modal", { key: 'e76271a780d30c05085bbbbd589016405d7111d4', ref: (modal) => {
1904
+ return (h(Host, { key: '5d79f6404692b4a68504770a54f46c9e5161e533', class: "s-bullet-delivery" }, h("salla-modal", { key: 'f123012f8593e20eeb14ebf59fc8dc5af9bbe12b', ref: (modal) => {
1908
1905
  this.modal = modal;
1909
1906
  }, isClosable: !this.isRequired, class: "s-bullet-delivery-modal", isLoading: this.loading, width: "sm" }, this.loading ? (this.renderSkeleton()) : (h("div", { class: "s-bullet-delivery-inner" }, this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm())))));
1910
1907
  }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-tPV-H3dI.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CLfrQ6bI.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-tPV-H3dI.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CLfrQ6bI.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-tPV-H3dI.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CLfrQ6bI.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-tPV-H3dI.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CLfrQ6bI.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-tPV-H3dI.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CLfrQ6bI.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-tPV-H3dI.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CLfrQ6bI.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-tPV-H3dI.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CLfrQ6bI.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {