@salla.sa/twilight-theme-engine 1.0.176 → 1.0.178

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 (313) hide show
  1. package/dist/{AddToCartForm-QT5UA3CN.js → AddToCartForm-KN67K7AQ.js} +5 -5
  2. package/dist/{AddToCartForm-QT5UA3CN.js.map → AddToCartForm-KN67K7AQ.js.map} +1 -1
  3. package/dist/{BlogAuthorPage-RU5RJ36O.js → BlogAuthorPage-E74LKVMH.js} +32 -32
  4. package/dist/{BlogAuthorPage-RU5RJ36O.js.map → BlogAuthorPage-E74LKVMH.js.map} +1 -1
  5. package/dist/{BlogCategoryPage-POATYETR.js → BlogCategoryPage-77QEH2VO.js} +32 -32
  6. package/dist/{BlogCategoryPage-POATYETR.js.map → BlogCategoryPage-77QEH2VO.js.map} +1 -1
  7. package/dist/{BlogPage-UHSWMYLC.js → BlogPage-2XST3XR2.js} +30 -30
  8. package/dist/{BlogPage-UHSWMYLC.js.map → BlogPage-2XST3XR2.js.map} +1 -1
  9. package/dist/{BlogSinglePage-3FGA4BJ4.js → BlogSinglePage-4ML5A2OB.js} +30 -30
  10. package/dist/{BlogSinglePage-3FGA4BJ4.js.map → BlogSinglePage-4ML5A2OB.js.map} +1 -1
  11. package/dist/{BlogTagPage-QMPB7VTU.js → BlogTagPage-7XP4FXK6.js} +32 -32
  12. package/dist/{BlogTagPage-QMPB7VTU.js.map → BlogTagPage-7XP4FXK6.js.map} +1 -1
  13. package/dist/{BrandsPage-5GPQ2KHE.js → BrandsPage-YKYYYVDU.js} +31 -31
  14. package/dist/{BrandsPage-5GPQ2KHE.js.map → BrandsPage-YKYYYVDU.js.map} +1 -1
  15. package/dist/{Breadcrumb-BH3ONIPV.js → Breadcrumb-FNWRNQ24.js} +30 -30
  16. package/dist/{Breadcrumb-BH3ONIPV.js.map → Breadcrumb-FNWRNQ24.js.map} +1 -1
  17. package/dist/{CartItem-UYVIMHKF.js → CartItem-WHBZF4JF.js} +30 -30
  18. package/dist/{CartItem-UYVIMHKF.js.map → CartItem-WHBZF4JF.js.map} +1 -1
  19. package/dist/{CartSummary-R2MGYHGL.js → CartSummary-Z4AC2L2X.js} +30 -30
  20. package/dist/{CartSummary-R2MGYHGL.js.map → CartSummary-Z4AC2L2X.js.map} +1 -1
  21. package/dist/{Copyright-6V6GPZGQ.js → Copyright-P3W6UZVC.js} +5 -5
  22. package/dist/{Copyright-6V6GPZGQ.js.map → Copyright-P3W6UZVC.js.map} +1 -1
  23. package/dist/{CustomerLayout-KUN5Y7V2.js → CustomerLayout-RB44K7JV.js} +30 -30
  24. package/dist/{CustomerLayout-KUN5Y7V2.js.map → CustomerLayout-RB44K7JV.js.map} +1 -1
  25. package/dist/{Footer-PMYHIZND.js → Footer-RMNHNTZM.js} +6 -6
  26. package/dist/{Footer-PMYHIZND.js.map → Footer-RMNHNTZM.js.map} +1 -1
  27. package/dist/GoogleTag-IBUOI4BU.js +15 -0
  28. package/dist/{GoogleTag-FFE6DKJB.js.map → GoogleTag-IBUOI4BU.js.map} +1 -1
  29. package/dist/Header-3W742LRD.js +25 -0
  30. package/dist/{Header-IA52TT5T.js.map → Header-3W742LRD.js.map} +1 -1
  31. package/dist/{LatestProducts-JGPDDNNU.js → LatestProducts-QFRDI7TQ.js} +33 -33
  32. package/dist/{LatestProducts-JGPDDNNU.js.map → LatestProducts-QFRDI7TQ.js.map} +1 -1
  33. package/dist/{LoyaltyPage-7ASSXSUR.js → LoyaltyPage-N5D5Q3NL.js} +30 -30
  34. package/dist/{LoyaltyPage-7ASSXSUR.js.map → LoyaltyPage-N5D5Q3NL.js.map} +1 -1
  35. package/dist/{LoyaltyPointsPage-JGJDLFD4.js → LoyaltyPointsPage-G3XGE4HT.js} +9 -9
  36. package/dist/{LoyaltyPointsPage-JGJDLFD4.js.map → LoyaltyPointsPage-G3XGE4HT.js.map} +1 -1
  37. package/dist/{MainMenu-BV5EUPQA.js → MainMenu-4GUU2NAF.js} +10 -10
  38. package/dist/{MainMenu-BV5EUPQA.js.map → MainMenu-4GUU2NAF.js.map} +1 -1
  39. package/dist/MaintenancePage-3YUQXVN2.js +7 -0
  40. package/dist/{MaintenancePage-SFZN7G27.js.map → MaintenancePage-3YUQXVN2.js.map} +1 -1
  41. package/dist/MasterLayout-BJA7J6RF.js +62 -0
  42. package/dist/{MasterLayout-BAS3C6F7.js.map → MasterLayout-BJA7J6RF.js.map} +1 -1
  43. package/dist/{MobileMenu-NNTHF55K.js → MobileMenu-ORFZ7IKI.js} +31 -31
  44. package/dist/{MobileMenu-NNTHF55K.js.map → MobileMenu-ORFZ7IKI.js.map} +1 -1
  45. package/dist/NoContent-7YUWEXI2.js +6 -0
  46. package/dist/{NoContent-7A7OR2NZ.js.map → NoContent-7YUWEXI2.js.map} +1 -1
  47. package/dist/{NotificationsPage-V53SLBUM.js → NotificationsPage-2S4PT63V.js} +30 -30
  48. package/dist/{NotificationsPage-V53SLBUM.js.map → NotificationsPage-2S4PT63V.js.map} +1 -1
  49. package/dist/{OrderSinglePage-XBQKE3N3.js → OrderSinglePage-3VW6TSFJ.js} +31 -31
  50. package/dist/{OrderSinglePage-XBQKE3N3.js.map → OrderSinglePage-3VW6TSFJ.js.map} +1 -1
  51. package/dist/{OrdersPage-WJMZXXSZ.js → OrdersPage-26MUU5J7.js} +30 -30
  52. package/dist/{OrdersPage-WJMZXXSZ.js.map → OrdersPage-26MUU5J7.js.map} +1 -1
  53. package/dist/{PageSingle-PWET5BZI.js → PageSingle-5BBSPDMH.js} +9 -9
  54. package/dist/{PageSingle-PWET5BZI.js.map → PageSingle-5BBSPDMH.js.map} +1 -1
  55. package/dist/{ProductDetails-34NBQEOU.js → ProductDetails-E7OGZJ3G.js} +10 -10
  56. package/dist/{ProductDetails-34NBQEOU.js.map → ProductDetails-E7OGZJ3G.js.map} +1 -1
  57. package/dist/{ProfilePage-ZSDAABMO.js → ProfilePage-KKHEJCAF.js} +30 -30
  58. package/dist/{ProfilePage-ZSDAABMO.js.map → ProfilePage-KKHEJCAF.js.map} +1 -1
  59. package/dist/{ReviewsPage-S26YWYSA.js → ReviewsPage-364PK4XM.js} +5 -5
  60. package/dist/{ReviewsPage-S26YWYSA.js.map → ReviewsPage-364PK4XM.js.map} +1 -1
  61. package/dist/{SeoCartWidget-MJM2BULX.js → SeoCartWidget-GLTV6C4J.js} +30 -30
  62. package/dist/{SeoCartWidget-MJM2BULX.js.map → SeoCartWidget-GLTV6C4J.js.map} +1 -1
  63. package/dist/{SettingsPage-SCOXVETM.js → SettingsPage-A2H4WKQ3.js} +30 -30
  64. package/dist/{SettingsPage-SCOXVETM.js.map → SettingsPage-A2H4WKQ3.js.map} +1 -1
  65. package/dist/StoreClosedNotification-QAMEUZQD.js +63 -0
  66. package/dist/{StoreClosedNotification-BWLM3TSR.js.map → StoreClosedNotification-QAMEUZQD.js.map} +1 -1
  67. package/dist/{TestimonialsPage-NQNLCF2Y.js → TestimonialsPage-2UH35ZXG.js} +9 -9
  68. package/dist/{TestimonialsPage-NQNLCF2Y.js.map → TestimonialsPage-2UH35ZXG.js.map} +1 -1
  69. package/dist/{ThankYouPage-VCTEVJH4.js → ThankYouPage-2LUGL65U.js} +30 -30
  70. package/dist/{ThankYouPage-VCTEVJH4.js.map → ThankYouPage-2LUGL65U.js.map} +1 -1
  71. package/dist/{WalletPage-G5VWQOUU.js → WalletPage-WNZP37OM.js} +31 -31
  72. package/dist/{WalletPage-G5VWQOUU.js.map → WalletPage-WNZP37OM.js.map} +1 -1
  73. package/dist/{WebMcpTools-WGNAGUC5.js → WebMcpTools-F663L3R7.js} +10 -10
  74. package/dist/{WebMcpTools-WGNAGUC5.js.map → WebMcpTools-F663L3R7.js.map} +1 -1
  75. package/dist/{WishlistPage-WHGH7DND.js → WishlistPage-4G4B5ZE5.js} +32 -32
  76. package/dist/{WishlistPage-WHGH7DND.js.map → WishlistPage-4G4B5ZE5.js.map} +1 -1
  77. package/dist/api/advertisement.js +5 -5
  78. package/dist/api/apps.js +5 -5
  79. package/dist/api/blog.js +7 -7
  80. package/dist/api/brands.js +7 -7
  81. package/dist/api/cart.js +7 -7
  82. package/dist/api/category.js +7 -7
  83. package/dist/api/client.d.ts.map +1 -1
  84. package/dist/api/client.js +4 -4
  85. package/dist/api/custom-url.js +5 -5
  86. package/dist/api/home.js +5 -5
  87. package/dist/api/loyalty.js +7 -7
  88. package/dist/api/menu.js +5 -5
  89. package/dist/api/notification.js +5 -5
  90. package/dist/api/order.js +7 -7
  91. package/dist/api/page.js +7 -7
  92. package/dist/api/product.js +7 -7
  93. package/dist/api/profile.js +4 -4
  94. package/dist/api/store.js +6 -6
  95. package/dist/api/translations.js +5 -5
  96. package/dist/api/user.js +5 -5
  97. package/dist/api/wallet.js +5 -5
  98. package/dist/api/wishlist.js +8 -8
  99. package/dist/{chunk-HDMJAFT3.js → chunk-2AF6PXGC.js} +5 -5
  100. package/dist/{chunk-HDMJAFT3.js.map → chunk-2AF6PXGC.js.map} +1 -1
  101. package/dist/{chunk-AGIUKHXV.js → chunk-2I4H5BQU.js} +4 -4
  102. package/dist/{chunk-AGIUKHXV.js.map → chunk-2I4H5BQU.js.map} +1 -1
  103. package/dist/{chunk-CFEWWFEN.js → chunk-2NT6SBRT.js} +3 -3
  104. package/dist/{chunk-CFEWWFEN.js.map → chunk-2NT6SBRT.js.map} +1 -1
  105. package/dist/{chunk-566KBAYZ.js → chunk-2QQSSJKZ.js} +32 -30
  106. package/dist/chunk-2QQSSJKZ.js.map +1 -0
  107. package/dist/{chunk-AXW67SY7.js → chunk-3GFD7WTJ.js} +3 -3
  108. package/dist/{chunk-AXW67SY7.js.map → chunk-3GFD7WTJ.js.map} +1 -1
  109. package/dist/{chunk-4Q3JJMOZ.js → chunk-4DPJCTO3.js} +3 -3
  110. package/dist/{chunk-4Q3JJMOZ.js.map → chunk-4DPJCTO3.js.map} +1 -1
  111. package/dist/{chunk-FFN6BITL.js → chunk-4EQ2XUD2.js} +3 -3
  112. package/dist/{chunk-FFN6BITL.js.map → chunk-4EQ2XUD2.js.map} +1 -1
  113. package/dist/{chunk-3VNSBUJZ.js → chunk-4MKA22LE.js} +11 -6
  114. package/dist/chunk-4MKA22LE.js.map +1 -0
  115. package/dist/{chunk-SULITXPN.js → chunk-4R5DOFG3.js} +7 -7
  116. package/dist/{chunk-SULITXPN.js.map → chunk-4R5DOFG3.js.map} +1 -1
  117. package/dist/{chunk-AUXPH2TA.js → chunk-5P477R4M.js} +4 -4
  118. package/dist/{chunk-AUXPH2TA.js.map → chunk-5P477R4M.js.map} +1 -1
  119. package/dist/{chunk-KDIG3QCW.js → chunk-6AK5XDNZ.js} +3 -3
  120. package/dist/{chunk-KDIG3QCW.js.map → chunk-6AK5XDNZ.js.map} +1 -1
  121. package/dist/{chunk-4YGE3R2I.js → chunk-7JGHOV3X.js} +8 -8
  122. package/dist/{chunk-4YGE3R2I.js.map → chunk-7JGHOV3X.js.map} +1 -1
  123. package/dist/{chunk-4RUBZXPF.js → chunk-7JNZQKJ3.js} +3 -3
  124. package/dist/{chunk-4RUBZXPF.js.map → chunk-7JNZQKJ3.js.map} +1 -1
  125. package/dist/{chunk-IDFWFDVF.js → chunk-7TAKJT7L.js} +3 -3
  126. package/dist/{chunk-IDFWFDVF.js.map → chunk-7TAKJT7L.js.map} +1 -1
  127. package/dist/{chunk-E32SOLND.js → chunk-7WJ5YLUV.js} +8 -8
  128. package/dist/{chunk-E32SOLND.js.map → chunk-7WJ5YLUV.js.map} +1 -1
  129. package/dist/{chunk-HPVUYINL.js → chunk-7XSTKJK7.js} +7 -7
  130. package/dist/{chunk-HPVUYINL.js.map → chunk-7XSTKJK7.js.map} +1 -1
  131. package/dist/{chunk-OCJ27ZAK.js → chunk-AODCG7WZ.js} +4 -4
  132. package/dist/{chunk-OCJ27ZAK.js.map → chunk-AODCG7WZ.js.map} +1 -1
  133. package/dist/{chunk-CKD5JKG3.js → chunk-AWANNFME.js} +6 -6
  134. package/dist/{chunk-CKD5JKG3.js.map → chunk-AWANNFME.js.map} +1 -1
  135. package/dist/{chunk-KF3XLB3G.js → chunk-BFSGYXFL.js} +7 -7
  136. package/dist/{chunk-KF3XLB3G.js.map → chunk-BFSGYXFL.js.map} +1 -1
  137. package/dist/{chunk-2IXYMLTH.js → chunk-BSJBPL3O.js} +4 -4
  138. package/dist/{chunk-2IXYMLTH.js.map → chunk-BSJBPL3O.js.map} +1 -1
  139. package/dist/{chunk-CTPS4ZS6.js → chunk-C7WEJHTK.js} +10 -10
  140. package/dist/{chunk-CTPS4ZS6.js.map → chunk-C7WEJHTK.js.map} +1 -1
  141. package/dist/{chunk-B676EPJV.js → chunk-CACGTFUX.js} +4 -4
  142. package/dist/{chunk-B676EPJV.js.map → chunk-CACGTFUX.js.map} +1 -1
  143. package/dist/{chunk-N6ULPDDG.js → chunk-DQKUMGEK.js} +7 -7
  144. package/dist/{chunk-N6ULPDDG.js.map → chunk-DQKUMGEK.js.map} +1 -1
  145. package/dist/{chunk-TZLEEM7E.js → chunk-E36SKXG2.js} +3 -3
  146. package/dist/{chunk-TZLEEM7E.js.map → chunk-E36SKXG2.js.map} +1 -1
  147. package/dist/{chunk-BYMOPN2S.js → chunk-EDCNCBSC.js} +5 -4
  148. package/dist/chunk-EDCNCBSC.js.map +1 -0
  149. package/dist/{chunk-BCBA2ZV3.js → chunk-EEI5I5PL.js} +3 -3
  150. package/dist/{chunk-BCBA2ZV3.js.map → chunk-EEI5I5PL.js.map} +1 -1
  151. package/dist/{chunk-FFENW3YJ.js → chunk-ENXFWV3Z.js} +4 -4
  152. package/dist/{chunk-FFENW3YJ.js.map → chunk-ENXFWV3Z.js.map} +1 -1
  153. package/dist/{chunk-IS3VOJCA.js → chunk-G5VJKMKU.js} +5 -5
  154. package/dist/{chunk-IS3VOJCA.js.map → chunk-G5VJKMKU.js.map} +1 -1
  155. package/dist/{chunk-GHKOMS3G.js → chunk-H73VXFYO.js} +3 -3
  156. package/dist/{chunk-GHKOMS3G.js.map → chunk-H73VXFYO.js.map} +1 -1
  157. package/dist/{chunk-2RFDWWXH.js → chunk-HJZJTZD6.js} +9 -9
  158. package/dist/{chunk-2RFDWWXH.js.map → chunk-HJZJTZD6.js.map} +1 -1
  159. package/dist/{chunk-F6GOQAYU.js → chunk-JCYX7HXB.js} +26 -10
  160. package/dist/chunk-JCYX7HXB.js.map +1 -0
  161. package/dist/{chunk-FQI2VU5F.js → chunk-JFAYJBLJ.js} +4 -4
  162. package/dist/{chunk-FQI2VU5F.js.map → chunk-JFAYJBLJ.js.map} +1 -1
  163. package/dist/{chunk-SYFXZF6E.js → chunk-KBOBADKK.js} +5 -5
  164. package/dist/{chunk-SYFXZF6E.js.map → chunk-KBOBADKK.js.map} +1 -1
  165. package/dist/{chunk-OB5UOBBR.js → chunk-MOF4DY5N.js} +4 -4
  166. package/dist/{chunk-OB5UOBBR.js.map → chunk-MOF4DY5N.js.map} +1 -1
  167. package/dist/{chunk-CCK6LWFC.js → chunk-N7SDFCJG.js} +5 -5
  168. package/dist/{chunk-CCK6LWFC.js.map → chunk-N7SDFCJG.js.map} +1 -1
  169. package/dist/{chunk-O6P7J6UH.js → chunk-NGA74AJ3.js} +5 -5
  170. package/dist/{chunk-O6P7J6UH.js.map → chunk-NGA74AJ3.js.map} +1 -1
  171. package/dist/{chunk-NCFKY53L.js → chunk-NM4KWMCR.js} +5 -5
  172. package/dist/{chunk-NCFKY53L.js.map → chunk-NM4KWMCR.js.map} +1 -1
  173. package/dist/{chunk-NG4LXTDV.js → chunk-PCPERWKJ.js} +4 -4
  174. package/dist/{chunk-NG4LXTDV.js.map → chunk-PCPERWKJ.js.map} +1 -1
  175. package/dist/{chunk-AWV3WEKH.js → chunk-PLD6KSYE.js} +10 -2
  176. package/dist/chunk-PLD6KSYE.js.map +1 -0
  177. package/dist/{chunk-PZ4ARDUK.js → chunk-PPTHMKKL.js} +3 -3
  178. package/dist/{chunk-PZ4ARDUK.js.map → chunk-PPTHMKKL.js.map} +1 -1
  179. package/dist/{chunk-KEUMXH2M.js → chunk-QHYIQLJ7.js} +4 -4
  180. package/dist/{chunk-KEUMXH2M.js.map → chunk-QHYIQLJ7.js.map} +1 -1
  181. package/dist/{chunk-DESKQPN3.js → chunk-QNWO52KK.js} +5 -5
  182. package/dist/{chunk-DESKQPN3.js.map → chunk-QNWO52KK.js.map} +1 -1
  183. package/dist/{chunk-TH3ZNTOU.js → chunk-QT2D7JMW.js} +3 -3
  184. package/dist/{chunk-TH3ZNTOU.js.map → chunk-QT2D7JMW.js.map} +1 -1
  185. package/dist/{chunk-GAREXAQZ.js → chunk-RLZUJSEZ.js} +3 -3
  186. package/dist/{chunk-GAREXAQZ.js.map → chunk-RLZUJSEZ.js.map} +1 -1
  187. package/dist/{chunk-XWIABNUJ.js → chunk-SF46OQ4Z.js} +3 -3
  188. package/dist/{chunk-XWIABNUJ.js.map → chunk-SF46OQ4Z.js.map} +1 -1
  189. package/dist/{chunk-FJ5DPNKV.js → chunk-TARGBVMN.js} +3 -3
  190. package/dist/{chunk-FJ5DPNKV.js.map → chunk-TARGBVMN.js.map} +1 -1
  191. package/dist/{chunk-2UQBY2JI.js → chunk-THFF2FSI.js} +3 -3
  192. package/dist/{chunk-2UQBY2JI.js.map → chunk-THFF2FSI.js.map} +1 -1
  193. package/dist/{chunk-JHOIRMUZ.js → chunk-TPHLHWCB.js} +4 -4
  194. package/dist/{chunk-JHOIRMUZ.js.map → chunk-TPHLHWCB.js.map} +1 -1
  195. package/dist/{chunk-BD3Z5OWG.js → chunk-UBIFYEHW.js} +4 -4
  196. package/dist/{chunk-BD3Z5OWG.js.map → chunk-UBIFYEHW.js.map} +1 -1
  197. package/dist/{chunk-XCBGONNP.js → chunk-UTP3UKCB.js} +3 -3
  198. package/dist/{chunk-XCBGONNP.js.map → chunk-UTP3UKCB.js.map} +1 -1
  199. package/dist/{chunk-RRRRPHCM.js → chunk-VCPCJ55V.js} +4 -4
  200. package/dist/{chunk-RRRRPHCM.js.map → chunk-VCPCJ55V.js.map} +1 -1
  201. package/dist/{chunk-ED5QRB6D.js → chunk-VDTDYLVU.js} +5 -5
  202. package/dist/{chunk-ED5QRB6D.js.map → chunk-VDTDYLVU.js.map} +1 -1
  203. package/dist/{chunk-6L27TXQZ.js → chunk-VLL4GO7G.js} +14 -6
  204. package/dist/chunk-VLL4GO7G.js.map +1 -0
  205. package/dist/{chunk-I2A2IK4A.js → chunk-VPBV2BQV.js} +3 -3
  206. package/dist/{chunk-I2A2IK4A.js.map → chunk-VPBV2BQV.js.map} +1 -1
  207. package/dist/{chunk-SP2RMSEL.js → chunk-VV5MI7CL.js} +4 -4
  208. package/dist/{chunk-SP2RMSEL.js.map → chunk-VV5MI7CL.js.map} +1 -1
  209. package/dist/{chunk-V6SWJNAL.js → chunk-VXF7HAHK.js} +19 -19
  210. package/dist/{chunk-V6SWJNAL.js.map → chunk-VXF7HAHK.js.map} +1 -1
  211. package/dist/{chunk-4QJXNAAZ.js → chunk-VZ5EMKBD.js} +9 -8
  212. package/dist/chunk-VZ5EMKBD.js.map +1 -0
  213. package/dist/{chunk-VZUVEJHL.js → chunk-WACEL34M.js} +4 -4
  214. package/dist/{chunk-VZUVEJHL.js.map → chunk-WACEL34M.js.map} +1 -1
  215. package/dist/{chunk-J7LRXZCI.js → chunk-WN573HB3.js} +5 -5
  216. package/dist/{chunk-J7LRXZCI.js.map → chunk-WN573HB3.js.map} +1 -1
  217. package/dist/{chunk-5QOFXY4E.js → chunk-XV2KLAYG.js} +5 -5
  218. package/dist/{chunk-5QOFXY4E.js.map → chunk-XV2KLAYG.js.map} +1 -1
  219. package/dist/{chunk-NTWKO5UW.js → chunk-YF72DLML.js} +3 -3
  220. package/dist/{chunk-NTWKO5UW.js.map → chunk-YF72DLML.js.map} +1 -1
  221. package/dist/{chunk-L2ZEGMRQ.js → chunk-Z3DFIJCE.js} +4 -4
  222. package/dist/{chunk-L2ZEGMRQ.js.map → chunk-Z3DFIJCE.js.map} +1 -1
  223. package/dist/{chunk-33FWLJXY.js → chunk-ZH76QNED.js} +3 -3
  224. package/dist/{chunk-33FWLJXY.js.map → chunk-ZH76QNED.js.map} +1 -1
  225. package/dist/{chunk-JNMOVCPD.js → chunk-ZMOAJ562.js} +5 -5
  226. package/dist/{chunk-JNMOVCPD.js.map → chunk-ZMOAJ562.js.map} +1 -1
  227. package/dist/{chunk-VVNHQ7PM.js → chunk-ZO56PBTD.js} +4 -4
  228. package/dist/{chunk-VVNHQ7PM.js.map → chunk-ZO56PBTD.js.map} +1 -1
  229. package/dist/components/cart/index.js +1 -1
  230. package/dist/components/common/index.js +3 -3
  231. package/dist/components/drawer/index.js +28 -28
  232. package/dist/components/home/index.js +33 -33
  233. package/dist/components/layout/index.js +7 -7
  234. package/dist/components/product/index.js +30 -30
  235. package/dist/components/store/index.js +30 -30
  236. package/dist/components/toast/index.js +5 -5
  237. package/dist/components/tracking/index.js +10 -10
  238. package/dist/custom-urls-OV5L65QA.js +17 -0
  239. package/dist/{custom-urls-PBKPXJJJ.js.map → custom-urls-OV5L65QA.js.map} +1 -1
  240. package/dist/dev/editor/index.js +3 -3
  241. package/dist/dev/index.js +3 -3
  242. package/dist/document-class-VJN4AHON.js +39 -0
  243. package/dist/{document-class-ATOAYJOT.js.map → document-class-VJN4AHON.js.map} +1 -1
  244. package/dist/hooks/index.js +28 -28
  245. package/dist/hooks/useComments.js +4 -4
  246. package/dist/hooks/useGtm.js +28 -28
  247. package/dist/hooks/useMoney.js +28 -28
  248. package/dist/hooks/useProduct.js +4 -4
  249. package/dist/hooks/useStore.js +28 -28
  250. package/dist/hooks/useUser.js +6 -6
  251. package/dist/hooks/useWishlist.js +4 -4
  252. package/dist/index.js +28 -28
  253. package/dist/native-app/index.js +4 -4
  254. package/dist/navigation-DZCTOUGV.js +15 -0
  255. package/dist/{navigation-OEJAG6MZ.js.map → navigation-DZCTOUGV.js.map} +1 -1
  256. package/dist/{navigation-UYBDYGHP.js → navigation-LZ6YYSKB.js} +9 -9
  257. package/dist/{navigation-UYBDYGHP.js.map → navigation-LZ6YYSKB.js.map} +1 -1
  258. package/dist/{not-found-TDMLTOHR.js → not-found-LM3CWGPG.js} +31 -31
  259. package/dist/{not-found-TDMLTOHR.js.map → not-found-LM3CWGPG.js.map} +1 -1
  260. package/dist/providers/LinkProvider.d.ts.map +1 -1
  261. package/dist/providers/NavigationProvider.d.ts.map +1 -1
  262. package/dist/providers/TwilightProvider.d.ts.map +1 -1
  263. package/dist/providers/index.js +28 -28
  264. package/dist/routes/account/orders.js +9 -9
  265. package/dist/routes/account.js +18 -18
  266. package/dist/routes/blog.js +13 -13
  267. package/dist/routes/brands.js +9 -9
  268. package/dist/routes/cart.js +37 -37
  269. package/dist/routes/home.js +34 -34
  270. package/dist/routes/index.js +13 -13
  271. package/dist/routes/loyalty.js +10 -10
  272. package/dist/routes/page.js +9 -9
  273. package/dist/routes/product-listing.js +38 -38
  274. package/dist/routes/product.js +37 -37
  275. package/dist/routes/seo-redirects.js +13 -13
  276. package/dist/routes/testimonials.js +5 -5
  277. package/dist/routes/thank-you.js +9 -9
  278. package/dist/skeleton.js +34 -34
  279. package/dist/{store-lookup-2SZWBD7K.js → store-lookup-535R3FGU.js} +12 -12
  280. package/dist/{store-lookup-2SZWBD7K.js.map → store-lookup-535R3FGU.js.map} +1 -1
  281. package/dist/tanstack/middleware/twilight.d.ts.map +1 -1
  282. package/dist/tanstack.js +30 -28
  283. package/dist/tanstack.js.map +1 -1
  284. package/dist/twilight/context.d.ts +13 -3
  285. package/dist/twilight/context.d.ts.map +1 -1
  286. package/dist/utils/baseHead.js +3 -3
  287. package/dist/utils/cookies.d.ts +49 -7
  288. package/dist/utils/cookies.d.ts.map +1 -1
  289. package/dist/utils/index.js +7 -7
  290. package/dist/utils/runtime-env.d.ts +9 -0
  291. package/dist/utils/runtime-env.d.ts.map +1 -1
  292. package/dist/utils/sdk-helpers.d.ts +9 -3
  293. package/dist/utils/sdk-helpers.d.ts.map +1 -1
  294. package/dist/utils/theme-version.d.ts +23 -0
  295. package/dist/utils/theme-version.d.ts.map +1 -1
  296. package/dist/vite/index.js +5 -5
  297. package/package.json +1 -1
  298. package/dist/GoogleTag-FFE6DKJB.js +0 -15
  299. package/dist/Header-IA52TT5T.js +0 -25
  300. package/dist/MaintenancePage-SFZN7G27.js +0 -7
  301. package/dist/MasterLayout-BAS3C6F7.js +0 -62
  302. package/dist/NoContent-7A7OR2NZ.js +0 -6
  303. package/dist/StoreClosedNotification-BWLM3TSR.js +0 -63
  304. package/dist/chunk-3VNSBUJZ.js.map +0 -1
  305. package/dist/chunk-4QJXNAAZ.js.map +0 -1
  306. package/dist/chunk-566KBAYZ.js.map +0 -1
  307. package/dist/chunk-6L27TXQZ.js.map +0 -1
  308. package/dist/chunk-AWV3WEKH.js.map +0 -1
  309. package/dist/chunk-BYMOPN2S.js.map +0 -1
  310. package/dist/chunk-F6GOQAYU.js.map +0 -1
  311. package/dist/custom-urls-PBKPXJJJ.js +0 -17
  312. package/dist/document-class-ATOAYJOT.js +0 -39
  313. package/dist/navigation-OEJAG6MZ.js +0 -15
