@salla.sa/twilight-theme-engine 1.0.136 → 1.0.138

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 (353) hide show
  1. package/dist/{AddToCartForm-RG4ANO47.js → AddToCartForm-P3IXCYO7.js} +4 -3
  2. package/dist/AddToCartForm-P3IXCYO7.js.map +1 -0
  3. package/dist/{BlogAuthorPage-JEYNAFRH.js → BlogAuthorPage-UJYMW4ZL.js} +18 -17
  4. package/dist/BlogAuthorPage-UJYMW4ZL.js.map +1 -0
  5. package/dist/{BlogCategoryPage-IIAXWMHD.js → BlogCategoryPage-3XO42UFX.js} +18 -17
  6. package/dist/BlogCategoryPage-3XO42UFX.js.map +1 -0
  7. package/dist/{BlogPage-NKYICNRT.js → BlogPage-5SQNDQ7L.js} +16 -15
  8. package/dist/BlogPage-5SQNDQ7L.js.map +1 -0
  9. package/dist/{BlogSinglePage-FBO4NQL5.js → BlogSinglePage-XSRKZYUI.js} +16 -15
  10. package/dist/BlogSinglePage-XSRKZYUI.js.map +1 -0
  11. package/dist/{BlogTagPage-WZIUPBEM.js → BlogTagPage-CFXWHUJR.js} +18 -17
  12. package/dist/BlogTagPage-CFXWHUJR.js.map +1 -0
  13. package/dist/{BrandsPage-EN6MZV6T.js → BrandsPage-APYVP4M2.js} +17 -16
  14. package/dist/BrandsPage-APYVP4M2.js.map +1 -0
  15. package/dist/{Breadcrumb-COB4TMMI.js → Breadcrumb-M4DBOMXW.js} +16 -15
  16. package/dist/Breadcrumb-M4DBOMXW.js.map +1 -0
  17. package/dist/{CartItem-SYQZHA2F.js → CartItem-BXZDBDLA.js} +16 -15
  18. package/dist/CartItem-BXZDBDLA.js.map +1 -0
  19. package/dist/{CartSummary-YQN7N6JW.js → CartSummary-NT7N6ERQ.js} +16 -15
  20. package/dist/CartSummary-NT7N6ERQ.js.map +1 -0
  21. package/dist/{Copyright-II2URAIP.js → Copyright-IJDVQWOS.js} +4 -3
  22. package/dist/Copyright-IJDVQWOS.js.map +1 -0
  23. package/dist/{CustomerLayout-75NK34WK.js → CustomerLayout-UNEDHUO2.js} +16 -15
  24. package/dist/CustomerLayout-UNEDHUO2.js.map +1 -0
  25. package/dist/{Footer-6MYG4POU.js → Footer-QX5BCDUK.js} +6 -5
  26. package/dist/{Footer-6MYG4POU.js.map → Footer-QX5BCDUK.js.map} +1 -1
  27. package/dist/{Header-KXX42XKB.js → Header-EAOIXJNS.js} +9 -8
  28. package/dist/{Header-KXX42XKB.js.map → Header-EAOIXJNS.js.map} +1 -1
  29. package/dist/{LoyaltyPage-R4KWVGLW.js → LoyaltyPage-3VOLW5OQ.js} +16 -15
  30. package/dist/LoyaltyPage-3VOLW5OQ.js.map +1 -0
  31. package/dist/{LoyaltyPointsPage-L7HG54RQ.js → LoyaltyPointsPage-IMHJHCZV.js} +7 -6
  32. package/dist/LoyaltyPointsPage-IMHJHCZV.js.map +1 -0
  33. package/dist/{MainMenu-KI4BAA7W.js → MainMenu-ML6OQT53.js} +6 -5
  34. package/dist/MainMenu-ML6OQT53.js.map +1 -0
  35. package/dist/{MasterLayout-WQ3VWDAA.js → MasterLayout-UCQA73I3.js} +16 -15
  36. package/dist/{MasterLayout-WQ3VWDAA.js.map → MasterLayout-UCQA73I3.js.map} +1 -1
  37. package/dist/{MobileMenu-LJXKYKRI.js → MobileMenu-5JHOT4DP.js} +17 -16
  38. package/dist/MobileMenu-5JHOT4DP.js.map +1 -0
  39. package/dist/{NotificationsPage-4TUPN24E.js → NotificationsPage-C373Z2KC.js} +16 -15
  40. package/dist/NotificationsPage-C373Z2KC.js.map +1 -0
  41. package/dist/{OrderSinglePage-N3YGXCKL.js → OrderSinglePage-YYTU72JY.js} +17 -16
  42. package/dist/OrderSinglePage-YYTU72JY.js.map +1 -0
  43. package/dist/{OrdersPage-V3WNW2WZ.js → OrdersPage-2F43AA76.js} +16 -15
  44. package/dist/OrdersPage-2F43AA76.js.map +1 -0
  45. package/dist/{PageSingle-H5YA47EG.js → PageSingle-2FIESLYJ.js} +4 -3
  46. package/dist/PageSingle-2FIESLYJ.js.map +1 -0
  47. package/dist/{ProductDetails-EHRMQR7F.js → ProductDetails-TNULRGXM.js} +5 -4
  48. package/dist/ProductDetails-TNULRGXM.js.map +1 -0
  49. package/dist/{ProfilePage-3GRY4RSA.js → ProfilePage-4VSU6H3S.js} +16 -15
  50. package/dist/ProfilePage-4VSU6H3S.js.map +1 -0
  51. package/dist/{ReviewsPage-SPHK5MCS.js → ReviewsPage-65CYIATI.js} +4 -3
  52. package/dist/ReviewsPage-65CYIATI.js.map +1 -0
  53. package/dist/{SeoCartWidget-P2QQ62AF.js → SeoCartWidget-UHJJLLCU.js} +16 -15
  54. package/dist/SeoCartWidget-UHJJLLCU.js.map +1 -0
  55. package/dist/{SettingsPage-YFN32XOV.js → SettingsPage-2JHRIGFS.js} +16 -15
  56. package/dist/SettingsPage-2JHRIGFS.js.map +1 -0
  57. package/dist/{StoreClosedNotification-3RU33TF6.js → StoreClosedNotification-ADSYNO7O.js} +17 -16
  58. package/dist/{StoreClosedNotification-3RU33TF6.js.map → StoreClosedNotification-ADSYNO7O.js.map} +1 -1
  59. package/dist/{TestimonialsPage-4W6SXN24.js → TestimonialsPage-PYFKXCQP.js} +4 -3
  60. package/dist/TestimonialsPage-PYFKXCQP.js.map +1 -0
  61. package/dist/{ThankYouPage-56AIK3QG.js → ThankYouPage-VHUAKQF7.js} +16 -15
  62. package/dist/ThankYouPage-VHUAKQF7.js.map +1 -0
  63. package/dist/{WalletPage-FLB4OCK4.js → WalletPage-NG2DJAUE.js} +17 -16
  64. package/dist/WalletPage-NG2DJAUE.js.map +1 -0
  65. package/dist/{WishlistPage-H6KGJYRT.js → WishlistPage-GFOKEWL3.js} +18 -17
  66. package/dist/WishlistPage-GFOKEWL3.js.map +1 -0
  67. package/dist/api/advertisement.js +2 -2
  68. package/dist/api/apps.js +2 -2
  69. package/dist/api/blog.js +3 -3
  70. package/dist/api/brands.js +3 -3
  71. package/dist/api/cart.js +3 -3
  72. package/dist/api/category.js +3 -3
  73. package/dist/api/client.js +1 -1
  74. package/dist/api/home.js +2 -2
  75. package/dist/api/loyalty.js +3 -3
  76. package/dist/api/menu.js +2 -2
  77. package/dist/api/notification.js +2 -2
  78. package/dist/api/order.js +3 -3
  79. package/dist/api/page.js +3 -3
  80. package/dist/api/product.js +3 -3
  81. package/dist/api/profile.js +1 -1
  82. package/dist/api/store.d.ts.map +1 -1
  83. package/dist/api/store.js +2 -2
  84. package/dist/api/translations.js +2 -2
  85. package/dist/api/user.js +2 -2
  86. package/dist/api/wallet.js +2 -2
  87. package/dist/api/wishlist.js +4 -4
  88. package/dist/{chunk-LPVWRPMV.js → chunk-35D6CKKX.js} +4 -4
  89. package/dist/{chunk-LPVWRPMV.js.map → chunk-35D6CKKX.js.map} +1 -1
  90. package/dist/{chunk-V4E6JFS4.js → chunk-3QR6T7KW.js} +12 -10
  91. package/dist/chunk-3QR6T7KW.js.map +1 -0
  92. package/dist/{chunk-F324WS4B.js → chunk-5FEFYFTS.js} +3 -3
  93. package/dist/{chunk-F324WS4B.js.map → chunk-5FEFYFTS.js.map} +1 -1
  94. package/dist/{chunk-RYAOXNRA.js → chunk-5MNGLNIJ.js} +3 -3
  95. package/dist/{chunk-RYAOXNRA.js.map → chunk-5MNGLNIJ.js.map} +1 -1
  96. package/dist/{chunk-PLFD6UWD.js → chunk-6EOAIIHL.js} +3 -3
  97. package/dist/{chunk-PLFD6UWD.js.map → chunk-6EOAIIHL.js.map} +1 -1
  98. package/dist/{chunk-BFPTMZ4G.js → chunk-6KZUGNCS.js} +3 -3
  99. package/dist/{chunk-BFPTMZ4G.js.map → chunk-6KZUGNCS.js.map} +1 -1
  100. package/dist/{chunk-EDK4U4WQ.js → chunk-A7KXUBPT.js} +49 -6
  101. package/dist/chunk-A7KXUBPT.js.map +1 -0
  102. package/dist/{chunk-DIA2LU6I.js → chunk-CJZ3MJ3Y.js} +11 -9
  103. package/dist/chunk-CJZ3MJ3Y.js.map +1 -0
  104. package/dist/{chunk-OIL6F7S2.js → chunk-DMS6PZXN.js} +4 -4
  105. package/dist/{chunk-OIL6F7S2.js.map → chunk-DMS6PZXN.js.map} +1 -1
  106. package/dist/{chunk-TUIB74QX.js → chunk-EGJ2SV6O.js} +43 -59
  107. package/dist/chunk-EGJ2SV6O.js.map +1 -0
  108. package/dist/{chunk-D262IAAT.js → chunk-EJ66I5SH.js} +4 -4
  109. package/dist/{chunk-D262IAAT.js.map → chunk-EJ66I5SH.js.map} +1 -1
  110. package/dist/chunk-EOQPV6KS.js +25 -0
  111. package/dist/chunk-EOQPV6KS.js.map +1 -0
  112. package/dist/{chunk-WXE5OK4N.js → chunk-FVHAKOEH.js} +3 -3
  113. package/dist/{chunk-WXE5OK4N.js.map → chunk-FVHAKOEH.js.map} +1 -1
  114. package/dist/{chunk-NZ6REC6S.js → chunk-GJFK3SU5.js} +4 -4
  115. package/dist/{chunk-NZ6REC6S.js.map → chunk-GJFK3SU5.js.map} +1 -1
  116. package/dist/{chunk-C76QBKQT.js → chunk-HEWFF3KI.js} +3 -3
  117. package/dist/{chunk-C76QBKQT.js.map → chunk-HEWFF3KI.js.map} +1 -1
  118. package/dist/{chunk-6TT5VHUM.js → chunk-HG75MP47.js} +3 -3
  119. package/dist/{chunk-6TT5VHUM.js.map → chunk-HG75MP47.js.map} +1 -1
  120. package/dist/{chunk-W37R3JJ7.js → chunk-ITZ543CK.js} +3 -3
  121. package/dist/{chunk-W37R3JJ7.js.map → chunk-ITZ543CK.js.map} +1 -1
  122. package/dist/{chunk-UA4F3ZR3.js → chunk-JFKHKDSK.js} +4 -4
  123. package/dist/{chunk-UA4F3ZR3.js.map → chunk-JFKHKDSK.js.map} +1 -1
  124. package/dist/{chunk-NBVI4H4K.js → chunk-JXLZTGQN.js} +3 -3
  125. package/dist/{chunk-NBVI4H4K.js.map → chunk-JXLZTGQN.js.map} +1 -1
  126. package/dist/chunk-KLVEKLFL.js +16 -0
  127. package/dist/chunk-KLVEKLFL.js.map +1 -0
  128. package/dist/chunk-KYMWEUN2.js +10 -0
  129. package/dist/chunk-KYMWEUN2.js.map +1 -0
  130. package/dist/{chunk-KSPVQQ7J.js → chunk-LMMDVLAB.js} +5 -5
  131. package/dist/{chunk-KSPVQQ7J.js.map → chunk-LMMDVLAB.js.map} +1 -1
  132. package/dist/{chunk-XNNKW6FA.js → chunk-MWAXFBGG.js} +3 -3
  133. package/dist/{chunk-XNNKW6FA.js.map → chunk-MWAXFBGG.js.map} +1 -1
  134. package/dist/{chunk-DESMKK54.js → chunk-OSYUGCRG.js} +4 -4
  135. package/dist/{chunk-DESMKK54.js.map → chunk-OSYUGCRG.js.map} +1 -1
  136. package/dist/{chunk-6O5EFNDM.js → chunk-OXBMZSKL.js} +4 -4
  137. package/dist/{chunk-6O5EFNDM.js.map → chunk-OXBMZSKL.js.map} +1 -1
  138. package/dist/{chunk-VE34Y3Z3.js → chunk-P43VADN7.js} +3 -3
  139. package/dist/{chunk-VE34Y3Z3.js.map → chunk-P43VADN7.js.map} +1 -1
  140. package/dist/{chunk-PB2K5LRO.js → chunk-PBFLXHKM.js} +3 -3
  141. package/dist/{chunk-PB2K5LRO.js.map → chunk-PBFLXHKM.js.map} +1 -1
  142. package/dist/{chunk-J37FMLCI.js → chunk-R4BPODDJ.js} +3 -3
  143. package/dist/{chunk-J37FMLCI.js.map → chunk-R4BPODDJ.js.map} +1 -1
  144. package/dist/{chunk-THDD2H3C.js → chunk-R73HXW5D.js} +4 -4
  145. package/dist/{chunk-THDD2H3C.js.map → chunk-R73HXW5D.js.map} +1 -1
  146. package/dist/{chunk-YV5VCWQF.js → chunk-S5ZKI3TY.js} +4 -4
  147. package/dist/{chunk-YV5VCWQF.js.map → chunk-S5ZKI3TY.js.map} +1 -1
  148. package/dist/{chunk-ZAVUF234.js → chunk-S7FNMT24.js} +3 -3
  149. package/dist/{chunk-ZAVUF234.js.map → chunk-S7FNMT24.js.map} +1 -1
  150. package/dist/{chunk-MMXLOECO.js → chunk-SAYYMA6E.js} +9 -8
  151. package/dist/chunk-SAYYMA6E.js.map +1 -0
  152. package/dist/{chunk-DE7OXJXT.js → chunk-TK6A4UON.js} +4 -4
  153. package/dist/{chunk-DE7OXJXT.js.map → chunk-TK6A4UON.js.map} +1 -1
  154. package/dist/{chunk-RVPFDYQ2.js → chunk-TVAXTMMQ.js} +3 -3
  155. package/dist/{chunk-RVPFDYQ2.js.map → chunk-TVAXTMMQ.js.map} +1 -1
  156. package/dist/{chunk-BXQZXOFK.js → chunk-TWLJ2RII.js} +11 -9
  157. package/dist/chunk-TWLJ2RII.js.map +1 -0
  158. package/dist/{chunk-B6CGVRJ7.js → chunk-U6EB7GM3.js} +4 -4
  159. package/dist/{chunk-B6CGVRJ7.js.map → chunk-U6EB7GM3.js.map} +1 -1
  160. package/dist/{chunk-F73QPQX7.js → chunk-UXS3QCHM.js} +34 -28
  161. package/dist/chunk-UXS3QCHM.js.map +1 -0
  162. package/dist/{chunk-JLJKIXDT.js → chunk-VFQNVPFH.js} +13 -9
  163. package/dist/chunk-VFQNVPFH.js.map +1 -0
  164. package/dist/chunk-VYGA5AT5.js +27 -0
  165. package/dist/chunk-VYGA5AT5.js.map +1 -0
  166. package/dist/{chunk-3RHCWLJT.js → chunk-WC2ZDV4J.js} +3 -3
  167. package/dist/{chunk-3RHCWLJT.js.map → chunk-WC2ZDV4J.js.map} +1 -1
  168. package/dist/{chunk-ITNE6DTO.js → chunk-YPRSS27D.js} +4 -4
  169. package/dist/{chunk-ITNE6DTO.js.map → chunk-YPRSS27D.js.map} +1 -1
  170. package/dist/components/cart/index.js +2 -1
  171. package/dist/components/cart/lazy.d.ts +3 -3
  172. package/dist/components/cart/lazy.d.ts.map +1 -1
  173. package/dist/components/common/index.js +2 -1
  174. package/dist/components/common/lazy.d.ts +5 -5
  175. package/dist/components/common/lazy.d.ts.map +1 -1
  176. package/dist/components/drawer/index.js +14 -13
  177. package/dist/components/home/index.js +18 -17
  178. package/dist/components/home/lazy.d.ts +1 -1
  179. package/dist/components/home/lazy.d.ts.map +1 -1
  180. package/dist/components/layout/MasterLayout.d.ts.map +1 -1
  181. package/dist/components/layout/index.js +5 -4
  182. package/dist/components/layout/lazy.d.ts +6 -6
  183. package/dist/components/layout/lazy.d.ts.map +1 -1
  184. package/dist/components/live-editor/index.d.ts.map +1 -1
  185. package/dist/components/modal/index.js +2 -1
  186. package/dist/components/modal/lazy.d.ts +1 -1
  187. package/dist/components/modal/lazy.d.ts.map +1 -1
  188. package/dist/components/navigation/lazy.d.ts +2 -2
  189. package/dist/components/navigation/lazy.d.ts.map +1 -1
  190. package/dist/components/product/index.js +15 -14
  191. package/dist/components/product/lazy.d.ts +2 -2
  192. package/dist/components/product/lazy.d.ts.map +1 -1
  193. package/dist/components/store/index.js +15 -14
  194. package/dist/components/store/lazy.d.ts +2 -2
  195. package/dist/components/store/lazy.d.ts.map +1 -1
  196. package/dist/components/tracking/index.js +4 -3
  197. package/dist/components/tracking/index.js.map +1 -1
  198. package/dist/components/tracking/lazy.d.ts +2 -2
  199. package/dist/components/tracking/lazy.d.ts.map +1 -1
  200. package/dist/dev/editor/index.js +1 -1
  201. package/dist/dev/index.js +1 -1
  202. package/dist/{document-class-4JUQ44JX.js → document-class-IGGYSGCU.js} +12 -11
  203. package/dist/{document-class-4JUQ44JX.js.map → document-class-IGGYSGCU.js.map} +1 -1
  204. package/dist/hooks/index.js +14 -13
  205. package/dist/hooks/registerDefaultHooks.d.ts.map +1 -1
  206. package/dist/hooks/useGtm.js +14 -13
  207. package/dist/hooks/useMoney.js +14 -13
  208. package/dist/hooks/useStore.js +14 -13
  209. package/dist/hooks/useUser.js +3 -3
  210. package/dist/index.js +14 -13
  211. package/dist/index.js.map +1 -1
  212. package/dist/{navigation-6KY4HODP.js → navigation-FUHRDRAN.js} +4 -4
  213. package/dist/{navigation-6KY4HODP.js.map → navigation-FUHRDRAN.js.map} +1 -1
  214. package/dist/{navigation-QYWF2VGQ.js → navigation-MJYWGH7A.js} +5 -5
  215. package/dist/{navigation-QYWF2VGQ.js.map → navigation-MJYWGH7A.js.map} +1 -1
  216. package/dist/{not-found-3M6US423.js → not-found-VVI6BXAZ.js} +17 -16
  217. package/dist/not-found-VVI6BXAZ.js.map +1 -0
  218. package/dist/providers/DocumentSyncRegistry.d.ts +3 -3
  219. package/dist/providers/DocumentSyncRegistry.d.ts.map +1 -1
  220. package/dist/providers/index.js +14 -13
  221. package/dist/providers/navigation-setups.d.ts +3 -3
  222. package/dist/providers/navigation-setups.d.ts.map +1 -1
  223. package/dist/routes/account/notifications/index.d.ts +2 -2
  224. package/dist/routes/account/notifications/index.d.ts.map +1 -1
  225. package/dist/routes/account/orders/index.d.ts +4 -4
  226. package/dist/routes/account/orders/index.d.ts.map +1 -1
  227. package/dist/routes/account/orders.js +5 -4
  228. package/dist/routes/account/profile/index.d.ts +2 -2
  229. package/dist/routes/account/profile/index.d.ts.map +1 -1
  230. package/dist/routes/account/settings/index.d.ts +2 -2
  231. package/dist/routes/account/settings/index.d.ts.map +1 -1
  232. package/dist/routes/account/wallet/index.d.ts +2 -2
  233. package/dist/routes/account/wallet/index.d.ts.map +1 -1
  234. package/dist/routes/account/wishlist/index.d.ts +2 -2
  235. package/dist/routes/account/wishlist/index.d.ts.map +1 -1
  236. package/dist/routes/account.js +20 -18
  237. package/dist/routes/account.js.map +1 -1
  238. package/dist/routes/blog/index.d.ts +10 -10
  239. package/dist/routes/blog/index.d.ts.map +1 -1
  240. package/dist/routes/blog.js +15 -13
  241. package/dist/routes/blog.js.map +1 -1
  242. package/dist/routes/brands/index.d.ts +2 -2
  243. package/dist/routes/brands/index.d.ts.map +1 -1
  244. package/dist/routes/brands.js +7 -5
  245. package/dist/routes/brands.js.map +1 -1
  246. package/dist/routes/cart.js +22 -21
  247. package/dist/routes/cart.js.map +1 -1
  248. package/dist/routes/home.js +19 -18
  249. package/dist/routes/index.js +3 -3
  250. package/dist/routes/lazy.d.ts +22 -22
  251. package/dist/routes/lazy.d.ts.map +1 -1
  252. package/dist/routes/loyalty/index.d.ts +4 -4
  253. package/dist/routes/loyalty/index.d.ts.map +1 -1
  254. package/dist/routes/loyalty.js +8 -8
  255. package/dist/routes/loyalty.js.map +1 -1
  256. package/dist/routes/page/index.d.ts +2 -2
  257. package/dist/routes/page/index.d.ts.map +1 -1
  258. package/dist/routes/page.js +7 -5
  259. package/dist/routes/page.js.map +1 -1
  260. package/dist/routes/product-listing.js +20 -19
  261. package/dist/routes/product-listing.js.map +1 -1
  262. package/dist/routes/product.js +18 -17
  263. package/dist/routes/product.js.map +1 -1
  264. package/dist/routes/root/beforeLoad.d.ts +32 -13
  265. package/dist/routes/root/beforeLoad.d.ts.map +1 -1
  266. package/dist/routes/seo-redirects.js +3 -3
  267. package/dist/routes/testimonials/index.d.ts +4 -4
  268. package/dist/routes/testimonials/index.d.ts.map +1 -1
  269. package/dist/routes/testimonials.js +5 -5
  270. package/dist/routes/testimonials.js.map +1 -1
  271. package/dist/routes/thank-you/index.d.ts +2 -2
  272. package/dist/routes/thank-you/index.d.ts.map +1 -1
  273. package/dist/routes/thank-you.js +6 -6
  274. package/dist/routes/thank-you.js.map +1 -1
  275. package/dist/skeleton.js +19 -18
  276. package/dist/{store-lookup-UDGPAAWQ.js → store-lookup-2P7PQVXE.js} +8 -8
  277. package/dist/{store-lookup-UDGPAAWQ.js.map → store-lookup-2P7PQVXE.js.map} +1 -1
  278. package/dist/tanstack/router.d.ts.map +1 -1
  279. package/dist/tanstack.js +12 -11
  280. package/dist/tanstack.js.map +1 -1
  281. package/dist/utils/index.js +2 -2
  282. package/dist/utils/lazy-component.d.ts +26 -0
  283. package/dist/utils/lazy-component.d.ts.map +1 -0
  284. package/package.json +1 -1
  285. package/tailwind/components/cart/lazy.ts.txt +6 -4
  286. package/tailwind/components/common/lazy.ts.txt +6 -6
  287. package/tailwind/components/home/lazy.ts.txt +2 -2
  288. package/tailwind/components/layout/MasterLayout.tsx.txt +5 -4
  289. package/tailwind/components/layout/lazy.ts.txt +11 -7
  290. package/tailwind/components/live-editor/index.tsx.txt +3 -2
  291. package/tailwind/components/modal/lazy.ts.txt +2 -2
  292. package/tailwind/components/navigation/lazy.ts.txt +5 -3
  293. package/tailwind/components/product/lazy.ts.txt +3 -3
  294. package/tailwind/components/store/lazy.ts.txt +3 -3
  295. package/tailwind/components/tracking/lazy.ts.txt +3 -3
  296. package/tailwind/routes/account/notifications/index.tsx.txt +3 -2
  297. package/tailwind/routes/account/orders/index.tsx.txt +6 -3
  298. package/tailwind/routes/account/profile/index.tsx.txt +3 -2
  299. package/tailwind/routes/account/settings/index.tsx.txt +3 -2
  300. package/tailwind/routes/account/wallet/index.tsx.txt +5 -2
  301. package/tailwind/routes/account/wishlist/index.tsx.txt +3 -2
  302. package/tailwind/routes/blog/index.tsx.txt +9 -6
  303. package/tailwind/routes/brands/index.tsx.txt +5 -2
  304. package/tailwind/routes/lazy.ts.txt +23 -23
  305. package/tailwind/routes/loyalty/index.tsx.txt +4 -3
  306. package/tailwind/routes/page/index.tsx.txt +5 -2
  307. package/tailwind/routes/root/beforeLoad.ts.txt +80 -19
  308. package/tailwind/routes/testimonials/index.tsx.txt +4 -3
  309. package/tailwind/routes/thank-you/index.tsx.txt +3 -2
  310. package/dist/AddToCartForm-RG4ANO47.js.map +0 -1
  311. package/dist/BlogAuthorPage-JEYNAFRH.js.map +0 -1
  312. package/dist/BlogCategoryPage-IIAXWMHD.js.map +0 -1
  313. package/dist/BlogPage-NKYICNRT.js.map +0 -1
  314. package/dist/BlogSinglePage-FBO4NQL5.js.map +0 -1
  315. package/dist/BlogTagPage-WZIUPBEM.js.map +0 -1
  316. package/dist/BrandsPage-EN6MZV6T.js.map +0 -1
  317. package/dist/Breadcrumb-COB4TMMI.js.map +0 -1
  318. package/dist/CartItem-SYQZHA2F.js.map +0 -1
  319. package/dist/CartSummary-YQN7N6JW.js.map +0 -1
  320. package/dist/Copyright-II2URAIP.js.map +0 -1
  321. package/dist/CustomerLayout-75NK34WK.js.map +0 -1
  322. package/dist/LoyaltyPage-R4KWVGLW.js.map +0 -1
  323. package/dist/LoyaltyPointsPage-L7HG54RQ.js.map +0 -1
  324. package/dist/MainMenu-KI4BAA7W.js.map +0 -1
  325. package/dist/MobileMenu-LJXKYKRI.js.map +0 -1
  326. package/dist/NotificationsPage-4TUPN24E.js.map +0 -1
  327. package/dist/OrderSinglePage-N3YGXCKL.js.map +0 -1
  328. package/dist/OrdersPage-V3WNW2WZ.js.map +0 -1
  329. package/dist/PageSingle-H5YA47EG.js.map +0 -1
  330. package/dist/ProductDetails-EHRMQR7F.js.map +0 -1
  331. package/dist/ProfilePage-3GRY4RSA.js.map +0 -1
  332. package/dist/ReviewsPage-SPHK5MCS.js.map +0 -1
  333. package/dist/SeoCartWidget-P2QQ62AF.js.map +0 -1
  334. package/dist/SettingsPage-YFN32XOV.js.map +0 -1
  335. package/dist/TestimonialsPage-4W6SXN24.js.map +0 -1
  336. package/dist/ThankYouPage-56AIK3QG.js.map +0 -1
  337. package/dist/WalletPage-FLB4OCK4.js.map +0 -1
  338. package/dist/WishlistPage-H6KGJYRT.js.map +0 -1
  339. package/dist/chunk-7V5HOZW4.js +0 -10
  340. package/dist/chunk-7V5HOZW4.js.map +0 -1
  341. package/dist/chunk-BXQZXOFK.js.map +0 -1
  342. package/dist/chunk-DIA2LU6I.js.map +0 -1
  343. package/dist/chunk-EDK4U4WQ.js.map +0 -1
  344. package/dist/chunk-F73QPQX7.js.map +0 -1
  345. package/dist/chunk-IZ4MRCNY.js +0 -14
  346. package/dist/chunk-IZ4MRCNY.js.map +0 -1
  347. package/dist/chunk-JLJKIXDT.js.map +0 -1
  348. package/dist/chunk-MMXLOECO.js.map +0 -1
  349. package/dist/chunk-SDJVSRTL.js +0 -21
  350. package/dist/chunk-SDJVSRTL.js.map +0 -1
  351. package/dist/chunk-TUIB74QX.js.map +0 -1
  352. package/dist/chunk-V4E6JFS4.js.map +0 -1
  353. package/dist/not-found-3M6US423.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/tanstack/stylesheet.tsx","../src/tanstack/middleware/store-not-found.ts","../src/tanstack/middleware/twilight.ts","../src/tanstack/middleware/earlyHints.ts"],"names":["createMiddleware"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAM,gBAAA,GAAmB,MAAM,MAAM;AAAC,CAAA;AAG/B,SAAS,gBAAgB,EAAE,IAAA,EAAM,QAAA,GAAW,IAAG,EAAyB;AAC7E,EAAA,MAAM,UAAU,cAAA,CAAe;AAAA,IAC7B,MAAA,EAAQ,CAAC,KAAA,KACP,KAAA,CAAM,QAAQ,IAAA,CAAK,CAAC,KAAA,KAAU,MAAA,CAAO,MAAA,CAAO,QAAA,EAAU,KAAA,CAAM,OAAO,CAAC,CAAA,EAAG;AAAA,GAC1E,CAAA;AAED,EAAA,MAAM,CAAC,aAAa,CAAA,GAAI,QAAA,CAAS,OAAO,CAAA;AACxC,EAAA,MAAM,QAAA,GAAW,oBAAA;AAAA,IACf,gBAAA;AAAA,IACA,MAAM,IAAA;AAAA,IACN,MAAM;AAAA,GACR;AAEA,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACG,QAAA,EAAA;AAAA,IAAA,aAAA;AAAA,oBAEC,GAAA,CAAC,WAAM,IAAA,EAAM,mBAAA,EAAqB,YAAW,UAAA,EAC1C,QAAA,EAAA,QAAA,CAAS,aAAa,CAAA,EACzB,CAAA;AAAA,IAAA,CAEA,CAAC,aAAA,IAAiB,QAAA,qBAClB,GAAA,CAAC,MAAA,EAAA,EAAK,EAAA,EAAG,iBAAA,EAAkB,GAAA,EAAI,YAAA,EAAa,IAAA,EAAY,UAAA,EAAW,SAAA,EAAU,CAAA;AAAA,IAE9E,aAAA,wBACE,UAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,UAAK,GAAA,EAAI,YAAA,EAAa,MAAY,CAAA,EACrC;AAAA,GAAA,EAEJ,CAAA;AAEJ;AAGO,SAAS,gBAAA,GAAmB;AAC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,CAAS,IAAA,EAAM;AAAA,MACjC,QAAQ,QAAA,CAAS,MAAA;AAAA,MACjB,YAAY,QAAA,CAAS,UAAA;AAAA,MACrB;AAAA,KACD,CAAA;AAAA,EACH,CAAC,CAAA;AACH","file":"tanstack.js","sourcesContent":["import { useState, useSyncExternalStore } from 'react';\nimport { Asset, useRouter, useRouterState, useTags } from '@tanstack/react-router';\nimport { CRITICAL_STYLE_HREF } from '../boot/critical-style';\n\nexport interface ThemeStylesheetProps {\n /** The full stylesheet's URL (`app.css?url`). */\n href: string;\n /**\n * Inline critical CSS by route id. A page server-rendered as one of these routes paints from it,\n * and `bootClient` adds `href` once its first screen has painted. Pass the same route ids on the\n * client with empty strings, so hydration renders the same tags without shipping the CSS twice.\n */\n critical?: Readonly<Record<string, string>>;\n}\n\nconst subscribeNothing = () => () => {};\n\n/** The theme's stylesheet: inline critical CSS for the routes that have it, the full sheet otherwise. */\nexport function ThemeStylesheet({ href, critical = {} }: ThemeStylesheetProps) {\n const routeId = useRouterState({\n select: (state): string | undefined =>\n state.matches.find((match) => Object.hasOwn(critical, match.routeId))?.routeId,\n });\n // The route the page was server-rendered as: never added or removed on client-side navigations.\n const [criticalRoute] = useState(routeId);\n const hydrated = useSyncExternalStore(\n subscribeNothing,\n () => true,\n () => false\n );\n\n return (\n <>\n {criticalRoute && (\n // Its own precedence, so it lands before the full sheet; React renders the CSS verbatim.\n <style href={CRITICAL_STYLE_HREF} precedence=\"critical\">\n {critical[criticalRoute]}\n </style>\n )}\n {(!criticalRoute || hydrated) && (\n <link id=\"salla-theme-css\" rel=\"stylesheet\" href={href} precedence=\"default\" />\n )}\n {criticalRoute && (\n <noscript>\n <link rel=\"stylesheet\" href={href} />\n </noscript>\n )}\n </>\n );\n}\n\n/** The route's head tags without module preloads: they raced the LCP image, and the entry loads every chunk anyway. */\nexport function ThemeHeadContent() {\n const tags = useTags();\n const nonce = useRouter().options.ssr?.nonce;\n return tags\n .filter((tag) => !(tag.tag === 'link' && tag.attrs?.rel === 'modulepreload'))\n .map((tag) => <Asset {...tag} key={`tsr-meta-${JSON.stringify(tag)}`} nonce={nonce} />);\n}\n","/**\n * Which address was not found, as Twig's `checkUsername` (SallaApp/Store) tells them\n * apart: a store the request named (a username, `?storeId=`), or the domain itself.\n */\nexport type StoreNotFoundKind = 'store' | 'domain';\n\n/** Twig's copy (`error::errors.<kind>.not_found_*`). Arabic in every language, as there. */\nconst COPY: Record<StoreNotFoundKind, { title: string; message: string }> = {\n store: {\n title: 'المتجر غير موجود!',\n message: 'نأسف هذا المتجر غير موجود حاليا!.',\n },\n domain: {\n title: 'نطاق المتجر غير موجود!',\n message: 'نأسف نطاق المتجر المطلوب غير موجود حاليا!.',\n },\n};\n\n/**\n * The page Twig answers with a 410 when no store has the address it was asked for,\n * with what a visitor sees kept: the same markup and the same stylesheet. Dropped: the\n * feedback form, which Twig renders hidden, and the jQuery and legacy scripts behind\n * it. `iframe-embed` is on `<body>` from the start because Twig's script adds it on\n * every load, and it is what hides the `body--bg` background; the empty `msg-container`\n * keeps the block where Twig's sits. The link goes to merchant sign-up on s.salla.sa;\n * Twig's relative `/register` would reach the theme on any host but salla.sa.\n *\n * One constant document, and only {@link COPY} is ever put into it: nothing from the\n * request reaches this page.\n */\nconst PAGE = `<!DOCTYPE html>\n<html lang=\"ar\" dir=\"rtl\">\n<head>\n<meta charset=\"UTF-8\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n<meta name=\"theme-color\" content=\"#37a495\">\n<meta name=\"author\" content=\"منصة سلة\">\n<meta name=\"robots\" content=\"noindex, follow\">\n<meta name=\"copyright\" content=\"Salla.sa\">\n<title>{title}</title>\n<link rel=\"icon\" type=\"image/png\" href=\"https://cdn.salla.network/images/logo/logo-square.png\">\n<link rel=\"apple-touch-icon-precomposed\" href=\"https://cdn.salla.network/images/logo/logo-square.png\">\n<link rel=\"stylesheet\" href=\"https://cdn.salla.network/fonts/pingarlt.css?v=0.2\">\n<link rel=\"stylesheet\" href=\"https://cdn.assets.salla.network/prod/stores/vendor/salla/errors/css/app.css?id=0d7e71fbf018a0d5c478129a56c7a71f\">\n</head>\n<body class=\"body body--rtl body--bg iframe-embed\">\n<header id=\"header\" class=\"header header--404\"></header>\n<main id=\"main\" class=\"main main--404\">\n<div class=\"container container--wide\">\n<div class=\"e404-container\">\n<div class=\"landing\">\n<h1 class=\"title title--giant title--404\"><img src=\"https://cdn.assets.salla.network/prod/stores/vendor/salla/errors/images/error.svg\" alt=\"\"/> 410</h1>\n<h3>{title}</h3>\n<p>{message}<br> بإمكانك العودة للصفحة لرئيسية أو التسجيل للتمتع بمتجر رائع!</p>\n<a href=\"https://s.salla.sa/register\">سجل متجرك الأن</a>\n</div>\n</div>\n<div class=\"form-group msg-container\"></div>\n</div>\n</main>\n<footer id=\"footer\" class=\"footer\"></footer>\n</body>\n</html>\n`;\n\n/** Twig's 410 page for `kind`. */\nexport function storeNotFoundPage(kind: StoreNotFoundKind): string {\n const { title, message } = COPY[kind];\n return PAGE.replaceAll('{title}', title).replace('{message}', message);\n}\n\n/** {@link storeNotFoundPage} as Twig sends it: a 410 that no cache keeps. */\nexport function storeNotFoundResponse(kind: StoreNotFoundKind): Response {\n return new Response(storeNotFoundPage(kind), {\n status: 410,\n headers: {\n 'content-type': 'text/html; charset=UTF-8',\n 'cache-control': 'max-age=0, must-revalidate, no-cache, no-store, private',\n },\n });\n}\n","import type { AnyRequestMiddleware } from '@tanstack/react-start';\nimport { createMiddleware } from '@tanstack/react-start';\nimport {\n extractTokenFromCookies,\n resolveAddressedStore,\n resolveRequestScope,\n resolveRequestVersionId,\n AUTH_TOKEN_COOKIE_NAME,\n STORE_BASE_HEADER,\n} from '../../utils/cookies';\nimport { getTwilightContext, runWithTwilightContext } from '../../twilight/context';\nimport type { StoreContext } from '../../api/store';\nimport {\n MAINTENANCE_EVIDENCE_HEADER,\n maintenanceEvidence,\n maintenanceEvidenceHeader,\n} from '../../utils/maintenance';\nimport { requestHostOf } from '../../utils/request-host';\nimport { legacyLocaleRedirectHref } from '../../utils/store-base';\nimport { readNativeAppHeaders } from '../../utils/native-app-headers';\nimport { storeNotFoundResponse } from './store-not-found';\n\n/**\n * A 503 for the maintenance page, so search engines read it as temporary and keep\n * the store indexed. TanStack sets the SSR status from the router alone (200, 404,\n * 500) and ignores `setResponseStatus`, so the status is applied here, on the\n * response the render produced, from the decision `rootBeforeLoad` left in the\n * request context. Only a 200 is rewritten: a redirect or an error keeps its own.\n *\n * `next()` resolves to the middleware context, whose `response` is the render; a\n * bare `Response` is accepted too. The rewrite keeps the body stream, so TanStack\n * treats it as the same response rather than a replacement to cancel.\n */\nexport function withMaintenanceStatus<T>(result: T): T | Response {\n const response =\n result instanceof Response\n ? result\n : (result as { response?: unknown } | null)?.response instanceof Response\n ? ((result as { response: Response }).response as Response)\n : null;\n if (!response || response.status !== 200 || !getTwilightContext().maintenance) return result;\n const unavailable = new Response(response.body, {\n status: 503,\n statusText: 'Service Unavailable',\n headers: response.headers,\n });\n stampMaintenanceEvidence(unavailable.headers);\n return result instanceof Response ? unavailable : { ...result, response: unavailable };\n}\n\n/**\n * Says on the 503 which settings answer closed the store, and logs it once.\n *\n * The page is for everyone but the merchant, so it is usually the merchant's own\n * store state; when it is not (503s interleaved with 200s on one store), the\n * answer's trace and cache status are what settle it. The Store's trace goes in\n * `x-trace-id`, which the dispatcher already logs for a 5xx.\n */\nfunction stampMaintenanceEvidence(headers: Headers): void {\n let settings: StoreContext | undefined;\n try {\n settings = getTwilightContext().settings;\n } catch {\n return;\n }\n const evidence = maintenanceEvidence(settings);\n if (!Object.keys(evidence).length) return;\n headers.set(MAINTENANCE_EVIDENCE_HEADER, maintenanceEvidenceHeader(evidence));\n if (evidence.trace) headers.set('x-trace-id', evidence.trace);\n console.warn('[twilight] maintenance page', {\n ...evidence,\n title: settings?.maintenance_details?.title,\n });\n}\n\n/**\n * Twig's 410 page in place of the render, once rootBeforeLoad has learned that no store\n * has this request's identifier: there is no store to render, so nothing of it is kept.\n * The page says \"domain\" when the host was the identifier (nothing in the request named\n * a store), as Twig's `checkUsername` does for a host that is not salla.sa.\n *\n * A render that threw is answered the same way. A theme's shell renders even when the\n * root route failed, and one that reads the settings there throws, which h3 would\n * otherwise answer with a bare `{\"status\":500,\"unhandled\":true}`.\n */\nexport function withStoreNotFoundPage<T>(result: T): T | Response {\n if (!getTwilightContext().storeNotFound) return result;\n const page = storeNotFoundAnswer();\n const carried = (result as { response?: unknown } | null)?.response;\n return carried instanceof Response ? { ...result, response: page } : page;\n}\n\n/** The render's failure, unless {@link withStoreNotFoundPage} has an answer for it. */\nexport function storeNotFoundOrThrow(error: unknown): Response {\n if (getTwilightContext().storeNotFound) return storeNotFoundAnswer();\n throw error;\n}\n\n/** A store the request named (`?storeId=`, a path segment, a username), else the host's. */\nfunction storeNotFoundAnswer(): Response {\n const { storeId, storeBase } = getTwilightContext();\n return storeNotFoundResponse(storeId || storeBase ? 'store' : 'domain');\n}\n\ninterface TwilightMiddlewareOptions {\n cookieName?: string;\n}\n\nexport const twilightMiddleware = (options?: TwilightMiddlewareOptions): AnyRequestMiddleware => {\n const cookieName = options?.cookieName ?? AUTH_TOKEN_COOKIE_NAME;\n\n return createMiddleware().server(async ({ request, next }) => {\n const cookieHeader = request.headers.get('Cookie');\n const authToken = extractTokenFromCookies(cookieHeader, cookieName);\n // `?scope=` before the cookie: it is how a market is switched (see resolveRequestScope).\n const scope = resolveRequestScope(request.url, cookieHeader);\n const requestHost = requestHostOf(request);\n // Read here and nowhere else: a deployed theme worker has no vars and no\n // bindings, so the request is the only thing that knows which store it is\n // serving. Everything downstream reads it off the context rather than\n // reaching for a build-time constant that is not there in production.\n //\n // The host goes in because it decides whether the request is allowed to name\n // a store at all. On a merchant's own domain it is not: the hostname is the\n // store, and `?storeId=` there would serve a stranger's shop from a domain\n // its owner controls.\n //\n // On those same hosts the store is also the first segment of the path, the\n // root of every URL there, and a store named that way takes the cookie's\n // place: the path is the address the visitor can see.\n //\n // On a Salla shared host the dispatcher names the store instead, from the\n // segment after the locale, and that is where it stays in every URL.\n const { storeId, storeBase, storeBaseFollowsLocale } = resolveAddressedStore(\n request.url,\n cookieHeader,\n requestHost,\n request.headers.get(STORE_BASE_HEADER)\n );\n // The version is read here for the same reason and behind the same gate. A\n // theme editor previews a draft version of a merchant's settings before it is\n // published, and a partner running the theme locally renders against one —\n // both open the storefront in an iframe and say which version in the URL.\n const versionId = resolveRequestVersionId(request.url, cookieHeader, requestHost);\n const nativeAppHeaders = readNativeAppHeaders(request.headers);\n\n // A shared host's address has no language in it any more: `/dev-x/cart`, not\n // `/ar/dev-x/cart`. An old link is sent to the new one once, keeping its language as\n // `?lang=`. Only a page load is redirected; anything else is answered as asked.\n if (\n storeBase &&\n storeBaseFollowsLocale &&\n (request.method === 'GET' || request.method === 'HEAD')\n ) {\n const location = legacyLocaleRedirectHref(request.url, storeBase);\n if (location) return new Response(null, { status: 302, headers: { Location: location } });\n }\n\n const response = await runWithTwilightContext(\n {\n authToken,\n scope,\n storeId,\n storeBase,\n storeBaseFollowsLocale,\n versionId,\n requestHost,\n nativeAppHeaders,\n },\n () => {\n const result = next({ context: { authToken } });\n const settle = <R>(rendered: R) => withMaintenanceStatus(withStoreNotFoundPage(rendered));\n // The continuation stays in this request's scope: it was registered inside `run`.\n return result instanceof Promise\n ? result.then(settle, storeNotFoundOrThrow)\n : settle(result);\n }\n );\n // On a shared host the same URL is answered in the language the `s-lang` cookie names, so\n // a cache in front of the worker must not serve one visitor's page to another.\n return storeBaseFollowsLocale ? varyOnCookie(response) : response;\n });\n};\n\n/** A copy of `response` with `Vary: Cookie` added (the original's headers may be immutable). */\nfunction withVaryCookie(response: Response): Response {\n const headers = new Headers(response.headers);\n headers.append('Vary', 'Cookie');\n return new Response(response.body, {\n status: response.status,\n statusText: response.statusText,\n headers,\n });\n}\n\n/**\n * Adds `Vary: Cookie` to what `next()` produced: its result carries the page's `response`,\n * and a middleware may also pass a bare `Response` through. Anything else is left as it is.\n */\nfunction varyOnCookie<T>(result: T): T {\n if (result instanceof Response) return withVaryCookie(result) as T;\n const carried = (result as { response?: unknown } | null)?.response;\n if (carried instanceof Response) {\n (result as { response: Response }).response = withVaryCookie(carried);\n }\n return result;\n}\n","import type { AnyRequestMiddleware } from '@tanstack/react-start';\nimport { createMiddleware } from '@tanstack/react-start';\nimport { tsrStartManifest } from 'tanstack-start-manifest:v';\nimport { rootHead } from '../../routes/root/head';\n\n/** Known critical assets that should always be preloaded */\nconst CRITICAL_ASSETS = [\n { rel: 'preconnect', href: 'https://api.salla.dev' },\n { rel: 'preconnect', href: 'https://cdn.salla.sa' },\n { rel: 'preconnect', href: 'https://cdn.assets.salla.network', crossOrigin: 'anonymous' },\n { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossOrigin: 'anonymous' },\n] as const;\n\n/** Extract locale from URL path (e.g., /ar/products → 'ar') */\nfunction extractLocale(url: string): string | undefined {\n const match = url.match(/^\\/([a-z]{2})(\\/|$)/);\n return match?.[1];\n}\n\n/** Build Link header value from a link descriptor */\nfunction buildLinkHeader(link: Record<string, unknown>): string | null {\n const href = link.href as string | undefined;\n const rel = link.rel as string | undefined;\n if (!href || !rel) return null;\n\n // Skip print-media stylesheets (already non-blocking)\n if (rel === 'stylesheet') {\n const media = link.media as string | undefined;\n if (media === 'print') return null;\n return `<${href}>; rel=preload; as=style`;\n }\n\n if (rel === 'preload') {\n const asType = link.as as string | undefined;\n if (!asType) return null;\n const parts = [`<${href}>`, 'rel=preload', `as=${asType}`];\n if (asType === 'font' || link.crossOrigin) {\n parts.push('crossorigin');\n }\n return parts.join('; ');\n }\n\n if (rel === 'modulepreload') {\n return `<${href}>; rel=modulepreload`;\n }\n\n return null;\n}\n\nexport const earlyHintsMiddleware = (): AnyRequestMiddleware => {\n let cachedManifestPaths: string[] | null = null;\n\n return createMiddleware().server(async ({ request, next }) => {\n const response = await next();\n\n const accept = request.headers.get('Accept') ?? '';\n if (!accept.includes('text/html') && accept !== '*/*') return response;\n if (!(response instanceof Response)) return response;\n\n const linkHeaders: string[] = [];\n\n // 1. Add critical assets from rootHead (fonts, icons, SDK, etc.)\n try {\n const url = new URL(request.url);\n const locale = extractLocale(url.pathname);\n if (locale) {\n const headResult = rootHead({ params: { locale } });\n const links = (headResult.links as Record<string, unknown>[]) ?? [];\n for (const link of links) {\n const header = buildLinkHeader(link);\n if (header) linkHeaders.push(header);\n }\n }\n } catch (e) {\n // rootHead failed — log why, then fall back to known critical assets\n console.warn('[earlyHints] rootHead failed:', e instanceof Error ? e.message : e);\n for (const asset of CRITICAL_ASSETS) {\n const co = 'crossOrigin' in asset ? asset.crossOrigin : undefined;\n linkHeaders.push(`<${asset.href}>; rel=${asset.rel}${co ? '; crossorigin' : ''}`);\n }\n }\n\n // 2. Add CSS from TanStack Start manifest (bundled theme CSS)\n if (!cachedManifestPaths) {\n try {\n const manifest = tsrStartManifest();\n const rootAssets = manifest.routes['__root__']?.assets ?? [];\n const seen = new Set<string>();\n cachedManifestPaths = [];\n for (const asset of rootAssets) {\n if (asset.tag === 'link' && asset.attrs?.href?.endsWith('.css')) {\n if (!seen.has(asset.attrs.href)) {\n seen.add(asset.attrs.href);\n cachedManifestPaths.push(asset.attrs.href);\n }\n }\n }\n } catch (e) {\n // manifest not available — skip\n console.warn('[earlyHints] tsrStartManifest failed:', e instanceof Error ? e.message : e);\n }\n }\n\n if (cachedManifestPaths) {\n for (const href of cachedManifestPaths) {\n linkHeaders.push(`<${href}>; rel=preload; as=style`);\n }\n }\n\n // Apply Link headers if we have any\n if (linkHeaders.length === 0) {\n console.warn('[earlyHints] no critical assets found — no Link headers added');\n return response;\n }\n\n const headers = new Headers(response.headers);\n for (const linkHeader of linkHeaders) {\n headers.append('Link', linkHeader);\n }\n\n return new Response(response.body, {\n status: response.status,\n statusText: response.statusText,\n headers,\n });\n });\n};\n"]}
