@depict-ai/ui 3.0.2 → 3.0.3
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/ES10/index.cjs +16 -6
- package/ES10/index.d.ts +7 -8
- package/ES10/index.js +16 -6
- package/latest/index.cjs +12 -6
- package/latest/index.d.ts +7 -8
- package/latest/index.js +12 -6
- package/package.json +1 -1
- package/server/ES10/index.cjs +16 -6
- package/server/ES10/index.d.ts +7 -8
- package/server/ES10/index.js +16 -6
- package/server/latest/index.cjs +12 -6
- package/server/latest/index.d.ts +7 -8
- package/server/latest/index.js +12 -6
package/ES10/index.cjs
CHANGED
|
@@ -83,7 +83,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
83
83
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
84
84
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
85
85
|
/*! Depict.ai search and product listing SDK */
|
|
86
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.
|
|
86
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.3";
|
|
87
87
|
const $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
88
88
|
function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
89
89
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -9841,6 +9841,10 @@ function $3001ad378baf39dc$export$d757d54550ebfb3d(_ref) {
|
|
|
9841
9841
|
category_suggestion_: category_suggestion_,
|
|
9842
9842
|
router_: router_
|
|
9843
9843
|
} = _ref;
|
|
9844
|
+
const parentTitle = $52FdA$solidjs.createMemo(() => {
|
|
9845
|
+
var _category_suggestion_;
|
|
9846
|
+
return (_category_suggestion_ = category_suggestion_().breadcrumbs.at(-1)) === null || _category_suggestion_ === void 0 ? void 0 : _category_suggestion_.title;
|
|
9847
|
+
});
|
|
9844
9848
|
return (() => {
|
|
9845
9849
|
const _el$ = $52FdA$solidjsweb.getNextElement($3001ad378baf39dc$var$_tmpl$2),
|
|
9846
9850
|
_el$2 = _el$.firstChild,
|
|
@@ -9856,11 +9860,11 @@ function $3001ad378baf39dc$export$d757d54550ebfb3d(_ref) {
|
|
|
9856
9860
|
$52FdA$solidjsweb.insert(_el$2, () => category_suggestion_().title);
|
|
9857
9861
|
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
9858
9862
|
get when() {
|
|
9859
|
-
return
|
|
9863
|
+
return parentTitle();
|
|
9860
9864
|
},
|
|
9861
9865
|
get children() {
|
|
9862
9866
|
const _el$3 = $52FdA$solidjsweb.getNextElement($3001ad378baf39dc$var$_tmpl$);
|
|
9863
|
-
$52FdA$solidjsweb.insert(_el$3,
|
|
9867
|
+
$52FdA$solidjsweb.insert(_el$3, parentTitle);
|
|
9864
9868
|
return _el$3;
|
|
9865
9869
|
}
|
|
9866
9870
|
}), _el$5, _co$);
|
|
@@ -10729,6 +10733,12 @@ function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
|
|
|
10729
10733
|
var _read_selected_index_, _read_selected_index_2;
|
|
10730
10734
|
return ((_read_selected_index_ = read_selected_index_()) === null || _read_selected_index_ === void 0 ? void 0 : _read_selected_index_[0]) === autocomplete_data_index && ((_read_selected_index_2 = read_selected_index_()) === null || _read_selected_index_2 === void 0 ? void 0 : _read_selected_index_2[1]) === index;
|
|
10731
10735
|
});
|
|
10736
|
+
const parent_title_if_exists = $52FdA$solidjs.createMemo(() => {
|
|
10737
|
+
var _item$breadcrumbs$at;
|
|
10738
|
+
const item = input_obj();
|
|
10739
|
+
if (!("breadcrumbs" in item)) return;
|
|
10740
|
+
return (_item$breadcrumbs$at = item.breadcrumbs.at(-1)) === null || _item$breadcrumbs$at === void 0 ? void 0 : _item$breadcrumbs$at.title;
|
|
10741
|
+
});
|
|
10732
10742
|
return (() => {
|
|
10733
10743
|
const _el$ = $52FdA$solidjsweb.getNextElement($0677d509ad208e22$var$_tmpl$);
|
|
10734
10744
|
$52FdA$solidjsweb.use(element => element.addEventListener("click", $52FdA$depictaiutilishared.catchify(ev => {
|
|
@@ -10770,7 +10780,7 @@ function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
|
|
|
10770
10780
|
},
|
|
10771
10781
|
searching_for_value_: searching_for_value_
|
|
10772
10782
|
})] : [$52FdA$solidjsweb.memo((() => {
|
|
10773
|
-
const _c$2 = $52FdA$solidjsweb.memo(() =>
|
|
10783
|
+
const _c$2 = $52FdA$solidjsweb.memo(() => !!parent_title_if_exists());
|
|
10774
10784
|
return () => _c$2() ? (() => {
|
|
10775
10785
|
const _el$4 = $52FdA$solidjsweb.getNextElement($0677d509ad208e22$var$_tmpl$4),
|
|
10776
10786
|
_el$6 = _el$4.firstChild,
|
|
@@ -10783,7 +10793,7 @@ function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
|
|
|
10783
10793
|
},
|
|
10784
10794
|
searching_for_value_: searching_for_value_
|
|
10785
10795
|
}), _el$7, _co$);
|
|
10786
|
-
$52FdA$solidjsweb.insert(_el$5,
|
|
10796
|
+
$52FdA$solidjsweb.insert(_el$5, parent_title_if_exists);
|
|
10787
10797
|
return _el$4;
|
|
10788
10798
|
})() : (() => {
|
|
10789
10799
|
const _c$3 = $52FdA$solidjsweb.memo(() => input_obj().type === "content");
|
|
@@ -10817,7 +10827,7 @@ function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
|
|
|
10817
10827
|
const _el$3 = $52FdA$solidjsweb.getNextElement($0677d509ad208e22$var$_tmpl$3);
|
|
10818
10828
|
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjs.createMemo(() => {
|
|
10819
10829
|
if (input_obj().type === "content") return i18n_.content_();
|
|
10820
|
-
if (input_obj().category_type === "
|
|
10830
|
+
if (input_obj().category_type === "brand") return i18n_.brand_();
|
|
10821
10831
|
return i18n_.category_();
|
|
10822
10832
|
}));
|
|
10823
10833
|
return _el$3;
|
package/ES10/index.d.ts
CHANGED
|
@@ -2,16 +2,15 @@ import { JSX, Signal, Accessor, Setter } from "solid-js";
|
|
|
2
2
|
import { Amazing_Slider, Node_Array, Display, report, ColsAtSize, Elem, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
3
3
|
import { SearchFilter, SortModel, SearchRequestV3 } from "@depict-ai/types/api/SearchRequestV3";
|
|
4
4
|
import { SearchFilter as _SearchFilter1, ContentLink, SearchResponse } from "@depict-ai/types/api/SearchResponse";
|
|
5
|
-
import { CategorySuggestion } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
5
|
+
import { CategorySuggestion, SearchSuggestionsResponseV3 } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
6
6
|
import { Breadcrumb, Quicklink, GetListingResponse } from "@depict-ai/types/api/GetListingResponse";
|
|
7
|
-
import { LegacyCategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/api/SearchSuggestionsResponse";
|
|
8
7
|
import { ProductListingResponseV3 } from "@depict-ai/types/api/ProductListingResponseV3";
|
|
9
8
|
import { SearchSuggestionsRequestV3 } from "@depict-ai/types/api/SearchSuggestionsRequestV3";
|
|
10
9
|
import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequestV3";
|
|
11
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
12
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
13
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "3.0.
|
|
13
|
+
export const version = "3.0.3";
|
|
15
14
|
/** @jsxImportSource solid-js */
|
|
16
15
|
export function GenericSliderArrowButton(props?: {
|
|
17
16
|
width_?: number;
|
|
@@ -690,11 +689,11 @@ export type InstantCard<T extends Display> = (display: T, context: {
|
|
|
690
689
|
merchant: string;
|
|
691
690
|
market: string;
|
|
692
691
|
}) => JSX.Element;
|
|
693
|
-
type CategorySuggestionAfterURLCreator =
|
|
692
|
+
type CategorySuggestionAfterURLCreator = CategorySuggestion & {
|
|
694
693
|
page_url: string;
|
|
695
694
|
};
|
|
696
|
-
type ReplaceCategorySuggestion<T> = T extends
|
|
697
|
-
type SearchSuggestionsResponseAfterURLCreator = { [K in keyof
|
|
695
|
+
type ReplaceCategorySuggestion<T> = T extends CategorySuggestion ? CategorySuggestionAfterURLCreator : T extends CategorySuggestion[] ? CategorySuggestionAfterURLCreator[] : T;
|
|
696
|
+
type SearchSuggestionsResponseAfterURLCreator = { [K in keyof SearchSuggestionsResponseV3]: ReplaceCategorySuggestion<SearchSuggestionsResponseV3[K]> };
|
|
698
697
|
type AddPageUrlToDisplay<T extends any[]> = (T[number] & {
|
|
699
698
|
page_url: string;
|
|
700
699
|
})[];
|
|
@@ -836,12 +835,12 @@ export function BreadCrumbs<T extends Display>({
|
|
|
836
835
|
depict_category
|
|
837
836
|
}: {
|
|
838
837
|
depict_category: DepictCategory<T>;
|
|
839
|
-
}):
|
|
838
|
+
}): HTMLDivElement;
|
|
840
839
|
export function QuickLinks<T extends Display>({
|
|
841
840
|
depict_category
|
|
842
841
|
}: {
|
|
843
842
|
depict_category: DepictCategory<T>;
|
|
844
|
-
}):
|
|
843
|
+
}): HTMLDivElement;
|
|
845
844
|
/**
|
|
846
845
|
* Gets available listings for a given merchant, market and locale
|
|
847
846
|
*/
|
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.3";
|
|
14
14
|
const $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
15
15
|
function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
16
16
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -9768,6 +9768,10 @@ function $dea31647b99a443b$export$d757d54550ebfb3d(_ref) {
|
|
|
9768
9768
|
category_suggestion_: category_suggestion_,
|
|
9769
9769
|
router_: router_
|
|
9770
9770
|
} = _ref;
|
|
9771
|
+
const parentTitle = $8tj43$createMemo(() => {
|
|
9772
|
+
var _category_suggestion_;
|
|
9773
|
+
return (_category_suggestion_ = category_suggestion_().breadcrumbs.at(-1)) === null || _category_suggestion_ === void 0 ? void 0 : _category_suggestion_.title;
|
|
9774
|
+
});
|
|
9771
9775
|
return (() => {
|
|
9772
9776
|
const _el$ = $8tj43$getNextElement($dea31647b99a443b$var$_tmpl$2),
|
|
9773
9777
|
_el$2 = _el$.firstChild,
|
|
@@ -9783,11 +9787,11 @@ function $dea31647b99a443b$export$d757d54550ebfb3d(_ref) {
|
|
|
9783
9787
|
$8tj43$insert(_el$2, () => category_suggestion_().title);
|
|
9784
9788
|
$8tj43$insert(_el$, $8tj43$createComponent((0, $8tj43$Show), {
|
|
9785
9789
|
get when() {
|
|
9786
|
-
return
|
|
9790
|
+
return parentTitle();
|
|
9787
9791
|
},
|
|
9788
9792
|
get children() {
|
|
9789
9793
|
const _el$3 = $8tj43$getNextElement($dea31647b99a443b$var$_tmpl$);
|
|
9790
|
-
$8tj43$insert(_el$3,
|
|
9794
|
+
$8tj43$insert(_el$3, parentTitle);
|
|
9791
9795
|
return _el$3;
|
|
9792
9796
|
}
|
|
9793
9797
|
}), _el$5, _co$);
|
|
@@ -10656,6 +10660,12 @@ function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
|
10656
10660
|
var _read_selected_index_, _read_selected_index_2;
|
|
10657
10661
|
return ((_read_selected_index_ = read_selected_index_()) === null || _read_selected_index_ === void 0 ? void 0 : _read_selected_index_[0]) === autocomplete_data_index && ((_read_selected_index_2 = read_selected_index_()) === null || _read_selected_index_2 === void 0 ? void 0 : _read_selected_index_2[1]) === index;
|
|
10658
10662
|
});
|
|
10663
|
+
const parent_title_if_exists = $8tj43$createMemo(() => {
|
|
10664
|
+
var _item$breadcrumbs$at;
|
|
10665
|
+
const item = input_obj();
|
|
10666
|
+
if (!("breadcrumbs" in item)) return;
|
|
10667
|
+
return (_item$breadcrumbs$at = item.breadcrumbs.at(-1)) === null || _item$breadcrumbs$at === void 0 ? void 0 : _item$breadcrumbs$at.title;
|
|
10668
|
+
});
|
|
10659
10669
|
return (() => {
|
|
10660
10670
|
const _el$ = $8tj43$getNextElement($40dd3f46f55d62ba$var$_tmpl$);
|
|
10661
10671
|
$8tj43$use(element => element.addEventListener("click", $8tj43$catchify1(ev => {
|
|
@@ -10697,7 +10707,7 @@ function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
|
10697
10707
|
},
|
|
10698
10708
|
searching_for_value_: searching_for_value_
|
|
10699
10709
|
})] : [$8tj43$memo((() => {
|
|
10700
|
-
const _c$2 = $8tj43$memo(() =>
|
|
10710
|
+
const _c$2 = $8tj43$memo(() => !!parent_title_if_exists());
|
|
10701
10711
|
return () => _c$2() ? (() => {
|
|
10702
10712
|
const _el$4 = $8tj43$getNextElement($40dd3f46f55d62ba$var$_tmpl$4),
|
|
10703
10713
|
_el$6 = _el$4.firstChild,
|
|
@@ -10710,7 +10720,7 @@ function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
|
10710
10720
|
},
|
|
10711
10721
|
searching_for_value_: searching_for_value_
|
|
10712
10722
|
}), _el$7, _co$);
|
|
10713
|
-
$8tj43$insert(_el$5,
|
|
10723
|
+
$8tj43$insert(_el$5, parent_title_if_exists);
|
|
10714
10724
|
return _el$4;
|
|
10715
10725
|
})() : (() => {
|
|
10716
10726
|
const _c$3 = $8tj43$memo(() => input_obj().type === "content");
|
|
@@ -10744,7 +10754,7 @@ function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
|
10744
10754
|
const _el$3 = $8tj43$getNextElement($40dd3f46f55d62ba$var$_tmpl$3);
|
|
10745
10755
|
$8tj43$insert(_el$3, $8tj43$createMemo(() => {
|
|
10746
10756
|
if (input_obj().type === "content") return i18n_.content_();
|
|
10747
|
-
if (input_obj().category_type === "
|
|
10757
|
+
if (input_obj().category_type === "brand") return i18n_.brand_();
|
|
10748
10758
|
return i18n_.category_();
|
|
10749
10759
|
}));
|
|
10750
10760
|
return _el$3;
|
package/latest/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
77
77
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
78
78
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
79
79
|
/*! Depict.ai search and product listing SDK */
|
|
80
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.
|
|
80
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.3";
|
|
81
81
|
const $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
82
82
|
function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
83
83
|
return (() => {
|
|
@@ -9182,6 +9182,7 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
|
9182
9182
|
category_suggestion_: category_suggestion_,
|
|
9183
9183
|
router_: router_
|
|
9184
9184
|
}) {
|
|
9185
|
+
const parentTitle = $gVhhF$solidjs.createMemo(() => category_suggestion_().breadcrumbs.at(-1)?.title);
|
|
9185
9186
|
return (() => {
|
|
9186
9187
|
const _el$ = $gVhhF$solidjsweb.getNextElement($dae23104ba8bb78c$var$_tmpl$2),
|
|
9187
9188
|
_el$2 = _el$.firstChild,
|
|
@@ -9197,11 +9198,11 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
|
9197
9198
|
$gVhhF$solidjsweb.insert(_el$2, () => category_suggestion_().title);
|
|
9198
9199
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
9199
9200
|
get when() {
|
|
9200
|
-
return
|
|
9201
|
+
return parentTitle();
|
|
9201
9202
|
},
|
|
9202
9203
|
get children() {
|
|
9203
9204
|
const _el$3 = $gVhhF$solidjsweb.getNextElement($dae23104ba8bb78c$var$_tmpl$);
|
|
9204
|
-
$gVhhF$solidjsweb.insert(_el$3,
|
|
9205
|
+
$gVhhF$solidjsweb.insert(_el$3, parentTitle);
|
|
9205
9206
|
return _el$3;
|
|
9206
9207
|
}
|
|
9207
9208
|
}), _el$5, _co$);
|
|
@@ -10023,6 +10024,11 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
|
10023
10024
|
}) : undefined);
|
|
10024
10025
|
const href = $gVhhF$solidjs.createMemo(() => is_query() ? href_with_changed_params_accessor()() : input_obj().page_url);
|
|
10025
10026
|
const is_selected = $gVhhF$solidjs.createMemo(() => read_selected_index_()?.[0] === autocomplete_data_index && read_selected_index_()?.[1] === index);
|
|
10027
|
+
const parent_title_if_exists = $gVhhF$solidjs.createMemo(() => {
|
|
10028
|
+
const item = input_obj();
|
|
10029
|
+
if (!("breadcrumbs" in item)) return;
|
|
10030
|
+
return item.breadcrumbs.at(-1)?.title;
|
|
10031
|
+
});
|
|
10026
10032
|
return (() => {
|
|
10027
10033
|
const _el$ = $gVhhF$solidjsweb.getNextElement($6b65ba8af12c5a26$var$_tmpl$);
|
|
10028
10034
|
$gVhhF$solidjsweb.use(element => element.addEventListener("click", $gVhhF$depictaiutilishared.catchify(ev => {
|
|
@@ -10064,7 +10070,7 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
|
10064
10070
|
},
|
|
10065
10071
|
searching_for_value_: searching_for_value_
|
|
10066
10072
|
})] : [$gVhhF$solidjsweb.memo((() => {
|
|
10067
|
-
const _c$2 = $gVhhF$solidjsweb.memo(() =>
|
|
10073
|
+
const _c$2 = $gVhhF$solidjsweb.memo(() => !!parent_title_if_exists());
|
|
10068
10074
|
return () => _c$2() ? (() => {
|
|
10069
10075
|
const _el$4 = $gVhhF$solidjsweb.getNextElement($6b65ba8af12c5a26$var$_tmpl$4),
|
|
10070
10076
|
_el$6 = _el$4.firstChild,
|
|
@@ -10077,7 +10083,7 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
|
10077
10083
|
},
|
|
10078
10084
|
searching_for_value_: searching_for_value_
|
|
10079
10085
|
}), _el$7, _co$);
|
|
10080
|
-
$gVhhF$solidjsweb.insert(_el$5,
|
|
10086
|
+
$gVhhF$solidjsweb.insert(_el$5, parent_title_if_exists);
|
|
10081
10087
|
return _el$4;
|
|
10082
10088
|
})() : (() => {
|
|
10083
10089
|
const _c$3 = $gVhhF$solidjsweb.memo(() => input_obj().type === "content");
|
|
@@ -10111,7 +10117,7 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
|
10111
10117
|
const _el$3 = $gVhhF$solidjsweb.getNextElement($6b65ba8af12c5a26$var$_tmpl$3);
|
|
10112
10118
|
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjs.createMemo(() => {
|
|
10113
10119
|
if (input_obj().type === "content") return i18n_.content_();
|
|
10114
|
-
if (input_obj().category_type === "
|
|
10120
|
+
if (input_obj().category_type === "brand") return i18n_.brand_();
|
|
10115
10121
|
return i18n_.category_();
|
|
10116
10122
|
}));
|
|
10117
10123
|
return _el$3;
|
package/latest/index.d.ts
CHANGED
|
@@ -2,16 +2,15 @@ import { JSX, Signal, Accessor, Setter } from "solid-js";
|
|
|
2
2
|
import { Amazing_Slider, Node_Array, Display, report, ColsAtSize, Elem, ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
3
3
|
import { SearchFilter, SortModel, SearchRequestV3 } from "@depict-ai/types/api/SearchRequestV3";
|
|
4
4
|
import { SearchFilter as _SearchFilter1, ContentLink, SearchResponse } from "@depict-ai/types/api/SearchResponse";
|
|
5
|
-
import { CategorySuggestion } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
5
|
+
import { CategorySuggestion, SearchSuggestionsResponseV3 } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
6
6
|
import { Breadcrumb, Quicklink, GetListingResponse } from "@depict-ai/types/api/GetListingResponse";
|
|
7
|
-
import { LegacyCategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/api/SearchSuggestionsResponse";
|
|
8
7
|
import { ProductListingResponseV3 } from "@depict-ai/types/api/ProductListingResponseV3";
|
|
9
8
|
import { SearchSuggestionsRequestV3 } from "@depict-ai/types/api/SearchSuggestionsRequestV3";
|
|
10
9
|
import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequestV3";
|
|
11
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
12
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
13
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "3.0.
|
|
13
|
+
export const version = "3.0.3";
|
|
15
14
|
/** @jsxImportSource solid-js */
|
|
16
15
|
export function GenericSliderArrowButton(props?: {
|
|
17
16
|
width_?: number;
|
|
@@ -690,11 +689,11 @@ export type InstantCard<T extends Display> = (display: T, context: {
|
|
|
690
689
|
merchant: string;
|
|
691
690
|
market: string;
|
|
692
691
|
}) => JSX.Element;
|
|
693
|
-
type CategorySuggestionAfterURLCreator =
|
|
692
|
+
type CategorySuggestionAfterURLCreator = CategorySuggestion & {
|
|
694
693
|
page_url: string;
|
|
695
694
|
};
|
|
696
|
-
type ReplaceCategorySuggestion<T> = T extends
|
|
697
|
-
type SearchSuggestionsResponseAfterURLCreator = { [K in keyof
|
|
695
|
+
type ReplaceCategorySuggestion<T> = T extends CategorySuggestion ? CategorySuggestionAfterURLCreator : T extends CategorySuggestion[] ? CategorySuggestionAfterURLCreator[] : T;
|
|
696
|
+
type SearchSuggestionsResponseAfterURLCreator = { [K in keyof SearchSuggestionsResponseV3]: ReplaceCategorySuggestion<SearchSuggestionsResponseV3[K]> };
|
|
698
697
|
type AddPageUrlToDisplay<T extends any[]> = (T[number] & {
|
|
699
698
|
page_url: string;
|
|
700
699
|
})[];
|
|
@@ -836,12 +835,12 @@ export function BreadCrumbs<T extends Display>({
|
|
|
836
835
|
depict_category
|
|
837
836
|
}: {
|
|
838
837
|
depict_category: DepictCategory<T>;
|
|
839
|
-
}):
|
|
838
|
+
}): HTMLDivElement;
|
|
840
839
|
export function QuickLinks<T extends Display>({
|
|
841
840
|
depict_category
|
|
842
841
|
}: {
|
|
843
842
|
depict_category: DepictCategory<T>;
|
|
844
|
-
}):
|
|
843
|
+
}): HTMLDivElement;
|
|
845
844
|
/**
|
|
846
845
|
* Gets available listings for a given merchant, market and locale
|
|
847
846
|
*/
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.3";
|
|
11
11
|
const $fbbadcb080ad1d4a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
12
12
|
function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
|
|
13
13
|
return (() => {
|
|
@@ -9112,6 +9112,7 @@ function $897bd4a76f611b38$export$d757d54550ebfb3d({
|
|
|
9112
9112
|
category_suggestion_: category_suggestion_,
|
|
9113
9113
|
router_: router_
|
|
9114
9114
|
}) {
|
|
9115
|
+
const parentTitle = $9HbP8$createMemo(() => category_suggestion_().breadcrumbs.at(-1)?.title);
|
|
9115
9116
|
return (() => {
|
|
9116
9117
|
const _el$ = $9HbP8$getNextElement($897bd4a76f611b38$var$_tmpl$2),
|
|
9117
9118
|
_el$2 = _el$.firstChild,
|
|
@@ -9127,11 +9128,11 @@ function $897bd4a76f611b38$export$d757d54550ebfb3d({
|
|
|
9127
9128
|
$9HbP8$insert(_el$2, () => category_suggestion_().title);
|
|
9128
9129
|
$9HbP8$insert(_el$, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
9129
9130
|
get when() {
|
|
9130
|
-
return
|
|
9131
|
+
return parentTitle();
|
|
9131
9132
|
},
|
|
9132
9133
|
get children() {
|
|
9133
9134
|
const _el$3 = $9HbP8$getNextElement($897bd4a76f611b38$var$_tmpl$);
|
|
9134
|
-
$9HbP8$insert(_el$3,
|
|
9135
|
+
$9HbP8$insert(_el$3, parentTitle);
|
|
9135
9136
|
return _el$3;
|
|
9136
9137
|
}
|
|
9137
9138
|
}), _el$5, _co$);
|
|
@@ -9953,6 +9954,11 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({
|
|
|
9953
9954
|
}) : undefined);
|
|
9954
9955
|
const href = $9HbP8$createMemo(() => is_query() ? href_with_changed_params_accessor()() : input_obj().page_url);
|
|
9955
9956
|
const is_selected = $9HbP8$createMemo(() => read_selected_index_()?.[0] === autocomplete_data_index && read_selected_index_()?.[1] === index);
|
|
9957
|
+
const parent_title_if_exists = $9HbP8$createMemo(() => {
|
|
9958
|
+
const item = input_obj();
|
|
9959
|
+
if (!("breadcrumbs" in item)) return;
|
|
9960
|
+
return item.breadcrumbs.at(-1)?.title;
|
|
9961
|
+
});
|
|
9956
9962
|
return (() => {
|
|
9957
9963
|
const _el$ = $9HbP8$getNextElement($cea52f6b24092f05$var$_tmpl$);
|
|
9958
9964
|
$9HbP8$use(element => element.addEventListener("click", $9HbP8$catchify1(ev => {
|
|
@@ -9994,7 +10000,7 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({
|
|
|
9994
10000
|
},
|
|
9995
10001
|
searching_for_value_: searching_for_value_
|
|
9996
10002
|
})] : [$9HbP8$memo((() => {
|
|
9997
|
-
const _c$2 = $9HbP8$memo(() =>
|
|
10003
|
+
const _c$2 = $9HbP8$memo(() => !!parent_title_if_exists());
|
|
9998
10004
|
return () => _c$2() ? (() => {
|
|
9999
10005
|
const _el$4 = $9HbP8$getNextElement($cea52f6b24092f05$var$_tmpl$4),
|
|
10000
10006
|
_el$6 = _el$4.firstChild,
|
|
@@ -10007,7 +10013,7 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({
|
|
|
10007
10013
|
},
|
|
10008
10014
|
searching_for_value_: searching_for_value_
|
|
10009
10015
|
}), _el$7, _co$);
|
|
10010
|
-
$9HbP8$insert(_el$5,
|
|
10016
|
+
$9HbP8$insert(_el$5, parent_title_if_exists);
|
|
10011
10017
|
return _el$4;
|
|
10012
10018
|
})() : (() => {
|
|
10013
10019
|
const _c$3 = $9HbP8$memo(() => input_obj().type === "content");
|
|
@@ -10041,7 +10047,7 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({
|
|
|
10041
10047
|
const _el$3 = $9HbP8$getNextElement($cea52f6b24092f05$var$_tmpl$3);
|
|
10042
10048
|
$9HbP8$insert(_el$3, $9HbP8$createMemo(() => {
|
|
10043
10049
|
if (input_obj().type === "content") return i18n_.content_();
|
|
10044
|
-
if (input_obj().category_type === "
|
|
10050
|
+
if (input_obj().category_type === "brand") return i18n_.brand_();
|
|
10045
10051
|
return i18n_.category_();
|
|
10046
10052
|
}));
|
|
10047
10053
|
return _el$3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -83,7 +83,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
83
83
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
84
84
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
85
85
|
/*! Depict.ai search and product listing SDK */
|
|
86
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.
|
|
86
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.3";
|
|
87
87
|
const $9d19451330d04c3c$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
88
88
|
function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
89
89
|
var _$escape2, _$escape3;
|
|
@@ -8234,12 +8234,16 @@ function $3001ad378baf39dc$export$d757d54550ebfb3d(_ref) {
|
|
|
8234
8234
|
category_suggestion_: category_suggestion_,
|
|
8235
8235
|
router_: router_
|
|
8236
8236
|
} = _ref;
|
|
8237
|
+
const parentTitle = $3hooq$solidjs.createMemo(() => {
|
|
8238
|
+
var _category_suggestion_;
|
|
8239
|
+
return (_category_suggestion_ = category_suggestion_().breadcrumbs.at(-1)) === null || _category_suggestion_ === void 0 ? void 0 : _category_suggestion_.title;
|
|
8240
|
+
});
|
|
8237
8241
|
return $3hooq$solidjsweb.ssr($3001ad378baf39dc$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(category_suggestion_().page_url, true), false), $3hooq$solidjsweb.escape(category_suggestion_().title), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
8238
8242
|
get when() {
|
|
8239
|
-
return
|
|
8243
|
+
return parentTitle();
|
|
8240
8244
|
},
|
|
8241
8245
|
get children() {
|
|
8242
|
-
return $3hooq$solidjsweb.ssr($3001ad378baf39dc$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(
|
|
8246
|
+
return $3hooq$solidjsweb.ssr($3001ad378baf39dc$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(parentTitle()));
|
|
8243
8247
|
}
|
|
8244
8248
|
})));
|
|
8245
8249
|
}
|
|
@@ -8826,6 +8830,12 @@ function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
|
|
|
8826
8830
|
var _read_selected_index_, _read_selected_index_2;
|
|
8827
8831
|
return ((_read_selected_index_ = read_selected_index_()) === null || _read_selected_index_ === void 0 ? void 0 : _read_selected_index_[0]) === autocomplete_data_index && ((_read_selected_index_2 = read_selected_index_()) === null || _read_selected_index_2 === void 0 ? void 0 : _read_selected_index_2[1]) === index;
|
|
8828
8832
|
});
|
|
8833
|
+
const parent_title_if_exists = $3hooq$solidjs.createMemo(() => {
|
|
8834
|
+
var _item$breadcrumbs$at;
|
|
8835
|
+
const item = input_obj();
|
|
8836
|
+
if (!("breadcrumbs" in item)) return;
|
|
8837
|
+
return (_item$breadcrumbs$at = item.breadcrumbs.at(-1)) === null || _item$breadcrumbs$at === void 0 ? void 0 : _item$breadcrumbs$at.title;
|
|
8838
|
+
});
|
|
8829
8839
|
return $3hooq$solidjsweb.ssr($0677d509ad208e22$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "suggestion ".concat(is_selected() ? "selected" : "", " ").concat(is_history ? "history" : "", " ").concat($3hooq$solidjsweb.escape($3hooq$solidjsweb.escape("type-" + input_obj().type, true), true)), $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false), is_query() ? $3hooq$solidjsweb.escape([$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
8830
8840
|
when: is_history,
|
|
8831
8841
|
get fallback() {
|
|
@@ -8840,13 +8850,13 @@ function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
|
|
|
8840
8850
|
return $3hooq$solidjs.createMemo(() => input_obj().title);
|
|
8841
8851
|
},
|
|
8842
8852
|
searching_for_value_: searching_for_value_
|
|
8843
|
-
})]) : $3hooq$solidjsweb.escape([
|
|
8853
|
+
})]) : $3hooq$solidjsweb.escape([parent_title_if_exists() ? $3hooq$solidjsweb.ssr($0677d509ad208e22$var$_tmpl$4, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $23c3f390dee33ff8$export$ba17c5b7e6dda39f), {
|
|
8844
8854
|
class_: "category line-clamp",
|
|
8845
8855
|
get whole_text_to_display_() {
|
|
8846
8856
|
return $3hooq$solidjs.createMemo(() => input_obj().title);
|
|
8847
8857
|
},
|
|
8848
8858
|
searching_for_value_: searching_for_value_
|
|
8849
|
-
})), $3hooq$solidjsweb.escape(
|
|
8859
|
+
})), $3hooq$solidjsweb.escape(parent_title_if_exists())) : input_obj().type === "content" ? $3hooq$solidjsweb.ssr($0677d509ad208e22$var$_tmpl$5, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3cf7b4db1e203c93$export$605674723bcc715c), {
|
|
8850
8860
|
width: "16",
|
|
8851
8861
|
height: "16"
|
|
8852
8862
|
})), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $23c3f390dee33ff8$export$ba17c5b7e6dda39f), {
|
|
@@ -8863,7 +8873,7 @@ function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
|
|
|
8863
8873
|
searching_for_value_: searching_for_value_
|
|
8864
8874
|
}), $3hooq$solidjsweb.ssr($0677d509ad208e22$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjs.createMemo(() => {
|
|
8865
8875
|
if (input_obj().type === "content") return i18n_.content_();
|
|
8866
|
-
if (input_obj().category_type === "
|
|
8876
|
+
if (input_obj().category_type === "brand") return i18n_.brand_();
|
|
8867
8877
|
return i18n_.category_();
|
|
8868
8878
|
})()))]));
|
|
8869
8879
|
};
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -2,16 +2,15 @@ import { JSX, Signal, Accessor, Setter } from "solid-js";
|
|
|
2
2
|
import { Amazing_Slider, Node_Array, Display, report, ColsAtSize, Elem, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
3
3
|
import { SearchFilter, SortModel, SearchRequestV3 } from "@depict-ai/types/api/SearchRequestV3";
|
|
4
4
|
import { SearchFilter as _SearchFilter1, ContentLink, SearchResponse } from "@depict-ai/types/api/SearchResponse";
|
|
5
|
-
import { CategorySuggestion } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
5
|
+
import { CategorySuggestion, SearchSuggestionsResponseV3 } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
6
6
|
import { Breadcrumb, Quicklink, GetListingResponse } from "@depict-ai/types/api/GetListingResponse";
|
|
7
|
-
import { LegacyCategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/api/SearchSuggestionsResponse";
|
|
8
7
|
import { ProductListingResponseV3 } from "@depict-ai/types/api/ProductListingResponseV3";
|
|
9
8
|
import { SearchSuggestionsRequestV3 } from "@depict-ai/types/api/SearchSuggestionsRequestV3";
|
|
10
9
|
import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequestV3";
|
|
11
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
12
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
13
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "3.0.
|
|
13
|
+
export const version = "3.0.3";
|
|
15
14
|
/** @jsxImportSource solid-js */
|
|
16
15
|
export function GenericSliderArrowButton(props?: {
|
|
17
16
|
width_?: number;
|
|
@@ -690,11 +689,11 @@ export type InstantCard<T extends Display> = (display: T, context: {
|
|
|
690
689
|
merchant: string;
|
|
691
690
|
market: string;
|
|
692
691
|
}) => JSX.Element;
|
|
693
|
-
type CategorySuggestionAfterURLCreator =
|
|
692
|
+
type CategorySuggestionAfterURLCreator = CategorySuggestion & {
|
|
694
693
|
page_url: string;
|
|
695
694
|
};
|
|
696
|
-
type ReplaceCategorySuggestion<T> = T extends
|
|
697
|
-
type SearchSuggestionsResponseAfterURLCreator = { [K in keyof
|
|
695
|
+
type ReplaceCategorySuggestion<T> = T extends CategorySuggestion ? CategorySuggestionAfterURLCreator : T extends CategorySuggestion[] ? CategorySuggestionAfterURLCreator[] : T;
|
|
696
|
+
type SearchSuggestionsResponseAfterURLCreator = { [K in keyof SearchSuggestionsResponseV3]: ReplaceCategorySuggestion<SearchSuggestionsResponseV3[K]> };
|
|
698
697
|
type AddPageUrlToDisplay<T extends any[]> = (T[number] & {
|
|
699
698
|
page_url: string;
|
|
700
699
|
})[];
|
|
@@ -836,12 +835,12 @@ export function BreadCrumbs<T extends Display>({
|
|
|
836
835
|
depict_category
|
|
837
836
|
}: {
|
|
838
837
|
depict_category: DepictCategory<T>;
|
|
839
|
-
}):
|
|
838
|
+
}): HTMLDivElement;
|
|
840
839
|
export function QuickLinks<T extends Display>({
|
|
841
840
|
depict_category
|
|
842
841
|
}: {
|
|
843
842
|
depict_category: DepictCategory<T>;
|
|
844
|
-
}):
|
|
843
|
+
}): HTMLDivElement;
|
|
845
844
|
/**
|
|
846
845
|
* Gets available listings for a given merchant, market and locale
|
|
847
846
|
*/
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.3";
|
|
14
14
|
const $ca6ab5f08bd28bca$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
15
15
|
function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
16
16
|
var _$escape2, _$escape3;
|
|
@@ -8161,12 +8161,16 @@ function $dea31647b99a443b$export$d757d54550ebfb3d(_ref) {
|
|
|
8161
8161
|
category_suggestion_: category_suggestion_,
|
|
8162
8162
|
router_: router_
|
|
8163
8163
|
} = _ref;
|
|
8164
|
+
const parentTitle = $b8hua$createMemo(() => {
|
|
8165
|
+
var _category_suggestion_;
|
|
8166
|
+
return (_category_suggestion_ = category_suggestion_().breadcrumbs.at(-1)) === null || _category_suggestion_ === void 0 ? void 0 : _category_suggestion_.title;
|
|
8167
|
+
});
|
|
8164
8168
|
return $b8hua$ssr($dea31647b99a443b$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("href", $b8hua$escape(category_suggestion_().page_url, true), false), $b8hua$escape(category_suggestion_().title), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
8165
8169
|
get when() {
|
|
8166
|
-
return
|
|
8170
|
+
return parentTitle();
|
|
8167
8171
|
},
|
|
8168
8172
|
get children() {
|
|
8169
|
-
return $b8hua$ssr($dea31647b99a443b$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(
|
|
8173
|
+
return $b8hua$ssr($dea31647b99a443b$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(parentTitle()));
|
|
8170
8174
|
}
|
|
8171
8175
|
})));
|
|
8172
8176
|
}
|
|
@@ -8753,6 +8757,12 @@ function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
|
8753
8757
|
var _read_selected_index_, _read_selected_index_2;
|
|
8754
8758
|
return ((_read_selected_index_ = read_selected_index_()) === null || _read_selected_index_ === void 0 ? void 0 : _read_selected_index_[0]) === autocomplete_data_index && ((_read_selected_index_2 = read_selected_index_()) === null || _read_selected_index_2 === void 0 ? void 0 : _read_selected_index_2[1]) === index;
|
|
8755
8759
|
});
|
|
8760
|
+
const parent_title_if_exists = $b8hua$createMemo(() => {
|
|
8761
|
+
var _item$breadcrumbs$at;
|
|
8762
|
+
const item = input_obj();
|
|
8763
|
+
if (!("breadcrumbs" in item)) return;
|
|
8764
|
+
return (_item$breadcrumbs$at = item.breadcrumbs.at(-1)) === null || _item$breadcrumbs$at === void 0 ? void 0 : _item$breadcrumbs$at.title;
|
|
8765
|
+
});
|
|
8756
8766
|
return $b8hua$ssr($40dd3f46f55d62ba$var$_tmpl$, $b8hua$ssrHydrationKey(), "suggestion ".concat(is_selected() ? "selected" : "", " ").concat(is_history ? "history" : "", " ").concat($b8hua$escape($b8hua$escape("type-" + input_obj().type, true), true)), $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false), is_query() ? $b8hua$escape([$b8hua$createComponent((0, $b8hua$Show), {
|
|
8757
8767
|
when: is_history,
|
|
8758
8768
|
get fallback() {
|
|
@@ -8767,13 +8777,13 @@ function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
|
8767
8777
|
return $b8hua$createMemo(() => input_obj().title);
|
|
8768
8778
|
},
|
|
8769
8779
|
searching_for_value_: searching_for_value_
|
|
8770
|
-
})]) : $b8hua$escape([
|
|
8780
|
+
})]) : $b8hua$escape([parent_title_if_exists() ? $b8hua$ssr($40dd3f46f55d62ba$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $02b6641aa50ce528$export$ba17c5b7e6dda39f), {
|
|
8771
8781
|
class_: "category line-clamp",
|
|
8772
8782
|
get whole_text_to_display_() {
|
|
8773
8783
|
return $b8hua$createMemo(() => input_obj().title);
|
|
8774
8784
|
},
|
|
8775
8785
|
searching_for_value_: searching_for_value_
|
|
8776
|
-
})), $b8hua$escape(
|
|
8786
|
+
})), $b8hua$escape(parent_title_if_exists())) : input_obj().type === "content" ? $b8hua$ssr($40dd3f46f55d62ba$var$_tmpl$5, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $3c5e15c6ee4227a9$export$605674723bcc715c), {
|
|
8777
8787
|
width: "16",
|
|
8778
8788
|
height: "16"
|
|
8779
8789
|
})), $b8hua$escape($b8hua$createComponent((0, $02b6641aa50ce528$export$ba17c5b7e6dda39f), {
|
|
@@ -8790,7 +8800,7 @@ function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
|
8790
8800
|
searching_for_value_: searching_for_value_
|
|
8791
8801
|
}), $b8hua$ssr($40dd3f46f55d62ba$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createMemo(() => {
|
|
8792
8802
|
if (input_obj().type === "content") return i18n_.content_();
|
|
8793
|
-
if (input_obj().category_type === "
|
|
8803
|
+
if (input_obj().category_type === "brand") return i18n_.brand_();
|
|
8794
8804
|
return i18n_.category_();
|
|
8795
8805
|
})()))]));
|
|
8796
8806
|
};
|
package/server/latest/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
77
77
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
78
78
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
79
79
|
/*! Depict.ai search and product listing SDK */
|
|
80
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.
|
|
80
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.3";
|
|
81
81
|
const $0f313083912e447a$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
82
82
|
function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
83
83
|
return $5vyXB$solidjsweb.ssr($0f313083912e447a$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("width", $5vyXB$solidjsweb.escape(props.width_, true) ?? 14, false) + $5vyXB$solidjsweb.ssrAttribute("height", $5vyXB$solidjsweb.escape(props.height_, true) ?? 26, false));
|
|
@@ -7639,12 +7639,13 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
|
7639
7639
|
category_suggestion_: category_suggestion_,
|
|
7640
7640
|
router_: router_
|
|
7641
7641
|
}) {
|
|
7642
|
+
const parentTitle = $5vyXB$solidjs.createMemo(() => category_suggestion_().breadcrumbs.at(-1)?.title);
|
|
7642
7643
|
return $5vyXB$solidjsweb.ssr($dae23104ba8bb78c$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(category_suggestion_().page_url, true), false), $5vyXB$solidjsweb.escape(category_suggestion_().title), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
7643
7644
|
get when() {
|
|
7644
|
-
return
|
|
7645
|
+
return parentTitle();
|
|
7645
7646
|
},
|
|
7646
7647
|
get children() {
|
|
7647
|
-
return $5vyXB$solidjsweb.ssr($dae23104ba8bb78c$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(
|
|
7648
|
+
return $5vyXB$solidjsweb.ssr($dae23104ba8bb78c$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(parentTitle()));
|
|
7648
7649
|
}
|
|
7649
7650
|
})));
|
|
7650
7651
|
}
|
|
@@ -8188,6 +8189,11 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
|
8188
8189
|
}) : undefined);
|
|
8189
8190
|
const href = $5vyXB$solidjs.createMemo(() => is_query() ? href_with_changed_params_accessor()() : input_obj().page_url);
|
|
8190
8191
|
const is_selected = $5vyXB$solidjs.createMemo(() => read_selected_index_()?.[0] === autocomplete_data_index && read_selected_index_()?.[1] === index);
|
|
8192
|
+
const parent_title_if_exists = $5vyXB$solidjs.createMemo(() => {
|
|
8193
|
+
const item = input_obj();
|
|
8194
|
+
if (!("breadcrumbs" in item)) return;
|
|
8195
|
+
return item.breadcrumbs.at(-1)?.title;
|
|
8196
|
+
});
|
|
8191
8197
|
return $5vyXB$solidjsweb.ssr($6b65ba8af12c5a26$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `suggestion ${is_selected() ? "selected" : ""} ${is_history ? "history" : ""} ${$5vyXB$solidjsweb.escape($5vyXB$solidjsweb.escape("type-" + input_obj().type, true), true)}`, $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false), is_query() ? $5vyXB$solidjsweb.escape([$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
8192
8198
|
when: is_history,
|
|
8193
8199
|
get fallback() {
|
|
@@ -8202,13 +8208,13 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
|
8202
8208
|
return $5vyXB$solidjs.createMemo(() => input_obj().title);
|
|
8203
8209
|
},
|
|
8204
8210
|
searching_for_value_: searching_for_value_
|
|
8205
|
-
})]) : $5vyXB$solidjsweb.escape([
|
|
8211
|
+
})]) : $5vyXB$solidjsweb.escape([parent_title_if_exists() ? $5vyXB$solidjsweb.ssr($6b65ba8af12c5a26$var$_tmpl$4, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
|
|
8206
8212
|
class_: "category line-clamp",
|
|
8207
8213
|
get whole_text_to_display_() {
|
|
8208
8214
|
return $5vyXB$solidjs.createMemo(() => input_obj().title);
|
|
8209
8215
|
},
|
|
8210
8216
|
searching_for_value_: searching_for_value_
|
|
8211
|
-
})), $5vyXB$solidjsweb.escape(
|
|
8217
|
+
})), $5vyXB$solidjsweb.escape(parent_title_if_exists())) : input_obj().type === "content" ? $5vyXB$solidjsweb.ssr($6b65ba8af12c5a26$var$_tmpl$5, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $c0125412b4ea0c93$export$605674723bcc715c), {
|
|
8212
8218
|
width: "16",
|
|
8213
8219
|
height: "16"
|
|
8214
8220
|
})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
|
|
@@ -8225,7 +8231,7 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
|
8225
8231
|
searching_for_value_: searching_for_value_
|
|
8226
8232
|
}), $5vyXB$solidjsweb.ssr($6b65ba8af12c5a26$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjs.createMemo(() => {
|
|
8227
8233
|
if (input_obj().type === "content") return i18n_.content_();
|
|
8228
|
-
if (input_obj().category_type === "
|
|
8234
|
+
if (input_obj().category_type === "brand") return i18n_.brand_();
|
|
8229
8235
|
return i18n_.category_();
|
|
8230
8236
|
})()))]));
|
|
8231
8237
|
};
|
package/server/latest/index.d.ts
CHANGED
|
@@ -2,16 +2,15 @@ import { JSX, Signal, Accessor, Setter } from "solid-js";
|
|
|
2
2
|
import { Amazing_Slider, Node_Array, Display, report, ColsAtSize, Elem, ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
3
3
|
import { SearchFilter, SortModel, SearchRequestV3 } from "@depict-ai/types/api/SearchRequestV3";
|
|
4
4
|
import { SearchFilter as _SearchFilter1, ContentLink, SearchResponse } from "@depict-ai/types/api/SearchResponse";
|
|
5
|
-
import { CategorySuggestion } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
5
|
+
import { CategorySuggestion, SearchSuggestionsResponseV3 } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
6
6
|
import { Breadcrumb, Quicklink, GetListingResponse } from "@depict-ai/types/api/GetListingResponse";
|
|
7
|
-
import { LegacyCategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/api/SearchSuggestionsResponse";
|
|
8
7
|
import { ProductListingResponseV3 } from "@depict-ai/types/api/ProductListingResponseV3";
|
|
9
8
|
import { SearchSuggestionsRequestV3 } from "@depict-ai/types/api/SearchSuggestionsRequestV3";
|
|
10
9
|
import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequestV3";
|
|
11
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
12
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
13
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "3.0.
|
|
13
|
+
export const version = "3.0.3";
|
|
15
14
|
/** @jsxImportSource solid-js */
|
|
16
15
|
export function GenericSliderArrowButton(props?: {
|
|
17
16
|
width_?: number;
|
|
@@ -690,11 +689,11 @@ export type InstantCard<T extends Display> = (display: T, context: {
|
|
|
690
689
|
merchant: string;
|
|
691
690
|
market: string;
|
|
692
691
|
}) => JSX.Element;
|
|
693
|
-
type CategorySuggestionAfterURLCreator =
|
|
692
|
+
type CategorySuggestionAfterURLCreator = CategorySuggestion & {
|
|
694
693
|
page_url: string;
|
|
695
694
|
};
|
|
696
|
-
type ReplaceCategorySuggestion<T> = T extends
|
|
697
|
-
type SearchSuggestionsResponseAfterURLCreator = { [K in keyof
|
|
695
|
+
type ReplaceCategorySuggestion<T> = T extends CategorySuggestion ? CategorySuggestionAfterURLCreator : T extends CategorySuggestion[] ? CategorySuggestionAfterURLCreator[] : T;
|
|
696
|
+
type SearchSuggestionsResponseAfterURLCreator = { [K in keyof SearchSuggestionsResponseV3]: ReplaceCategorySuggestion<SearchSuggestionsResponseV3[K]> };
|
|
698
697
|
type AddPageUrlToDisplay<T extends any[]> = (T[number] & {
|
|
699
698
|
page_url: string;
|
|
700
699
|
})[];
|
|
@@ -836,12 +835,12 @@ export function BreadCrumbs<T extends Display>({
|
|
|
836
835
|
depict_category
|
|
837
836
|
}: {
|
|
838
837
|
depict_category: DepictCategory<T>;
|
|
839
|
-
}):
|
|
838
|
+
}): HTMLDivElement;
|
|
840
839
|
export function QuickLinks<T extends Display>({
|
|
841
840
|
depict_category
|
|
842
841
|
}: {
|
|
843
842
|
depict_category: DepictCategory<T>;
|
|
844
|
-
}):
|
|
843
|
+
}): HTMLDivElement;
|
|
845
844
|
/**
|
|
846
845
|
* Gets available listings for a given merchant, market and locale
|
|
847
846
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.3";
|
|
11
11
|
const $fbbadcb080ad1d4a$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
12
12
|
function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
|
|
13
13
|
return $i7OB2$ssr($fbbadcb080ad1d4a$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("width", $i7OB2$escape(props.width_, true) ?? 14, false) + $i7OB2$ssrAttribute("height", $i7OB2$escape(props.height_, true) ?? 26, false));
|
|
@@ -7569,12 +7569,13 @@ function $897bd4a76f611b38$export$d757d54550ebfb3d({
|
|
|
7569
7569
|
category_suggestion_: category_suggestion_,
|
|
7570
7570
|
router_: router_
|
|
7571
7571
|
}) {
|
|
7572
|
+
const parentTitle = $i7OB2$createMemo(() => category_suggestion_().breadcrumbs.at(-1)?.title);
|
|
7572
7573
|
return $i7OB2$ssr($897bd4a76f611b38$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("href", $i7OB2$escape(category_suggestion_().page_url, true), false), $i7OB2$escape(category_suggestion_().title), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
7573
7574
|
get when() {
|
|
7574
|
-
return
|
|
7575
|
+
return parentTitle();
|
|
7575
7576
|
},
|
|
7576
7577
|
get children() {
|
|
7577
|
-
return $i7OB2$ssr($897bd4a76f611b38$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(
|
|
7578
|
+
return $i7OB2$ssr($897bd4a76f611b38$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(parentTitle()));
|
|
7578
7579
|
}
|
|
7579
7580
|
})));
|
|
7580
7581
|
}
|
|
@@ -8118,6 +8119,11 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({
|
|
|
8118
8119
|
}) : undefined);
|
|
8119
8120
|
const href = $i7OB2$createMemo(() => is_query() ? href_with_changed_params_accessor()() : input_obj().page_url);
|
|
8120
8121
|
const is_selected = $i7OB2$createMemo(() => read_selected_index_()?.[0] === autocomplete_data_index && read_selected_index_()?.[1] === index);
|
|
8122
|
+
const parent_title_if_exists = $i7OB2$createMemo(() => {
|
|
8123
|
+
const item = input_obj();
|
|
8124
|
+
if (!("breadcrumbs" in item)) return;
|
|
8125
|
+
return item.breadcrumbs.at(-1)?.title;
|
|
8126
|
+
});
|
|
8121
8127
|
return $i7OB2$ssr($cea52f6b24092f05$var$_tmpl$, $i7OB2$ssrHydrationKey(), `suggestion ${is_selected() ? "selected" : ""} ${is_history ? "history" : ""} ${$i7OB2$escape($i7OB2$escape("type-" + input_obj().type, true), true)}`, $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false), is_query() ? $i7OB2$escape([$i7OB2$createComponent((0, $i7OB2$Show), {
|
|
8122
8128
|
when: is_history,
|
|
8123
8129
|
get fallback() {
|
|
@@ -8132,13 +8138,13 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({
|
|
|
8132
8138
|
return $i7OB2$createMemo(() => input_obj().title);
|
|
8133
8139
|
},
|
|
8134
8140
|
searching_for_value_: searching_for_value_
|
|
8135
|
-
})]) : $i7OB2$escape([
|
|
8141
|
+
})]) : $i7OB2$escape([parent_title_if_exists() ? $i7OB2$ssr($cea52f6b24092f05$var$_tmpl$4, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
|
|
8136
8142
|
class_: "category line-clamp",
|
|
8137
8143
|
get whole_text_to_display_() {
|
|
8138
8144
|
return $i7OB2$createMemo(() => input_obj().title);
|
|
8139
8145
|
},
|
|
8140
8146
|
searching_for_value_: searching_for_value_
|
|
8141
|
-
})), $i7OB2$escape(
|
|
8147
|
+
})), $i7OB2$escape(parent_title_if_exists())) : input_obj().type === "content" ? $i7OB2$ssr($cea52f6b24092f05$var$_tmpl$5, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $190927650b4840eb$export$605674723bcc715c), {
|
|
8142
8148
|
width: "16",
|
|
8143
8149
|
height: "16"
|
|
8144
8150
|
})), $i7OB2$escape($i7OB2$createComponent((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
|
|
@@ -8155,7 +8161,7 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({
|
|
|
8155
8161
|
searching_for_value_: searching_for_value_
|
|
8156
8162
|
}), $i7OB2$ssr($cea52f6b24092f05$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createMemo(() => {
|
|
8157
8163
|
if (input_obj().type === "content") return i18n_.content_();
|
|
8158
|
-
if (input_obj().category_type === "
|
|
8164
|
+
if (input_obj().category_type === "brand") return i18n_.brand_();
|
|
8159
8165
|
return i18n_.category_();
|
|
8160
8166
|
})()))]));
|
|
8161
8167
|
};
|