@@ -1,9 +1,9 @@
1
- export { customUrl } from '../chunk-4Q3JJMOZ.js';
2
- import '../chunk-3VNSBUJZ.js';
1
+ export { customUrl } from '../chunk-4DPJCTO3.js';
2
+ import '../chunk-4MKA22LE.js';
3
3
  import '../chunk-Z5M4YYWT.js';
4
- import '../chunk-F6GOQAYU.js';
5
- import '../chunk-6L27TXQZ.js';
6
- import '../chunk-AWV3WEKH.js';
4
+ import '../chunk-JCYX7HXB.js';
5
+ import '../chunk-VLL4GO7G.js';
6
+ import '../chunk-PLD6KSYE.js';
7
7
  import '../chunk-T72DAX7R.js';
8
8
  import '../chunk-DGUM43GV.js';
9
9
  //# sourceMappingURL=custom-url.js.map
package/dist/api/home.js CHANGED
@@ -1,9 +1,9 @@
1
- export { home } from '../chunk-TZLEEM7E.js';
2
- import '../chunk-3VNSBUJZ.js';
1
+ export { home } from '../chunk-E36SKXG2.js';
2
+ import '../chunk-4MKA22LE.js';
3
3
  import '../chunk-Z5M4YYWT.js';
4
- import '../chunk-F6GOQAYU.js';
5
- import '../chunk-6L27TXQZ.js';
6
- import '../chunk-AWV3WEKH.js';
4
+ import '../chunk-JCYX7HXB.js';
5
+ import '../chunk-VLL4GO7G.js';
6
+ import '../chunk-PLD6KSYE.js';
7
7
  import '../chunk-T72DAX7R.js';