1
+ {"version":3,"sources":["../src/tanstack/stylesheet.tsx","../src/tanstack/middleware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AA,CAAS,MAAA;AAAA,MACjB,YAAY,QAAA,CAAS,UAAA;AAAA,MACrB;AAAA,KACD,CAAA;AAAA,EACH,CAAC,CAAA;AACH","file":"tanstack.js","sourcesContent":["import { useState, useSyncExternalStore } from 'react';\nimport { Asset, useRouter, useRouterState, useTags } from '@tanstack/react-router';\nimport { CRITICAL_STYLE_HREF } from '../boot/critical-style';\n\nexport interface ThemeStylesheetProps {\n /** The full stylesheet's URL (`app.css?url`). */\n href: string;\n /**\n * Inline critical CSS by route id. A page server-rendered as one of these routes paints from it,\n * and `bootClient` adds `href` once its first screen has painted. Pass the same route ids on the\n * client with empty strings, so hydration renders the same tags without shipping the CSS twice.\n */\n critical?: Readonly<Record<string, string>>;\n}\n\nconst subscribeNothing = () => () => {};\n\n/** The theme's stylesheet: inline critical CSS for the routes that have it, the full sheet otherwise. */\nexport function ThemeStylesheet({ href, critical = {} }: ThemeStylesheetProps) {\n const routeId = useRouterState({\n select: (state): string | undefined =>\n state.matches.find((match) => Object.hasOwn(critical, match.routeId))?.routeId,\n });\n // The route the page was server-rendered as: never added or removed on client-side navigations.\n const [criticalRoute] = useState(routeId);\n const hydrated = useSyncExternalStore(\n subscribeNothing,\n () => true,\n () => false\n );\n\n return (\n <>\n {criticalRoute && (\n // Its own precedence, so it lands before the full sheet; React renders the CSS verbatim.\n <style href={CRITICAL_STYLE_HREF} precedence=\"critical\">\n {critical[criticalRoute]}\n </style>\n )}\n {(!criticalRoute || hydrated) && (\n <link id=\"salla-theme-css\" rel=\"stylesheet\" href={href} precedence=\"default\" />\n )}\n {criticalRoute && (\n <noscript>\n <link rel=\"stylesheet\" href={href} />\n </noscript>\n )}\n </>\n );\n}\n\n/** The route's head tags without module preloads: they raced the LCP image, and the entry loads every chunk anyway. */\nexport function ThemeHeadContent() {\n const tags = useTags();\n const nonce = useRouter().options.ssr?.nonce;\n return tags\n .filter((tag) => !(tag.tag === 'link' && tag.attrs?.rel === 'modulepreload'))\n .map((tag) => <Asset {...tag} key={`tsr-meta-${JSON.stringify(tag)}`} nonce={nonce} />);\n}\n","/**\n * Which address was not found, as Twig's `checkUsername` (SallaApp/Store) tells them\n * apart: a store the request named (a username, `?storeId=`), or the domain itself.\n */\nexport type StoreNotFoundKind = 'store' | 'domain';\n\n/** Twig's copy (`error::errors.<kind>.not_found_*`). Arabic in every language, as there. */\nconst COPY: Record<StoreNotFoundKind, { title: string; message: string }> = {\n store: {\n title: 'المتجر غير موجود!',\n message: 'نأسف هذا المتجر غير موجود حاليا!.',\n },\n domain: {\n title: 'نطاق المتجر غير موجود!',\n message: 'نأسف نطاق المتجر المطلوب غير موجود حاليا!.',\n },\n};\n\n/**\n * The page Twig answers with a 410 when no store has the address it was asked for,\n * with what a visitor sees kept: the same markup and the same stylesheet. Dropped: the\n * feedback form, which Twig renders hidden, and the jQuery and legacy scripts behind\n * it. `iframe-embed` is on `<body>` from the start because Twig's script adds it on\n * every load, and it is what hides the `body--bg` background; the empty `msg-container`\n * keeps the block where Twig's sits. The link goes to merchant sign-up on s.salla.sa;\n * Twig's relative `/register` would reach the theme on any host but salla.sa.\n *\n * One constant document, and only {@link COPY} is ever put into it: nothing from the\n * request reaches this page.\n */\nconst PAGE = `<!DOCTYPE html>\n<html lang=\"ar\" dir=\"rtl\">\n<head>\n<meta charset=\"UTF-8\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n<meta name=\"theme-color\" content=\"#37a495\">\n<meta name=\"author\" content=\"منصة سلة\">\n<meta name=\"robots\" content=\"noindex, follow\">\n<meta name=\"copyright\" content=\"Salla.sa\">\n<title>{title}</title>\n<link rel=\"icon\" type=\"image/png\" href=\"https://cdn.salla.network/images/logo/logo-square.png\">\n<link rel=\"apple-touch-icon-precomposed\" href=\"https://cdn.salla.network/images/logo/logo-square.png\">\n<link rel=\"stylesheet\" href=\"https://cdn.salla.network/fonts/pingarlt.css?v=0.2\">\n<link rel=\"stylesheet\" href=\"https://cdn.assets.salla.network/prod/stores/vendor/salla/errors/css/app.css?id=0d7e71fbf018a0d5c478129a56c7a71f\">\n</head>\n<body class=\"body body--rtl body--bg iframe-embed\">\n<header id=\"header\" class=\"header header--404\"></header>\n<main id=\"main\" class=\"main main--404\">\n<div class=\"container container--wide\">\n<div class=\"e404-container\">\n<div class=\"landing\">\n<h1 class=\"title title--giant title--404\"><img src=\"https://cdn.assets.salla.network/prod/stores/vendor/salla/errors/images/error.svg\" alt=\"\"/> 410</h1>\n<h3>{title}</h3>\n<p>{message}<br> بإمكانك العودة للصفحة لرئيسية أو التسجيل للتمتع بمتجر رائع!</p>\n<a href=\"https://s.salla.sa/register\">سجل متجرك الأن</a>\n</div>\n</div>\n<div class=\"form-group msg-container\"></div>\n</div>\n</main>\n<footer id=\"footer\" class=\"footer\"></footer>\n</body>\n</html>\n`;\n\n/** Twig's 410 page for `kind`. */\nexport function storeNotFoundPage(kind: StoreNotFoundKind): string {\n const { title, message } = COPY[kind];\n return PAGE.replaceAll('{title}', title).replace('{message}', message);\n}\n\n/** {@link storeNotFoundPage} as Twig sends it: a 410 that no cache keeps. */\nexport function storeNotFoundResponse(kind: StoreNotFoundKind): Response {\n return new Response(storeNotFoundPage(kind), {\n status: 410,\n headers: {\n 'content-type': 'text/html; charset=UTF-8',\n 'cache-control': 'max-age=0, must-revalidate, no-cache, no-store, private',\n },\n });\n}\n","import type { AnyRequestMiddleware } from '@tanstack/react-start';\nimport { createMiddleware } from '@tanstack/react-start';\nimport {\n extractTokenFromCookies,\n resolveAddressedStore,\n resolveRequestScope,\n resolveRequestVersionId,\n AUTH_TOKEN_COOKIE_NAME,\n STORE_BASE_HEADER,\n} from '../../utils/cookies';\nimport { getTwilightContext, runWithTwilightContext } from '../../twilight/context';\nimport type { StoreContext } from '../../api/store';\nimport {\n MAINTENANCE_EVIDENCE_HEADER,\n maintenanceEvidence,\n maintenanceEvidenceHeader,\n} from '../../utils/maintenance';\nimport { requestHostOf } from '../../utils/request-host';\nimport { legacyLocaleRedirectHref } from '../../utils/store-base';\nimport { readNativeAppHeaders } from '../../utils/native-app-headers';\nimport { storeNotFoundResponse } from './store-not-found';\n\n/**\n * A 503 for the maintenance page, so search engines read it as temporary and keep\n * the store indexed. TanStack sets the SSR status from the router alone (200, 404,\n * 500) and ignores `setResponseStatus`, so the status is applied here, on the\n * response the render produced, from the decision `rootBeforeLoad` left in the\n * request context. Only a 200 is rewritten: a redirect or an error keeps its own.\n *\n * `next()` resolves to the middleware context, whose `response` is the render; a\n * bare `Response` is accepted too. The rewrite keeps the body stream, so TanStack\n * treats it as the same response rather than a replacement to cancel.\n */\nexport function withMaintenanceStatus<T>(result: T): T | Response {\n const response =\n result instanceof Response\n ? result\n : (result as { response?: unknown } | null)?.response instanceof Response\n ? ((result as { response: Response }).response as Response)\n : null;\n if (!response || response.status !== 200 || !getTwilightContext().maintenance) return result;\n const unavailable = new Response(response.body, {\n status: 503,\n statusText: 'Service Unavailable',\n headers: response.headers,\n });\n stampMaintenanceEvidence(unavailable.headers);\n return result instanceof Response ? unavailable : { ...result, response: unavailable };\n}\n\n/**\n * Says on the 503 which settings answer closed the store, and logs it once.\n *\n * The page is for everyone but the merchant, so it is usually the merchant's own\n * store state; when it is not (503s interleaved with 200s on one store), the\n * answer's trace and cache status are what settle it. The Store's trace goes in\n * `x-trace-id`, which the dispatcher already logs for a 5xx.\n */\nfunction stampMaintenanceEvidence(headers: Headers): void {\n let settings: StoreContext | undefined;\n try {\n settings = getTwilightContext().settings;\n } catch {\n return;\n }\n const evidence = maintenanceEvidence(settings);\n if (!Object.keys(evidence).length) return;\n headers.set(MAINTENANCE_EVIDENCE_HEADER, maintenanceEvidenceHeader(evidence));\n if (evidence.trace) headers.set('x-trace-id', evidence.trace);\n console.warn('[twilight] maintenance page', {\n ...evidence,\n title: settings?.maintenance_details?.title,\n });\n}\n\n/**\n * Twig's 410 page in place of the render, once rootBeforeLoad has learned that no store\n * has this request's identifier: there is no store to render, so nothing of it is kept.\n * The page says \"domain\" when the host was the identifier (nothing in the request named\n * a store), as Twig's `checkUsername` does for a host that is not salla.sa.\n *\n * A render that threw is answered the same way. A theme's shell renders even when the\n * root route failed, and one that reads the settings there throws, which h3 would\n * otherwise answer with a bare `{\"status\":500,\"unhandled\":true}`.\n */\nexport function withStoreNotFoundPage<T>(result: T): T | Response {\n if (!getTwilightContext().storeNotFound) return result;\n const page = storeNotFoundAnswer();\n const carried = (result as { response?: unknown } | null)?.response;\n return carried instanceof Response ? { ...result, response: page } : page;\n}\n\n/** The render's failure, unless {@link withStoreNotFoundPage} has an answer for it. */\nexport function storeNotFoundOrThrow(error: unknown): Response {\n if (getTwilightContext().storeNotFound) return storeNotFoundAnswer();\n throw error;\n}\n\n/** A store the request named (`?storeId=`, a path segment, a username), else the host's. */\nfunction storeNotFoundAnswer(): Response {\n const { storeId, storeBase } = getTwilightContext();\n return storeNotFoundResponse(storeId || storeBase ? 'store' : 'domain');\n}\n\ninterface TwilightMiddlewareOptions {\n cookieName?: string;\n}\n\nexport const twilightMiddleware = (options?: TwilightMiddlewareOptions): AnyRequestMiddleware => {\n const cookieName = options?.cookieName ?? AUTH_TOKEN_COOKIE_NAME;\n\n return createMiddleware().server(async ({ request, next }) => {\n const cookieHeader = request.headers.get('Cookie');\n const authToken = extractTokenFromCookies(cookieHeader, cookieName);\n // `?scope=` before the cookie: it is how a market is switched (see resolveRequestScope).\n const scope = resolveRequestScope(request.url, cookieHeader);\n const requestHost = requestHostOf(request);\n // Read here and nowhere else: a deployed theme worker has no vars and no\n // bindings, so the request is the only thing that knows which store it is\n // serving. Everything downstream reads it off the context rather than\n // reaching for a build-time constant that is not there in production.\n //\n // The host goes in because it decides whether the request is allowed to name\n // a store at all. On a merchant's own domain it is not: the hostname is the\n // store, and `?storeId=` there would serve a stranger's shop from a domain\n // its owner controls.\n //\n // On those same hosts the store is also the first segment of the path, the\n // root of every URL there, and a store named that way takes the cookie's\n // place: the path is the address the visitor can see.\n //\n // On a Salla shared host the dispatcher names the store instead, from the\n // segment after the locale, and that is where it stays in every URL.\n const { storeId, storeBase, storeBaseFollowsLocale } = resolveAddressedStore(\n request.url,\n cookieHeader,\n requestHost,\n request.headers.get(STORE_BASE_HEADER)\n );\n // The version is read here for the same reason and behind the same gate. A\n // theme editor previews a draft version of a merchant's settings before it is\n // published, and a partner running the theme locally renders against one —\n // both open the storefront in an iframe and say which version in the URL.\n const versionId = resolveRequestVersionId(request.url, cookieHeader, requestHost);\n const nativeAppHeaders = readNativeAppHeaders(request.headers);\n\n // A shared host's address has no language in it any more: `/dev-x/cart`, not\n // `/ar/dev-x/cart`. An old link is sent to the new one once, keeping its language as\n // `?lang=`. Only a page load is redirected; anything else is answered as asked.\n if (\n storeBase &&\n storeBaseFollowsLocale &&\n (request.method === 'GET' || request.method === 'HEAD')\n ) {\n const location = legacyLocaleRedirectHref(request.url, storeBase);\n if (location) return new Response(null, { status: 302, headers: { Location: location } });\n }\n\n const response = await runWithTwilightContext(\n {\n authToken,\n scope,\n storeId,\n storeBase,\n storeBaseFollowsLocale,\n versionId,\n requestHost,\n nativeAppHeaders,\n },\n () => {\n const result = next({ context: { authToken } });\n const settle = <R>(rendered: R) => withMaintenanceStatus(withStoreNotFoundPage(rendered));\n // The continuation stays in this request's scope: it was registered inside `run`.\n return result instanceof Promise\n ? result.then(settle, storeNotFoundOrThrow)\n : settle(result);\n }\n );\n // On a shared host the same URL is answered in the language the `s-lang` cookie names, so\n // a cache in front of the worker must not serve one visitor's page to another.\n return storeBaseFollowsLocale ? varyOnCookie(response) : response;\n });\n};\n\n/** A copy of `response` with `Vary: Cookie` added (the original's headers may be immutable). */\nfunction withVaryCookie(response: Response): Response {\n const headers = new Headers(response.headers);\n headers.append('Vary', 'Cookie');\n return new Response(response.body, {\n status: response.status,\n statusText: response.statusText,\n headers,\n });\n}\n\n/**\n * Adds `Vary: Cookie` to what `next()` produced: its result carries the page's `response`,\n * and a middleware may also pass a bare `Response` through. Anything else is left as it is.\n */\nfunction varyOnCookie<T>(result: T): T {\n if (result instanceof Response) return withVaryCookie(result) as T;\n const carried = (result as { response?: unknown } | null)?.response;\n if (carried instanceof Response) {\n (result as { response: Response }).response = withVaryCookie(carried);\n }\n return result;\n}\n","import type { AnyRequestMiddleware } from '@tanstack/react-start';\nimport { createMiddleware } from '@tanstack/react-start';\nimport { tsrStartManifest } from 'tanstack-start-manifest:v';\nimport { rootHead } from '../../routes/root/head';\n\n/** Known critical assets that should always be preloaded */\nconst CRITICAL_ASSETS = [\n { rel: 'preconnect', href: 'https://api.salla.dev' },\n { rel: 'preconnect', href: 'https://cdn.salla.sa' },\n { rel: 'preconnect', href: 'https://cdn.assets.salla.network', crossOrigin: 'anonymous' },\n { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossOrigin: 'anonymous' },\n] as const;\n\n/** Extract locale from URL path (e.g., /ar/products → 'ar') */\nfunction extractLocale(url: string): string | undefined {\n const match = url.match(/^\\/([a-z]{2})(\\/|$)/);\n return match?.[1];\n}\n\n/** Build Link header value from a link descriptor */\nfunction buildLinkHeader(link: Record<string, unknown>): string | null {\n const href = link.href as string | undefined;\n const rel = link.rel as string | undefined;\n if (!href || !rel) return null;\n\n // Skip print-media stylesheets (already non-blocking)\n if (rel === 'stylesheet') {\n const media = link.media as string | undefined;\n if (media === 'print') return null;\n return `<${href}>; rel=preload; as=style`;\n }\n\n if (rel === 'preload') {\n const asType = link.as as string | undefined;\n if (!asType) return null;\n const parts = [`<${href}>`, 'rel=preload', `as=${asType}`];\n if (asType === 'font' || link.crossOrigin) {\n parts.push('crossorigin');\n }\n return parts.join('; ');\n }\n\n if (rel === 'modulepreload') {\n return `<${href}>; rel=modulepreload`;\n }\n\n return null;\n}\n\nexport const earlyHintsMiddleware = (): AnyRequestMiddleware => {\n let cachedManifestPaths: string[] | null = null;\n\n return createMiddleware().server(async ({ request, next }) => {\n const response = await next();\n\n const accept = request.headers.get('Accept') ?? '';\n if (!accept.includes('text/html') && accept !== '*/*') return response;\n if (!(response instanceof Response)) return response;\n\n const linkHeaders: string[] = [];\n\n // 1. Add critical assets from rootHead (fonts, icons, SDK, etc.)\n try {\n const url = new URL(request.url);\n const locale = extractLocale(url.pathname);\n if (locale) {\n const headResult = rootHead({ params: { locale } });\n const links = (headResult.links as Record<string, unknown>[]) ?? [];\n for (const link of links) {\n const header = buildLinkHeader(link);\n if (header) linkHeaders.push(header);\n }\n }\n } catch (e) {\n // rootHead failed — log why, then fall back to known critical assets\n console.warn('[earlyHints] rootHead failed:', e instanceof Error ? e.message : e);\n for (const asset of CRITICAL_ASSETS) {\n const co = 'crossOrigin' in asset ? asset.crossOrigin : undefined;\n linkHeaders.push(`<${asset.href}>; rel=${asset.rel}${co ? '; crossorigin' : ''}`);\n }\n }\n\n // 2. Add CSS from TanStack Start manifest (bundled theme CSS)\n if (!cachedManifestPaths) {\n try {\n const manifest = tsrStartManifest();\n const rootAssets = manifest.routes['__root__']?.assets ?? [];\n const seen = new Set<string>();\n cachedManifestPaths = [];\n for (const asset of rootAssets) {\n if (asset.tag === 'link' && asset.attrs?.href?.endsWith('.css')) {\n if (!seen.has(asset.attrs.href)) {\n seen.add(asset.attrs.href);\n cachedManifestPaths.push(asset.attrs.href);\n }\n }\n }\n } catch (e) {\n // manifest not available — skip\n console.warn('[earlyHints] tsrStartManifest failed:', e instanceof Error ? e.message : e);\n }\n }\n\n if (cachedManifestPaths) {\n for (const href of cachedManifestPaths) {\n linkHeaders.push(`<${href}>; rel=preload; as=style`);\n }\n }\n\n // Apply Link headers if we have any\n if (linkHeaders.length === 0) {\n console.warn('[earlyHints] no critical assets found — no Link headers added');\n return response;\n }\n\n const headers = new Headers(response.headers);\n for (const linkHeader of linkHeaders) {\n headers.append('Link', linkHeader);\n }\n\n return new Response(response.body, {\n status: response.status,\n statusText: response.statusText,\n headers,\n });\n });\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  export { stripUnsafeHtml } from '../chunk-RUHSV4Z6.js';
2
2
  export { formatSallaPlural } from '../chunk-BT6HEEAP.js';
3
- export { dispatchRouteChanged } from '../chunk-BFPTMZ4G.js';
3
+ export { dispatchRouteChanged } from '../chunk-6KZUGNCS.js';
4
4
  export { sortOptions } from '../chunk-3LZJXKVO.js';
5
5
  export { color } from '../chunk-VVZNW5CB.js';
6
6
  export { applyAppScopeMocks, registerThemeHookSlots } from '../chunk-WQPG22DY.js';
@@ -8,7 +8,7 @@ export { mergeHead, resolveHead, setHeadAdapter } from '../chunk-GD26FI4J.js';
8
8
  export { buildBaseHead, buildHreflangAlternates, localeToOgLocale } from '../chunk-RYGEIQWO.js';
9
9
  export { asset, cdn, isPlaceholder } from '../chunk-ZCH7W7DZ.js';
10
10
  export { mergeDocumentDescriptors, mergeElementAttrs, normalizeClasses, syncAttrsToElement, toReactProps } from '../chunk-CW625T2E.js';
11
- import '../chunk-RYAOXNRA.js';
11
+ import '../chunk-5MNGLNIJ.js';
12
12
  import '../chunk-Z5M4YYWT.js';
13
13
  export { getSallaSDK, getStoreIdentifier, onSallaEvent, whenSallaLoaded, whenSallaReady } from '../chunk-NHA4SBKG.js';
14
14
  export { AUTH_TOKEN_COOKIE_NAME, clearAuthTokenCookie, extractTokenFromCookies } from '../chunk-FXVII733.js';
@@ -0,0 +1,26 @@
1
+ import { type ComponentType } from 'react';
2
+ /** A component that loads its module on first render, like `React.lazy`, and can load it ahead. */
3
+ export type LazyComponent<T extends ComponentType<any>> = T & {
4
+ /** Loads the module; the same promise on every call. */
5
+ preload: () => Promise<void>;
6
+ };
7
+ /**
8
+ * `React.lazy` with a `preload`. A `React.lazy` suspends the first time it renders in a
9
+ * server isolate even when its module is in the worker bundle: its import settles a tick
10
+ * later. Every suspended boundary then streams after the shell and the router's data,
11
+ * which put the home page's blocks, and their LCP image preload, at the end of the
12
+ * document whenever an isolate was fresh. This one renders its component directly once
13
+ * the module has loaded, and `preloadServerComponents` loads them all before the first
14
+ * render. Mounted before then, it is a plain `React.lazy`.
15
+ */
16
+ export declare function lazyComponent<T extends ComponentType<any>>(load: () => Promise<{
17
+ default: T;
18
+ }>): LazyComponent<T>;
19
+ /**
20
+ * Loads every lazy component on the server so none suspends while the page renders. Each
21
+ * module loads once per isolate; later calls also pick up components defined since, such
22
+ * as a route chunk's. Resolves at once in the browser, where they load on demand. A module
23
+ * that fails to load is left to fail where it renders, as before.
24
+ */
25
+ export declare function preloadServerComponents(): Promise<void>;
26
+ //# sourceMappingURL=lazy-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-component.d.ts","sourceRoot":"","sources":["../../src/utils/lazy-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsD,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE/F,mGAAmG;AAEnG,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG;IAC5D,wDAAwD;IACxD,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AAKF;;;;;;;;GAQG;AAEH,wBAAgB,aAAa,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,EACxD,IAAI,EAAE,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC,GAClC,aAAa,CAAC,CAAC,CAAC,CAmBlB;AAED;;;;;GAKG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAG7D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-theme-engine",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,15 +1,17 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
3
  /**
4
4
  * Lazy-loaded cart components
5
5
  * Use these for code-splitting cart sections
6
6
  */
7
- export const LazyCartItem = lazy(() => import('./CartItem').then((m) => ({ default: m.CartItem })));
7
+ export const LazyCartItem = lazyComponent(() =>
8
+ import('./CartItem').then((m) => ({ default: m.CartItem }))
9
+ );
8
10
 
9
- export const LazyCartSummary = lazy(() =>
11
+ export const LazyCartSummary = lazyComponent(() =>
10
12
  import('./CartSummary').then((m) => ({ default: m.CartSummary }))
11
13
  );
12
14
 
13
- export const LazySeoCartWidget = lazy(() =>
15
+ export const LazySeoCartWidget = lazyComponent(() =>
14
16
  import('./SeoCartWidget').then((m) => ({ default: m.SeoCartWidget }))
15
17
  );
@@ -1,4 +1,4 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
3
  /**
4
4
  * Lazy-loaded common components
@@ -7,22 +7,22 @@ import { lazy } from 'react';
7
7
  * NOTE: Skeleton components are sourced from @salla.sa/twilight-components-react
8
8
  * because they must render instantly during route transitions.
9
9
  */
10
- export const LazyBreadcrumb = lazy(() =>
10
+ export const LazyBreadcrumb = lazyComponent(() =>
11
11
  import('./Breadcrumb').then((m) => ({ default: m.Breadcrumb }))
12
12
  );
13
13
 
14
- export const LazyNoContent = lazy(() =>
14
+ export const LazyNoContent = lazyComponent(() =>
15
15
  import('./NoContent').then((m) => ({ default: m.NoContent }))
16
16
  );
17
17
 
18
- export const LazyRenderWhenVisible = lazy(() =>
18
+ export const LazyRenderWhenVisible = lazyComponent(() =>
19
19
  import('./RenderWhenVisible').then((m) => ({ default: m.RenderWhenVisible }))
20
20
  );
21
21
 
22
- export const LazyCurrencySymbol = lazy(() =>
22
+ export const LazyCurrencySymbol = lazyComponent(() =>
23
23
  import('./CurrencySymbol').then((m) => ({ default: m.CurrencySymbol }))
24
24
  );
25
25
 
26
- export const LazyErrorPage = lazy(() =>
26
+ export const LazyErrorPage = lazyComponent(() =>
27
27
  import('./ErrorPage').then((m) => ({ default: m.ErrorPage }))
28
28
  );
@@ -1,4 +1,4 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
3
  export { ProductsSlider as LazyProductsSlider } from './ProductsSlider';
4
4
  export { StoreFeatures as LazyStoreFeatures } from './StoreFeatures';
@@ -10,7 +10,7 @@ export { FeaturedProductsStyle3 as LazyFeaturedProductsStyle3 } from './Featured
10
10
  export { ParallaxBackground as LazyParallaxBackground } from './ParallaxBackground';
11
11
  export { PhotosSlider as LazyPhotosSlider } from './PhotosSlider';
12
12
  export { SquarePhotos as LazySquarePhotos } from './SquarePhotos';
13
- export const LazyTestimonials = lazy(() =>
13
+ export const LazyTestimonials = lazyComponent(() =>
14
14
  import('./Testimonials').then((m) => ({ default: m.Testimonials }))
15
15
  );
16
16
  export { Youtube as LazyYoutube } from './Youtube';
@@ -1,21 +1,22 @@
1
- import { lazy, Suspense } from 'react';
1
+ import { Suspense } from 'react';
2
2
  import { Header } from './Header';
3
3
  import { Footer } from './Footer';
4
4
  import type { LayoutProps } from '../../types';
5
5
  import { useTwilight } from '../../providers/twilight-context';
6
6
  import { useUser } from '../../hooks';
7
+ import { lazyComponent } from '../../utils/lazy-component';
7
8
 
8
- const SallaLoginModal = lazy(() =>
9
+ const SallaLoginModal = lazyComponent(() =>
9
10
  import('@salla.sa/twilight-components-react/login-modal').then((m) => ({
10
11
  default: m.SallaLoginModal,
11
12
  }))
12
13
  );
13
- const SallaScopes = lazy(() =>
14
+ const SallaScopes = lazyComponent(() =>
14
15
  import('@salla.sa/twilight-components-react/scopes').then((m) => ({
15
16
  default: m.SallaScopes,
16
17
  }))
17
18
  );
18
- const SallaOfferModal = lazy(() =>
19
+ const SallaOfferModal = lazyComponent(() =>
19
20
  import('@salla.sa/twilight-components-react/offer-modal').then((m) => ({
20
21
  default: m.SallaOfferModal,
21
22
  }))
@@ -1,25 +1,29 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
3
  /**
4
4
  * Lazy-loaded layout components
5
5
  * Use these for code-splitting layout sections
6
6
  */
7
- export const LazyHeader = lazy(() => import('./Header').then((m) => ({ default: m.Header })));
7
+ export const LazyHeader = lazyComponent(() =>
8
+ import('./Header').then((m) => ({ default: m.Header }))
9
+ );
8
10
 
9
- export const LazyFooter = lazy(() => import('./Footer').then((m) => ({ default: m.Footer })));
11
+ export const LazyFooter = lazyComponent(() =>
12
+ import('./Footer').then((m) => ({ default: m.Footer }))
13
+ );
10
14
 
11
- export const LazyCopyright = lazy(() =>
15
+ export const LazyCopyright = lazyComponent(() =>
12
16
  import('./Copyright').then((m) => ({ default: m.Copyright }))
13
17
  );
14
18
 
15
- export const LazyMasterLayout = lazy(() =>
19
+ export const LazyMasterLayout = lazyComponent(() =>
16
20
  import('./MasterLayout').then((m) => ({ default: m.MasterLayout }))
17
21
  );
18
22
 
19
- export const LazyWidgetHead = lazy(() =>
23
+ export const LazyWidgetHead = lazyComponent(() =>
20
24
  import('./WidgetHead').then((m) => ({ default: m.WidgetHead }))
21
25
  );
22
26
 
23
- export const LazyCustomerLayout = lazy(() =>
27
+ export const LazyCustomerLayout = lazyComponent(() =>
24
28
  import('./CustomerLayout').then((m) => ({ default: m.CustomerLayout }))
25
29
  );
@@ -1,8 +1,9 @@
1
- import { lazy, Suspense, useEffect, useState, type ReactElement } from 'react';
1
+ import { Suspense, useEffect, useState, type ReactElement } from 'react';
2
2
  import { editorFrame, FRAME_LOADED_ACTION, postToEditor, type EditorFrame } from './frame';
3
+ import { lazyComponent } from '../../utils/lazy-component';
3
4
 
4
5
  /** Off the shell chunk: only a store framed by the theme editor ever loads it. */
5
- const LazyLiveEditorBar = lazy(() =>
6
+ const LazyLiveEditorBar = lazyComponent(() =>
6
7
  import('./LiveEditorBar').then((m) => ({ default: m.LiveEditorBar }))
7
8
  );
8
9
 
@@ -1,10 +1,10 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
3
  /**
4
4
  * Lazy-loaded modal components
5
5
  * ImageModal is lazy-loaded since it's a standalone component.
6
6
  * Modal is kept eager because it uses compound component pattern.
7
7
  */
8
- export const LazyImageModal = lazy(() =>
8
+ export const LazyImageModal = lazyComponent(() =>
9
9
  import('./ImageModal').then((m) => ({ default: m.ImageModal }))
10
10
  );
@@ -1,11 +1,13 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
3
  /**
4
4
  * Lazy-loaded navigation components
5
5
  * Use these for code-splitting navigation sections
6
6
  */
7
- export const LazyMainMenu = lazy(() => import('./MainMenu').then((m) => ({ default: m.MainMenu })));
7
+ export const LazyMainMenu = lazyComponent(() =>
8
+ import('./MainMenu').then((m) => ({ default: m.MainMenu }))
9
+ );
8
10
 
9
- export const LazyMobileMenu = lazy(() =>
11
+ export const LazyMobileMenu = lazyComponent(() =>
10
12
  import('./MobileMenu').then((m) => ({ default: m.MobileMenu }))
11
13
  );
@@ -1,9 +1,9 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
- export const LazyProductDetails = lazy(() =>
3
+ export const LazyProductDetails = lazyComponent(() =>
4
4
  import('./ProductDetails').then((m) => ({ default: m.ProductDetails }))
5
5
  );
6
6
 
7
- export const LazyAddToCartForm = lazy(() =>
7
+ export const LazyAddToCartForm = lazyComponent(() =>
8
8
  import('./AddToCartForm').then((m) => ({ default: m.AddToCartForm }))
9
9
  );
@@ -1,13 +1,13 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
3
  /** Lazy-loaded StoreClosedNotification component. */
4
- export const LazyStoreClosedNotification = lazy(() =>
4
+ export const LazyStoreClosedNotification = lazyComponent(() =>
5
5
  import('./StoreClosedNotification').then((m) => ({
6
6
  default: m.StoreClosedNotification,
7
7
  }))
8
8
  );
9
9
 
10
10
  /** Lazy-loaded MaintenancePage: off the shell chunk, since almost no visit renders it. */
11
- export const LazyMaintenancePage = lazy(() =>
11
+ export const LazyMaintenancePage = lazyComponent(() =>
12
12
  import('./MaintenancePage').then((m) => ({ default: m.MaintenancePage }))
13
13
  );
@@ -1,11 +1,11 @@
1
- import { lazy } from 'react';
1
+ import { lazyComponent } from '../../utils/lazy-component';
2
2
 
3
3
  /** Lazy-loaded GoogleTagBody component. */
4
- export const LazyGoogleTagBody = lazy(() =>
4
+ export const LazyGoogleTagBody = lazyComponent(() =>
5
5
  import('./GoogleTag').then((m) => ({ default: m.GoogleTagBody }))
6
6
  );
7
7
 
8
8
  /** Lazy-loaded SiftSnippet component. */
9
- export const LazySiftSnippet = lazy(() =>
9
+ export const LazySiftSnippet = lazyComponent(() =>
10
10
  import('./SiftSnippet').then((m) => ({ default: m.SiftSnippet }))
11
11
  );
@@ -1,12 +1,13 @@
1
1
  import type { HeadDescriptor } from '../../../utils/head';
2
2
  import { buildHreflangAlternates } from '../../../utils/baseHead';
3
- import { lazy } from 'react';
3
+
4
4
  import { notificationsLoader } from './loader';
5
5
  import type { NotificationsPageProps } from './types';
6
6
  import type { TwilightContext } from '../../../twilight/context';
7
7
  import { RouteId } from '../../../router/route-ids';
8
+ import { lazyComponent } from '../../../utils/lazy-component';
8
9
 
9
- const LazyNotificationsPage = lazy(() =>
10
+ const LazyNotificationsPage = lazyComponent(() =>
10
11
  import('./NotificationsPage').then((m) => ({ default: m.NotificationsPage }))
11
12
  );
12
13
 
@@ -1,6 +1,6 @@
1
1
  import type { HeadDescriptor } from '../../../utils/head';
2
2
  import { buildHreflangAlternates } from '../../../utils/baseHead';
3
- import { lazy } from 'react';
3
+
4
4
  import { ordersLoader, orderSingleLoader } from './loader';
5
5
  import type { OrdersPageProps, OrderSinglePageProps, OrdersSearchParams } from './types';
6
6
  import type { IdParams } from '../../types';
@@ -8,8 +8,10 @@ import type { TwilightContext } from '../../../twilight/context';
8
8
  import { RouteId } from '../../../router/route-ids';
9
9
 
10
10
  // Lazy-load components for code-splitting
11
- const LazyOrdersPage = lazy(() => import('./OrdersPage').then((m) => ({ default: m.OrdersPage })));
12
- const LazyOrderSinglePage = lazy(() =>
11
+ const LazyOrdersPage = lazyComponent(() =>
12
+ import('./OrdersPage').then((m) => ({ default: m.OrdersPage }))
13
+ );
14
+ const LazyOrderSinglePage = lazyComponent(() =>
13
15
  import('./OrderSinglePage').then((m) => ({ default: m.OrderSinglePage }))
14
16
  );
15
17
 
@@ -22,6 +24,7 @@ export type {
22
24
  OrdersSearchParams,
23
25
  OrdersQuery,
24
26
  } from './types';
27
+ import { lazyComponent } from '../../../utils/lazy-component';
25
28
 
26
29
  async function ordersLoaderWithExtend(
27
30
  ctx: { search?: OrdersSearchParams; locale?: string; with_items?: boolean | number },
@@ -1,12 +1,13 @@
1
1
  import type { HeadDescriptor } from '../../../utils/head';
2
2
  import { buildHreflangAlternates } from '../../../utils/baseHead';
3
- import { lazy } from 'react';
3
+
4
4
  import { profileLoader } from './loader';
5
5
  import type { ProfilePageProps } from './types';
6
6
  import type { TwilightContext } from '../../../twilight/context';
7
7
  import { RouteId } from '../../../router/route-ids';
8
+ import { lazyComponent } from '../../../utils/lazy-component';
8
9
 
9
- const LazyProfilePage = lazy(() =>
10
+ const LazyProfilePage = lazyComponent(() =>
10
11
  import('./ProfilePage').then((m) => ({ default: m.ProfilePage }))
11
12
  );
12
13
 
@@ -1,12 +1,13 @@
1
1
  import type { HeadDescriptor } from '../../../utils/head';
2
2
  import { buildHreflangAlternates } from '../../../utils/baseHead';
3
- import { lazy } from 'react';
3
+
4
4
  import { settingsLoader } from './loader';
5
5
  import type { SettingsPageProps } from './types';
6
6
  import type { TwilightContext } from '../../../twilight/context';
7
7
  import { RouteId } from '../../../router/route-ids';
8
+ import { lazyComponent } from '../../../utils/lazy-component';
8
9
 
9
- const LazySettingsPage = lazy(() =>
10
+ const LazySettingsPage = lazyComponent(() =>
10
11
  import('./SettingsPage').then((m) => ({ default: m.SettingsPage }))
11
12
  );
12
13
 
@@ -1,13 +1,16 @@
1
1
  import type { HeadDescriptor } from '../../../utils/head';
2
2
  import { buildHreflangAlternates } from '../../../utils/baseHead';
3
- import { lazy } from 'react';
3
+
4
4
  import { walletLoader } from './loader';
5
5
  import type { WalletPageProps } from './types';
6
6
  import type { LoaderContext } from '../../types';
7
7
  import type { TwilightContext } from '../../../twilight/context';
8
8
  import { RouteId } from '../../../router/route-ids';
9
+ import { lazyComponent } from '../../../utils/lazy-component';
9
10
 
10
- const LazyWalletPage = lazy(() => import('./WalletPage').then((m) => ({ default: m.WalletPage })));
11
+ const LazyWalletPage = lazyComponent(() =>
12
+ import('./WalletPage').then((m) => ({ default: m.WalletPage }))
13
+ );
11
14
 
12
15
  export const WalletPage = LazyWalletPage;
13
16
  export { walletLoader } from './loader';
@@ -1,13 +1,14 @@
1
1
  import type { HeadDescriptor } from '../../../utils/head';
2
2
  import { buildHreflangAlternates } from '../../../utils/baseHead';
3
- import { lazy } from 'react';
3
+
4
4
  import { wishlistLoader } from './loader';
5
5
  import type { WishlistPageProps } from './types';
6
6
  import type { LoaderContext } from '../../types';
7
7
  import type { TwilightContext } from '../../../twilight/context';
8
8
  import { RouteId } from '../../../router/route-ids';
9
+ import { lazyComponent } from '../../../utils/lazy-component';
9
10
 
10
- const LazyWishlistPage = lazy(() =>
11
+ const LazyWishlistPage = lazyComponent(() =>
11
12
  import('./WishlistPage').then((m) => ({ default: m.WishlistPage }))
12
13
  );
13
14
 
@@ -1,6 +1,6 @@
1
1
  import type { HeadDescriptor } from '../../utils/head';
2
2
  import { buildHreflangAlternates } from '../../utils/baseHead';
3
- import { lazy } from 'react';
3
+
4
4
  import {
5
5
  blogLoader,
6
6
  blogSingleLoader,
@@ -27,17 +27,19 @@ import type { IdParams, SlugIdParams } from '../types';
27
27
  import type { TwilightContext } from '../../twilight/context';
28
28
  import { RouteId } from '../../router/route-ids';
29
29
 
30
- const LazyBlogPage = lazy(() => import('./BlogPage').then((m) => ({ default: m.BlogPage })));
31
- const LazyBlogSinglePage = lazy(() =>
30
+ const LazyBlogPage = lazyComponent(() =>
31
+ import('./BlogPage').then((m) => ({ default: m.BlogPage }))
32
+ );
33
+ const LazyBlogSinglePage = lazyComponent(() =>
32
34
  import('./BlogSinglePage').then((m) => ({ default: m.BlogSinglePage }))
33
35
  );
34
- const LazyBlogAuthorPage = lazy(() =>
36
+ const LazyBlogAuthorPage = lazyComponent(() =>
35
37
  import('./BlogAuthorPage').then((m) => ({ default: m.BlogAuthorPage }))
36
38
  );
37
- const LazyBlogCategoryPage = lazy(() =>
39
+ const LazyBlogCategoryPage = lazyComponent(() =>
38
40
  import('./BlogCategoryPage').then((m) => ({ default: m.BlogCategoryPage }))
39
41
  );
40
- const LazyBlogTagPage = lazy(() =>
42
+ const LazyBlogTagPage = lazyComponent(() =>
41
43
  import('./BlogTagPage').then((m) => ({ default: m.BlogTagPage }))
42
44
  );
43
45
 
@@ -53,6 +55,7 @@ export {
53
55
  blogCategoryLoader,
54
56
  blogTagLoader,
55
57
  } from './loader';
58
+ import { lazyComponent } from '../../utils/lazy-component';
56
59
  export type {
57
60
  BlogAuthorLoaderData,
58
61
  BlogCategoryLoaderData,
@@ -1,13 +1,16 @@
1
1
  import type { HeadDescriptor } from '../../utils/head';
2
2
  import { buildHreflangAlternates } from '../../utils/baseHead';
3
- import { lazy } from 'react';
3
+
4
4
  import { brandsLoader } from './loader';
5
5
  import type { BrandsPageProps } from './types';
6
6
  import type { TwilightContext } from '../../twilight/context';
7
7
  import { RouteId } from '../../router/route-ids';
8
+ import { lazyComponent } from '../../utils/lazy-component';
8
9
 
9
10
  // Lazy-load components for code-splitting
10
- const LazyBrandsPage = lazy(() => import('./BrandsPage').then((m) => ({ default: m.BrandsPage })));
11
+ const LazyBrandsPage = lazyComponent(() =>
12
+ import('./BrandsPage').then((m) => ({ default: m.BrandsPage }))
13
+ );
11
14
 
12
15
  export const BrandsPage = LazyBrandsPage;
13
16
  export { brandsLoader };