@depict-ai/ui 4.7.2 → 4.7.4
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 +19 -13
- package/ES10/index.d.ts +2 -2
- package/ES10/index.js +19 -13
- package/latest/index.cjs +15 -14
- package/latest/index.d.ts +2 -2
- package/latest/index.js +15 -14
- package/package.json +2 -2
- package/server/ES10/index.cjs +19 -13
- package/server/ES10/index.d.ts +2 -2
- package/server/ES10/index.js +19 -13
- package/server/latest/index.cjs +15 -14
- package/server/latest/index.d.ts +2 -2
- package/server/latest/index.js +15 -14
package/ES10/index.cjs
CHANGED
|
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
104
104
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
105
105
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
106
106
|
/*! Depict.ai search and product listing SDK */
|
|
107
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.
|
|
107
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.4";
|
|
108
108
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
109
109
|
const {
|
|
110
110
|
collapse: collapse,
|
|
@@ -1381,7 +1381,8 @@ function $f3db423dc84bc35d$export$9d4a4b669b1929ab(props) {
|
|
|
1381
1381
|
...props.imgProps,
|
|
1382
1382
|
customUrls: (url, width // Apparently don't have to encode url for CF's service
|
|
1383
1383
|
) => {
|
|
1384
|
-
|
|
1384
|
+
var _url$startsWith;
|
|
1385
|
+
if (url !== null && url !== void 0 && (_url$startsWith = url.startsWith) !== null && _url$startsWith !== void 0 && _url$startsWith.call(url, "https://cdn.shopify.com"))
|
|
1385
1386
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1386
1387
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1387
1388
|
return $858fdcf73148519f$export$1d6267828870adda(url, width);
|
|
@@ -1720,7 +1721,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1720
1721
|
get children() {
|
|
1721
1722
|
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1722
1723
|
get when() {
|
|
1723
|
-
return containerWidth_() || !displays_;
|
|
1724
|
+
return containerWidth_() || !displays_();
|
|
1724
1725
|
},
|
|
1725
1726
|
get children() {
|
|
1726
1727
|
var _el$ = $52FdA$solidjsweb.getNextElement($e0b3f1f332b6863b$var$_tmpl$),
|
|
@@ -1749,12 +1750,12 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1749
1750
|
get onMouseLeave() {
|
|
1750
1751
|
return $52FdA$depictaiutilishared.catchify(() => supportsHover_() && setUserWantsExpanded(false));
|
|
1751
1752
|
}
|
|
1752
|
-
}, () => displays_ && {
|
|
1753
|
+
}, () => displays_() && {
|
|
1753
1754
|
style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
|
|
1754
1755
|
}), false, true);
|
|
1755
1756
|
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Index), {
|
|
1756
1757
|
get each() {
|
|
1757
|
-
return displays_ || Array.from({
|
|
1758
|
+
return displays_() || Array.from({
|
|
1758
1759
|
length: 4
|
|
1759
1760
|
});
|
|
1760
1761
|
},
|
|
@@ -1814,7 +1815,6 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1814
1815
|
priceFormatting_: priceFormatting_,
|
|
1815
1816
|
pseudoRouter_: pseudoRouter_
|
|
1816
1817
|
} = _ref;
|
|
1817
|
-
const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
|
|
1818
1818
|
const useWantsExpandedSignal_ = $52FdA$solidjs.createSignal(false);
|
|
1819
1819
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1820
1820
|
const supportsHover_ = $3e17e871e9d0911d$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
@@ -1827,7 +1827,7 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1827
1827
|
} = _ref2;
|
|
1828
1828
|
return setUserWantsExpanded(prev => !prev);
|
|
1829
1829
|
}), true);
|
|
1830
|
-
_el$.classList.toggle("placeholder",
|
|
1830
|
+
$52FdA$solidjsweb.effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
1831
1831
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
1832
1832
|
return _el$;
|
|
1833
1833
|
})();
|
|
@@ -1854,7 +1854,9 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1854
1854
|
// Close us if another look expands
|
|
1855
1855
|
$52FdA$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1856
1856
|
$52FdA$solidjsweb.insert(container, () => [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1857
|
-
when
|
|
1857
|
+
get when() {
|
|
1858
|
+
return display_();
|
|
1859
|
+
},
|
|
1858
1860
|
get fallback() {
|
|
1859
1861
|
return $52FdA$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
|
|
1860
1862
|
aspectRatio: "var(".concat((0, $c0cf6af094336798$export$8a2234b5b1a5ebd4), ", ").concat(placeholderImageAspectRatio_, ")")
|
|
@@ -1862,14 +1864,18 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1862
1864
|
},
|
|
1863
1865
|
get children() {
|
|
1864
1866
|
return $52FdA$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
|
|
1865
|
-
src
|
|
1867
|
+
get src() {
|
|
1868
|
+
var _display_, _display_$image_urls;
|
|
1869
|
+
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
1870
|
+
},
|
|
1866
1871
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1867
1872
|
autoAdjustAspectRatio: true
|
|
1868
1873
|
});
|
|
1869
1874
|
}
|
|
1870
1875
|
}), $52FdA$solidjsweb.createComponent((0, $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae), {
|
|
1871
|
-
|
|
1872
|
-
|
|
1876
|
+
displays_: () => {
|
|
1877
|
+
var _display_2;
|
|
1878
|
+
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
1873
1879
|
},
|
|
1874
1880
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1875
1881
|
containerWidth_: containerWidth_,
|
|
@@ -2157,7 +2163,7 @@ function $e57cd46536ad992e$export$2c9f9bf2092486aa(props) {
|
|
|
2157
2163
|
});
|
|
2158
2164
|
const sharedOptions = {
|
|
2159
2165
|
product_card_template_: display => $47e3c3102c78121b$export$44809a8a3e867e30({
|
|
2160
|
-
display_: display,
|
|
2166
|
+
display_: () => display,
|
|
2161
2167
|
FavoriteButton_: props.FavoriteButton_,
|
|
2162
2168
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
2163
2169
|
animationDuration_: expandingAnimationDuration,
|
|
@@ -2505,7 +2511,7 @@ const $82d079b68975fbf7$export$b05c0ae390cf3e06 = _ref => {
|
|
|
2505
2511
|
}), _el$27, _co$9);
|
|
2506
2512
|
$52FdA$solidjsweb.insert(_el$11, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
2507
2513
|
get when() {
|
|
2508
|
-
return !salePrice.loading && salePrice.latest;
|
|
2514
|
+
return !salePrice.loading && salePrice.latest != undefined;
|
|
2509
2515
|
},
|
|
2510
2516
|
get fallback() {
|
|
2511
2517
|
return [$52FdA$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
|
package/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.4";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -893,7 +893,7 @@ export function LookCard({
|
|
|
893
893
|
priceFormatting_,
|
|
894
894
|
pseudoRouter_
|
|
895
895
|
}: {
|
|
896
|
-
display_: FeaturedInDisplay | null
|
|
896
|
+
display_: Accessor<FeaturedInDisplay | null>;
|
|
897
897
|
FavoriteButton_?: (props: {
|
|
898
898
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
899
|
}) => JSX.Element;
|
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 = "4.7.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.4";
|
|
14
14
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
15
15
|
const {
|
|
16
16
|
collapse: collapse,
|
|
@@ -1287,7 +1287,8 @@ function $98688279b9059f50$export$9d4a4b669b1929ab(props) {
|
|
|
1287
1287
|
...props.imgProps,
|
|
1288
1288
|
customUrls: (url, width // Apparently don't have to encode url for CF's service
|
|
1289
1289
|
) => {
|
|
1290
|
-
|
|
1290
|
+
var _url$startsWith;
|
|
1291
|
+
if (url !== null && url !== void 0 && (_url$startsWith = url.startsWith) !== null && _url$startsWith !== void 0 && _url$startsWith.call(url, "https://cdn.shopify.com"))
|
|
1291
1292
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1292
1293
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1293
1294
|
return $56047603f9d212b6$export$1d6267828870adda(url, width);
|
|
@@ -1626,7 +1627,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1626
1627
|
get children() {
|
|
1627
1628
|
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
1628
1629
|
get when() {
|
|
1629
|
-
return containerWidth_() || !displays_;
|
|
1630
|
+
return containerWidth_() || !displays_();
|
|
1630
1631
|
},
|
|
1631
1632
|
get children() {
|
|
1632
1633
|
var _el$ = $8tj43$getNextElement($4089a7972a508539$var$_tmpl$),
|
|
@@ -1655,12 +1656,12 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1655
1656
|
get onMouseLeave() {
|
|
1656
1657
|
return $8tj43$catchify(() => supportsHover_() && setUserWantsExpanded(false));
|
|
1657
1658
|
}
|
|
1658
|
-
}, () => displays_ && {
|
|
1659
|
+
}, () => displays_() && {
|
|
1659
1660
|
style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
|
|
1660
1661
|
}), false, true);
|
|
1661
1662
|
$8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Index), {
|
|
1662
1663
|
get each() {
|
|
1663
|
-
return displays_ || Array.from({
|
|
1664
|
+
return displays_() || Array.from({
|
|
1664
1665
|
length: 4
|
|
1665
1666
|
});
|
|
1666
1667
|
},
|
|
@@ -1720,7 +1721,6 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1720
1721
|
priceFormatting_: priceFormatting_,
|
|
1721
1722
|
pseudoRouter_: pseudoRouter_
|
|
1722
1723
|
} = _ref;
|
|
1723
|
-
const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
|
|
1724
1724
|
const useWantsExpandedSignal_ = $8tj43$createSignal(false);
|
|
1725
1725
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1726
1726
|
const supportsHover_ = $00a5b94f0c11efbb$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
@@ -1733,7 +1733,7 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1733
1733
|
} = _ref2;
|
|
1734
1734
|
return setUserWantsExpanded(prev => !prev);
|
|
1735
1735
|
}), true);
|
|
1736
|
-
_el$.classList.toggle("placeholder",
|
|
1736
|
+
$8tj43$effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
1737
1737
|
$8tj43$runHydrationEvents();
|
|
1738
1738
|
return _el$;
|
|
1739
1739
|
})();
|
|
@@ -1760,7 +1760,9 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1760
1760
|
// Close us if another look expands
|
|
1761
1761
|
$8tj43$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1762
1762
|
$8tj43$insert(container, () => [$8tj43$createComponent((0, $8tj43$Show), {
|
|
1763
|
-
when
|
|
1763
|
+
get when() {
|
|
1764
|
+
return display_();
|
|
1765
|
+
},
|
|
1764
1766
|
get fallback() {
|
|
1765
1767
|
return $8tj43$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
|
|
1766
1768
|
aspectRatio: "var(".concat((0, $5eaa00b951637e96$export$8a2234b5b1a5ebd4), ", ").concat(placeholderImageAspectRatio_, ")")
|
|
@@ -1768,14 +1770,18 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1768
1770
|
},
|
|
1769
1771
|
get children() {
|
|
1770
1772
|
return $8tj43$createComponent((0, $98688279b9059f50$export$9d4a4b669b1929ab), {
|
|
1771
|
-
src
|
|
1773
|
+
get src() {
|
|
1774
|
+
var _display_, _display_$image_urls;
|
|
1775
|
+
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
1776
|
+
},
|
|
1772
1777
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1773
1778
|
autoAdjustAspectRatio: true
|
|
1774
1779
|
});
|
|
1775
1780
|
}
|
|
1776
1781
|
}), $8tj43$createComponent((0, $4089a7972a508539$export$ebf0b1d4f90c09ae), {
|
|
1777
|
-
|
|
1778
|
-
|
|
1782
|
+
displays_: () => {
|
|
1783
|
+
var _display_2;
|
|
1784
|
+
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
1779
1785
|
},
|
|
1780
1786
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1781
1787
|
containerWidth_: containerWidth_,
|
|
@@ -2063,7 +2069,7 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
|
|
|
2063
2069
|
});
|
|
2064
2070
|
const sharedOptions = {
|
|
2065
2071
|
product_card_template_: display => $697d8713dc82b9ab$export$44809a8a3e867e30({
|
|
2066
|
-
display_: display,
|
|
2072
|
+
display_: () => display,
|
|
2067
2073
|
FavoriteButton_: props.FavoriteButton_,
|
|
2068
2074
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
2069
2075
|
animationDuration_: expandingAnimationDuration,
|
|
@@ -2411,7 +2417,7 @@ const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = _ref => {
|
|
|
2411
2417
|
}), _el$27, _co$9);
|
|
2412
2418
|
$8tj43$insert(_el$11, $8tj43$createComponent((0, $8tj43$Show), {
|
|
2413
2419
|
get when() {
|
|
2414
|
-
return !salePrice.loading && salePrice.latest;
|
|
2420
|
+
return !salePrice.loading && salePrice.latest != undefined;
|
|
2415
2421
|
},
|
|
2416
2422
|
get fallback() {
|
|
2417
2423
|
return [$8tj43$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
|
package/latest/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
98
98
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
99
99
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.
|
|
101
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.4";
|
|
102
102
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
103
103
|
const {
|
|
104
104
|
collapse: collapse,
|
|
@@ -1314,7 +1314,7 @@ function $d212a67662c5cf38$export$9d4a4b669b1929ab(props) {
|
|
|
1314
1314
|
...props.imgProps,
|
|
1315
1315
|
customUrls: (url, width // Apparently don't have to encode url for CF's service
|
|
1316
1316
|
) => {
|
|
1317
|
-
if (url
|
|
1317
|
+
if (url?.startsWith?.("https://cdn.shopify.com"))
|
|
1318
1318
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1319
1319
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1320
1320
|
return $19950faaac026e09$export$1d6267828870adda(url, width);
|
|
@@ -1632,7 +1632,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1632
1632
|
get children() {
|
|
1633
1633
|
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1634
1634
|
get when() {
|
|
1635
|
-
return containerWidth_() || !displays_;
|
|
1635
|
+
return containerWidth_() || !displays_();
|
|
1636
1636
|
},
|
|
1637
1637
|
get children() {
|
|
1638
1638
|
var _el$ = $gVhhF$solidjsweb.getNextElement($905010a06f9aeae5$var$_tmpl$),
|
|
@@ -1661,12 +1661,12 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1661
1661
|
get onMouseLeave() {
|
|
1662
1662
|
return $gVhhF$depictaiutilishared.catchify(() => supportsHover_() && setUserWantsExpanded(false));
|
|
1663
1663
|
}
|
|
1664
|
-
}, () => displays_ && {
|
|
1664
|
+
}, () => displays_() && {
|
|
1665
1665
|
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1666
1666
|
}), false, true);
|
|
1667
1667
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
1668
1668
|
get each() {
|
|
1669
|
-
return displays_ || Array.from({
|
|
1669
|
+
return displays_() || Array.from({
|
|
1670
1670
|
length: 4
|
|
1671
1671
|
});
|
|
1672
1672
|
},
|
|
@@ -1725,7 +1725,6 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1725
1725
|
priceFormatting_: priceFormatting_,
|
|
1726
1726
|
pseudoRouter_: pseudoRouter_
|
|
1727
1727
|
}) {
|
|
1728
|
-
const [coverImage] = display_?.image_urls || [];
|
|
1729
1728
|
const useWantsExpandedSignal_ = $gVhhF$solidjs.createSignal(false);
|
|
1730
1729
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1731
1730
|
const supportsHover_ = $b54e6192d0caa293$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
@@ -1735,7 +1734,7 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1735
1734
|
$gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(({
|
|
1736
1735
|
target: target
|
|
1737
1736
|
}) => setUserWantsExpanded(prev => !prev)), true);
|
|
1738
|
-
_el$.classList.toggle("placeholder",
|
|
1737
|
+
$gVhhF$solidjsweb.effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
1739
1738
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
1740
1739
|
return _el$;
|
|
1741
1740
|
})();
|
|
@@ -1761,7 +1760,9 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1761
1760
|
// Close us if another look expands
|
|
1762
1761
|
$gVhhF$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1763
1762
|
$gVhhF$solidjsweb.insert(container, () => [$gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1764
|
-
when
|
|
1763
|
+
get when() {
|
|
1764
|
+
return display_();
|
|
1765
|
+
},
|
|
1765
1766
|
get fallback() {
|
|
1766
1767
|
return $gVhhF$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
1767
1768
|
aspectRatio: `var(${(0, $6f604560873e4f69$export$8a2234b5b1a5ebd4)}, ${placeholderImageAspectRatio_})`
|
|
@@ -1769,15 +1770,15 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1769
1770
|
},
|
|
1770
1771
|
get children() {
|
|
1771
1772
|
return $gVhhF$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1772
|
-
src
|
|
1773
|
+
get src() {
|
|
1774
|
+
return display_()?.image_urls?.[0];
|
|
1775
|
+
},
|
|
1773
1776
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1774
1777
|
autoAdjustAspectRatio: true
|
|
1775
1778
|
});
|
|
1776
1779
|
}
|
|
1777
1780
|
}), $gVhhF$solidjsweb.createComponent((0, $905010a06f9aeae5$export$ebf0b1d4f90c09ae), {
|
|
1778
|
-
|
|
1779
|
-
return display_?.displays;
|
|
1780
|
-
},
|
|
1781
|
+
displays_: () => display_()?.displays,
|
|
1781
1782
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1782
1783
|
containerWidth_: containerWidth_,
|
|
1783
1784
|
animationDuration_: animationDuration_,
|
|
@@ -2045,7 +2046,7 @@ function $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa(props) {
|
|
|
2045
2046
|
});
|
|
2046
2047
|
const sharedOptions = {
|
|
2047
2048
|
product_card_template_: display => $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
2048
|
-
display_: display,
|
|
2049
|
+
display_: () => display,
|
|
2049
2050
|
FavoriteButton_: props.FavoriteButton_,
|
|
2050
2051
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
2051
2052
|
animationDuration_: expandingAnimationDuration,
|
|
@@ -2368,7 +2369,7 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
|
|
|
2368
2369
|
}), _el$27, _co$9);
|
|
2369
2370
|
$gVhhF$solidjsweb.insert(_el$11, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
2370
2371
|
get when() {
|
|
2371
|
-
return !salePrice.loading && salePrice.latest;
|
|
2372
|
+
return !salePrice.loading && salePrice.latest != undefined;
|
|
2372
2373
|
},
|
|
2373
2374
|
get fallback() {
|
|
2374
2375
|
return [$gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
package/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.4";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -893,7 +893,7 @@ export function LookCard({
|
|
|
893
893
|
priceFormatting_,
|
|
894
894
|
pseudoRouter_
|
|
895
895
|
}: {
|
|
896
|
-
display_: FeaturedInDisplay | null
|
|
896
|
+
display_: Accessor<FeaturedInDisplay | null>;
|
|
897
897
|
FavoriteButton_?: (props: {
|
|
898
898
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
899
|
}) => JSX.Element;
|
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 = "4.7.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.4";
|
|
11
11
|
function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
|
|
12
12
|
const {
|
|
13
13
|
collapse: collapse,
|
|
@@ -1223,7 +1223,7 @@ function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
|
1223
1223
|
...props.imgProps,
|
|
1224
1224
|
customUrls: (url, width // Apparently don't have to encode url for CF's service
|
|
1225
1225
|
) => {
|
|
1226
|
-
if (url
|
|
1226
|
+
if (url?.startsWith?.("https://cdn.shopify.com"))
|
|
1227
1227
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1228
1228
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1229
1229
|
return $e8ffe11ed01df0fe$export$1d6267828870adda(url, width);
|
|
@@ -1541,7 +1541,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
|
|
|
1541
1541
|
get children() {
|
|
1542
1542
|
return $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1543
1543
|
get when() {
|
|
1544
|
-
return containerWidth_() || !displays_;
|
|
1544
|
+
return containerWidth_() || !displays_();
|
|
1545
1545
|
},
|
|
1546
1546
|
get children() {
|
|
1547
1547
|
var _el$ = $9HbP8$getNextElement($7555dcad3b8a4632$var$_tmpl$),
|
|
@@ -1570,12 +1570,12 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
|
|
|
1570
1570
|
get onMouseLeave() {
|
|
1571
1571
|
return $9HbP8$catchify(() => supportsHover_() && setUserWantsExpanded(false));
|
|
1572
1572
|
}
|
|
1573
|
-
}, () => displays_ && {
|
|
1573
|
+
}, () => displays_() && {
|
|
1574
1574
|
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1575
1575
|
}), false, true);
|
|
1576
1576
|
$9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Index), {
|
|
1577
1577
|
get each() {
|
|
1578
|
-
return displays_ || Array.from({
|
|
1578
|
+
return displays_() || Array.from({
|
|
1579
1579
|
length: 4
|
|
1580
1580
|
});
|
|
1581
1581
|
},
|
|
@@ -1634,7 +1634,6 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1634
1634
|
priceFormatting_: priceFormatting_,
|
|
1635
1635
|
pseudoRouter_: pseudoRouter_
|
|
1636
1636
|
}) {
|
|
1637
|
-
const [coverImage] = display_?.image_urls || [];
|
|
1638
1637
|
const useWantsExpandedSignal_ = $9HbP8$createSignal(false);
|
|
1639
1638
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1640
1639
|
const supportsHover_ = $dc9262ef6f786812$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
@@ -1644,7 +1643,7 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1644
1643
|
$9HbP8$addEventListener(_el$, "click", $9HbP8$catchify(({
|
|
1645
1644
|
target: target
|
|
1646
1645
|
}) => setUserWantsExpanded(prev => !prev)), true);
|
|
1647
|
-
_el$.classList.toggle("placeholder",
|
|
1646
|
+
$9HbP8$effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
1648
1647
|
$9HbP8$runHydrationEvents();
|
|
1649
1648
|
return _el$;
|
|
1650
1649
|
})();
|
|
@@ -1670,7 +1669,9 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1670
1669
|
// Close us if another look expands
|
|
1671
1670
|
$9HbP8$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1672
1671
|
$9HbP8$insert(container, () => [$9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1673
|
-
when
|
|
1672
|
+
get when() {
|
|
1673
|
+
return display_();
|
|
1674
|
+
},
|
|
1674
1675
|
get fallback() {
|
|
1675
1676
|
return $9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
1676
1677
|
aspectRatio: `var(${(0, $bb15dfb548a7666e$export$8a2234b5b1a5ebd4)}, ${placeholderImageAspectRatio_})`
|
|
@@ -1678,15 +1679,15 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1678
1679
|
},
|
|
1679
1680
|
get children() {
|
|
1680
1681
|
return $9HbP8$createComponent((0, $70bb27cc6be01fc7$export$9d4a4b669b1929ab), {
|
|
1681
|
-
src
|
|
1682
|
+
get src() {
|
|
1683
|
+
return display_()?.image_urls?.[0];
|
|
1684
|
+
},
|
|
1682
1685
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1683
1686
|
autoAdjustAspectRatio: true
|
|
1684
1687
|
});
|
|
1685
1688
|
}
|
|
1686
1689
|
}), $9HbP8$createComponent((0, $7555dcad3b8a4632$export$ebf0b1d4f90c09ae), {
|
|
1687
|
-
|
|
1688
|
-
return display_?.displays;
|
|
1689
|
-
},
|
|
1690
|
+
displays_: () => display_()?.displays,
|
|
1690
1691
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1691
1692
|
containerWidth_: containerWidth_,
|
|
1692
1693
|
animationDuration_: animationDuration_,
|
|
@@ -1954,7 +1955,7 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
|
|
|
1954
1955
|
});
|
|
1955
1956
|
const sharedOptions = {
|
|
1956
1957
|
product_card_template_: display => $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
1957
|
-
display_: display,
|
|
1958
|
+
display_: () => display,
|
|
1958
1959
|
FavoriteButton_: props.FavoriteButton_,
|
|
1959
1960
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1960
1961
|
animationDuration_: expandingAnimationDuration,
|
|
@@ -2277,7 +2278,7 @@ const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = ({
|
|
|
2277
2278
|
}), _el$27, _co$9);
|
|
2278
2279
|
$9HbP8$insert(_el$11, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
2279
2280
|
get when() {
|
|
2280
|
-
return !salePrice.loading && salePrice.latest;
|
|
2281
|
+
return !salePrice.loading && salePrice.latest != undefined;
|
|
2281
2282
|
},
|
|
2282
2283
|
get fallback() {
|
|
2283
2284
|
return [$9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
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",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^4.4.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.4.1",
|
|
240
240
|
"@depict-ai/types": "^5.4.0",
|
|
241
241
|
"@depict-ai/utilishared": "^2.4.0",
|
|
242
242
|
"solid-js": "^1.8.12"
|
package/server/ES10/index.cjs
CHANGED
|
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
104
104
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
105
105
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
106
106
|
/*! Depict.ai search and product listing SDK */
|
|
107
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.
|
|
107
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.4";
|
|
108
108
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
109
109
|
const {
|
|
110
110
|
collapse: collapse,
|
|
@@ -1269,7 +1269,8 @@ function $f3db423dc84bc35d$export$9d4a4b669b1929ab(props) {
|
|
|
1269
1269
|
...props.imgProps,
|
|
1270
1270
|
customUrls: (url, width // Apparently don't have to encode url for CF's service
|
|
1271
1271
|
) => {
|
|
1272
|
-
|
|
1272
|
+
var _url$startsWith;
|
|
1273
|
+
if (url !== null && url !== void 0 && (_url$startsWith = url.startsWith) !== null && _url$startsWith !== void 0 && _url$startsWith.call(url, "https://cdn.shopify.com"))
|
|
1273
1274
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1274
1275
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1275
1276
|
return $858fdcf73148519f$export$1d6267828870adda(url, width);
|
|
@@ -1531,18 +1532,18 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1531
1532
|
get children() {
|
|
1532
1533
|
return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
1533
1534
|
get when() {
|
|
1534
|
-
return containerWidth_() || !displays_;
|
|
1535
|
+
return containerWidth_() || !displays_();
|
|
1535
1536
|
},
|
|
1536
1537
|
get children() {
|
|
1537
1538
|
return $3hooq$solidjsweb.ssr($e0b3f1f332b6863b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrElement("div", $3hooq$solidjsweb.mergeProps({
|
|
1538
1539
|
get ["class"]() {
|
|
1539
1540
|
return "look-overlay ".concat(userWantsExpanded() ? "expanded" : "", " ").concat(!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : "");
|
|
1540
1541
|
}
|
|
1541
|
-
}, () => displays_ && {
|
|
1542
|
+
}, () => displays_() && {
|
|
1542
1543
|
style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
|
|
1543
1544
|
}), () => $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Index), {
|
|
1544
1545
|
get each() {
|
|
1545
|
-
return displays_ || Array.from({
|
|
1546
|
+
return displays_() || Array.from({
|
|
1546
1547
|
length: 4
|
|
1547
1548
|
});
|
|
1548
1549
|
},
|
|
@@ -1600,12 +1601,11 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1600
1601
|
priceFormatting_: priceFormatting_,
|
|
1601
1602
|
pseudoRouter_: pseudoRouter_
|
|
1602
1603
|
} = _ref;
|
|
1603
|
-
const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
|
|
1604
1604
|
const useWantsExpandedSignal_ = $3hooq$solidjs.createSignal(false);
|
|
1605
1605
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1606
1606
|
const supportsHover_ = $3e17e871e9d0911d$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1607
1607
|
const us = Symbol("look");
|
|
1608
|
-
const container = $3hooq$solidjsweb.ssr($47e3c3102c78121b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "look-card ".concat(!display_ ? "placeholder" : ""));
|
|
1608
|
+
const container = $3hooq$solidjsweb.ssr($47e3c3102c78121b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "look-card ".concat(!display_() ? "placeholder" : ""));
|
|
1609
1609
|
const containerWidth_ = $c387d7f1d9fb66c0$export$ebdc3711f7e02ccd(container);
|
|
1610
1610
|
const clickHandler = $3hooq$depictaiutilishared.catchify(_ref2 => {
|
|
1611
1611
|
let {
|
|
@@ -1629,7 +1629,9 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1629
1629
|
// Close us if another look expands
|
|
1630
1630
|
$3hooq$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1631
1631
|
$3hooq$solidjsweb.insert(container, () => [$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
1632
|
-
when
|
|
1632
|
+
get when() {
|
|
1633
|
+
return display_();
|
|
1634
|
+
},
|
|
1633
1635
|
get fallback() {
|
|
1634
1636
|
return $3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
|
|
1635
1637
|
aspectRatio: "var(".concat((0, $c0cf6af094336798$export$8a2234b5b1a5ebd4), ", ").concat(placeholderImageAspectRatio_, ")")
|
|
@@ -1637,14 +1639,18 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1637
1639
|
},
|
|
1638
1640
|
get children() {
|
|
1639
1641
|
return $3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
|
|
1640
|
-
src
|
|
1642
|
+
get src() {
|
|
1643
|
+
var _display_, _display_$image_urls;
|
|
1644
|
+
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
1645
|
+
},
|
|
1641
1646
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1642
1647
|
autoAdjustAspectRatio: true
|
|
1643
1648
|
});
|
|
1644
1649
|
}
|
|
1645
1650
|
}), $3hooq$solidjsweb.createComponent((0, $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae), {
|
|
1646
|
-
|
|
1647
|
-
|
|
1651
|
+
displays_: () => {
|
|
1652
|
+
var _display_2;
|
|
1653
|
+
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
1648
1654
|
},
|
|
1649
1655
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1650
1656
|
containerWidth_: containerWidth_,
|
|
@@ -1916,7 +1922,7 @@ function $e57cd46536ad992e$export$2c9f9bf2092486aa(props) {
|
|
|
1916
1922
|
});
|
|
1917
1923
|
const sharedOptions = {
|
|
1918
1924
|
product_card_template_: display => $47e3c3102c78121b$export$44809a8a3e867e30({
|
|
1919
|
-
display_: display,
|
|
1925
|
+
display_: () => display,
|
|
1920
1926
|
FavoriteButton_: props.FavoriteButton_,
|
|
1921
1927
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1922
1928
|
animationDuration_: expandingAnimationDuration,
|
|
@@ -2199,7 +2205,7 @@ const $82d079b68975fbf7$export$b05c0ae390cf3e06 = _ref => {
|
|
|
2199
2205
|
}
|
|
2200
2206
|
})), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
2201
2207
|
get when() {
|
|
2202
|
-
return !salePrice.loading && salePrice.latest;
|
|
2208
|
+
return !salePrice.loading && salePrice.latest != undefined;
|
|
2203
2209
|
},
|
|
2204
2210
|
get fallback() {
|
|
2205
2211
|
return [$3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.4";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -893,7 +893,7 @@ export function LookCard({
|
|
|
893
893
|
priceFormatting_,
|
|
894
894
|
pseudoRouter_
|
|
895
895
|
}: {
|
|
896
|
-
display_: FeaturedInDisplay | null
|
|
896
|
+
display_: Accessor<FeaturedInDisplay | null>;
|
|
897
897
|
FavoriteButton_?: (props: {
|
|
898
898
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
899
|
}) => JSX.Element;
|
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 = "4.7.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.4";
|
|
14
14
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
15
15
|
const {
|
|
16
16
|
collapse: collapse,
|
|
@@ -1175,7 +1175,8 @@ function $98688279b9059f50$export$9d4a4b669b1929ab(props) {
|
|
|
1175
1175
|
...props.imgProps,
|
|
1176
1176
|
customUrls: (url, width // Apparently don't have to encode url for CF's service
|
|
1177
1177
|
) => {
|
|
1178
|
-
|
|
1178
|
+
var _url$startsWith;
|
|
1179
|
+
if (url !== null && url !== void 0 && (_url$startsWith = url.startsWith) !== null && _url$startsWith !== void 0 && _url$startsWith.call(url, "https://cdn.shopify.com"))
|
|
1179
1180
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1180
1181
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1181
1182
|
return $56047603f9d212b6$export$1d6267828870adda(url, width);
|
|
@@ -1437,18 +1438,18 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1437
1438
|
get children() {
|
|
1438
1439
|
return $b8hua$createComponent((0, $b8hua$Show), {
|
|
1439
1440
|
get when() {
|
|
1440
|
-
return containerWidth_() || !displays_;
|
|
1441
|
+
return containerWidth_() || !displays_();
|
|
1441
1442
|
},
|
|
1442
1443
|
get children() {
|
|
1443
1444
|
return $b8hua$ssr($4089a7972a508539$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrElement("div", $b8hua$mergeProps({
|
|
1444
1445
|
get ["class"]() {
|
|
1445
1446
|
return "look-overlay ".concat(userWantsExpanded() ? "expanded" : "", " ").concat(!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : "");
|
|
1446
1447
|
}
|
|
1447
|
-
}, () => displays_ && {
|
|
1448
|
+
}, () => displays_() && {
|
|
1448
1449
|
style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
|
|
1449
1450
|
}), () => $b8hua$escape($b8hua$createComponent((0, $b8hua$Index), {
|
|
1450
1451
|
get each() {
|
|
1451
|
-
return displays_ || Array.from({
|
|
1452
|
+
return displays_() || Array.from({
|
|
1452
1453
|
length: 4
|
|
1453
1454
|
});
|
|
1454
1455
|
},
|
|
@@ -1506,12 +1507,11 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1506
1507
|
priceFormatting_: priceFormatting_,
|
|
1507
1508
|
pseudoRouter_: pseudoRouter_
|
|
1508
1509
|
} = _ref;
|
|
1509
|
-
const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
|
|
1510
1510
|
const useWantsExpandedSignal_ = $b8hua$createSignal(false);
|
|
1511
1511
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1512
1512
|
const supportsHover_ = $00a5b94f0c11efbb$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1513
1513
|
const us = Symbol("look");
|
|
1514
|
-
const container = $b8hua$ssr($697d8713dc82b9ab$var$_tmpl$, $b8hua$ssrHydrationKey(), "look-card ".concat(!display_ ? "placeholder" : ""));
|
|
1514
|
+
const container = $b8hua$ssr($697d8713dc82b9ab$var$_tmpl$, $b8hua$ssrHydrationKey(), "look-card ".concat(!display_() ? "placeholder" : ""));
|
|
1515
1515
|
const containerWidth_ = $fc830a7ee59416ef$export$ebdc3711f7e02ccd(container);
|
|
1516
1516
|
const clickHandler = $b8hua$catchify(_ref2 => {
|
|
1517
1517
|
let {
|
|
@@ -1535,7 +1535,9 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1535
1535
|
// Close us if another look expands
|
|
1536
1536
|
$b8hua$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1537
1537
|
$b8hua$insert(container, () => [$b8hua$createComponent((0, $b8hua$Show), {
|
|
1538
|
-
when
|
|
1538
|
+
get when() {
|
|
1539
|
+
return display_();
|
|
1540
|
+
},
|
|
1539
1541
|
get fallback() {
|
|
1540
1542
|
return $b8hua$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
|
|
1541
1543
|
aspectRatio: "var(".concat((0, $5eaa00b951637e96$export$8a2234b5b1a5ebd4), ", ").concat(placeholderImageAspectRatio_, ")")
|
|
@@ -1543,14 +1545,18 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1543
1545
|
},
|
|
1544
1546
|
get children() {
|
|
1545
1547
|
return $b8hua$createComponent((0, $98688279b9059f50$export$9d4a4b669b1929ab), {
|
|
1546
|
-
src
|
|
1548
|
+
get src() {
|
|
1549
|
+
var _display_, _display_$image_urls;
|
|
1550
|
+
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
1551
|
+
},
|
|
1547
1552
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1548
1553
|
autoAdjustAspectRatio: true
|
|
1549
1554
|
});
|
|
1550
1555
|
}
|
|
1551
1556
|
}), $b8hua$createComponent((0, $4089a7972a508539$export$ebf0b1d4f90c09ae), {
|
|
1552
|
-
|
|
1553
|
-
|
|
1557
|
+
displays_: () => {
|
|
1558
|
+
var _display_2;
|
|
1559
|
+
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
1554
1560
|
},
|
|
1555
1561
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1556
1562
|
containerWidth_: containerWidth_,
|
|
@@ -1822,7 +1828,7 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
|
|
|
1822
1828
|
});
|
|
1823
1829
|
const sharedOptions = {
|
|
1824
1830
|
product_card_template_: display => $697d8713dc82b9ab$export$44809a8a3e867e30({
|
|
1825
|
-
display_: display,
|
|
1831
|
+
display_: () => display,
|
|
1826
1832
|
FavoriteButton_: props.FavoriteButton_,
|
|
1827
1833
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1828
1834
|
animationDuration_: expandingAnimationDuration,
|
|
@@ -2105,7 +2111,7 @@ const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = _ref => {
|
|
|
2105
2111
|
}
|
|
2106
2112
|
})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
2107
2113
|
get when() {
|
|
2108
|
-
return !salePrice.loading && salePrice.latest;
|
|
2114
|
+
return !salePrice.loading && salePrice.latest != undefined;
|
|
2109
2115
|
},
|
|
2110
2116
|
get fallback() {
|
|
2111
2117
|
return [$b8hua$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
|
package/server/latest/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
98
98
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
99
99
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.
|
|
101
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.4";
|
|
102
102
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
103
103
|
const {
|
|
104
104
|
collapse: collapse,
|
|
@@ -1213,7 +1213,7 @@ function $d212a67662c5cf38$export$9d4a4b669b1929ab(props) {
|
|
|
1213
1213
|
...props.imgProps,
|
|
1214
1214
|
customUrls: (url, width // Apparently don't have to encode url for CF's service
|
|
1215
1215
|
) => {
|
|
1216
|
-
if (url
|
|
1216
|
+
if (url?.startsWith?.("https://cdn.shopify.com"))
|
|
1217
1217
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1218
1218
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1219
1219
|
return $19950faaac026e09$export$1d6267828870adda(url, width);
|
|
@@ -1455,18 +1455,18 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1455
1455
|
get children() {
|
|
1456
1456
|
return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1457
1457
|
get when() {
|
|
1458
|
-
return containerWidth_() || !displays_;
|
|
1458
|
+
return containerWidth_() || !displays_();
|
|
1459
1459
|
},
|
|
1460
1460
|
get children() {
|
|
1461
1461
|
return $5vyXB$solidjsweb.ssr($905010a06f9aeae5$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrElement("div", $5vyXB$solidjsweb.mergeProps({
|
|
1462
1462
|
get ["class"]() {
|
|
1463
1463
|
return `look-overlay ${userWantsExpanded() ? "expanded" : ""} ${!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""}`;
|
|
1464
1464
|
}
|
|
1465
|
-
}, () => displays_ && {
|
|
1465
|
+
}, () => displays_() && {
|
|
1466
1466
|
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1467
1467
|
}), () => $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Index), {
|
|
1468
1468
|
get each() {
|
|
1469
|
-
return displays_ || Array.from({
|
|
1469
|
+
return displays_() || Array.from({
|
|
1470
1470
|
length: 4
|
|
1471
1471
|
});
|
|
1472
1472
|
},
|
|
@@ -1523,12 +1523,11 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1523
1523
|
priceFormatting_: priceFormatting_,
|
|
1524
1524
|
pseudoRouter_: pseudoRouter_
|
|
1525
1525
|
}) {
|
|
1526
|
-
const [coverImage] = display_?.image_urls || [];
|
|
1527
1526
|
const useWantsExpandedSignal_ = $5vyXB$solidjs.createSignal(false);
|
|
1528
1527
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1529
1528
|
const supportsHover_ = $b54e6192d0caa293$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1530
1529
|
const us = Symbol("look");
|
|
1531
|
-
const container = $5vyXB$solidjsweb.ssr($ad882bbe664dbd53$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `look-card ${!display_ ? "placeholder" : ""}`);
|
|
1530
|
+
const container = $5vyXB$solidjsweb.ssr($ad882bbe664dbd53$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `look-card ${!display_() ? "placeholder" : ""}`);
|
|
1532
1531
|
const containerWidth_ = $f13855d1b951b24a$export$ebdc3711f7e02ccd(container);
|
|
1533
1532
|
const clickHandler = $5vyXB$depictaiutilishared.catchify(({
|
|
1534
1533
|
target: target
|
|
@@ -1551,7 +1550,9 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1551
1550
|
// Close us if another look expands
|
|
1552
1551
|
$5vyXB$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1553
1552
|
$5vyXB$solidjsweb.insert(container, () => [$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1554
|
-
when
|
|
1553
|
+
get when() {
|
|
1554
|
+
return display_();
|
|
1555
|
+
},
|
|
1555
1556
|
get fallback() {
|
|
1556
1557
|
return $5vyXB$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
1557
1558
|
aspectRatio: `var(${(0, $6f604560873e4f69$export$8a2234b5b1a5ebd4)}, ${placeholderImageAspectRatio_})`
|
|
@@ -1559,15 +1560,15 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1559
1560
|
},
|
|
1560
1561
|
get children() {
|
|
1561
1562
|
return $5vyXB$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1562
|
-
src
|
|
1563
|
+
get src() {
|
|
1564
|
+
return display_()?.image_urls?.[0];
|
|
1565
|
+
},
|
|
1563
1566
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1564
1567
|
autoAdjustAspectRatio: true
|
|
1565
1568
|
});
|
|
1566
1569
|
}
|
|
1567
1570
|
}), $5vyXB$solidjsweb.createComponent((0, $905010a06f9aeae5$export$ebf0b1d4f90c09ae), {
|
|
1568
|
-
|
|
1569
|
-
return display_?.displays;
|
|
1570
|
-
},
|
|
1571
|
+
displays_: () => display_()?.displays,
|
|
1571
1572
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1572
1573
|
containerWidth_: containerWidth_,
|
|
1573
1574
|
animationDuration_: animationDuration_,
|
|
@@ -1819,7 +1820,7 @@ function $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa(props) {
|
|
|
1819
1820
|
});
|
|
1820
1821
|
const sharedOptions = {
|
|
1821
1822
|
product_card_template_: display => $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
1822
|
-
display_: display,
|
|
1823
|
+
display_: () => display,
|
|
1823
1824
|
FavoriteButton_: props.FavoriteButton_,
|
|
1824
1825
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1825
1826
|
animationDuration_: expandingAnimationDuration,
|
|
@@ -2080,7 +2081,7 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
|
|
|
2080
2081
|
}
|
|
2081
2082
|
})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
2082
2083
|
get when() {
|
|
2083
|
-
return !salePrice.loading && salePrice.latest;
|
|
2084
|
+
return !salePrice.loading && salePrice.latest != undefined;
|
|
2084
2085
|
},
|
|
2085
2086
|
get fallback() {
|
|
2086
2087
|
return [$5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
package/server/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.4";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -893,7 +893,7 @@ export function LookCard({
|
|
|
893
893
|
priceFormatting_,
|
|
894
894
|
pseudoRouter_
|
|
895
895
|
}: {
|
|
896
|
-
display_: FeaturedInDisplay | null
|
|
896
|
+
display_: Accessor<FeaturedInDisplay | null>;
|
|
897
897
|
FavoriteButton_?: (props: {
|
|
898
898
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
899
|
}) => JSX.Element;
|
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 = "4.7.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.4";
|
|
11
11
|
function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
|
|
12
12
|
const {
|
|
13
13
|
collapse: collapse,
|
|
@@ -1122,7 +1122,7 @@ function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
|
1122
1122
|
...props.imgProps,
|
|
1123
1123
|
customUrls: (url, width // Apparently don't have to encode url for CF's service
|
|
1124
1124
|
) => {
|
|
1125
|
-
if (url
|
|
1125
|
+
if (url?.startsWith?.("https://cdn.shopify.com"))
|
|
1126
1126
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1127
1127
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1128
1128
|
return $e8ffe11ed01df0fe$export$1d6267828870adda(url, width);
|
|
@@ -1364,18 +1364,18 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
|
|
|
1364
1364
|
get children() {
|
|
1365
1365
|
return $i7OB2$createComponent((0, $i7OB2$Show), {
|
|
1366
1366
|
get when() {
|
|
1367
|
-
return containerWidth_() || !displays_;
|
|
1367
|
+
return containerWidth_() || !displays_();
|
|
1368
1368
|
},
|
|
1369
1369
|
get children() {
|
|
1370
1370
|
return $i7OB2$ssr($7555dcad3b8a4632$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrElement("div", $i7OB2$mergeProps({
|
|
1371
1371
|
get ["class"]() {
|
|
1372
1372
|
return `look-overlay ${userWantsExpanded() ? "expanded" : ""} ${!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""}`;
|
|
1373
1373
|
}
|
|
1374
|
-
}, () => displays_ && {
|
|
1374
|
+
}, () => displays_() && {
|
|
1375
1375
|
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1376
1376
|
}), () => $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Index), {
|
|
1377
1377
|
get each() {
|
|
1378
|
-
return displays_ || Array.from({
|
|
1378
|
+
return displays_() || Array.from({
|
|
1379
1379
|
length: 4
|
|
1380
1380
|
});
|
|
1381
1381
|
},
|
|
@@ -1432,12 +1432,11 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1432
1432
|
priceFormatting_: priceFormatting_,
|
|
1433
1433
|
pseudoRouter_: pseudoRouter_
|
|
1434
1434
|
}) {
|
|
1435
|
-
const [coverImage] = display_?.image_urls || [];
|
|
1436
1435
|
const useWantsExpandedSignal_ = $i7OB2$createSignal(false);
|
|
1437
1436
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1438
1437
|
const supportsHover_ = $dc9262ef6f786812$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1439
1438
|
const us = Symbol("look");
|
|
1440
|
-
const container = $i7OB2$ssr($28ee4f7db3cc44b8$var$_tmpl$, $i7OB2$ssrHydrationKey(), `look-card ${!display_ ? "placeholder" : ""}`);
|
|
1439
|
+
const container = $i7OB2$ssr($28ee4f7db3cc44b8$var$_tmpl$, $i7OB2$ssrHydrationKey(), `look-card ${!display_() ? "placeholder" : ""}`);
|
|
1441
1440
|
const containerWidth_ = $2449872a62a75a20$export$ebdc3711f7e02ccd(container);
|
|
1442
1441
|
const clickHandler = $i7OB2$catchify(({
|
|
1443
1442
|
target: target
|
|
@@ -1460,7 +1459,9 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1460
1459
|
// Close us if another look expands
|
|
1461
1460
|
$i7OB2$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1462
1461
|
$i7OB2$insert(container, () => [$i7OB2$createComponent((0, $i7OB2$Show), {
|
|
1463
|
-
when
|
|
1462
|
+
get when() {
|
|
1463
|
+
return display_();
|
|
1464
|
+
},
|
|
1464
1465
|
get fallback() {
|
|
1465
1466
|
return $i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
1466
1467
|
aspectRatio: `var(${(0, $bb15dfb548a7666e$export$8a2234b5b1a5ebd4)}, ${placeholderImageAspectRatio_})`
|
|
@@ -1468,15 +1469,15 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1468
1469
|
},
|
|
1469
1470
|
get children() {
|
|
1470
1471
|
return $i7OB2$createComponent((0, $70bb27cc6be01fc7$export$9d4a4b669b1929ab), {
|
|
1471
|
-
src
|
|
1472
|
+
get src() {
|
|
1473
|
+
return display_()?.image_urls?.[0];
|
|
1474
|
+
},
|
|
1472
1475
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1473
1476
|
autoAdjustAspectRatio: true
|
|
1474
1477
|
});
|
|
1475
1478
|
}
|
|
1476
1479
|
}), $i7OB2$createComponent((0, $7555dcad3b8a4632$export$ebf0b1d4f90c09ae), {
|
|
1477
|
-
|
|
1478
|
-
return display_?.displays;
|
|
1479
|
-
},
|
|
1480
|
+
displays_: () => display_()?.displays,
|
|
1480
1481
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1481
1482
|
containerWidth_: containerWidth_,
|
|
1482
1483
|
animationDuration_: animationDuration_,
|
|
@@ -1728,7 +1729,7 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
|
|
|
1728
1729
|
});
|
|
1729
1730
|
const sharedOptions = {
|
|
1730
1731
|
product_card_template_: display => $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
1731
|
-
display_: display,
|
|
1732
|
+
display_: () => display,
|
|
1732
1733
|
FavoriteButton_: props.FavoriteButton_,
|
|
1733
1734
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1734
1735
|
animationDuration_: expandingAnimationDuration,
|
|
@@ -1989,7 +1990,7 @@ const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = ({
|
|
|
1989
1990
|
}
|
|
1990
1991
|
})), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
1991
1992
|
get when() {
|
|
1992
|
-
return !salePrice.loading && salePrice.latest;
|
|
1993
|
+
return !salePrice.loading && salePrice.latest != undefined;
|
|
1993
1994
|
},
|
|
1994
1995
|
get fallback() {
|
|
1995
1996
|
return [$i7OB2$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|