8
8
  import '../chunk-DGUM43GV.js';
9
9
  //# sourceMappingURL=home.js.map
@@ -1,12 +1,12 @@
1
- export { loyalty } from '../chunk-OB5UOBBR.js';
2
- import '../chunk-4QJXNAAZ.js';
1
+ export { loyalty } from '../chunk-MOF4DY5N.js';
2
+ import '../chunk-VZ5EMKBD.js';
3
3
  import '../chunk-OUW6WESU.js';
4
- import '../chunk-3VNSBUJZ.js';
4
+ import '../chunk-4MKA22LE.js';
5
5
  import '../chunk-Z5M4YYWT.js';
6
- import '../chunk-GHKOMS3G.js';
7
- import '../chunk-F6GOQAYU.js';
8
- import '../chunk-6L27TXQZ.js';
9
- import '../chunk-AWV3WEKH.js';
6
+ import '../chunk-H73VXFYO.js';
7
+ import '../chunk-JCYX7HXB.js';
8
+ import '../chunk-VLL4GO7G.js';
9
+ import '../chunk-PLD6KSYE.js';
10
10
  import '../chunk-T72DAX7R.js';
11
11
  import '../chunk-DF6FBKDN.js';
12
12
  import '../chunk-DGUM43GV.js';
package/dist/api/menu.js CHANGED
@@ -1,9 +1,9 @@
1
- export { menu } from '../chunk-RRRRPHCM.js';
2
- import '../chunk-3VNSBUJZ.js';
1
+ export { menu } from '../chunk-VCPCJ55V.js';
2
+ import '../chunk-4MKA22LE.js';
3
3
  import '../chunk-Z5M4YYWT.js';
