@salla.sa/twilight-theme-engine 1.0.49 → 1.0.51
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-KU2UVYWT.js → AddToCartForm-FWTD6TUV.js} +3 -3
- package/dist/{AddToCartForm-KU2UVYWT.js.map → AddToCartForm-FWTD6TUV.js.map} +1 -1
- package/dist/{BlogAuthorPage-FJQ76FYU.js → BlogAuthorPage-T5F77W5X.js} +6 -6
- package/dist/{BlogAuthorPage-FJQ76FYU.js.map → BlogAuthorPage-T5F77W5X.js.map} +1 -1
- package/dist/{BlogCategoryPage-G3NUPFQG.js → BlogCategoryPage-MRLME3PG.js} +6 -6
- package/dist/{BlogCategoryPage-G3NUPFQG.js.map → BlogCategoryPage-MRLME3PG.js.map} +1 -1
- package/dist/{BlogPage-7C6IWCBB.js → BlogPage-XCVB34G4.js} +5 -5
- package/dist/{BlogPage-7C6IWCBB.js.map → BlogPage-XCVB34G4.js.map} +1 -1
- package/dist/{BlogSinglePage-JD73WQ4N.js → BlogSinglePage-HYIMMTTJ.js} +5 -5
- package/dist/{BlogSinglePage-JD73WQ4N.js.map → BlogSinglePage-HYIMMTTJ.js.map} +1 -1
- package/dist/{BlogTagPage-R5NF3YLM.js → BlogTagPage-DLXTXS6O.js} +6 -6
- package/dist/{BlogTagPage-R5NF3YLM.js.map → BlogTagPage-DLXTXS6O.js.map} +1 -1
- package/dist/{BrandsPage-6HOFLIDG.js → BrandsPage-A7IAQCUS.js} +5 -5
- package/dist/{BrandsPage-6HOFLIDG.js.map → BrandsPage-A7IAQCUS.js.map} +1 -1
- package/dist/{Breadcrumb-V5UW4TPJ.js → Breadcrumb-7NGZQ7ZM.js} +5 -5
- package/dist/{Breadcrumb-V5UW4TPJ.js.map → Breadcrumb-7NGZQ7ZM.js.map} +1 -1
- package/dist/{CartItem-ROKMQFVJ.js → CartItem-DCQZ6PVW.js} +5 -5
- package/dist/{CartItem-ROKMQFVJ.js.map → CartItem-DCQZ6PVW.js.map} +1 -1
- package/dist/{CartSummary-EDAXR4VQ.js → CartSummary-QOWJAMGK.js} +5 -5
- package/dist/{CartSummary-EDAXR4VQ.js.map → CartSummary-QOWJAMGK.js.map} +1 -1
- package/dist/{Copyright-VRCRWG7U.js → Copyright-WI5AQSJK.js} +3 -3
- package/dist/{Copyright-VRCRWG7U.js.map → Copyright-WI5AQSJK.js.map} +1 -1
- package/dist/{CustomerLayout-BT7RWQCX.js → CustomerLayout-3P5GSC47.js} +7 -6
- package/dist/CustomerLayout-3P5GSC47.js.map +1 -0
- package/dist/{Footer-GXA4V3L3.js → Footer-UMC3VBUS.js} +5 -5
- package/dist/{Footer-GXA4V3L3.js.map → Footer-UMC3VBUS.js.map} +1 -1
- package/dist/{Header-VYEA3QT7.js → Header-WIMDW6SI.js} +4 -4
- package/dist/{Header-VYEA3QT7.js.map → Header-WIMDW6SI.js.map} +1 -1
- package/dist/{LoyaltyPage-G3BDWISN.js → LoyaltyPage-XETIRHVI.js} +5 -5
- package/dist/{LoyaltyPage-G3BDWISN.js.map → LoyaltyPage-XETIRHVI.js.map} +1 -1
- package/dist/{MainMenu-XZZDDKQI.js → MainMenu-SQTHIH5O.js} +3 -3
- package/dist/{MainMenu-XZZDDKQI.js.map → MainMenu-SQTHIH5O.js.map} +1 -1
- package/dist/{MasterLayout-TAH3WY75.js → MasterLayout-724ZWXQP.js} +5 -5
- package/dist/{MasterLayout-TAH3WY75.js.map → MasterLayout-724ZWXQP.js.map} +1 -1
- package/dist/{MobileMenu-G2G4BA35.js → MobileMenu-3MN67ZGC.js} +5 -5
- package/dist/{MobileMenu-G2G4BA35.js.map → MobileMenu-3MN67ZGC.js.map} +1 -1
- package/dist/{NotificationsPage-PL3HYLDH.js → NotificationsPage-ZFNG6MA7.js} +5 -5
- package/dist/{NotificationsPage-PL3HYLDH.js.map → NotificationsPage-ZFNG6MA7.js.map} +1 -1
- package/dist/{OrderSinglePage-TDMSKXVM.js → OrderSinglePage-ZY776GSN.js} +48 -6
- package/dist/OrderSinglePage-ZY776GSN.js.map +1 -0
- package/dist/{OrdersPage-RGP3F6ZR.js → OrdersPage-T7DB534Z.js} +63 -7
- package/dist/OrdersPage-T7DB534Z.js.map +1 -0
- package/dist/{PageSingle-HYNH3QYU.js → PageSingle-UB5YESMY.js} +3 -3
- package/dist/{PageSingle-HYNH3QYU.js.map → PageSingle-UB5YESMY.js.map} +1 -1
- package/dist/{ProductDetails-35OUOV32.js → ProductDetails-ADNGOIMJ.js} +3 -3
- package/dist/{ProductDetails-35OUOV32.js.map → ProductDetails-ADNGOIMJ.js.map} +1 -1
- package/dist/{ProfilePage-JKAR5TWA.js → ProfilePage-MVRNUM3D.js} +5 -5
- package/dist/{ProfilePage-JKAR5TWA.js.map → ProfilePage-MVRNUM3D.js.map} +1 -1
- package/dist/{SeoCartWidget-XQLDKKSF.js → SeoCartWidget-DUF6EZF5.js} +5 -5
- package/dist/{SeoCartWidget-XQLDKKSF.js.map → SeoCartWidget-DUF6EZF5.js.map} +1 -1
- package/dist/{SettingsPage-UDWYTMHZ.js → SettingsPage-VYEI2SBG.js} +5 -5
- package/dist/{SettingsPage-UDWYTMHZ.js.map → SettingsPage-VYEI2SBG.js.map} +1 -1
- package/dist/{StoreClosedNotification-V5OSQJFG.js → StoreClosedNotification-HVF2UBZB.js} +6 -6
- package/dist/{StoreClosedNotification-V5OSQJFG.js.map → StoreClosedNotification-HVF2UBZB.js.map} +1 -1
- package/dist/{TestimonialsPage-WJEVEKPA.js → TestimonialsPage-5YGSJDZM.js} +3 -3
- package/dist/{TestimonialsPage-WJEVEKPA.js.map → TestimonialsPage-5YGSJDZM.js.map} +1 -1
- package/dist/{ThankYouPage-MRJZCNKI.js → ThankYouPage-SYTIN554.js} +11 -5
- package/dist/ThankYouPage-SYTIN554.js.map +1 -0
- package/dist/{WalletPage-CO4F3XWH.js → WalletPage-C3B2N57Q.js} +5 -5
- package/dist/{WalletPage-CO4F3XWH.js.map → WalletPage-C3B2N57Q.js.map} +1 -1
- package/dist/{WishlistPage-THOWE6KB.js → WishlistPage-2VFKXDCV.js} +7 -7
- package/dist/{WishlistPage-THOWE6KB.js.map → WishlistPage-2VFKXDCV.js.map} +1 -1
- package/dist/ambient/salla-components.d.ts +2 -0
- package/dist/api/product.d.ts +8 -0
- package/dist/api/product.d.ts.map +1 -1
- package/dist/api/product.js +1 -1
- package/dist/api/wishlist.js +2 -2
- package/dist/{chunk-HGNZIUZK.js → chunk-2OED73EU.js} +5 -5
- package/dist/{chunk-HGNZIUZK.js.map → chunk-2OED73EU.js.map} +1 -1
- package/dist/{chunk-SSMBRYI5.js → chunk-I5FZBPTO.js} +3 -3
- package/dist/{chunk-SSMBRYI5.js.map → chunk-I5FZBPTO.js.map} +1 -1
- package/dist/{chunk-L3CR2OAD.js → chunk-JLUH5PUI.js} +4 -4
- package/dist/{chunk-L3CR2OAD.js.map → chunk-JLUH5PUI.js.map} +1 -1
- package/dist/{chunk-C7RST4KQ.js → chunk-MDF2WJVW.js} +10 -8
- package/dist/chunk-MDF2WJVW.js.map +1 -0
- package/dist/{chunk-O2RQTN7B.js → chunk-NUKWGVYO.js} +4 -4
- package/dist/{chunk-O2RQTN7B.js.map → chunk-NUKWGVYO.js.map} +1 -1
- package/dist/chunk-P37WZQ5P.js +14 -0
- package/dist/{chunk-IBU4RNK5.js.map → chunk-P37WZQ5P.js.map} +1 -1
- package/dist/{chunk-44G4RAUR.js → chunk-PCDZ6WM2.js} +8 -7
- package/dist/chunk-PCDZ6WM2.js.map +1 -0
- package/dist/{chunk-VSBG4G2C.js → chunk-TEOX2GUU.js} +3 -3
- package/dist/{chunk-VSBG4G2C.js.map → chunk-TEOX2GUU.js.map} +1 -1
- package/dist/{chunk-CBNUZ7LI.js → chunk-UYK4CSL3.js} +28 -3
- package/dist/chunk-UYK4CSL3.js.map +1 -0
- package/dist/{chunk-QFJPYDY5.js → chunk-UZL4U74W.js} +3 -3
- package/dist/{chunk-QFJPYDY5.js.map → chunk-UZL4U74W.js.map} +1 -1
- package/dist/{chunk-OWNULELS.js → chunk-VQYTHUI3.js} +5 -5
- package/dist/{chunk-OWNULELS.js.map → chunk-VQYTHUI3.js.map} +1 -1
- package/dist/{chunk-TP3CKPCJ.js → chunk-WPFAWZPW.js} +4 -4
- package/dist/{chunk-TP3CKPCJ.js.map → chunk-WPFAWZPW.js.map} +1 -1
- package/dist/{chunk-YZPS7GOM.js → chunk-XC7AJ6I7.js} +3 -3
- package/dist/{chunk-YZPS7GOM.js.map → chunk-XC7AJ6I7.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 +3 -3
- package/dist/components/home/index.js +6 -6
- package/dist/components/layout/CustomerLayout.d.ts.map +1 -1
- package/dist/components/layout/index.js +5 -5
- package/dist/components/product/ProductCard.d.ts.map +1 -1
- package/dist/components/product/index.js +4 -4
- package/dist/components/store/index.js +5 -5
- package/dist/{document-class-FVJTJ6MF.js → document-class-TAD4CME5.js} +4 -4
- package/dist/{document-class-FVJTJ6MF.js.map → document-class-TAD4CME5.js.map} +1 -1
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/useGtm.js +3 -3
- package/dist/hooks/useMoney.js +3 -3
- package/dist/hooks/usePageConfig.d.ts.map +1 -1
- package/dist/hooks/useStore.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{not-found-XAFDC4TX.js → not-found-RVRWK5EF.js} +53 -7
- package/dist/not-found-RVRWK5EF.js.map +1 -0
- package/dist/providers/index.js +3 -3
- package/dist/routes/account/orders/OrderSinglePage.d.ts +1 -1
- package/dist/routes/account/orders/OrderSinglePage.d.ts.map +1 -1
- package/dist/routes/account/orders/OrdersPage.d.ts.map +1 -1
- package/dist/routes/account/orders.js +1 -1
- package/dist/routes/account.js +8 -8
- package/dist/routes/blog.js +5 -5
- package/dist/routes/brands.js +1 -1
- package/dist/routes/cart.js +8 -8
- package/dist/routes/home.js +7 -7
- package/dist/routes/loyalty.js +1 -1
- package/dist/routes/not-found.d.ts +1 -1
- package/dist/routes/not-found.d.ts.map +1 -1
- package/dist/routes/page.js +1 -1
- package/dist/routes/product-listing/ProductListPage.d.ts.map +1 -1
- package/dist/routes/product-listing/useAppliedFilters.d.ts +43 -0
- package/dist/routes/product-listing/useAppliedFilters.d.ts.map +1 -0
- package/dist/routes/product-listing.js +141 -43
- package/dist/routes/product-listing.js.map +1 -1
- package/dist/routes/product-short-link.d.ts +20 -0
- package/dist/routes/product-short-link.d.ts.map +1 -0
- package/dist/routes/product.js +7 -7
- package/dist/routes/product.js.map +1 -1
- package/dist/routes/testimonials.js +1 -1
- package/dist/routes/thank-you/ThankYouPage.d.ts +1 -1
- package/dist/routes/thank-you/ThankYouPage.d.ts.map +1 -1
- package/dist/routes/thank-you.js +1 -1
- package/dist/skeleton.js +7 -7
- package/dist/tanstack.js +3 -3
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/CustomerLayout-BT7RWQCX.js.map +0 -1
- package/dist/OrderSinglePage-TDMSKXVM.js.map +0 -1
- package/dist/OrdersPage-RGP3F6ZR.js.map +0 -1
- package/dist/ThankYouPage-MRJZCNKI.js.map +0 -1
- package/dist/chunk-44G4RAUR.js.map +0 -1
- package/dist/chunk-C7RST4KQ.js.map +0 -1
- package/dist/chunk-CBNUZ7LI.js.map +0 -1
- package/dist/chunk-IBU4RNK5.js +0 -14
- package/dist/not-found-XAFDC4TX.js.map +0 -1
package/dist/routes/account.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { wallet } from '../chunk-PZL3JWM2.js';
|
|
2
|
-
export { OrderSingle, OrderSinglePage, Orders, OrdersPage, orderSingleLoader, ordersLoader } from '../chunk-
|
|
2
|
+
export { OrderSingle, OrderSinglePage, Orders, OrdersPage, orderSingleLoader, ordersLoader } from '../chunk-JLUH5PUI.js';
|
|
3
3
|
import '../chunk-OKP6LUT7.js';
|
|
4
4
|
import { notification } from '../chunk-MENDTTOA.js';
|
|
5
|
-
import { wishlist } from '../chunk-
|
|
5
|
+
import { wishlist } from '../chunk-TEOX2GUU.js';
|
|
6
6
|
import { buildHreflangAlternates } from '../chunk-TZ3E5BN4.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-UYK4CSL3.js';
|
|
8
8
|
import { unauthorized, orUnauthorized } from '../chunk-JK77XRXR.js';
|
|
9
9
|
import { RouteId } from '../chunk-MTONGOJD.js';
|
|
10
10
|
import '../chunk-O6XXHXC4.js';
|
|
@@ -30,7 +30,7 @@ async function profileLoader(_ctx) {
|
|
|
30
30
|
|
|
31
31
|
// src/routes/account/profile/index.tsx
|
|
32
32
|
var LazyProfilePage = lazy(
|
|
33
|
-
() => import('../ProfilePage-
|
|
33
|
+
() => import('../ProfilePage-MVRNUM3D.js').then((m) => ({ default: m.ProfilePage }))
|
|
34
34
|
);
|
|
35
35
|
var ProfilePage = LazyProfilePage;
|
|
36
36
|
var Profile = {
|
|
@@ -71,7 +71,7 @@ async function wishlistLoader(ctx) {
|
|
|
71
71
|
|
|
72
72
|
// src/routes/account/wishlist/index.tsx
|
|
73
73
|
var LazyWishlistPage = lazy(
|
|
74
|
-
() => import('../WishlistPage-
|
|
74
|
+
() => import('../WishlistPage-2VFKXDCV.js').then((m) => ({ default: m.WishlistPage }))
|
|
75
75
|
);
|
|
76
76
|
var WishlistPage = LazyWishlistPage;
|
|
77
77
|
var Wishlist = {
|
|
@@ -112,7 +112,7 @@ async function walletLoader(ctx) {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// src/routes/account/wallet/index.tsx
|
|
115
|
-
var LazyWalletPage = lazy(() => import('../WalletPage-
|
|
115
|
+
var LazyWalletPage = lazy(() => import('../WalletPage-C3B2N57Q.js').then((m) => ({ default: m.WalletPage })));
|
|
116
116
|
var WalletPage = LazyWalletPage;
|
|
117
117
|
var Wallet = {
|
|
118
118
|
id: RouteId.CUSTOMER_WALLET,
|
|
@@ -147,7 +147,7 @@ async function notificationsLoader(_ctx) {
|
|
|
147
147
|
|
|
148
148
|
// src/routes/account/notifications/index.tsx
|
|
149
149
|
var LazyNotificationsPage = lazy(
|
|
150
|
-
() => import('../NotificationsPage-
|
|
150
|
+
() => import('../NotificationsPage-ZFNG6MA7.js').then((m) => ({ default: m.NotificationsPage }))
|
|
151
151
|
);
|
|
152
152
|
var NotificationsPage = LazyNotificationsPage;
|
|
153
153
|
var Notifications = {
|
|
@@ -179,7 +179,7 @@ async function settingsLoader(_ctx) {
|
|
|
179
179
|
|
|
180
180
|
// src/routes/account/settings/index.tsx
|
|
181
181
|
var LazySettingsPage = lazy(
|
|
182
|
-
() => import('../SettingsPage-
|
|
182
|
+
() => import('../SettingsPage-VYEI2SBG.js').then((m) => ({ default: m.SettingsPage }))
|
|
183
183
|
);
|
|
184
184
|
var SettingsPage = LazySettingsPage;
|
|
185
185
|
var Settings = {
|
package/dist/routes/blog.js
CHANGED
|
@@ -134,18 +134,18 @@ async function blogTagLoader({
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
// src/routes/blog/index.tsx
|
|
137
|
-
var LazyBlogPage = lazy(() => import('../BlogPage-
|
|
137
|
+
var LazyBlogPage = lazy(() => import('../BlogPage-XCVB34G4.js').then((m) => ({ default: m.BlogPage })));
|
|
138
138
|
var LazyBlogSinglePage = lazy(
|
|
139
|
-
() => import('../BlogSinglePage-
|
|
139
|
+
() => import('../BlogSinglePage-HYIMMTTJ.js').then((m) => ({ default: m.BlogSinglePage }))
|
|
140
140
|
);
|
|
141
141
|
var LazyBlogAuthorPage = lazy(
|
|
142
|
-
() => import('../BlogAuthorPage-
|
|
142
|
+
() => import('../BlogAuthorPage-T5F77W5X.js').then((m) => ({ default: m.BlogAuthorPage }))
|
|
143
143
|
);
|
|
144
144
|
var LazyBlogCategoryPage = lazy(
|
|
145
|
-
() => import('../BlogCategoryPage-
|
|
145
|
+
() => import('../BlogCategoryPage-MRLME3PG.js').then((m) => ({ default: m.BlogCategoryPage }))
|
|
146
146
|
);
|
|
147
147
|
var LazyBlogTagPage = lazy(
|
|
148
|
-
() => import('../BlogTagPage-
|
|
148
|
+
() => import('../BlogTagPage-DLXTXS6O.js').then((m) => ({ default: m.BlogTagPage }))
|
|
149
149
|
);
|
|
150
150
|
var BlogPage = LazyBlogPage;
|
|
151
151
|
var BlogSinglePage = LazyBlogSinglePage;
|
package/dist/routes/brands.js
CHANGED
|
@@ -34,7 +34,7 @@ async function brandsLoader() {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
// src/routes/brands/index.tsx
|
|
37
|
-
var LazyBrandsPage = lazy(() => import('../BrandsPage-
|
|
37
|
+
var LazyBrandsPage = lazy(() => import('../BrandsPage-A7IAQCUS.js').then((m) => ({ default: m.BrandsPage })));
|
|
38
38
|
var BrandsPage = LazyBrandsPage;
|
|
39
39
|
async function brandsLoaderWithExtend(_ctx, extend) {
|
|
40
40
|
const data = await brandsLoader();
|
package/dist/routes/cart.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { cart } from '../chunk-GXNQX4Z2.js';
|
|
2
2
|
import { loyalty } from '../chunk-EMKO3C2V.js';
|
|
3
3
|
import { CartSkeleton } from '../chunk-N7CCSGZF.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-XC7AJ6I7.js';
|
|
5
5
|
import '../chunk-P4DUWQU4.js';
|
|
6
6
|
import { buildHreflangAlternates } from '../chunk-TZ3E5BN4.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import { LazySeoCartWidget, LazyCartItem, LazyCartSummary } from '../chunk-
|
|
10
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-2OED73EU.js';
|
|
8
|
+
import '../chunk-UYK4CSL3.js';
|
|
9
|
+
import { LazySeoCartWidget, LazyCartItem, LazyCartSummary } from '../chunk-P37WZQ5P.js';
|
|
10
|
+
import '../chunk-MDF2WJVW.js';
|
|
11
11
|
import '../chunk-342EPVXN.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-PCDZ6WM2.js';
|
|
13
|
+
import '../chunk-VQYTHUI3.js';
|
|
14
14
|
import '../chunk-JKIRRMBU.js';
|
|
15
15
|
import '../chunk-2JV6WZ6O.js';
|
|
16
16
|
import '../chunk-6IATCGID.js';
|
|
@@ -41,7 +41,7 @@ import '../chunk-YMVLYYLU.js';
|
|
|
41
41
|
import '../chunk-RJPPO3ET.js';
|
|
42
42
|
import { HookSlot } from '../chunk-Q7VWURUR.js';
|
|
43
43
|
import '../chunk-GU2KUQVD.js';
|
|
44
|
-
import { LazyBreadcrumb, LazyNoContent } from '../chunk-
|
|
44
|
+
import { LazyBreadcrumb, LazyNoContent } from '../chunk-UZL4U74W.js';
|
|
45
45
|
import '../chunk-AXW67SY7.js';
|
|
46
46
|
import '../chunk-BYMOPN2S.js';
|
|
47
47
|
import '../chunk-SKLEJJ6M.js';
|
package/dist/routes/home.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { Home, HomeSkeleton, homeLoader } from '../chunk-
|
|
1
|
+
export { Home, HomeSkeleton, homeLoader } from '../chunk-XC7AJ6I7.js';
|
|
2
2
|
import '../chunk-P4DUWQU4.js';
|
|
3
3
|
import '../chunk-TZ3E5BN4.js';
|
|
4
|
-
export { DefaultHomeComponents, registerHomeComponentConfig, registerHomeComponents } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
export { DefaultHomeComponents, registerHomeComponentConfig, registerHomeComponents } from '../chunk-2OED73EU.js';
|
|
5
|
+
import '../chunk-UYK4CSL3.js';
|
|
6
|
+
import '../chunk-MDF2WJVW.js';
|
|
7
7
|
import '../chunk-342EPVXN.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-PCDZ6WM2.js';
|
|
9
|
+
import '../chunk-VQYTHUI3.js';
|
|
10
10
|
import '../chunk-JKIRRMBU.js';
|
|
11
11
|
import '../chunk-2JV6WZ6O.js';
|
|
12
12
|
import '../chunk-6IATCGID.js';
|
|
@@ -37,7 +37,7 @@ import '../chunk-YMVLYYLU.js';
|
|
|
37
37
|
import '../chunk-RJPPO3ET.js';
|
|
38
38
|
import '../chunk-Q7VWURUR.js';
|
|
39
39
|
import '../chunk-GU2KUQVD.js';
|
|
40
|
-
import '../chunk-
|
|
40
|
+
import '../chunk-UZL4U74W.js';
|
|
41
41
|
import '../chunk-AXW67SY7.js';
|
|
42
42
|
import '../chunk-BYMOPN2S.js';
|
|
43
43
|
import '../chunk-SKLEJJ6M.js';
|
package/dist/routes/loyalty.js
CHANGED
|
@@ -19,7 +19,7 @@ async function loyaltyLoader() {
|
|
|
19
19
|
|
|
20
20
|
// src/routes/loyalty/index.tsx
|
|
21
21
|
var LazyLoyaltyPage = lazy(
|
|
22
|
-
() => import('../LoyaltyPage-
|
|
22
|
+
() => import('../LoyaltyPage-XETIRHVI.js').then((m) => ({ default: m.LoyaltyPage }))
|
|
23
23
|
);
|
|
24
24
|
var LoyaltyPage = LazyLoyaltyPage;
|
|
25
25
|
async function loader(_ctx, extend) {
|
|
@@ -11,5 +11,5 @@ export interface NotFoundPageProps {
|
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
}>;
|
|
13
13
|
}
|
|
14
|
-
export declare function NotFoundPage(props?: NotFoundPageProps): import("react").JSX.Element;
|
|
14
|
+
export declare function NotFoundPage(props?: NotFoundPageProps): import("react").JSX.Element | null;
|
|
15
15
|
//# sourceMappingURL=not-found.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../src/routes/not-found.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../src/routes/not-found.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC5B,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC5B,QAAQ,EAAE,SAAS,CAAC;KACrB,CAAC,CAAC;CACJ;AAED,wBAAgB,YAAY,CAAC,KAAK,GAAE,iBAAsB,sCA8BzD"}
|
package/dist/routes/page.js
CHANGED
|
@@ -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-UB5YESMY.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":"ProductListPage.d.ts","sourceRoot":"","sources":["../../../src/routes/product-listing/ProductListPage.tsx"],"names":[],"mappings":"
|
|
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;AAOrD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,UAAU,EACV,OAAO,GACR,EAAE,qBAAqB,+BA2RvB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ProductListFilters } from '../../api/product';
|
|
2
|
+
import type { Product } from '../../types';
|
|
3
|
+
import type { ProductListLoaderData } from './types';
|
|
4
|
+
type Source = ProductListLoaderData['source'];
|
|
5
|
+
/**
|
|
6
|
+
* Reads the `filters[...]` selection `<salla-filters>` writes to the address bar
|
|
7
|
+
* (`filters[k]=v`, `filters[k][]=v`, `filters[k][sub]=v`) back into an object, so a
|
|
8
|
+
* filtered link can be opened directly.
|
|
9
|
+
*
|
|
10
|
+
* The keys come straight from the URL, so nodes are null-prototype objects and any
|
|
11
|
+
* `__proto__` / `constructor` / `prototype` segment drops the whole entry — a crafted
|
|
12
|
+
* `?filters[__proto__][x]=1` must never reach `Object.prototype`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseFiltersFromSearch(search: string): ProductListFilters | null;
|
|
15
|
+
interface FilteredPage {
|
|
16
|
+
items: Product[];
|
|
17
|
+
next: string | null;
|
|
18
|
+
}
|
|
19
|
+
export type AppliedFiltersStatus = 'idle' | 'loading' | 'ready' | 'error';
|
|
20
|
+
/**
|
|
21
|
+
* Applies the `<salla-filters>` selection to the product list.
|
|
22
|
+
*
|
|
23
|
+
* The filters component only rewrites the address bar (`history.pushState`, invisible
|
|
24
|
+
* to the router) and emits `salla-filters::changed`; nothing re-queries the list, so
|
|
25
|
+
* the route's loader output — fetched without filters — kept showing. This listens
|
|
26
|
+
* for that event (and for a filtered URL on first load) and fetches the first page
|
|
27
|
+
* with the selection.
|
|
28
|
+
*
|
|
29
|
+
* Each fetched page is stored with the selection that produced it, so `page` is only
|
|
30
|
+
* ever the page for the *current* selection. Until it arrives `status` is `loading`
|
|
31
|
+
* (and `lastPage` is the previous selection's page, for a dimmed placeholder); if the
|
|
32
|
+
* request fails `status` is `error` and `retry` re-runs it — the old products never
|
|
33
|
+
* pass for the new selection.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useAppliedFilters(source: Source, sort: string, enabled: boolean): {
|
|
36
|
+
filters: ProductListFilters | null;
|
|
37
|
+
page: FilteredPage | null;
|
|
38
|
+
lastPage: FilteredPage | null;
|
|
39
|
+
status: AppliedFiltersStatus;
|
|
40
|
+
retry: () => void;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=useAppliedFilters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppliedFilters.d.ts","sourceRoot":"","sources":["../../../src/routes/product-listing/useAppliedFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,MAAM,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;AAM9C;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAyBhF;AAED,UAAU,YAAY;IACpB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,GACf;IACD,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACnC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAmDA"}
|
|
@@ -2,13 +2,13 @@ import { sortOptions } from '../chunk-6Z4MOC4S.js';
|
|
|
2
2
|
import { category } from '../chunk-WHOWSSX4.js';
|
|
3
3
|
import { brand } from '../chunk-IH3TQ3LD.js';
|
|
4
4
|
import { buildHreflangAlternates } from '../chunk-TZ3E5BN4.js';
|
|
5
|
-
import { LazyTestimonials } from '../chunk-
|
|
6
|
-
import { product } from '../chunk-
|
|
5
|
+
import { LazyTestimonials } from '../chunk-2OED73EU.js';
|
|
6
|
+
import { product } from '../chunk-UYK4CSL3.js';
|
|
7
7
|
import { Drawer } from '../chunk-6TKIUG5C.js';
|
|
8
|
-
import { ProductCard } from '../chunk-
|
|
8
|
+
import { ProductCard } from '../chunk-MDF2WJVW.js';
|
|
9
9
|
import '../chunk-342EPVXN.js';
|
|
10
|
-
import { useStore } from '../chunk-
|
|
11
|
-
import '../chunk-
|
|
10
|
+
import { useStore } from '../chunk-PCDZ6WM2.js';
|
|
11
|
+
import '../chunk-VQYTHUI3.js';
|
|
12
12
|
import '../chunk-JKIRRMBU.js';
|
|
13
13
|
import '../chunk-2JV6WZ6O.js';
|
|
14
14
|
import '../chunk-6IATCGID.js';
|
|
@@ -39,7 +39,7 @@ import '../chunk-YMVLYYLU.js';
|
|
|
39
39
|
import '../chunk-RJPPO3ET.js';
|
|
40
40
|
import { HookSlot } from '../chunk-Q7VWURUR.js';
|
|
41
41
|
import '../chunk-GU2KUQVD.js';
|
|
42
|
-
import { LazyBreadcrumb, Image, LazyNoContent, ProductCardSkeleton, LazyRenderWhenVisible } from '../chunk-
|
|
42
|
+
import { LazyBreadcrumb, Image, LazyNoContent, ProductCardSkeleton, LazyRenderWhenVisible } from '../chunk-UZL4U74W.js';
|
|
43
43
|
import '../chunk-AXW67SY7.js';
|
|
44
44
|
import '../chunk-BYMOPN2S.js';
|
|
45
45
|
import '../chunk-SKLEJJ6M.js';
|
|
@@ -48,7 +48,7 @@ import '../chunk-FZKRSGLP.js';
|
|
|
48
48
|
import '../chunk-CUG6VOLM.js';
|
|
49
49
|
import '../chunk-HX3YKS5W.js';
|
|
50
50
|
import '../chunk-OBSAH7K6.js';
|
|
51
|
-
import '../chunk-DF6FBKDN.js';
|
|
51
|
+
import { useTwilight } from '../chunk-DF6FBKDN.js';
|
|
52
52
|
import '../chunk-DGUM43GV.js';
|
|
53
53
|
import { useState, useMemo, useEffect, useCallback, useRef } from 'react';
|
|
54
54
|
import { SallaFilters } from '@salla.sa/twilight-components-react/filters';
|
|
@@ -294,6 +294,72 @@ async function loadStaticProducts(source, title, slug, cursor, sort) {
|
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
+
var UNSAFE_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
298
|
+
function parseFiltersFromSearch(search) {
|
|
299
|
+
const out = /* @__PURE__ */ Object.create(null);
|
|
300
|
+
new URLSearchParams(search).forEach((value, rawKey) => {
|
|
301
|
+
if (!rawKey.startsWith("filters[")) return;
|
|
302
|
+
const path = [...rawKey.matchAll(/\[([^\]]*)\]/g)].map((m) => m[1]);
|
|
303
|
+
const isList = path[path.length - 1] === "";
|
|
304
|
+
const keys = isList ? path.slice(0, -1) : path;
|
|
305
|
+
if (!keys.length || keys.includes("") || keys.some((key) => UNSAFE_KEYS.has(key))) return;
|
|
306
|
+
let node = out;
|
|
307
|
+
keys.slice(0, -1).forEach((key) => {
|
|
308
|
+
const existing = node[key];
|
|
309
|
+
if (typeof existing !== "object" || existing === null || Array.isArray(existing)) {
|
|
310
|
+
node[key] = /* @__PURE__ */ Object.create(null);
|
|
311
|
+
}
|
|
312
|
+
node = node[key];
|
|
313
|
+
});
|
|
314
|
+
const leaf = keys[keys.length - 1];
|
|
315
|
+
if (isList) {
|
|
316
|
+
node[leaf] = [...Array.isArray(node[leaf]) ? node[leaf] : [], value];
|
|
317
|
+
} else {
|
|
318
|
+
node[leaf] = value;
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
return Object.keys(out).length ? out : null;
|
|
322
|
+
}
|
|
323
|
+
function useAppliedFilters(source, sort, enabled) {
|
|
324
|
+
const [filters, setFilters] = useState(null);
|
|
325
|
+
const [result, setResult] = useState(null);
|
|
326
|
+
const [failedKey, setFailedKey] = useState(null);
|
|
327
|
+
const [attempt, setAttempt] = useState(0);
|
|
328
|
+
useEffect(() => {
|
|
329
|
+
if (!enabled) return;
|
|
330
|
+
setFilters(parseFiltersFromSearch(window.location.search));
|
|
331
|
+
const sdk = window.salla;
|
|
332
|
+
if (!sdk?.event) return;
|
|
333
|
+
const onChanged = (...args) => {
|
|
334
|
+
const next = args[0];
|
|
335
|
+
setFilters(next && Object.keys(next).length ? { ...next } : null);
|
|
336
|
+
};
|
|
337
|
+
sdk.event.on("salla-filters::changed", onChanged);
|
|
338
|
+
return () => sdk.event.off("salla-filters::changed", onChanged);
|
|
339
|
+
}, [enabled, source.type, source.value]);
|
|
340
|
+
const key = filters ? JSON.stringify([source.type, source.value, sort, filters]) : "";
|
|
341
|
+
useEffect(() => {
|
|
342
|
+
if (!filters) return;
|
|
343
|
+
const controller = new AbortController();
|
|
344
|
+
setFailedKey(null);
|
|
345
|
+
product.list({
|
|
346
|
+
source: source.type,
|
|
347
|
+
sourceValue: source.value,
|
|
348
|
+
sort,
|
|
349
|
+
filterable: true,
|
|
350
|
+
filters,
|
|
351
|
+
signal: controller.signal
|
|
352
|
+
}).then((res) => setResult({ key, page: { items: res.items, next: res.next } })).catch(() => {
|
|
353
|
+
if (!controller.signal.aborted) setFailedKey(key);
|
|
354
|
+
});
|
|
355
|
+
return () => controller.abort();
|
|
356
|
+
}, [key, attempt]);
|
|
357
|
+
const retry = useCallback(() => setAttempt((n) => n + 1), []);
|
|
358
|
+
if (!filters) return { filters: null, page: null, lastPage: null, status: "idle", retry };
|
|
359
|
+
const page = result?.key === key ? result.page : null;
|
|
360
|
+
const status = page ? "ready" : failedKey === key ? "error" : "loading";
|
|
361
|
+
return { filters, page, lastPage: result?.page ?? null, status, retry };
|
|
362
|
+
}
|
|
297
363
|
var FILTERED_PRODUCT_IMAGE_SIZES = "(min-width: 768px) 25vw, 33vw";
|
|
298
364
|
function ProductListPage({
|
|
299
365
|
page,
|
|
@@ -305,6 +371,7 @@ function ProductListPage({
|
|
|
305
371
|
}) {
|
|
306
372
|
const { t } = useTranslation();
|
|
307
373
|
const store = useStore();
|
|
374
|
+
const { theme } = useTwilight();
|
|
308
375
|
const navigate = useNavigate();
|
|
309
376
|
const selectedSort = query.sort;
|
|
310
377
|
const [filtersOpen, setFiltersOpen] = useState(false);
|
|
@@ -313,6 +380,17 @@ function ProductListPage({
|
|
|
313
380
|
const brand2 = isBrand ? source.entity : null;
|
|
314
381
|
const sortOptionsWithTrans = useMemo(() => sortOptions(selectedSort, t), [selectedSort, t]);
|
|
315
382
|
const location = useLocation();
|
|
383
|
+
const {
|
|
384
|
+
filters: appliedFilters,
|
|
385
|
+
page: filteredPage,
|
|
386
|
+
lastPage,
|
|
387
|
+
status: filterStatus,
|
|
388
|
+
retry: retryFilters
|
|
389
|
+
} = useAppliedFilters(source, selectedSort, !!showFilters);
|
|
390
|
+
const shownPage = filterStatus === "ready" ? filteredPage : lastPage;
|
|
391
|
+
const shownProducts = filterStatus === "error" ? [] : filterStatus === "idle" ? products : shownPage?.items ?? products;
|
|
392
|
+
const shownNext = filterStatus === "idle" ? pagination?.next : filterStatus === "ready" ? filteredPage?.next : null;
|
|
393
|
+
const filteredKey = filterStatus === "idle" ? "" : `-${filterStatus}${filterStatus === "ready" ? JSON.stringify(appliedFilters) : ""}`;
|
|
316
394
|
useEffect(() => {
|
|
317
395
|
const handleFiltersChanged = () => setFiltersOpen(false);
|
|
318
396
|
const sdk = window.salla;
|
|
@@ -333,10 +411,10 @@ function ProductListPage({
|
|
|
333
411
|
[navigate, location.pathname, location.searchStr]
|
|
334
412
|
);
|
|
335
413
|
const listKey = source.value ?? source.type;
|
|
336
|
-
const nextCursorRef = useRef(
|
|
414
|
+
const nextCursorRef = useRef(shownNext ?? null);
|
|
337
415
|
useEffect(() => {
|
|
338
|
-
nextCursorRef.current =
|
|
339
|
-
}, [
|
|
416
|
+
nextCursorRef.current = shownNext ?? null;
|
|
417
|
+
}, [shownNext]);
|
|
340
418
|
const loader = useCallback(async () => {
|
|
341
419
|
const nextUrl = nextCursorRef.current;
|
|
342
420
|
const cursorMatch = nextUrl?.match(/[?&]cursor=([^&]+)/);
|
|
@@ -345,13 +423,14 @@ function ProductListPage({
|
|
|
345
423
|
source: source.type,
|
|
346
424
|
sourceValue: source.value,
|
|
347
425
|
...cursor && { cursor },
|
|
348
|
-
sort: selectedSort
|
|
426
|
+
sort: selectedSort,
|
|
427
|
+
...appliedFilters && { filterable: true, filters: appliedFilters }
|
|
349
428
|
});
|
|
350
429
|
nextCursorRef.current = result.next;
|
|
351
430
|
return result;
|
|
352
|
-
}, [source.type, source.value, selectedSort]);
|
|
431
|
+
}, [source.type, source.value, selectedSort, appliedFilters]);
|
|
353
432
|
return /* @__PURE__ */ jsxs("div", { className: "container px-2.5 ms:px-5 mb-10", children: [
|
|
354
|
-
/* @__PURE__ */ jsx(LazyBreadcrumb, { page }),
|
|
433
|
+
theme?.settings?.product_index_show_breadcrumbs !== false && /* @__PURE__ */ jsx(LazyBreadcrumb, { page }),
|
|
355
434
|
isBrand && brand2 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
356
435
|
/* @__PURE__ */ jsx(
|
|
357
436
|
Image,
|
|
@@ -432,39 +511,58 @@ function ProductListPage({
|
|
|
432
511
|
] })
|
|
433
512
|
] }),
|
|
434
513
|
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.items.start" }),
|
|
435
|
-
/* @__PURE__ */ jsx(
|
|
436
|
-
|
|
514
|
+
/* @__PURE__ */ jsx(
|
|
515
|
+
"div",
|
|
437
516
|
{
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
icon: "sicon-shopping-bag",
|
|
452
|
-
message: t("pages.categories.no_products", "No products found in this category")
|
|
453
|
-
}
|
|
454
|
-
),
|
|
455
|
-
t: (key, fallback) => t(key, fallback || key),
|
|
456
|
-
children: (items) => items.map((prod, idx) => /* @__PURE__ */ jsx(
|
|
457
|
-
ProductCard,
|
|
517
|
+
className: `flex min-h-screen${filterStatus === "loading" ? " opacity-60" : ""}`,
|
|
518
|
+
"aria-busy": filterStatus === "loading",
|
|
519
|
+
children: filterStatus === "error" ? /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 flex flex-col items-center", children: [
|
|
520
|
+
/* @__PURE__ */ jsx(
|
|
521
|
+
LazyNoContent,
|
|
522
|
+
{
|
|
523
|
+
icon: "sicon-shopping-bag",
|
|
524
|
+
message: t("common.errors.error_occurred", "Something went wrong")
|
|
525
|
+
}
|
|
526
|
+
),
|
|
527
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: "link--primary mt-4", onClick: retryFilters, children: t("common.elements.try_again", "Try again") })
|
|
528
|
+
] }) : /* @__PURE__ */ jsx(
|
|
529
|
+
ItemsList,
|
|
458
530
|
{
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
531
|
+
resetKey: `${listKey}-${selectedSort}${filteredKey}`,
|
|
532
|
+
items: shownProducts,
|
|
533
|
+
loader,
|
|
534
|
+
mode: shownNext ? "infinite" : "static",
|
|
535
|
+
pageUrl: location.pathname + location.searchStr,
|
|
536
|
+
className: "s-products-list flex-1 min-w-0",
|
|
537
|
+
itemsClassName: `s-products-list-wrapper s-products-list-vertical-cards${showFilters ? " s-products-list-with-filters" : ""}`,
|
|
538
|
+
skeleton: /* @__PURE__ */ jsx(ProductCardSkeleton, {}),
|
|
539
|
+
skeletonType: "item",
|
|
540
|
+
skeletonCount: 12,
|
|
541
|
+
empty: /* @__PURE__ */ jsx(
|
|
542
|
+
LazyNoContent,
|
|
543
|
+
{
|
|
544
|
+
icon: "sicon-shopping-bag",
|
|
545
|
+
message: t(
|
|
546
|
+
"pages.categories.no_products",
|
|
547
|
+
"No products found in this category"
|
|
548
|
+
)
|
|
549
|
+
}
|
|
550
|
+
),
|
|
551
|
+
t: (key, fallback) => t(key, fallback || key),
|
|
552
|
+
children: (items) => items.map((prod, idx) => /* @__PURE__ */ jsx(
|
|
553
|
+
ProductCard,
|
|
554
|
+
{
|
|
555
|
+
product: prod,
|
|
556
|
+
index: idx,
|
|
557
|
+
sizes: showFilters ? FILTERED_PRODUCT_IMAGE_SIZES : void 0
|
|
558
|
+
},
|
|
559
|
+
prod.id
|
|
560
|
+
))
|
|
462
561
|
},
|
|
463
|
-
|
|
464
|
-
)
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
) }),
|
|
562
|
+
`${listKey}-${selectedSort}${filteredKey}`
|
|
563
|
+
)
|
|
564
|
+
}
|
|
565
|
+
),
|
|
468
566
|
/* @__PURE__ */ jsx(HookSlot, { name: "product:list.items.end" })
|
|
469
567
|
] })
|
|
470
568
|
] }),
|