@faststore/core 2.1.56 → 2.1.59
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +58 -58
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +9 -9
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/{90.js → 123.js} +12 -11
- package/.next/server/chunks/186.js +23 -22
- package/.next/server/chunks/{744.js → 247.js} +24 -23
- package/.next/server/chunks/{934.js → 253.js} +38 -37
- package/.next/server/chunks/{581.js → 269.js} +136 -132
- package/.next/server/chunks/287.js +58 -0
- package/.next/server/chunks/289.js +5 -4
- package/.next/server/chunks/312.js +231 -222
- package/.next/server/chunks/{309.js → 502.js} +78 -76
- package/.next/server/chunks/{751.js → 597.js} +20 -19
- package/.next/server/chunks/{430.js → 721.js} +25 -23
- package/.next/server/chunks/74.js +3090 -3061
- package/.next/server/chunks/{953.js → 81.js} +59 -55
- package/.next/server/chunks/{188.js → 886.js} +33 -32
- package/.next/server/chunks/907.js +342 -334
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.js +2 -2
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +2 -2
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +7 -7
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +86 -84
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +2 -2
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/account.js +1 -1
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/checkout.js +1 -1
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/index.js +3 -3
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +2 -2
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js +3 -3
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +4 -4
- package/.next/static/LRckpLQyS5Ij0gHWJjzOY/_buildManifest.js +1 -0
- package/.next/static/chunks/209-d1d2eeaeefbc68f7.js +1 -0
- package/.next/static/chunks/495.0ecd099878b2a36d.js +1 -0
- package/.next/static/chunks/502.b14533723651e5a1.js +1 -0
- package/.next/static/chunks/548-6b23e7ad82cd22b9.js +1 -0
- package/.next/static/chunks/597.f8d0595b113c70af.js +1 -0
- package/.next/static/chunks/{27.37e4942c9236a071.js → 64.2f385ef39cd5877d.js} +1 -1
- package/.next/static/chunks/706-b3046536d4b7dd3f.js +1 -0
- package/.next/static/chunks/{738-67a288ca3569cdbb.js → 738-a5ff304828f20cbf.js} +1 -1
- package/.next/static/chunks/791-5b3d23f5b6100959.js +1 -0
- package/.next/static/chunks/pages/404-14d27e3706f3d2c3.js +1 -0
- package/.next/static/chunks/pages/500-250ccf5c9626e451.js +1 -0
- package/.next/static/chunks/pages/{[...slug]-fd9cc16734d8f161.js → [...slug]-bcfaf0c5d60b57a0.js} +1 -1
- package/.next/static/chunks/pages/[slug]/p-44e66d729b2413fb.js +1 -0
- package/.next/static/chunks/pages/_app-b1b6e1a62892c937.js +1 -0
- package/.next/static/chunks/pages/account-d248acc931146694.js +1 -0
- package/.next/static/chunks/pages/checkout-97f6d6f36f041a6f.js +1 -0
- package/.next/static/chunks/pages/{index-e8b556e0a22cf818.js → index-bdbfb082027ed2b7.js} +1 -1
- package/.next/static/chunks/pages/login-b1bdf30c951bb60d.js +1 -0
- package/.next/static/chunks/pages/s-aabfa5c08338974a.js +1 -0
- package/.next/static/chunks/webpack-c4f0c1961bd5ae7d.js +1 -0
- package/.next/static/css/{e3d648c53f88c1b9.css → e3b039e8f5daf95f.css} +1 -1
- package/.next/trace +80 -80
- package/.turbo/turbo-build.log +6 -6
- package/package.json +4 -4
- package/.next/server/chunks/107.js +0 -56
- package/.next/static/chunks/309.548249b3b3588d3b.js +0 -1
- package/.next/static/chunks/33-7f26ec3a5ae7a227.js +0 -1
- package/.next/static/chunks/548-ab84e9e8b49413ab.js +0 -1
- package/.next/static/chunks/676.b7bc42f3e37ff88f.js +0 -1
- package/.next/static/chunks/686-78f207384adb0d83.js +0 -1
- package/.next/static/chunks/751.f9415d15cb5be269.js +0 -1
- package/.next/static/chunks/917-bf452887bdb70e03.js +0 -1
- package/.next/static/chunks/pages/404-7812758b206af5cc.js +0 -1
- package/.next/static/chunks/pages/500-0c1b954316d40621.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-5a83993d8ff855a6.js +0 -1
- package/.next/static/chunks/pages/_app-9c56c687b77a9a09.js +0 -1
- package/.next/static/chunks/pages/account-ac4fa43a2d996db5.js +0 -1
- package/.next/static/chunks/pages/checkout-fa13dc49318df859.js +0 -1
- package/.next/static/chunks/pages/login-5759fba9bb7ae351.js +0 -1
- package/.next/static/chunks/pages/s-a63dd94090d398be.js +0 -1
- package/.next/static/chunks/webpack-4864821bd2886d75.js +0 -1
- package/.next/static/dpPpHRcwG_9npTM76o66F/_buildManifest.js +0 -1
- /package/.next/static/{dpPpHRcwG_9npTM76o66F → LRckpLQyS5Ij0gHWJjzOY}/_ssgManifest.js +0 -0
|
@@ -3,6 +3,197 @@ exports.id = 312;
|
|
|
3
3
|
exports.ids = [312];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
|
+
/***/ 82155:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "R": () => (/* binding */ useSearch)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
+
/* harmony import */ var _molecules_SearchProvider_SearchProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78907);
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
const useSearch = () => {
|
|
18
|
+
const context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_molecules_SearchProvider_SearchProvider__WEBPACK_IMPORTED_MODULE_1__/* .SearchContext */ .c);
|
|
19
|
+
if (!context) {
|
|
20
|
+
return { inContext: false };
|
|
21
|
+
}
|
|
22
|
+
return { inContext: true, values: context };
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=useSearch.js.map
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
|
|
28
|
+
/***/ 66395:
|
|
29
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
30
|
+
|
|
31
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
33
|
+
/* harmony export */ });
|
|
34
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
35
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
36
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82155);
|
|
37
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41329);
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
const SearchAutoComplete = ({ testId = 'fs-search-auto-complete', children, ...otherProps }) => {
|
|
41
|
+
const { inContext, values } = (0,___WEBPACK_IMPORTED_MODULE_1__/* .useSearch */ .R)();
|
|
42
|
+
if (inContext && (values.terms.length <= 0 || values.term.length <= 0)) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", { "data-testid": testId, "data-fs-search-auto-complete": true, ...otherProps },
|
|
46
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { as: "ol" }, children)));
|
|
47
|
+
};
|
|
48
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchAutoComplete);
|
|
49
|
+
//# sourceMappingURL=SearchAutoComplete.js.map
|
|
50
|
+
|
|
51
|
+
/***/ }),
|
|
52
|
+
|
|
53
|
+
/***/ 36254:
|
|
54
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
55
|
+
|
|
56
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
57
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
58
|
+
/* harmony export */ });
|
|
59
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
60
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
61
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25045);
|
|
62
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87865);
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
function formatSearchTerm(indexSubstring, searchTerm, suggestion) {
|
|
66
|
+
if (indexSubstring === 0) {
|
|
67
|
+
return searchTerm
|
|
68
|
+
.split('')
|
|
69
|
+
.map((char, idx) => idx === 0 && suggestion.indexOf(char.toUpperCase()) === 0
|
|
70
|
+
? char.toUpperCase()
|
|
71
|
+
: char.toLowerCase())
|
|
72
|
+
.join('');
|
|
73
|
+
}
|
|
74
|
+
return searchTerm.toLowerCase();
|
|
75
|
+
}
|
|
76
|
+
const SearchAutoCompleteTerm = ({ testId = 'fs-search-auto-complete-term', suggestion, term, linkProps, icon = react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { name: "MagnifyingGlass", width: 18, height: 18 }), }) => {
|
|
77
|
+
const suggestionSubstring = suggestion.toLowerCase().split(term.toLowerCase());
|
|
78
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", { "data-fs-search-auto-complete-item": true, "data-testid": testId },
|
|
79
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { ...linkProps, "data-fs-search-auto-complete-item-link": true, variant: "display" },
|
|
80
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { "data-fs-search-auto-complete-item-icon": true }, icon),
|
|
81
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", null, suggestionSubstring.map((substring, indexSubstring) => (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: [substring, indexSubstring].join() },
|
|
82
|
+
substring.length > 0 && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("strong", { "data-fs-search-auto-complete-item-suggestion": true }, indexSubstring === 0
|
|
83
|
+
? substring.charAt(0).toUpperCase() + substring.slice(1)
|
|
84
|
+
: substring)),
|
|
85
|
+
indexSubstring !== suggestionSubstring.length - 1 &&
|
|
86
|
+
formatSearchTerm(indexSubstring, term, suggestion))))))));
|
|
87
|
+
};
|
|
88
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchAutoCompleteTerm);
|
|
89
|
+
//# sourceMappingURL=SearchAutoCompleteTerm.js.map
|
|
90
|
+
|
|
91
|
+
/***/ }),
|
|
92
|
+
|
|
93
|
+
/***/ 66780:
|
|
94
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
95
|
+
|
|
96
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
97
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
98
|
+
/* harmony export */ });
|
|
99
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
100
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
101
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82155);
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
const SearchLoading = () => {
|
|
105
|
+
const { inContext, values } = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useSearch */ .R)();
|
|
106
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, (inContext && values.isLoading) && react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", { "data-fs-search-dropdown-loading-text": true }, "Loading...")));
|
|
107
|
+
};
|
|
108
|
+
const SearchDropdown = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SearchDropdown({ testId = 'fs-search-dropdown', children, ...otherProps }, ref) {
|
|
109
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { ref: ref, "data-fs-search-dropdown": true, "data-testid": testId, ...otherProps },
|
|
110
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", null,
|
|
111
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SearchLoading, null),
|
|
112
|
+
children)));
|
|
113
|
+
});
|
|
114
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchDropdown);
|
|
115
|
+
//# sourceMappingURL=SearchDropdown.js.map
|
|
116
|
+
|
|
117
|
+
/***/ }),
|
|
118
|
+
|
|
119
|
+
/***/ 20395:
|
|
120
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
121
|
+
|
|
122
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
123
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
124
|
+
/* harmony export */ });
|
|
125
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
126
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
127
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82155);
|
|
128
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41329);
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
const SearchProductsProps = ({ testId = 'fs-search-products', title = 'Suggested Products', children, ...otherProps }) => {
|
|
132
|
+
const { inContext, values } = (0,___WEBPACK_IMPORTED_MODULE_1__/* .useSearch */ .R)();
|
|
133
|
+
if (inContext && (values.products.length <= 0)) {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", { "data-testid": testId, "data-fs-search-products": true, ...otherProps },
|
|
137
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("header", { "data-fs-search-products-header": true },
|
|
138
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", { "data-fs-search-products-title": true }, title)),
|
|
139
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { as: "ol" }, children)));
|
|
140
|
+
};
|
|
141
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchProductsProps);
|
|
142
|
+
//# sourceMappingURL=SearchProducts.js.map
|
|
143
|
+
|
|
144
|
+
/***/ }),
|
|
145
|
+
|
|
146
|
+
/***/ 92727:
|
|
147
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
148
|
+
|
|
149
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
150
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
151
|
+
/* harmony export */ });
|
|
152
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
153
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
154
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82155);
|
|
155
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41329);
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
const SearchTop = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SearchTop({ testId = 'fs-top-search', title = 'Top Search', children, ...otherProps }, ref) {
|
|
160
|
+
const { inContext, values } = (0,___WEBPACK_IMPORTED_MODULE_1__/* .useSearch */ .R)();
|
|
161
|
+
if (inContext && (values.term.length !== 0 || values.isLoading)) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", { ref: ref, "data-testid": testId, "data-fs-search-top": true, ...otherProps },
|
|
165
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("header", { "data-fs-search-top-header": true },
|
|
166
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", { "data-fs-search-top-title": true }, title)),
|
|
167
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { as: "ol" }, children)));
|
|
168
|
+
});
|
|
169
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchTop);
|
|
170
|
+
//# sourceMappingURL=SearchTop.js.map
|
|
171
|
+
|
|
172
|
+
/***/ }),
|
|
173
|
+
|
|
174
|
+
/***/ 35629:
|
|
175
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
176
|
+
|
|
177
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
178
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
179
|
+
/* harmony export */ });
|
|
180
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
181
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
182
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87865);
|
|
183
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10044);
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
const SearchTopTerm = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SearchTopTerm({ testId = 'fs-top-search-term', value, linkProps, index }, ref) {
|
|
187
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", { ref: ref, "data-fs-search-top-item": true, "data-testid": testId },
|
|
188
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { ...linkProps, "data-fs-search-top-item-link": true, variant: "display" },
|
|
189
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { "data-fs-search-top-item-badge": true, variant: "info" }, index + 1),
|
|
190
|
+
value)));
|
|
191
|
+
});
|
|
192
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchTopTerm);
|
|
193
|
+
//# sourceMappingURL=SearchTopTerm.js.map
|
|
194
|
+
|
|
195
|
+
/***/ }),
|
|
196
|
+
|
|
6
197
|
/***/ 11612:
|
|
7
198
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
8
199
|
|
|
@@ -10,14 +201,14 @@ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
10
201
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11
202
|
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
12
203
|
/* harmony export */ });
|
|
13
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
14
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
15
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
16
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
17
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
18
|
-
/* harmony import */ var _SearchHistory__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
204
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82155);
|
|
205
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66780);
|
|
206
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(66395);
|
|
207
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36254);
|
|
208
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20395);
|
|
209
|
+
/* harmony import */ var _SearchHistory__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58941);
|
|
19
210
|
/* harmony import */ var _SearchTop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10107);
|
|
20
|
-
/* harmony import */ var src_components_search_SearchProductItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
211
|
+
/* harmony import */ var src_components_search_SearchProductItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52387);
|
|
21
212
|
/* harmony import */ var src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(25882);
|
|
22
213
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20997);
|
|
23
214
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
|
|
@@ -114,7 +305,7 @@ __webpack_async_result__();
|
|
|
114
305
|
|
|
115
306
|
/***/ }),
|
|
116
307
|
|
|
117
|
-
/***/
|
|
308
|
+
/***/ 58941:
|
|
118
309
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
119
310
|
|
|
120
311
|
|
|
@@ -124,13 +315,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
124
315
|
});
|
|
125
316
|
|
|
126
317
|
// EXTERNAL MODULE: ../components/dist/hooks/useSearch.js
|
|
127
|
-
var useSearch = __webpack_require__(
|
|
318
|
+
var useSearch = __webpack_require__(82155);
|
|
128
319
|
// EXTERNAL MODULE: external "react"
|
|
129
320
|
var external_react_ = __webpack_require__(16689);
|
|
321
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
130
322
|
// EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
|
|
131
|
-
var Button = __webpack_require__(
|
|
323
|
+
var Button = __webpack_require__(57578);
|
|
132
324
|
// EXTERNAL MODULE: ../components/dist/atoms/List/List.js
|
|
133
|
-
var List = __webpack_require__(
|
|
325
|
+
var List = __webpack_require__(41329);
|
|
134
326
|
;// CONCATENATED MODULE: ../components/dist/molecules/SearchHistory/SearchHistory.js
|
|
135
327
|
|
|
136
328
|
|
|
@@ -139,26 +331,26 @@ const SearchHistory = ({ testId = 'fs-search-history', title = 'History', clearL
|
|
|
139
331
|
if (inContext && (values.term.length !== 0 || values.isLoading)) {
|
|
140
332
|
return null;
|
|
141
333
|
}
|
|
142
|
-
return (
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
334
|
+
return (external_react_default().createElement("section", { "data-testid": testId, "data-fs-search-history": true, ...otherProps },
|
|
335
|
+
external_react_default().createElement("header", { "data-fs-search-history-header": true },
|
|
336
|
+
external_react_default().createElement("p", { "data-fs-search-history-title": true }, title),
|
|
337
|
+
external_react_default().createElement(Button/* default */.Z, { variant: "tertiary", onClick: onClear, size: "small" }, clearLabel)),
|
|
338
|
+
external_react_default().createElement(List/* default */.Z, { as: "ol" }, children)));
|
|
147
339
|
};
|
|
148
340
|
/* harmony default export */ const SearchHistory_SearchHistory = (SearchHistory);
|
|
149
341
|
//# sourceMappingURL=SearchHistory.js.map
|
|
150
342
|
// EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
|
|
151
|
-
var Icon = __webpack_require__(
|
|
343
|
+
var Icon = __webpack_require__(25045);
|
|
152
344
|
// EXTERNAL MODULE: ../components/dist/atoms/Link/Link.js
|
|
153
|
-
var Link = __webpack_require__(
|
|
345
|
+
var Link = __webpack_require__(87865);
|
|
154
346
|
;// CONCATENATED MODULE: ../components/dist/molecules/SearchHistory/SearchHistoryTerm.js
|
|
155
347
|
|
|
156
348
|
|
|
157
|
-
const SearchHistoryTerm = ({ testId = 'fs-search-history-term', value, linkProps, icon =
|
|
158
|
-
return (
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
349
|
+
const SearchHistoryTerm = ({ testId = 'fs-search-history-term', value, linkProps, icon = external_react_default().createElement(Icon/* default */.Z, { name: "ClockClockwise", width: 18, height: 18 }), }) => {
|
|
350
|
+
return (external_react_default().createElement("li", { "data-fs-search-history-item": true, "data-testid": testId },
|
|
351
|
+
external_react_default().createElement(Link/* default */.Z, { ...linkProps, "data-fs-search-history-item-link": true, variant: "display" },
|
|
352
|
+
external_react_default().createElement("span", { "data-fs-search-history-item-icon": true }, icon),
|
|
353
|
+
external_react_default().createElement("span", null, value))));
|
|
162
354
|
};
|
|
163
355
|
/* harmony default export */ const SearchHistory_SearchHistoryTerm = (SearchHistoryTerm);
|
|
164
356
|
//# sourceMappingURL=SearchHistoryTerm.js.map
|
|
@@ -213,7 +405,7 @@ const SearchHistory_SearchHistory_SearchHistory = _ref => {
|
|
|
213
405
|
|
|
214
406
|
/***/ }),
|
|
215
407
|
|
|
216
|
-
/***/
|
|
408
|
+
/***/ 52387:
|
|
217
409
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
218
410
|
|
|
219
411
|
|
|
@@ -223,38 +415,39 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
223
415
|
});
|
|
224
416
|
|
|
225
417
|
// EXTERNAL MODULE: ../components/dist/hooks/useSearch.js
|
|
226
|
-
var useSearch = __webpack_require__(
|
|
418
|
+
var useSearch = __webpack_require__(82155);
|
|
227
419
|
// EXTERNAL MODULE: external "react"
|
|
228
420
|
var external_react_ = __webpack_require__(16689);
|
|
421
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
229
422
|
// EXTERNAL MODULE: ../components/dist/atoms/Link/Link.js
|
|
230
|
-
var Link = __webpack_require__(
|
|
423
|
+
var Link = __webpack_require__(87865);
|
|
231
424
|
;// CONCATENATED MODULE: ../components/dist/molecules/SearchProducts/SearchProductItem.js
|
|
232
425
|
|
|
233
426
|
|
|
234
427
|
const SearchProductItem = (0,external_react_.forwardRef)(function ProductItem({ testId = 'fs-search-product-item', linkProps, children }, ref) {
|
|
235
|
-
return (
|
|
236
|
-
|
|
428
|
+
return (external_react_default().createElement("li", { ref: ref, "data-fs-search-product-item": true, "data-testid": testId },
|
|
429
|
+
external_react_default().createElement(Link/* default */.Z, { ...linkProps, "data-fs-search-product-item-link": true, variant: "display" }, children)));
|
|
237
430
|
});
|
|
238
431
|
/* harmony default export */ const SearchProducts_SearchProductItem = (SearchProductItem);
|
|
239
432
|
//# sourceMappingURL=SearchProductItem.js.map
|
|
240
433
|
;// CONCATENATED MODULE: ../components/dist/molecules/SearchProducts/SearchProductItemImage.js
|
|
241
434
|
|
|
242
435
|
const SearchProductItemImage = (0,external_react_.forwardRef)(function SearchProductItemImage({ testId = 'fs-search-product-item-image', children, ...otherProps }, ref) {
|
|
243
|
-
return (
|
|
436
|
+
return (external_react_default().createElement("div", { ref: ref, "data-fs-search-product-item-image": true, "data-testid": testId, ...otherProps }, children));
|
|
244
437
|
});
|
|
245
438
|
/* harmony default export */ const SearchProducts_SearchProductItemImage = (SearchProductItemImage);
|
|
246
439
|
//# sourceMappingURL=SearchProductItemImage.js.map
|
|
247
440
|
// EXTERNAL MODULE: ../components/dist/atoms/Price/Price.js
|
|
248
|
-
var Price = __webpack_require__(
|
|
441
|
+
var Price = __webpack_require__(57549);
|
|
249
442
|
;// CONCATENATED MODULE: ../components/dist/molecules/SearchProducts/SearchProductItemContent.js
|
|
250
443
|
|
|
251
444
|
|
|
252
445
|
const SearchProductItemContent = (0,external_react_.forwardRef)(function SearchProductItemContent({ price, title, ...otherProps }, ref) {
|
|
253
|
-
return (
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
446
|
+
return (external_react_default().createElement("section", { ref: ref, "data-fs-search-product-item-content": true, ...otherProps },
|
|
447
|
+
external_react_default().createElement("p", { "data-fs-search-product-item-title": true }, title),
|
|
448
|
+
external_react_default().createElement("span", { "data-fs-search-product-item-prices": true },
|
|
449
|
+
external_react_default().createElement(Price/* default */.Z, { value: price?.listPrice ? price.listPrice : 0, formatter: price?.formatter, testId: "list-price", "data-value": price?.listPrice, variant: "listing", SRText: "Original price:" }),
|
|
450
|
+
external_react_default().createElement(Price/* default */.Z, { value: price?.value ? price.value : 0, formatter: price?.formatter, testId: "price", "data-value": price?.value, variant: "spot", SRText: "Price:" }))));
|
|
258
451
|
});
|
|
259
452
|
/* harmony default export */ const SearchProducts_SearchProductItemContent = (SearchProductItemContent);
|
|
260
453
|
//# sourceMappingURL=SearchProductItemContent.js.map
|
|
@@ -366,9 +559,9 @@ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
366
559
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
367
560
|
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
368
561
|
/* harmony export */ });
|
|
369
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
370
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
371
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
562
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82155);
|
|
563
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(92727);
|
|
564
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35629);
|
|
372
565
|
/* harmony import */ var src_sdk_search_formatSearchPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25882);
|
|
373
566
|
/* harmony import */ var src_sdk_search_useTopSearch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41363);
|
|
374
567
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20997);
|
|
@@ -498,190 +691,6 @@ function useTopSearch(initialTerms = [], limit = MAX_TOP_SEARCH_TERMS) {
|
|
|
498
691
|
__webpack_async_result__();
|
|
499
692
|
} catch(e) { __webpack_async_result__(e); } });
|
|
500
693
|
|
|
501
|
-
/***/ }),
|
|
502
|
-
|
|
503
|
-
/***/ 86851:
|
|
504
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
505
|
-
|
|
506
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
507
|
-
/* harmony export */ "R": () => (/* binding */ useSearch)
|
|
508
|
-
/* harmony export */ });
|
|
509
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
510
|
-
/* harmony import */ var _molecules_SearchProvider_SearchProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10187);
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
const useSearch = () => {
|
|
514
|
-
const context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_molecules_SearchProvider_SearchProvider__WEBPACK_IMPORTED_MODULE_1__/* .SearchContext */ .c);
|
|
515
|
-
if (!context) {
|
|
516
|
-
return { inContext: false };
|
|
517
|
-
}
|
|
518
|
-
return { inContext: true, values: context };
|
|
519
|
-
};
|
|
520
|
-
//# sourceMappingURL=useSearch.js.map
|
|
521
|
-
|
|
522
|
-
/***/ }),
|
|
523
|
-
|
|
524
|
-
/***/ 83163:
|
|
525
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
526
|
-
|
|
527
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
528
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
529
|
-
/* harmony export */ });
|
|
530
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
531
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86851);
|
|
532
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58823);
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
const SearchAutoComplete = ({ testId = 'fs-search-auto-complete', children, ...otherProps }) => {
|
|
536
|
-
const { inContext, values } = (0,___WEBPACK_IMPORTED_MODULE_1__/* .useSearch */ .R)();
|
|
537
|
-
if (inContext && (values.terms.length <= 0 || values.term.length <= 0)) {
|
|
538
|
-
return null;
|
|
539
|
-
}
|
|
540
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", { "data-testid": testId, "data-fs-search-auto-complete": true, ...otherProps },
|
|
541
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { as: "ol" }, children)));
|
|
542
|
-
};
|
|
543
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchAutoComplete);
|
|
544
|
-
//# sourceMappingURL=SearchAutoComplete.js.map
|
|
545
|
-
|
|
546
|
-
/***/ }),
|
|
547
|
-
|
|
548
|
-
/***/ 55992:
|
|
549
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
550
|
-
|
|
551
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
552
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
553
|
-
/* harmony export */ });
|
|
554
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
555
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82185);
|
|
556
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18595);
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
function formatSearchTerm(indexSubstring, searchTerm, suggestion) {
|
|
560
|
-
if (indexSubstring === 0) {
|
|
561
|
-
return searchTerm
|
|
562
|
-
.split('')
|
|
563
|
-
.map((char, idx) => idx === 0 && suggestion.indexOf(char.toUpperCase()) === 0
|
|
564
|
-
? char.toUpperCase()
|
|
565
|
-
: char.toLowerCase())
|
|
566
|
-
.join('');
|
|
567
|
-
}
|
|
568
|
-
return searchTerm.toLowerCase();
|
|
569
|
-
}
|
|
570
|
-
const SearchAutoCompleteTerm = ({ testId = 'fs-search-auto-complete-term', suggestion, term, linkProps, icon = react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { name: "MagnifyingGlass", width: 18, height: 18 }), }) => {
|
|
571
|
-
const suggestionSubstring = suggestion.toLowerCase().split(term.toLowerCase());
|
|
572
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { "data-fs-search-auto-complete-item": true, "data-testid": testId },
|
|
573
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { ...linkProps, "data-fs-search-auto-complete-item-link": true, variant: "display" },
|
|
574
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { "data-fs-search-auto-complete-item-icon": true }, icon),
|
|
575
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", null, suggestionSubstring.map((substring, indexSubstring) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: [substring, indexSubstring].join() },
|
|
576
|
-
substring.length > 0 && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", { "data-fs-search-auto-complete-item-suggestion": true }, indexSubstring === 0
|
|
577
|
-
? substring.charAt(0).toUpperCase() + substring.slice(1)
|
|
578
|
-
: substring)),
|
|
579
|
-
indexSubstring !== suggestionSubstring.length - 1 &&
|
|
580
|
-
formatSearchTerm(indexSubstring, term, suggestion))))))));
|
|
581
|
-
};
|
|
582
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchAutoCompleteTerm);
|
|
583
|
-
//# sourceMappingURL=SearchAutoCompleteTerm.js.map
|
|
584
|
-
|
|
585
|
-
/***/ }),
|
|
586
|
-
|
|
587
|
-
/***/ 73463:
|
|
588
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
589
|
-
|
|
590
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
591
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
592
|
-
/* harmony export */ });
|
|
593
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
594
|
-
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86851);
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
const SearchLoading = () => {
|
|
598
|
-
const { inContext, values } = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useSearch */ .R)();
|
|
599
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (inContext && values.isLoading) && react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", { "data-fs-search-dropdown-loading-text": true }, "Loading...")));
|
|
600
|
-
};
|
|
601
|
-
const SearchDropdown = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SearchDropdown({ testId = 'fs-search-dropdown', children, ...otherProps }, ref) {
|
|
602
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: ref, "data-fs-search-dropdown": true, "data-testid": testId, ...otherProps },
|
|
603
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", null,
|
|
604
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(SearchLoading, null),
|
|
605
|
-
children)));
|
|
606
|
-
});
|
|
607
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchDropdown);
|
|
608
|
-
//# sourceMappingURL=SearchDropdown.js.map
|
|
609
|
-
|
|
610
|
-
/***/ }),
|
|
611
|
-
|
|
612
|
-
/***/ 11379:
|
|
613
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
614
|
-
|
|
615
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
616
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
617
|
-
/* harmony export */ });
|
|
618
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
619
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86851);
|
|
620
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58823);
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
const SearchProductsProps = ({ testId = 'fs-search-products', title = 'Suggested Products', children, ...otherProps }) => {
|
|
624
|
-
const { inContext, values } = (0,___WEBPACK_IMPORTED_MODULE_1__/* .useSearch */ .R)();
|
|
625
|
-
if (inContext && (values.products.length <= 0)) {
|
|
626
|
-
return null;
|
|
627
|
-
}
|
|
628
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", { "data-testid": testId, "data-fs-search-products": true, ...otherProps },
|
|
629
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("header", { "data-fs-search-products-header": true },
|
|
630
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", { "data-fs-search-products-title": true }, title)),
|
|
631
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { as: "ol" }, children)));
|
|
632
|
-
};
|
|
633
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchProductsProps);
|
|
634
|
-
//# sourceMappingURL=SearchProducts.js.map
|
|
635
|
-
|
|
636
|
-
/***/ }),
|
|
637
|
-
|
|
638
|
-
/***/ 68701:
|
|
639
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
640
|
-
|
|
641
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
642
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
643
|
-
/* harmony export */ });
|
|
644
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
645
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86851);
|
|
646
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58823);
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
const SearchTop = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SearchTop({ testId = 'fs-top-search', title = 'Top Search', children, ...otherProps }, ref) {
|
|
651
|
-
const { inContext, values } = (0,___WEBPACK_IMPORTED_MODULE_1__/* .useSearch */ .R)();
|
|
652
|
-
if (inContext && (values.term.length !== 0 || values.isLoading)) {
|
|
653
|
-
return null;
|
|
654
|
-
}
|
|
655
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", { ref: ref, "data-testid": testId, "data-fs-search-top": true, ...otherProps },
|
|
656
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("header", { "data-fs-search-top-header": true },
|
|
657
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", { "data-fs-search-top-title": true }, title)),
|
|
658
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { as: "ol" }, children)));
|
|
659
|
-
});
|
|
660
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchTop);
|
|
661
|
-
//# sourceMappingURL=SearchTop.js.map
|
|
662
|
-
|
|
663
|
-
/***/ }),
|
|
664
|
-
|
|
665
|
-
/***/ 54232:
|
|
666
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
667
|
-
|
|
668
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
669
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
670
|
-
/* harmony export */ });
|
|
671
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
672
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18595);
|
|
673
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87197);
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
const SearchTopTerm = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function SearchTopTerm({ testId = 'fs-top-search-term', value, linkProps, index }, ref) {
|
|
677
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { ref: ref, "data-fs-search-top-item": true, "data-testid": testId },
|
|
678
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { ...linkProps, "data-fs-search-top-item-link": true, variant: "display" },
|
|
679
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { "data-fs-search-top-item-badge": true, variant: "info" }, index + 1),
|
|
680
|
-
value)));
|
|
681
|
-
});
|
|
682
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchTopTerm);
|
|
683
|
-
//# sourceMappingURL=SearchTopTerm.js.map
|
|
684
|
-
|
|
685
694
|
/***/ })
|
|
686
695
|
|
|
687
696
|
};
|