@salla.sa/twilight-theme-engine 1.0.72 → 1.0.74
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.
- package/dist/{AddToCartForm-5KE3LZSE.js → AddToCartForm-H2PRWRO7.js} +8 -6
- package/dist/AddToCartForm-H2PRWRO7.js.map +1 -0
- package/dist/{BlogAuthorPage-ZE2H4IIQ.js → BlogAuthorPage-QDGBWGGT.js} +22 -22
- package/dist/{BlogAuthorPage-ZE2H4IIQ.js.map → BlogAuthorPage-QDGBWGGT.js.map} +1 -1
- package/dist/{BlogCategoryPage-Y5GBZV2E.js → BlogCategoryPage-BK4OL6T4.js} +22 -22
- package/dist/{BlogCategoryPage-Y5GBZV2E.js.map → BlogCategoryPage-BK4OL6T4.js.map} +1 -1
- package/dist/{BlogPage-WJ46QFWA.js → BlogPage-5LLIKUOQ.js} +20 -20
- package/dist/{BlogPage-WJ46QFWA.js.map → BlogPage-5LLIKUOQ.js.map} +1 -1
- package/dist/{BlogSinglePage-TWAW5FYE.js → BlogSinglePage-3BDXSFTY.js} +20 -20
- package/dist/{BlogSinglePage-TWAW5FYE.js.map → BlogSinglePage-3BDXSFTY.js.map} +1 -1
- package/dist/{BlogTagPage-GDSNBEUM.js → BlogTagPage-S77JPNEZ.js} +22 -22
- package/dist/{BlogTagPage-GDSNBEUM.js.map → BlogTagPage-S77JPNEZ.js.map} +1 -1
- package/dist/{BrandsPage-S5J5LPBJ.js → BrandsPage-2TJALMEG.js} +21 -21
- package/dist/{BrandsPage-S5J5LPBJ.js.map → BrandsPage-2TJALMEG.js.map} +1 -1
- package/dist/{Breadcrumb-JID6FMRH.js → Breadcrumb-SXC43X3D.js} +20 -20
- package/dist/{Breadcrumb-JID6FMRH.js.map → Breadcrumb-SXC43X3D.js.map} +1 -1
- package/dist/{CartItem-65SS67V5.js → CartItem-R6BYAM4O.js} +20 -20
- package/dist/{CartItem-65SS67V5.js.map → CartItem-R6BYAM4O.js.map} +1 -1
- package/dist/{CartSummary-N4JVOPO5.js → CartSummary-YQ2RMHID.js} +20 -20
- package/dist/{CartSummary-N4JVOPO5.js.map → CartSummary-YQ2RMHID.js.map} +1 -1
- package/dist/{Copyright-KMWFNZEF.js → Copyright-5VLQICDY.js} +3 -3
- package/dist/{Copyright-KMWFNZEF.js.map → Copyright-5VLQICDY.js.map} +1 -1
- package/dist/{CustomerLayout-RFFISOFD.js → CustomerLayout-DUT7BEKW.js} +20 -20
- package/dist/{CustomerLayout-RFFISOFD.js.map → CustomerLayout-DUT7BEKW.js.map} +1 -1
- package/dist/{Footer-NDSP2GVD.js → Footer-J2KXYFB3.js} +20 -20
- package/dist/{Footer-NDSP2GVD.js.map → Footer-J2KXYFB3.js.map} +1 -1
- package/dist/{Header-524EF77Y.js → Header-GZQINLEQ.js} +7 -7
- package/dist/{Header-524EF77Y.js.map → Header-GZQINLEQ.js.map} +1 -1
- package/dist/{LoyaltyPage-4BTICEVT.js → LoyaltyPage-IXLUF6MF.js} +20 -20
- package/dist/{LoyaltyPage-4BTICEVT.js.map → LoyaltyPage-IXLUF6MF.js.map} +1 -1
- package/dist/{LoyaltyPointsPage-D6S4DMGL.js → LoyaltyPointsPage-RDNXI5VY.js} +3 -3
- package/dist/{LoyaltyPointsPage-D6S4DMGL.js.map → LoyaltyPointsPage-RDNXI5VY.js.map} +1 -1
- package/dist/{MainMenu-KXNWUVAF.js → MainMenu-KNJDJFJX.js} +7 -7
- package/dist/{MainMenu-KXNWUVAF.js.map → MainMenu-KNJDJFJX.js.map} +1 -1
- package/dist/{MasterLayout-4PV6RJJN.js → MasterLayout-MFL2NYPF.js} +20 -20
- package/dist/{MasterLayout-4PV6RJJN.js.map → MasterLayout-MFL2NYPF.js.map} +1 -1
- package/dist/{MobileMenu-VJJ7BG56.js → MobileMenu-RXLYUAWL.js} +21 -21
- package/dist/{MobileMenu-VJJ7BG56.js.map → MobileMenu-RXLYUAWL.js.map} +1 -1
- package/dist/{NotificationsPage-PCWYS2WC.js → NotificationsPage-QSF7S2PD.js} +20 -20
- package/dist/{NotificationsPage-PCWYS2WC.js.map → NotificationsPage-QSF7S2PD.js.map} +1 -1
- package/dist/{OrderSinglePage-6MS5Q5GD.js → OrderSinglePage-CWBHU2C6.js} +28 -23
- package/dist/OrderSinglePage-CWBHU2C6.js.map +1 -0
- package/dist/{OrdersPage-UBGWPLRU.js → OrdersPage-L76IEAXR.js} +20 -20
- package/dist/{OrdersPage-UBGWPLRU.js.map → OrdersPage-L76IEAXR.js.map} +1 -1
- package/dist/{PageSingle-YFIFFSON.js → PageSingle-BUAZBPIQ.js} +6 -6
- package/dist/{PageSingle-YFIFFSON.js.map → PageSingle-BUAZBPIQ.js.map} +1 -1
- package/dist/{ProductDetails-PYWNF2YH.js → ProductDetails-MPNSWRTQ.js} +15 -7
- package/dist/ProductDetails-MPNSWRTQ.js.map +1 -0
- package/dist/{ProfilePage-F72TLSO5.js → ProfilePage-I72265CD.js} +20 -20
- package/dist/{ProfilePage-F72TLSO5.js.map → ProfilePage-I72265CD.js.map} +1 -1
- package/dist/ReviewsPage-M5GNHNZG.js +18 -0
- package/dist/ReviewsPage-M5GNHNZG.js.map +1 -0
- package/dist/{SeoCartWidget-TK2BVDFT.js → SeoCartWidget-KV3T3BO7.js} +20 -20
- package/dist/{SeoCartWidget-TK2BVDFT.js.map → SeoCartWidget-KV3T3BO7.js.map} +1 -1
- package/dist/{SettingsPage-4W5YIWPU.js → SettingsPage-3F5HZNXX.js} +20 -20
- package/dist/{SettingsPage-4W5YIWPU.js.map → SettingsPage-3F5HZNXX.js.map} +1 -1
- package/dist/{StoreClosedNotification-IV2JTVDU.js → StoreClosedNotification-65QIOIAM.js} +21 -21
- package/dist/{StoreClosedNotification-IV2JTVDU.js.map → StoreClosedNotification-65QIOIAM.js.map} +1 -1
- package/dist/{TestimonialsPage-YOQJQ2HD.js → TestimonialsPage-5U7PH4TT.js} +6 -6
- package/dist/{TestimonialsPage-YOQJQ2HD.js.map → TestimonialsPage-5U7PH4TT.js.map} +1 -1
- package/dist/{ThankYouPage-CRSSRVY7.js → ThankYouPage-HFUTJCRT.js} +20 -20
- package/dist/{ThankYouPage-CRSSRVY7.js.map → ThankYouPage-HFUTJCRT.js.map} +1 -1
- package/dist/{WalletPage-26HBCIHR.js → WalletPage-KURO6WSP.js} +21 -21
- package/dist/{WalletPage-26HBCIHR.js.map → WalletPage-KURO6WSP.js.map} +1 -1
- package/dist/{WishlistPage-AZ3DGIYV.js → WishlistPage-RLUK4JRD.js} +22 -22
- package/dist/{WishlistPage-AZ3DGIYV.js.map → WishlistPage-RLUK4JRD.js.map} +1 -1
- package/dist/api/apps.js +4 -4
- package/dist/api/blog.js +6 -6
- package/dist/api/brands.js +6 -6
- package/dist/api/cart.d.ts +1 -1
- package/dist/api/cart.d.ts.map +1 -1
- package/dist/api/cart.js +6 -6
- package/dist/api/category.js +6 -6
- package/dist/api/client.d.ts +6 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +3 -3
- package/dist/api/home.js +4 -4
- package/dist/api/loyalty.js +6 -6
- package/dist/api/menu.js +4 -4
- package/dist/api/notification.js +4 -4
- package/dist/api/order.js +6 -6
- package/dist/api/page.js +6 -6
- package/dist/api/product.d.ts +20 -0
- package/dist/api/product.d.ts.map +1 -1
- package/dist/api/product.js +6 -6
- package/dist/api/profile.js +3 -3
- package/dist/api/store.d.ts +3 -1
- package/dist/api/store.d.ts.map +1 -1
- package/dist/api/store.js +4 -4
- package/dist/api/translations.js +4 -4
- package/dist/api/user.js +4 -4
- package/dist/api/wallet.js +4 -4
- package/dist/api/wishlist.js +7 -7
- package/dist/{chunk-3EE62REP.js → chunk-2OYXPNCE.js} +3 -3
- package/dist/{chunk-3EE62REP.js.map → chunk-2OYXPNCE.js.map} +1 -1
- package/dist/{chunk-YLSG4MEK.js → chunk-2ZQKAGSZ.js} +4 -4
- package/dist/{chunk-YLSG4MEK.js.map → chunk-2ZQKAGSZ.js.map} +1 -1
- package/dist/{chunk-RO6KBURF.js → chunk-3EBAXWBJ.js} +7 -6
- package/dist/chunk-3EBAXWBJ.js.map +1 -0
- package/dist/{chunk-4S3XHNUG.js → chunk-3EHECJ7M.js} +7 -6
- package/dist/chunk-3EHECJ7M.js.map +1 -0
- package/dist/{chunk-VFYT2VWC.js → chunk-3QT7JMAD.js} +13 -4
- package/dist/chunk-3QT7JMAD.js.map +1 -0
- package/dist/{chunk-OYP5CGHU.js → chunk-3TJKB3WR.js} +3 -3
- package/dist/{chunk-OYP5CGHU.js.map → chunk-3TJKB3WR.js.map} +1 -1
- package/dist/{chunk-WSXRUOI2.js → chunk-4VWWIA4M.js} +4 -4
- package/dist/{chunk-WSXRUOI2.js.map → chunk-4VWWIA4M.js.map} +1 -1
- package/dist/{chunk-DIVEHHMD.js → chunk-4YVGMXG7.js} +3 -3
- package/dist/{chunk-DIVEHHMD.js.map → chunk-4YVGMXG7.js.map} +1 -1
- package/dist/{chunk-5AFTFN72.js → chunk-5NUDOT33.js} +3 -3
- package/dist/{chunk-5AFTFN72.js.map → chunk-5NUDOT33.js.map} +1 -1
- package/dist/{chunk-MEPYG77L.js → chunk-6I4LWF5Y.js} +3 -3
- package/dist/{chunk-MEPYG77L.js.map → chunk-6I4LWF5Y.js.map} +1 -1
- package/dist/{chunk-JZ7BOB4G.js → chunk-6KVB2WHE.js} +4 -4
- package/dist/{chunk-JZ7BOB4G.js.map → chunk-6KVB2WHE.js.map} +1 -1
- package/dist/{chunk-BVSJPBJ6.js → chunk-6WI7R2BD.js} +14 -3
- package/dist/chunk-6WI7R2BD.js.map +1 -0
- package/dist/{chunk-BD4V56PZ.js → chunk-BLWLKRKH.js} +59 -28
- package/dist/chunk-BLWLKRKH.js.map +1 -0
- package/dist/{chunk-J427UFSZ.js → chunk-CJDAZQV6.js} +6 -6
- package/dist/{chunk-J427UFSZ.js.map → chunk-CJDAZQV6.js.map} +1 -1
- package/dist/{chunk-OGVUFMLX.js → chunk-D2T6246Q.js} +3 -3
- package/dist/{chunk-OGVUFMLX.js.map → chunk-D2T6246Q.js.map} +1 -1
- package/dist/chunk-E5O5ICIY.js +40 -0
- package/dist/chunk-E5O5ICIY.js.map +1 -0
- package/dist/{chunk-RSVAPXXI.js → chunk-E7EBWXCA.js} +23 -15
- package/dist/chunk-E7EBWXCA.js.map +1 -0
- package/dist/{chunk-LOMFLRJI.js → chunk-FIFNYC7B.js} +7 -7
- package/dist/{chunk-LOMFLRJI.js.map → chunk-FIFNYC7B.js.map} +1 -1
- package/dist/{chunk-7VYI6EF4.js → chunk-FVDUTMH6.js} +4 -4
- package/dist/{chunk-7VYI6EF4.js.map → chunk-FVDUTMH6.js.map} +1 -1
- package/dist/{chunk-L5K7VBOH.js → chunk-GFSTJ2PF.js} +3 -3
- package/dist/{chunk-L5K7VBOH.js.map → chunk-GFSTJ2PF.js.map} +1 -1
- package/dist/{chunk-MFR2WJBJ.js → chunk-IDY6OEXA.js} +8 -8
- package/dist/{chunk-MFR2WJBJ.js.map → chunk-IDY6OEXA.js.map} +1 -1
- package/dist/{chunk-EXBH6RGD.js → chunk-IK57LAIA.js} +19 -5
- package/dist/chunk-IK57LAIA.js.map +1 -0
- package/dist/{chunk-B5FDWE4U.js → chunk-JAPH535M.js} +4 -4
- package/dist/{chunk-B5FDWE4U.js.map → chunk-JAPH535M.js.map} +1 -1
- package/dist/{chunk-3IHFA2X5.js → chunk-JEG5WPNT.js} +3 -3
- package/dist/{chunk-3IHFA2X5.js.map → chunk-JEG5WPNT.js.map} +1 -1
- package/dist/{chunk-34VXOUQT.js → chunk-JHCLU3PS.js} +8 -8
- package/dist/{chunk-34VXOUQT.js.map → chunk-JHCLU3PS.js.map} +1 -1
- package/dist/{chunk-N56EGFBC.js → chunk-JNZLH2OR.js} +58 -9
- package/dist/chunk-JNZLH2OR.js.map +1 -0
- package/dist/{chunk-3CYIB6BL.js → chunk-KO3HG5GQ.js} +3 -3
- package/dist/{chunk-3CYIB6BL.js.map → chunk-KO3HG5GQ.js.map} +1 -1
- package/dist/{chunk-MISI3T6V.js → chunk-M6BXZTRK.js} +3 -3
- package/dist/{chunk-MISI3T6V.js.map → chunk-M6BXZTRK.js.map} +1 -1
- package/dist/{chunk-NZOXKPCW.js → chunk-MEMB7JYJ.js} +4 -4
- package/dist/{chunk-NZOXKPCW.js.map → chunk-MEMB7JYJ.js.map} +1 -1
- package/dist/{chunk-SDIQHTDG.js → chunk-OKNJFS44.js} +4 -4
- package/dist/{chunk-SDIQHTDG.js.map → chunk-OKNJFS44.js.map} +1 -1
- package/dist/{chunk-WNGLJJVH.js → chunk-OQA2MKZA.js} +30 -17
- package/dist/chunk-OQA2MKZA.js.map +1 -0
- package/dist/{chunk-ZGHRSRDO.js → chunk-OUW6WESU.js} +3 -2
- package/dist/chunk-OUW6WESU.js.map +1 -0
- package/dist/{chunk-YKFGUVF7.js → chunk-P2YAPWMS.js} +5 -4
- package/dist/chunk-P2YAPWMS.js.map +1 -0
- package/dist/{chunk-QVJDYSCT.js → chunk-P4GOLSA2.js} +3 -3
- package/dist/{chunk-QVJDYSCT.js.map → chunk-P4GOLSA2.js.map} +1 -1
- package/dist/{chunk-5DPR7GWH.js → chunk-PNM4NP4U.js} +3 -3
- package/dist/{chunk-5DPR7GWH.js.map → chunk-PNM4NP4U.js.map} +1 -1
- package/dist/{chunk-52ETYODY.js → chunk-R72Q5Z6M.js} +4 -4
- package/dist/{chunk-52ETYODY.js.map → chunk-R72Q5Z6M.js.map} +1 -1
- package/dist/{chunk-HBTIZWT2.js → chunk-RYSJOCHI.js} +3 -3
- package/dist/{chunk-HBTIZWT2.js.map → chunk-RYSJOCHI.js.map} +1 -1
- package/dist/{chunk-XVNXXF67.js → chunk-TWVTIAMO.js} +3 -3
- package/dist/{chunk-XVNXXF67.js.map → chunk-TWVTIAMO.js.map} +1 -1
- package/dist/{chunk-2ALN2BPM.js → chunk-VYCNB6VN.js} +3 -3
- package/dist/{chunk-2ALN2BPM.js.map → chunk-VYCNB6VN.js.map} +1 -1
- package/dist/chunk-WG47KLHH.js +14 -0
- package/dist/{chunk-DRMTTDZU.js.map → chunk-WG47KLHH.js.map} +1 -1
- package/dist/{chunk-IO77BQGI.js → chunk-WHGOO4A2.js} +6 -6
- package/dist/{chunk-IO77BQGI.js.map → chunk-WHGOO4A2.js.map} +1 -1
- package/dist/{chunk-25FWAL3O.js → chunk-WS3WQ3OL.js} +4 -4
- package/dist/{chunk-25FWAL3O.js.map → chunk-WS3WQ3OL.js.map} +1 -1
- package/dist/{chunk-UAY6LTWB.js → chunk-XN7TVPAU.js} +4 -4
- package/dist/{chunk-UAY6LTWB.js.map → chunk-XN7TVPAU.js.map} +1 -1
- package/dist/{chunk-LPQFTXBB.js → chunk-Y5OGXJLH.js} +10 -3
- package/dist/chunk-Y5OGXJLH.js.map +1 -0
- package/dist/{chunk-R5MZV6KW.js → chunk-YUGZDWD6.js} +4 -4
- package/dist/{chunk-R5MZV6KW.js.map → chunk-YUGZDWD6.js.map} +1 -1
- package/dist/components/cart/index.js +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/drawer/index.js +18 -18
- package/dist/components/home/ReorderProducts.d.ts +7 -0
- package/dist/components/home/ReorderProducts.d.ts.map +1 -0
- package/dist/components/home/SquarePhotos.d.ts +2 -1
- package/dist/components/home/SquarePhotos.d.ts.map +1 -1
- package/dist/components/home/index.d.ts +2 -0
- package/dist/components/home/index.d.ts.map +1 -1
- package/dist/components/home/index.js +22 -22
- package/dist/components/home/reorder-hooks.d.ts +6 -0
- package/dist/components/home/reorder-hooks.d.ts.map +1 -0
- package/dist/components/layout/index.js +1 -1
- package/dist/components/product/AddToCartForm.d.ts.map +1 -1
- package/dist/components/product/ProductDetails.d.ts.map +1 -1
- package/dist/components/product/index.js +19 -19
- package/dist/components/snippets/AppsSnippets.d.ts +2 -0
- package/dist/components/snippets/AppsSnippets.d.ts.map +1 -1
- package/dist/components/store/index.js +20 -20
- package/dist/components/toast/index.js +4 -4
- package/dist/document-class-5FTU6EZE.js +25 -0
- package/dist/{document-class-FIAXRNEM.js.map → document-class-5FTU6EZE.js.map} +1 -1
- package/dist/hooks/index.js +18 -18
- package/dist/hooks/useComments.js +3 -3
- package/dist/hooks/useCoupon.d.ts +0 -41
- package/dist/hooks/useCoupon.d.ts.map +1 -1
- package/dist/hooks/useCoupon.js +3 -1
- package/dist/hooks/useGtm.js +18 -18
- package/dist/hooks/useMoney.js +18 -18
- package/dist/hooks/useProduct.js +3 -3
- package/dist/hooks/useStore.js +18 -18
- package/dist/hooks/useUser.js +5 -5
- package/dist/hooks/useWishlist.d.ts.map +1 -1
- package/dist/hooks/useWishlist.js +4 -1
- package/dist/index.js +18 -18
- package/dist/native-app/index.js +3 -3
- package/dist/navigation-CDITJYUW.js +13 -0
- package/dist/{navigation-P3GZOWUU.js.map → navigation-CDITJYUW.js.map} +1 -1
- package/dist/{navigation-TA3I3XEC.js → navigation-WCGV6RUK.js} +5 -5
- package/dist/{navigation-TA3I3XEC.js.map → navigation-WCGV6RUK.js.map} +1 -1
- package/dist/{not-found-SCNJYKWP.js → not-found-EL2XQE5D.js} +59 -33
- package/dist/not-found-EL2XQE5D.js.map +1 -0
- package/dist/providers/index.js +18 -18
- package/dist/providers/twilight-init.d.ts.map +1 -1
- package/dist/router/route-ids.d.ts +1 -0
- package/dist/router/route-ids.d.ts.map +1 -1
- package/dist/routes/account/orders/single/OrderHeader.d.ts.map +1 -1
- package/dist/routes/account/orders.js +7 -7
- package/dist/routes/account.js +16 -16
- package/dist/routes/blog.js +11 -11
- package/dist/routes/brands.js +7 -7
- package/dist/routes/cart.js +26 -26
- package/dist/routes/home/HomePage.d.ts.map +1 -1
- package/dist/routes/home.js +23 -23
- package/dist/routes/index.d.ts +1 -1
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +4 -4
- package/dist/routes/loyalty.js +8 -8
- package/dist/routes/page.js +7 -7
- package/dist/routes/product/index.d.ts.map +1 -1
- package/dist/routes/product-listing/ProductListPage.d.ts.map +1 -1
- package/dist/routes/product-listing/loader.d.ts.map +1 -1
- package/dist/routes/product-listing/types.d.ts +1 -1
- package/dist/routes/product-listing/types.d.ts.map +1 -1
- package/dist/routes/product-listing.js +205 -184
- package/dist/routes/product-listing.js.map +1 -1
- package/dist/routes/product-short-link.d.ts +9 -5
- package/dist/routes/product-short-link.d.ts.map +1 -1
- package/dist/routes/product.js +23 -23
- package/dist/routes/product.js.map +1 -1
- package/dist/routes/seo-redirects.js +4 -4
- package/dist/routes/testimonials/ReviewsPage.d.ts +3 -0
- package/dist/routes/testimonials/ReviewsPage.d.ts.map +1 -0
- package/dist/routes/testimonials/index.d.ts +15 -3
- package/dist/routes/testimonials/index.d.ts.map +1 -1
- package/dist/routes/testimonials/loader.d.ts +3 -1
- package/dist/routes/testimonials/loader.d.ts.map +1 -1
- package/dist/routes/testimonials/types.d.ts +3 -0
- package/dist/routes/testimonials/types.d.ts.map +1 -1
- package/dist/routes/testimonials.js +38 -3
- package/dist/routes/testimonials.js.map +1 -1
- package/dist/routes/thank-you.js +7 -7
- package/dist/skeleton.js +23 -23
- package/dist/tanstack/document-class.d.ts.map +1 -1
- package/dist/tanstack/router.d.ts.map +1 -1
- package/dist/tanstack.js +16 -16
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/salla-sdk.d.ts +4 -0
- package/dist/types/salla-sdk.d.ts.map +1 -1
- package/dist/utils/cookies.d.ts +5 -0
- package/dist/utils/cookies.d.ts.map +1 -1
- package/dist/utils/index.js +5 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/sdk-events.d.ts +6 -0
- package/dist/utils/sdk-events.d.ts.map +1 -1
- package/dist/vite/adapters/tanstack.adapter.d.ts.map +1 -1
- package/dist/vite/index.js +83 -8
- package/dist/vite/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/AddToCartForm-5KE3LZSE.js.map +0 -1
- package/dist/OrderSinglePage-6MS5Q5GD.js.map +0 -1
- package/dist/ProductDetails-PYWNF2YH.js.map +0 -1
- package/dist/chunk-4S3XHNUG.js.map +0 -1
- package/dist/chunk-5ZR2HKZ7.js +0 -14
- package/dist/chunk-5ZR2HKZ7.js.map +0 -1
- package/dist/chunk-BD4V56PZ.js.map +0 -1
- package/dist/chunk-BVSJPBJ6.js.map +0 -1
- package/dist/chunk-DRMTTDZU.js +0 -14
- package/dist/chunk-EXBH6RGD.js.map +0 -1
- package/dist/chunk-LPQFTXBB.js.map +0 -1
- package/dist/chunk-N56EGFBC.js.map +0 -1
- package/dist/chunk-RO6KBURF.js.map +0 -1
- package/dist/chunk-RSVAPXXI.js.map +0 -1
- package/dist/chunk-VFYT2VWC.js.map +0 -1
- package/dist/chunk-WNGLJJVH.js.map +0 -1
- package/dist/chunk-YKFGUVF7.js.map +0 -1
- package/dist/chunk-ZGHRSRDO.js.map +0 -1
- package/dist/document-class-FIAXRNEM.js +0 -25
- package/dist/navigation-P3GZOWUU.js +0 -13
- package/dist/not-found-SCNJYKWP.js.map +0 -1
package/dist/routes/loyalty.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { loyalty } from '../chunk-
|
|
1
|
+
import { loyalty } from '../chunk-WS3WQ3OL.js';
|
|
2
2
|
import { buildHreflangAlternates } from '../chunk-TZ3E5BN4.js';
|
|
3
|
-
import { unauthorized, orUnauthorized, redirect } from '../chunk-
|
|
4
|
-
import { RouteId } from '../chunk-
|
|
5
|
-
import { getAuthToken } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
3
|
+
import { unauthorized, orUnauthorized, redirect } from '../chunk-OKNJFS44.js';
|
|
4
|
+
import { RouteId } from '../chunk-OUW6WESU.js';
|
|
5
|
+
import { getAuthToken } from '../chunk-IK57LAIA.js';
|
|
6
|
+
import '../chunk-P4GOLSA2.js';
|
|
7
|
+
import '../chunk-Y5OGXJLH.js';
|
|
8
8
|
import { getTwilightContext } from '../chunk-N2S25NXP.js';
|
|
9
9
|
import { FALLBACK_LOCALE } from '../chunk-T72DAX7R.js';
|
|
10
10
|
import '../chunk-DF6FBKDN.js';
|
|
@@ -57,10 +57,10 @@ async function loyaltyPointsLoader(locale) {
|
|
|
57
57
|
|
|
58
58
|
// src/routes/loyalty/index.tsx
|
|
59
59
|
var LazyLoyaltyPage = lazy(
|
|
60
|
-
() => import('../LoyaltyPage-
|
|
60
|
+
() => import('../LoyaltyPage-IXLUF6MF.js').then((m) => ({ default: m.LoyaltyPage }))
|
|
61
61
|
);
|
|
62
62
|
var LazyLoyaltyPointsPage = lazy(
|
|
63
|
-
() => import('../LoyaltyPointsPage-
|
|
63
|
+
() => import('../LoyaltyPointsPage-RDNXI5VY.js').then((m) => ({ default: m.LoyaltyPointsPage }))
|
|
64
64
|
);
|
|
65
65
|
var LoyaltyPage = LazyLoyaltyPage;
|
|
66
66
|
var LoyaltyPointsPage = LazyLoyaltyPointsPage;
|
package/dist/routes/page.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { page } from '../chunk-
|
|
1
|
+
import { page } from '../chunk-6KVB2WHE.js';
|
|
2
2
|
import { buildHreflangAlternates } from '../chunk-TZ3E5BN4.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import { RouteId } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-OKNJFS44.js';
|
|
4
|
+
import { RouteId } from '../chunk-OUW6WESU.js';
|
|
5
|
+
import '../chunk-IK57LAIA.js';
|
|
6
|
+
import '../chunk-P4GOLSA2.js';
|
|
7
|
+
import '../chunk-Y5OGXJLH.js';
|
|
8
8
|
import '../chunk-N2S25NXP.js';
|
|
9
9
|
import '../chunk-T72DAX7R.js';
|
|
10
10
|
import '../chunk-DF6FBKDN.js';
|
|
@@ -28,7 +28,7 @@ async function pageSingleLoader({ params }) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// src/routes/page/index.tsx
|
|
31
|
-
var LazyPageSingle = lazy(() => import('../PageSingle-
|
|
31
|
+
var LazyPageSingle = lazy(() => import('../PageSingle-BUAZBPIQ.js').then((m) => ({ default: m.PageSingle })));
|
|
32
32
|
var PageSingleLazy = LazyPageSingle;
|
|
33
33
|
async function loader(ctx, extend) {
|
|
34
34
|
const data = await pageSingleLoader({ params: ctx.params });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/product/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/product/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,iBAAe,MAAM,CACnB,GAAG,EAAE;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EAC1C,MAAM,CAAC,EAAE,CACP,IAAI,EAAE,gBAAgB,EACtB,GAAG,EAAE;IAAE,MAAM,EAAE,QAAQ,CAAA;CAAE,KACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9D,OAAO,CAAC,gBAAgB,CAAC,CAQ3B;AAED,iBAAS,IAAI,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,GAAG,cAAc,CAwH1E;AAED,eAAO,MAAM,OAAO;;;;;CAKV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductListPage.d.ts","sourceRoot":"","sources":["../../../src/routes/product-listing/ProductListPage.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQrD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,UAAU,EACV,OAAO,GACR,EAAE,qBAAqB,+
|
|
1
|
+
{"version":3,"file":"ProductListPage.d.ts","sourceRoot":"","sources":["../../../src/routes/product-listing/ProductListPage.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQrD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,UAAU,EACV,OAAO,GACR,EAAE,qBAAqB,+BA0RvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/routes/product-listing/loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAqB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/routes/product-listing/loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAqB,MAAM,SAAS,CAAC;AAuClG,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,wBAAwB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,CA4ChC"}
|
|
@@ -10,7 +10,7 @@ export type { Category } from '../../types';
|
|
|
10
10
|
export type { Brand } from '../brands/types';
|
|
11
11
|
export type { RoutePagination } from '../types';
|
|
12
12
|
/** Unified source type matching API sources directly */
|
|
13
|
-
export type ProductListSource = 'categories' | 'latest' | 'sales' | 'offers' | 'search' | 'tags' | 'brands';
|
|
13
|
+
export type ProductListSource = 'categories' | 'latest' | 'sales' | 'offers' | 'search' | 'tags' | 'brands' | 'reorder';
|
|
14
14
|
/** Tag entity - products can be filtered by tags */
|
|
15
15
|
export interface ProductListTag {
|
|
16
16
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/routes/product-listing/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGhD,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMhD,wDAAwD;AACxD,MAAM,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/routes/product-listing/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGhD,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMhD,wDAAwD;AACxD,MAAM,MAAM,iBAAiB,GAC3B,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE1F,oDAAoD;AACpD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,4CAA4C;AAC5C,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,cAAc,GAAG,KAAK,CAAC;AAMlE,2BAA2B;AAC3B,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,aAAa,EAAE,UAAU,EAAE,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED,sFAAsF;AACtF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wDAAwD;AACxD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,uBAAuB,CAAC;IAChC,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAMD,MAAM,WAAW,uBAAuB;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChE;AAMD,mDAAmD;AACnD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB"}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { sortOptions } from '../chunk-6Z4MOC4S.js';
|
|
2
|
-
import { category } from '../chunk-
|
|
3
|
-
import { brand } from '../chunk-
|
|
2
|
+
import { category } from '../chunk-2ZQKAGSZ.js';
|
|
3
|
+
import { brand } from '../chunk-4VWWIA4M.js';
|
|
4
4
|
import { buildHreflangAlternates } from '../chunk-TZ3E5BN4.js';
|
|
5
|
-
import { LazyTestimonials } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import { product } from '../chunk-
|
|
5
|
+
import { useReorderButtons, LazyTestimonials } from '../chunk-JNZLH2OR.js';
|
|
6
|
+
import '../chunk-KO3HG5GQ.js';
|
|
7
|
+
import { product } from '../chunk-3QT7JMAD.js';
|
|
8
8
|
import { Drawer } from '../chunk-6TKIUG5C.js';
|
|
9
|
-
import { ProductCard } from '../chunk-
|
|
9
|
+
import { ProductCard } from '../chunk-JHCLU3PS.js';
|
|
10
10
|
import '../chunk-342EPVXN.js';
|
|
11
|
-
import { useStore } from '../chunk-
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import { useStore } from '../chunk-BLWLKRKH.js';
|
|
12
|
+
import '../chunk-WHGOO4A2.js';
|
|
13
13
|
import '../chunk-JKIRRMBU.js';
|
|
14
14
|
import '../chunk-2JV6WZ6O.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-3TJKB3WR.js';
|
|
16
16
|
import '../chunk-VVZNW5CB.js';
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import { notFound, useNavigate, useLocation } from '../chunk-
|
|
19
|
-
import { RouteId } from '../chunk-
|
|
20
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-RYSJOCHI.js';
|
|
18
|
+
import { unauthorized, notFound, orThrow, useNavigate, useLocation } from '../chunk-OKNJFS44.js';
|
|
19
|
+
import { RouteId } from '../chunk-OUW6WESU.js';
|
|
20
|
+
import '../chunk-4YVGMXG7.js';
|
|
21
21
|
import '../chunk-HI5V5X3S.js';
|
|
22
|
-
import '../chunk-
|
|
23
|
-
import '../chunk-
|
|
24
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-2OYXPNCE.js';
|
|
23
|
+
import '../chunk-GFSTJ2PF.js';
|
|
24
|
+
import { getAuthToken } from '../chunk-IK57LAIA.js';
|
|
25
25
|
import '../chunk-MVT5AF2A.js';
|
|
26
26
|
import '../chunk-Z653O7MX.js';
|
|
27
27
|
import '../chunk-ZCH7W7DZ.js';
|
|
28
|
-
import '../chunk-
|
|
28
|
+
import '../chunk-D2T6246Q.js';
|
|
29
29
|
import '../chunk-JWXJPJBO.js';
|
|
30
30
|
import '../chunk-CW625T2E.js';
|
|
31
31
|
import '../chunk-7V36I5GT.js';
|
|
32
|
-
import '../chunk-
|
|
33
|
-
import '../chunk-
|
|
32
|
+
import '../chunk-6WI7R2BD.js';
|
|
33
|
+
import '../chunk-E7EBWXCA.js';
|
|
34
34
|
import '../chunk-OAMIDZKW.js';
|
|
35
35
|
import { useTranslation } from '../chunk-TYNZ5B2B.js';
|
|
36
36
|
import '../chunk-V2ZDTY6H.js';
|
|
37
37
|
import { HookSlot } from '../chunk-5XDPAKF5.js';
|
|
38
38
|
import '../chunk-GCPEMNSU.js';
|
|
39
|
-
import { LazyBreadcrumb, Image, LazyNoContent, ProductCardSkeleton, LazyRenderWhenVisible } from '../chunk-
|
|
39
|
+
import { LazyBreadcrumb, Image, LazyNoContent, ProductCardSkeleton, LazyRenderWhenVisible } from '../chunk-6I4LWF5Y.js';
|
|
40
40
|
import '../chunk-AXW67SY7.js';
|
|
41
41
|
import '../chunk-SKLEJJ6M.js';
|
|
42
42
|
import '../chunk-BYMOPN2S.js';
|
|
@@ -44,10 +44,10 @@ import '../chunk-6BZ5TKEV.js';
|
|
|
44
44
|
import '../chunk-FZKRSGLP.js';
|
|
45
45
|
import '../chunk-7V5HOZW4.js';
|
|
46
46
|
import '../chunk-YA6ABQB7.js';
|
|
47
|
-
import '../chunk-
|
|
48
|
-
import '../chunk-
|
|
49
|
-
import { onSallaEvent } from '../chunk-
|
|
50
|
-
import '../chunk-
|
|
47
|
+
import '../chunk-M6BXZTRK.js';
|
|
48
|
+
import '../chunk-JEG5WPNT.js';
|
|
49
|
+
import { onSallaEvent } from '../chunk-P4GOLSA2.js';
|
|
50
|
+
import '../chunk-Y5OGXJLH.js';
|
|
51
51
|
import { getTwilightContext } from '../chunk-N2S25NXP.js';
|
|
52
52
|
import '../chunk-T72DAX7R.js';
|
|
53
53
|
import { useTwilight } from '../chunk-DF6FBKDN.js';
|
|
@@ -66,22 +66,25 @@ var SOURCE_TO_API = {
|
|
|
66
66
|
offers: "offers",
|
|
67
67
|
search: "search",
|
|
68
68
|
tags: "tags",
|
|
69
|
-
brands: "brands"
|
|
69
|
+
brands: "brands",
|
|
70
|
+
reorder: "reorder"
|
|
70
71
|
};
|
|
71
72
|
var SOURCE_TITLE_KEY = {
|
|
72
73
|
latest: "blocks.home.latest_products",
|
|
73
74
|
sales: "common.titles.most_sales",
|
|
74
|
-
offers: "common.titles.discounts"
|
|
75
|
+
offers: "common.titles.discounts",
|
|
76
|
+
reorder: "pages.orders.repurchase"
|
|
75
77
|
};
|
|
76
78
|
var SOURCE_SLUG = {
|
|
77
79
|
latest: "latest-products",
|
|
78
80
|
sales: "most-sales-products",
|
|
79
|
-
offers: "offers"
|
|
81
|
+
offers: "offers",
|
|
82
|
+
reorder: "products?source=reorder"
|
|
80
83
|
};
|
|
81
84
|
async function productListLoader(ctx) {
|
|
82
85
|
const { params, search } = ctx;
|
|
83
86
|
const page = search?.page ? String(search.page) : void 0;
|
|
84
|
-
const cursor = page &&
|
|
87
|
+
const cursor = page && Number.isNaN(Number(page)) ? page : void 0;
|
|
85
88
|
const sort = search?.sort ?? DEFAULT_SORT;
|
|
86
89
|
const sourceType = params.source ?? (params.id ? "categories" : void 0);
|
|
87
90
|
if (!sourceType) {
|
|
@@ -100,7 +103,8 @@ async function productListLoader(ctx) {
|
|
|
100
103
|
if (sourceType === "brands" && params.id) {
|
|
101
104
|
return loadBrandProducts(params.id, cursor, sort);
|
|
102
105
|
}
|
|
103
|
-
if (sourceType === "
|
|
106
|
+
if (sourceType === "reorder" && !getAuthToken()) throw unauthorized();
|
|
107
|
+
if (sourceType in SOURCE_TITLE_KEY) {
|
|
104
108
|
return loadStaticProducts(
|
|
105
109
|
sourceType,
|
|
106
110
|
params.title ?? "",
|
|
@@ -198,17 +202,20 @@ async function loadSearchProducts(keyword, cursor, sort) {
|
|
|
198
202
|
}
|
|
199
203
|
async function loadTagProducts(id, cursor, sort) {
|
|
200
204
|
const { queryClient, i18n } = getTwilightContext();
|
|
201
|
-
const productsResult = await
|
|
202
|
-
product.queries.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
205
|
+
const [tagData, productsResult] = await Promise.all([
|
|
206
|
+
orThrow(queryClient.fetchQuery(product.queries.tag(id))),
|
|
207
|
+
queryClient.fetchQuery(
|
|
208
|
+
product.queries.list({
|
|
209
|
+
source: "tags",
|
|
210
|
+
sourceValue: id,
|
|
211
|
+
cursor,
|
|
212
|
+
sort
|
|
213
|
+
})
|
|
214
|
+
)
|
|
215
|
+
]);
|
|
216
|
+
if (!tagData) throw notFound();
|
|
217
|
+
const tagUrl = productsResult.items[0]?.tags?.find((t) => String(t.id) === id)?.url ?? "";
|
|
218
|
+
const tag = { id: Number(tagData.id), name: tagData.name, url: tagUrl };
|
|
212
219
|
return {
|
|
213
220
|
page: {
|
|
214
221
|
slug: RouteId.PRODUCT_INDEX_TAG,
|
|
@@ -216,7 +223,8 @@ async function loadTagProducts(id, cursor, sort) {
|
|
|
216
223
|
title: tag.name,
|
|
217
224
|
breadcrumbs: [
|
|
218
225
|
{ name: i18n.t("common.titles.home"), url: "/" },
|
|
219
|
-
{
|
|
226
|
+
// Laravel's own `tags/{id}` route, for when the listed tags carry no URL.
|
|
227
|
+
{ name: tag.name, url: tag.url || `/tags/${id}` }
|
|
220
228
|
]
|
|
221
229
|
},
|
|
222
230
|
source: { type: "tags", value: id, entity: tag },
|
|
@@ -268,19 +276,22 @@ async function loadBrandProducts(id, cursor, sort) {
|
|
|
268
276
|
var SOURCE_ROUTE_ID = {
|
|
269
277
|
latest: RouteId.PRODUCT_INDEX_LATEST,
|
|
270
278
|
sales: RouteId.PRODUCT_INDEX_SALES,
|
|
271
|
-
offers: RouteId.PRODUCT_INDEX_OFFERS
|
|
279
|
+
offers: RouteId.PRODUCT_INDEX_OFFERS,
|
|
280
|
+
reorder: RouteId.PRODUCT_INDEX
|
|
272
281
|
};
|
|
273
282
|
async function loadStaticProducts(source, title, slug, cursor, sort) {
|
|
274
283
|
const { queryClient, i18n } = getTwilightContext();
|
|
275
284
|
const resolvedTitle = title || i18n.t(SOURCE_TITLE_KEY[source]);
|
|
276
285
|
const resolvedSlug = slug || SOURCE_SLUG[source];
|
|
277
|
-
const productsResult = await queryClient.fetchQuery(
|
|
278
|
-
product.queries.list({
|
|
286
|
+
const productsResult = await queryClient.fetchQuery({
|
|
287
|
+
...product.queries.list({
|
|
279
288
|
source: SOURCE_TO_API[source],
|
|
280
289
|
cursor,
|
|
281
290
|
sort
|
|
282
|
-
})
|
|
283
|
-
|
|
291
|
+
}),
|
|
292
|
+
// The reorder key names no customer, so a cached list could be another session's.
|
|
293
|
+
...source === "reorder" && { staleTime: 0 }
|
|
294
|
+
});
|
|
284
295
|
return {
|
|
285
296
|
page: {
|
|
286
297
|
slug: SOURCE_ROUTE_ID[source],
|
|
@@ -379,6 +390,8 @@ function ProductListPage({
|
|
|
379
390
|
const showFilters = query.filters && store?.settings?.product?.filters;
|
|
380
391
|
const isBrand = source.type === "brands";
|
|
381
392
|
const brand2 = isBrand ? source.entity : null;
|
|
393
|
+
const isReorder = source.type === "reorder";
|
|
394
|
+
useReorderButtons(isReorder);
|
|
382
395
|
const sortOptionsWithTrans = useMemo(() => sortOptions(selectedSort, t), [selectedSort, t]);
|
|
383
396
|
const location = useLocation();
|
|
384
397
|
const {
|
|
@@ -425,160 +438,168 @@ function ProductListPage({
|
|
|
425
438
|
nextCursorRef.current = result.next;
|
|
426
439
|
return result;
|
|
427
440
|
}, [source.type, source.value, selectedSort, appliedFilters]);
|
|
428
|
-
return /* @__PURE__ */ jsxs(
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
alt: brand2.name,
|
|
439
|
-
priority: true
|
|
440
|
-
}
|
|
441
|
-
),
|
|
442
|
-
/* @__PURE__ */ jsxs("header", { className: "flex flex-col md:flex-row items-center md:items-start text-center rtl:md:text-right ltr:md:text-left mt-2 mb-8", children: [
|
|
443
|
-
/* @__PURE__ */ jsx(
|
|
444
|
-
Image,
|
|
445
|
-
{
|
|
446
|
-
className: "rounded-md w-40 h-24 object-contain shadow-md p-4 bg-white shrink-0",
|
|
447
|
-
src: brand2.logo || void 0,
|
|
448
|
-
alt: brand2.name,
|
|
449
|
-
aspectRatio: "5/3"
|
|
450
|
-
}
|
|
451
|
-
),
|
|
452
|
-
/* @__PURE__ */ jsxs("div", { className: "px-5 pt-3 rtl:text-right", children: [
|
|
453
|
-
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mb-1", children: brand2.name }),
|
|
454
|
-
brand2.description && /* @__PURE__ */ jsx(
|
|
455
|
-
"p",
|
|
441
|
+
return /* @__PURE__ */ jsxs(
|
|
442
|
+
"div",
|
|
443
|
+
{
|
|
444
|
+
className: "container px-2.5 ms:px-5 mb-10",
|
|
445
|
+
"data-source": isReorder ? "reorder" : void 0,
|
|
446
|
+
children: [
|
|
447
|
+
theme?.settings?.product_index_show_breadcrumbs !== false && /* @__PURE__ */ jsx(LazyBreadcrumb, { page }),
|
|
448
|
+
isBrand && brand2 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
449
|
+
/* @__PURE__ */ jsx(
|
|
450
|
+
Image,
|
|
456
451
|
{
|
|
457
|
-
|
|
458
|
-
|
|
452
|
+
width: 1200,
|
|
453
|
+
height: 300,
|
|
454
|
+
className: "w-full max-h-[300px] object-cover rounded-md bg-gray-100",
|
|
455
|
+
src: brand2.banner || void 0,
|
|
456
|
+
alt: brand2.name,
|
|
457
|
+
priority: true
|
|
459
458
|
}
|
|
460
|
-
)
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.start" }),
|
|
465
|
-
/* @__PURE__ */ jsxs("div", { className: showFilters ? "md:grid md:grid-cols-[288px_1fr] gap-8" : "", children: [
|
|
466
|
-
showFilters && /* @__PURE__ */ jsx(
|
|
467
|
-
SallaFilters,
|
|
468
|
-
{
|
|
469
|
-
id: "filters-menu",
|
|
470
|
-
className: "hidden md:block lg:sticky lg:top-20",
|
|
471
|
-
filters
|
|
472
|
-
}
|
|
473
|
-
),
|
|
474
|
-
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
475
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-4 sm:mb-6 flex justify-between items-center", children: [
|
|
476
|
-
/* @__PURE__ */ jsx("h1", { className: "font-bold text-xl rtl:pl-3 ltr:pr-3", id: "page-main-title", children: isBrand ? t("common.titles.products") : page.title }),
|
|
477
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 rtl:space-x-reverse", children: [
|
|
478
|
-
showFilters && /* @__PURE__ */ jsx(
|
|
479
|
-
"button",
|
|
459
|
+
),
|
|
460
|
+
/* @__PURE__ */ jsxs("header", { className: "flex flex-col md:flex-row items-center md:items-start text-center rtl:md:text-right ltr:md:text-left mt-2 mb-8", children: [
|
|
461
|
+
/* @__PURE__ */ jsx(
|
|
462
|
+
Image,
|
|
480
463
|
{
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
464
|
+
className: "rounded-md w-40 h-24 object-contain shadow-md p-4 bg-white shrink-0",
|
|
465
|
+
src: brand2.logo || void 0,
|
|
466
|
+
alt: brand2.name,
|
|
467
|
+
aspectRatio: "5/3"
|
|
485
468
|
}
|
|
486
469
|
),
|
|
487
|
-
|
|
488
|
-
/* @__PURE__ */ jsx(
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
className: "hidden sm:block rtl:ml-3 ltr:mr-3 whitespace-nowrap",
|
|
492
|
-
htmlFor: "product-sort",
|
|
493
|
-
children: t("pages.categories.sorting", "Sort By")
|
|
494
|
-
}
|
|
495
|
-
),
|
|
496
|
-
/* @__PURE__ */ jsx(
|
|
497
|
-
"select",
|
|
470
|
+
/* @__PURE__ */ jsxs("div", { className: "px-5 pt-3 rtl:text-right", children: [
|
|
471
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mb-1", children: brand2.name }),
|
|
472
|
+
brand2.description && /* @__PURE__ */ jsx(
|
|
473
|
+
"p",
|
|
498
474
|
{
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
value: selectedSort,
|
|
502
|
-
onChange: handleSortChange,
|
|
503
|
-
children: sortOptionsWithTrans.map((option) => /* @__PURE__ */ jsx("option", { value: option.id, children: option.name }, option.id))
|
|
475
|
+
className: "text-base text-gray-500 font-medium",
|
|
476
|
+
dangerouslySetInnerHTML: { __html: brand2.description }
|
|
504
477
|
}
|
|
505
478
|
)
|
|
506
479
|
] })
|
|
507
480
|
] })
|
|
508
481
|
] }),
|
|
509
|
-
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.
|
|
510
|
-
/* @__PURE__ */
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
ItemsList,
|
|
526
|
-
{
|
|
527
|
-
resetKey: `${listKey}-${selectedSort}${filteredKey}`,
|
|
528
|
-
items: shownProducts,
|
|
529
|
-
loader,
|
|
530
|
-
mode: shownNext ? "infinite" : "static",
|
|
531
|
-
pageUrl: location.pathname + location.searchStr,
|
|
532
|
-
className: "s-products-list flex-1 min-w-0",
|
|
533
|
-
itemsClassName: `s-products-list-wrapper s-products-list-vertical-cards${showFilters ? " s-products-list-with-filters" : ""}`,
|
|
534
|
-
skeleton: /* @__PURE__ */ jsx(ProductCardSkeleton, {}),
|
|
535
|
-
skeletonType: "item",
|
|
536
|
-
skeletonCount: 12,
|
|
537
|
-
empty: /* @__PURE__ */ jsx(
|
|
538
|
-
LazyNoContent,
|
|
482
|
+
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.start" }),
|
|
483
|
+
/* @__PURE__ */ jsxs("div", { className: showFilters ? "md:grid md:grid-cols-[288px_1fr] gap-8" : "", children: [
|
|
484
|
+
showFilters && /* @__PURE__ */ jsx(
|
|
485
|
+
SallaFilters,
|
|
486
|
+
{
|
|
487
|
+
id: "filters-menu",
|
|
488
|
+
className: "hidden md:block lg:sticky lg:top-20",
|
|
489
|
+
filters
|
|
490
|
+
}
|
|
491
|
+
),
|
|
492
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
493
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-4 sm:mb-6 flex justify-between items-center", children: [
|
|
494
|
+
/* @__PURE__ */ jsx("h1", { className: "font-bold text-xl rtl:pl-3 ltr:pr-3", id: "page-main-title", children: isBrand ? t("common.titles.products") : page.title }),
|
|
495
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 rtl:space-x-reverse", children: [
|
|
496
|
+
showFilters && /* @__PURE__ */ jsx(
|
|
497
|
+
"button",
|
|
539
498
|
{
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
)
|
|
499
|
+
type: "button",
|
|
500
|
+
onClick: () => setFiltersOpen(true),
|
|
501
|
+
className: "filters-trigger bg-border-color text-primary lg:hidden p-2 rounded",
|
|
502
|
+
children: /* @__PURE__ */ jsx("i", { className: "sicon-filter text-gray-text text-2xl" })
|
|
545
503
|
}
|
|
546
504
|
),
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
505
|
+
sortOptionsWithTrans.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
506
|
+
/* @__PURE__ */ jsx(
|
|
507
|
+
"label",
|
|
508
|
+
{
|
|
509
|
+
className: "hidden sm:block rtl:ml-3 ltr:mr-3 whitespace-nowrap",
|
|
510
|
+
htmlFor: "product-sort",
|
|
511
|
+
children: t("pages.categories.sorting", "Sort By")
|
|
512
|
+
}
|
|
513
|
+
),
|
|
514
|
+
/* @__PURE__ */ jsx(
|
|
515
|
+
"select",
|
|
516
|
+
{
|
|
517
|
+
id: "product-sort",
|
|
518
|
+
className: "form-input pt-0 pb-1 rtl:md:pl-10 ltr:md:pr-10",
|
|
519
|
+
value: selectedSort,
|
|
520
|
+
onChange: handleSortChange,
|
|
521
|
+
children: sortOptionsWithTrans.map((option) => /* @__PURE__ */ jsx("option", { value: option.id, children: option.name }, option.id))
|
|
522
|
+
}
|
|
523
|
+
)
|
|
524
|
+
] })
|
|
525
|
+
] })
|
|
526
|
+
] }),
|
|
527
|
+
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.items.start" }),
|
|
528
|
+
/* @__PURE__ */ jsx(
|
|
529
|
+
"div",
|
|
530
|
+
{
|
|
531
|
+
className: `flex min-h-screen${filterStatus === "loading" ? " opacity-60" : ""}`,
|
|
532
|
+
"aria-busy": filterStatus === "loading",
|
|
533
|
+
children: filterStatus === "error" ? /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 flex flex-col items-center", children: [
|
|
534
|
+
/* @__PURE__ */ jsx(
|
|
535
|
+
LazyNoContent,
|
|
536
|
+
{
|
|
537
|
+
icon: "sicon-shopping-bag",
|
|
538
|
+
message: t("common.errors.error_occurred", "Something went wrong")
|
|
539
|
+
}
|
|
540
|
+
),
|
|
541
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: "link--primary mt-4", onClick: retryFilters, children: t("common.elements.try_again", "Try again") })
|
|
542
|
+
] }) : /* @__PURE__ */ jsx(
|
|
543
|
+
ItemsList,
|
|
550
544
|
{
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
545
|
+
resetKey: `${listKey}-${selectedSort}${filteredKey}`,
|
|
546
|
+
items: shownProducts,
|
|
547
|
+
loader,
|
|
548
|
+
mode: shownNext ? "infinite" : "static",
|
|
549
|
+
pageUrl: location.pathname + location.searchStr,
|
|
550
|
+
className: "s-products-list flex-1 min-w-0",
|
|
551
|
+
itemsClassName: `s-products-list-wrapper s-products-list-vertical-cards${showFilters ? " s-products-list-with-filters" : ""}`,
|
|
552
|
+
skeleton: /* @__PURE__ */ jsx(ProductCardSkeleton, {}),
|
|
553
|
+
skeletonType: "item",
|
|
554
|
+
skeletonCount: 12,
|
|
555
|
+
empty: /* @__PURE__ */ jsx(
|
|
556
|
+
LazyNoContent,
|
|
557
|
+
{
|
|
558
|
+
icon: "sicon-shopping-bag",
|
|
559
|
+
message: t(
|
|
560
|
+
"pages.categories.no_products",
|
|
561
|
+
"No products found in this category"
|
|
562
|
+
)
|
|
563
|
+
}
|
|
564
|
+
),
|
|
565
|
+
t: (key, fallback) => t(key, fallback || key),
|
|
566
|
+
children: (items) => items.map((prod, idx) => /* @__PURE__ */ jsx(
|
|
567
|
+
ProductCard,
|
|
568
|
+
{
|
|
569
|
+
product: prod,
|
|
570
|
+
index: idx,
|
|
571
|
+
sizes: showFilters ? FILTERED_PRODUCT_IMAGE_SIZES : void 0
|
|
572
|
+
},
|
|
573
|
+
prod.id
|
|
574
|
+
))
|
|
554
575
|
},
|
|
555
|
-
|
|
556
|
-
)
|
|
557
|
-
}
|
|
558
|
-
|
|
576
|
+
`${listKey}-${selectedSort}${filteredKey}`
|
|
577
|
+
)
|
|
578
|
+
}
|
|
579
|
+
),
|
|
580
|
+
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.items.end" })
|
|
581
|
+
] })
|
|
582
|
+
] }),
|
|
583
|
+
showFilters && /* @__PURE__ */ jsx(Drawer, { isOpen: filtersOpen, onClose: () => setFiltersOpen(false), size: "md", children: /* @__PURE__ */ jsxs("div", { className: "p-4", children: [
|
|
584
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
585
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold text-lg", children: t("pages.categories.filters", "Filters") }),
|
|
586
|
+
/* @__PURE__ */ jsx(
|
|
587
|
+
"button",
|
|
588
|
+
{
|
|
589
|
+
type: "button",
|
|
590
|
+
onClick: () => setFiltersOpen(false),
|
|
591
|
+
className: "btn--close-sm sicon-cancel text-gray-500"
|
|
592
|
+
}
|
|
559
593
|
)
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
"button",
|
|
570
|
-
{
|
|
571
|
-
type: "button",
|
|
572
|
-
onClick: () => setFiltersOpen(false),
|
|
573
|
-
className: "btn--close-sm sicon-cancel text-gray-500"
|
|
574
|
-
}
|
|
575
|
-
)
|
|
576
|
-
] }),
|
|
577
|
-
/* @__PURE__ */ jsx(SallaFilters, { id: "filters-menu-mobile", filters })
|
|
578
|
-
] }) }),
|
|
579
|
-
source.type === "categories" && store?.settings?.category?.testimonial_enabled && /* @__PURE__ */ jsx(LazyRenderWhenVisible, { placeholder: /* @__PURE__ */ jsx(ReviewItemSkeleton, {}), children: /* @__PURE__ */ jsx(LazyTestimonials, { data: {} }) }),
|
|
580
|
-
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.end" })
|
|
581
|
-
] }, listKey);
|
|
594
|
+
] }),
|
|
595
|
+
/* @__PURE__ */ jsx(SallaFilters, { id: "filters-menu-mobile", filters })
|
|
596
|
+
] }) }),
|
|
597
|
+
source.type === "categories" && store?.settings?.category?.testimonial_enabled && /* @__PURE__ */ jsx(LazyRenderWhenVisible, { placeholder: /* @__PURE__ */ jsx(ReviewItemSkeleton, {}), children: /* @__PURE__ */ jsx(LazyTestimonials, { data: {} }) }),
|
|
598
|
+
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.end" })
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
listKey
|
|
602
|
+
);
|
|
582
603
|
}
|
|
583
604
|
|
|
584
605
|
// src/routes/product-listing/index.tsx
|
|
@@ -586,7 +607,7 @@ function head(ctx, data) {
|
|
|
586
607
|
const entity = data.source.entity;
|
|
587
608
|
const category2 = data.source.type === "categories" ? entity : void 0;
|
|
588
609
|
const tag = data.source.type === "tags" ? entity : void 0;
|
|
589
|
-
const canonical = category2?.url ?? tag?.url;
|
|
610
|
+
const canonical = category2?.url ?? (tag?.url || void 0);
|
|
590
611
|
const title = category2?.name ?? tag?.name ?? data.page.title;
|
|
591
612
|
const image = category2?.image ?? void 0;
|
|
592
613
|
const storeName = ctx.settings?.store?.name;
|