4
- import '../chunk-F6GOQAYU.js';
5
- import '../chunk-6L27TXQZ.js';
6
- import '../chunk-AWV3WEKH.js';
4
+ import '../chunk-JCYX7HXB.js';
5
+ import '../chunk-VLL4GO7G.js';
6
+ import '../chunk-PLD6KSYE.js';
7
7
  import '../chunk-T72DAX7R.js';
8
8
  import '../chunk-DGUM43GV.js';
9
9
  //# sourceMappingURL=menu.js.map
@@ -1,9 +1,9 @@
1
- export { notification } from '../chunk-FJ5DPNKV.js';
2
- import '../chunk-3VNSBUJZ.js';
1
+ export { notification } from '../chunk-TARGBVMN.js';
2
+ import '../chunk-4MKA22LE.js';
3
3
  import '../chunk-Z5M4YYWT.js';
4
- import '../chunk-F6GOQAYU.js';
5
- import '../chunk-6L27TXQZ.js';
6
- import '../chunk-AWV3WEKH.js';
4
+ import '../chunk-JCYX7HXB.js';
5
+ import '../chunk-VLL4GO7G.js';
6
+ import '../chunk-PLD6KSYE.js';
7
7
  import '../chunk-T72DAX7R.js';
8
8
  import '../chunk-DGUM43GV.js';
9
9
  //# sourceMappingURL=notification.js.map
package/dist/api/order.js CHANGED
@@ -1,12 +1,12 @@
1
- export { order } from '../chunk-VVNHQ7PM.js';
2
- import '../chunk-4QJXNAAZ.js';
1
+ export { order } from '../chunk-ZO56PBTD.js';
2
+ import '../chunk-VZ5EMKBD.js';
3
3
  import '../chunk-OUW6WESU.js';
4
- import '../chunk-3VNSBUJZ.js';
4
+ import '../chunk-4MKA22LE.js';
5
5
  import '../chunk-Z5M4YYWT.js';
6
- import '../chunk-GHKOMS3G.js';
7
- import '../chunk-F6GOQAYU.js';
8
- import '../chunk-6L27TXQZ.js';
9
- import '../chunk-AWV3WEKH.js';
6
+ import '../chunk-H73VXFYO.js';
7
+ import '../chunk-JCYX7HXB.js';
8
+ import '../chunk-VLL4GO7G.js';
9
+ import '../chunk-PLD6KSYE.js';
10
10
  import '../chunk-T72DAX7R.js';
11
11
  import '../chunk-DF6FBKDN.js';
12
12
  import '../chunk-DGUM43GV.js';
package/dist/api/page.js CHANGED
@@ -1,12 +1,12 @@
1
- export { page } from '../chunk-KEUMXH2M.js';
2
- import '../chunk-4QJXNAAZ.js';
1
+ export { page } from '../chunk-QHYIQLJ7.js';
2
+ import '../chunk-VZ5EMKBD.js';
3
3
  import '../chunk-OUW6WESU.js';
4
- import '../chunk-3VNSBUJZ.js';
4
+ import '../chunk-4MKA22LE.js';
5
5
  import '../chunk-Z5M4YYWT.js';
6
- import '../chunk-GHKOMS3G.js';
7
- import '../chunk-F6GOQAYU.js';
8
- import '../chunk-6L27TXQZ.js';
9
- import '../chunk-AWV3WEKH.js';
6
+ import '../chunk-H73VXFYO.js';
7
+ import '../chunk-JCYX7HXB.js';
8
+ import '../chunk-VLL4GO7G.js';
9
+ import '../chunk-PLD6KSYE.js';
10
10
  import '../chunk-T72DAX7R.js';
11
11
  import '../chunk-DF6FBKDN.js';
12
12
  import '../chunk-DGUM43GV.js';
@@ -1,12 +1,12 @@
1
- export { getProductPreview, isProductPreviewQuery, parseNextPageToken, product, productDetailQueryKey, productPreviewQueryKey, rememberProductPreview, shouldDehydrateQuery } from '../chunk-O6P7J6UH.js';
2
- import '../chunk-4QJXNAAZ.js';
1
+ export { getProductPreview, isProductPreviewQuery, parseNextPageToken, product, productDetailQueryKey, productPreviewQueryKey, rememberProductPreview, shouldDehydrateQuery } from '../chunk-NGA74AJ3.js';
2
+ import '../chunk-VZ5EMKBD.js';
3
3
  import '../chunk-OUW6WESU.js';
4
- import '../chunk-3VNSBUJZ.js';
4
+ import '../chunk-4MKA22LE.js';
5
5
  import '../chunk-Z5M4YYWT.js';
6
- import '../chunk-GHKOMS3G.js';
7
- import '../chunk-F6GOQAYU.js';
8
- import '../chunk-6L27TXQZ.js';
9
- import '../chunk-AWV3WEKH.js';
6
+ import '../chunk-H73VXFYO.js';
7
+ import '../chunk-JCYX7HXB.js';
8
+ import '../chunk-VLL4GO7G.js';
9
+ import '../chunk-PLD6KSYE.js';
10
10
  import '../chunk-T72DAX7R.js';
11
11
  import '../chunk-DF6FBKDN.js';
12
12
  import '../chunk-DGUM43GV.js';
@@ -1,8 +1,8 @@
1
- import { api } from '../chunk-3VNSBUJZ.js';
1
+ import { api } from '../chunk-4MKA22LE.js';
2
2
  import '../chunk-Z5M4YYWT.js';
3
- import '../chunk-F6GOQAYU.js';
4
- import '../chunk-6L27TXQZ.js';
5
- import '../chunk-AWV3WEKH.js';
3
+ import '../chunk-JCYX7HXB.js';
4
+ import '../chunk-VLL4GO7G.js';
5
+ import '../chunk-PLD6KSYE.js';
6
6
  import '../chunk-T72DAX7R.js';
7
7
  import '../chunk-DGUM43GV.js';
8
8
 
package/dist/api/store.js CHANGED
@@ -1,10 +1,10 @@
1
- export { store } from '../chunk-SULITXPN.js';
2
- import '../chunk-FFN6BITL.js';
3
- import '../chunk-3VNSBUJZ.js';
1
+ export { store } from '../chunk-4R5DOFG3.js';
2
+ import '../chunk-4EQ2XUD2.js';
3
+ import '../chunk-4MKA22LE.js';
4
4
  import '../chunk-Z5M4YYWT.js';
5
- import '../chunk-F6GOQAYU.js';
6
- export { resolveStoreIdentifier } from '../chunk-6L27TXQZ.js';
7
- import '../chunk-AWV3WEKH.js';
5
+ import '../chunk-JCYX7HXB.js';
6
+ export { resolveStoreIdentifier } from '../chunk-VLL4GO7G.js';
7
+ import '../chunk-PLD6KSYE.js';
8
8
  import '../chunk-T72DAX7R.js';
9
9
  import '../chunk-DGUM43GV.js';
10
10
  //# sourceMappingURL=store.js.map
@@ -1,9 +1,9 @@
1
- export { commonTranslationsPath, storeTranslationsPath, translations } from '../chunk-NG4LXTDV.js';
2
- import '../chunk-3VNSBUJZ.js';
1
+ export { commonTranslationsPath, storeTranslationsPath, translations } from '../chunk-PCPERWKJ.js';
2
+ import '../chunk-4MKA22LE.js';
3
3
  import '../chunk-Z5M4YYWT.js';
4
- import '../chunk-F6GOQAYU.js';
5
- import '../chunk-6L27TXQZ.js';
6
- import '../chunk-AWV3WEKH.js';
4
+ import '../chunk-JCYX7HXB.js';
5
+ import '../chunk-VLL4GO7G.js';
6
+ import '../chunk-PLD6KSYE.js';
7
7
  import '../chunk-T72DAX7R.js';
8
8
  import '../chunk-DGUM43GV.js';
9
9
  //# sourceMappingURL=translations.js.map
package/dist/api/user.js CHANGED
@@ -1,9 +1,9 @@
1
- export { user } from '../chunk-2UQBY2JI.js';
2
- import '../chunk-3VNSBUJZ.js';
1
+ export { user } from '../chunk-THFF2FSI.js';
2
+ import '../chunk-4MKA22LE.js';
3
3
  import '../chunk-Z5M4YYWT.js';
4
- import '../chunk-F6GOQAYU.js';
5
- import '../chunk-6L27TXQZ.js';
6
- import '../chunk-AWV3WEKH.js';
4
+ import '../chunk-JCYX7HXB.js';
5
+ import '../chunk-VLL4GO7G.js';
6
+ import '../chunk-PLD6KSYE.js';
7
7
  import '../chunk-T72DAX7R.js';
8
8
  import '../chunk-DGUM43GV.js';
9
9
  //# sourceMappingURL=user.js.map
@@ -1,9 +1,9 @@
1
- export { wallet } from '../chunk-CFEWWFEN.js';
2
- import '../chunk-3VNSBUJZ.js';
1
+ export { wallet } from '../chunk-2NT6SBRT.js';
2
+ import '../chunk-4MKA22LE.js';
3
3
  import '../chunk-Z5M4YYWT.js';
4
- import '../chunk-F6GOQAYU.js';
5
- import '../chunk-6L27TXQZ.js';
6
- import '../chunk-AWV3WEKH.js';
4
+ import '../chunk-JCYX7HXB.js';
5
+ import '../chunk-VLL4GO7G.js';
6
+ import '../chunk-PLD6KSYE.js';
7
7
  import '../chunk-T72DAX7R.js';
8
8
  import '../chunk-DGUM43GV.js';
9
9
  //# sourceMappingURL=wallet.js.map
@@ -1,13 +1,13 @@
1
- export { wishlist } from '../chunk-B676EPJV.js';
2
- import '../chunk-O6P7J6UH.js';
3
- import '../chunk-4QJXNAAZ.js';
1
+ export { wishlist } from '../chunk-CACGTFUX.js';
2
+ import '../chunk-NGA74AJ3.js';
3
+ import '../chunk-VZ5EMKBD.js';
4
4
  import '../chunk-OUW6WESU.js';
5
- import '../chunk-3VNSBUJZ.js';
5
+ import '../chunk-4MKA22LE.js';
6
6
  import '../chunk-Z5M4YYWT.js';
7
- import '../chunk-GHKOMS3G.js';
8
- import '../chunk-F6GOQAYU.js';
9
- import '../chunk-6L27TXQZ.js';
10
- import '../chunk-AWV3WEKH.js';
7
+ import '../chunk-H73VXFYO.js';
8
+ import '../chunk-JCYX7HXB.js';
9
+ import '../chunk-VLL4GO7G.js';
10
+ import '../chunk-PLD6KSYE.js';
11
11
  import '../chunk-T72DAX7R.js';
