@salla.sa/twilight-theme-engine 1.0.185 → 1.0.186

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 (242) hide show
  1. package/dist/{AddToCartForm-LCSBAN3M.js → AddToCartForm-5A4JIBLL.js} +3 -3
  2. package/dist/{AddToCartForm-LCSBAN3M.js.map → AddToCartForm-5A4JIBLL.js.map} +1 -1
  3. package/dist/{BlogAuthorPage-ZYBQYUV7.js → BlogAuthorPage-BMVQU52G.js} +19 -19
  4. package/dist/{BlogAuthorPage-ZYBQYUV7.js.map → BlogAuthorPage-BMVQU52G.js.map} +1 -1
  5. package/dist/{BlogCategoryPage-O2ORXWYL.js → BlogCategoryPage-VQB2GPQJ.js} +19 -19
  6. package/dist/{BlogCategoryPage-O2ORXWYL.js.map → BlogCategoryPage-VQB2GPQJ.js.map} +1 -1
  7. package/dist/{BlogPage-RXWT2CV3.js → BlogPage-2PVU76RY.js} +17 -17
  8. package/dist/{BlogPage-RXWT2CV3.js.map → BlogPage-2PVU76RY.js.map} +1 -1
  9. package/dist/{BlogSinglePage-QY42WRDZ.js → BlogSinglePage-TUP6H6LR.js} +17 -17
  10. package/dist/{BlogSinglePage-QY42WRDZ.js.map → BlogSinglePage-TUP6H6LR.js.map} +1 -1
  11. package/dist/{BlogTagPage-P7B3CFAO.js → BlogTagPage-3LVZOCXD.js} +19 -19
  12. package/dist/{BlogTagPage-P7B3CFAO.js.map → BlogTagPage-3LVZOCXD.js.map} +1 -1
  13. package/dist/{BrandsPage-FV57PLGZ.js → BrandsPage-IKXVPS6D.js} +18 -18
  14. package/dist/{BrandsPage-FV57PLGZ.js.map → BrandsPage-IKXVPS6D.js.map} +1 -1
  15. package/dist/{Breadcrumb-TM4EXKTO.js → Breadcrumb-RDJZ2ZLB.js} +17 -17
  16. package/dist/{Breadcrumb-TM4EXKTO.js.map → Breadcrumb-RDJZ2ZLB.js.map} +1 -1
  17. package/dist/{CanvasOverlay-YNXYF27N.js → CanvasOverlay-OFJN4QZX.js} +3 -3
  18. package/dist/{CanvasOverlay-YNXYF27N.js.map → CanvasOverlay-OFJN4QZX.js.map} +1 -1
  19. package/dist/{CartItem-DVQET7SW.js → CartItem-I5CXXNRD.js} +17 -17
  20. package/dist/{CartItem-DVQET7SW.js.map → CartItem-I5CXXNRD.js.map} +1 -1
  21. package/dist/{CartSummary-XGMWN6PP.js → CartSummary-5TDULSFS.js} +17 -17
  22. package/dist/{CartSummary-XGMWN6PP.js.map → CartSummary-5TDULSFS.js.map} +1 -1
  23. package/dist/{Copyright-OTQZENUE.js → Copyright-4IBWI43E.js} +3 -3
  24. package/dist/{Copyright-OTQZENUE.js.map → Copyright-4IBWI43E.js.map} +1 -1
  25. package/dist/{CustomerLayout-IMI4SJDO.js → CustomerLayout-32UTZ4U5.js} +17 -17
  26. package/dist/{CustomerLayout-IMI4SJDO.js.map → CustomerLayout-32UTZ4U5.js.map} +1 -1
  27. package/dist/{Footer-JUHWLQCI.js → Footer-WG66WSI4.js} +3 -3
  28. package/dist/{Footer-JUHWLQCI.js.map → Footer-WG66WSI4.js.map} +1 -1
  29. package/dist/GoogleTag-V7FHUIZW.js +15 -0
  30. package/dist/{GoogleTag-VBFDNEU6.js.map → GoogleTag-V7FHUIZW.js.map} +1 -1
  31. package/dist/{Header-P46ZDWIQ.js → Header-C6QOJTFF.js} +8 -8
  32. package/dist/{Header-P46ZDWIQ.js.map → Header-C6QOJTFF.js.map} +1 -1
  33. package/dist/{LatestProducts-QWTQZVBJ.js → LatestProducts-63LGH5AD.js} +19 -19
  34. package/dist/{LatestProducts-QWTQZVBJ.js.map → LatestProducts-63LGH5AD.js.map} +1 -1
  35. package/dist/{LoyaltyPage-LJOJRJB5.js → LoyaltyPage-BNHK5VHM.js} +17 -17
  36. package/dist/{LoyaltyPage-LJOJRJB5.js.map → LoyaltyPage-BNHK5VHM.js.map} +1 -1
  37. package/dist/{LoyaltyPointsPage-4JYLRGKN.js → LoyaltyPointsPage-5V263ISD.js} +6 -6
  38. package/dist/{LoyaltyPointsPage-4JYLRGKN.js.map → LoyaltyPointsPage-5V263ISD.js.map} +1 -1
  39. package/dist/{MainMenu-LK22UWZO.js → MainMenu-SJL4B3EZ.js} +5 -5
  40. package/dist/{MainMenu-LK22UWZO.js.map → MainMenu-SJL4B3EZ.js.map} +1 -1
  41. package/dist/{MasterLayout-ZA32NBT4.js → MasterLayout-PZ3P54GT.js} +17 -17
  42. package/dist/{MasterLayout-ZA32NBT4.js.map → MasterLayout-PZ3P54GT.js.map} +1 -1
  43. package/dist/{MobileMenu-MMDICOBU.js → MobileMenu-YP3VAP5X.js} +18 -18
  44. package/dist/{MobileMenu-MMDICOBU.js.map → MobileMenu-YP3VAP5X.js.map} +1 -1
  45. package/dist/{NotificationsPage-V5JAFDFP.js → NotificationsPage-CNZNP5MT.js} +17 -17
  46. package/dist/{NotificationsPage-V5JAFDFP.js.map → NotificationsPage-CNZNP5MT.js.map} +1 -1
  47. package/dist/{OrderSinglePage-EKJ5Q4EM.js → OrderSinglePage-SPRSVZAA.js} +18 -18
  48. package/dist/{OrderSinglePage-EKJ5Q4EM.js.map → OrderSinglePage-SPRSVZAA.js.map} +1 -1
  49. package/dist/{OrdersPage-JGTRYEST.js → OrdersPage-24NCQYJ5.js} +17 -17
  50. package/dist/{OrdersPage-JGTRYEST.js.map → OrdersPage-24NCQYJ5.js.map} +1 -1
  51. package/dist/{PageSingle-J6JBAD45.js → PageSingle-L5EAMR3X.js} +3 -3
  52. package/dist/{PageSingle-J6JBAD45.js.map → PageSingle-L5EAMR3X.js.map} +1 -1
  53. package/dist/{ProductDetails-XLM3FGBY.js → ProductDetails-PED2NZEJ.js} +4 -4
  54. package/dist/{ProductDetails-XLM3FGBY.js.map → ProductDetails-PED2NZEJ.js.map} +1 -1
  55. package/dist/{ProfilePage-SWFGEY5Y.js → ProfilePage-E44G3WVG.js} +17 -17
  56. package/dist/{ProfilePage-SWFGEY5Y.js.map → ProfilePage-E44G3WVG.js.map} +1 -1
  57. package/dist/{ReviewsPage-A733RD4D.js → ReviewsPage-OIUFR3EP.js} +3 -3
  58. package/dist/{ReviewsPage-A733RD4D.js.map → ReviewsPage-OIUFR3EP.js.map} +1 -1
  59. package/dist/{SeoCartWidget-DIOS62BL.js → SeoCartWidget-JK52NGON.js} +17 -17
  60. package/dist/{SeoCartWidget-DIOS62BL.js.map → SeoCartWidget-JK52NGON.js.map} +1 -1
  61. package/dist/{SettingsPage-FZBUPLLA.js → SettingsPage-6S3MY3PF.js} +17 -17
  62. package/dist/{SettingsPage-FZBUPLLA.js.map → SettingsPage-6S3MY3PF.js.map} +1 -1
  63. package/dist/{StoreClosedNotification-ZWRTPUPP.js → StoreClosedNotification-XKNI3VAT.js} +18 -18
  64. package/dist/{StoreClosedNotification-ZWRTPUPP.js.map → StoreClosedNotification-XKNI3VAT.js.map} +1 -1
  65. package/dist/{TestimonialsPage-6TSZIUZX.js → TestimonialsPage-PZX5FRHU.js} +3 -3
  66. package/dist/{TestimonialsPage-6TSZIUZX.js.map → TestimonialsPage-PZX5FRHU.js.map} +1 -1
  67. package/dist/{ThankYouPage-RPZK6SRW.js → ThankYouPage-SNRSPL5U.js} +17 -17
  68. package/dist/{ThankYouPage-RPZK6SRW.js.map → ThankYouPage-SNRSPL5U.js.map} +1 -1
  69. package/dist/{WalletPage-42RFDAUY.js → WalletPage-563XMOW5.js} +18 -18
  70. package/dist/{WalletPage-42RFDAUY.js.map → WalletPage-563XMOW5.js.map} +1 -1
  71. package/dist/{WebMcpTools-DLW67GJM.js → WebMcpTools-PYYSHW26.js} +5 -5
  72. package/dist/{WebMcpTools-DLW67GJM.js.map → WebMcpTools-PYYSHW26.js.map} +1 -1
  73. package/dist/{WishlistPage-HW3ZQSGB.js → WishlistPage-BAFIG6RB.js} +19 -19
  74. package/dist/{WishlistPage-HW3ZQSGB.js.map → WishlistPage-BAFIG6RB.js.map} +1 -1
  75. package/dist/api/advertisement.js +2 -2
  76. package/dist/api/apps.js +2 -2
  77. package/dist/api/blog.js +3 -3
  78. package/dist/api/brands.js +3 -3
  79. package/dist/api/cart.js +3 -3
  80. package/dist/api/category.js +3 -3
  81. package/dist/api/client.js +1 -1
  82. package/dist/api/custom-url.js +2 -2
  83. package/dist/api/home.js +2 -2
  84. package/dist/api/loyalty.js +3 -3
  85. package/dist/api/menu.js +2 -2
  86. package/dist/api/notification.js +2 -2
  87. package/dist/api/order.js +3 -3
  88. package/dist/api/page.js +3 -3
  89. package/dist/api/product.js +3 -3
  90. package/dist/api/profile.js +1 -1
  91. package/dist/api/store.js +2 -2
  92. package/dist/api/translations.js +2 -2
  93. package/dist/api/user.js +2 -2
  94. package/dist/api/wallet.js +2 -2
  95. package/dist/api/wishlist.js +4 -4
  96. package/dist/{chunk-KFF5J6JN.js → chunk-4XWOLTPZ.js} +19 -19
  97. package/dist/{chunk-KFF5J6JN.js.map → chunk-4XWOLTPZ.js.map} +1 -1
  98. package/dist/{chunk-QHF66D3P.js → chunk-5MANTOZ5.js} +4 -4
  99. package/dist/{chunk-QHF66D3P.js.map → chunk-5MANTOZ5.js.map} +1 -1
  100. package/dist/{chunk-JZOBRBDY.js → chunk-5TVOTTHS.js} +3 -3
  101. package/dist/{chunk-JZOBRBDY.js.map → chunk-5TVOTTHS.js.map} +1 -1
  102. package/dist/{chunk-GYHZYJUL.js → chunk-6HEK3NUM.js} +3 -3
  103. package/dist/{chunk-GYHZYJUL.js.map → chunk-6HEK3NUM.js.map} +1 -1
  104. package/dist/{chunk-7GUKPZQ6.js → chunk-6MWADUFG.js} +3 -3
  105. package/dist/{chunk-7GUKPZQ6.js.map → chunk-6MWADUFG.js.map} +1 -1
  106. package/dist/{chunk-J3RK2CPN.js → chunk-6RJFC2TQ.js} +3 -3
  107. package/dist/{chunk-J3RK2CPN.js.map → chunk-6RJFC2TQ.js.map} +1 -1
  108. package/dist/{chunk-53IXAXYU.js → chunk-7B3HAC7N.js} +3 -3
  109. package/dist/{chunk-53IXAXYU.js.map → chunk-7B3HAC7N.js.map} +1 -1
  110. package/dist/{chunk-53CWWIKH.js → chunk-7KRZ5LXJ.js} +4 -4
  111. package/dist/{chunk-53CWWIKH.js.map → chunk-7KRZ5LXJ.js.map} +1 -1
  112. package/dist/{chunk-CRW77N4M.js → chunk-7RKZXLBL.js} +3 -3
  113. package/dist/{chunk-CRW77N4M.js.map → chunk-7RKZXLBL.js.map} +1 -1
  114. package/dist/{chunk-VEUY4U3G.js → chunk-7U3JGTMX.js} +3 -3
  115. package/dist/{chunk-VEUY4U3G.js.map → chunk-7U3JGTMX.js.map} +1 -1
  116. package/dist/{chunk-5YLKWMNP.js → chunk-AGKNWEG6.js} +3 -3
  117. package/dist/{chunk-5YLKWMNP.js.map → chunk-AGKNWEG6.js.map} +1 -1
  118. package/dist/{chunk-SD4TYJN3.js → chunk-ANTDJTQR.js} +3 -3
  119. package/dist/{chunk-SD4TYJN3.js.map → chunk-ANTDJTQR.js.map} +1 -1
  120. package/dist/{chunk-CDMXPX4Z.js → chunk-AXVPFA2U.js} +14 -14
  121. package/dist/{chunk-CDMXPX4Z.js.map → chunk-AXVPFA2U.js.map} +1 -1
  122. package/dist/{chunk-3TZIFRGC.js → chunk-BICEPRPK.js} +4 -4
  123. package/dist/{chunk-3TZIFRGC.js.map → chunk-BICEPRPK.js.map} +1 -1
  124. package/dist/{chunk-Q2Z4IPAT.js → chunk-BRQOHQB3.js} +7 -7
  125. package/dist/{chunk-Q2Z4IPAT.js.map → chunk-BRQOHQB3.js.map} +1 -1
  126. package/dist/{chunk-MHA726OF.js → chunk-C5HAMBR3.js} +4 -4
  127. package/dist/{chunk-MHA726OF.js.map → chunk-C5HAMBR3.js.map} +1 -1
  128. package/dist/{chunk-LKITJWSS.js → chunk-FDFL6QKB.js} +3 -3
  129. package/dist/{chunk-LKITJWSS.js.map → chunk-FDFL6QKB.js.map} +1 -1
  130. package/dist/{chunk-V5FXJ6RG.js → chunk-FICNVVC2.js} +3 -3
  131. package/dist/{chunk-V5FXJ6RG.js.map → chunk-FICNVVC2.js.map} +1 -1
  132. package/dist/{chunk-AYZ6MRDT.js → chunk-GWT6MHWC.js} +4 -4
  133. package/dist/{chunk-AYZ6MRDT.js.map → chunk-GWT6MHWC.js.map} +1 -1
  134. package/dist/{chunk-2XFHSSMR.js → chunk-H6FRRUIU.js} +4 -4
  135. package/dist/{chunk-2XFHSSMR.js.map → chunk-H6FRRUIU.js.map} +1 -1
  136. package/dist/{chunk-P65YIT3J.js → chunk-IJVAVBIM.js} +3 -3
  137. package/dist/{chunk-P65YIT3J.js.map → chunk-IJVAVBIM.js.map} +1 -1
  138. package/dist/{chunk-EV3MX2ZF.js → chunk-INLVNPJ6.js} +3 -3
  139. package/dist/{chunk-EV3MX2ZF.js.map → chunk-INLVNPJ6.js.map} +1 -1
  140. package/dist/{chunk-JMJTCJGX.js → chunk-IQOKWDKP.js} +4 -4
  141. package/dist/{chunk-JMJTCJGX.js.map → chunk-IQOKWDKP.js.map} +1 -1
  142. package/dist/{chunk-3C55I5FU.js → chunk-JXUASMA7.js} +3 -3
  143. package/dist/{chunk-3C55I5FU.js.map → chunk-JXUASMA7.js.map} +1 -1
  144. package/dist/{chunk-3AOC4XPC.js → chunk-KZEXDR6O.js} +3 -3
  145. package/dist/{chunk-3AOC4XPC.js.map → chunk-KZEXDR6O.js.map} +1 -1
  146. package/dist/{chunk-L3DCK3MF.js → chunk-N7YB3OG4.js} +3 -3
  147. package/dist/{chunk-L3DCK3MF.js.map → chunk-N7YB3OG4.js.map} +1 -1
  148. package/dist/{chunk-CSR5SCSP.js → chunk-OB7HFA7T.js} +4 -4
  149. package/dist/{chunk-CSR5SCSP.js.map → chunk-OB7HFA7T.js.map} +1 -1
  150. package/dist/{chunk-EXPUSY6B.js → chunk-ONHZXJAS.js} +3 -3
  151. package/dist/{chunk-EXPUSY6B.js.map → chunk-ONHZXJAS.js.map} +1 -1
  152. package/dist/{chunk-R2ZCGB4G.js → chunk-R2VVSCFJ.js} +6 -6
  153. package/dist/{chunk-R2ZCGB4G.js.map → chunk-R2VVSCFJ.js.map} +1 -1
  154. package/dist/{chunk-HHZ7HY3D.js → chunk-R5T5XOT6.js} +5 -5
  155. package/dist/{chunk-HHZ7HY3D.js.map → chunk-R5T5XOT6.js.map} +1 -1
  156. package/dist/{chunk-5VWFGJS2.js → chunk-SFK7LAHZ.js} +3 -3
  157. package/dist/{chunk-5VWFGJS2.js.map → chunk-SFK7LAHZ.js.map} +1 -1
  158. package/dist/{chunk-R2J4BECK.js → chunk-SG5PJAKP.js} +4 -4
  159. package/dist/{chunk-R2J4BECK.js.map → chunk-SG5PJAKP.js.map} +1 -1
  160. package/dist/{chunk-5BICYVE3.js → chunk-SUW3BMDE.js} +4 -4
  161. package/dist/{chunk-5BICYVE3.js.map → chunk-SUW3BMDE.js.map} +1 -1
  162. package/dist/{chunk-N2346B57.js → chunk-UPKX5CSP.js} +3 -3
  163. package/dist/{chunk-N2346B57.js.map → chunk-UPKX5CSP.js.map} +1 -1
  164. package/dist/{chunk-5KEYJA77.js → chunk-VI7RQJS7.js} +4 -4
  165. package/dist/{chunk-5KEYJA77.js.map → chunk-VI7RQJS7.js.map} +1 -1
  166. package/dist/{chunk-OOZ7R5J6.js → chunk-VLLKXG5J.js} +5 -5
  167. package/dist/{chunk-OOZ7R5J6.js.map → chunk-VLLKXG5J.js.map} +1 -1
  168. package/dist/{chunk-CZHLGKXR.js → chunk-VQZU5VT3.js} +5 -5
  169. package/dist/{chunk-CZHLGKXR.js.map → chunk-VQZU5VT3.js.map} +1 -1
  170. package/dist/{chunk-CDO7VXWO.js → chunk-WL5KWZL2.js} +4 -4
  171. package/dist/{chunk-CDO7VXWO.js.map → chunk-WL5KWZL2.js.map} +1 -1
  172. package/dist/{chunk-XG2LXO24.js → chunk-X25XUDFI.js} +7 -7
  173. package/dist/{chunk-XG2LXO24.js.map → chunk-X25XUDFI.js.map} +1 -1
  174. package/dist/{chunk-TQ4UZJSG.js → chunk-XETJVOYZ.js} +7 -7
  175. package/dist/{chunk-TQ4UZJSG.js.map → chunk-XETJVOYZ.js.map} +1 -1
  176. package/dist/{chunk-5TGDSE64.js → chunk-XKAL233L.js} +4 -4
  177. package/dist/{chunk-5TGDSE64.js.map → chunk-XKAL233L.js.map} +1 -1
  178. package/dist/{chunk-MHSASWOS.js → chunk-XPT4ZX7U.js} +4 -4
  179. package/dist/{chunk-MHSASWOS.js.map → chunk-XPT4ZX7U.js.map} +1 -1
  180. package/dist/{chunk-E6SPIMQ5.js → chunk-XVTXIVFM.js} +5 -5
  181. package/dist/{chunk-E6SPIMQ5.js.map → chunk-XVTXIVFM.js.map} +1 -1
  182. package/dist/{chunk-QXAUEOHK.js → chunk-YCQK4JRW.js} +2 -2
  183. package/dist/{chunk-QXAUEOHK.js.map → chunk-YCQK4JRW.js.map} +1 -1
  184. package/dist/{chunk-DECKE4BB.js → chunk-YWPVPERZ.js} +3 -3
  185. package/dist/{chunk-DECKE4BB.js.map → chunk-YWPVPERZ.js.map} +1 -1
  186. package/dist/{chunk-KMAKPTHT.js → chunk-Z6ZZRFM4.js} +4 -4
  187. package/dist/{chunk-KMAKPTHT.js.map → chunk-Z6ZZRFM4.js.map} +1 -1
  188. package/dist/{chunk-QY77WLK3.js → chunk-ZOH4AEIE.js} +3 -3
  189. package/dist/{chunk-QY77WLK3.js.map → chunk-ZOH4AEIE.js.map} +1 -1
  190. package/dist/{chunk-XYVU5KGN.js → chunk-ZUUGJHI3.js} +3 -3
  191. package/dist/{chunk-XYVU5KGN.js.map → chunk-ZUUGJHI3.js.map} +1 -1
  192. package/dist/components/cart/index.js +1 -1
  193. package/dist/components/common/index.js +1 -1
  194. package/dist/components/drawer/index.js +15 -15
  195. package/dist/components/home/index.js +20 -20
  196. package/dist/components/layout/index.js +4 -4
  197. package/dist/components/product/index.js +17 -17
  198. package/dist/components/store/index.js +16 -16
  199. package/dist/components/tracking/index.js +6 -6
  200. package/dist/{custom-urls-DTRBRO4J.js → custom-urls-2CS3REHI.js} +7 -7
  201. package/dist/{custom-urls-DTRBRO4J.js.map → custom-urls-2CS3REHI.js.map} +1 -1
  202. package/dist/dev/editor/index.js +1 -1
  203. package/dist/dev/index.js +1 -1
  204. package/dist/{document-class-34BKJ6VD.js → document-class-LDIJOBHB.js} +17 -17
  205. package/dist/{document-class-34BKJ6VD.js.map → document-class-LDIJOBHB.js.map} +1 -1
  206. package/dist/hooks/index.js +15 -15
  207. package/dist/hooks/useGtm.js +15 -15
  208. package/dist/hooks/useMoney.js +15 -15
  209. package/dist/hooks/useStore.js +15 -15
  210. package/dist/hooks/useUser.js +3 -3
  211. package/dist/index.js +15 -15
  212. package/dist/{navigation-5ACP47I3.js → navigation-RLL752ZZ.js} +4 -4
  213. package/dist/{navigation-5ACP47I3.js.map → navigation-RLL752ZZ.js.map} +1 -1
  214. package/dist/{navigation-VVCRXGCD.js → navigation-UOOAMJLY.js} +5 -5
  215. package/dist/{navigation-VVCRXGCD.js.map → navigation-UOOAMJLY.js.map} +1 -1
  216. package/dist/{not-found-ABDLLYDO.js → not-found-QYWU3B4R.js} +18 -18
  217. package/dist/{not-found-ABDLLYDO.js.map → not-found-QYWU3B4R.js.map} +1 -1
  218. package/dist/providers/index.js +15 -15
  219. package/dist/routes/account/orders.js +4 -4
  220. package/dist/routes/account.js +13 -13
  221. package/dist/routes/blog.js +8 -8
  222. package/dist/routes/brands/loader.d.ts.map +1 -1
  223. package/dist/routes/brands.js +13 -5
  224. package/dist/routes/brands.js.map +1 -1
  225. package/dist/routes/cart.js +23 -23
  226. package/dist/routes/home.js +21 -21
  227. package/dist/routes/index.js +8 -8
  228. package/dist/routes/loyalty.js +5 -5
  229. package/dist/routes/page.js +4 -4
  230. package/dist/routes/product-listing.js +25 -25
  231. package/dist/routes/product.js +24 -24
  232. package/dist/routes/seo-redirects.js +8 -8
  233. package/dist/routes/testimonials.js +2 -2
  234. package/dist/routes/thank-you.js +4 -4
  235. package/dist/skeleton.js +21 -21
  236. package/dist/{store-lookup-RKU4RHPS.js → store-lookup-OO2FPCFW.js} +8 -8
  237. package/dist/{store-lookup-RKU4RHPS.js.map → store-lookup-OO2FPCFW.js.map} +1 -1
  238. package/dist/tanstack.js +17 -17
  239. package/dist/utils/index.js +2 -2
  240. package/package.json +1 -1
  241. package/tailwind/routes/brands/loader.ts.txt +19 -1
  242. package/dist/GoogleTag-VBFDNEU6.js +0 -15
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/api/custom-url.ts"],"names":[],"mappings":";;;AAeO,IAAM,SAAA,GAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMvB,OAAA,EAAS,OAAO,IAAA,KAA2C;AACzD,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,IACpB,GAAA,CAAI,aAAA,EAAe,EAAE,YAAA,EAAc,EAAE,OAAA,EAAS,IAAA,EAAK,EAAG,EACtD,IAAA,EAAgC;AACnC,IAAA,OAAO,IAAA;AAAA,EACT,CAAA;AAAA,EAEA,OAAA,EAAS;AAAA,IACP,OAAA,EAAS,CAAC,IAAA,KACR,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,CAAC,aAAA,EAAe,SAAA,EAAW,IAAI,CAAA;AAAA,MACzC,OAAA,EAAS,MAAM,SAAA,CAAU,OAAA,CAAQ,IAAI;AAAA,KACtC;AAAA;AAEP","file":"chunk-J3RK2CPN.js","sourcesContent":["import { queryOptions } from '@tanstack/react-query';\nimport { api } from './client';\n\n/** What a merchant's custom URL names (Dashboard → SEO → custom links). */\nexport type CustomUrlType = 'product' | 'category' | 'brand' | 'tag' | 'page' | 'custom';\n\n/**\n * Where a custom URL leads, as the Store's catch-all redirects it: the item's own URL, or, for a\n * `custom` row, the merchant's absolute URL.\n */\nexport interface CustomUrlTarget {\n url: string;\n type: CustomUrlType;\n}\n\nexport const customUrl = {\n /**\n * The custom URL saved for `path` (no store base, no language segment), looked up as the\n * Store's catch-all does (`GET custom-urls?keyword=`, Store-Module#1798). A path with none\n * answers 404, and a store whose plan has no custom URLs 403.\n */\n resolve: async (path: string): Promise<CustomUrlTarget> => {\n const { data } = await api\n .get('custom-urls', { searchParams: { keyword: path } })\n .json<{ data: CustomUrlTarget }>();\n return data;\n },\n\n queries: {\n resolve: (path: string) =>\n queryOptions({\n queryKey: ['custom-urls', 'resolve', path],\n queryFn: () => customUrl.resolve(path),\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["../src/api/custom-url.ts"],"names":[],"mappings":";;;AAeO,IAAM,SAAA,GAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMvB,OAAA,EAAS,OAAO,IAAA,KAA2C;AACzD,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,IACpB,GAAA,CAAI,aAAA,EAAe,EAAE,YAAA,EAAc,EAAE,OAAA,EAAS,IAAA,EAAK,EAAG,EACtD,IAAA,EAAgC;AACnC,IAAA,OAAO,IAAA;AAAA,EACT,CAAA;AAAA,EAEA,OAAA,EAAS;AAAA,IACP,OAAA,EAAS,CAAC,IAAA,KACR,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,CAAC,aAAA,EAAe,SAAA,EAAW,IAAI,CAAA;AAAA,MACzC,OAAA,EAAS,MAAM,SAAA,CAAU,OAAA,CAAQ,IAAI;AAAA,KACtC;AAAA;AAEP","file":"chunk-6RJFC2TQ.js","sourcesContent":["import { queryOptions } from '@tanstack/react-query';\nimport { api } from './client';\n\n/** What a merchant's custom URL names (Dashboard → SEO → custom links). */\nexport type CustomUrlType = 'product' | 'category' | 'brand' | 'tag' | 'page' | 'custom';\n\n/**\n * Where a custom URL leads, as the Store's catch-all redirects it: the item's own URL, or, for a\n * `custom` row, the merchant's absolute URL.\n */\nexport interface CustomUrlTarget {\n url: string;\n type: CustomUrlType;\n}\n\nexport const customUrl = {\n /**\n * The custom URL saved for `path` (no store base, no language segment), looked up as the\n * Store's catch-all does (`GET custom-urls?keyword=`, Store-Module#1798). A path with none\n * answers 404, and a store whose plan has no custom URLs 403.\n */\n resolve: async (path: string): Promise<CustomUrlTarget> => {\n const { data } = await api\n .get('custom-urls', { searchParams: { keyword: path } })\n .json<{ data: CustomUrlTarget }>();\n return data;\n },\n\n queries: {\n resolve: (path: string) =>\n queryOptions({\n queryKey: ['custom-urls', 'resolve', path],\n queryFn: () => customUrl.resolve(path),\n }),\n },\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { getActiveCurrency } from './chunk-DECKE4BB.js';
1
+ import { getActiveCurrency } from './chunk-YWPVPERZ.js';
2
2
  import { whenSallaLoaded } from './chunk-MZPX4EPS.js';
3
3
  import { getTwilightContext } from './chunk-MWUAHDQL.js';
4
4
 
@@ -92,5 +92,5 @@ function dispatchProductsFetched(list, source) {
92
92
  }
93
93
 
94
94
  export { dispatchCartViewed, dispatchPageViewed, dispatchProductViewed, dispatchProductsFetched, dispatchRouteChanged, dispatchRouteChanging, setAnalyticsPage };
95
- //# sourceMappingURL=chunk-53IXAXYU.js.map
96
- //# sourceMappingURL=chunk-53IXAXYU.js.map
95
+ //# sourceMappingURL=chunk-7B3HAC7N.js.map
96
+ //# sourceMappingURL=chunk-7B3HAC7N.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils/sdk-events.ts"],"names":[],"mappings":";;;;;AA6BO,SAAS,oBAAA,GAA6B;AAC3C,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AAEnC,EAAA,MAAM,QAAQ,MAAA,CAAO,KAAA;AACrB,EAAA,IAAI,CAAC,KAAA,EAAO,KAAA,EAAO,QAAA,EAAU;AAE7B,EAAA,MAAM,MAAM,kBAAA,EAAmB;AAC/B,EAAA,KAAA,CAAM,MAAM,QAAA,CAAS,gBAAA,EAAkB,GAAA,CAAI,IAAA,IAAQ,EAAE,CAAA;AACvD;AA4BO,SAAS,sBAAsB,KAAA,EAAiC;AACrE,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AAEnC,EAAA,MAAM,QAAQ,MAAA,CAAO,KAAA;AACrB,EAAA,IAAI,CAAC,KAAA,EAAO,KAAA,EAAO,QAAA,EAA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MAAU;AAAA,MAClC,IAAI,IAAA,CAAK,UAAA;AAAA,MACT,cAAc,IAAA,CAAK,EAAA;AAAA,MACnB,MAAM,IAAA,CAAK,YAAA;AAAA,MACX,KAAA,EAAO,QAAA,CAAS,IAAA,CAAK,KAAK,CAAA;AAAA,MAC1B,KAAK,IAAA,CAAK,GAAA;AAAA,MACV,WAAW,IAAA,CAAK,aAAA;AAAA,MAChB,MAAA,EAAQ,KAAK,MAAA,IAAU,MAAA;AAAA,MACvB,UAAU,IAAA,CAAK;AAAA,KACjB,CAAE;AAAA,GACJ;AACA,EAAA,eAAA;AAAA,IACE,CAAC,GAAA,KAAQ,KAAK,GAAA,CAAI,SAAQ,CAAE,IAAA,CAAK,MAAM,GAAA,CAAI,MAAM,QAAA,CAAS,aAAA,EAAe,CAAC,OAAO,CAAC,CAAC;AAAA,GACrF;AACF;AAcO,SAAS,uBAAA,CACd,MACA,MAAA,EACM;AACN,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAA,MAAM,OAAA,GAAU;AAAA,IACd,MAAM,IAAA,CAAK,KAAA;AAAA,IACX,MAAA,EAAQ,EAAE,IAAA,EAAM,IAAA,CAAK,IAAA,EAAK;AAAA,IAC1B,UAAU,IAAA,CAAK,IAAA;AAAA,IACf,QAAQ,MAAA,CAAO,IAAA;AAAA,IACf,aAAa,MAAA,CAAO;AAAA,GACtB;AACA,EAAA,eAAA;AAAA,IACE,CAAC,GAAA,KACC,KAAK,GAAA,CACF,OAAA,EAAQ,CACR,IAAA,CAAK,MAAM,GAAA,CAAI,KAAA,CAAM,QAAA,CAAS,uCAAA,EAAyC,OAAO,CAAC;AAAA,GACtF;AACF","file":"chunk-53IXAXYU.js","sourcesContent":["import { getTwilightContext } from '../twilight/context';\nimport type { PageContext } from '../twilight/context';\nimport type { Cart, Money, Product } from '../types';\nimport { getActiveCurrency } from '../api/client';\nimport { whenSallaLoaded } from './sdk-helpers';\n\n/**\n * Payload dispatched via `salla.event.dispatch('route::changed', payload)`\n * after each client-side navigation completes.\n *\n * The page config fields are spread at root level. When the matched route\n * has no page data (e.g., 404, error boundary), an empty object is dispatched.\n *\n * @example\n * ```ts\n * salla.event.on('route::changed', (page: RouteChangedEvent) => {\n * console.log(page.slug, page.title, page.id);\n * });\n * ```\n */\nexport type RouteChangedEvent = PageContext;\n\n/**\n * Dispatch the `route::changed` Salla SDK event with the current page config.\n *\n * Framework-agnostic — reads from the twilight context store which is\n * populated by whichever framework adapter is active (TanStack, Next.js, etc.).\n * Each adapter should call this after navigation resolves.\n */\nexport function dispatchRouteChanged(): void {\n if (typeof window === 'undefined') return;\n\n const salla = window.salla;\n if (!salla?.event?.dispatch) return;\n\n const ctx = getTwilightContext();\n salla.event.dispatch('route::changed', ctx.page ?? {});\n}\n\n/**\n * Payload dispatched via `salla.event.dispatch('route::changing', payload)` when a navigation\n * in the browser starts, before the next page's data loads. Every navigation that starts ends\n * with `route::changed`; when a second navigation interrupts the first, the two starts share\n * that one end.\n *\n * @example\n * ```ts\n * salla.event.on('route::changing', (nav: RouteChangingEvent) => {\n * if (nav.pathChanged) widget.hidden = true;\n * });\n * salla.event.on('route::changed', () => {\n * widget.hidden = false;\n * });\n * ```\n */\nexport interface RouteChangingEvent {\n /** The address being opened: path, query and hash, as the address bar will show it. */\n url: string;\n /** The address being left, in the same form. */\n from: string;\n /** False when only the query or hash changes, such as a re-sort or a filter of the same list. */\n pathChanged: boolean;\n}\n\n/** Dispatch the `route::changing` Salla SDK event: a navigation in the browser has started. */\nexport function dispatchRouteChanging(event: RouteChangingEvent): void {\n if (typeof window === 'undefined') return;\n\n const salla = window.salla;\n if (!salla?.event?.dispatch) return;\n\n salla.event.dispatch('route::changing', event);\n}\n\n/**\n * Dispatch `Product Viewed`, which Twig's product page hands the SDK through `salla.init`'s\n * `events`: store analytics, pixels and apps that remember viewed products listen for it.\n */\nexport function dispatchProductViewed(product: Product): void {\n if (typeof window === 'undefined') return;\n const price = Number(product.price) || 0;\n const image = product.image?.url ?? '';\n const payload = {\n id: product.id,\n name: product.name,\n categories: product.category ? [{ id: product.category.id, name: product.category.name }] : [],\n category: product.category?.name ?? '',\n price,\n quantity: 1,\n variant: '',\n brand: product.brand?.name ?? '',\n image,\n currency: getActiveCurrency(product.currency),\n sku: product.sku ?? '',\n value: price,\n url: product.url,\n image_url: image,\n };\n // After init: analytics drops events until `salla.init` has merged the store's `jitsu` list.\n whenSallaLoaded(\n (sdk) => void sdk.onReady().then(() => sdk.event.dispatch('Product Viewed', [payload]))\n );\n}\n\n/**\n * Report a page view after a client-side navigation. Twig loads every page, and the SDK's\n * analytics reports one view on ready; a React navigation loads nothing, so the store's\n * analytics saw the first page only, and every later event carried that page's context.\n *\n * `referrer` is the page navigated from: `document.referrer` still names the page before the\n * first one.\n */\nexport function dispatchPageViewed(referrer: string): void {\n if (typeof window === 'undefined') return;\n const page = getTwilightContext().page;\n if (!page) return;\n const payload = analyticsPage(page);\n whenSallaLoaded(\n (sdk) => void sdk.onReady().then(() => sdk.analytics?.page?.({ ...payload, referrer }))\n );\n}\n\nconst analyticsPage = (page: PageContext) => ({ name: page.slug ?? '', id: String(page.id ?? '') });\n\n/** Point the analytics `page` context at a page navigated to, before its own events go out. */\nexport function setAnalyticsPage(page: PageContext): void {\n if (typeof window === 'undefined') return;\n const context = analyticsPage(page);\n whenSallaLoaded(\n (sdk) => void sdk.onReady().then(() => sdk.analytics?.setContext?.('page', context))\n );\n}\n\nconst amountOf = (price: number | Money | undefined): number =>\n typeof price === 'object' ? Number(price.amount) || 0 : Number(price) || 0;\n\n/**\n * Dispatch `Cart Viewed`, which Twig's cart page hands the SDK through `salla.init`'s `events`.\n * The React cart page loads the cart in the browser, so the engine reports it once it has it.\n */\nexport function dispatchCartViewed(cart: Cart): void {\n if (typeof window === 'undefined') return;\n const payload = {\n cart_id: cart.id,\n products: cart.items.map((item) => ({\n id: item.product_id,\n cart_item_id: item.id,\n name: item.product_name,\n price: amountOf(item.price),\n url: item.url,\n image_url: item.product_image,\n coupon: cart.coupon ?? undefined,\n quantity: item.quantity,\n })),\n };\n whenSallaLoaded(\n (sdk) => void sdk.onReady().then(() => sdk.event.dispatch('Cart Viewed', [payload]))\n );\n}\n\n/** A page of a product listing, as `product.list` returns it. */\nexport interface ProductsFetched {\n items: Product[];\n /** The API's next-page URL: it carries the sort and any `filters[...]` the page was fetched with. */\n next: string | null;\n}\n\n/**\n * Emit `salla-products-list::products.fetched` for a page of a product listing, as Twig's\n * `<salla-products-list>` does on each page it fetches. The store's analytics maps it to\n * `Product List Viewed`, or `Product List Filtered` when the page was fetched with filters.\n */\nexport function dispatchProductsFetched(\n list: ProductsFetched,\n source: { type: string; value?: string }\n): void {\n if (typeof window === 'undefined') return;\n const payload = {\n data: list.items,\n cursor: { next: list.next },\n nextPage: list.next,\n source: source.type,\n sourceValue: source.value,\n };\n whenSallaLoaded(\n (sdk) =>\n void sdk\n .onReady()\n .then(() => sdk.event.dispatch('salla-products-list::products.fetched', payload))\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/utils/sdk-events.ts"],"names":[],"mappings":";;;;;AA6BO,SAAS,oBAAA,GAA6B;AAC3C,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AAEnC,EAAA,MAAM,QAAQ,MAAA,CAAO,KAAA;AACrB,EAAA,IAAI,CAAC,KAAA,EAAO,KAAA,EAAO,QAAA,EAAU;AAE7B,EAAA,MAAM,MAAM,kBAAA,EAAmB;AAC/B,EAAA,KAAA,CAAM,MAAM,QAAA,CAAS,gBAAA,EAAkB,GAAA,CAAI,IAAA,IAAQ,EAAE,CAAA;AACvD;AA4BO,SAAS,sBAAsB,KAAA,EAAiC;AACrE,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AAEnC,EAAA,MAAM,QAAQ,MAAA,CAAO,KAAA;AACrB,EAAA,IAAI,CAAC,KAAA,EAAO,KAAA,EAAO,QAAA,EAAU;AAE7B,EAAA,KAAA,CAAM,KAAA,CAAM,QAAA,CAAS,iBAAA,EAAmB,KAA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,EAAA;AAAA,MACnB,MAAM,IAAA,CAAK,YAAA;AAAA,MACX,KAAA,EAAO,QAAA,CAAS,IAAA,CAAK,KAAK,CAAA;AAAA,MAC1B,KAAK,IAAA,CAAK,GAAA;AAAA,MACV,WAAW,IAAA,CAAK,aAAA;AAAA,MAChB,MAAA,EAAQ,KAAK,MAAA,IAAU,MAAA;AAAA,MACvB,UAAU,IAAA,CAAK;AAAA,KACjB,CAAE;AAAA,GACJ;AACA,EAAA,eAAA;AAAA,IACE,CAAC,GAAA,KAAQ,KAAK,GAAA,CAAI,SAAQ,CAAE,IAAA,CAAK,MAAM,GAAA,CAAI,MAAM,QAAA,CAAS,aAAA,EAAe,CAAC,OAAO,CAAC,CAAC;AAAA,GACrF;AACF;AAcO,SAAS,uBAAA,CACd,MACA,MAAA,EACM;AACN,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAA,MAAM,OAAA,GAAU;AAAA,IACd,MAAM,IAAA,CAAK,KAAA;AAAA,IACX,MAAA,EAAQ,EAAE,IAAA,EAAM,IAAA,CAAK,IAAA,EAAK;AAAA,IAC1B,UAAU,IAAA,CAAK,IAAA;AAAA,IACf,QAAQ,MAAA,CAAO,IAAA;AAAA,IACf,aAAa,MAAA,CAAO;AAAA,GACtB;AACA,EAAA,eAAA;AAAA,IACE,CAAC,GAAA,KACC,KAAK,GAAA,CACF,OAAA,EAAQ,CACR,IAAA,CAAK,MAAM,GAAA,CAAI,KAAA,CAAM,QAAA,CAAS,uCAAA,EAAyC,OAAO,CAAC;AAAA,GACtF;AACF","file":"chunk-7B3HAC7N.js","sourcesContent":["import { getTwilightContext } from '../twilight/context';\nimport type { PageContext } from '../twilight/context';\nimport type { Cart, Money, Product } from '../types';\nimport { getActiveCurrency } from '../api/client';\nimport { whenSallaLoaded } from './sdk-helpers';\n\n/**\n * Payload dispatched via `salla.event.dispatch('route::changed', payload)`\n * after each client-side navigation completes.\n *\n * The page config fields are spread at root level. When the matched route\n * has no page data (e.g., 404, error boundary), an empty object is dispatched.\n *\n * @example\n * ```ts\n * salla.event.on('route::changed', (page: RouteChangedEvent) => {\n * console.log(page.slug, page.title, page.id);\n * });\n * ```\n */\nexport type RouteChangedEvent = PageContext;\n\n/**\n * Dispatch the `route::changed` Salla SDK event with the current page config.\n *\n * Framework-agnostic — reads from the twilight context store which is\n * populated by whichever framework adapter is active (TanStack, Next.js, etc.).\n * Each adapter should call this after navigation resolves.\n */\nexport function dispatchRouteChanged(): void {\n if (typeof window === 'undefined') return;\n\n const salla = window.salla;\n if (!salla?.event?.dispatch) return;\n\n const ctx = getTwilightContext();\n salla.event.dispatch('route::changed', ctx.page ?? {});\n}\n\n/**\n * Payload dispatched via `salla.event.dispatch('route::changing', payload)` when a navigation\n * in the browser starts, before the next page's data loads. Every navigation that starts ends\n * with `route::changed`; when a second navigation interrupts the first, the two starts share\n * that one end.\n *\n * @example\n * ```ts\n * salla.event.on('route::changing', (nav: RouteChangingEvent) => {\n * if (nav.pathChanged) widget.hidden = true;\n * });\n * salla.event.on('route::changed', () => {\n * widget.hidden = false;\n * });\n * ```\n */\nexport interface RouteChangingEvent {\n /** The address being opened: path, query and hash, as the address bar will show it. */\n url: string;\n /** The address being left, in the same form. */\n from: string;\n /** False when only the query or hash changes, such as a re-sort or a filter of the same list. */\n pathChanged: boolean;\n}\n\n/** Dispatch the `route::changing` Salla SDK event: a navigation in the browser has started. */\nexport function dispatchRouteChanging(event: RouteChangingEvent): void {\n if (typeof window === 'undefined') return;\n\n const salla = window.salla;\n if (!salla?.event?.dispatch) return;\n\n salla.event.dispatch('route::changing', event);\n}\n\n/**\n * Dispatch `Product Viewed`, which Twig's product page hands the SDK through `salla.init`'s\n * `events`: store analytics, pixels and apps that remember viewed products listen for it.\n */\nexport function dispatchProductViewed(product: Product): void {\n if (typeof window === 'undefined') return;\n const price = Number(product.price) || 0;\n const image = product.image?.url ?? '';\n const payload = {\n id: product.id,\n name: product.name,\n categories: product.category ? [{ id: product.category.id, name: product.category.name }] : [],\n category: product.category?.name ?? '',\n price,\n quantity: 1,\n variant: '',\n brand: product.brand?.name ?? '',\n image,\n currency: getActiveCurrency(product.currency),\n sku: product.sku ?? '',\n value: price,\n url: product.url,\n image_url: image,\n };\n // After init: analytics drops events until `salla.init` has merged the store's `jitsu` list.\n whenSallaLoaded(\n (sdk) => void sdk.onReady().then(() => sdk.event.dispatch('Product Viewed', [payload]))\n );\n}\n\n/**\n * Report a page view after a client-side navigation. Twig loads every page, and the SDK's\n * analytics reports one view on ready; a React navigation loads nothing, so the store's\n * analytics saw the first page only, and every later event carried that page's context.\n *\n * `referrer` is the page navigated from: `document.referrer` still names the page before the\n * first one.\n */\nexport function dispatchPageViewed(referrer: string): void {\n if (typeof window === 'undefined') return;\n const page = getTwilightContext().page;\n if (!page) return;\n const payload = analyticsPage(page);\n whenSallaLoaded(\n (sdk) => void sdk.onReady().then(() => sdk.analytics?.page?.({ ...payload, referrer }))\n );\n}\n\nconst analyticsPage = (page: PageContext) => ({ name: page.slug ?? '', id: String(page.id ?? '') });\n\n/** Point the analytics `page` context at a page navigated to, before its own events go out. */\nexport function setAnalyticsPage(page: PageContext): void {\n if (typeof window === 'undefined') return;\n const context = analyticsPage(page);\n whenSallaLoaded(\n (sdk) => void sdk.onReady().then(() => sdk.analytics?.setContext?.('page', context))\n );\n}\n\nconst amountOf = (price: number | Money | undefined): number =>\n typeof price === 'object' ? Number(price.amount) || 0 : Number(price) || 0;\n\n/**\n * Dispatch `Cart Viewed`, which Twig's cart page hands the SDK through `salla.init`'s `events`.\n * The React cart page loads the cart in the browser, so the engine reports it once it has it.\n */\nexport function dispatchCartViewed(cart: Cart): void {\n if (typeof window === 'undefined') return;\n const payload = {\n cart_id: cart.id,\n products: cart.items.map((item) => ({\n id: item.product_id,\n cart_item_id: item.id,\n name: item.product_name,\n price: amountOf(item.price),\n url: item.url,\n image_url: item.product_image,\n coupon: cart.coupon ?? undefined,\n quantity: item.quantity,\n })),\n };\n whenSallaLoaded(\n (sdk) => void sdk.onReady().then(() => sdk.event.dispatch('Cart Viewed', [payload]))\n );\n}\n\n/** A page of a product listing, as `product.list` returns it. */\nexport interface ProductsFetched {\n items: Product[];\n /** The API's next-page URL: it carries the sort and any `filters[...]` the page was fetched with. */\n next: string | null;\n}\n\n/**\n * Emit `salla-products-list::products.fetched` for a page of a product listing, as Twig's\n * `<salla-products-list>` does on each page it fetches. The store's analytics maps it to\n * `Product List Viewed`, or `Product List Filtered` when the page was fetched with filters.\n */\nexport function dispatchProductsFetched(\n list: ProductsFetched,\n source: { type: string; value?: string }\n): void {\n if (typeof window === 'undefined') return;\n const payload = {\n data: list.items,\n cursor: { next: list.next },\n nextPage: list.next,\n source: source.type,\n sourceValue: source.value,\n };\n whenSallaLoaded(\n (sdk) =>\n void sdk\n .onReady()\n .then(() => sdk.event.dispatch('salla-products-list::products.fetched', payload))\n );\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { orThrow } from './chunk-JZOBRBDY.js';
2
- import { api } from './chunk-DECKE4BB.js';
1
+ import { orThrow } from './chunk-5TVOTTHS.js';
2
+ import { api } from './chunk-YWPVPERZ.js';
3
3
  import { queryOptions } from '@tanstack/react-query';
4
4
 
5
5
  var page = {
@@ -17,5 +17,5 @@ var page = {
17
17
  };
18
18
 
19
19
  export { page };
20
- //# sourceMappingURL=chunk-53CWWIKH.js.map
21
- //# sourceMappingURL=chunk-53CWWIKH.js.map
20
+ //# sourceMappingURL=chunk-7KRZ5LXJ.js.map
21
+ //# sourceMappingURL=chunk-7KRZ5LXJ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/api/page.ts"],"names":[],"mappings":";;;;AAKO,IAAM,IAAA,GAAO;AAAA,EAClB,IAAA,EAAM,OAAO,IAAA,KAA2C;AACtD,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,GAAA,CAAI,IAAI,CAAA,MAAA,EAAS,IAAI,CAAA,CAAE,CAAA,CAAE,IAAA,EAAgC;AAChF,IAAA,OAAO,IAAA;AAAA,EACT,CAAA;AAAA,EAEA,aAAa,CAAC,IAAA,KAA2C,QAAQ,IAAA,CAAK,IAAA,CAAK,IAAI,CAAC,CAAA;AAAA,EAEhF,OAAA,EAAS;AAAA,IACP,MAAA,EAAQ,CAAC,IAAA,KACP,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,CAAC,OAAA,EAAS,QAAA,EAAU,IAAI,CAAA;AAAA,MAClC,OAAA,EAAS,MAAM,IAAA,CAAK,IAAA,CAAK,IAAI;AAAA,KAC9B;AAAA;AAEP","file":"chunk-53CWWIKH.js","sourcesContent":["import { queryOptions } from '@tanstack/react-query';\nimport { api } from './client';\nimport type { ApiPageResponse } from '../routes/page/types';\nimport { orThrow } from '../providers/NavigationProvider';\n\nexport const page = {\n find: async (slug: string): Promise<ApiPageResponse> => {\n const { data } = await api.get(`pages/${slug}`).json<{ data: ApiPageResponse }>();\n return data;\n },\n\n findOrThrow: (slug: string): Promise<ApiPageResponse> => orThrow(page.find(slug)),\n\n queries: {\n detail: (slug: string) =>\n queryOptions({\n queryKey: ['pages', 'detail', slug],\n queryFn: () => page.find(slug),\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["../src/api/page.ts"],"names":[],"mappings":";;;;AAKO,IAAM,IAAA,GAAO;AAAA,EAClB,IAAA,EAAM,OAAO,IAAA,KAA2C;AACtD,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,GAAA,CAAI,IAAI,CAAA,MAAA,EAAS,IAAI,CAAA,CAAE,CAAA,CAAE,IAAA,EAAgC;AAChF,IAAA,OAAO,IAAA;AAAA,EACT,CAAA;AAAA,EAEA,aAAa,CAAC,IAAA,KAA2C,QAAQ,IAAA,CAAK,IAAA,CAAK,IAAI,CAAC,CAAA;AAAA,EAEhF,OAAA,EAAS;AAAA,IACP,MAAA,EAAQ,CAAC,IAAA,KACP,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,CAAC,OAAA,EAAS,QAAA,EAAU,IAAI,CAAA;AAAA,MAClC,OAAA,EAAS,MAAM,IAAA,CAAK,IAAA,CAAK,IAAI;AAAA,KAC9B;AAAA;AAEP","file":"chunk-7KRZ5LXJ.js","sourcesContent":["import { queryOptions } from '@tanstack/react-query';\nimport { api } from './client';\nimport type { ApiPageResponse } from '../routes/page/types';\nimport { orThrow } from '../providers/NavigationProvider';\n\nexport const page = {\n find: async (slug: string): Promise<ApiPageResponse> => {\n const { data } = await api.get(`pages/${slug}`).json<{ data: ApiPageResponse }>();\n return data;\n },\n\n findOrThrow: (slug: string): Promise<ApiPageResponse> => orThrow(page.find(slug)),\n\n queries: {\n detail: (slug: string) =>\n queryOptions({\n queryKey: ['pages', 'detail', slug],\n queryFn: () => page.find(slug),\n }),\n },\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-DECKE4BB.js';
1
+ import { api } from './chunk-YWPVPERZ.js';
2
2
  import { queryOptions } from '@tanstack/react-query';
3
3
 
4
4
  var user = {
@@ -19,5 +19,5 @@ var user = {
19
19
  };
20
20
 
21
21
  export { user };
22
- //# sourceMappingURL=chunk-CRW77N4M.js.map
23
- //# sourceMappingURL=chunk-CRW77N4M.js.map
22
+ //# sourceMappingURL=chunk-7RKZXLBL.js.map
23
+ //# sourceMappingURL=chunk-7RKZXLBL.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/api/user.ts"],"names":[],"mappings":";;;AAIO,IAAM,IAAA,GAAO;AAAA,EAClB,KAAK,YAAkC;AACrC,IAAA,IAAI;AACF,MAAA,OAAO,MAAM,GAAA,CACV,GAAA,CAAI,WAAW,CAAA,CACf,MAAmC,CACnC,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,GAAG,CAAA,CAAE,IAAA,EAAM,IAAA,EAAM,QAAgB,CAAE,CAAA;AAAA,IACvD,SAAS,KAAA,EAAO;AACd,MAAA,OAAA,CAAQ,KAAA,CAAM,sBAAsB,KAAK,CAAA;AACzC,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF,CAAA;AAAA,EAEA,OAAA,EAAS;AAAA,IACP,OAAA,EAAS,MACP,YAAA,CAA0B;AAAA,MACxB,QAAA,EAAU,CAAC,MAAA,EAAQ,SAAS,CAAA;AAAA,MAC5B,SAAS,IAAA,CAAK;AAAA,KACf;AAAA;AAEP","file":"chunk-CRW77N4M.js","sourcesContent":["import { queryOptions } from '@tanstack/react-query';\nimport { api } from './client';\nimport type { User } from '../types';\n\nexport const user = {\n get: async (): Promise<User | null> => {\n try {\n return await api\n .get('auth/user')\n .json<{ data: Omit<User, 'type'> }>()\n .then((r) => ({ ...r.data, type: 'user' as const }));\n } catch (error) {\n console.debug('[user.get] Failed:', error);\n return null;\n }\n },\n\n queries: {\n current: () =>\n queryOptions<User | null>({\n queryKey: ['user', 'current'],\n queryFn: user.get,\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["../src/api/user.ts"],"names":[],"mappings":";;;AAIO,IAAM,IAAA,GAAO;AAAA,EAClB,KAAK,YAAkC;AACrC,IAAA,IAAI;AACF,MAAA,OAAO,MAAM,GAAA,CACV,GAAA,CAAI,WAAW,CAAA,CACf,MAAmC,CACnC,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,GAAG,CAAA,CAAE,IAAA,EAAM,IAAA,EAAM,QAAgB,CAAE,CAAA;AAAA,IACvD,SAAS,KAAA,EAAO;AACd,MAAA,OAAA,CAAQ,KAAA,CAAM,sBAAsB,KAAK,CAAA;AACzC,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF,CAAA;AAAA,EAEA,OAAA,EAAS;AAAA,IACP,OAAA,EAAS,MACP,YAAA,CAA0B;AAAA,MACxB,QAAA,EAAU,CAAC,MAAA,EAAQ,SAAS,CAAA;AAAA,MAC5B,SAAS,IAAA,CAAK;AAAA,KACf;AAAA;AAEP","file":"chunk-7RKZXLBL.js","sourcesContent":["import { queryOptions } from '@tanstack/react-query';\nimport { api } from './client';\nimport type { User } from '../types';\n\nexport const user = {\n get: async (): Promise<User | null> => {\n try {\n return await api\n .get('auth/user')\n .json<{ data: Omit<User, 'type'> }>()\n .then((r) => ({ ...r.data, type: 'user' as const }));\n } catch (error) {\n console.debug('[user.get] Failed:', error);\n return null;\n }\n },\n\n queries: {\n current: () =>\n queryOptions<User | null>({\n queryKey: ['user', 'current'],\n queryFn: user.get,\n }),\n },\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-DECKE4BB.js';
1
+ import { api } from './chunk-YWPVPERZ.js';
2
2
  import { queryOptions } from '@tanstack/react-query';
3
3
 
4
4
  var apps = {
@@ -40,5 +40,5 @@ var apps = {
40
40
  };
41
41
 
42
42
  export { apps };
43
- //# sourceMappingURL=chunk-VEUY4U3G.js.map
44
- //# sourceMappingURL=chunk-VEUY4U3G.js.map
43
+ //# sourceMappingURL=chunk-7U3JGTMX.js.map
44
+ //# sourceMappingURL=chunk-7U3JGTMX.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/api/apps.ts"],"names":[],"mappings":";;;AAmCO,IAAM,IAAA,GAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKlB,UAAU,YAAmC;AAC3C,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,GAAA,CACpB,GAAA,CAAI,eAAA,EAAiB,EAAE,OAAA,EAAS,IAAA,EAAM,CAAA,CACtC,IAAA,EAA8B;AACjC,IAAA,OAAO,QAAQ,EAAC;AAAA,EAClB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,UAAU,YAAkC;AAC1C,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,GAAA,CACpB,GAAA,CAAI,wBAAA,EAA0B,EAAE,OAAA,EAAS,IAAA,EAAM,CAAA,CAC/C,IAAA,EAAsC;AACzC,IAAA,OAAO,EAAE,IAAA,EAAM,IAAA,EAAM,IAAA,IAAQ,EAAC,EAAE;AAAA,EAClC,CAAA;AAAA,EAEA,OAAA,EAAS;AAAA,IACP,QAAA,EAAU,MACR,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,CAAC,MAAA,EAAQ,UAAU,CAAA;AAAA,MAC7B,OAAA,EAAS,MAAM,IAAA,CAAK,QAAA,EAAS;AAAA;AAAA,MAE7B,SAAA,EAAW,QAAA;AAAA;AAAA;AAAA;AAAA,MAIX,KAAA,EAAO;AAAA,KACR,CAAA;AAAA,IAEH,QAAA,EAAU,MACR,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,CAAC,MAAA,EAAQ,UAAU,CAAA;AAAA,MAC7B,OAAA,EAAS,MAAM,IAAA,CAAK,QAAA,EAAS;AAAA;AAAA,MAE7B,SAAA,EAAW,QAAA;AAAA,MACX,KAAA,EAAO;AAAA,KACR;AAAA;AAEP","file":"chunk-VEUY4U3G.js","sourcesContent":["import { queryOptions } from '@tanstack/react-query';\nimport { api } from './client';\n\nexport interface AppSnippetRow {\n place: string;\n content: string;\n url?: string | null;\n /**\n * Raw snippet id, emitted as `data-snippet-id`. Present only on CDN rows — the\n * inline branch of the backend's snippet parser omits the key entirely.\n */\n id?: number;\n /** `{{customer.x}}` placeholders in `content` to substitute from SDK config `user.*` keys. */\n customer_parameters?: string[];\n}\n\nexport interface AppSnippet {\n service: string;\n app_id: string;\n /** Encoded app id (`getRouteKey()`): the scope id its snippets bind to via `data-scope-id`,\n * and its settings-bucket key. Absent on payloads predating the settings API. */\n id?: string;\n app_slug: string;\n status: string;\n snippets: AppSnippetRow[];\n}\n\n/**\n * Per-app public `app.*` buckets for CDN snippets, keyed by encoded app id (== `AppSnippet.id`,\n * the `Salla.appScope` scope id). One isolated bucket per app; reads within a scope are bare `app.*`.\n */\nexport interface AppSettings {\n apps: Record<string, Record<string, unknown>>;\n}\n\nexport const apps = {\n /**\n * Installed apps' snippets (scripts/HTML to inject). Timeout-bounded because it's awaited in\n * rootBeforeLoad (SSR/TTFB): a slow response degrades to no CDN tags, never stalls the page.\n */\n snippets: async (): Promise<AppSnippet[]> => {\n const { data } = await api\n .get('apps/snippets', { timeout: 2500 })\n .json<{ data?: AppSnippet[] }>();\n return data ?? [];\n },\n\n /**\n * Per-app public `app.*` buckets, keyed by encoded app id. Timeout-bounded (SSR-awaited):\n * a slow response degrades to empty buckets (fail-open), never strands injection.\n */\n settings: async (): Promise<AppSettings> => {\n const { data } = await api\n .get('apps/snippets/settings', { timeout: 2500 })\n .json<{ data?: Partial<AppSettings> }>();\n return { apps: data?.apps ?? {} };\n },\n\n queries: {\n snippets: () =>\n queryOptions({\n queryKey: ['apps', 'snippets'],\n queryFn: () => apps.snippets(),\n // Snippets are static per session; one fetch per page load is enough.\n staleTime: Infinity,\n // No retry: this is awaited in rootBeforeLoad, so the router's default `retry: 1` would\n // make the SSR wait 2 x the 2500ms timeout (plus backoff) before failing open. The\n // 2500ms timeout must be the whole budget; the client fallback query does the retrying.\n retry: 0,\n }),\n\n settings: () =>\n queryOptions({\n queryKey: ['apps', 'settings'],\n queryFn: () => apps.settings(),\n // Encoded app ids and their buckets are stable per page; one fetch is enough.\n staleTime: Infinity,\n retry: 0,\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["../src/api/apps.ts"],"names":[],"mappings":";;;AAmCO,IAAM,IAAA,GAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKlB,UAAU,YAAmC;AAC3C,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,GAAA,CACpB,GAAA,CAAI,eAAA,EAAiB,EAAE,OAAA,EAAS,IAAA,EAAM,CAAA,CACtC,IAAA,EAA8B;AACjC,IAAA,OAAO,QAAQ,EAAC;AAAA,EAClB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,UAAU,YAAkC;AAC1C,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,MAAM,GAAA,CACpB,GAAA,CAAI,wBAAA,EAA0B,EAAE,OAAA,EAAS,IAAA,EAAM,CAAA,CAC/C,IAAA,EAAsC;AACzC,IAAA,OAAO,EAAE,IAAA,EAAM,IAAA,EAAM,IAAA,IAAQ,EAAC,EAAE;AAAA,EAClC,CAAA;AAAA,EAEA,OAAA,EAAS;AAAA,IACP,QAAA,EAAU,MACR,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,CAAC,MAAA,EAAQ,UAAU,CAAA;AAAA,MAC7B,OAAA,EAAS,MAAM,IAAA,CAAK,QAAA,EAAS;AAAA;AAAA,MAE7B,SAAA,EAAW,QAAA;AAAA;AAAA;AAAA;AAAA,MAIX,KAAA,EAAO;AAAA,KACR,CAAA;AAAA,IAEH,QAAA,EAAU,MACR,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,CAAC,MAAA,EAAQ,UAAU,CAAA;AAAA,MAC7B,OAAA,EAAS,MAAM,IAAA,CAAK,QAAA,EAAS;AAAA;AAAA,MAE7B,SAAA,EAAW,QAAA;AAAA,MACX,KAAA,EAAO;AAAA,KACR;AAAA;AAEP","file":"chunk-7U3JGTMX.js","sourcesContent":["import { queryOptions } from '@tanstack/react-query';\nimport { api } from './client';\n\nexport interface AppSnippetRow {\n place: string;\n content: string;\n url?: string | null;\n /**\n * Raw snippet id, emitted as `data-snippet-id`. Present only on CDN rows — the\n * inline branch of the backend's snippet parser omits the key entirely.\n */\n id?: number;\n /** `{{customer.x}}` placeholders in `content` to substitute from SDK config `user.*` keys. */\n customer_parameters?: string[];\n}\n\nexport interface AppSnippet {\n service: string;\n app_id: string;\n /** Encoded app id (`getRouteKey()`): the scope id its snippets bind to via `data-scope-id`,\n * and its settings-bucket key. Absent on payloads predating the settings API. */\n id?: string;\n app_slug: string;\n status: string;\n snippets: AppSnippetRow[];\n}\n\n/**\n * Per-app public `app.*` buckets for CDN snippets, keyed by encoded app id (== `AppSnippet.id`,\n * the `Salla.appScope` scope id). One isolated bucket per app; reads within a scope are bare `app.*`.\n */\nexport interface AppSettings {\n apps: Record<string, Record<string, unknown>>;\n}\n\nexport const apps = {\n /**\n * Installed apps' snippets (scripts/HTML to inject). Timeout-bounded because it's awaited in\n * rootBeforeLoad (SSR/TTFB): a slow response degrades to no CDN tags, never stalls the page.\n */\n snippets: async (): Promise<AppSnippet[]> => {\n const { data } = await api\n .get('apps/snippets', { timeout: 2500 })\n .json<{ data?: AppSnippet[] }>();\n return data ?? [];\n },\n\n /**\n * Per-app public `app.*` buckets, keyed by encoded app id. Timeout-bounded (SSR-awaited):\n * a slow response degrades to empty buckets (fail-open), never strands injection.\n */\n settings: async (): Promise<AppSettings> => {\n const { data } = await api\n .get('apps/snippets/settings', { timeout: 2500 })\n .json<{ data?: Partial<AppSettings> }>();\n return { apps: data?.apps ?? {} };\n },\n\n queries: {\n snippets: () =>\n queryOptions({\n queryKey: ['apps', 'snippets'],\n queryFn: () => apps.snippets(),\n // Snippets are static per session; one fetch per page load is enough.\n staleTime: Infinity,\n // No retry: this is awaited in rootBeforeLoad, so the router's default `retry: 1` would\n // make the SSR wait 2 x the 2500ms timeout (plus backoff) before failing open. The\n // 2500ms timeout must be the whole budget; the client fallback query does the retrying.\n retry: 0,\n }),\n\n settings: () =>\n queryOptions({\n queryKey: ['apps', 'settings'],\n queryFn: () => apps.settings(),\n // Encoded app ids and their buckets are stable per page; one fetch is enough.\n staleTime: Infinity,\n retry: 0,\n }),\n },\n};\n"]}
@@ -2,7 +2,7 @@ import { lazyComponent } from './chunk-VYGA5AT5.js';
2
2
 
3
3
  // src/components/common/lazy.ts
4
4
  var LazyBreadcrumb = lazyComponent(
5
- () => import('./Breadcrumb-TM4EXKTO.js').then((m) => ({ default: m.Breadcrumb }))
5
+ () => import('./Breadcrumb-RDJZ2ZLB.js').then((m) => ({ default: m.Breadcrumb }))
6
6
  );
7
7
  var LazyNoContent = lazyComponent(
8
8
  () => import('./NoContent-7YUWEXI2.js').then((m) => ({ default: m.NoContent }))
@@ -18,5 +18,5 @@ var LazyErrorPage = lazyComponent(
18
18
  );
19
19
 
20
20
  export { LazyBreadcrumb, LazyCurrencySymbol, LazyErrorPage, LazyNoContent, LazyRenderWhenVisible };
21
- //# sourceMappingURL=chunk-5YLKWMNP.js.map
22
- //# sourceMappingURL=chunk-5YLKWMNP.js.map
21
+ //# sourceMappingURL=chunk-AGKNWEG6.js.map
22
+ //# sourceMappingURL=chunk-AGKNWEG6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/common/lazy.ts"],"names":[],"mappings":";;;AASO,IAAM,cAAA,GAAiB,aAAA;AAAA,EAAc,MAC1C,OAAO,0BAAc,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,UAAA,EAAW,CAAE;AAChE;AAEO,IAAM,aAAA,GAAgB,aAAA;AAAA,EAAc,MACzC,OAAO,yBAAa,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,SAAA,EAAU,CAAE;AAC9D;AAEO,IAAM,qBAAA,GAAwB,aAAA;AAAA,EAAc,MACjD,OAAO,iCAAqB,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,iBAAA,EAAkB,CAAE;AAC9E;AAEO,IAAM,kBAAA,GAAqB,aAAA;AAAA,EAAc,MAC9C,OAAO,8BAAkB,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,cAAA,EAAe,CAAE;AACxE;AAEO,IAAM,aAAA,GAAgB,aAAA;AAAA,EAAc,MACzC,OAAO,yBAAa,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,SAAA,EAAU,CAAE;AAC9D","file":"chunk-5YLKWMNP.js","sourcesContent":["import { lazyComponent } from '../../utils/lazy-component';\n\n/**\n * Lazy-loaded common components\n * Use these for code-splitting non-critical components\n *\n * NOTE: Skeleton components are sourced from @salla.sa/twilight-components-react\n * because they must render instantly during route transitions.\n */\nexport const LazyBreadcrumb = lazyComponent(() =>\n import('./Breadcrumb').then((m) => ({ default: m.Breadcrumb }))\n);\n\nexport const LazyNoContent = lazyComponent(() =>\n import('./NoContent').then((m) => ({ default: m.NoContent }))\n);\n\nexport const LazyRenderWhenVisible = lazyComponent(() =>\n import('./RenderWhenVisible').then((m) => ({ default: m.RenderWhenVisible }))\n);\n\nexport const LazyCurrencySymbol = lazyComponent(() =>\n import('./CurrencySymbol').then((m) => ({ default: m.CurrencySymbol }))\n);\n\nexport const LazyErrorPage = lazyComponent(() =>\n import('./ErrorPage').then((m) => ({ default: m.ErrorPage }))\n);\n"]}
1
+ {"version":3,"sources":["../src/components/common/lazy.ts"],"names":[],"mappings":";;;AASO,IAAM,cAAA,GAAiB,aAAA;AAAA,EAAc,MAC1C,OAAO,0BAAc,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,UAAA,EAAW,CAAE;AAChE;AAEO,IAAM,aAAA,GAAgB,aAAA;AAAA,EAAc,MACzC,OAAO,yBAAa,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,SAAA,EAAU,CAAE;AAC9D;AAEO,IAAM,qBAAA,GAAwB,aAAA;AAAA,EAAc,MACjD,OAAO,iCAAqB,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,iBAAA,EAAkB,CAAE;AAC9E;AAEO,IAAM,kBAAA,GAAqB,aAAA;AAAA,EAAc,MAC9C,OAAO,8BAAkB,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,cAAA,EAAe,CAAE;AACxE;AAEO,IAAM,aAAA,GAAgB,aAAA;AAAA,EAAc,MACzC,OAAO,yBAAa,CAAA,CAAE,IAAA,CAAK,CAAC,CAAA,MAAO,EAAE,OAAA,EAAS,CAAA,CAAE,SAAA,EAAU,CAAE;AAC9D","file":"chunk-AGKNWEG6.js","sourcesContent":["import { lazyComponent } from '../../utils/lazy-component';\n\n/**\n * Lazy-loaded common components\n * Use these for code-splitting non-critical components\n *\n * NOTE: Skeleton components are sourced from @salla.sa/twilight-components-react\n * because they must render instantly during route transitions.\n */\nexport const LazyBreadcrumb = lazyComponent(() =>\n import('./Breadcrumb').then((m) => ({ default: m.Breadcrumb }))\n);\n\nexport const LazyNoContent = lazyComponent(() =>\n import('./NoContent').then((m) => ({ default: m.NoContent }))\n);\n\nexport const LazyRenderWhenVisible = lazyComponent(() =>\n import('./RenderWhenVisible').then((m) => ({ default: m.RenderWhenVisible }))\n);\n\nexport const LazyCurrencySymbol = lazyComponent(() =>\n import('./CurrencySymbol').then((m) => ({ default: m.CurrencySymbol }))\n);\n\nexport const LazyErrorPage = lazyComponent(() =>\n import('./ErrorPage').then((m) => ({ default: m.ErrorPage }))\n);\n"]}
@@ -1,4 +1,4 @@
1
- import { filesCdn, cdn } from './chunk-DECKE4BB.js';
1
+ import { filesCdn, cdn } from './chunk-YWPVPERZ.js';
2
2
  import { storeTranslationsQueryKey, translationsQueryKey, composeMessages, isPlainObject } from './chunk-MWUAHDQL.js';
3
3
  import { queryOptions } from '@tanstack/react-query';
4
4
 
@@ -126,5 +126,5 @@ var translations = {
126
126
  };
127
127
 
128
128
  export { commonTranslationsPath, storeTranslationsPath, translations };
129
- //# sourceMappingURL=chunk-SD4TYJN3.js.map
130
- //# sourceMappingURL=chunk-SD4TYJN3.js.map
129
+ //# sourceMappingURL=chunk-ANTDJTQR.js.map
130
+ //# sourceMappingURL=chunk-ANTDJTQR.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/api/translations.ts"],"names":[],"mappings":";;;;AAiEA,IAAM,kBAAA,GAAqB,sBAAA;AAGpB,SAAS,uBAAuB,MAAA,EAAwB;AAC7D,EAAA,OAAO,uBAAuB,MAAM,CAAA,KAAA,CAAA;AACtC;AAWO,SAAS,qBAAA,CAAsB,SAA0B,MAAA,EAAwB;AACtF,EAAA,OAAO,CAAA,aAAA,EAAgB,OAAO,CAAA,CAAA,EAAI,MAAM,CAAA,KAAA,CAAA;AAC1C;AAUA,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A;AAAA,EAE/E,OAAA,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAgBP,QAAA,EAAU,CAAC,MAAA,KACT,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,qBAAqB,MAAM,CAAA;AAAA,MACrC,OAAA,EAAS,MAAM,YAAA,CAAa,GAAA,CAAI,MAAM;AAAA,KACvC,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAWH,OAAA,EAAS,CAAC,OAAA,EAA0B,MAAA,KAClC,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,yBAAA,CAA0B,OAAA,EAAS,MAAM,CAAA;AAAA,MACnD,OAAA,EAAS,MAAM,YAAA,CAAa,QAAA,CAAS,SAAS,MAAM;AAAA,KACrD;AAAA;AAEP","file":"chunk-SD4TYJN3.js","sourcesContent":["/**\n * @fileoverview Where a storefront's words come from.\n *\n * Two files, merged: the platform's copy for this language, and the merchant's\n * own edits for this language and this store. Both are plain JSON objects on\n * the uploader's CDN, one per language.\n *\n * ```\n * https://cdn.files.salla.network/translations/common/<locale>.json the platform's\n * https://cdn.files.salla.network/translations/<storeId>/<locale>.json the merchant's\n * ```\n *\n * **What this replaces, and why.** Until now the engine read a single global\n * file, `cdn.salla.network/js/translations.json`, holding every language keyed\n * `\"<locale>.trans\"`. Nothing publishes that file: it is an object last written\n * on 2026-03-26, carrying only `ar` and `en` where the platform has 39 locales,\n * 405 keys behind `Languages-Module` and 959 English strings textually\n * different from it. So every React storefront has been serving copy from\n * March, and a key added since has never reached one. It also carried no\n * merchant overrides at all — a merchant editing their theme's wording in the\n * Dashboard changed nothing on a React theme.\n *\n * **Merchant overrides are read, and only when there are any.** Getting here\n * took two corrections worth keeping.\n *\n * The first is the address. A merchant's own wording lives at\n * `translations/<storeId>/<locale>.json`, keyed by `store()->getRouteKey()` —\n * the Optimus-encoded numeric id. An early version addressed it with\n * `resolveStoreIdentifier()`, on the claim that the two are the same string.\n * That is true of the `store-identifier` *header*, which accepts a host, a\n * username or an id, and false of the R2 key: on a custom domain the resolver\n * returns `reefperfumes.com` and on a shared host a username like\n * `mtgr-alaatr-2`. Both 404, both then read as \"this store has no overrides\",\n * and the merchant's wording silently never appears — so the feature would have\n * worked under `?storeId=` alone, which is preview and localhost. It is\n * `settings.store.id` now, which is known only after the settings query.\n *\n * The second is when to ask at all. Most stores have never customised a word,\n * and a miss is an uncached round trip (`cf-cache-status: DYNAMIC` on the 404)\n * on the critical path of every SSR render. So the request is made only when\n * `settings.languages[<ISO>].has_custom_translations` says there is something\n * to get — a flag `Languages-Module` writes when a merchant saves a\n * translation. A store without overrides pays nothing, which is what made this\n * shippable at all.\n *\n * ⚠️ The flag is written on save, so a store whose wording predates it reads as\n * `false` until someone edits a translation or the backfill runs. That is a\n * store keeping today's behaviour, not a regression — React themes have never\n * read merchant overrides — but it does mean the feature is only as complete as\n * the backfill.\n *\n * **Rollout is by fallback, not by flag.** `translations/common/` is written by\n * a sync in the theme build service that may not have run yet, and a hard switch\n * would leave every storefront with no platform strings at all. A missing common\n * file therefore falls back to the old global one, which is exactly today's\n * behaviour — so this is safe to ship before the bucket is populated, and stops\n * using the fallback on its own once it is.\n */\nimport { queryOptions } from '@tanstack/react-query';\nimport { cdn, filesCdn } from './client';\nimport { storeTranslationsQueryKey, translationsQueryKey } from './translations-key';\nimport { composeMessages, isPlainObject, type Messages } from './messages';\nimport type { TranslationMessages } from '../providers/I18nProvider';\n\n/** The global file this used to be the only reader of. See the file comment. */\nconst LEGACY_GLOBAL_FILE = 'js/translations.json';\n\n/** One language of platform copy, shared by every store. */\nexport function commonTranslationsPath(locale: string): string {\n return `translations/common/${locale}.json`;\n}\n\n/**\n * One language of a single merchant's own wording.\n *\n * `storeId` is `settings.store.id`, which is the value `Languages-Module` names\n * the object with (`store()->getRouteKey()`, the Optimus-encoded numeric id).\n * It is **not** `resolveStoreIdentifier()`: that returns a hostname on a custom\n * domain and a username on a shared host, both of which 404 here and would read\n * as \"this merchant has no overrides\" — silently, on every store but a preview.\n */\nexport function storeTranslationsPath(storeId: string | number, locale: string): string {\n return `translations/${storeId}/${locale}.json`;\n}\n\n/**\n * Reads one language file, or `null` when there is nothing to read.\n *\n * A 404 is the ordinary answer, not a failure: most stores have never had a\n * word customised, so their file does not exist. Distinguishing it from a real\n * error matters only for the log — both end in `null` — but a warning on every\n * page load of every uncustomised store is a warning nobody will read.\n */\nasync function readLocaleFile(\n path: string,\n { failLoudly = false }: { failLoudly?: boolean } = {}\n): Promise<Messages | null> {\n /** A 404 always means \"absent\"; everything else is a failure to read. */\n const unreadable = (reason: string, cause?: unknown): null => {\n if (failLoudly) throw new Error(`[translations] ${path}: ${reason}`, { cause });\n console.warn('[translations]', reason, path, cause ?? '');\n return null;\n };\n\n try {\n const response = await filesCdn.get(path, { throwHttpErrors: false, timeout: 5000 });\n if (response.status === 404) return null;\n\n if (!response.ok) {\n return unreadable(`answered ${response.status}`);\n }\n\n const data: unknown = await response.json();\n if (!isPlainObject(data)) {\n return unreadable('is not a JSON object');\n }\n\n return data;\n } catch (error) {\n if (error instanceof Error && error.message.startsWith('[translations]')) throw error;\n return unreadable('could not be read', error);\n }\n}\n\n/**\n * The pre-CDN global file, sliced to one language.\n *\n * Only reached when `translations/common/<locale>.json` is missing, which is\n * the state of the bucket until the sync has run once.\n */\nasync function readLegacyGlobal(locale: string): Promise<Messages | null> {\n try {\n const data = await cdn.get(LEGACY_GLOBAL_FILE, { timeout: 5000 }).json<TranslationMessages>();\n const forLocale = data?.[`${locale}.trans`];\n return isPlainObject(forLocale) ? forLocale : null;\n } catch {\n console.warn('[translations] the legacy global file could not be read either');\n return null;\n }\n}\n\nexport const translations = {\n /**\n * The platform's copy for `locale`.\n *\n * One file, so one request. See the file comment for why the merchant's own\n * wording is not merged in here yet and what it is waiting on.\n */\n get: async (locale: string): Promise<TranslationMessages | null> => {\n const common = await readLocaleFile(commonTranslationsPath(locale));\n const base = common ?? (await readLegacyGlobal(locale));\n if (!base) return null;\n\n // Still wrapped in the `<locale>.trans` shape the rest of the engine reads.\n // `createI18nInstance` slices by that key and so does the SDK bridge in\n // `I18nProvider`; changing the envelope here would be a second change for\n // no gain, since one language is all any of them ever take out of it.\n return { [`${locale}.trans`]: base as Record<string, string> };\n },\n\n /**\n * This merchant's own wording for `locale`, or `null` if they have none.\n *\n * Only worth calling when `settings.languages[<ISO>].has_custom_translations`\n * says there is something to get. Most stores have never customised a word,\n * and a miss here is an uncached round trip — `cf-cache-status: DYNAMIC` on a\n * 404 — on the critical path of an SSR render. The flag is what makes this\n * free for everyone who does not use it.\n *\n * Returned unwrapped, unlike {@link translations.get}: this is merged into\n * that one's messages rather than handed to i18next on its own.\n */\n forStore: async (storeId: string | number, locale: string): Promise<Messages | null> =>\n // `failLoudly`, unlike the platform file: this is only ever called because\n // the settings said overrides exist, so a 500, a timeout or a body that is\n // not JSON is a failure to read them — not a store that has none. Returning\n // `null` there would cache \"no overrides\" as a success, skip the query's\n // retry, and serve Salla's wording in place of the merchant's until the\n // entry expired. A 404 still means absent, and `rootBeforeLoad` catches the\n // throw and keeps the platform copy, so the worst case is unchanged.\n readLocaleFile(storeTranslationsPath(storeId, locale), { failLoudly: true }),\n\n /**\n * The platform's copy for `locale` with this merchant's wording laid over it.\n *\n * Takes the two as values rather than fetching them, so the caller decides\n * whether the second request happens at all and both stay separately cached.\n */\n /**\n * The platform's copy for `locale` with this merchant's wording over it.\n *\n * Delegates to `composeMessages`, which every other reader of these two\n * entries also uses — see `api/messages.ts` for why there is exactly one.\n */\n merge: (\n common: TranslationMessages | null,\n overrides: Messages | null,\n locale: string\n ): TranslationMessages | null => composeMessages(common, overrides, locale) ?? null,\n\n queries: {\n /**\n * @param locale taken as an argument rather than read from the twilight\n * context, and that is load-bearing. This key is built on the server, on\n * hydration, and again lazily from the context accessor; if any of the\n * three read a locale the others had not been given yet, the hydrated page\n * would miss the dehydrated entry and refetch both files it was just\n * handed. Every caller already has the locale in hand.\n *\n * The store is deliberately **not** in the key. One document serves one\n * store — a request that names a different one is redirected with\n * `reloadDocument`, so the client never changes store under a live cache —\n * and adding a value that resolves from the request on the server and from\n * the injected env on the client is how a key stops matching across\n * hydration.\n */\n byLocale: (locale: string) =>\n queryOptions({\n queryKey: translationsQueryKey(locale),\n queryFn: () => translations.get(locale),\n }),\n\n /**\n * This merchant's overrides, cached apart from the platform's copy.\n *\n * Its own entry rather than a wider `byLocale` key, so the common file is\n * fetched and dehydrated once per language whatever the store does, and a\n * store with no overrides never has an entry at all. Both sides compute the\n * key from the settings payload, so the hydrated page finds what the server\n * dehydrated instead of refetching it.\n */\n byStore: (storeId: string | number, locale: string) =>\n queryOptions({\n queryKey: storeTranslationsQueryKey(storeId, locale),\n queryFn: () => translations.forStore(storeId, locale),\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["../src/api/translations.ts"],"names":[],"mappings":";;;;AAiEA,IAAM,kBAAA,GAAqB,sBAAA;AAGpB,SAAS,uBAAuB,MAAA,EAAwB;AAC7D,EAAA,OAAO,uBAAuB,MAAM,CAAA,KAAA,CAAA;AACtC;AAWO,SAAS,qBAAA,CAAsB,SAA0B,MAAA,EAAwB;AACtF,EAAA,OAAO,CAAA,aAAA,EAAgB,OAAO,CAAA,CAAA,EAAI,MAAM,CAAA,KAAA,CAAA;AAC1C;AAUA,eAAe,eACb,IAAA,EACA,EAAE,aAAa,KAAA,EAAM,GAA8B,EAAC,EAC1B;AAE1B,EAAA,MAAM,UAAA,GAAa,CAAC,MAAA,EAAgB,KAAA,KAA0B;AAC5D,IAAA,IAAI,UAAA,EAAY,MAAM,IAAI,KAAA,CAAM,CAAA,eAAA,EAAkB,IAAI,CAAA,EAAA,EAAK,MAAM,CAAA,CAAA,EAAI,EAAE,KAAA,EAAO,CAAA;AAC9E,IAAA,OAAA,CAAQ,IAAA,CAAK,gBAAA,EAAkB,MAAA,EAAQ,IAAA,EAAM,SAAS,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AAA,EAAS,CAAC,OAAA,EAA0B,MAAA,KAClC,YAAA,CAAa;AAAA,MACX,QAAA,EAAU,yBAAA,CAA0B,OAAA,EAAS,MAAM,CAAA;AAAA,MACnD,OAAA,EAAS,MAAM,YAAA,CAAa,QAAA,CAAS,SAAS,MAAM;AAAA,KACrD;AAAA;AAEP","file":"chunk-ANTDJTQR.js","sourcesContent":["/**\n * @fileoverview Where a storefront's words come from.\n *\n * Two files, merged: the platform's copy for this language, and the merchant's\n * own edits for this language and this store. Both are plain JSON objects on\n * the uploader's CDN, one per language.\n *\n * ```\n * https://cdn.files.salla.network/translations/common/<locale>.json the platform's\n * https://cdn.files.salla.network/translations/<storeId>/<locale>.json the merchant's\n * ```\n *\n * **What this replaces, and why.** Until now the engine read a single global\n * file, `cdn.salla.network/js/translations.json`, holding every language keyed\n * `\"<locale>.trans\"`. Nothing publishes that file: it is an object last written\n * on 2026-03-26, carrying only `ar` and `en` where the platform has 39 locales,\n * 405 keys behind `Languages-Module` and 959 English strings textually\n * different from it. So every React storefront has been serving copy from\n * March, and a key added since has never reached one. It also carried no\n * merchant overrides at all — a merchant editing their theme's wording in the\n * Dashboard changed nothing on a React theme.\n *\n * **Merchant overrides are read, and only when there are any.** Getting here\n * took two corrections worth keeping.\n *\n * The first is the address. A merchant's own wording lives at\n * `translations/<storeId>/<locale>.json`, keyed by `store()->getRouteKey()` —\n * the Optimus-encoded numeric id. An early version addressed it with\n * `resolveStoreIdentifier()`, on the claim that the two are the same string.\n * That is true of the `store-identifier` *header*, which accepts a host, a\n * username or an id, and false of the R2 key: on a custom domain the resolver\n * returns `reefperfumes.com` and on a shared host a username like\n * `mtgr-alaatr-2`. Both 404, both then read as \"this store has no overrides\",\n * and the merchant's wording silently never appears — so the feature would have\n * worked under `?storeId=` alone, which is preview and localhost. It is\n * `settings.store.id` now, which is known only after the settings query.\n *\n * The second is when to ask at all. Most stores have never customised a word,\n * and a miss is an uncached round trip (`cf-cache-status: DYNAMIC` on the 404)\n * on the critical path of every SSR render. So the request is made only when\n * `settings.languages[<ISO>].has_custom_translations` says there is something\n * to get — a flag `Languages-Module` writes when a merchant saves a\n * translation. A store without overrides pays nothing, which is what made this\n * shippable at all.\n *\n * ⚠️ The flag is written on save, so a store whose wording predates it reads as\n * `false` until someone edits a translation or the backfill runs. That is a\n * store keeping today's behaviour, not a regression — React themes have never\n * read merchant overrides — but it does mean the feature is only as complete as\n * the backfill.\n *\n * **Rollout is by fallback, not by flag.** `translations/common/` is written by\n * a sync in the theme build service that may not have run yet, and a hard switch\n * would leave every storefront with no platform strings at all. A missing common\n * file therefore falls back to the old global one, which is exactly today's\n * behaviour — so this is safe to ship before the bucket is populated, and stops\n * using the fallback on its own once it is.\n */\nimport { queryOptions } from '@tanstack/react-query';\nimport { cdn, filesCdn } from './client';\nimport { storeTranslationsQueryKey, translationsQueryKey } from './translations-key';\nimport { composeMessages, isPlainObject, type Messages } from './messages';\nimport type { TranslationMessages } from '../providers/I18nProvider';\n\n/** The global file this used to be the only reader of. See the file comment. */\nconst LEGACY_GLOBAL_FILE = 'js/translations.json';\n\n/** One language of platform copy, shared by every store. */\nexport function commonTranslationsPath(locale: string): string {\n return `translations/common/${locale}.json`;\n}\n\n/**\n * One language of a single merchant's own wording.\n *\n * `storeId` is `settings.store.id`, which is the value `Languages-Module` names\n * the object with (`store()->getRouteKey()`, the Optimus-encoded numeric id).\n * It is **not** `resolveStoreIdentifier()`: that returns a hostname on a custom\n * domain and a username on a shared host, both of which 404 here and would read\n * as \"this merchant has no overrides\" — silently, on every store but a preview.\n */\nexport function storeTranslationsPath(storeId: string | number, locale: string): string {\n return `translations/${storeId}/${locale}.json`;\n}\n\n/**\n * Reads one language file, or `null` when there is nothing to read.\n *\n * A 404 is the ordinary answer, not a failure: most stores have never had a\n * word customised, so their file does not exist. Distinguishing it from a real\n * error matters only for the log — both end in `null` — but a warning on every\n * page load of every uncustomised store is a warning nobody will read.\n */\nasync function readLocaleFile(\n path: string,\n { failLoudly = false }: { failLoudly?: boolean } = {}\n): Promise<Messages | null> {\n /** A 404 always means \"absent\"; everything else is a failure to read. */\n const unreadable = (reason: string, cause?: unknown): null => {\n if (failLoudly) throw new Error(`[translations] ${path}: ${reason}`, { cause });\n console.warn('[translations]', reason, path, cause ?? '');\n return null;\n };\n\n try {\n const response = await filesCdn.get(path, { throwHttpErrors: false, timeout: 5000 });\n if (response.status === 404) return null;\n\n if (!response.ok) {\n return unreadable(`answered ${response.status}`);\n }\n\n const data: unknown = await response.json();\n if (!isPlainObject(data)) {\n return unreadable('is not a JSON object');\n }\n\n return data;\n } catch (error) {\n if (error instanceof Error && error.message.startsWith('[translations]')) throw error;\n return unreadable('could not be read', error);\n }\n}\n\n/**\n * The pre-CDN global file, sliced to one language.\n *\n * Only reached when `translations/common/<locale>.json` is missing, which is\n * the state of the bucket until the sync has run once.\n */\nasync function readLegacyGlobal(locale: string): Promise<Messages | null> {\n try {\n const data = await cdn.get(LEGACY_GLOBAL_FILE, { timeout: 5000 }).json<TranslationMessages>();\n const forLocale = data?.[`${locale}.trans`];\n return isPlainObject(forLocale) ? forLocale : null;\n } catch {\n console.warn('[translations] the legacy global file could not be read either');\n return null;\n }\n}\n\nexport const translations = {\n /**\n * The platform's copy for `locale`.\n *\n * One file, so one request. See the file comment for why the merchant's own\n * wording is not merged in here yet and what it is waiting on.\n */\n get: async (locale: string): Promise<TranslationMessages | null> => {\n const common = await readLocaleFile(commonTranslationsPath(locale));\n const base = common ?? (await readLegacyGlobal(locale));\n if (!base) return null;\n\n // Still wrapped in the `<locale>.trans` shape the rest of the engine reads.\n // `createI18nInstance` slices by that key and so does the SDK bridge in\n // `I18nProvider`; changing the envelope here would be a second change for\n // no gain, since one language is all any of them ever take out of it.\n return { [`${locale}.trans`]: base as Record<string, string> };\n },\n\n /**\n * This merchant's own wording for `locale`, or `null` if they have none.\n *\n * Only worth calling when `settings.languages[<ISO>].has_custom_translations`\n * says there is something to get. Most stores have never customised a word,\n * and a miss here is an uncached round trip — `cf-cache-status: DYNAMIC` on a\n * 404 — on the critical path of an SSR render. The flag is what makes this\n * free for everyone who does not use it.\n *\n * Returned unwrapped, unlike {@link translations.get}: this is merged into\n * that one's messages rather than handed to i18next on its own.\n */\n forStore: async (storeId: string | number, locale: string): Promise<Messages | null> =>\n // `failLoudly`, unlike the platform file: this is only ever called because\n // the settings said overrides exist, so a 500, a timeout or a body that is\n // not JSON is a failure to read them — not a store that has none. Returning\n // `null` there would cache \"no overrides\" as a success, skip the query's\n // retry, and serve Salla's wording in place of the merchant's until the\n // entry expired. A 404 still means absent, and `rootBeforeLoad` catches the\n // throw and keeps the platform copy, so the worst case is unchanged.\n readLocaleFile(storeTranslationsPath(storeId, locale), { failLoudly: true }),\n\n /**\n * The platform's copy for `locale` with this merchant's wording laid over it.\n *\n * Takes the two as values rather than fetching them, so the caller decides\n * whether the second request happens at all and both stay separately cached.\n */\n /**\n * The platform's copy for `locale` with this merchant's wording over it.\n *\n * Delegates to `composeMessages`, which every other reader of these two\n * entries also uses — see `api/messages.ts` for why there is exactly one.\n */\n merge: (\n common: TranslationMessages | null,\n overrides: Messages | null,\n locale: string\n ): TranslationMessages | null => composeMessages(common, overrides, locale) ?? null,\n\n queries: {\n /**\n * @param locale taken as an argument rather than read from the twilight\n * context, and that is load-bearing. This key is built on the server, on\n * hydration, and again lazily from the context accessor; if any of the\n * three read a locale the others had not been given yet, the hydrated page\n * would miss the dehydrated entry and refetch both files it was just\n * handed. Every caller already has the locale in hand.\n *\n * The store is deliberately **not** in the key. One document serves one\n * store — a request that names a different one is redirected with\n * `reloadDocument`, so the client never changes store under a live cache —\n * and adding a value that resolves from the request on the server and from\n * the injected env on the client is how a key stops matching across\n * hydration.\n */\n byLocale: (locale: string) =>\n queryOptions({\n queryKey: translationsQueryKey(locale),\n queryFn: () => translations.get(locale),\n }),\n\n /**\n * This merchant's overrides, cached apart from the platform's copy.\n *\n * Its own entry rather than a wider `byLocale` key, so the common file is\n * fetched and dehydrated once per language whatever the store does, and a\n * store with no overrides never has an entry at all. Both sides compute the\n * key from the settings payload, so the hydrated page finds what the server\n * dehydrated instead of refetching it.\n */\n byStore: (storeId: string | number, locale: string) =>\n queryOptions({\n queryKey: storeTranslationsQueryKey(storeId, locale),\n queryFn: () => translations.forStore(storeId, locale),\n }),\n },\n};\n"]}
@@ -1,23 +1,23 @@
1
1
  import { ErrorPage } from './chunk-Z4Y55HWX.js';
2
2
  import { tanstackHeadAdapter } from './chunk-DPB47XO7.js';
3
- import { translations } from './chunk-SD4TYJN3.js';
4
- import { parseFiltersFromSearch } from './chunk-QHF66D3P.js';
5
- import { dispatchRouteChanging, dispatchRouteChanged, dispatchPageViewed, setAnalyticsPage, dispatchProductViewed, dispatchProductsFetched, dispatchCartViewed } from './chunk-53IXAXYU.js';
6
- import { reportGtmPageView, gtmPageEcommerce } from './chunk-5BICYVE3.js';
3
+ import { translations } from './chunk-ANTDJTQR.js';
4
+ import { parseFiltersFromSearch } from './chunk-5MANTOZ5.js';
5
+ import { dispatchRouteChanging, dispatchRouteChanged, dispatchPageViewed, setAnalyticsPage, dispatchProductViewed, dispatchProductsFetched, dispatchCartViewed } from './chunk-7B3HAC7N.js';
6
+ import { reportGtmPageView, gtmPageEcommerce } from './chunk-SUW3BMDE.js';
7
7
  import { PRODUCT_SLUG_ROUTE_ID, CATEGORY_SLUG_ROUTE_ID } from './chunk-NV4PF3O3.js';
8
- import { store, readPageSearch, readCookieHeader, persistLanguageCookie } from './chunk-LKITJWSS.js';
9
- import { shouldDehydrateQuery } from './chunk-3TZIFRGC.js';
10
- import { rootHead } from './chunk-EV3MX2ZF.js';
8
+ import { store, readPageSearch, readCookieHeader, persistLanguageCookie } from './chunk-FDFL6QKB.js';
9
+ import { shouldDehydrateQuery } from './chunk-BICEPRPK.js';
10
+ import { rootHead } from './chunk-INLVNPJ6.js';
11
11
  import { setHeadAdapter } from './chunk-GD26FI4J.js';
12
- import { apps } from './chunk-VEUY4U3G.js';
12
+ import { apps } from './chunk-7U3JGTMX.js';
13
13
  import { VIEW_AS_OWNER_COOKIE_NAME, ownerLinkMatches, ownerCookieMatches, showsMaintenancePage } from './chunk-O7JTXTGP.js';
14
14
  import { composeRewrites, productKeyRewrite, singleSegmentPages } from './chunk-SDBR4X3K.js';
15
- import { RedirectError, NotFoundError, UnauthorizedError, isMissingResource, responseStatusOf } from './chunk-JZOBRBDY.js';
15
+ import { RedirectError, NotFoundError, UnauthorizedError, isMissingResource, responseStatusOf } from './chunk-5TVOTTHS.js';
16
16
  import { RouteId } from './chunk-OUW6WESU.js';
17
17
  import { useDocumentClass } from './chunk-JWXJPJBO.js';
18
18
  import { toReactProps, mergeElementAttrs } from './chunk-CW625T2E.js';
19
- import { advertisement } from './chunk-V5FXJ6RG.js';
20
- import { LazyErrorPage } from './chunk-5YLKWMNP.js';
19
+ import { advertisement } from './chunk-FICNVVC2.js';
20
+ import { LazyErrorPage } from './chunk-AGKNWEG6.js';
21
21
  import { syncSdkLocale, syncSdkThemeVersion } from './chunk-MZPX4EPS.js';
22
22
  import { AUTH_TOKEN_COOKIE_NAME, SCOPE_COOKIE_NAME, SCOPE_COOKIE_MAX_AGE, extractScopeFromCookies, extractScopeFromUrl, resolveRequestScope, sameScope, resolveStoreBase, resolveStoreBaseFollowsLocale, syncScopeCookie, extractTokenFromCookies, prefixStoreBase, hasLanguageParam, withLanguageParam, virtualLocale, stripStoreBase, resolveStoreBaseRedirect, resolveStoppedDomainRedirect, resolveOwnDomainRedirect, resolveMarketDomainRedirect, decideSharedHostLanguage, currentHost } from './chunk-4OZIBANF.js';
23
23
  import { updateTwilightContext, createI18nInstance, getTwilightContext, SettingsError, messagesForLocale } from './chunk-MWUAHDQL.js';
@@ -387,7 +387,7 @@ function resolveRouteId(tanstackId) {
387
387
  return TANSTACK_ROUTE_ID_MAP[tanstackId] ?? tanstackId;
388
388
  }
389
389
  var LazyNotFoundPage = lazyComponent(
390
- () => import('./not-found-ABDLLYDO.js').then((m) => ({ default: m.NotFoundPage }))
390
+ () => import('./not-found-QYWU3B4R.js').then((m) => ({ default: m.NotFoundPage }))
391
391
  );
392
392
  function StoreUnavailablePage() {
393
393
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
@@ -878,5 +878,5 @@ function tanstackDocumentAdapter(descriptor) {
878
878
  }
879
879
 
880
880
  export { RouteDocumentSync, TanStackDocumentSync, createRouter, createTwilightRootRoute, tanstackDocumentAdapter, useTanstackDocumentAttrs };
881
- //# sourceMappingURL=chunk-CDMXPX4Z.js.map
882
- //# sourceMappingURL=chunk-CDMXPX4Z.js.map
881
+ //# sourceMappingURL=chunk-AXVPFA2U.js.map
882
+ //# sourceMappingURL=chunk-AXVPFA2U.js.map