@blocklet/list 0.12.87 → 0.12.89
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/lib/assets/locale.js +2 -0
- package/lib/base.js +40 -9
- package/lib/components/base-search.js +1 -1
- package/lib/components/show-resources-switch.js +43 -0
- package/lib/contexts/filter.js +7 -1
- package/lib/index.es.js +503 -452
- package/package.json +3 -3
package/lib/index.es.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { Global as
|
|
4
|
-
import { styled as
|
|
5
|
-
import
|
|
6
|
-
import { Button as
|
|
7
|
-
import
|
|
8
|
-
import { ErrorBoundary as
|
|
9
|
-
import { ErrorFallback as
|
|
10
|
-
import { createContext as
|
|
11
|
-
import
|
|
12
|
-
import { useReactive as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as h, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as fe } from "@mui/material/styles";
|
|
3
|
+
import { Global as ge, css as ye } from "@emotion/react";
|
|
4
|
+
import { styled as v } from "@arcblock/ux/lib/Theme";
|
|
5
|
+
import Ie from "@mui/icons-material/Sort";
|
|
6
|
+
import { Button as De, CircularProgress as Q, MenuList as _e, useMediaQuery as be, SvgIcon as Ne, Popper as Le, Grow as Me, Paper as Ae, ClickAwayListener as Fe, MenuItem as Oe, Chip as Ee, Grid as we, Box as N, OutlinedInput as qe, InputAdornment as ce, Typography as je, Hidden as pe } from "@mui/material";
|
|
7
|
+
import Ge from "@mui/icons-material/Face";
|
|
8
|
+
import { ErrorBoundary as Ue } from "react-error-boundary";
|
|
9
|
+
import { ErrorFallback as xe } from "@arcblock/ux/lib/ErrorBoundary";
|
|
10
|
+
import { createContext as Ke, useMemo as O, useState as A, useCallback as J, useEffect as j, useContext as We, forwardRef as He, useRef as E, memo as Ve, createElement as Qe, Fragment as Je } from "react";
|
|
11
|
+
import n from "prop-types";
|
|
12
|
+
import { useReactive as Xe, useInfiniteScroll as Ye, useRequest as Ze, useSize as et, useCreation as tt, useDebounceFn as rt } from "ahooks";
|
|
13
|
+
import ot from "lodash/orderBy";
|
|
14
|
+
import nt from "axios";
|
|
15
|
+
import lt from "json-stable-stringify";
|
|
16
16
|
import "lodash/cloneDeep";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { createRoot as
|
|
31
|
-
import { autocomplete as
|
|
32
|
-
import { useHotkeys as
|
|
33
|
-
import
|
|
17
|
+
import at from "color";
|
|
18
|
+
import ue from "flat";
|
|
19
|
+
import it from "@mui/icons-material/KeyboardArrowDown";
|
|
20
|
+
import st from "lodash/isEmpty";
|
|
21
|
+
import ct from "@mui/icons-material/FilterAltOutlined";
|
|
22
|
+
import pt from "@arcblock/ux/lib/Dialog";
|
|
23
|
+
import ut from "@mui/material/Button";
|
|
24
|
+
import dt from "@arcblock/ux/lib/Empty";
|
|
25
|
+
import mt from "react-infinite-scroll-hook";
|
|
26
|
+
import ht from "@mui/material/Box";
|
|
27
|
+
import ke from "@mui/material/Typography";
|
|
28
|
+
import ft from "@mui/icons-material/Search";
|
|
29
|
+
import gt from "@mui/icons-material/Close";
|
|
30
|
+
import { createRoot as yt } from "react-dom/client";
|
|
31
|
+
import { autocomplete as bt } from "@algolia/autocomplete-js";
|
|
32
|
+
import { useHotkeys as wt } from "react-hotkeys-hook";
|
|
33
|
+
import xt from "url-join";
|
|
34
|
+
import kt from "@arcblock/ux/lib/Switch";
|
|
34
35
|
import "@algolia/autocomplete-theme-classic/dist/theme.css";
|
|
35
|
-
const
|
|
36
|
+
const St = (e) => [
|
|
36
37
|
{
|
|
37
38
|
name: e("sort.popularity"),
|
|
38
39
|
value: "popularity"
|
|
@@ -49,27 +50,28 @@ const bt = (e) => [
|
|
|
49
50
|
name: e("sort.nameDescend"),
|
|
50
51
|
value: "nameDesc"
|
|
51
52
|
}
|
|
52
|
-
],
|
|
53
|
+
], vt = (e) => [
|
|
53
54
|
{ name: e("blocklet.free"), value: "free" },
|
|
54
55
|
{ name: e("blocklet.payment"), value: "payment" }
|
|
55
|
-
],
|
|
56
|
+
], Ct = (e = [], o = "en") => e.map((r) => ({ name: r.locales[o] || `Category.${o}`, value: r._id })), Pt = (e, o) => (
|
|
56
57
|
// eslint-disable-next-line no-prototype-builtins
|
|
57
|
-
e.replace(/{(\w*)}/g, (r, l) =>
|
|
58
|
-
),
|
|
59
|
-
const r = (e +
|
|
58
|
+
e.replace(/{(\w*)}/g, (r, l) => o.hasOwnProperty(l) ? o[l] : "")
|
|
59
|
+
), Tt = () => window.innerWidth <= 600, Rt = (e, o) => {
|
|
60
|
+
const r = (e + o) / o;
|
|
60
61
|
return r > 1 ? r.toFixed() : 1;
|
|
61
|
-
},
|
|
62
|
-
function
|
|
62
|
+
}, Bt = (e) => at(e).rgb().object();
|
|
63
|
+
function $t(e, o) {
|
|
63
64
|
let r;
|
|
64
|
-
return function(...
|
|
65
|
+
return function(...s) {
|
|
65
66
|
return r && clearTimeout(r), new Promise((c) => {
|
|
66
|
-
r = setTimeout(() => c(e(...
|
|
67
|
+
r = setTimeout(() => c(e(...s)), o);
|
|
67
68
|
});
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
|
-
const
|
|
71
|
+
const zt = $t((e) => Promise.resolve(e), 300), It = {
|
|
71
72
|
common: {
|
|
72
73
|
searchStore: "Search the store",
|
|
74
|
+
showResources: "Show resources",
|
|
73
75
|
price: "Price",
|
|
74
76
|
category: "Category",
|
|
75
77
|
resourceType: "Resource Type",
|
|
@@ -105,9 +107,10 @@ const Tt = Pt((e) => Promise.resolve(e), 300), Bt = {
|
|
|
105
107
|
autocomplete: {
|
|
106
108
|
expandResult: 'Show {number} search results for "{name}" '
|
|
107
109
|
}
|
|
108
|
-
},
|
|
110
|
+
}, Dt = {
|
|
109
111
|
common: {
|
|
110
112
|
searchStore: "搜索商店内应用",
|
|
113
|
+
showResources: "显示资源型应用",
|
|
111
114
|
price: "价格",
|
|
112
115
|
category: "类别",
|
|
113
116
|
resourceType: "资源类型",
|
|
@@ -143,30 +146,30 @@ const Tt = Pt((e) => Promise.resolve(e), 300), Bt = {
|
|
|
143
146
|
autocomplete: {
|
|
144
147
|
expandResult: "显示 {number} 条 “{name}” 的搜索结果 "
|
|
145
148
|
}
|
|
146
|
-
},
|
|
147
|
-
en:
|
|
148
|
-
zh:
|
|
149
|
-
},
|
|
150
|
-
filters:
|
|
151
|
-
keyword:
|
|
152
|
-
sortBy:
|
|
153
|
-
sortDirection:
|
|
154
|
-
price:
|
|
155
|
-
category:
|
|
156
|
-
developer:
|
|
157
|
-
resourceType:
|
|
149
|
+
}, V = {
|
|
150
|
+
en: ue(It),
|
|
151
|
+
zh: ue(Dt)
|
|
152
|
+
}, Se = {
|
|
153
|
+
filters: n.shape({
|
|
154
|
+
keyword: n.string,
|
|
155
|
+
sortBy: n.string,
|
|
156
|
+
sortDirection: n.string,
|
|
157
|
+
price: n.string,
|
|
158
|
+
category: n.string,
|
|
159
|
+
developer: n.string,
|
|
160
|
+
resourceType: n.string
|
|
158
161
|
}),
|
|
159
|
-
wrapChildren:
|
|
160
|
-
extraFilter:
|
|
161
|
-
endpoint:
|
|
162
|
-
blockletRender:
|
|
163
|
-
onFilterChange:
|
|
164
|
-
onSearchSelect:
|
|
165
|
-
locale:
|
|
166
|
-
baseSearch:
|
|
162
|
+
wrapChildren: n.func,
|
|
163
|
+
extraFilter: n.func,
|
|
164
|
+
endpoint: n.string.isRequired,
|
|
165
|
+
blockletRender: n.func.isRequired,
|
|
166
|
+
onFilterChange: n.func,
|
|
167
|
+
onSearchSelect: n.func,
|
|
168
|
+
locale: n.oneOf(["zh", "en"]),
|
|
169
|
+
baseSearch: n.bool,
|
|
167
170
|
// sometimes blocklet list can be rendered only before the category is fetched
|
|
168
|
-
fetchCategoryDelay:
|
|
169
|
-
},
|
|
171
|
+
fetchCategoryDelay: n.number
|
|
172
|
+
}, ve = {
|
|
170
173
|
locale: "zh",
|
|
171
174
|
filters: {},
|
|
172
175
|
onFilterChange: () => {
|
|
@@ -178,7 +181,7 @@ const Tt = Pt((e) => Promise.resolve(e), 300), Bt = {
|
|
|
178
181
|
extraFilter: (e) => e,
|
|
179
182
|
baseSearch: !1,
|
|
180
183
|
fetchCategoryDelay: 0
|
|
181
|
-
},
|
|
184
|
+
}, z = {
|
|
182
185
|
nameAsc: "title",
|
|
183
186
|
nameDesc: "title",
|
|
184
187
|
popularity: "stats.downloads",
|
|
@@ -189,254 +192,264 @@ const Tt = Pt((e) => Promise.resolve(e), 300), Bt = {
|
|
|
189
192
|
blockletsPath: "/api/v2/blocklets.json",
|
|
190
193
|
categoriesPath: "/api/blocklets/categories",
|
|
191
194
|
cacheSize: 100
|
|
192
|
-
},
|
|
193
|
-
function
|
|
195
|
+
}, Ce = Ke({}), { Provider: _t, Consumer: $r } = Ce;
|
|
196
|
+
function X({
|
|
194
197
|
filters: e,
|
|
195
|
-
children:
|
|
198
|
+
children: o,
|
|
196
199
|
endpoint: r,
|
|
197
200
|
locale: l,
|
|
198
|
-
blockletRender:
|
|
201
|
+
blockletRender: s,
|
|
199
202
|
onFilterChange: c,
|
|
200
|
-
onSearchSelect:
|
|
203
|
+
onSearchSelect: b,
|
|
201
204
|
extraFilter: g,
|
|
202
|
-
wrapChildren:
|
|
205
|
+
wrapChildren: u,
|
|
203
206
|
baseSearch: y,
|
|
204
|
-
serverVersion:
|
|
205
|
-
storeVersion:
|
|
206
|
-
fetchCategoryDelay: B
|
|
207
|
+
serverVersion: d,
|
|
208
|
+
storeVersion: C,
|
|
209
|
+
fetchCategoryDelay: B,
|
|
210
|
+
showResourcesSwitch: w
|
|
207
211
|
}) {
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
const
|
|
212
|
+
const T = {};
|
|
213
|
+
d && (T["x-blocklet-server-version"] = d), C && (T["x-blocklet-store-version"] = C);
|
|
214
|
+
const P = O(() => nt.create({
|
|
211
215
|
baseURL: r,
|
|
212
|
-
headers:
|
|
213
|
-
}), [r]),
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}), [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
216
|
+
headers: T
|
|
217
|
+
}), [r]), i = O(() => ({
|
|
218
|
+
sortBy: "popularity",
|
|
219
|
+
sortDirection: "desc",
|
|
220
|
+
...e
|
|
221
|
+
}), [e]), p = i.category, S = Xe({
|
|
222
|
+
currentPage: z.currentPage,
|
|
223
|
+
pageSize: Tt() ? z.mobilePageSize : z.pageSize,
|
|
224
|
+
defaultCurrentPage: z.defaultCurrentPage
|
|
225
|
+
}), [x, $] = A(null), {
|
|
226
|
+
data: f = { list: [], total: 0 },
|
|
227
|
+
loading: D,
|
|
228
|
+
loadMore: G,
|
|
229
|
+
loadingMore: U
|
|
230
|
+
} = Ye(
|
|
223
231
|
async (a) => {
|
|
224
|
-
var
|
|
225
|
-
const
|
|
226
|
-
...
|
|
227
|
-
sortBy:
|
|
228
|
-
page:
|
|
229
|
-
pageSize:
|
|
232
|
+
var _;
|
|
233
|
+
const m = {
|
|
234
|
+
...i,
|
|
235
|
+
sortBy: z[i.sortBy],
|
|
236
|
+
page: Rt(((_ = a == null ? void 0 : a.list) == null ? void 0 : _.length) || 0, S.pageSize),
|
|
237
|
+
pageSize: S.pageSize
|
|
230
238
|
};
|
|
231
|
-
|
|
232
|
-
const { data:
|
|
233
|
-
params:
|
|
239
|
+
$(null);
|
|
240
|
+
const { data: k = {} } = await P.get(z.blockletsPath, {
|
|
241
|
+
params: m
|
|
234
242
|
});
|
|
235
|
-
return { list: (
|
|
243
|
+
return { list: (k == null ? void 0 : k.dataList) || [], total: (k == null ? void 0 : k.total) || 0 };
|
|
236
244
|
},
|
|
237
245
|
{
|
|
238
246
|
isNoMore: (a) => a ? a.list.length >= a.total : !1,
|
|
239
|
-
reloadDeps: [r,
|
|
247
|
+
reloadDeps: [r, lt(e)],
|
|
240
248
|
onError: (a) => {
|
|
241
|
-
|
|
249
|
+
$(a);
|
|
242
250
|
}
|
|
243
251
|
}
|
|
244
252
|
), {
|
|
245
|
-
data:
|
|
246
|
-
error:
|
|
247
|
-
loading:
|
|
248
|
-
run:
|
|
249
|
-
} =
|
|
253
|
+
data: L = [],
|
|
254
|
+
error: R,
|
|
255
|
+
loading: Te,
|
|
256
|
+
run: Re
|
|
257
|
+
} = Ze(
|
|
250
258
|
async () => {
|
|
251
|
-
const { data: a } = await
|
|
259
|
+
const { data: a } = await P.get(z.categoriesPath);
|
|
252
260
|
return Array.isArray(a) ? a : [];
|
|
253
261
|
},
|
|
254
262
|
{ manual: !0 }
|
|
255
|
-
),
|
|
256
|
-
(a,
|
|
257
|
-
const
|
|
258
|
-
return
|
|
263
|
+
), H = O(() => ot(L || [], [(m) => m.name], ["asc"]), [L]), ae = J(
|
|
264
|
+
(a, m) => {
|
|
265
|
+
const k = V[l] ? V[l][a] : V.en[a];
|
|
266
|
+
return Pt(k, m);
|
|
259
267
|
},
|
|
260
268
|
[l]
|
|
261
|
-
),
|
|
262
|
-
let a =
|
|
269
|
+
), ie = O(() => {
|
|
270
|
+
let a = f.list || [];
|
|
263
271
|
return a = g(a), a;
|
|
264
|
-
}, [
|
|
265
|
-
errors: { fetchBlockletsError:
|
|
266
|
-
loadings: { fetchBlockletsLoading:
|
|
272
|
+
}, [f, g]), Be = O(() => Ct(H, l), [H, l]), $e = vt(ae), ze = {
|
|
273
|
+
errors: { fetchBlockletsError: x, fetchCategoriesError: R },
|
|
274
|
+
loadings: { fetchBlockletsLoading: D, fetchCategoriesLoading: Te, loadingMore: U },
|
|
267
275
|
endpoint: r,
|
|
268
|
-
blockletList:
|
|
269
|
-
wrapChildren:
|
|
270
|
-
t:
|
|
271
|
-
filters:
|
|
272
|
-
selectedCategory:
|
|
273
|
-
categoryList:
|
|
274
|
-
blockletRender:
|
|
276
|
+
blockletList: ie,
|
|
277
|
+
wrapChildren: u,
|
|
278
|
+
t: ae,
|
|
279
|
+
filters: i,
|
|
280
|
+
selectedCategory: p,
|
|
281
|
+
categoryList: H,
|
|
282
|
+
blockletRender: s,
|
|
275
283
|
locale: l,
|
|
276
|
-
categoryOptions:
|
|
277
|
-
priceOptions:
|
|
278
|
-
storeApi:
|
|
284
|
+
categoryOptions: Be,
|
|
285
|
+
priceOptions: $e,
|
|
286
|
+
storeApi: P,
|
|
279
287
|
baseSearch: y,
|
|
280
|
-
|
|
288
|
+
showResourcesSwitch: w,
|
|
289
|
+
hasNextPage: f.list.length < f.total,
|
|
281
290
|
handleSort: (a) => {
|
|
282
|
-
const
|
|
283
|
-
...
|
|
291
|
+
const m = {
|
|
292
|
+
...i,
|
|
284
293
|
sortBy: a,
|
|
285
294
|
sortDirection: a === "nameAsc" ? "asc" : "desc"
|
|
286
295
|
};
|
|
287
|
-
c(
|
|
296
|
+
c(m);
|
|
288
297
|
},
|
|
289
298
|
handleKeyword: (a) => {
|
|
290
|
-
const
|
|
291
|
-
c(
|
|
299
|
+
const m = { ...i, keyword: a || void 0 };
|
|
300
|
+
c(m);
|
|
292
301
|
},
|
|
293
302
|
handlePrice: (a) => {
|
|
294
|
-
const
|
|
295
|
-
...
|
|
296
|
-
price: a ===
|
|
303
|
+
const m = {
|
|
304
|
+
...i,
|
|
305
|
+
price: a === i.price ? void 0 : a
|
|
297
306
|
};
|
|
298
|
-
c(
|
|
307
|
+
c(m);
|
|
299
308
|
},
|
|
300
309
|
handleCategory: (a) => {
|
|
301
|
-
let
|
|
302
|
-
(a === "all" || a ===
|
|
303
|
-
const
|
|
304
|
-
c(
|
|
310
|
+
let m = a;
|
|
311
|
+
(a === "all" || a === i.category) && (m = void 0);
|
|
312
|
+
const k = { ...i, category: m };
|
|
313
|
+
c(k);
|
|
305
314
|
},
|
|
306
315
|
handleDeveloper: (a) => {
|
|
307
|
-
const
|
|
308
|
-
c(
|
|
316
|
+
const m = { ...i, owner: a || void 0 };
|
|
317
|
+
c(m);
|
|
309
318
|
},
|
|
310
319
|
handlePage: (a) => {
|
|
311
|
-
const
|
|
312
|
-
c(
|
|
320
|
+
const m = { ...i, currentPage: a };
|
|
321
|
+
c(m);
|
|
322
|
+
},
|
|
323
|
+
handleSwitchShowResources: () => {
|
|
324
|
+
const a = { ...i };
|
|
325
|
+
c(a);
|
|
313
326
|
},
|
|
314
327
|
loadMore: () => {
|
|
315
|
-
|
|
328
|
+
G();
|
|
316
329
|
},
|
|
317
330
|
getCategoryLocale: (a) => {
|
|
318
331
|
if (!a)
|
|
319
332
|
return null;
|
|
320
|
-
let
|
|
321
|
-
const
|
|
322
|
-
return
|
|
333
|
+
let m = null;
|
|
334
|
+
const k = L.find((_) => _._id === a);
|
|
335
|
+
return k && (m = k.locales[l]), m;
|
|
323
336
|
},
|
|
324
337
|
get developerName() {
|
|
325
|
-
var
|
|
326
|
-
return ((
|
|
327
|
-
var
|
|
328
|
-
return ((
|
|
329
|
-
})) == null ? void 0 :
|
|
338
|
+
var m, k;
|
|
339
|
+
return ((k = (m = ie.find((_) => {
|
|
340
|
+
var se;
|
|
341
|
+
return ((se = _ == null ? void 0 : _.owner) == null ? void 0 : se.did) === i.owner;
|
|
342
|
+
})) == null ? void 0 : m.owner) == null ? void 0 : k.name) || "";
|
|
330
343
|
},
|
|
331
|
-
handleSearchSelect:
|
|
344
|
+
handleSearchSelect: b
|
|
332
345
|
};
|
|
333
|
-
return
|
|
346
|
+
return j(() => {
|
|
334
347
|
setTimeout(() => {
|
|
335
|
-
|
|
348
|
+
Re();
|
|
336
349
|
}, B || 0);
|
|
337
|
-
}, [r]), /* @__PURE__ */ t(
|
|
350
|
+
}, [r]), /* @__PURE__ */ t(_t, { value: ze, children: o });
|
|
338
351
|
}
|
|
339
|
-
|
|
340
|
-
...
|
|
341
|
-
children:
|
|
352
|
+
X.propTypes = {
|
|
353
|
+
...Se,
|
|
354
|
+
children: n.any.isRequired
|
|
342
355
|
};
|
|
343
|
-
|
|
356
|
+
X.defaultProps = ve;
|
|
344
357
|
function I() {
|
|
345
|
-
const e =
|
|
358
|
+
const e = We(Ce);
|
|
346
359
|
return e || {};
|
|
347
360
|
}
|
|
348
|
-
const
|
|
361
|
+
const Nt = v(De)`
|
|
349
362
|
border-radius: 4px;
|
|
350
|
-
`,
|
|
351
|
-
|
|
363
|
+
`, Y = He(({ children: e, rounded: o, loading: r, disabled: l, ...s }, c) => /* @__PURE__ */ t(
|
|
364
|
+
Nt,
|
|
352
365
|
{
|
|
353
366
|
ref: c,
|
|
354
367
|
disableElevation: !0,
|
|
355
368
|
disabled: l || r,
|
|
356
|
-
...
|
|
357
|
-
startIcon: r && /* @__PURE__ */ t(
|
|
369
|
+
...s,
|
|
370
|
+
startIcon: r && /* @__PURE__ */ t(Q, { size: "1em" }),
|
|
358
371
|
children: e
|
|
359
372
|
}
|
|
360
373
|
));
|
|
361
|
-
|
|
362
|
-
children:
|
|
363
|
-
rounded:
|
|
364
|
-
loading:
|
|
365
|
-
disabled:
|
|
374
|
+
Y.propTypes = {
|
|
375
|
+
children: n.any,
|
|
376
|
+
rounded: n.bool,
|
|
377
|
+
loading: n.bool,
|
|
378
|
+
disabled: n.bool
|
|
366
379
|
};
|
|
367
|
-
|
|
380
|
+
Y.defaultProps = {
|
|
368
381
|
children: null,
|
|
369
382
|
rounded: !1,
|
|
370
383
|
loading: !1,
|
|
371
384
|
disabled: !1
|
|
372
385
|
};
|
|
373
|
-
function
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}, [
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
}, []),
|
|
381
|
-
|
|
386
|
+
function Z({ title: e, value: o, icon: r, prepend: l, options: s, onChange: c, itemRender: b, ...g }) {
|
|
387
|
+
const u = E(null), y = fe(), [d, C] = A(!1), [B, w] = A(o !== null ? o : ""), T = be(y.breakpoints.down("sm"));
|
|
388
|
+
j(() => {
|
|
389
|
+
w(o !== null ? o : "");
|
|
390
|
+
}, [o]);
|
|
391
|
+
const P = J(() => {
|
|
392
|
+
C(!1);
|
|
393
|
+
}, []), i = J(() => {
|
|
394
|
+
C(!0);
|
|
382
395
|
}, []);
|
|
383
|
-
function
|
|
384
|
-
|
|
396
|
+
function p(x) {
|
|
397
|
+
w(x.value), c(x.value), T && P();
|
|
385
398
|
}
|
|
386
|
-
function
|
|
399
|
+
function S(x) {
|
|
387
400
|
return x === B;
|
|
388
401
|
}
|
|
389
|
-
return /* @__PURE__ */
|
|
390
|
-
/* @__PURE__ */
|
|
391
|
-
|
|
402
|
+
return /* @__PURE__ */ h(he, { children: [
|
|
403
|
+
/* @__PURE__ */ h(
|
|
404
|
+
Lt,
|
|
392
405
|
{
|
|
393
|
-
ref:
|
|
394
|
-
onClick:
|
|
406
|
+
ref: u,
|
|
407
|
+
onClick: i,
|
|
395
408
|
variant: "outlined",
|
|
396
409
|
size: "small",
|
|
397
|
-
className: ["my-select__selector",
|
|
410
|
+
className: ["my-select__selector", st(B) ? "" : "my-select__selector--active"].join(" "),
|
|
398
411
|
...g,
|
|
399
412
|
children: [
|
|
400
413
|
/* @__PURE__ */ t("div", { className: "my-select__icon", children: r }),
|
|
401
414
|
e,
|
|
402
|
-
/* @__PURE__ */ t(
|
|
415
|
+
/* @__PURE__ */ t(Ne, { className: "my-select__arrowdown", component: it, fontSize: "small" })
|
|
403
416
|
]
|
|
404
417
|
}
|
|
405
418
|
),
|
|
406
|
-
/* @__PURE__ */ t(
|
|
407
|
-
|
|
419
|
+
/* @__PURE__ */ t(Le, { open: d, anchorEl: u.current, transition: !0, style: { zIndex: "9999" }, children: ({ TransitionProps: x, placement: $ }) => /* @__PURE__ */ t(
|
|
420
|
+
Me,
|
|
408
421
|
{
|
|
409
422
|
...x,
|
|
410
|
-
style: { transformOrigin:
|
|
411
|
-
children: /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(
|
|
423
|
+
style: { transformOrigin: $ === "bottom" ? "center top" : "center bottom" },
|
|
424
|
+
children: /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Fe, { onClickAway: P, children: /* @__PURE__ */ h(Mt, { autoFocusItem: d, onMouseEnter: i, onMouseLeave: P, children: [
|
|
412
425
|
l,
|
|
413
|
-
|
|
414
|
-
|
|
426
|
+
s.map((f) => b ? b(f) : /* @__PURE__ */ t(
|
|
427
|
+
Oe,
|
|
415
428
|
{
|
|
416
|
-
onClick: () =>
|
|
429
|
+
onClick: () => p(f),
|
|
417
430
|
className: [
|
|
418
431
|
"my-select__option",
|
|
419
|
-
|
|
432
|
+
S(f.value) ? "my-select__option--active" : ""
|
|
420
433
|
].join(" "),
|
|
421
|
-
children:
|
|
434
|
+
children: f.name
|
|
422
435
|
},
|
|
423
|
-
|
|
436
|
+
f.value
|
|
424
437
|
))
|
|
425
438
|
] }) }) })
|
|
426
439
|
}
|
|
427
440
|
) })
|
|
428
441
|
] });
|
|
429
442
|
}
|
|
430
|
-
|
|
431
|
-
options:
|
|
432
|
-
value:
|
|
433
|
-
onChange:
|
|
434
|
-
itemRender:
|
|
435
|
-
title:
|
|
436
|
-
icon:
|
|
437
|
-
prepend:
|
|
443
|
+
Z.propTypes = {
|
|
444
|
+
options: n.array.isRequired,
|
|
445
|
+
value: n.oneOfType([n.string, n.number, n.array]),
|
|
446
|
+
onChange: n.func,
|
|
447
|
+
itemRender: n.func,
|
|
448
|
+
title: n.string.isRequired,
|
|
449
|
+
icon: n.any,
|
|
450
|
+
prepend: n.any
|
|
438
451
|
};
|
|
439
|
-
|
|
452
|
+
Z.defaultProps = {
|
|
440
453
|
value: null,
|
|
441
454
|
icon: null,
|
|
442
455
|
prepend: null,
|
|
@@ -444,7 +457,7 @@ J.defaultProps = {
|
|
|
444
457
|
onChange: () => {
|
|
445
458
|
}
|
|
446
459
|
};
|
|
447
|
-
const
|
|
460
|
+
const Lt = v(Y)`
|
|
448
461
|
border: 1px solid #f0f0f0;
|
|
449
462
|
padding: 6px 8px 6px 12px;
|
|
450
463
|
font-weight: ${(e) => e.theme.typography.fontWeightBold};
|
|
@@ -476,7 +489,7 @@ const It = C(Q)`
|
|
|
476
489
|
margin-right: 3px;
|
|
477
490
|
}
|
|
478
491
|
}
|
|
479
|
-
`,
|
|
492
|
+
`, Mt = v(_e)`
|
|
480
493
|
.my-select__option__icon {
|
|
481
494
|
color: transparent;
|
|
482
495
|
font-size: 16px;
|
|
@@ -493,23 +506,23 @@ const It = C(Q)`
|
|
|
493
506
|
}
|
|
494
507
|
}
|
|
495
508
|
`;
|
|
496
|
-
function
|
|
497
|
-
return /* @__PURE__ */
|
|
509
|
+
function F({ options: e, onChange: o, title: r, value: l }) {
|
|
510
|
+
return /* @__PURE__ */ h(At, { children: [
|
|
498
511
|
/* @__PURE__ */ t("div", { className: "title", children: r }),
|
|
499
|
-
/* @__PURE__ */ t("div", { className: "list", children: e.map((
|
|
512
|
+
/* @__PURE__ */ t("div", { className: "list", children: e.map((s) => /* @__PURE__ */ t(
|
|
500
513
|
"div",
|
|
501
514
|
{
|
|
502
|
-
title:
|
|
515
|
+
title: s.name,
|
|
503
516
|
"data-cy": "filter",
|
|
504
|
-
className: l ===
|
|
505
|
-
onClick: () =>
|
|
506
|
-
children:
|
|
517
|
+
className: l === s.value ? "select item" : "item",
|
|
518
|
+
onClick: () => o(s.value),
|
|
519
|
+
children: s.name
|
|
507
520
|
},
|
|
508
|
-
|
|
521
|
+
s.value
|
|
509
522
|
)) })
|
|
510
523
|
] });
|
|
511
524
|
}
|
|
512
|
-
const
|
|
525
|
+
const At = v("div")`
|
|
513
526
|
.title {
|
|
514
527
|
font-size: 18px;
|
|
515
528
|
font-weight: bold;
|
|
@@ -537,48 +550,48 @@ const Dt = C("div")`
|
|
|
537
550
|
font-weight: bold;
|
|
538
551
|
}
|
|
539
552
|
`;
|
|
540
|
-
|
|
541
|
-
title:
|
|
542
|
-
options:
|
|
543
|
-
onChange:
|
|
544
|
-
value:
|
|
553
|
+
F.propTypes = {
|
|
554
|
+
title: n.string.isRequired,
|
|
555
|
+
options: n.array.isRequired,
|
|
556
|
+
onChange: n.func.isRequired,
|
|
557
|
+
value: n.oneOfType([n.string, n.number])
|
|
545
558
|
};
|
|
546
|
-
|
|
559
|
+
F.defaultProps = {
|
|
547
560
|
value: null
|
|
548
561
|
};
|
|
549
|
-
function
|
|
550
|
-
const { selectedCategory: e, handleCategory:
|
|
551
|
-
|
|
562
|
+
function ee() {
|
|
563
|
+
const { selectedCategory: e, handleCategory: o, t: r, handlePrice: l, filters: s, categoryOptions: c, priceOptions: b } = I(), [g, u] = A(!1), y = (d, C) => {
|
|
564
|
+
d === "category" && o(C), d === "price" && l(C), u(!1);
|
|
552
565
|
};
|
|
553
|
-
return /* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */ t(
|
|
555
|
-
/* @__PURE__ */
|
|
566
|
+
return /* @__PURE__ */ h(Ft, { children: [
|
|
567
|
+
/* @__PURE__ */ t(ut, { variant: "outlined", className: "filter-button", onClick: () => u(!0), children: /* @__PURE__ */ t(ct, { className: "filter-icon", fontSize: "small" }) }),
|
|
568
|
+
/* @__PURE__ */ h(pt, { fullWidth: !0, title: "", open: g, onClose: () => u(!1), children: [
|
|
556
569
|
/* @__PURE__ */ t(
|
|
557
|
-
|
|
570
|
+
F,
|
|
558
571
|
{
|
|
559
572
|
title: r("common.price"),
|
|
560
|
-
options:
|
|
561
|
-
value:
|
|
562
|
-
onChange: (
|
|
563
|
-
y("price",
|
|
573
|
+
options: b,
|
|
574
|
+
value: s.price,
|
|
575
|
+
onChange: (d) => {
|
|
576
|
+
y("price", d);
|
|
564
577
|
}
|
|
565
578
|
}
|
|
566
579
|
),
|
|
567
580
|
c.length > 0 && /* @__PURE__ */ t("div", { style: { marginTop: "16px" }, children: /* @__PURE__ */ t(
|
|
568
|
-
|
|
581
|
+
F,
|
|
569
582
|
{
|
|
570
583
|
title: r("common.category"),
|
|
571
584
|
options: c,
|
|
572
585
|
value: e,
|
|
573
|
-
onChange: (
|
|
574
|
-
y("category",
|
|
586
|
+
onChange: (d) => {
|
|
587
|
+
y("category", d);
|
|
575
588
|
}
|
|
576
589
|
}
|
|
577
590
|
) })
|
|
578
591
|
] })
|
|
579
592
|
] });
|
|
580
593
|
}
|
|
581
|
-
const
|
|
594
|
+
const Ft = v("div")`
|
|
582
595
|
.filter-button {
|
|
583
596
|
margin-right: 16px;
|
|
584
597
|
border-color: rgb(240, 240, 240);
|
|
@@ -590,9 +603,9 @@ const Nt = C("div")`
|
|
|
590
603
|
color: ${(e) => e.theme.palette.grey[500]};
|
|
591
604
|
}
|
|
592
605
|
`;
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
const
|
|
606
|
+
ee.propTypes = {};
|
|
607
|
+
ee.defaultProps = {};
|
|
608
|
+
const Ot = v("div")`
|
|
596
609
|
.MuiChip-root {
|
|
597
610
|
border-radius: 4px;
|
|
598
611
|
height: initial;
|
|
@@ -601,139 +614,139 @@ const At = C("div")`
|
|
|
601
614
|
padding: 4px 0;
|
|
602
615
|
}
|
|
603
616
|
`;
|
|
604
|
-
function
|
|
605
|
-
return e ? /* @__PURE__ */ t(
|
|
617
|
+
function M({ label: e, icon: o, onDelete: r, ...l }) {
|
|
618
|
+
return e ? /* @__PURE__ */ t(Ot, { ...l, children: /* @__PURE__ */ t(Ee, { color: "primary", "data-cy": "filter-tag", icon: o, label: e, onDelete: r }) }) : null;
|
|
606
619
|
}
|
|
607
|
-
|
|
608
|
-
label:
|
|
609
|
-
onDelete:
|
|
610
|
-
icon:
|
|
620
|
+
M.propTypes = {
|
|
621
|
+
label: n.string,
|
|
622
|
+
onDelete: n.func,
|
|
623
|
+
icon: n.element
|
|
611
624
|
};
|
|
612
|
-
|
|
625
|
+
M.defaultProps = {
|
|
613
626
|
onDelete: null,
|
|
614
627
|
icon: null,
|
|
615
628
|
label: null
|
|
616
629
|
};
|
|
617
|
-
function
|
|
630
|
+
function de() {
|
|
618
631
|
const { t: e } = I();
|
|
619
|
-
return /* @__PURE__ */ t(
|
|
632
|
+
return /* @__PURE__ */ t(ke, { style: { textAlign: "center" }, variant: "subtitle2", children: e("blocklet.noResults") });
|
|
620
633
|
}
|
|
621
|
-
function
|
|
622
|
-
const { t: r, locale: l } = I(),
|
|
623
|
-
return /* @__PURE__ */
|
|
634
|
+
function q({ filterTip: e, keywordTip: o }) {
|
|
635
|
+
const { t: r, locale: l } = I(), s = () => l === "zh" ? "、" : " , ";
|
|
636
|
+
return /* @__PURE__ */ h(ht, { className: "tips", children: [
|
|
624
637
|
/* @__PURE__ */ t("span", { style: { marginRight: "16px" }, children: r("blocklet.emptyTip") }),
|
|
625
638
|
e && /* @__PURE__ */ t("span", { children: r("blocklet.filterTip") }),
|
|
626
|
-
e &&
|
|
627
|
-
|
|
639
|
+
e && o && s(),
|
|
640
|
+
o && /* @__PURE__ */ t("span", { children: r("blocklet.keywordTip") })
|
|
628
641
|
] });
|
|
629
642
|
}
|
|
630
|
-
|
|
631
|
-
filterTip:
|
|
632
|
-
keywordTip:
|
|
643
|
+
q.propTypes = {
|
|
644
|
+
filterTip: n.bool,
|
|
645
|
+
keywordTip: n.bool
|
|
633
646
|
};
|
|
634
|
-
|
|
647
|
+
q.defaultProps = {
|
|
635
648
|
filterTip: !1,
|
|
636
649
|
keywordTip: !1
|
|
637
650
|
};
|
|
638
|
-
function
|
|
639
|
-
return /* @__PURE__ */
|
|
651
|
+
function W({ primaryStart: e, primaryEnd: o, filter: r }) {
|
|
652
|
+
return /* @__PURE__ */ h(ke, { variant: "subtitle2", children: [
|
|
640
653
|
/* @__PURE__ */ t("span", { children: e }),
|
|
641
|
-
/* @__PURE__ */
|
|
654
|
+
/* @__PURE__ */ h("span", { className: "primary", children: [
|
|
642
655
|
" ",
|
|
643
656
|
r,
|
|
644
657
|
" "
|
|
645
658
|
] }),
|
|
646
|
-
/* @__PURE__ */
|
|
647
|
-
|
|
659
|
+
/* @__PURE__ */ h("span", { children: [
|
|
660
|
+
o,
|
|
648
661
|
" "
|
|
649
662
|
] })
|
|
650
663
|
] });
|
|
651
664
|
}
|
|
652
|
-
|
|
653
|
-
primaryStart:
|
|
654
|
-
primaryEnd:
|
|
655
|
-
filter:
|
|
665
|
+
W.propTypes = {
|
|
666
|
+
primaryStart: n.string.isRequired,
|
|
667
|
+
primaryEnd: n.string.isRequired,
|
|
668
|
+
filter: n.string.isRequired
|
|
656
669
|
};
|
|
657
|
-
function
|
|
670
|
+
function te({ blocklets: e, ...o }) {
|
|
658
671
|
const {
|
|
659
672
|
blockletRender: r,
|
|
660
673
|
errors: l,
|
|
661
|
-
loadings:
|
|
674
|
+
loadings: s,
|
|
662
675
|
selectedCategory: c,
|
|
663
|
-
getCategoryLocale:
|
|
676
|
+
getCategoryLocale: b,
|
|
664
677
|
filters: g,
|
|
665
|
-
t:
|
|
678
|
+
t: u,
|
|
666
679
|
hasNextPage: y,
|
|
667
|
-
loadMore:
|
|
668
|
-
endpoint:
|
|
669
|
-
} = I(), B =
|
|
670
|
-
loading:
|
|
680
|
+
loadMore: d,
|
|
681
|
+
endpoint: C
|
|
682
|
+
} = I(), B = E(null), w = et(B.current), T = tt(() => w ? w.width > 900 ? 12 : w.width > 600 ? 8 : 4 : 0, [w]), P = !!c || !!g.price, [i] = mt({
|
|
683
|
+
loading: s.fetchBlockletsLoading || s.loadingMore,
|
|
671
684
|
hasNextPage: y,
|
|
672
|
-
onLoadMore:
|
|
685
|
+
onLoadMore: d
|
|
673
686
|
});
|
|
674
687
|
if (l.fetchBlockletsError)
|
|
675
688
|
return /* @__PURE__ */ t(
|
|
676
|
-
|
|
689
|
+
xe,
|
|
677
690
|
{
|
|
678
|
-
error: new Error(`Failed to fetch blocklets from ${
|
|
691
|
+
error: new Error(`Failed to fetch blocklets from ${C}: ${l.fetchBlockletsError.message}`)
|
|
679
692
|
}
|
|
680
693
|
);
|
|
681
|
-
if (
|
|
682
|
-
return /* @__PURE__ */ t(
|
|
683
|
-
if (g.keyword &&
|
|
684
|
-
return /* @__PURE__ */
|
|
694
|
+
if (s.fetchBlockletsLoading)
|
|
695
|
+
return /* @__PURE__ */ t(N, { height: 60, display: "flex", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ t(Q, {}) });
|
|
696
|
+
if (g.keyword && P && e.length === 0)
|
|
697
|
+
return /* @__PURE__ */ h(K, { children: [
|
|
685
698
|
/* @__PURE__ */ t(
|
|
686
|
-
|
|
699
|
+
W,
|
|
687
700
|
{
|
|
688
|
-
primaryStart:
|
|
689
|
-
primaryEnd:
|
|
701
|
+
primaryStart: u("blocklet.noBlockletPart1"),
|
|
702
|
+
primaryEnd: u("blocklet.noBlockletPart2"),
|
|
690
703
|
filter: g.keyword
|
|
691
704
|
}
|
|
692
705
|
),
|
|
693
|
-
/* @__PURE__ */ t(
|
|
706
|
+
/* @__PURE__ */ t(q, { keywordTip: !0, filterTip: !0 })
|
|
694
707
|
] });
|
|
695
708
|
if (g.keyword && e.length === 0)
|
|
696
|
-
return /* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ h(K, { children: [
|
|
697
710
|
/* @__PURE__ */ t(
|
|
698
|
-
|
|
711
|
+
W,
|
|
699
712
|
{
|
|
700
|
-
primaryStart:
|
|
701
|
-
primaryEnd:
|
|
713
|
+
primaryStart: u("blocklet.noBlockletPart1"),
|
|
714
|
+
primaryEnd: u("blocklet.noBlockletPart2"),
|
|
702
715
|
filter: g.keyword
|
|
703
716
|
}
|
|
704
717
|
),
|
|
705
|
-
/* @__PURE__ */ t(
|
|
718
|
+
/* @__PURE__ */ t(q, { keywordTip: !0 })
|
|
706
719
|
] });
|
|
707
|
-
if (
|
|
708
|
-
const
|
|
709
|
-
return /* @__PURE__ */
|
|
710
|
-
|
|
711
|
-
|
|
720
|
+
if (P && e.length === 0) {
|
|
721
|
+
const p = b(c);
|
|
722
|
+
return /* @__PURE__ */ h(K, { children: [
|
|
723
|
+
p ? /* @__PURE__ */ t(
|
|
724
|
+
W,
|
|
712
725
|
{
|
|
713
|
-
primaryStart:
|
|
714
|
-
primaryEnd:
|
|
715
|
-
filter:
|
|
726
|
+
primaryStart: u("blocklet.noCategoryResults1"),
|
|
727
|
+
primaryEnd: u("blocklet.noCategoryResults2"),
|
|
728
|
+
filter: p
|
|
716
729
|
}
|
|
717
|
-
) : /* @__PURE__ */ t(
|
|
718
|
-
/* @__PURE__ */ t(
|
|
730
|
+
) : /* @__PURE__ */ t(de, {}),
|
|
731
|
+
/* @__PURE__ */ t(q, { filterTip: !0 })
|
|
719
732
|
] });
|
|
720
733
|
}
|
|
721
|
-
return e.length === 0 ? /* @__PURE__ */ t(
|
|
722
|
-
e.map((
|
|
723
|
-
y && /* @__PURE__ */ t(
|
|
734
|
+
return e.length === 0 ? /* @__PURE__ */ t(K, { children: /* @__PURE__ */ t(de, {}) }) : /* @__PURE__ */ h(Et, { container: !0, ...o, columns: T, ref: B, children: [
|
|
735
|
+
e.map((p) => /* @__PURE__ */ t(me, { item: !0, xs: 4, "data-blocklet-did": p.did, children: r({ blocklet: p, blocklets: e }) }, p.did)),
|
|
736
|
+
y && /* @__PURE__ */ t(me, { item: !0, xs: 12, ref: i, children: /* @__PURE__ */ t(N, { height: 60, display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Q, {}) }) })
|
|
724
737
|
] });
|
|
725
738
|
}
|
|
726
|
-
|
|
727
|
-
blocklets:
|
|
739
|
+
te.propTypes = {
|
|
740
|
+
blocklets: n.array.isRequired
|
|
728
741
|
};
|
|
729
|
-
|
|
730
|
-
const
|
|
742
|
+
te.defaultProps = {};
|
|
743
|
+
const Et = v(we)`
|
|
731
744
|
opacity: ${(e) => e.columns > 0 ? 1 : 0};
|
|
732
745
|
&.MuiGrid-root {
|
|
733
746
|
width: 100%;
|
|
734
747
|
margin: 0 -16px;
|
|
735
748
|
}
|
|
736
|
-
`,
|
|
749
|
+
`, me = Ve(v(we)`
|
|
737
750
|
@media (max-width: ${(e) => e.theme.breakpoints.values.sm}px) {
|
|
738
751
|
&.MuiGrid-item {
|
|
739
752
|
padding-bottom: 0px;
|
|
@@ -744,7 +757,7 @@ const Lt = C(he)`
|
|
|
744
757
|
margin-bottom: ${(e) => e.theme.spacing(2)};
|
|
745
758
|
}
|
|
746
759
|
}
|
|
747
|
-
`),
|
|
760
|
+
`), K = v(dt)`
|
|
748
761
|
text-align: center;
|
|
749
762
|
.primary {
|
|
750
763
|
color: ${(e) => e.theme.palette.primary.main};
|
|
@@ -753,22 +766,22 @@ const Lt = C(he)`
|
|
|
753
766
|
margin-top: ${(e) => e.theme.spacing(1)};
|
|
754
767
|
}
|
|
755
768
|
`;
|
|
756
|
-
function
|
|
757
|
-
const { selectedCategory: e, handleCategory:
|
|
758
|
-
return /* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
769
|
+
function re() {
|
|
770
|
+
const { selectedCategory: e, handleCategory: o, t: r, handlePrice: l, filters: s, categoryOptions: c, priceOptions: b } = I();
|
|
771
|
+
return /* @__PURE__ */ h(qt, { children: [
|
|
772
|
+
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(F, { title: r("common.price"), options: b, value: s.price, onChange: l }) }),
|
|
760
773
|
c.length > 0 && /* @__PURE__ */ t("div", { style: { marginTop: "16px" }, children: /* @__PURE__ */ t(
|
|
761
|
-
|
|
774
|
+
F,
|
|
762
775
|
{
|
|
763
776
|
title: r("common.category"),
|
|
764
777
|
options: c,
|
|
765
778
|
value: e,
|
|
766
|
-
onChange:
|
|
779
|
+
onChange: o
|
|
767
780
|
}
|
|
768
781
|
) })
|
|
769
782
|
] });
|
|
770
783
|
}
|
|
771
|
-
const
|
|
784
|
+
const qt = v("aside")`
|
|
772
785
|
width: 220px;
|
|
773
786
|
margin-right: ${(e) => e.theme.spacing(2)};
|
|
774
787
|
height: 100%;
|
|
@@ -777,44 +790,45 @@ const Mt = C("aside")`
|
|
|
777
790
|
overflow-y: auto;
|
|
778
791
|
z-index: auto;
|
|
779
792
|
`;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
function
|
|
783
|
-
const { filters: r, handleKeyword: l } = I(), [
|
|
784
|
-
const { value:
|
|
785
|
-
c(
|
|
786
|
-
},
|
|
793
|
+
re.propTypes = {};
|
|
794
|
+
re.defaultProps = {};
|
|
795
|
+
function oe({ placeholder: e, ...o }) {
|
|
796
|
+
const { filters: r, handleKeyword: l } = I(), [s, c] = A(r.keyword || ""), b = rt(l, { wait: 300 }), g = (y) => {
|
|
797
|
+
const { value: d } = y.target;
|
|
798
|
+
c(d), b.run(d);
|
|
799
|
+
}, u = () => {
|
|
787
800
|
c(""), l();
|
|
788
801
|
};
|
|
789
|
-
return
|
|
802
|
+
return j(() => {
|
|
790
803
|
c(r.keyword || "");
|
|
791
804
|
}, [r.keyword]), /* @__PURE__ */ t(
|
|
792
|
-
|
|
805
|
+
jt,
|
|
793
806
|
{
|
|
794
807
|
inputProps: {
|
|
795
808
|
"data-cy": "search-blocklet"
|
|
796
809
|
},
|
|
797
|
-
startAdornment: /* @__PURE__ */ t(
|
|
810
|
+
startAdornment: /* @__PURE__ */ t(ce, { position: "start", children: /* @__PURE__ */ t(Gt, {}) }),
|
|
798
811
|
onChange: g,
|
|
799
812
|
placeholder: e,
|
|
800
|
-
value:
|
|
813
|
+
value: s,
|
|
801
814
|
title: e,
|
|
802
815
|
"data-cy": "search",
|
|
803
|
-
endAdornment:
|
|
804
|
-
...
|
|
816
|
+
endAdornment: s && /* @__PURE__ */ t(ce, { position: "end", children: /* @__PURE__ */ t(Ut, { "data-cy": "search-delete", onClick: u }) }),
|
|
817
|
+
...o
|
|
805
818
|
}
|
|
806
819
|
);
|
|
807
820
|
}
|
|
808
|
-
|
|
809
|
-
placeholder:
|
|
821
|
+
oe.propTypes = {
|
|
822
|
+
placeholder: n.string
|
|
810
823
|
};
|
|
811
|
-
|
|
824
|
+
oe.defaultProps = {
|
|
812
825
|
placeholder: "Type to search..."
|
|
813
826
|
};
|
|
814
|
-
const
|
|
827
|
+
const jt = v(qe)`
|
|
815
828
|
background-color: ${(e) => e.theme.palette.grey[50]};
|
|
816
829
|
font-size: 14px;
|
|
817
830
|
border-radius: 6px;
|
|
831
|
+
width: 100%;
|
|
818
832
|
.MuiInputBase-input {
|
|
819
833
|
padding: 8px 0 8px 10px;
|
|
820
834
|
}
|
|
@@ -827,49 +841,49 @@ const Ot = C(Fe)`
|
|
|
827
841
|
color: transparent;
|
|
828
842
|
}
|
|
829
843
|
}
|
|
830
|
-
`,
|
|
844
|
+
`, Gt = v(ft)`
|
|
831
845
|
color: ${(e) => e.theme.palette.grey[500]};
|
|
832
846
|
font-size: 28px;
|
|
833
847
|
@media (max-width: ${(e) => e.theme.breakpoints.values.md}px) {
|
|
834
848
|
font-size: 24px;
|
|
835
849
|
}
|
|
836
|
-
`,
|
|
850
|
+
`, Ut = v(gt)`
|
|
837
851
|
color: ${(e) => e.theme.palette.grey[500]};
|
|
838
852
|
font-size: 16px;
|
|
839
853
|
cursor: pointer;
|
|
840
854
|
`;
|
|
841
|
-
function
|
|
842
|
-
const r =
|
|
843
|
-
const { data:
|
|
844
|
-
return
|
|
845
|
-
}, B = (
|
|
846
|
-
y(
|
|
847
|
-
},
|
|
855
|
+
function ne({ onSelect: e, wrapChildren: o }) {
|
|
856
|
+
const r = E(null), l = E(null), s = E(null), { storeApi: c, blockletRender: b, filters: g, endpoint: u, handleKeyword: y, t: d } = I(), C = async (i) => {
|
|
857
|
+
const { data: p } = await c.get(z.blockletsPath, { params: i }), S = p.dataList || [];
|
|
858
|
+
return S.length > 0 && S.unshift({ type: "more-result", total: p.total || 0 }), S;
|
|
859
|
+
}, B = (i) => {
|
|
860
|
+
y(i.state.query), i.setIsOpen(!1);
|
|
861
|
+
}, w = () => {
|
|
848
862
|
r.current && setTimeout(() => {
|
|
849
|
-
const
|
|
850
|
-
|
|
863
|
+
const i = r.current.querySelector("input.bl-autocomplete-input");
|
|
864
|
+
i && i.focus();
|
|
851
865
|
});
|
|
852
|
-
},
|
|
853
|
-
|
|
854
|
-
},
|
|
855
|
-
|
|
866
|
+
}, T = (i) => {
|
|
867
|
+
i.setIsOpen(!1), w();
|
|
868
|
+
}, P = ({ prevState: i, state: p }) => {
|
|
869
|
+
i.query !== p.query && (p.query || y());
|
|
856
870
|
};
|
|
857
|
-
return
|
|
871
|
+
return wt(
|
|
858
872
|
"ctrl + k, command + k",
|
|
859
|
-
(
|
|
873
|
+
(i) => (i.stopPropagation(), i.preventDefault(), w(), !1),
|
|
860
874
|
{ enableOnTags: ["INPUT"] }
|
|
861
|
-
),
|
|
862
|
-
|
|
863
|
-
}, [
|
|
875
|
+
), j(() => {
|
|
876
|
+
w();
|
|
877
|
+
}, [u]), j(() => {
|
|
864
878
|
if (!r.current)
|
|
865
879
|
return;
|
|
866
|
-
const
|
|
880
|
+
const i = bt({
|
|
867
881
|
container: r.current,
|
|
868
|
-
renderer: { createElement:
|
|
882
|
+
renderer: { createElement: Qe, Fragment: Je, render: () => {
|
|
869
883
|
} },
|
|
870
|
-
render({ children:
|
|
884
|
+
render({ children: p }, S) {
|
|
871
885
|
var x;
|
|
872
|
-
(!l.current ||
|
|
886
|
+
(!l.current || s.current !== S) && (s.current = S, (x = l.current) == null || x.unmount(), l.current = yt(S)), l.current.render(o(p));
|
|
873
887
|
},
|
|
874
888
|
autoFocus: !0,
|
|
875
889
|
openOnFocus: !1,
|
|
@@ -883,54 +897,54 @@ function te({ onSelect: e, wrapChildren: n }) {
|
|
|
883
897
|
detachedContainer: "bl-autocomplete-detached-container"
|
|
884
898
|
},
|
|
885
899
|
translations: {
|
|
886
|
-
clearButtonTitle:
|
|
887
|
-
detachedCancelButtonText:
|
|
888
|
-
submitButtonTitle:
|
|
889
|
-
detachedSearchButtonTitle:
|
|
900
|
+
clearButtonTitle: d("common.clear"),
|
|
901
|
+
detachedCancelButtonText: d("common.cancel"),
|
|
902
|
+
submitButtonTitle: d("common.search"),
|
|
903
|
+
detachedSearchButtonTitle: d("common.search")
|
|
890
904
|
},
|
|
891
|
-
placeholder:
|
|
905
|
+
placeholder: d("common.searchStore"),
|
|
892
906
|
initialState: {
|
|
893
907
|
query: g.keyword
|
|
894
908
|
},
|
|
895
|
-
onStateChange(
|
|
896
|
-
|
|
909
|
+
onStateChange(p) {
|
|
910
|
+
P(p);
|
|
897
911
|
},
|
|
898
912
|
onSubmit: B,
|
|
899
|
-
onReset(
|
|
900
|
-
|
|
913
|
+
onReset(p) {
|
|
914
|
+
T(p);
|
|
901
915
|
},
|
|
902
|
-
getSources({ query:
|
|
903
|
-
const
|
|
916
|
+
getSources({ query: p, state: S, ...x }) {
|
|
917
|
+
const $ = {
|
|
904
918
|
...g,
|
|
905
|
-
sortBy:
|
|
919
|
+
sortBy: z[g.sortBy],
|
|
906
920
|
page: 1,
|
|
907
921
|
pageSize: 10,
|
|
908
|
-
keyword:
|
|
922
|
+
keyword: p
|
|
909
923
|
};
|
|
910
|
-
return
|
|
924
|
+
return zt([
|
|
911
925
|
{
|
|
912
926
|
sourceId: "blocklets",
|
|
913
927
|
getItems() {
|
|
914
|
-
return
|
|
928
|
+
return C($);
|
|
915
929
|
},
|
|
916
930
|
// 选中后填充 搜索框中值
|
|
917
|
-
getItemInputValue({ item:
|
|
918
|
-
return
|
|
931
|
+
getItemInputValue({ item: f }) {
|
|
932
|
+
return f.type === "more-result" ? p : f.title;
|
|
919
933
|
},
|
|
920
934
|
// 选中或者点击自动完成列表中的 item 时触发
|
|
921
|
-
onSelect({ event:
|
|
922
|
-
return
|
|
923
|
-
blocklet:
|
|
924
|
-
detailUrl:
|
|
925
|
-
storeUrl:
|
|
935
|
+
onSelect({ event: f, item: D }) {
|
|
936
|
+
return D.type === "more-result" ? (x.setIsOpen(!1), y(p)) : f.type === "keydown" ? y(D.title) : e({
|
|
937
|
+
blocklet: D,
|
|
938
|
+
detailUrl: xt(u, `/blocklets/${D.did}`),
|
|
939
|
+
storeUrl: u
|
|
926
940
|
});
|
|
927
941
|
},
|
|
928
942
|
templates: {
|
|
929
|
-
item({ item:
|
|
930
|
-
return
|
|
943
|
+
item({ item: f }) {
|
|
944
|
+
return f.type === "more-result" ? /* @__PURE__ */ t("div", { children: d("autocomplete.expandResult", { name: p, number: f.total.toLocaleString() }) }) : b({ blocklet: f, autocompleteSetters: x });
|
|
931
945
|
},
|
|
932
946
|
noResults() {
|
|
933
|
-
return
|
|
947
|
+
return d("blocklet.noResults");
|
|
934
948
|
}
|
|
935
949
|
}
|
|
936
950
|
}
|
|
@@ -938,13 +952,13 @@ function te({ onSelect: e, wrapChildren: n }) {
|
|
|
938
952
|
}
|
|
939
953
|
});
|
|
940
954
|
return () => {
|
|
941
|
-
|
|
955
|
+
i.destroy();
|
|
942
956
|
};
|
|
943
|
-
}, [g,
|
|
957
|
+
}, [g, b]), /* @__PURE__ */ h(he, { children: [
|
|
944
958
|
/* @__PURE__ */ t(
|
|
945
|
-
|
|
959
|
+
ge,
|
|
946
960
|
{
|
|
947
|
-
styles:
|
|
961
|
+
styles: ye`
|
|
948
962
|
.bl-autocomplete-detached-container {
|
|
949
963
|
.bl-autocomplete-detached-cancel {
|
|
950
964
|
white-space: nowrap;
|
|
@@ -956,89 +970,126 @@ function te({ onSelect: e, wrapChildren: n }) {
|
|
|
956
970
|
/* @__PURE__ */ t("div", { className: "bl-search-container", ref: r })
|
|
957
971
|
] });
|
|
958
972
|
}
|
|
959
|
-
|
|
960
|
-
onSelect:
|
|
961
|
-
wrapChildren:
|
|
973
|
+
ne.propTypes = {
|
|
974
|
+
onSelect: n.func.isRequired,
|
|
975
|
+
wrapChildren: n.func
|
|
962
976
|
};
|
|
963
|
-
|
|
977
|
+
ne.defaultProps = {
|
|
964
978
|
wrapChildren: (e) => e
|
|
965
979
|
};
|
|
966
|
-
function
|
|
967
|
-
|
|
980
|
+
function le({ t: e }) {
|
|
981
|
+
const { filters: o, handleSwitchShowResources: r } = I(), l = () => {
|
|
982
|
+
o.showResources = !o.showResources, r();
|
|
983
|
+
};
|
|
984
|
+
return /* @__PURE__ */ t(
|
|
985
|
+
kt,
|
|
986
|
+
{
|
|
987
|
+
checked: o.showResources,
|
|
988
|
+
onChange: l,
|
|
989
|
+
labelProps: {
|
|
990
|
+
label: /* @__PURE__ */ t(je, { marginLeft: "8px", fontSize: "small", children: /* @__PURE__ */ t("span", { children: e("common.showResources") }) })
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
);
|
|
994
|
+
}
|
|
995
|
+
le.propTypes = {
|
|
996
|
+
t: n.func.isRequired
|
|
997
|
+
};
|
|
998
|
+
le.defaultProps = {};
|
|
999
|
+
function Kt() {
|
|
1000
|
+
var G, U, L;
|
|
968
1001
|
const {
|
|
969
1002
|
handleDeveloper: e,
|
|
970
|
-
blockletList:
|
|
1003
|
+
blockletList: o,
|
|
971
1004
|
filters: r,
|
|
972
1005
|
developerName: l,
|
|
973
|
-
handleSort:
|
|
1006
|
+
handleSort: s,
|
|
974
1007
|
handleCategory: c,
|
|
975
|
-
handlePrice:
|
|
1008
|
+
handlePrice: b,
|
|
976
1009
|
handleSearchSelect: g,
|
|
977
|
-
t:
|
|
1010
|
+
t: u,
|
|
978
1011
|
getCategoryLocale: y,
|
|
979
|
-
priceOptions:
|
|
980
|
-
wrapChildren:
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
/* @__PURE__ */
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
/* @__PURE__ */
|
|
990
|
-
|
|
1012
|
+
priceOptions: d,
|
|
1013
|
+
wrapChildren: C,
|
|
1014
|
+
showResourcesSwitch: B,
|
|
1015
|
+
baseSearch: w
|
|
1016
|
+
} = I(), T = St(u), P = ((G = T.find((R) => R.value === r.sortBy)) == null ? void 0 : G.name) || u("sort.sort"), i = y(r.category), { resourceType: p } = r || {}, S = (U = d.find((R) => R.value === r.price)) == null ? void 0 : U.name, [x, $] = A(!1), f = be((R) => R.breakpoints.down("md")), D = !w || x || f || ((L = r == null ? void 0 : r.keyword) == null ? void 0 : L.length);
|
|
1017
|
+
return /* @__PURE__ */ h(N, { display: "flex", alignItems: "flex-start", height: "100%", children: [
|
|
1018
|
+
/* @__PURE__ */ t(pe, { mdDown: !0, children: /* @__PURE__ */ t(re, {}) }),
|
|
1019
|
+
/* @__PURE__ */ h(Wt, { children: [
|
|
1020
|
+
/* @__PURE__ */ h(Ht, { children: [
|
|
1021
|
+
/* @__PURE__ */ h(N, { className: "filter-bar", display: "flex", alignItems: "center", children: [
|
|
1022
|
+
/* @__PURE__ */ t(
|
|
1023
|
+
"form",
|
|
1024
|
+
{
|
|
1025
|
+
className: "search-form",
|
|
1026
|
+
style: D ? { flex: 1, width: "100%" } : {},
|
|
1027
|
+
onSubmit: (R) => {
|
|
1028
|
+
R.preventDefault(), R.stopPropagation();
|
|
1029
|
+
},
|
|
1030
|
+
onFocus: () => {
|
|
1031
|
+
$(!0);
|
|
1032
|
+
},
|
|
1033
|
+
onBlur: () => {
|
|
1034
|
+
$(!1);
|
|
1035
|
+
},
|
|
1036
|
+
children: w ? /* @__PURE__ */ t(oe, { className: "bl-search-container", placeholder: u("common.searchStore") }) : /* @__PURE__ */ t(ne, { onSelect: g, wrapChildren: C })
|
|
1037
|
+
}
|
|
1038
|
+
),
|
|
1039
|
+
/* @__PURE__ */ h(N, { mt: 0, ml: "16px", className: "filter-container", display: "flex", alignItems: "center", children: [
|
|
1040
|
+
!f && B && /* @__PURE__ */ t(N, { ml: 1, mr: 1, children: /* @__PURE__ */ t(le, { t: u }) }),
|
|
1041
|
+
/* @__PURE__ */ t(pe, { mdUp: !0, children: /* @__PURE__ */ t(ee, {}) }),
|
|
991
1042
|
/* @__PURE__ */ t(
|
|
992
|
-
|
|
1043
|
+
Z,
|
|
993
1044
|
{
|
|
994
1045
|
value: r.sortBy,
|
|
995
|
-
options:
|
|
996
|
-
title:
|
|
997
|
-
icon: /* @__PURE__ */ t(
|
|
998
|
-
onChange: (
|
|
999
|
-
|
|
1046
|
+
options: T,
|
|
1047
|
+
title: P,
|
|
1048
|
+
icon: /* @__PURE__ */ t(Ie, {}),
|
|
1049
|
+
onChange: (R) => {
|
|
1050
|
+
s(R);
|
|
1000
1051
|
}
|
|
1001
1052
|
}
|
|
1002
1053
|
)
|
|
1003
1054
|
] })
|
|
1004
1055
|
] }),
|
|
1005
|
-
/* @__PURE__ */
|
|
1056
|
+
/* @__PURE__ */ h(N, { display: "flex", flexWrap: "wrap", alignItems: "center", mb: "16px", children: [
|
|
1006
1057
|
/* @__PURE__ */ t(
|
|
1007
|
-
|
|
1058
|
+
M,
|
|
1008
1059
|
{
|
|
1009
1060
|
label: l,
|
|
1010
|
-
icon: /* @__PURE__ */ t(
|
|
1061
|
+
icon: /* @__PURE__ */ t(Ge, {}),
|
|
1011
1062
|
onDelete: () => {
|
|
1012
1063
|
e(null);
|
|
1013
1064
|
}
|
|
1014
1065
|
}
|
|
1015
1066
|
),
|
|
1016
1067
|
/* @__PURE__ */ t(
|
|
1017
|
-
|
|
1068
|
+
M,
|
|
1018
1069
|
{
|
|
1019
|
-
label:
|
|
1070
|
+
label: i,
|
|
1020
1071
|
onDelete: () => {
|
|
1021
1072
|
c(null);
|
|
1022
1073
|
}
|
|
1023
1074
|
}
|
|
1024
1075
|
),
|
|
1025
1076
|
/* @__PURE__ */ t(
|
|
1026
|
-
|
|
1077
|
+
M,
|
|
1027
1078
|
{
|
|
1028
|
-
label:
|
|
1079
|
+
label: S,
|
|
1029
1080
|
onDelete: () => {
|
|
1030
|
-
|
|
1081
|
+
b(null);
|
|
1031
1082
|
}
|
|
1032
1083
|
}
|
|
1033
1084
|
),
|
|
1034
|
-
|
|
1085
|
+
p && /* @__PURE__ */ t(M, { label: `${u("common.resourceType")}: ${p}` })
|
|
1035
1086
|
] })
|
|
1036
1087
|
] }),
|
|
1037
|
-
/* @__PURE__ */ t(
|
|
1088
|
+
/* @__PURE__ */ t(Ue, { FallbackComponent: xe, children: /* @__PURE__ */ t("div", { style: { position: "relative", flex: 1, overflow: "auto" }, children: /* @__PURE__ */ t(te, { blocklets: o }) }) })
|
|
1038
1089
|
] })
|
|
1039
1090
|
] });
|
|
1040
1091
|
}
|
|
1041
|
-
const
|
|
1092
|
+
const Wt = v("main")`
|
|
1042
1093
|
display: flex;
|
|
1043
1094
|
flex-direction: column;
|
|
1044
1095
|
flex: 1;
|
|
@@ -1052,16 +1103,16 @@ const jt = C("main")`
|
|
|
1052
1103
|
white-space: nowrap;
|
|
1053
1104
|
}
|
|
1054
1105
|
.bl-search-container {
|
|
1055
|
-
flex: 2;
|
|
1056
1106
|
margin-left: 0px;
|
|
1057
1107
|
}
|
|
1058
|
-
|
|
1059
1108
|
.filter-container {
|
|
1060
|
-
flex: 1;
|
|
1061
1109
|
display: flex;
|
|
1062
1110
|
justify-content: flex-end;
|
|
1063
1111
|
}
|
|
1064
1112
|
@media (max-width: ${(e) => e.theme.breakpoints.values.md}px) {
|
|
1113
|
+
.search-form {
|
|
1114
|
+
flex: 1;
|
|
1115
|
+
}
|
|
1065
1116
|
.bl-search-container {
|
|
1066
1117
|
width: 100%;
|
|
1067
1118
|
margin-bottom: ${(e) => e.theme.spacing(2)};
|
|
@@ -1082,29 +1133,29 @@ const jt = C("main")`
|
|
|
1082
1133
|
font-size: 12px;
|
|
1083
1134
|
}
|
|
1084
1135
|
}
|
|
1085
|
-
`,
|
|
1136
|
+
`, Ht = v("div")`
|
|
1086
1137
|
position: sticky;
|
|
1087
1138
|
top: 0;
|
|
1088
1139
|
z-index: 9;
|
|
1089
1140
|
background-color: white;
|
|
1090
1141
|
`;
|
|
1091
|
-
function
|
|
1092
|
-
const
|
|
1093
|
-
autocomplete:
|
|
1142
|
+
function Pe(e) {
|
|
1143
|
+
const o = fe(), r = Bt(o.palette.primary.main), l = {
|
|
1144
|
+
autocomplete: ye`
|
|
1094
1145
|
:root {
|
|
1095
|
-
--aa-detached-media-query: (max-width: ${
|
|
1096
|
-
--aa-detached-modal-media-query: (min-width: ${
|
|
1097
|
-
--aa-detached-modal-max-width: ${
|
|
1146
|
+
--aa-detached-media-query: (max-width: ${o.breakpoints.values.md}px) !important;
|
|
1147
|
+
--aa-detached-modal-media-query: (min-width: ${o.breakpoints.values.md}px) !important;
|
|
1148
|
+
--aa-detached-modal-max-width: ${o.breakpoints.values.md}px !important;
|
|
1098
1149
|
--aa-selected-color-rgb: ${r.r}, ${r.g}, ${r.b} !important;
|
|
1099
1150
|
--aa-primary-color-rgb: ${r.r}, ${r.g}, ${r.b} !important;
|
|
1100
1151
|
--aa-input-background-color-rgb: 250, 250, 250 !important;
|
|
1101
1152
|
}
|
|
1102
1153
|
.bl-autocomplete-panel {
|
|
1103
|
-
z-index: ${
|
|
1154
|
+
z-index: ${o.zIndex.modal};
|
|
1104
1155
|
}
|
|
1105
1156
|
.bl-autocomplete-label {
|
|
1106
1157
|
.aa-SubmitIcon {
|
|
1107
|
-
color: ${
|
|
1158
|
+
color: ${o.palette.grey[500]} !important;
|
|
1108
1159
|
}
|
|
1109
1160
|
}
|
|
1110
1161
|
.bl-autocomplete-form {
|
|
@@ -1120,7 +1171,7 @@ function ke(e) {
|
|
|
1120
1171
|
box-shadow: none !important;
|
|
1121
1172
|
}
|
|
1122
1173
|
.aa-SubmitIcon {
|
|
1123
|
-
color: ${
|
|
1174
|
+
color: ${o.palette.grey[500]} !important;
|
|
1124
1175
|
}
|
|
1125
1176
|
}
|
|
1126
1177
|
.aa-Panel .arcblock-blocklet button {
|
|
@@ -1128,13 +1179,13 @@ function ke(e) {
|
|
|
1128
1179
|
}
|
|
1129
1180
|
`
|
|
1130
1181
|
};
|
|
1131
|
-
return /* @__PURE__ */
|
|
1132
|
-
/* @__PURE__ */ t(
|
|
1133
|
-
/* @__PURE__ */ t(
|
|
1182
|
+
return /* @__PURE__ */ h(X, { ...e, children: [
|
|
1183
|
+
/* @__PURE__ */ t(ge, { styles: l.autocomplete }),
|
|
1184
|
+
/* @__PURE__ */ t(Kt, {})
|
|
1134
1185
|
] });
|
|
1135
1186
|
}
|
|
1136
|
-
|
|
1137
|
-
|
|
1187
|
+
Pe.propTypes = Se;
|
|
1188
|
+
Pe.defaultProps = ve;
|
|
1138
1189
|
export {
|
|
1139
|
-
|
|
1190
|
+
Pe as default
|
|
1140
1191
|
};
|