12
12
  import '../chunk-DF6FBKDN.js';
13
13
  import '../chunk-DGUM43GV.js';
@@ -1,6 +1,6 @@
1
- import { customUrl } from './chunk-4Q3JJMOZ.js';
2
- import { store } from './chunk-SULITXPN.js';
3
- import { redirect } from './chunk-4QJXNAAZ.js';
1
+ import { customUrl } from './chunk-4DPJCTO3.js';
2
+ import { store } from './chunk-4R5DOFG3.js';
3
+ import { redirect } from './chunk-VZ5EMKBD.js';
4
4
  import { isLocale } from './chunk-T72DAX7R.js';
5
5
 
6
6
  // src/routes/custom-urls.ts
@@ -87,5 +87,5 @@ async function customUrlRedirect(pathname, search, options) {
87
87
  }
88
88
 
89
89
  export { customUrlKey, customUrlPagePath, customUrlRedirect, storePathOf, withAddressQuery };
90
- //# sourceMappingURL=chunk-HDMJAFT3.js.map
91
- //# sourceMappingURL=chunk-HDMJAFT3.js.map
90
+ //# sourceMappingURL=chunk-2AF6PXGC.js.map
91
+ //# sourceMappingURL=chunk-2AF6PXGC.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/routes/custom-urls.ts"],"names":[],"mappings":";;;;;;AAiCO,SAAS,aAAa,QAAA,EAA2D;AACtF,EAAA,MAAM,WAAW,QAAA,CAAS,KAAA,CAAM,GAAG,CAAA,CAAE,OAAO,OAAO,CAAA;AACnD,EAAA,MAAM,MAAA,GAAS,SAAS,QAAA,CAAS,CAAC,CAAC,CAAA,GAAI,QAAA,CAAS,OAAM,GAAI,MAAA;AAC1D,EAAA,IAAI,CAAC,QAAA,CAAS,MAAA,EAAQ,OAAO,IAAA;AAC7B,EAAA,OAAO,EAAE,GAAA,EAAK,QAAA,CAAS,IAAA,CAAK,GAAG,GAAG,MAAA,EAAO;AAC3C;AAOO,SAAS,WAAA,CAAY,KAAa,QAAA,EAA6C;AACpF,EAAA,IAAI,IAAA;AACJ,EAAA,IAAI,IAAA;AACJ,EAAA,IAAI;AACF,IAAA,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AA,EAAY,GAAA,EAAK,cAAA,EAAgB,IAAA,EAAM,CAAA;AAAA,EAC1F;AACF","file":"chunk-HDMJAFT3.js","sourcesContent":["/**\n * @fileoverview A merchant's custom URLs (Dashboard → SEO → custom links) on a React storefront.\n *\n * Twig answers them in the Store's catch-all, its last fallback: after every route, and after the\n * product lookups by short code (`/{code}`) and by SKU (`/{sku}-{name}`). A React theme has no\n * catch-all, so the locale layout's `beforeLoad` asks the API (Store-Module#1798, the catch-all's\n * own lookup) at the same two points:\n * - an address no page answers (`twigUrlRedirect`, after the short code);\n * - a SKU-link address whose SKU names no product (`resolveProductKeyPage`).\n *\n * It asks only on a store that lists `custom-urls` in `store.features` (the plan has it, and the\n * store has an active one), so an address no page answers costs a store without one nothing. The answer is a 302, as Twig's, because the\n * merchant can point the URL elsewhere at any time.\n */\nimport type { QueryClient } from '@tanstack/react-query';\nimport { customUrl, type CustomUrlTarget } from '../api/custom-url';\nimport { store } from '../api/store';\nimport type { StoreContext } from '../api/store';\nimport { redirect } from '../providers/NavigationProvider';\nimport { isLocale } from '../providers/locale-constants';\n\nexport interface CustomUrlRedirectOptions {\n /** The request's query client: the settings are in it already, and a lookup is shared. */\n queryClient: QueryClient;\n /** The language segment an item's page takes, given the one the address had (the locale layout's rule). */\n targetLocale?: (addressLocale: string | undefined) => Promise<string | undefined>;\n}\n\n/**\n * The path a custom URL is saved under, for an address the router hands over (the store base\n * already off): without a language segment, which the Store strips before its catch-all, and\n * without the slashes around it. `null` for a home page.\n */\nexport function customUrlKey(pathname: string): { key: string; locale?: string } | null {\n const segments = pathname.split('/').filter(Boolean);\n const locale = isLocale(segments[0]) ? segments.shift() : undefined;\n if (!segments.length) return null;\n return { key: segments.join('/'), locale };\n}\n\n/**\n * The path an item's URL has under the store root, without its language segment:\n * `https://salla.sa/dev-x/en/shoes/p1` with store URL `https://salla.sa/dev-x/` is `/shoes/p1`.\n * `null` when the URL is not on the store (another host, or outside the store's segment).\n */\nexport function storePathOf(url: string, storeUrl: string | undefined): string | null {\n let item: URL;\n let root: URL;\n try {\n item = new URL(url);\n root = new URL(storeUrl ?? '');\n } catch {\n return null;\n }\n if (item.host !== root.host) return null;\n const rootPath = root.pathname.replace(/\\/+$/, '');\n if (rootPath && item.pathname !== rootPath && !item.pathname.startsWith(`${rootPath}/`)) {\n return null;\n }\n const segments = item.pathname.slice(rootPath.length).split('/').filter(Boolean);\n if (isLocale(segments[0])) segments.shift();\n return `/${segments.join('/')}`;\n}\n\n/** Twig's brand address, `/{slug}/brand-{id}`: the engine's brand page is `/brands/{id}`. */\nconst TWIG_BRAND_PATH = /^\\/[^/]+\\/brand-(\\d+)$/;\n\n/**\n * The engine's page for the item a custom URL names, under the store root and with no language,\n * or `null` for a `custom` row or an item URL that is not on the store. The item's own address\n * is used: the engine serves Twig's product, category, tag and page addresses (and redirects a\n * hash URL itself), and only a brand is sent straight to its page, a hop shorter.\n */\nexport function customUrlPagePath(\n target: CustomUrlTarget,\n storeUrl: string | undefined\n): string | null {\n if (target.type === 'custom') return null;\n const path = storePathOf(target.url, storeUrl);\n if (!path) return null;\n const brand = TWIG_BRAND_PATH.exec(path);\n return brand ? `/brands/${brand[1]}` : path;\n}\n\n/**\n * `target` with the address's query string on it, as the Store's catch-all keeps it (an ad's\n * `utm_*`): after the target's own query, and before its fragment.\n */\nexport function withAddressQuery(target: string, search: string): string {\n const query = search.replace(/^\\?/, '');\n if (!query) return target;\n const hashAt = target.indexOf('#');\n const [head, fragment] =\n hashAt < 0 ? [target, ''] : [target.slice(0, hashAt), target.slice(hashAt)];\n return `${head}${head.includes('?') ? '&' : '?'}${query}${fragment}`;\n}\n\n/** A URL when it is http(s): the Dashboard asks for a URL, and the router refuses any other scheme. */\nfunction httpUrl(url: string): string | null {\n try {\n const { protocol } = new URL(url);\n return protocol === 'http:' || protocol === 'https:' ? url : null;\n } catch {\n return null;\n }\n}\n\n/** The settings, when they list `custom-urls` in the store's features; else `null`. */\nasync function settingsWithCustomUrls(queryClient: QueryClient): Promise<StoreContext | null> {\n try {\n const settings = await queryClient.ensureQueryData(store.queries.settings());\n return settings?.store?.features?.includes('custom-urls') ? settings : null;\n } catch {\n return null;\n }\n}\n\n/**\n * The custom URL saved for `key`, or `undefined`. Any failure counts as none: an address no page\n * answers is also every scanner's, and an API error must leave it the 404 it was, not a 500.\n */\nasync function lookup(key: string, queryClient: QueryClient): Promise<CustomUrlTarget | undefined> {\n try {\n return await queryClient.ensureQueryData(customUrl.queries.resolve(key));\n } catch {\n return undefined;\n }\n}\n\n/**\n * Sends the visitor where the custom URL saved for `pathname` leads, with the address's query, by\n * a 302; returns when there is none, and the caller answers as it would have. An item on the store\n * is reached in one hop, in the language the locale layout would give it. A `custom` row's URL,\n * or an item URL on another site, is a full page load.\n */\nexport async function customUrlRedirect(\n pathname: string,\n search: string,\n options: CustomUrlRedirectOptions\n): Promise<void> {\n const address = customUrlKey(pathname);\n if (!address) return;\n const settings = await settingsWithCustomUrls(options.queryClient);\n if (!settings) return;\n const target = await lookup(address.key, options.queryClient);\n if (!target) return;\n\n const path = customUrlPagePath(target, settings.store?.url);\n if (path) {\n const locale = options.targetLocale\n ? await options.targetLocale(address.locale)\n : address.locale;\n throw redirect(withAddressQuery(`${locale ? `/${locale}` : ''}${path}`, search), {\n statusCode: 302,\n });\n }\n const href = httpUrl(target.url);\n if (href) {\n throw redirect(withAddressQuery(href, search), { statusCode: 302, reloadDocument: true });\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/routes/custom-urls.ts"],"names":[],"mappings":";;;;;;AAiCO,SAAS,aAAa,QAAA,EAA2D;AACtF,EAAA,MAAM,WAAW,QAAA,CAAS,KAAA,CAAM,GAAG,CAAA,CAAE,OAAO,OAAO,CAAA;AACnD,EAAA,MAAM,MAAA,GAAS,SAAS,QAAA,CAAS,CAAC,CAAC,CAAA,GAAI,QAAA,CAAS,OAAM,GAAI,MAAA;AAC1D,EAAA,IAAI,CAAC,QAAA,CAAS,MAAA,EAAQ,OAAO,IAAA;AAC7B,EA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A,KACb,CAAA;AAAA,EACH;AACA,EAAA,MAAM,IAAA,GAAO,OAAA,CAAQ,MAAA,CAAO,GAAG,CAAA;AAC/B,EAAA,IAAI,IAAA,EAAM;AACR,IAAA,MAAM,QAAA,CAAS,gBAAA,CAAiB,IAAA,EAAM,MAAM,CAAA,EAAG,EAAE,UAAA,EAAY,GAAA,EAAK,cAAA,EAAgB,IAAA,EAAM,CAAA;AAAA,EAC1F;AACF","file":"chunk-2AF6PXGC.js","sourcesContent":["/**\n * @fileoverview A merchant's custom URLs (Dashboard → SEO → custom links) on a React storefront.\n *\n * Twig answers them in the Store's catch-all, its last fallback: after every route, and after the\n * product lookups by short code (`/{code}`) and by SKU (`/{sku}-{name}`). A React theme has no\n * catch-all, so the locale layout's `beforeLoad` asks the API (Store-Module#1798, the catch-all's\n * own lookup) at the same two points:\n * - an address no page answers (`twigUrlRedirect`, after the short code);\n * - a SKU-link address whose SKU names no product (`resolveProductKeyPage`).\n *\n * It asks only on a store that lists `custom-urls` in `store.features` (the plan has it, and the\n * store has an active one), so an address no page answers costs a store without one nothing. The answer is a 302, as Twig's, because the\n * merchant can point the URL elsewhere at any time.\n */\nimport type { QueryClient } from '@tanstack/react-query';\nimport { customUrl, type CustomUrlTarget } from '../api/custom-url';\nimport { store } from '../api/store';\nimport type { StoreContext } from '../api/store';\nimport { redirect } from '../providers/NavigationProvider';\nimport { isLocale } from '../providers/locale-constants';\n\nexport interface CustomUrlRedirectOptions {\n /** The request's query client: the settings are in it already, and a lookup is shared. */\n queryClient: QueryClient;\n /** The language segment an item's page takes, given the one the address had (the locale layout's rule). */\n targetLocale?: (addressLocale: string | undefined) => Promise<string | undefined>;\n}\n\n/**\n * The path a custom URL is saved under, for an address the router hands over (the store base\n * already off): without a language segment, which the Store strips before its catch-all, and\n * without the slashes around it. `null` for a home page.\n */\nexport function customUrlKey(pathname: string): { key: string; locale?: string } | null {\n const segments = pathname.split('/').filter(Boolean);\n const locale = isLocale(segments[0]) ? segments.shift() : undefined;\n if (!segments.length) return null;\n return { key: segments.join('/'), locale };\n}\n\n/**\n * The path an item's URL has under the store root, without its language segment:\n * `https://salla.sa/dev-x/en/shoes/p1` with store URL `https://salla.sa/dev-x/` is `/shoes/p1`.\n * `null` when the URL is not on the store (another host, or outside the store's segment).\n */\nexport function storePathOf(url: string, storeUrl: string | undefined): string | null {\n let item: URL;\n let root: URL;\n try {\n item = new URL(url);\n root = new URL(storeUrl ?? '');\n } catch {\n return null;\n }\n if (item.host !== root.host) return null;\n const rootPath = root.pathname.replace(/\\/+$/, '');\n if (rootPath && item.pathname !== rootPath && !item.pathname.startsWith(`${rootPath}/`)) {\n return null;\n }\n const segments = item.pathname.slice(rootPath.length).split('/').filter(Boolean);\n if (isLocale(segments[0])) segments.shift();\n return `/${segments.join('/')}`;\n}\n\n/** Twig's brand address, `/{slug}/brand-{id}`: the engine's brand page is `/brands/{id}`. */\nconst TWIG_BRAND_PATH = /^\\/[^/]+\\/brand-(\\d+)$/;\n\n/**\n * The engine's page for the item a custom URL names, under the store root and with no language,\n * or `null` for a `custom` row or an item URL that is not on the store. The item's own address\n * is used: the engine serves Twig's product, category, tag and page addresses (and redirects a\n * hash URL itself), and only a brand is sent straight to its page, a hop shorter.\n */\nexport function customUrlPagePath(\n target: CustomUrlTarget,\n storeUrl: string | undefined\n): string | null {\n if (target.type === 'custom') return null;\n const path = storePathOf(target.url, storeUrl);\n if (!path) return null;\n const brand = TWIG_BRAND_PATH.exec(path);\n return brand ? `/brands/${brand[1]}` : path;\n}\n\n/**\n * `target` with the address's query string on it, as the Store's catch-all keeps it (an ad's\n * `utm_*`): after the target's own query, and before its fragment.\n */\nexport function withAddressQuery(target: string, search: string): string {\n const query = search.replace(/^\\?/, '');\n if (!query) return target;\n const hashAt = target.indexOf('#');\n const [head, fragment] =\n hashAt < 0 ? [target, ''] : [target.slice(0, hashAt), target.slice(hashAt)];\n return `${head}${head.includes('?') ? '&' : '?'}${query}${fragment}`;\n}\n\n/** A URL when it is http(s): the Dashboard asks for a URL, and the router refuses any other scheme. */\nfunction httpUrl(url: string): string | null {\n try {\n const { protocol } = new URL(url);\n return protocol === 'http:' || protocol === 'https:' ? url : null;\n } catch {\n return null;\n }\n}\n\n/** The settings, when they list `custom-urls` in the store's features; else `null`. */\nasync function settingsWithCustomUrls(queryClient: QueryClient): Promise<StoreContext | null> {\n try {\n const settings = await queryClient.ensureQueryData(store.queries.settings());\n return settings?.store?.features?.includes('custom-urls') ? settings : null;\n } catch {\n return null;\n }\n}\n\n/**\n * The custom URL saved for `key`, or `undefined`. Any failure counts as none: an address no page\n * answers is also every scanner's, and an API error must leave it the 404 it was, not a 500.\n */\nasync function lookup(key: string, queryClient: QueryClient): Promise<CustomUrlTarget | undefined> {\n try {\n return await queryClient.ensureQueryData(customUrl.queries.resolve(key));\n } catch {\n return undefined;\n }\n}\n\n/**\n * Sends the visitor where the custom URL saved for `pathname` leads, with the address's query, by\n * a 302; returns when there is none, and the caller answers as it would have. An item on the store\n * is reached in one hop, in the language the locale layout would give it. A `custom` row's URL,\n * or an item URL on another site, is a full page load.\n */\nexport async function customUrlRedirect(\n pathname: string,\n search: string,\n options: CustomUrlRedirectOptions\n): Promise<void> {\n const address = customUrlKey(pathname);\n if (!address) return;\n const settings = await settingsWithCustomUrls(options.queryClient);\n if (!settings) return;\n const target = await lookup(address.key, options.queryClient);\n if (!target) return;\n\n const path = customUrlPagePath(target, settings.store?.url);\n if (path) {\n const locale = options.targetLocale\n ? await options.targetLocale(address.locale)\n : address.locale;\n throw redirect(withAddressQuery(`${locale ? `/${locale}` : ''}${path}`, search), {\n statusCode: 302,\n });\n }\n const href = httpUrl(target.url);\n if (href) {\n throw redirect(withAddressQuery(href, search), { statusCode: 302, reloadDocument: true });\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { useOpeningHours } from './chunk-566KBAYZ.js';
2
- import { useIsProduct } from './chunk-4QJXNAAZ.js';
1
+ import { useOpeningHours } from './chunk-2QQSSJKZ.js';
2
+ import { useIsProduct } from './chunk-VZ5EMKBD.js';
3
3
  import { useTranslation } from './chunk-TYNZ5B2B.js';
