@depict-ai/ui 0.0.45 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -13
- package/dist/main.js +27 -61
- package/dist/module.js +27 -60
- package/locales/index.d.ts +1 -1
- package/locales/index.js +13 -13
- package/locales/require.js +13 -13
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestions
|
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
10
|
import { ProductListingResponse, BaseCategoryDisplay } from "@depict-ai/types/api/ProductListingResponse";
|
|
11
11
|
import { JSX as _JSX1 } from "solid-js/types/jsx";
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.49";
|
|
13
13
|
type ExclusiveId = {
|
|
14
14
|
categoryId: string;
|
|
15
15
|
productId?: undefined;
|
|
@@ -135,7 +135,7 @@ interface search_i18n extends plp_shared_i18n {
|
|
|
135
135
|
category_: string;
|
|
136
136
|
suggestions_: string;
|
|
137
137
|
search_submit_button_aria_label_: string;
|
|
138
|
-
|
|
138
|
+
search_field_field_aria_label_: string;
|
|
139
139
|
previous_searches_delete_entry_from_history_: string;
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
@@ -150,20 +150,12 @@ interface category_i18n extends plp_shared_i18n {
|
|
|
150
150
|
quicklinks_aria_label_: string;
|
|
151
151
|
breadcrumbs_separator_: string;
|
|
152
152
|
}
|
|
153
|
-
/**
|
|
154
|
-
* Depict UI internationalisation
|
|
155
|
-
*/
|
|
156
|
-
export interface Locale extends category_i18n, search_i18n {
|
|
157
|
-
}
|
|
158
153
|
export type InstantCard<T extends Display> = (display: T, context: {
|
|
159
154
|
index: number;
|
|
160
155
|
i18n: _search_i18n1;
|
|
161
156
|
merchant: string;
|
|
162
157
|
market: string;
|
|
163
158
|
}) => JSX.Element;
|
|
164
|
-
export function add_to_version_info(stuff_to_add: {
|
|
165
|
-
[key: string]: string;
|
|
166
|
-
}): void;
|
|
167
159
|
export class DepictAPI {
|
|
168
160
|
#private;
|
|
169
161
|
constructor(get_metadata?: () => Promise<{
|
|
@@ -293,11 +285,11 @@ export type RenderCategorySuggestion = (category_suggestion: Accessor<CategorySu
|
|
|
293
285
|
data: WithRequired<SearchFilter, "data">["data"];
|
|
294
286
|
}[]>) => JSX.Element;
|
|
295
287
|
/**
|
|
296
|
-
* Connects the height of the
|
|
288
|
+
* Connects the height of the search field to the height of the aligner.
|
|
297
289
|
* @param aligner
|
|
298
290
|
* @returns
|
|
299
291
|
*/
|
|
300
|
-
export function
|
|
292
|
+
export function connect_search_field_height_to_aligner_height(aligner: HTMLElement): {
|
|
301
293
|
cleanup: () => void;
|
|
302
294
|
};
|
|
303
295
|
type ConstructorOptions<T extends Display> = {
|
|
@@ -356,7 +348,7 @@ interface SearchFieldParams {
|
|
|
356
348
|
click_handler?: (this: HTMLDivElement, ev: MouseEvent) => any;
|
|
357
349
|
aligner_ref?: HTMLElement | null;
|
|
358
350
|
}
|
|
359
|
-
export function SearchField({ depict_search, modal_dispose_handler, click_handler, aligner_ref }: SearchFieldParams): Node_Array;
|
|
351
|
+
export function SearchField({ depict_search, modal_dispose_handler, click_handler, aligner_ref, }: SearchFieldParams): Node_Array;
|
|
360
352
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
361
353
|
export interface PageReplacer {
|
|
362
354
|
readonly render_: (is_prerendering: boolean) => Node_Array;
|
package/dist/main.js
CHANGED
|
@@ -17,7 +17,7 @@ $parcel$export(module.exports, "CategoryPage", () => $068a627cc18f7bb6$export$e2
|
|
|
17
17
|
$parcel$export(module.exports, "DepictSearch", () => $79fbf145b15af988$export$ac6237957a15b3f0);
|
|
18
18
|
$parcel$export(module.exports, "get_search_query_updating_blocked_signal", () => $79fbf145b15af988$export$bde3eb976dfded9);
|
|
19
19
|
$parcel$export(module.exports, "SearchPage", () => $79fbf145b15af988$export$f2dc7e4e4aa11abb);
|
|
20
|
-
$parcel$export(module.exports, "SearchField", () => $79fbf145b15af988$export$
|
|
20
|
+
$parcel$export(module.exports, "SearchField", () => $79fbf145b15af988$export$316f6f283ae64765);
|
|
21
21
|
$parcel$export(module.exports, "DefaultInstantCardPlaceholder", () => $17c49340edfdbb31$export$ee1733d9a8495996);
|
|
22
22
|
$parcel$export(module.exports, "align_field", () => $67b60b572b7b7059$export$b3ad617e9036868);
|
|
23
23
|
$parcel$export(module.exports, "styles_to_valid_css_string", () => $d3c94b3b96557917$export$1233ca167bf71f9a);
|
|
@@ -25,16 +25,15 @@ $parcel$export(module.exports, "disable_scrolling", () => $fa41c421eb980e23$expo
|
|
|
25
25
|
$parcel$export(module.exports, "open_search_with_shift_slash", () => $308e64f91bb9f839$export$d0596b5cae35ad4);
|
|
26
26
|
$parcel$export(module.exports, "push_state_with_query_param_value", () => $405647fc79da2849$export$26df08e242fe83a3);
|
|
27
27
|
$parcel$export(module.exports, "DepictAPI", () => $9ce64f69303c371e$export$e015ed2f2950f2e3);
|
|
28
|
-
$parcel$export(module.exports, "add_to_version_info", () => $72835d7ac907c037$export$2cefb7e61fcbae00);
|
|
29
28
|
$parcel$export(module.exports, "media_query_to_accessor", () => $beec9d22e42ed2cf$export$d9f36cf74e24d595);
|
|
30
29
|
$parcel$export(module.exports, "setup_fast_leave", () => $d589470b68ce5b67$export$689e204eadb33baf);
|
|
31
30
|
$parcel$export(module.exports, "show_toast", () => $b3e6a0e9382bf87e$export$5196e4c01fa56fcb);
|
|
32
31
|
$parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$export$469c7af753d08925);
|
|
33
|
-
$parcel$export(module.exports, "
|
|
32
|
+
$parcel$export(module.exports, "connect_search_field_height_to_aligner_height", () => $246e3e89a097f014$export$828dcdd425fd3231);
|
|
34
33
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
35
34
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
36
|
-
/*! Depict.ai search and product listing SDK */
|
|
37
|
-
|
|
35
|
+
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.49";
|
|
36
|
+
|
|
38
37
|
|
|
39
38
|
|
|
40
39
|
|
|
@@ -104,15 +103,6 @@ function $0de081f67b6d15b5$export$9862539c89138352(get_default_values) {
|
|
|
104
103
|
|
|
105
104
|
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Adds things to the object we send to backend as a header to report the package versions used
|
|
110
|
-
*/ const $72835d7ac907c037$export$89a2f5e6eb5005b6 = {};
|
|
111
|
-
function $72835d7ac907c037$export$2cefb7e61fcbae00(stuff_to_add) {
|
|
112
|
-
Object.assign($72835d7ac907c037$export$89a2f5e6eb5005b6, stuff_to_add);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
106
|
const $9ce64f69303c371e$var$v2_base_url = (0, $46MJV$depictaiutilishared.base_url) + "/v2/";
|
|
117
107
|
const $9ce64f69303c371e$var$search_base_url = $9ce64f69303c371e$var$v2_base_url + "search/";
|
|
118
108
|
const $9ce64f69303c371e$var$add_ids_to_request = (input_req)=>{
|
|
@@ -145,12 +135,7 @@ class $9ce64f69303c371e$export$e015ed2f2950f2e3 {
|
|
|
145
135
|
async suggest(input_req) {
|
|
146
136
|
const request = $9ce64f69303c371e$var$add_ids_to_request(input_req);
|
|
147
137
|
const url = (0, $46MJV$depictaiutilishared.make_url_with_query_params)($9ce64f69303c371e$var$search_base_url + "suggestions", request);
|
|
148
|
-
const results = await (0, $46MJV$depictaiutilishared.fetch_retry)(
|
|
149
|
-
headers: {
|
|
150
|
-
"Content-Type": "text/plain",
|
|
151
|
-
...$9ce64f69303c371e$var$get_version_headers()
|
|
152
|
-
}
|
|
153
|
-
});
|
|
138
|
+
const results = await (0, $46MJV$depictaiutilishared.fetch_retry)((0, $46MJV$depictaiutilishared.add_version_query_params)(url));
|
|
154
139
|
attempt_to_return_api_response: {
|
|
155
140
|
if (!results) break attempt_to_return_api_response;
|
|
156
141
|
const decoded_json = await results.json();
|
|
@@ -177,11 +162,7 @@ class $9ce64f69303c371e$export$e015ed2f2950f2e3 {
|
|
|
177
162
|
let resolve_in_progress;
|
|
178
163
|
cache_obj.in_progress_[body] = new Promise((r)=>resolve_in_progress = r);
|
|
179
164
|
try {
|
|
180
|
-
const search_results = await (0, $46MJV$depictaiutilishared.fetch_retry)(endpoint1, {
|
|
181
|
-
headers: {
|
|
182
|
-
"Content-Type": "text/plain",
|
|
183
|
-
...$9ce64f69303c371e$var$get_version_headers()
|
|
184
|
-
},
|
|
165
|
+
const search_results = await (0, $46MJV$depictaiutilishared.fetch_retry)((0, $46MJV$depictaiutilishared.add_version_query_params)(endpoint1), {
|
|
185
166
|
method: "POST",
|
|
186
167
|
body: body
|
|
187
168
|
});
|
|
@@ -227,23 +208,12 @@ class $9ce64f69303c371e$export$e015ed2f2950f2e3 {
|
|
|
227
208
|
}));
|
|
228
209
|
}
|
|
229
210
|
async get_recommended(input_req) {
|
|
211
|
+
// @ts-ignore ModernDisplay doesn't have arbitrary string access, and we'd like it to stay that way
|
|
230
212
|
return await this.#cached_post_request($9ce64f69303c371e$var$search_base_url + "related", input_req, ()=>({
|
|
231
213
|
displays: []
|
|
232
214
|
}));
|
|
233
215
|
}
|
|
234
216
|
}
|
|
235
|
-
function $9ce64f69303c371e$var$get_version_headers() {
|
|
236
|
-
// We can't use any header name or the browser will make an OPTIONS request which will slow down search a lot
|
|
237
|
-
const version_object = {
|
|
238
|
-
...(0, $72835d7ac907c037$export$89a2f5e6eb5005b6),
|
|
239
|
-
"@depict-ai/utilishared": (0, $46MJV$depictaiutilishared.version),
|
|
240
|
-
"@depict-ai/ui": (0, $ae93561d5649a847$export$83d89fbfd8236492)
|
|
241
|
-
};
|
|
242
|
-
return {
|
|
243
|
-
"Accept": Object.entries(version_object)// No special characters allowed: https://developer.mozilla.org/en-US/docs/Glossary/CORS-safelisted_request_header
|
|
244
|
-
.map(([pkg, version])=>`${pkg.replaceAll("@", "")}=${version}`).join(",")
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
217
|
|
|
248
218
|
|
|
249
219
|
|
|
@@ -5286,8 +5256,6 @@ async function $bfd8f91b5a75050a$var$download_categories(tenant, market) {
|
|
|
5286
5256
|
|
|
5287
5257
|
|
|
5288
5258
|
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
5259
|
const $17c49340edfdbb31$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="instant-card"><div class="img-part"></div><div class="right-part"><div class="title-brand-tagline"><span class="title"></span></div></div></div>`, 10);
|
|
5292
5260
|
function $17c49340edfdbb31$export$ee1733d9a8495996() {
|
|
5293
5261
|
return (()=>{
|
|
@@ -5356,8 +5324,8 @@ function $67892c03cd3dfa66$export$d757d54550ebfb3d({ category_suggestion_: categ
|
|
|
5356
5324
|
|
|
5357
5325
|
|
|
5358
5326
|
|
|
5359
|
-
const $
|
|
5360
|
-
function $
|
|
5327
|
+
const $2989e355f64e18e1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="back" type="button"></button>`, 2), $2989e355f64e18e1$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="search-field"><div class="field"><input class="query" tabindex="0"><button type="button" class="clear"></button></div><button class="submit major" type="button"></button></div>`, 9);
|
|
5328
|
+
function $2989e355f64e18e1$export$b94867ecbd698f21({ search_field_value_: search_field_value_ , input_field_ref_: input_field_ref_ , field_element_ref_: field_element_ref_ , submit_query_: submit_query_ , override_on_enter_: override_on_enter_ , clear_filters_: clear_filters_ , disabled_: disabled_ = false , on_back_: on_back_ , i18n_: i18n_ }) {
|
|
5361
5329
|
let input_field;
|
|
5362
5330
|
(0, $46MJV$solidjs.createEffect)((0, $46MJV$depictaiutilishared.catchify)(async ()=>{
|
|
5363
5331
|
if (disabled_) return;
|
|
@@ -5366,11 +5334,11 @@ function $231c39725f8fde87$export$ff21851bb5d30e15({ search_field_value_: search
|
|
|
5366
5334
|
input_field.focus();
|
|
5367
5335
|
})); // focus field on render
|
|
5368
5336
|
return (()=>{
|
|
5369
|
-
const _el$ = $
|
|
5337
|
+
const _el$ = $2989e355f64e18e1$var$_tmpl$2.cloneNode(true), _el$3 = _el$.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling;
|
|
5370
5338
|
(0, $46MJV$solidjsweb.insert)(_el$, (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$solidjs.Show), {
|
|
5371
5339
|
when: on_back_,
|
|
5372
5340
|
get children () {
|
|
5373
|
-
const _el$2 = $
|
|
5341
|
+
const _el$2 = $2989e355f64e18e1$var$_tmpl$.cloneNode(true);
|
|
5374
5342
|
(0, $46MJV$solidjsweb.addEventListener)(_el$2, "click", (0, $46MJV$depictaiutilishared.catchify)(on_back_), true);
|
|
5375
5343
|
(0, $46MJV$solidjsweb.insert)(_el$2, (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$depictaiutilishared.BackIcon), {}));
|
|
5376
5344
|
(0, $46MJV$solidjsweb.effect)(()=>(0, $46MJV$solidjsweb.setAttribute)(_el$2, "aria-label", i18n_.back_()));
|
|
@@ -5423,7 +5391,7 @@ function $231c39725f8fde87$export$ff21851bb5d30e15({ search_field_value_: search
|
|
|
5423
5391
|
(0, $46MJV$solidjsweb.addEventListener)(_el$6, "click", (0, $46MJV$depictaiutilishared.catchify)(()=>submit_query_()), true);
|
|
5424
5392
|
(0, $46MJV$solidjsweb.insert)(_el$6, (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$depictaiutilishared.SearchIcon), {}));
|
|
5425
5393
|
(0, $46MJV$solidjsweb.effect)((_p$)=>{
|
|
5426
|
-
const _v$ = i18n_.
|
|
5394
|
+
const _v$ = i18n_.search_field_field_aria_label_(), _v$2 = i18n_.placeholder_text_(), _v$3 = i18n_.clear_filters_query_sorting_after_submit_(), _v$4 = (0, $46MJV$solidjs.createMemo)(()=>search_field_value_[0]() ? "" : "display: none")(), _v$5 = i18n_.search_submit_button_aria_label_();
|
|
5427
5395
|
_v$ !== _p$._v$ && (0, $46MJV$solidjsweb.setAttribute)(_el$4, "aria-label", _p$._v$ = _v$);
|
|
5428
5396
|
_v$2 !== _p$._v$2 && (0, $46MJV$solidjsweb.setAttribute)(_el$4, "placeholder", _p$._v$2 = _v$2);
|
|
5429
5397
|
_v$3 !== _p$._v$3 && (0, $46MJV$solidjsweb.setAttribute)(_el$5, "title", _p$._v$3 = _v$3);
|
|
@@ -5800,7 +5768,7 @@ const $1bf0125991f2d39b$export$b05c0ae390cf3e06 = (display_or_variant_container,
|
|
|
5800
5768
|
const display = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
5801
5769
|
const display = display_or_variant_container();
|
|
5802
5770
|
// Support for backend's new display format
|
|
5803
|
-
if ("
|
|
5771
|
+
if ("variant_index" in display) {
|
|
5804
5772
|
const actual_display = display.variant_displays[display.variant_index];
|
|
5805
5773
|
return {
|
|
5806
5774
|
image_url: actual_display.image_urls?.[0],
|
|
@@ -5958,7 +5926,8 @@ function $4cadf33fd6aaf4b6$var$track_elements(display, index, elements, tenant,
|
|
|
5958
5926
|
const disconnectors = [];
|
|
5959
5927
|
(0, $46MJV$solidjs.createComputed)(()=>{
|
|
5960
5928
|
let stop = false;
|
|
5961
|
-
const
|
|
5929
|
+
const modern_or_legacy_d = display(); // For every display
|
|
5930
|
+
const d = "variant_index" in modern_or_legacy_d ? modern_or_legacy_d.variant_displays[modern_or_legacy_d.variant_index] : modern_or_legacy_d;
|
|
5962
5931
|
const t = tenant(); // and tenant
|
|
5963
5932
|
const m = market(); // / market combination
|
|
5964
5933
|
const click_handler = ()=>{
|
|
@@ -6795,7 +6764,7 @@ function $4a976b492943589f$export$f021bdedd3ec901a(props) {
|
|
|
6795
6764
|
|
|
6796
6765
|
const $121d25ca6af2898f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4), $121d25ca6af2898f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2), $121d25ca6af2898f$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict-search-modal"><div class="body"><div class="padded"></div></div></div>`, 6), $121d25ca6af2898f$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div></div>`, 4);
|
|
6797
6766
|
function $121d25ca6af2898f$export$1c593cbd6f1e10bc({ search_field_value_: search_field_value_ , search_query_: search_query_ , search_page_url_param_name_: search_page_url_param_name_ , previous_searches_: previous_searches_ , close_modal_: close_modal_ , style_props_: style_props_ = (0, $46MJV$solidjs.createSignal)({}) , depict_api_: depict_api_ , tenant_: tenant_ , market_: market_ , submit_query_: submit_query_ , instant_results_options_: instant_results_options_ , register_closing_animation_: register_closing_animation_ , url_transformer_: url_transformer_ , closing_animation_: closing_animation_ , alternative_query_submitter_for_spas_: alternative_query_submitter_for_spas_ , clear_filters_: clear_filters_ , i18n_: i18n_ , disable_scrolling_: disable_scrolling_ = true , enable_category_suggestions_: enable_category_suggestions_ , class_list_: class_list_ , after_submit_: after_submit_ , bottom_distance_under_modal_: bottom_distance_under_modal_ , navigate_page_to_href_: navigate_page_to_href_ , on_submit_with_unchanged_value_: on_submit_with_unchanged_value_ }) {
|
|
6798
|
-
let
|
|
6767
|
+
let on_enter_in_search_field_function;
|
|
6799
6768
|
const [input_field, set_input_field] = (0, $46MJV$solidjs.createSignal)();
|
|
6800
6769
|
const [get_search_field_value_] = search_field_value_;
|
|
6801
6770
|
const [elements_outside_scrollable, set_elements_outside_scrollable] = (0, $46MJV$solidjs.createSignal)();
|
|
@@ -6853,12 +6822,12 @@ function $121d25ca6af2898f$export$1c593cbd6f1e10bc({ search_field_value_: search
|
|
|
6853
6822
|
(0, $46MJV$solidjsweb.addEventListener)(_el$4, "click", (0, $46MJV$depictaiutilishared.catchify)(({ target: target })=>{
|
|
6854
6823
|
if (target === modal_element) close_modal_();
|
|
6855
6824
|
}), true);
|
|
6856
|
-
(0, $46MJV$solidjsweb.insert)(_el$5, (0, $46MJV$solidjsweb.createComponent)((0, $
|
|
6825
|
+
(0, $46MJV$solidjsweb.insert)(_el$5, (0, $46MJV$solidjsweb.createComponent)((0, $2989e355f64e18e1$export$b94867ecbd698f21), {
|
|
6857
6826
|
input_field_ref_: (element)=>set_input_field(element),
|
|
6858
6827
|
search_query_: search_query_,
|
|
6859
6828
|
search_field_value_: search_field_value_,
|
|
6860
6829
|
submit_query_: submit_query_,
|
|
6861
|
-
override_on_enter_: (e)=>
|
|
6830
|
+
override_on_enter_: (e)=>on_enter_in_search_field_function?.(e),
|
|
6862
6831
|
clear_filters_: clear_filters_,
|
|
6863
6832
|
on_back_: close_modal_,
|
|
6864
6833
|
i18n_: i18n_
|
|
@@ -6869,7 +6838,7 @@ function $121d25ca6af2898f$export$1c593cbd6f1e10bc({ search_field_value_: search
|
|
|
6869
6838
|
message_: "Autocomplete/suggestions failed",
|
|
6870
6839
|
get children () {
|
|
6871
6840
|
return (0, $46MJV$solidjsweb.createComponent)((0, $81eea900c72d569b$export$2f2b9559550c7bbc), {
|
|
6872
|
-
set_override_on_enter_fn_: (new_fn)=>
|
|
6841
|
+
set_override_on_enter_fn_: (new_fn)=>on_enter_in_search_field_function = new_fn,
|
|
6873
6842
|
input_field_: input_field,
|
|
6874
6843
|
search_field_value_: search_field_value_,
|
|
6875
6844
|
get previous_searches_text_ () {
|
|
@@ -7126,8 +7095,8 @@ function $93779a41dce11249$export$a54ec244c8863715(opts) {
|
|
|
7126
7095
|
const modal_body_style = (0, $46MJV$solidjs.createSignal)({});
|
|
7127
7096
|
let input_field;
|
|
7128
7097
|
if (include_input_field_) {
|
|
7129
|
-
const
|
|
7130
|
-
input_field = (0, $46MJV$solidjsweb.createComponent)(
|
|
7098
|
+
const SafeSearchField = (0, $46MJV$depictaiutilishared.catchify)((0, $2989e355f64e18e1$export$b94867ecbd698f21));
|
|
7099
|
+
input_field = (0, $46MJV$solidjsweb.createComponent)(SafeSearchField, {
|
|
7131
7100
|
i18n_: i18n_,
|
|
7132
7101
|
disabled_: true,
|
|
7133
7102
|
search_query_: search_query_,
|
|
@@ -7354,13 +7323,12 @@ function $93779a41dce11249$export$a54ec244c8863715(opts) {
|
|
|
7354
7323
|
|
|
7355
7324
|
|
|
7356
7325
|
|
|
7357
|
-
|
|
7358
|
-
function $94360f5c066c55b9$export$bec48a3a3ca6bc09(aligner) {
|
|
7326
|
+
function $246e3e89a097f014$export$828dcdd425fd3231(aligner) {
|
|
7359
7327
|
const style_element = document.createElement("style");
|
|
7360
7328
|
document.head.append(style_element);
|
|
7361
7329
|
const resize_observer = new ResizeObserver((0, $46MJV$depictaiutilishared.catchify)(()=>{
|
|
7362
7330
|
const styles = (0, $d3c94b3b96557917$export$1233ca167bf71f9a)({
|
|
7363
|
-
".depict.plp .depict-search-modal .
|
|
7331
|
+
".depict.plp .depict-search-modal .search-field": {
|
|
7364
7332
|
"height": `${aligner?.clientHeight}px`
|
|
7365
7333
|
}
|
|
7366
7334
|
});
|
|
@@ -7676,10 +7644,10 @@ function $79fbf145b15af988$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7676
7644
|
});
|
|
7677
7645
|
}, "Entire SearchPage failed");
|
|
7678
7646
|
}
|
|
7679
|
-
function $79fbf145b15af988$export$
|
|
7647
|
+
function $79fbf145b15af988$export$316f6f283ae64765({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler , aligner_ref: aligner_ref }) {
|
|
7680
7648
|
const shared_properties = $79fbf145b15af988$var$get_shared_properties(depict_search);
|
|
7681
7649
|
return (0, $f27b0b326e0a87e2$export$23fca46f3143581f)(()=>{
|
|
7682
|
-
const input = (0, $46MJV$solidjsweb.createComponent)((0, $
|
|
7650
|
+
const input = (0, $46MJV$solidjsweb.createComponent)((0, $2989e355f64e18e1$export$b94867ecbd698f21), {
|
|
7683
7651
|
get search_query_ () {
|
|
7684
7652
|
return shared_properties.search_query_signal_;
|
|
7685
7653
|
},
|
|
@@ -7724,7 +7692,6 @@ function $79fbf145b15af988$export$b94867ecbd698f21({ depict_search: depict_searc
|
|
|
7724
7692
|
(()=>{
|
|
7725
7693
|
const _el$ = $79fbf145b15af988$var$_tmpl$.cloneNode(true);
|
|
7726
7694
|
(0, $46MJV$solidjsweb.insert)(_el$, input);
|
|
7727
|
-
(0, $46MJV$solidjsweb.effect)(()=>(0, $46MJV$solidjsweb.setAttribute)(_el$, "id", (0, $29b757e2ae26852c$export$44dad306455dddf).SEARCH_MODAL));
|
|
7728
7695
|
return _el$;
|
|
7729
7696
|
})()
|
|
7730
7697
|
];
|
|
@@ -7733,7 +7700,7 @@ function $79fbf145b15af988$export$b94867ecbd698f21({ depict_search: depict_searc
|
|
|
7733
7700
|
function $79fbf145b15af988$var$align_field_modal(style_props_, input, aligner_ref) {
|
|
7734
7701
|
return (0, $46MJV$solidjs.createRoot)((dispose)=>{
|
|
7735
7702
|
if (aligner_ref) {
|
|
7736
|
-
const { cleanup: cleanup } = (0, $
|
|
7703
|
+
const { cleanup: cleanup } = (0, $246e3e89a097f014$export$828dcdd425fd3231)(aligner_ref);
|
|
7737
7704
|
(0, $67b60b572b7b7059$export$b3ad617e9036868)(style_props_, aligner_ref, undefined, false, "top");
|
|
7738
7705
|
return {
|
|
7739
7706
|
cleanup: ()=>{
|
|
@@ -7774,7 +7741,6 @@ function $308e64f91bb9f839$export$d0596b5cae35ad4(open_search) {
|
|
|
7774
7741
|
|
|
7775
7742
|
|
|
7776
7743
|
|
|
7777
|
-
|
|
7778
7744
|
function $d589470b68ce5b67$export$689e204eadb33baf(pr) {
|
|
7779
7745
|
let old_url;
|
|
7780
7746
|
let disconnect_link_observer;
|
|
@@ -7907,6 +7873,6 @@ class $37e96a5ebc768cc7$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7907
7873
|
}
|
|
7908
7874
|
|
|
7909
7875
|
|
|
7910
|
-
(0, $46MJV$depictaiutilishared.
|
|
7876
|
+
(0, $46MJV$depictaiutilishared.add_to_version_info)("ui", (0, $ae93561d5649a847$export$83d89fbfd8236492));
|
|
7911
7877
|
|
|
7912
7878
|
|
package/dist/module.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {add_to_version_info as $g9l4l$add_to_version_info, fetch_recs as $g9l4l$fetch_recs, snakeCasifyObject as $g9l4l$snakeCasifyObject, GenericSliderArrowButton as $g9l4l$GenericSliderArrowButton, catchify as $g9l4l$catchify, base_url as $g9l4l$base_url, get_depict_id as $g9l4l$get_depict_id, get_user_id as $g9l4l$get_user_id, get_session_id as $g9l4l$get_session_id, dlog as $g9l4l$dlog, make_url_with_query_params as $g9l4l$make_url_with_query_params, fetch_retry as $g9l4l$fetch_retry, add_version_query_params as $g9l4l$add_version_query_params, sort_obj as $g9l4l$sort_obj, Tenant as $g9l4l$Tenant, Placeholder as $g9l4l$Placeholder, report as $g9l4l$report, javascript_media_query as $g9l4l$javascript_media_query, standard_price_format as $g9l4l$standard_price_format, deparallelize_no_drop as $g9l4l$deparallelize_no_drop, default_rr as $g9l4l$default_rr, make_random_classname as $g9l4l$make_random_classname, n_col_styling_with_dist as $g9l4l$n_col_styling_with_dist, observer as $g9l4l$observer, Lazyfier as $g9l4l$Lazyfier, queueMacroTask as $g9l4l$queueMacroTask, deparallelize as $g9l4l$deparallelize, Rec_Renderer as $g9l4l$Rec_Renderer, CrossIcon as $g9l4l$CrossIcon, useExpandingContainer as $g9l4l$useExpandingContainer, Amazing_Slider as $g9l4l$Amazing_Slider, slider_snap_css as $g9l4l$slider_snap_css, slider_fading_factory as $g9l4l$slider_fading_factory, MinusIcon as $g9l4l$MinusIcon, FilterIcon as $g9l4l$FilterIcon, SortIconAsc as $g9l4l$SortIconAsc, SortIconDesc as $g9l4l$SortIconDesc, PlusIcon as $g9l4l$PlusIcon, TickIcon as $g9l4l$TickIcon, ArrowUp as $g9l4l$ArrowUp, normal_get_product_id as $g9l4l$normal_get_product_id, ContainedPlaceholderImage as $g9l4l$ContainedPlaceholderImage, BackIcon as $g9l4l$BackIcon, SearchIcon as $g9l4l$SearchIcon, Layout as $g9l4l$Layout, make_placeholder_rr as $g9l4l$make_placeholder_rr, async_iterable_ipns as $g9l4l$async_iterable_ipns, make_asyncIterable_exiter as $g9l4l$make_asyncIterable_exiter, href_change_ipns as $g9l4l$href_change_ipns, depict_click as $g9l4l$depict_click, impression_track_element as $g9l4l$impression_track_element, add_new_tab_listener as $g9l4l$add_new_tab_listener, ContainedImage as $g9l4l$ContainedImage, buildThresholdList as $g9l4l$buildThresholdList, PreviousSearchIcon as $g9l4l$PreviousSearchIcon, insert_surfaces as $g9l4l$insert_surfaces} from "@depict-ai/utilishared";
|
|
2
2
|
import {template as $g9l4l$template, insert as $g9l4l$insert, effect as $g9l4l$effect, setAttribute as $g9l4l$setAttribute, createComponent as $g9l4l$createComponent, use as $g9l4l$use, addEventListener as $g9l4l$addEventListener, delegateEvents as $g9l4l$delegateEvents, spread as $g9l4l$spread, memo as $g9l4l$memo, style as $g9l4l$style, mergeProps as $g9l4l$mergeProps, classList as $g9l4l$classList, className as $g9l4l$className} from "solid-js/web";
|
|
3
3
|
import {createSignal as $g9l4l$createSignal, onCleanup as $g9l4l$onCleanup, createComputed as $g9l4l$createComputed, createEffect as $g9l4l$createEffect, untrack as $g9l4l$untrack, batch as $g9l4l$batch, createResource as $g9l4l$createResource, createMemo as $g9l4l$createMemo, Show as $g9l4l$Show, createRenderEffect as $g9l4l$createRenderEffect, runWithOwner as $g9l4l$runWithOwner, createRoot as $g9l4l$createRoot, getOwner as $g9l4l$getOwner, on as $g9l4l$on, Index as $g9l4l$Index, For as $g9l4l$For, ErrorBoundary as $g9l4l$ErrorBoundary} from "solid-js";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */
|
|
6
|
-
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.49";
|
|
6
|
+
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -73,15 +73,6 @@ function $3075a4497054bec6$export$9862539c89138352(get_default_values) {
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Adds things to the object we send to backend as a header to report the package versions used
|
|
79
|
-
*/ const $f22123a20b6b80b3$export$89a2f5e6eb5005b6 = {};
|
|
80
|
-
function $f22123a20b6b80b3$export$2cefb7e61fcbae00(stuff_to_add) {
|
|
81
|
-
Object.assign($f22123a20b6b80b3$export$89a2f5e6eb5005b6, stuff_to_add);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
76
|
const $3846bb34098c738f$var$v2_base_url = (0, $g9l4l$base_url) + "/v2/";
|
|
86
77
|
const $3846bb34098c738f$var$search_base_url = $3846bb34098c738f$var$v2_base_url + "search/";
|
|
87
78
|
const $3846bb34098c738f$var$add_ids_to_request = (input_req)=>{
|
|
@@ -114,12 +105,7 @@ class $3846bb34098c738f$export$e015ed2f2950f2e3 {
|
|
|
114
105
|
async suggest(input_req) {
|
|
115
106
|
const request = $3846bb34098c738f$var$add_ids_to_request(input_req);
|
|
116
107
|
const url = (0, $g9l4l$make_url_with_query_params)($3846bb34098c738f$var$search_base_url + "suggestions", request);
|
|
117
|
-
const results = await (0, $g9l4l$fetch_retry)(
|
|
118
|
-
headers: {
|
|
119
|
-
"Content-Type": "text/plain",
|
|
120
|
-
...$3846bb34098c738f$var$get_version_headers()
|
|
121
|
-
}
|
|
122
|
-
});
|
|
108
|
+
const results = await (0, $g9l4l$fetch_retry)((0, $g9l4l$add_version_query_params)(url));
|
|
123
109
|
attempt_to_return_api_response: {
|
|
124
110
|
if (!results) break attempt_to_return_api_response;
|
|
125
111
|
const decoded_json = await results.json();
|
|
@@ -146,11 +132,7 @@ class $3846bb34098c738f$export$e015ed2f2950f2e3 {
|
|
|
146
132
|
let resolve_in_progress;
|
|
147
133
|
cache_obj.in_progress_[body] = new Promise((r)=>resolve_in_progress = r);
|
|
148
134
|
try {
|
|
149
|
-
const search_results = await (0, $g9l4l$fetch_retry)(endpoint1, {
|
|
150
|
-
headers: {
|
|
151
|
-
"Content-Type": "text/plain",
|
|
152
|
-
...$3846bb34098c738f$var$get_version_headers()
|
|
153
|
-
},
|
|
135
|
+
const search_results = await (0, $g9l4l$fetch_retry)((0, $g9l4l$add_version_query_params)(endpoint1), {
|
|
154
136
|
method: "POST",
|
|
155
137
|
body: body
|
|
156
138
|
});
|
|
@@ -196,23 +178,12 @@ class $3846bb34098c738f$export$e015ed2f2950f2e3 {
|
|
|
196
178
|
}));
|
|
197
179
|
}
|
|
198
180
|
async get_recommended(input_req) {
|
|
181
|
+
// @ts-ignore ModernDisplay doesn't have arbitrary string access, and we'd like it to stay that way
|
|
199
182
|
return await this.#cached_post_request($3846bb34098c738f$var$search_base_url + "related", input_req, ()=>({
|
|
200
183
|
displays: []
|
|
201
184
|
}));
|
|
202
185
|
}
|
|
203
186
|
}
|
|
204
|
-
function $3846bb34098c738f$var$get_version_headers() {
|
|
205
|
-
// We can't use any header name or the browser will make an OPTIONS request which will slow down search a lot
|
|
206
|
-
const version_object = {
|
|
207
|
-
...(0, $f22123a20b6b80b3$export$89a2f5e6eb5005b6),
|
|
208
|
-
"@depict-ai/utilishared": (0, $g9l4l$version),
|
|
209
|
-
"@depict-ai/ui": (0, $18bf1d29fb889cca$export$83d89fbfd8236492)
|
|
210
|
-
};
|
|
211
|
-
return {
|
|
212
|
-
"Accept": Object.entries(version_object)// No special characters allowed: https://developer.mozilla.org/en-US/docs/Glossary/CORS-safelisted_request_header
|
|
213
|
-
.map(([pkg, version])=>`${pkg.replaceAll("@", "")}=${version}`).join(",")
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
187
|
|
|
217
188
|
|
|
218
189
|
|
|
@@ -5255,8 +5226,6 @@ async function $80a49d3809ecb080$var$download_categories(tenant, market) {
|
|
|
5255
5226
|
|
|
5256
5227
|
|
|
5257
5228
|
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
5229
|
const $aaacfac0064e97d9$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="instant-card"><div class="img-part"></div><div class="right-part"><div class="title-brand-tagline"><span class="title"></span></div></div></div>`, 10);
|
|
5261
5230
|
function $aaacfac0064e97d9$export$ee1733d9a8495996() {
|
|
5262
5231
|
return (()=>{
|
|
@@ -5325,8 +5294,8 @@ function $7a7079d66c12b788$export$d757d54550ebfb3d({ category_suggestion_: categ
|
|
|
5325
5294
|
|
|
5326
5295
|
|
|
5327
5296
|
|
|
5328
|
-
const $
|
|
5329
|
-
function $
|
|
5297
|
+
const $6ded59a142c93078$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="back" type="button"></button>`, 2), $6ded59a142c93078$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="search-field"><div class="field"><input class="query" tabindex="0"><button type="button" class="clear"></button></div><button class="submit major" type="button"></button></div>`, 9);
|
|
5298
|
+
function $6ded59a142c93078$export$b94867ecbd698f21({ search_field_value_: search_field_value_ , input_field_ref_: input_field_ref_ , field_element_ref_: field_element_ref_ , submit_query_: submit_query_ , override_on_enter_: override_on_enter_ , clear_filters_: clear_filters_ , disabled_: disabled_ = false , on_back_: on_back_ , i18n_: i18n_ }) {
|
|
5330
5299
|
let input_field;
|
|
5331
5300
|
(0, $g9l4l$createEffect)((0, $g9l4l$catchify)(async ()=>{
|
|
5332
5301
|
if (disabled_) return;
|
|
@@ -5335,11 +5304,11 @@ function $3a2af5e36c43cf2f$export$ff21851bb5d30e15({ search_field_value_: search
|
|
|
5335
5304
|
input_field.focus();
|
|
5336
5305
|
})); // focus field on render
|
|
5337
5306
|
return (()=>{
|
|
5338
|
-
const _el$ = $
|
|
5307
|
+
const _el$ = $6ded59a142c93078$var$_tmpl$2.cloneNode(true), _el$3 = _el$.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling;
|
|
5339
5308
|
(0, $g9l4l$insert)(_el$, (0, $g9l4l$createComponent)((0, $g9l4l$Show), {
|
|
5340
5309
|
when: on_back_,
|
|
5341
5310
|
get children () {
|
|
5342
|
-
const _el$2 = $
|
|
5311
|
+
const _el$2 = $6ded59a142c93078$var$_tmpl$.cloneNode(true);
|
|
5343
5312
|
(0, $g9l4l$addEventListener)(_el$2, "click", (0, $g9l4l$catchify)(on_back_), true);
|
|
5344
5313
|
(0, $g9l4l$insert)(_el$2, (0, $g9l4l$createComponent)((0, $g9l4l$BackIcon), {}));
|
|
5345
5314
|
(0, $g9l4l$effect)(()=>(0, $g9l4l$setAttribute)(_el$2, "aria-label", i18n_.back_()));
|
|
@@ -5392,7 +5361,7 @@ function $3a2af5e36c43cf2f$export$ff21851bb5d30e15({ search_field_value_: search
|
|
|
5392
5361
|
(0, $g9l4l$addEventListener)(_el$6, "click", (0, $g9l4l$catchify)(()=>submit_query_()), true);
|
|
5393
5362
|
(0, $g9l4l$insert)(_el$6, (0, $g9l4l$createComponent)((0, $g9l4l$SearchIcon), {}));
|
|
5394
5363
|
(0, $g9l4l$effect)((_p$)=>{
|
|
5395
|
-
const _v$ = i18n_.
|
|
5364
|
+
const _v$ = i18n_.search_field_field_aria_label_(), _v$2 = i18n_.placeholder_text_(), _v$3 = i18n_.clear_filters_query_sorting_after_submit_(), _v$4 = (0, $g9l4l$createMemo)(()=>search_field_value_[0]() ? "" : "display: none")(), _v$5 = i18n_.search_submit_button_aria_label_();
|
|
5396
5365
|
_v$ !== _p$._v$ && (0, $g9l4l$setAttribute)(_el$4, "aria-label", _p$._v$ = _v$);
|
|
5397
5366
|
_v$2 !== _p$._v$2 && (0, $g9l4l$setAttribute)(_el$4, "placeholder", _p$._v$2 = _v$2);
|
|
5398
5367
|
_v$3 !== _p$._v$3 && (0, $g9l4l$setAttribute)(_el$5, "title", _p$._v$3 = _v$3);
|
|
@@ -5769,7 +5738,7 @@ const $d3c0043bb23a833f$export$b05c0ae390cf3e06 = (display_or_variant_container,
|
|
|
5769
5738
|
const display = (0, $g9l4l$createMemo)(()=>{
|
|
5770
5739
|
const display = display_or_variant_container();
|
|
5771
5740
|
// Support for backend's new display format
|
|
5772
|
-
if ("
|
|
5741
|
+
if ("variant_index" in display) {
|
|
5773
5742
|
const actual_display = display.variant_displays[display.variant_index];
|
|
5774
5743
|
return {
|
|
5775
5744
|
image_url: actual_display.image_urls?.[0],
|
|
@@ -5927,7 +5896,8 @@ function $d811ce622b5b7626$var$track_elements(display, index, elements, tenant,
|
|
|
5927
5896
|
const disconnectors = [];
|
|
5928
5897
|
(0, $g9l4l$createComputed)(()=>{
|
|
5929
5898
|
let stop = false;
|
|
5930
|
-
const
|
|
5899
|
+
const modern_or_legacy_d = display(); // For every display
|
|
5900
|
+
const d = "variant_index" in modern_or_legacy_d ? modern_or_legacy_d.variant_displays[modern_or_legacy_d.variant_index] : modern_or_legacy_d;
|
|
5931
5901
|
const t = tenant(); // and tenant
|
|
5932
5902
|
const m = market(); // / market combination
|
|
5933
5903
|
const click_handler = ()=>{
|
|
@@ -6764,7 +6734,7 @@ function $b24f16c875c2baa6$export$f021bdedd3ec901a(props) {
|
|
|
6764
6734
|
|
|
6765
6735
|
const $a9f6faeac82c322b$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4), $a9f6faeac82c322b$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<b></b>`, 2), $a9f6faeac82c322b$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict-search-modal"><div class="body"><div class="padded"></div></div></div>`, 6), $a9f6faeac82c322b$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div></div>`, 4);
|
|
6766
6736
|
function $a9f6faeac82c322b$export$1c593cbd6f1e10bc({ search_field_value_: search_field_value_ , search_query_: search_query_ , search_page_url_param_name_: search_page_url_param_name_ , previous_searches_: previous_searches_ , close_modal_: close_modal_ , style_props_: style_props_ = (0, $g9l4l$createSignal)({}) , depict_api_: depict_api_ , tenant_: tenant_ , market_: market_ , submit_query_: submit_query_ , instant_results_options_: instant_results_options_ , register_closing_animation_: register_closing_animation_ , url_transformer_: url_transformer_ , closing_animation_: closing_animation_ , alternative_query_submitter_for_spas_: alternative_query_submitter_for_spas_ , clear_filters_: clear_filters_ , i18n_: i18n_ , disable_scrolling_: disable_scrolling_ = true , enable_category_suggestions_: enable_category_suggestions_ , class_list_: class_list_ , after_submit_: after_submit_ , bottom_distance_under_modal_: bottom_distance_under_modal_ , navigate_page_to_href_: navigate_page_to_href_ , on_submit_with_unchanged_value_: on_submit_with_unchanged_value_ }) {
|
|
6767
|
-
let
|
|
6737
|
+
let on_enter_in_search_field_function;
|
|
6768
6738
|
const [input_field, set_input_field] = (0, $g9l4l$createSignal)();
|
|
6769
6739
|
const [get_search_field_value_] = search_field_value_;
|
|
6770
6740
|
const [elements_outside_scrollable, set_elements_outside_scrollable] = (0, $g9l4l$createSignal)();
|
|
@@ -6822,12 +6792,12 @@ function $a9f6faeac82c322b$export$1c593cbd6f1e10bc({ search_field_value_: search
|
|
|
6822
6792
|
(0, $g9l4l$addEventListener)(_el$4, "click", (0, $g9l4l$catchify)(({ target: target })=>{
|
|
6823
6793
|
if (target === modal_element) close_modal_();
|
|
6824
6794
|
}), true);
|
|
6825
|
-
(0, $g9l4l$insert)(_el$5, (0, $g9l4l$createComponent)((0, $
|
|
6795
|
+
(0, $g9l4l$insert)(_el$5, (0, $g9l4l$createComponent)((0, $6ded59a142c93078$export$b94867ecbd698f21), {
|
|
6826
6796
|
input_field_ref_: (element)=>set_input_field(element),
|
|
6827
6797
|
search_query_: search_query_,
|
|
6828
6798
|
search_field_value_: search_field_value_,
|
|
6829
6799
|
submit_query_: submit_query_,
|
|
6830
|
-
override_on_enter_: (e)=>
|
|
6800
|
+
override_on_enter_: (e)=>on_enter_in_search_field_function?.(e),
|
|
6831
6801
|
clear_filters_: clear_filters_,
|
|
6832
6802
|
on_back_: close_modal_,
|
|
6833
6803
|
i18n_: i18n_
|
|
@@ -6838,7 +6808,7 @@ function $a9f6faeac82c322b$export$1c593cbd6f1e10bc({ search_field_value_: search
|
|
|
6838
6808
|
message_: "Autocomplete/suggestions failed",
|
|
6839
6809
|
get children () {
|
|
6840
6810
|
return (0, $g9l4l$createComponent)((0, $c7bc9269d29d4bdc$export$2f2b9559550c7bbc), {
|
|
6841
|
-
set_override_on_enter_fn_: (new_fn)=>
|
|
6811
|
+
set_override_on_enter_fn_: (new_fn)=>on_enter_in_search_field_function = new_fn,
|
|
6842
6812
|
input_field_: input_field,
|
|
6843
6813
|
search_field_value_: search_field_value_,
|
|
6844
6814
|
get previous_searches_text_ () {
|
|
@@ -7095,8 +7065,8 @@ function $b76e8f62b1f313ef$export$a54ec244c8863715(opts) {
|
|
|
7095
7065
|
const modal_body_style = (0, $g9l4l$createSignal)({});
|
|
7096
7066
|
let input_field;
|
|
7097
7067
|
if (include_input_field_) {
|
|
7098
|
-
const
|
|
7099
|
-
input_field = (0, $g9l4l$createComponent)(
|
|
7068
|
+
const SafeSearchField = (0, $g9l4l$catchify)((0, $6ded59a142c93078$export$b94867ecbd698f21));
|
|
7069
|
+
input_field = (0, $g9l4l$createComponent)(SafeSearchField, {
|
|
7100
7070
|
i18n_: i18n_,
|
|
7101
7071
|
disabled_: true,
|
|
7102
7072
|
search_query_: search_query_,
|
|
@@ -7323,13 +7293,12 @@ function $b76e8f62b1f313ef$export$a54ec244c8863715(opts) {
|
|
|
7323
7293
|
|
|
7324
7294
|
|
|
7325
7295
|
|
|
7326
|
-
|
|
7327
|
-
function $9783d52321be38fe$export$bec48a3a3ca6bc09(aligner) {
|
|
7296
|
+
function $a79ffb1cbfbd2a09$export$828dcdd425fd3231(aligner) {
|
|
7328
7297
|
const style_element = document.createElement("style");
|
|
7329
7298
|
document.head.append(style_element);
|
|
7330
7299
|
const resize_observer = new ResizeObserver((0, $g9l4l$catchify)(()=>{
|
|
7331
7300
|
const styles = (0, $246aa49a8f85c7f3$export$1233ca167bf71f9a)({
|
|
7332
|
-
".depict.plp .depict-search-modal .
|
|
7301
|
+
".depict.plp .depict-search-modal .search-field": {
|
|
7333
7302
|
"height": `${aligner?.clientHeight}px`
|
|
7334
7303
|
}
|
|
7335
7304
|
});
|
|
@@ -7645,10 +7614,10 @@ function $540e930c58500cbe$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7645
7614
|
});
|
|
7646
7615
|
}, "Entire SearchPage failed");
|
|
7647
7616
|
}
|
|
7648
|
-
function $540e930c58500cbe$export$
|
|
7617
|
+
function $540e930c58500cbe$export$316f6f283ae64765({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler , aligner_ref: aligner_ref }) {
|
|
7649
7618
|
const shared_properties = $540e930c58500cbe$var$get_shared_properties(depict_search);
|
|
7650
7619
|
return (0, $c7f938ac40924f3b$export$23fca46f3143581f)(()=>{
|
|
7651
|
-
const input = (0, $g9l4l$createComponent)((0, $
|
|
7620
|
+
const input = (0, $g9l4l$createComponent)((0, $6ded59a142c93078$export$b94867ecbd698f21), {
|
|
7652
7621
|
get search_query_ () {
|
|
7653
7622
|
return shared_properties.search_query_signal_;
|
|
7654
7623
|
},
|
|
@@ -7693,7 +7662,6 @@ function $540e930c58500cbe$export$b94867ecbd698f21({ depict_search: depict_searc
|
|
|
7693
7662
|
(()=>{
|
|
7694
7663
|
const _el$ = $540e930c58500cbe$var$_tmpl$.cloneNode(true);
|
|
7695
7664
|
(0, $g9l4l$insert)(_el$, input);
|
|
7696
|
-
(0, $g9l4l$effect)(()=>(0, $g9l4l$setAttribute)(_el$, "id", (0, $01115659405f3c64$export$44dad306455dddf).SEARCH_MODAL));
|
|
7697
7665
|
return _el$;
|
|
7698
7666
|
})()
|
|
7699
7667
|
];
|
|
@@ -7702,7 +7670,7 @@ function $540e930c58500cbe$export$b94867ecbd698f21({ depict_search: depict_searc
|
|
|
7702
7670
|
function $540e930c58500cbe$var$align_field_modal(style_props_, input, aligner_ref) {
|
|
7703
7671
|
return (0, $g9l4l$createRoot)((dispose)=>{
|
|
7704
7672
|
if (aligner_ref) {
|
|
7705
|
-
const { cleanup: cleanup } = (0, $
|
|
7673
|
+
const { cleanup: cleanup } = (0, $a79ffb1cbfbd2a09$export$828dcdd425fd3231)(aligner_ref);
|
|
7706
7674
|
(0, $079defea521d5e2a$export$b3ad617e9036868)(style_props_, aligner_ref, undefined, false, "top");
|
|
7707
7675
|
return {
|
|
7708
7676
|
cleanup: ()=>{
|
|
@@ -7743,7 +7711,6 @@ function $a3e81b85527bc866$export$d0596b5cae35ad4(open_search) {
|
|
|
7743
7711
|
|
|
7744
7712
|
|
|
7745
7713
|
|
|
7746
|
-
|
|
7747
7714
|
function $36316d7b4c897a03$export$689e204eadb33baf(pr) {
|
|
7748
7715
|
let old_url;
|
|
7749
7716
|
let disconnect_link_observer;
|
|
@@ -7876,7 +7843,7 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7876
7843
|
}
|
|
7877
7844
|
|
|
7878
7845
|
|
|
7879
|
-
(0, $g9l4l$
|
|
7846
|
+
(0, $g9l4l$add_to_version_info)("ui", (0, $18bf1d29fb889cca$export$83d89fbfd8236492));
|
|
7880
7847
|
|
|
7881
7848
|
|
|
7882
|
-
export {$e95f1855a5e3864f$export$58e808b1db15d3bc as fetchDepictRecommendations, $ec52ef1e6c117813$export$de035477d6fef996 as QuickLinks, $ec52ef1e6c117813$export$5b7c3ce0ebe51f86 as BreadCrumbs, $6340962f8bafd049$export$b91cec6bdc6b32a1 as CategoryTitle, $9b693ea3ff420de6$export$824dde41348efed1 as embedded_num_products, $80a49d3809ecb080$export$643598a327b5833e as get_categories, $ec52ef1e6c117813$export$f34314aa9505732e as DepictCategory, $ec52ef1e6c117813$export$e2bf8ce7779e827e as CategoryPage, $540e930c58500cbe$export$ac6237957a15b3f0 as DepictSearch, $540e930c58500cbe$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $540e930c58500cbe$export$f2dc7e4e4aa11abb as SearchPage, $540e930c58500cbe$export$
|
|
7849
|
+
export {$e95f1855a5e3864f$export$58e808b1db15d3bc as fetchDepictRecommendations, $ec52ef1e6c117813$export$de035477d6fef996 as QuickLinks, $ec52ef1e6c117813$export$5b7c3ce0ebe51f86 as BreadCrumbs, $6340962f8bafd049$export$b91cec6bdc6b32a1 as CategoryTitle, $9b693ea3ff420de6$export$824dde41348efed1 as embedded_num_products, $80a49d3809ecb080$export$643598a327b5833e as get_categories, $ec52ef1e6c117813$export$f34314aa9505732e as DepictCategory, $ec52ef1e6c117813$export$e2bf8ce7779e827e as CategoryPage, $540e930c58500cbe$export$ac6237957a15b3f0 as DepictSearch, $540e930c58500cbe$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $540e930c58500cbe$export$f2dc7e4e4aa11abb as SearchPage, $540e930c58500cbe$export$316f6f283ae64765 as SearchField, $aaacfac0064e97d9$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $079defea521d5e2a$export$b3ad617e9036868 as align_field, $246aa49a8f85c7f3$export$1233ca167bf71f9a as styles_to_valid_css_string, $a1123c5ed9b0ee29$export$fe334901e8bebd57 as disable_scrolling, $a3e81b85527bc866$export$d0596b5cae35ad4 as open_search_with_shift_slash, $972ebf2641490830$export$26df08e242fe83a3 as push_state_with_query_param_value, $3846bb34098c738f$export$e015ed2f2950f2e3 as DepictAPI, $fefe7683325039b3$export$d9f36cf74e24d595 as media_query_to_accessor, $36316d7b4c897a03$export$689e204eadb33baf as setup_fast_leave, $886fa987db4f3805$export$5196e4c01fa56fcb as show_toast, $5178263ed1e394ca$export$469c7af753d08925 as solid_format_price, $a79ffb1cbfbd2a09$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $ba6c9609228edf6b$export$3ccaa27d81dd8556 as PageReplacer, $18bf1d29fb889cca$export$83d89fbfd8236492 as version};
|
package/locales/index.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ interface search_i18n extends plp_shared_i18n {
|
|
|
53
53
|
category_: string;
|
|
54
54
|
suggestions_: string;
|
|
55
55
|
search_submit_button_aria_label_: string;
|
|
56
|
-
|
|
56
|
+
search_field_field_aria_label_: string;
|
|
57
57
|
previous_searches_delete_entry_from_history_: string;
|
|
58
58
|
}
|
|
59
59
|
/**
|
package/locales/index.js
CHANGED
|
@@ -70,7 +70,7 @@ const $fec3b2c9bf29834a$export$434b5d2e9cbbcde1 = {
|
|
|
70
70
|
"clear_filters_query_sorting_after_submit_": "Clear query. Also clear sorting and filters after next submit.",
|
|
71
71
|
"placeholder_text_": "Search",
|
|
72
72
|
search_submit_button_aria_label_: "Search",
|
|
73
|
-
|
|
73
|
+
search_field_field_aria_label_: "Search query field",
|
|
74
74
|
previous_searches_delete_entry_from_history_: "Remove query from history",
|
|
75
75
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
76
76
|
return q.textContent !== "" ? [
|
|
@@ -165,7 +165,7 @@ const $d511b90af38383e7$export$62ef558576ddaf3d = {
|
|
|
165
165
|
"clear_filters_query_sorting_after_submit_": "Vymazat dotaz. Vymazat i tř\xedděn\xed a filtry po př\xedšt\xedm odesl\xe1n\xed.",
|
|
166
166
|
"placeholder_text_": "Hled\xe1n\xed",
|
|
167
167
|
search_submit_button_aria_label_: "Hled\xe1n\xed",
|
|
168
|
-
"
|
|
168
|
+
"search_field_field_aria_label_": "Pol\xedčko dotazu hled\xe1n\xed",
|
|
169
169
|
"previous_searches_delete_entry_from_history_": "Odebrat dotaz z historie"
|
|
170
170
|
};
|
|
171
171
|
|
|
@@ -237,7 +237,7 @@ const $69aa53cc585ff425$export$70578856b2420b5d = {
|
|
|
237
237
|
"previous_searches_text_": "Dine tidligere s\xf8gninger",
|
|
238
238
|
"placeholder_text_": "S\xf8gning",
|
|
239
239
|
"search_submit_button_aria_label_": "S\xf8gning",
|
|
240
|
-
"
|
|
240
|
+
"search_field_field_aria_label_": "Felt til s\xf8gning",
|
|
241
241
|
"previous_searches_delete_entry_from_history_": "Fjern foresp\xf8rgsel fra historik",
|
|
242
242
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
243
243
|
return q.textContent !== "" ? [
|
|
@@ -333,7 +333,7 @@ const $b1ed15f1060ca49b$export$5d14584e27bf4bc5 = {
|
|
|
333
333
|
"clear_filters_query_sorting_after_submit_": "Zoekopdracht wissen. Wis ook sortering en filters na volgende verzending.",
|
|
334
334
|
"placeholder_text_": "Zoeken",
|
|
335
335
|
search_submit_button_aria_label_: "Zoeken",
|
|
336
|
-
"
|
|
336
|
+
"search_field_field_aria_label_": "Zoeken met zoekveld",
|
|
337
337
|
"previous_searches_delete_entry_from_history_": "Verwijder zoekopdracht uit geschiedenis"
|
|
338
338
|
};
|
|
339
339
|
|
|
@@ -418,7 +418,7 @@ const $27c3bbeb15a3775e$export$bb9c5e11b9203620 = {
|
|
|
418
418
|
"search_recs_title_": "Muita vaihtoehtoja",
|
|
419
419
|
"placeholder_text_": "Hae",
|
|
420
420
|
search_submit_button_aria_label_: "Hae",
|
|
421
|
-
"
|
|
421
|
+
"search_field_field_aria_label_": "Hakukentt\xe4",
|
|
422
422
|
"previous_searches_delete_entry_from_history_": "Poista haku historiasta"
|
|
423
423
|
};
|
|
424
424
|
|
|
@@ -502,7 +502,7 @@ const $10e3d3e9b795ccc1$export$e608b2bb21ba1862 = {
|
|
|
502
502
|
"clear_filters_query_sorting_after_submit_": "Effacer la demande. Effacer aussi le tri et les filtres apr\xe8s le prochain envoi.",
|
|
503
503
|
"placeholder_text_": "Rechercher",
|
|
504
504
|
search_submit_button_aria_label_: "Rechercher",
|
|
505
|
-
"
|
|
505
|
+
"search_field_field_aria_label_": "Champ de requ\xeate Rechercher",
|
|
506
506
|
"previous_searches_delete_entry_from_history_": "Supprimer une requ\xeate de l’historique"
|
|
507
507
|
};
|
|
508
508
|
|
|
@@ -573,7 +573,7 @@ const $2cfb95bda7d63069$export$b43a5e72c07b4d2a = {
|
|
|
573
573
|
"modal_discover_more_": "Mehr erforschen",
|
|
574
574
|
search_submit_button_aria_label_: "Suchen",
|
|
575
575
|
previous_searches_delete_entry_from_history_: "Anfrage aus Verlauf l\xf6schen",
|
|
576
|
-
"
|
|
576
|
+
"search_field_field_aria_label_": "Suchanfragenfeld",
|
|
577
577
|
"placeholder_text_": "Suchen",
|
|
578
578
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
579
579
|
return q.textContent !== "" ? [
|
|
@@ -668,7 +668,7 @@ const $3330bf128d49ae78$export$c05550c0848a3fe4 = {
|
|
|
668
668
|
"clear_filters_query_sorting_after_submit_": "Cancella query. Cancella anche selezione e filtri dopo il prossimo invio.",
|
|
669
669
|
"placeholder_text_": "Ricerca",
|
|
670
670
|
search_submit_button_aria_label_: "Ricerca",
|
|
671
|
-
"
|
|
671
|
+
"search_field_field_aria_label_": "Cerca campo query",
|
|
672
672
|
"previous_searches_delete_entry_from_history_": "Rimuovi query dalla cronologia"
|
|
673
673
|
};
|
|
674
674
|
|
|
@@ -741,7 +741,7 @@ const $aa3146c987095257$export$dcb702a89633f297 = {
|
|
|
741
741
|
"placeholder_text_": "S\xf8k",
|
|
742
742
|
search_submit_button_aria_label_: "S\xf8k",
|
|
743
743
|
"previous_searches_delete_entry_from_history_": "Slett sp\xf8rsm\xe5l fra loggen",
|
|
744
|
-
"
|
|
744
|
+
"search_field_field_aria_label_": "S\xf8k sp\xf8rsm\xe5lfelt",
|
|
745
745
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
746
746
|
return q.textContent !== "" ? [
|
|
747
747
|
`Viser `,
|
|
@@ -832,7 +832,7 @@ const $1e935e73fa197514$export$b0eb0dd41442f532 = {
|
|
|
832
832
|
"clear_filters_query_sorting_after_submit_": "Wyczyść zapytanie. Wyczyść r\xf3wnież sortowanie i filtry po następnym przesłaniu.",
|
|
833
833
|
"placeholder_text_": "Wyszukaj",
|
|
834
834
|
search_submit_button_aria_label_: "Wyszukaj",
|
|
835
|
-
"
|
|
835
|
+
"search_field_field_aria_label_": "Pole wyszukiwania",
|
|
836
836
|
"previous_searches_delete_entry_from_history_": "Usuń zapytanie z historii"
|
|
837
837
|
};
|
|
838
838
|
|
|
@@ -905,7 +905,7 @@ const $439a41dad2acd223$export$b3b5aa2c4df8976f = {
|
|
|
905
905
|
"clear_filters_query_sorting_after_submit_": "Limpar consulta. Limpar a sele\xe7\xe3o e os filtros depois do pr\xf3ximo envio.",
|
|
906
906
|
"placeholder_text_": "Pesquisa",
|
|
907
907
|
search_submit_button_aria_label_: "Pesquisa",
|
|
908
|
-
"
|
|
908
|
+
"search_field_field_aria_label_": "Campo de consulta de pesquisa",
|
|
909
909
|
"previous_searches_delete_entry_from_history_": "Remover consultas do hist\xf3rico"
|
|
910
910
|
};
|
|
911
911
|
|
|
@@ -989,7 +989,7 @@ const $5bfab7d1de1e67de$export$49b8f20513f0ff25 = {
|
|
|
989
989
|
"clear_filters_query_sorting_after_submit_": "Borrar consulta. Eliminar tambi\xe9n la selecci\xf3n y los filtros despu\xe9s del pr\xf3ximo env\xedo.",
|
|
990
990
|
"placeholder_text_": "B\xfasqueda",
|
|
991
991
|
search_submit_button_aria_label_: "B\xfasqueda",
|
|
992
|
-
"
|
|
992
|
+
"search_field_field_aria_label_": "Campo de consulta de b\xfasqueda",
|
|
993
993
|
"previous_searches_delete_entry_from_history_": "Eliminar consulta del historial"
|
|
994
994
|
};
|
|
995
995
|
|
|
@@ -1057,7 +1057,7 @@ const $8561c43f1475c0b5$export$596caee559c76764 = {
|
|
|
1057
1057
|
"modal_discover_more_": "Utforska mer",
|
|
1058
1058
|
"placeholder_text_": "S\xf6k",
|
|
1059
1059
|
search_submit_button_aria_label_: "S\xf6k",
|
|
1060
|
-
|
|
1060
|
+
search_field_field_aria_label_: "S\xf6kf\xe4lt",
|
|
1061
1061
|
previous_searches_delete_entry_from_history_: "Ta bort f\xf6rfr\xe5ga fr\xe5n historiken",
|
|
1062
1062
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
1063
1063
|
return q.textContent !== "" ? [
|
package/locales/require.js
CHANGED
|
@@ -87,7 +87,7 @@ const $07db801ee546c1bd$export$434b5d2e9cbbcde1 = {
|
|
|
87
87
|
"clear_filters_query_sorting_after_submit_": "Clear query. Also clear sorting and filters after next submit.",
|
|
88
88
|
"placeholder_text_": "Search",
|
|
89
89
|
search_submit_button_aria_label_: "Search",
|
|
90
|
-
|
|
90
|
+
search_field_field_aria_label_: "Search query field",
|
|
91
91
|
previous_searches_delete_entry_from_history_: "Remove query from history",
|
|
92
92
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
93
93
|
return q.textContent !== "" ? [
|
|
@@ -182,7 +182,7 @@ const $261a4d82817f7737$export$62ef558576ddaf3d = {
|
|
|
182
182
|
"clear_filters_query_sorting_after_submit_": "Vymazat dotaz. Vymazat i tř\xedděn\xed a filtry po př\xedšt\xedm odesl\xe1n\xed.",
|
|
183
183
|
"placeholder_text_": "Hled\xe1n\xed",
|
|
184
184
|
search_submit_button_aria_label_: "Hled\xe1n\xed",
|
|
185
|
-
"
|
|
185
|
+
"search_field_field_aria_label_": "Pol\xedčko dotazu hled\xe1n\xed",
|
|
186
186
|
"previous_searches_delete_entry_from_history_": "Odebrat dotaz z historie"
|
|
187
187
|
};
|
|
188
188
|
|
|
@@ -254,7 +254,7 @@ const $00908f6ac561c3a8$export$70578856b2420b5d = {
|
|
|
254
254
|
"previous_searches_text_": "Dine tidligere s\xf8gninger",
|
|
255
255
|
"placeholder_text_": "S\xf8gning",
|
|
256
256
|
"search_submit_button_aria_label_": "S\xf8gning",
|
|
257
|
-
"
|
|
257
|
+
"search_field_field_aria_label_": "Felt til s\xf8gning",
|
|
258
258
|
"previous_searches_delete_entry_from_history_": "Fjern foresp\xf8rgsel fra historik",
|
|
259
259
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
260
260
|
return q.textContent !== "" ? [
|
|
@@ -350,7 +350,7 @@ const $fc1dde9179ef0a66$export$5d14584e27bf4bc5 = {
|
|
|
350
350
|
"clear_filters_query_sorting_after_submit_": "Zoekopdracht wissen. Wis ook sortering en filters na volgende verzending.",
|
|
351
351
|
"placeholder_text_": "Zoeken",
|
|
352
352
|
search_submit_button_aria_label_: "Zoeken",
|
|
353
|
-
"
|
|
353
|
+
"search_field_field_aria_label_": "Zoeken met zoekveld",
|
|
354
354
|
"previous_searches_delete_entry_from_history_": "Verwijder zoekopdracht uit geschiedenis"
|
|
355
355
|
};
|
|
356
356
|
|
|
@@ -435,7 +435,7 @@ const $35be04fa51a001db$export$bb9c5e11b9203620 = {
|
|
|
435
435
|
"search_recs_title_": "Muita vaihtoehtoja",
|
|
436
436
|
"placeholder_text_": "Hae",
|
|
437
437
|
search_submit_button_aria_label_: "Hae",
|
|
438
|
-
"
|
|
438
|
+
"search_field_field_aria_label_": "Hakukentt\xe4",
|
|
439
439
|
"previous_searches_delete_entry_from_history_": "Poista haku historiasta"
|
|
440
440
|
};
|
|
441
441
|
|
|
@@ -519,7 +519,7 @@ const $590f0e69b6cd50a9$export$e608b2bb21ba1862 = {
|
|
|
519
519
|
"clear_filters_query_sorting_after_submit_": "Effacer la demande. Effacer aussi le tri et les filtres apr\xe8s le prochain envoi.",
|
|
520
520
|
"placeholder_text_": "Rechercher",
|
|
521
521
|
search_submit_button_aria_label_: "Rechercher",
|
|
522
|
-
"
|
|
522
|
+
"search_field_field_aria_label_": "Champ de requ\xeate Rechercher",
|
|
523
523
|
"previous_searches_delete_entry_from_history_": "Supprimer une requ\xeate de l’historique"
|
|
524
524
|
};
|
|
525
525
|
|
|
@@ -590,7 +590,7 @@ const $5b1e507b0a7fe0ba$export$b43a5e72c07b4d2a = {
|
|
|
590
590
|
"modal_discover_more_": "Mehr erforschen",
|
|
591
591
|
search_submit_button_aria_label_: "Suchen",
|
|
592
592
|
previous_searches_delete_entry_from_history_: "Anfrage aus Verlauf l\xf6schen",
|
|
593
|
-
"
|
|
593
|
+
"search_field_field_aria_label_": "Suchanfragenfeld",
|
|
594
594
|
"placeholder_text_": "Suchen",
|
|
595
595
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
596
596
|
return q.textContent !== "" ? [
|
|
@@ -685,7 +685,7 @@ const $d5d486bbb5a01dfd$export$c05550c0848a3fe4 = {
|
|
|
685
685
|
"clear_filters_query_sorting_after_submit_": "Cancella query. Cancella anche selezione e filtri dopo il prossimo invio.",
|
|
686
686
|
"placeholder_text_": "Ricerca",
|
|
687
687
|
search_submit_button_aria_label_: "Ricerca",
|
|
688
|
-
"
|
|
688
|
+
"search_field_field_aria_label_": "Cerca campo query",
|
|
689
689
|
"previous_searches_delete_entry_from_history_": "Rimuovi query dalla cronologia"
|
|
690
690
|
};
|
|
691
691
|
|
|
@@ -758,7 +758,7 @@ const $3e0b02b5e1ab2064$export$dcb702a89633f297 = {
|
|
|
758
758
|
"placeholder_text_": "S\xf8k",
|
|
759
759
|
search_submit_button_aria_label_: "S\xf8k",
|
|
760
760
|
"previous_searches_delete_entry_from_history_": "Slett sp\xf8rsm\xe5l fra loggen",
|
|
761
|
-
"
|
|
761
|
+
"search_field_field_aria_label_": "S\xf8k sp\xf8rsm\xe5lfelt",
|
|
762
762
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
763
763
|
return q.textContent !== "" ? [
|
|
764
764
|
`Viser `,
|
|
@@ -849,7 +849,7 @@ const $8e05c59dcfcb636b$export$b0eb0dd41442f532 = {
|
|
|
849
849
|
"clear_filters_query_sorting_after_submit_": "Wyczyść zapytanie. Wyczyść r\xf3wnież sortowanie i filtry po następnym przesłaniu.",
|
|
850
850
|
"placeholder_text_": "Wyszukaj",
|
|
851
851
|
search_submit_button_aria_label_: "Wyszukaj",
|
|
852
|
-
"
|
|
852
|
+
"search_field_field_aria_label_": "Pole wyszukiwania",
|
|
853
853
|
"previous_searches_delete_entry_from_history_": "Usuń zapytanie z historii"
|
|
854
854
|
};
|
|
855
855
|
|
|
@@ -922,7 +922,7 @@ const $c62c6ac8a38bed4c$export$b3b5aa2c4df8976f = {
|
|
|
922
922
|
"clear_filters_query_sorting_after_submit_": "Limpar consulta. Limpar a sele\xe7\xe3o e os filtros depois do pr\xf3ximo envio.",
|
|
923
923
|
"placeholder_text_": "Pesquisa",
|
|
924
924
|
search_submit_button_aria_label_: "Pesquisa",
|
|
925
|
-
"
|
|
925
|
+
"search_field_field_aria_label_": "Campo de consulta de pesquisa",
|
|
926
926
|
"previous_searches_delete_entry_from_history_": "Remover consultas do hist\xf3rico"
|
|
927
927
|
};
|
|
928
928
|
|
|
@@ -1006,7 +1006,7 @@ const $2fc92e29bfc8e851$export$49b8f20513f0ff25 = {
|
|
|
1006
1006
|
"clear_filters_query_sorting_after_submit_": "Borrar consulta. Eliminar tambi\xe9n la selecci\xf3n y los filtros despu\xe9s del pr\xf3ximo env\xedo.",
|
|
1007
1007
|
"placeholder_text_": "B\xfasqueda",
|
|
1008
1008
|
search_submit_button_aria_label_: "B\xfasqueda",
|
|
1009
|
-
"
|
|
1009
|
+
"search_field_field_aria_label_": "Campo de consulta de b\xfasqueda",
|
|
1010
1010
|
"previous_searches_delete_entry_from_history_": "Eliminar consulta del historial"
|
|
1011
1011
|
};
|
|
1012
1012
|
|
|
@@ -1074,7 +1074,7 @@ const $e6136be0f36561ba$export$596caee559c76764 = {
|
|
|
1074
1074
|
"modal_discover_more_": "Utforska mer",
|
|
1075
1075
|
"placeholder_text_": "S\xf6k",
|
|
1076
1076
|
search_submit_button_aria_label_: "S\xf6k",
|
|
1077
|
-
|
|
1077
|
+
search_field_field_aria_label_: "S\xf6kf\xe4lt",
|
|
1078
1078
|
previous_searches_delete_entry_from_history_: "Ta bort f\xf6rfr\xe5ga fr\xe5n historiken",
|
|
1079
1079
|
get_showing_results_for_: (q, number_of_results)=>{
|
|
1080
1080
|
return q.textContent !== "" ? [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": [
|
|
6
6
|
"src/index.ts",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@babel/preset-typescript": "latest",
|
|
71
71
|
"@babel/runtime": "latest",
|
|
72
72
|
"@babel/runtime-corejs3": "latest",
|
|
73
|
-
"@depict-ai/types": "^0.0.
|
|
73
|
+
"@depict-ai/types": "^0.0.3",
|
|
74
74
|
"@jest/globals": "^29.3.1",
|
|
75
75
|
"@parcel/babel-preset-env": "latest",
|
|
76
76
|
"@parcel/resolver-default": "^2.8.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"ts-jest": "^29.0.3"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@depict-ai/utilishared": "^0.0.
|
|
85
|
+
"@depict-ai/utilishared": "^0.0.47",
|
|
86
86
|
"solid-js": "^1.6.2"
|
|
87
87
|
},
|
|
88
88
|
"types": "dist/index.d.ts"
|