4
4
  import { useTwilight } from './chunk-DF6FBKDN.js';
5
5
  import { useState } from 'react';
@@ -54,5 +54,5 @@ function StoreClosedNotification(_props) {
54
54
  }
55
55
 
56
56
  export { StoreClosedNotification };
57
- //# sourceMappingURL=chunk-AGIUKHXV.js.map
58
- //# sourceMappingURL=chunk-AGIUKHXV.js.map
57
+ //# sourceMappingURL=chunk-2I4H5BQU.js.map
58
+ //# sourceMappingURL=chunk-2I4H5BQU.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/store/StoreClosedNotification.tsx"],"names":[],"mappings":";;;;;;;AAsBO,SAAS,wBAAwB,MAAA,EAAsC;AAC5E,EAAA,MAAM,EAAE,KAAA,EAAM,GAAI,WAAA,EAAY;AAC9B,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,cAAA,EAAe;AAC7B,EAAA,MAAM,EAAE,QAAQ,SAAA,EAAW,iBAAA,KAAsB,eAAA,CAAgB,KAAA,CAAM,UAAU,aAAa,CAAA;AAC9F,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,SAAS,KAAK,CAAA;AAGhD,EAAA,MAAM,gBAAgB,YAAA,EAAa;AAGnC,EAAA,IAAI,CAAC,aAAA,IAAiB,CAAC,aAAa,MAAA,IAAU,SAAA,IAAa,CAAC,iBAAA,EAAmB;AAC7E,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAM,WAAA,GAAc,CAAC,CAAA,KAAwB;AAC3C,IAAA,CAAA,CAAE,cAAA,EAAe;AACjB,IAAA,YAAA,CAAa,IAAI,CAAA;AAAA,EACnB,CAAA;AAEA,EAAA,uBACE,IAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAU,cAAA;AAAA,MACV,EAAA,EAAG,2BAAA;AAAA,MACH,aAAA,EAAY,2BAAA;AAAA,MACZ,KAAA,EAAO;AAAA,QACL,eAAA,EAAiB,SAAA;AAAA,QACjB,KAAA,EAAO,MAAA;AAAA,QACP,OAAA,EAAS,WAAA;AAAA,QACT,OAAA,EAAS,MAAA;AAAA,QACT,UAAA,EAAY,QAAA;AAAA,QACZ,cAAA,EAAgB,QAAA;AAAA,QAChB,QAAA,EAAU;AAAA,OACZ;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAA,GAAA;AAAA,UAAC,GAAA;AAAA,UAAA;AAAA,YACC,IAAA,EAAK,GAAA;AAAA,YACL,EAAA,EAAG,cAAA;AAAA,YACH,OAAA,EAAS,WAAA;AAAA,YACT,KAAA,EAAO,EAAE,QAAA,EAAU,UAAA,EAAY,MAAM,EAAA,EAAI,KAAA,EAAO,MAAA,EAAQ,cAAA,EAAgB,MAAA,EAAO;AAAA,YAE/E,QAAA,kBAAA,GAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAU,cAAA,EAAe;AAAA;AAAA,SAC9B;AAAA,wBACA,GAAA,CAAC,GAAA,EAAA,EAAE,KAAA,EAAO,EAAE,MAAA,EAAQ,CAAA,EAAG,SAAA,EAAW,QAAA,EAAU,IAAA,EAAM,CAAA,EAAE,EACjD,QAAA,EAAA,CAAA,CAAE,2BAAA,EAA6B;AAAA,UAC9B,YAAA,EAAc,qPAAkD,iBAAiB,CAAA,CAAA,CAAA;AAAA,UACjF,QAAA,EAAU;AAAA,SACX,CAAA,EACH;AAAA;AAAA;AAAA,GACF;AAEJ","file":"chunk-AGIUKHXV.js","sourcesContent":["import { useState } from 'react';\nimport { useIsProduct } from '../../providers/NavigationProvider';\nimport { useTwilight } from '../../providers/TwilightProvider';\nimport { useOpeningHours } from '../../hooks/useOpeningHours';\nimport { useTranslation } from '../../providers/I18nProvider';\n\nexport interface StoreClosedNotificationProps {\n /** Whether to show the notification (defaults to true when store is closed on product page) */\n show?: boolean;\n}\n\n/**\n * StoreClosedNotification - Shows a notification bar when the store is closed.\n *\n * Mirrors PHP ReceivingOrdersTimesWidget:\n * - Only shows on product pages\n * - Only shows when store is closed for receiving orders\n * - Displays when the store will open next\n * - Has a close button to dismiss\n *\n * Injected via hook registry at body:start.\n */\nexport function StoreClosedNotification(_props: StoreClosedNotificationProps) {\n const { store } = useTwilight();\n const { t } = useTranslation();\n const { isOpen, isEnabled, nextOpenFormatted } = useOpeningHours(store.settings?.opening_hours);\n const [dismissed, setDismissed] = useState(false);\n\n // Check if we're on a product page\n const isProductPage = useIsProduct();\n\n // Conditions: product page, opening hours enabled, store closed, not dismissed\n if (!isProductPage || !isEnabled || isOpen || dismissed || !nextOpenFormatted) {\n return null;\n }\n\n const handleClose = (e: React.MouseEvent) => {\n e.preventDefault();\n setDismissed(true);\n };\n\n return (\n <div\n className=\"store-notify\"\n id=\"store-closed-notification\"\n data-testid=\"store-closed-notification\"\n style={{\n backgroundColor: '#d63031',\n color: '#fff',\n padding: '10px 15px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n }}\n >\n <a\n href=\"#\"\n id=\"notify-close\"\n onClick={handleClose}\n style={{ position: 'absolute', left: 15, color: '#fff', textDecoration: 'none' }}\n >\n <i className=\"sicon-cancel\" />\n </a>\n <p style={{ margin: 0, textAlign: 'center', flex: 1 }}>\n {t('store.closed_notification', {\n defaultValue: `المتجر حاليا مغلق لاستقبال الطلبات وسيتم فتحه (${nextOpenFormatted})`,\n nextOpen: nextOpenFormatted,\n })}\n </p>\n </div>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/components/store/StoreClosedNotification.tsx"],"names":[],"mappings":";;;;;;;AAsBO,SAAS,wBAAwB,MAAA,EAAsC;AAC5E,EAAA,MAAM,EAAE,KAAA,EAAM,GAAI,WAAA,EAAY;AAC9B,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,cAAA,EAAe;AAC7B,EAAA,MAAM,EAAE,QAAQ,SAAA,EAAW,iBAAA,KAAsB,eAAA,CAAgB,KAAA,CAAM,UAAU,aAAa,CAAA;AAC9F,EAAA,MAAM,CAA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U,IAAA,EAAM,CAAA,EAAE,EACjD,QAAA,EAAA,CAAA,CAAE,2BAAA,EAA6B;AAAA,UAC9B,YAAA,EAAc,qPAAkD,iBAAiB,CAAA,CAAA,CAAA;AAAA,UACjF,QAAA,EAAU;AAAA,SACX,CAAA,EACH;AAAA;AAAA;AAAA,GACF;AAEJ","file":"chunk-2I4H5BQU.js","sourcesContent":["import { useState } from 'react';\nimport { useIsProduct } from '../../providers/NavigationProvider';\nimport { useTwilight } from '../../providers/TwilightProvider';\nimport { useOpeningHours } from '../../hooks/useOpeningHours';\nimport { useTranslation } from '../../providers/I18nProvider';\n\nexport interface StoreClosedNotificationProps {\n /** Whether to show the notification (defaults to true when store is closed on product page) */\n show?: boolean;\n}\n\n/**\n * StoreClosedNotification - Shows a notification bar when the store is closed.\n *\n * Mirrors PHP ReceivingOrdersTimesWidget:\n * - Only shows on product pages\n * - Only shows when store is closed for receiving orders\n * - Displays when the store will open next\n * - Has a close button to dismiss\n *\n * Injected via hook registry at body:start.\n */\nexport function StoreClosedNotification(_props: StoreClosedNotificationProps) {\n const { store } = useTwilight();\n const { t } = useTranslation();\n const { isOpen, isEnabled, nextOpenFormatted } = useOpeningHours(store.settings?.opening_hours);\n const [dismissed, setDismissed] = useState(false);\n\n // Check if we're on a product page\n const isProductPage = useIsProduct();\n\n // Conditions: product page, opening hours enabled, store closed, not dismissed\n if (!isProductPage || !isEnabled || isOpen || dismissed || !nextOpenFormatted) {\n return null;\n }\n\n const handleClose = (e: React.MouseEvent) => {\n e.preventDefault();\n setDismissed(true);\n };\n\n return (\n <div\n className=\"store-notify\"\n id=\"store-closed-notification\"\n data-testid=\"store-closed-notification\"\n style={{\n backgroundColor: '#d63031',\n color: '#fff',\n padding: '10px 15px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n }}\n >\n <a\n href=\"#\"\n id=\"notify-close\"\n onClick={handleClose}\n style={{ position: 'absolute', left: 15, color: '#fff', textDecoration: 'none' }}\n >\n <i className=\"sicon-cancel\" />\n </a>\n <p style={{ margin: 0, textAlign: 'center', flex: 1 }}>\n {t('store.closed_notification', {\n defaultValue: `المتجر حاليا مغلق لاستقبال الطلبات وسيتم فتحه (${nextOpenFormatted})`,\n nextOpen: nextOpenFormatted,\n })}\n </p>\n </div>\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-3VNSBUJZ.js';
1
+ import { api } from './chunk-4MKA22LE.js';
2
2
 
3
3
  // src/api/wallet.ts
4
4
  var wallet = {
@@ -20,5 +20,5 @@ var wallet = {
20
20
  };
21
21
 
22
22
  export { wallet };
23
- //# sourceMappingURL=chunk-CFEWWFEN.js.map
24
- //# sourceMappingURL=chunk-CFEWWFEN.js.map
23
+ //# sourceMappingURL=chunk-2NT6SBRT.js.map
24
+ //# sourceMappingURL=chunk-2NT6SBRT.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/api/wallet.ts"],"names":[],"mappings":";;;AAgCO,IAAM,MAAA,GAAS;AAAA,EACpB,IAAA,EAAM,OAAO,MAAA,GAA2B,EAAC,KAAiC;AACxE,IAAA,MAAM,EAAE,IAAA,GAAO,CAAA,EAAG,OAAA,GAAU,EAAA,EAAI,QAAO,GAAI,MAAA;AAE3C,IAAA,MAAM,YAAA,GAAe,IAAI,eAAA,EAAgB;AACzC,IAAA,YAAA,CAAa,GAAA,CAAI,MAAA,EAAQ,MAAA,CAAO,IAAI,CAAC,CAAA;AACrC,IAAA,YAAA,CAAa,GAAA,CAAI,UAAA,EAAY,MAAA,CAAO,OAAO,CAAC,CAAA;AAE5C,IAAA,MAAM,UAAmC,EAAC;AAC1C,IAAA,IAAI,MAAA,UAAgB,MAAA,GAAS,MAAA;AAE7B,IAAA,MAAM,QAAA,GAAW,MAAM,GAAA,CACpB,GAAA,CAAI,CAAA,eAAA,EAAkB,YAAA,CAAa,QAAA,EAAU,CAAA,CAAA,EAAI,OAAc,CAAA,CAC/D,IAAA,EAAsE;AAEzE,IAAA,MAAM,YAAA,GAAe,SAAS,IAAA,CAAK,YAAA;AAEnC,IAAA,OAAO;AAAA,MACL,KAAA,EAAO,YAAA,CAAa,IAAA,IAAQ,EAAC;AAAA,MAC7B,MAAM,YAAA,CAAa,aAAA;AAAA,MACnB,OAAA,EAAS,SAAS,IAAA,CAAK;AAAA,KACzB;AAAA,EACF;AACF","file":"chunk-CFEWWFEN.js","sourcesContent":["import { api } from './client';\n\nexport interface TransactionItem {\n id: number;\n order_id: number;\n transaction_type: string;\n action_type: string;\n type: string;\n title: string;\n description: string;\n amount: number;\n created_at: number;\n expired_at: number;\n}\n\nexport interface WalletListParams {\n page?: number;\n perPage?: number;\n signal?: AbortSignal;\n}\n\nexport interface WalletListResponse {\n data: TransactionItem[];\n next_page_url: string | null;\n}\n\nexport interface WalletListResult {\n items: TransactionItem[];\n next: string | null;\n balance: number;\n}\n\nexport const wallet = {\n list: async (params: WalletListParams = {}): Promise<WalletListResult> => {\n const { page = 1, perPage = 10, signal } = params;\n\n const searchParams = new URLSearchParams();\n searchParams.set('page', String(page));\n searchParams.set('per_page', String(perPage));\n\n const options: Record<string, unknown> = {};\n if (signal) options.signal = signal;\n\n const response = await api\n .get(`balance/wallet?${searchParams.toString()}`, options as any)\n .json<{ data: { transactions: WalletListResponse; balance: number } }>();\n\n const transactions = response.data.transactions;\n\n return {\n items: transactions.data ?? [],\n next: transactions.next_page_url,\n balance: response.data.balance,\n };\n },\n};\n"]}
1
+ {"version":3,"sources":["../src/api/wallet.ts"],"names":[],"mappings":";;;AAgCO,IAAM,MAAA,GAAS;AAAA,EACpB,IAAA,EAAM,OAAO,MAAA,GAA2B,EAAC,KAAiC;AACxE,IAAA,MAAM,EAAE,IAAA,GAAO,CAAA,EAAG,OAAA,GAAU,EAAA,EAAI,QAAO,GAAI,MAAA;AAE3C,IAAA,MAAM,YAAA,GAAe,IAAI,eAAA,EAAgB;AACzC,IAAA,YAAA,CAAa,GAAA,CAAI,MAAA,EAAQ,MAAA,CAAO,IAAI,CAAC,CAAA;AACrC,IAAA,YAAA,CAAa,GAAA,CAAI,UAAA,EAAY,MAAA,CAAO,OAAO,CAAC,CAAA;AAE5C,IAAA,MAAM,UAAmC,EAAC;AAC1C,IAAA,IAAI,MAAA,UAAgB,MAAA,GAAS,MAAA;AAE7B,IAAA,MAAM,QAAA,GAAW,MAAM,GAAA,CACpB,GAAA,CAAI,CAAA,eAAA,EAAkB,YAAA,CAAa,QAAA,EAAU,CAAA,CAAA,EAAI,OAAc,CAAA,CAC/D,IAAA,EAAsE;AAEzE,IAAA,MAAM,YAAA,GAAe,SAAS,IAAA,CAAK,YAAA;AAEnC,IAAA,OAAO;AAAA,MACL,KAAA,EAAO,YAAA,CAAa,IAAA,IAAQ,EAAC;AAAA,MAC7B,MAAM,YAAA,CAAa,aAAA;AAAA,MACnB,OAAA,EAAS,SAAS,IAAA,CAAK;AAAA,KACzB;AAAA,EACF;AACF","file":"chunk-2NT6SBRT.js","sourcesContent":["import { api } from './client';\n\nexport interface TransactionItem {\n id: number;\n order_id: number;\n transaction_type: string;\n action_type: string;\n type: string;\n title: string;\n description: string;\n amount: number;\n created_at: number;\n expired_at: number;\n}\n\nexport interface WalletListParams {\n page?: number;\n perPage?: number;\n signal?: AbortSignal;\n}\n\nexport interface WalletListResponse {\n data: TransactionItem[];\n next_page_url: string | null;\n}\n\nexport interface WalletListResult {\n items: TransactionItem[];\n next: string | null;\n balance: number;\n}\n\nexport const wallet = {\n list: async (params: WalletListParams = {}): Promise<WalletListResult> => {\n const { page = 1, perPage = 10, signal } = params;\n\n const searchParams = new URLSearchParams();\n searchParams.set('page', String(page));\n searchParams.set('per_page', String(perPage));\n\n const options: Record<string, unknown> = {};\n if (signal) options.signal = signal;\n\n const response = await api\n .get(`balance/wallet?${searchParams.toString()}`, options as any)\n .json<{ data: { transactions: WalletListResponse; balance: number } }>();\n\n const transactions = response.data.transactions;\n\n return {\n items: transactions.data ?? [],\n next: transactions.next_page_url,\n balance: response.data.balance,\n };\n },\n};\n"]}
@@ -1,26 +1,26 @@
1
- import { Footer } from './chunk-TH3ZNTOU.js';
1
+ import { Footer } from './chunk-QT2D7JMW.js';
2
2
  import { getModelContext } from './chunk-Q77J3D2W.js';
3
- import { Header } from './chunk-CKD5JKG3.js';
3
+ import { Header } from './chunk-AWANNFME.js';
4
4
  import { editorFrame, previewTheme, postToEditor, FRAME_LOADED_ACTION } from './chunk-YL6X3ZMG.js';
5
- import { useDevSettingsOverrides, useDevReportSettingsFetchedAt } from './chunk-FFENW3YJ.js';
6
- import { resolveTwilightSdkUrl, TICKETING_SCRIPT_URL } from './chunk-E32SOLND.js';
5
+ import { useDevSettingsOverrides, useDevReportSettingsFetchedAt } from './chunk-ENXFWV3Z.js';
6
+ import { resolveTwilightSdkUrl, TICKETING_SCRIPT_URL } from './chunk-7WJ5YLUV.js';
7
7
  import { color } from './chunk-VVZNW5CB.js';
8
- import { applyThemeHookSlots, installAppScope } from './chunk-I2A2IK4A.js';
9
- import { apps } from './chunk-GAREXAQZ.js';
10
- import { withOwnerMaintenanceButton, withoutMaintenanceOnPreviewHost } from './chunk-FFN6BITL.js';
11
- import { useLocation, useIsHome, NavigationInterceptor } from './chunk-4QJXNAAZ.js';
12
- import { useUser } from './chunk-2IXYMLTH.js';
8
+ import { applyThemeHookSlots, installAppScope } from './chunk-VPBV2BQV.js';
9
+ import { apps } from './chunk-RLZUJSEZ.js';
10
+ import { withOwnerMaintenanceButton, withoutMaintenanceOnPreviewHost } from './chunk-4EQ2XUD2.js';
11
+ import { useLocation, useIsHome, NavigationInterceptor } from './chunk-VZ5EMKBD.js';
12
+ import { useUser } from './chunk-BSJBPL3O.js';
13
13
  import { DocumentClassProvider, useDocumentClass } from './chunk-JWXJPJBO.js';
14
14
  import { WidgetHead } from './chunk-V2ZDTY6H.js';
15
15
  import { HookSlot } from './chunk-5XDPAKF5.js';
16
16
  import { hookRegistry } from './chunk-GCPEMNSU.js';
17
- import { getActiveCurrency, ENGINE_VERSION } from './chunk-3VNSBUJZ.js';
17
+ import { getActiveCurrency, ENGINE_VERSION } from './chunk-4MKA22LE.js';
18
18
  import { useTranslation, I18nProvider } from './chunk-TYNZ5B2B.js';
19
- import { Toaster } from './chunk-KDIG3QCW.js';
20
- import { isNativeApp } from './chunk-GHKOMS3G.js';
21
- import { whenSallaLoaded, whenSallaReady, onSallaEvent, getSallaSDK, syncSdkLocale, withSdkThemeVersion } from './chunk-F6GOQAYU.js';
22
- import { AUTH_TOKEN_COOKIE_NAME, rememberDevStoreId, clearAuthTokenCookie, currentHost, syncScopeCookie, escapeForInlineScript } from './chunk-6L27TXQZ.js';
23
- import { getTwilightContext, subscribeTwilight, updateTwilightContext, hasTwilightSettings } from './chunk-AWV3WEKH.js';
19
+ import { Toaster } from './chunk-6AK5XDNZ.js';
20
+ import { isNativeApp } from './chunk-H73VXFYO.js';
21
+ import { whenSallaLoaded, whenSallaReady, onSallaEvent, getSallaSDK, syncSdkLocale, withSdkThemeVersion } from './chunk-JCYX7HXB.js';
22
+ import { AUTH_TOKEN_COOKIE_NAME, rememberDevStoreId, clearAuthTokenCookie, currentHost, syncScopeCookie, escapeForInlineScript } from './chunk-VLL4GO7G.js';
23
+ import { getTwilightContext, subscribeTwilight, updateTwilightContext, hasTwilightSettings } from './chunk-PLD6KSYE.js';
24
24
  import { FALLBACK_LOCALE, getLanguageInfo } from './chunk-T72DAX7R.js';
25
25
  import { useTwilight, TwilightContext } from './chunk-DF6FBKDN.js';
26
26
  import { lazyComponent } from './chunk-VYGA5AT5.js';
@@ -352,16 +352,16 @@ function useWebMcpSupported() {
352
352
  }
353
353
  var navigationSetups = {
354
354
  tanstack: lazyComponent(
355
- () => import('./navigation-OEJAG6MZ.js').then((m) => ({ default: m.NavigationSetup }))
355
+ () => import('./navigation-DZCTOUGV.js').then((m) => ({ default: m.NavigationSetup }))
356
356
  ),
357
357
  // Not preloaded with the rest: a TanStack worker would load Next.js code it never runs.
358
- nextjs: lazy(() => import('./navigation-UYBDYGHP.js').then((m) => ({ default: m.NavigationSetup })))
358
+ nextjs: lazy(() => import('./navigation-LZ6YYSKB.js').then((m) => ({ default: m.NavigationSetup })))
359
359
  };
360
360
 
361
361
  // src/providers/DocumentSyncRegistry.ts
362
362
  var routeDocumentSyncs = {
363
363
  tanstack: lazyComponent(
364
- () => import('./document-class-ATOAYJOT.js').then((m) => ({
364
+ () => import('./document-class-VJN4AHON.js').then((m) => ({
365
365
  default: m.TanStackDocumentSync
366
366
  }))
367
367
  )
@@ -874,7 +874,7 @@ function injectFastCheckoutScript() {
874
874
  document.head.appendChild(s);
875
875
  }
876
876
  var GoogleTagBody = lazyComponent(
877
- () => import('./GoogleTag-FFE6DKJB.js').then((m) => ({ default: m.GoogleTagBody }))
877
+ () => import('./GoogleTag-IBUOI4BU.js').then((m) => ({ default: m.GoogleTagBody }))
878
878
  );
879
879
  var TwilightBundles = lazyComponent(
880
880
  () => import('./TwilightBundles-G6GHWBID.js').then((m) => ({ default: m.TwilightBundles }))
@@ -883,7 +883,7 @@ var LazySiftSnippet = lazyComponent(
883
883
  () => import('./SiftSnippet-5FCU6TR6.js').then((m) => ({ default: m.SiftSnippet }))
884
884
  );
885
885
  var LazyStoreClosedNotification = lazyComponent(
886
- () => import('./StoreClosedNotification-BWLM3TSR.js').then((m) => ({
886
+ () => import('./StoreClosedNotification-QAMEUZQD.js').then((m) => ({
887
887
  default: m.StoreClosedNotification
888
888
  }))
889
889
  );
@@ -1129,12 +1129,12 @@ function SallaSdkScripts({ settings }) {
1129
1129
 
1130
1130
  // src/components/store/lazy.ts
1131
1131
  var LazyStoreClosedNotification2 = lazyComponent(
1132
- () => import('./StoreClosedNotification-BWLM3TSR.js').then((m) => ({
1132
+ () => import('./StoreClosedNotification-QAMEUZQD.js').then((m) => ({
1133
1133
  default: m.StoreClosedNotification
1134
1134
  }))
1135
1135
  );
1136
1136
  var LazyMaintenancePage = lazyComponent(
1137
- () => import('./MaintenancePage-SFZN7G27.js').then((m) => ({ default: m.MaintenancePage }))
1137
+ () => import('./MaintenancePage-3YUQXVN2.js').then((m) => ({ default: m.MaintenancePage }))
1138
1138
  );
1139
1139
  var BAR = {
1140
1140
  position: "fixed",
@@ -1199,7 +1199,11 @@ function LiveEditor() {
1199
1199
  if (!frame) return null;
1200
1200
  return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(LazyLiveEditorBar, { origin: frame.origin, dev: frame.dev }) });
1201
1201
  }
1202
- var LazyWebMcpTools = React2.lazy(() => import('./WebMcpTools-WGNAGUC5.js'));
1202
+ var LazyWebMcpTools = React2.lazy(() => import('./WebMcpTools-F663L3R7.js'));
1203
+ function WebMcpMount() {
1204
+ if (!useWebMcpSupported()) return null;
1205
+ return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(LazyWebMcpTools, {}) });
1206
+ }
1203
1207
  var getSalla2 = () => typeof window !== "undefined" ? window.salla : void 0;
1204
1208
  var TWILIGHT_LOG_STYLES = {
1205
1209
  header: "background: linear-gradient(90deg, #7c3aed, #6366f1); color: white; padding: 4px 8px; border-radius: 4px; font-weight: bold;",
@@ -1245,7 +1249,6 @@ function TwilightProvider({
1245
1249
  }
1246
1250
  return null;
1247
1251
  });
1248
- const webMcpSupported = useWebMcpSupported();
1249
1252
  useNativeSafeArea();
1250
1253
  useNativeSpaWebview();
1251
1254
  useEffect(() => {
@@ -1406,7 +1409,7 @@ function TwilightProvider({
1406
1409
  toastMobilePosition,
1407
1410
  addToCartToast,
1408
1411
  interceptLinks,
1409
- webMcp: webMcp && webMcpSupported
1412
+ webMcp
1410
1413
  };
1411
1414
  }, [
1412
1415
  isReady,
@@ -1417,8 +1420,7 @@ function TwilightProvider({
1417
1420
  toastMobilePosition,
1418
1421
  addToCartToast,
1419
1422
  interceptLinks,
1420
- webMcp,
1421
- webMcpSupported
1423
+ webMcp
1422
1424
  ]);
1423
1425
  const readyContent = useMemo(() => {
1424
1426
  if (!readyShell) return null;
@@ -1442,7 +1444,7 @@ function TwilightProvider({
1442
1444
  ),
1443
1445
  readyShell.interceptLinks && /* @__PURE__ */ jsx(NavigationInterceptor, {})
1444
1446
  ] }),
1445
- readyShell.webMcp && /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(LazyWebMcpTools, {}) }),
1447
+ readyShell.webMcp && /* @__PURE__ */ jsx(WebMcpMount, {}),
1446
1448
  inner,
1447
1449
  /* @__PURE__ */ jsx(SallaSdkScripts, { settings: initialData }),
1448
1450
  /* @__PURE__ */ jsx(AppsSnippets, {}),
@@ -1488,5 +1490,5 @@ function useStore() {
1488
1490
  }
1489
1491
 
1490
1492
  export { LazyMaintenancePage, LazyStoreClosedNotification2 as LazyStoreClosedNotification, MasterLayout, TwilightProvider, fastCheckoutScript, registerDefaultHooks, registerDocumentSync, routeDocumentSyncs, useBreadcrumbs, useDate, useGtm, useMoney, useNumber, useOpeningHours, usePageConfig, useStore };
1491
- //# sourceMappingURL=chunk-566KBAYZ.js.map
1492
- //# sourceMappingURL=chunk-566KBAYZ.js.map
1493
+ //# sourceMappingURL=chunk-2QQSSJKZ.js.map
1494
+ //# sourceMappingURL=chunk-2QQSSJKZ.js.map