vviinn-widgets 2.97.2 → 2.98.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/SearchModalUploadIcon-b6db8026.js +8 -0
- package/dist/cjs/{package-721c5a8c.js → package-1fb8d4ba.js} +1 -1
- package/dist/cjs/search-filters_19.cjs.entry.js +6 -8
- package/dist/cjs/vviinn-button.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-carousel_8.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-error.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +3 -5
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +1 -1
- package/dist/collection/components/vviinn-button/vviinn-button.css +1 -0
- package/dist/collection/components/vviinn-error/vviinn-error.css +214 -0
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.css +3 -2
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +6 -5
- package/dist/esm/SearchModalUploadIcon-ef6e9c6c.js +6 -0
- package/dist/esm/{package-40e32dab.js → package-d5ab83a6.js} +1 -1
- package/dist/esm/search-filters_19.entry.js +6 -8
- package/dist/esm/vviinn-button.entry.js +1 -1
- package/dist/esm/vviinn-carousel_8.entry.js +1 -1
- package/dist/esm/vviinn-error.entry.js +1 -1
- package/dist/esm/vviinn-vpr-button.entry.js +1 -1
- package/dist/esm/vviinn-vps-button.entry.js +2 -4
- package/dist/esm/vviinn-vps-widget.entry.js +1 -1
- package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +1 -0
- package/dist/types/widget/types.d.ts +1 -1
- package/dist/vviinn-widgets/p-546694ac.js +1 -0
- package/dist/vviinn-widgets/p-760c07bc.entry.js +1 -0
- package/dist/vviinn-widgets/p-7b35f782.js +1 -0
- package/{www/build/p-1d31a842.entry.js → dist/vviinn-widgets/p-b903ef33.entry.js} +1 -1
- package/{www/build/p-19671ffc.entry.js → dist/vviinn-widgets/p-ba2b1e70.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-e2f8874f.entry.js → p-babeedf7.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-5ee97780.entry.js → p-be1480ba.entry.js} +1 -1
- package/dist/vviinn-widgets/p-c45c8bd0.entry.js +1 -0
- package/dist/vviinn-widgets/{p-cd704fa1.entry.js → p-e5c05e00.entry.js} +2 -2
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-546694ac.js +1 -0
- package/www/build/p-760c07bc.entry.js +1 -0
- package/www/build/p-7b35f782.js +1 -0
- package/{dist/vviinn-widgets/p-1d31a842.entry.js → www/build/p-b903ef33.entry.js} +1 -1
- package/{dist/vviinn-widgets/p-19671ffc.entry.js → www/build/p-ba2b1e70.entry.js} +1 -1
- package/www/build/{p-e2f8874f.entry.js → p-babeedf7.entry.js} +1 -1
- package/www/build/{p-5ee97780.entry.js → p-be1480ba.entry.js} +1 -1
- package/www/build/p-c45c8bd0.entry.js +1 -0
- package/www/build/{p-cd704fa1.entry.js → p-e5c05e00.entry.js} +2 -2
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/dist/vviinn-widgets/p-3bada1d3.entry.js +0 -1
- package/dist/vviinn-widgets/p-7d040b38.entry.js +0 -1
- package/dist/vviinn-widgets/p-df78d39a.js +0 -1
- package/www/build/p-3bada1d3.entry.js +0 -1
- package/www/build/p-7d040b38.entry.js +0 -1
- package/www/build/p-df78d39a.js +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-4474431a.js');
|
|
4
|
+
|
|
5
|
+
const SearchModalUploadIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
6
|
+
index.h("path", { d: "M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H13C13.2833 3 13.5208 3.09583 13.7125 3.2875C13.9042 3.47917 14 3.71667 14 4C14 4.28333 13.9042 4.52083 13.7125 4.7125C13.5208 4.90417 13.2833 5 13 5H5V19H19V11C19 10.7167 19.0958 10.4792 19.2875 10.2875C19.4792 10.0958 19.7167 10 20 10C20.2833 10 20.5208 10.0958 20.7125 10.2875C20.9042 10.4792 21 10.7167 21 11V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM17 7H16C15.7167 7 15.4792 6.90417 15.2875 6.7125C15.0958 6.52083 15 6.28333 15 6C15 5.71667 15.0958 5.47917 15.2875 5.2875C15.4792 5.09583 15.7167 5 16 5H17V4C17 3.71667 17.0958 3.47917 17.2875 3.2875C17.4792 3.09583 17.7167 3 18 3C18.2833 3 18.5208 3.09583 18.7125 3.2875C18.9042 3.47917 19 3.71667 19 4V5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H19V8C19 8.28333 18.9042 8.52083 18.7125 8.7125C18.5208 8.90417 18.2833 9 18 9C17.7167 9 17.4792 8.90417 17.2875 8.7125C17.0958 8.52083 17 8.28333 17 8V7ZM11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83333 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16Z", fill: "#161616" })));
|
|
7
|
+
|
|
8
|
+
exports.SearchModalUploadIcon = SearchModalUploadIcon;
|
|
@@ -7,14 +7,12 @@ const search_store = require('./search.store-4593a19d.js');
|
|
|
7
7
|
const index$1 = require('./index-3035bd2b.js');
|
|
8
8
|
const customizedSlots = require('./customized-slots-ee9418c1.js');
|
|
9
9
|
const emitRequestFiltersMore = require('./emitRequestFiltersMore-35a9fed4.js');
|
|
10
|
-
const _package = require('./package-
|
|
10
|
+
const _package = require('./package-1fb8d4ba.js');
|
|
11
|
+
const SearchModalUploadIcon = require('./SearchModalUploadIcon-b6db8026.js');
|
|
11
12
|
|
|
12
13
|
const ArrowIcon = () => (index.h("svg", { width: "12", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13
14
|
index.h("path", { d: "M0 10 10 0l1.4 1.4L2.8 10l8.6 8.6L10 20 0 10Z" })));
|
|
14
15
|
|
|
15
|
-
const CameraIcon = () => (index.h("svg", { width: "22", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
16
|
-
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16.567 3H19A3.01 3.01 0 0 1 22 6v7.69h-2V6c0-.55-.451-1-1.001-1h-3.502l-2.03-3H8.543L6.603 5H3.001c-.55 0-1 .45-1 1v11c0 .55.45 1 1 1h5.933v2H3.001A3.01 3.01 0 0 1 0 17V6c0-1.65 1.35-3 3.001-3h2.522l1.94-3h7.074l2.03 3Zm-5.562 3c1.28 0 2.561.48 3.542 1.46h-.01a4.992 4.992 0 0 1 .64 6.29l3.051 3.05-1.41 1.41-3.052-3.05c-.84.55-1.8.83-2.76.83-1.282 0-2.562-.48-3.543-1.46a5.002 5.002 0 0 1 0-7.07A5.026 5.026 0 0 1 11.005 6Zm-2.771 5a2.763 2.763 0 0 0 2.771 2.77A2.763 2.763 0 0 0 13.776 11a2.763 2.763 0 0 0-2.771-2.77A2.763 2.763 0 0 0 8.234 11Z", fill: "#161616" })));
|
|
17
|
-
|
|
18
16
|
const MinusIcon = () => (index.h("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
19
17
|
index.h("path", { d: "M8.00001 17.3333C7.62223 17.3333 7.30556 17.2056 7.05001 16.95C6.79445 16.6944 6.66667 16.3778 6.66667 16C6.66667 15.6222 6.79445 15.3056 7.05001 15.05C7.30556 14.7944 7.62223 14.6667 8.00001 14.6667H24C24.3778 14.6667 24.6944 14.7944 24.95 15.05C25.2056 15.3056 25.3333 15.6222 25.3333 16C25.3333 16.3778 25.2056 16.6944 24.95 16.95C24.6944 17.2056 24.3778 17.3333 24 17.3333H8.00001Z", fill: "currentColor" })));
|
|
20
18
|
|
|
@@ -4408,7 +4406,7 @@ const VviinnTeaser = class {
|
|
|
4408
4406
|
};
|
|
4409
4407
|
VviinnTeaser.style = vviinnTeaserCss;
|
|
4410
4408
|
|
|
4411
|
-
const vviinnTextSearchCss = ":host{--font-family-base:Inter, system-ui, sans-serif;--font-family-mono:monospace;--font-size-title:24px;--font-size-headline:18px;--font-size-label-large:16px;--font-size-label:14px;--font-size-body-large:16px;--font-size-body:14px;--font-size-caption:12px;--line-height-title:32px;--line-height-headline:24px;--line-height-label-large:24px;--line-height-label:20px;--line-height-body-large:24px;--line-height-body:20px;--line-height-caption:16px;--letter-spacing-title:0px;--letter-spacing-headline:0px;--letter-spacing-label-large:0px;--letter-spacing-label:0px;--letter-spacing-body-large:0px;--letter-spacing-body:0px;--letter-spacing-caption:0px;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-weight-700:700;--spacing-none:0px;--spacing-25:2px;--spacing-50:4px;--spacing-75:6px;--spacing-100:8px;--spacing-125:10px;--spacing-150:12px;--spacing-200:16px;--spacing-250:20px;--spacing-300:24px;--spacing-400:32px;--spacing-500:40px;--spacing-600:48px;--border-radius-none:0px;--border-radius-25:2px;--border-radius-50:4px;--border-radius-100:8px;--border-radius-150:12px;--border-radius-200:16px;--border-radius-300:24px;--border-radius-400:32px;--border-radius-full:9999px;--stroke-width-none:0px;--stroke-width-25:1px;--stroke-width-50:2px;--stroke-width-75:3px;--stroke-width-100:4px;--stroke-width-150:6px;--stroke-width-200:8px;--stroke-width-300:12px;--product-card-widget-min-width:130px;--product-card-results-min-width:250px;--image-set-mode-min-size:155px;--product-card-set-mode-max-width:300px;--source-card-set-mode-max-width:500px;--filter-blur-none:0px;--filter-blur-100:8px;--filter-blur-150:12px;--filter-blur-200:16px;--color-bg-base:#ffffff;--color-bg-inverse:#161616;--color-border-00:#ffffff;--color-border-01:#f4f4f4;--color-border-02:#e0e0e0;--color-border-03:#c6c6c6;--color-border-inverse-00:#161616;--color-border-inverse-01:#393939;--color-field-01:#ffffff;--color-field-02:#f4f4f4;--color-icon-primary:#161616;--color-icon-secondary:#525252;--color-icon-helper:#8d8d8d;--color-icon-on-color:#ffffff;--color-icon-inverse:#ffffff;--color-icon-disabled:#16161640;--color-text-primary:#161616;--color-text-secondary:#525252;--color-text-helper:#8d8d8d;--color-text-placeholder:#a8a8a8;--color-text-on-color:#ffffff;--color-text-inverse:#ffffff;--color-text-disabled:#16161640;--button-bg-color-primary:#000000;--button-bg-color-primary-hover:#161616;--button-bg-color-primary-active:#1e1e1e;--button-bg-color-secondary:#f4f4f4;--button-bg-color-secondary-hover:#e0e0e0;--button-bg-color-secondary-active:#c6c6c6;--button-bg-color-ghost-hover:#f4f4f4;--button-bg-color-ghost-active:#eaeaea;--button-bg-color-frosted:#6f6f6f66;--button-bg-color-frosted-hover:#6f6f6f80;--button-bg-color-frosted-active:#6f6f6f99;--button-bg-color-disabled:#e0e0e0;--surface-bg-color-01:#f4f4f4;--surface-bg-color-01-hover:#eaeaea;--surface-bg-color-01-active:#e0e0e0;--surface-bg-color-02:#ffffff;--surface-bg-color-inverse:#262626;--surface-bg-color-inverse-hover:#303030;--surface-bg-color-inverse-active:#393939;--surface-bg-color-disabled:#e0e0e0;--chip-bg-color-primary:#161616;--chip-bg-color-primary-hover:#1e1e1e;--chip-bg-color-primary-active:#262626;--chip-bg-color-subtle:#f4f4f4;--chip-bg-color-subtle-hover:#eaeaea;--chip-bg-color-subtle-active:#e0e0e0;--chip-bg-color-outline-hover:#f4f4f4;--chip-bg-color-outline-active:#eaeaea;--label-bg-color-accent:#ff3944;}:host{display:block;position:relative;width:100%;}.text-search-input{width:100%;height:48px;padding:0 62px 0 16px;font-size:16px;box-sizing:border-box;font-style:normal;font-weight:400;border-radius:8px;font-family:var(--font-family, var(--font-family-base));border:1px solid var(--color-border-02);transition:border-color 0.2s;outline:none;overflow:hidden}.text-search-input--with-icon{padding-right:96px}.text-search-input::-moz-placeholder{color:#a8a8a8}.text-search-input::placeholder{color:#a8a8a8}.text-search-input:focus,.text-search-input:active{border-color:#8d8d8d}.text-search-button{position:absolute;right:1px;top:1px;border:none;border-radius:0 7px 7px 0;width:46px;height:46px;display:flex;justify-content:center;align-items:center;background-color:#f4f4f4;transition:background-color 0.2s;cursor:pointer}.text-search-button:not(:disabled):hover{background-color:#e0e0e0}.text-search-button:disabled{cursor:unset}vviinn-image-selector{position:absolute;right:60px;top:
|
|
4409
|
+
const vviinnTextSearchCss = ":host{--font-family-base:Inter, system-ui, sans-serif;--font-family-mono:monospace;--font-size-title:24px;--font-size-headline:18px;--font-size-label-large:16px;--font-size-label:14px;--font-size-body-large:16px;--font-size-body:14px;--font-size-caption:12px;--line-height-title:32px;--line-height-headline:24px;--line-height-label-large:24px;--line-height-label:20px;--line-height-body-large:24px;--line-height-body:20px;--line-height-caption:16px;--letter-spacing-title:0px;--letter-spacing-headline:0px;--letter-spacing-label-large:0px;--letter-spacing-label:0px;--letter-spacing-body-large:0px;--letter-spacing-body:0px;--letter-spacing-caption:0px;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-weight-700:700;--spacing-none:0px;--spacing-25:2px;--spacing-50:4px;--spacing-75:6px;--spacing-100:8px;--spacing-125:10px;--spacing-150:12px;--spacing-200:16px;--spacing-250:20px;--spacing-300:24px;--spacing-400:32px;--spacing-500:40px;--spacing-600:48px;--border-radius-none:0px;--border-radius-25:2px;--border-radius-50:4px;--border-radius-100:8px;--border-radius-150:12px;--border-radius-200:16px;--border-radius-300:24px;--border-radius-400:32px;--border-radius-full:9999px;--stroke-width-none:0px;--stroke-width-25:1px;--stroke-width-50:2px;--stroke-width-75:3px;--stroke-width-100:4px;--stroke-width-150:6px;--stroke-width-200:8px;--stroke-width-300:12px;--product-card-widget-min-width:130px;--product-card-results-min-width:250px;--image-set-mode-min-size:155px;--product-card-set-mode-max-width:300px;--source-card-set-mode-max-width:500px;--filter-blur-none:0px;--filter-blur-100:8px;--filter-blur-150:12px;--filter-blur-200:16px;--color-bg-base:#ffffff;--color-bg-inverse:#161616;--color-border-00:#ffffff;--color-border-01:#f4f4f4;--color-border-02:#e0e0e0;--color-border-03:#c6c6c6;--color-border-inverse-00:#161616;--color-border-inverse-01:#393939;--color-field-01:#ffffff;--color-field-02:#f4f4f4;--color-icon-primary:#161616;--color-icon-secondary:#525252;--color-icon-helper:#8d8d8d;--color-icon-on-color:#ffffff;--color-icon-inverse:#ffffff;--color-icon-disabled:#16161640;--color-text-primary:#161616;--color-text-secondary:#525252;--color-text-helper:#8d8d8d;--color-text-placeholder:#a8a8a8;--color-text-on-color:#ffffff;--color-text-inverse:#ffffff;--color-text-disabled:#16161640;--button-bg-color-primary:#000000;--button-bg-color-primary-hover:#161616;--button-bg-color-primary-active:#1e1e1e;--button-bg-color-secondary:#f4f4f4;--button-bg-color-secondary-hover:#e0e0e0;--button-bg-color-secondary-active:#c6c6c6;--button-bg-color-ghost-hover:#f4f4f4;--button-bg-color-ghost-active:#eaeaea;--button-bg-color-frosted:#6f6f6f66;--button-bg-color-frosted-hover:#6f6f6f80;--button-bg-color-frosted-active:#6f6f6f99;--button-bg-color-disabled:#e0e0e0;--surface-bg-color-01:#f4f4f4;--surface-bg-color-01-hover:#eaeaea;--surface-bg-color-01-active:#e0e0e0;--surface-bg-color-02:#ffffff;--surface-bg-color-inverse:#262626;--surface-bg-color-inverse-hover:#303030;--surface-bg-color-inverse-active:#393939;--surface-bg-color-disabled:#e0e0e0;--chip-bg-color-primary:#161616;--chip-bg-color-primary-hover:#1e1e1e;--chip-bg-color-primary-active:#262626;--chip-bg-color-subtle:#f4f4f4;--chip-bg-color-subtle-hover:#eaeaea;--chip-bg-color-subtle-active:#e0e0e0;--chip-bg-color-outline-hover:#f4f4f4;--chip-bg-color-outline-active:#eaeaea;--label-bg-color-accent:#ff3944;}:host{display:block;position:relative;width:100%;}.text-search-input{width:100%;height:48px;padding:0 62px 0 16px;font-size:16px;box-sizing:border-box;font-style:normal;font-weight:400;border-radius:8px;font-family:var(--font-family, var(--font-family-base));border:1px solid var(--color-border-02);transition:border-color 0.2s;outline:none;overflow:hidden}.text-search-input--with-icon{padding-right:96px}.text-search-input::-moz-placeholder{color:#a8a8a8}.text-search-input::placeholder{color:#a8a8a8}.text-search-input:focus,.text-search-input:active{border-color:#8d8d8d}.text-search-button{position:absolute;right:1px;top:1px;border:none;border-radius:0 7px 7px 0;width:46px;height:46px;display:flex;justify-content:center;align-items:center;background-color:#f4f4f4;transition:background-color 0.2s;cursor:pointer}.text-search-button:not(:disabled):hover{background-color:#e0e0e0}.text-search-button:disabled{cursor:unset}vviinn-image-selector,::slotted([slot=\"vviinn-text-search-actions\"]){position:absolute;right:60px;top:calc(50% - 12px)}vviinn-preloader{--preloader-size:16px;display:flex;color:#525252}";
|
|
4412
4410
|
|
|
4413
4411
|
const VviinnTextSearch = class {
|
|
4414
4412
|
constructor(hostRef) {
|
|
@@ -4435,7 +4433,7 @@ const VviinnTextSearch = class {
|
|
|
4435
4433
|
customizedSlots.slotChangeListener(this, this.el);
|
|
4436
4434
|
}
|
|
4437
4435
|
imageUploadFinished({ detail }) {
|
|
4438
|
-
if (!this.showInWidget) {
|
|
4436
|
+
if (!this.showInWidget && this.mode === "textAndUpload") {
|
|
4439
4437
|
this.vviinnSearchIdReceived.emit({ searchId: detail.searchId });
|
|
4440
4438
|
}
|
|
4441
4439
|
}
|
|
@@ -4463,10 +4461,10 @@ const VviinnTextSearch = class {
|
|
|
4463
4461
|
render() {
|
|
4464
4462
|
return (index.h(index.Host, { exportparts: "text-search-input" }, index.h("input", { class: {
|
|
4465
4463
|
"text-search-input": true,
|
|
4466
|
-
"text-search-input--with-icon": this.mode === "
|
|
4464
|
+
"text-search-input--with-icon": this.mode === "textAndUpload",
|
|
4467
4465
|
}, part: "text-search-input", type: "text", placeholder: index$1.instance.t("textSearchPlaceholder"), value: this.searchQuery, onInput: (event) => this.handleInputChange(event), onKeyUp: (event) => this.handleKeyPress(event) }), index.h("button", { class: "text-search-button", onClick: () => this.handleTextSearch(), disabled: search_store.searchState.loading }, search_store.searchState.loading &&
|
|
4468
4466
|
search_store.searchState.searchType === "text" &&
|
|
4469
|
-
this.showInWidget ? (index.h("vviinn-preloader", null)) : (index.h("slot", { name: "vviinn-text-search-icon" }, index.h(TextSearchIcon, null)))), this.mode === "
|
|
4467
|
+
this.showInWidget ? (index.h("vviinn-preloader", null)) : (index.h("slot", { name: "vviinn-text-search-icon" }, index.h(TextSearchIcon, null)))), this.mode === "textAndUpload" ? (index.h("vviinn-image-selector", { token: this.token, apiPath: this.apiPath, showInTextSearch: true }, index.h("span", { slot: "upload-button-text" }, index.h(SearchModalUploadIcon.SearchModalUploadIcon, null)))) : (index.h("slot", { name: "vviinn-text-search-actions" }))));
|
|
4470
4468
|
}
|
|
4471
4469
|
get el() { return index.getElement(this); }
|
|
4472
4470
|
};
|
|
@@ -7,7 +7,7 @@ const index = require('./index-4474431a.js');
|
|
|
7
7
|
const VisualSearchIcon = () => (index.h("svg", { width: "20", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
8
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5 2C3.35 2 2 3.35 2 5v2H0V5c0-2.76 2.24-5 5-5h2v2H5Zm5 3c1.28 0 2.56.48 3.54 1.46h-.01a4.994 4.994 0 0 1 .64 6.29l3.05 3.05-1.41 1.41-3.05-3.05c-.84.55-1.8.83-2.76.83a4.98 4.98 0 0 1-3.54-1.46 5.003 5.003 0 0 1 0-7.07C7.44 5.49 8.72 5 10 5Zm-2.77 5c0 .74.29 1.44.81 1.96s1.22.81 1.96.81 1.44-.29 1.96-.81.81-1.22.81-1.96-.29-1.44-.81-1.96-1.22-.81-1.96-.81-1.44.29-1.96.81-.81 1.22-.81 1.96ZM2 15v-2H0v2c0 2.76 2.24 5 5 5h2v-2H5c-1.65 0-3-1.35-3-3ZM13 0h2c2.76 0 5 2.24 5 5v2h-2V5c0-1.65-1.35-3-3-3h-2V0Z", fill: "#161616" })));
|
|
9
9
|
|
|
10
|
-
const vviinnButtonCss = ":host{display:block}.open-button{align-items:center;background:rgba(255, 255, 255, 0.8);border-radius:50%;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);box-sizing:border-box;cursor:pointer;display:grid;height:40px;justify-items:center;padding:0;width:40px;transition:all 0.25s ease-in-out}.raw-open-button{background:none;border:none;cursor:pointer}.open-button:hover{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.25)}.open-button:focus{border:2px solid rgba(15, 98, 254, 0.5);outline:none}.open-button:active{background:#f4f4f4;outline:none}";
|
|
10
|
+
const vviinnButtonCss = ":host{display:block}.open-button{align-items:center;background:rgba(255, 255, 255, 0.8);border-radius:50%;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);box-sizing:border-box;cursor:pointer;display:grid;height:40px;justify-items:center;padding:0;width:40px;transition:all 0.25s ease-in-out}.raw-open-button{display:contents;background:none;border:none;cursor:pointer}.open-button:hover{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.25)}.open-button:focus{border:2px solid rgba(15, 98, 254, 0.5);outline:none}.open-button:active{background:#f4f4f4;outline:none}";
|
|
11
11
|
|
|
12
12
|
const VviinnButton = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -7,7 +7,7 @@ const search_store = require('./search.store-4593a19d.js');
|
|
|
7
7
|
const customizedSlots = require('./customized-slots-ee9418c1.js');
|
|
8
8
|
const emitRequestFiltersMore = require('./emitRequestFiltersMore-35a9fed4.js');
|
|
9
9
|
const index$1 = require('./index-3035bd2b.js');
|
|
10
|
-
const _package = require('./package-
|
|
10
|
+
const _package = require('./package-1fb8d4ba.js');
|
|
11
11
|
|
|
12
12
|
const BasketIcon = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13
13
|
index.h("g", { id: "shopping-bag" },
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4474431a.js');
|
|
6
6
|
|
|
7
|
-
const vviinnErrorCss = ":host{width:280px;background:#f4f4f4;border-radius:8px;display:grid;grid-gap:20px;padding:24px;text-align:center;justify-items:center;align-self:center;justify-self:center}::slotted(svg){display:grid;align-self:center}::slotted(h4){margin:unset;font-weight:600;font-size:18px;line-height:24px}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;background:var(--color-primary, var(--button-bg-color-primary));border-radius:var(--border-radius-50);padding:var(--spacing-100);font-size:var(--font-size-body);color:var(--color-text-inverse)}::slotted(button:hover){background:var(--button-bg-color-primary-hover)}@media (max-width: 480px){:host{width:260px}}";
|
|
7
|
+
const vviinnErrorCss = ":host{--font-family-base:Inter, system-ui, sans-serif;--font-family-mono:monospace;--font-size-title:24px;--font-size-headline:18px;--font-size-label-large:16px;--font-size-label:14px;--font-size-body-large:16px;--font-size-body:14px;--font-size-caption:12px;--line-height-title:32px;--line-height-headline:24px;--line-height-label-large:24px;--line-height-label:20px;--line-height-body-large:24px;--line-height-body:20px;--line-height-caption:16px;--letter-spacing-title:0px;--letter-spacing-headline:0px;--letter-spacing-label-large:0px;--letter-spacing-label:0px;--letter-spacing-body-large:0px;--letter-spacing-body:0px;--letter-spacing-caption:0px;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-weight-700:700;--spacing-none:0px;--spacing-25:2px;--spacing-50:4px;--spacing-75:6px;--spacing-100:8px;--spacing-125:10px;--spacing-150:12px;--spacing-200:16px;--spacing-250:20px;--spacing-300:24px;--spacing-400:32px;--spacing-500:40px;--spacing-600:48px;--border-radius-none:0px;--border-radius-25:2px;--border-radius-50:4px;--border-radius-100:8px;--border-radius-150:12px;--border-radius-200:16px;--border-radius-300:24px;--border-radius-400:32px;--border-radius-full:9999px;--stroke-width-none:0px;--stroke-width-25:1px;--stroke-width-50:2px;--stroke-width-75:3px;--stroke-width-100:4px;--stroke-width-150:6px;--stroke-width-200:8px;--stroke-width-300:12px;--product-card-widget-min-width:130px;--product-card-results-min-width:250px;--image-set-mode-min-size:155px;--product-card-set-mode-max-width:300px;--source-card-set-mode-max-width:500px;--filter-blur-none:0px;--filter-blur-100:8px;--filter-blur-150:12px;--filter-blur-200:16px;--color-bg-base:#ffffff;--color-bg-inverse:#161616;--color-border-00:#ffffff;--color-border-01:#f4f4f4;--color-border-02:#e0e0e0;--color-border-03:#c6c6c6;--color-border-inverse-00:#161616;--color-border-inverse-01:#393939;--color-field-01:#ffffff;--color-field-02:#f4f4f4;--color-icon-primary:#161616;--color-icon-secondary:#525252;--color-icon-helper:#8d8d8d;--color-icon-on-color:#ffffff;--color-icon-inverse:#ffffff;--color-icon-disabled:#16161640;--color-text-primary:#161616;--color-text-secondary:#525252;--color-text-helper:#8d8d8d;--color-text-placeholder:#a8a8a8;--color-text-on-color:#ffffff;--color-text-inverse:#ffffff;--color-text-disabled:#16161640;--button-bg-color-primary:#000000;--button-bg-color-primary-hover:#161616;--button-bg-color-primary-active:#1e1e1e;--button-bg-color-secondary:#f4f4f4;--button-bg-color-secondary-hover:#e0e0e0;--button-bg-color-secondary-active:#c6c6c6;--button-bg-color-ghost-hover:#f4f4f4;--button-bg-color-ghost-active:#eaeaea;--button-bg-color-frosted:#6f6f6f66;--button-bg-color-frosted-hover:#6f6f6f80;--button-bg-color-frosted-active:#6f6f6f99;--button-bg-color-disabled:#e0e0e0;--surface-bg-color-01:#f4f4f4;--surface-bg-color-01-hover:#eaeaea;--surface-bg-color-01-active:#e0e0e0;--surface-bg-color-02:#ffffff;--surface-bg-color-inverse:#262626;--surface-bg-color-inverse-hover:#303030;--surface-bg-color-inverse-active:#393939;--surface-bg-color-disabled:#e0e0e0;--chip-bg-color-primary:#161616;--chip-bg-color-primary-hover:#1e1e1e;--chip-bg-color-primary-active:#262626;--chip-bg-color-subtle:#f4f4f4;--chip-bg-color-subtle-hover:#eaeaea;--chip-bg-color-subtle-active:#e0e0e0;--chip-bg-color-outline-hover:#f4f4f4;--chip-bg-color-outline-active:#eaeaea;--label-bg-color-accent:#ff3944;}:host{width:280px;background:#f4f4f4;border-radius:8px;display:grid;grid-gap:20px;padding:24px;text-align:center;justify-items:center;align-self:center;justify-self:center;font-family:var(--font-family, var(--font-family-base))}::slotted(svg){display:grid;align-self:center}::slotted(h4){margin:unset;font-weight:600;font-size:18px;line-height:24px}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;background:var(--color-primary, var(--button-bg-color-primary));border-radius:var(--border-radius-50);padding:var(--spacing-100);font-size:var(--font-size-body);color:var(--color-text-inverse);font-family:var(--font-family, var(--font-family-base))}::slotted(button:hover){background:var(--button-bg-color-primary-hover)}@media (max-width: 480px){:host{width:260px}}";
|
|
8
8
|
|
|
9
9
|
const VviinnError = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4474431a.js');
|
|
6
|
-
const _package = require('./package-
|
|
6
|
+
const _package = require('./package-1fb8d4ba.js');
|
|
7
7
|
|
|
8
8
|
const SimilarProductsIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
9
9
|
index.h("path", { d: "M4 16V15H2V16C2 19.31 4.69 22 8 22H9V20H8C5.79 20 4 18.21 4 16Z", fill: "#161616" }),
|
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4474431a.js');
|
|
6
|
-
const _package = require('./package-
|
|
6
|
+
const _package = require('./package-1fb8d4ba.js');
|
|
7
|
+
const SearchModalUploadIcon = require('./SearchModalUploadIcon-b6db8026.js');
|
|
7
8
|
const customizedSlots = require('./customized-slots-ee9418c1.js');
|
|
8
9
|
const constants = require('./constants-7684cbfc.js');
|
|
9
10
|
|
|
10
11
|
const SearchModalCameraIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
11
12
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18 4H20C22.21 4 24 5.79 24 8V16H22V8C22 6.9 21.1 6 20 6H16.93L16.34 5.11L14.93 3H9.07L7.66 5.11L7.07 6H4C2.9 6 2 6.9 2 8V18C2 19.1 2.9 20 4 20H9V22H4C1.79 22 0 20.21 0 18V8C0 5.79 1.79 4 4 4H6L8 1H16L18 4ZM12 8C14.76 8 17 10.24 17 13L16.99 13.01C16.99 14.02 16.68 14.97 16.16 15.76L20.7 20.3L19.29 21.71L14.75 17.17C13.96 17.69 13.02 18 12 18C9.24 18 7 15.76 7 13C7 10.24 9.24 8 12 8ZM9 13C9 14.65 10.35 16 12 16C13.65 16 15 14.65 15 13C15 11.35 13.65 10 12 10C10.35 10 9 11.35 9 13Z", fill: "#161616" })));
|
|
12
13
|
|
|
13
|
-
const SearchModalUploadIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
14
|
-
index.h("path", { d: "M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H13C13.2833 3 13.5208 3.09583 13.7125 3.2875C13.9042 3.47917 14 3.71667 14 4C14 4.28333 13.9042 4.52083 13.7125 4.7125C13.5208 4.90417 13.2833 5 13 5H5V19H19V11C19 10.7167 19.0958 10.4792 19.2875 10.2875C19.4792 10.0958 19.7167 10 20 10C20.2833 10 20.5208 10.0958 20.7125 10.2875C20.9042 10.4792 21 10.7167 21 11V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM17 7H16C15.7167 7 15.4792 6.90417 15.2875 6.7125C15.0958 6.52083 15 6.28333 15 6C15 5.71667 15.0958 5.47917 15.2875 5.2875C15.4792 5.09583 15.7167 5 16 5H17V4C17 3.71667 17.0958 3.47917 17.2875 3.2875C17.4792 3.09583 17.7167 3 18 3C18.2833 3 18.5208 3.09583 18.7125 3.2875C18.9042 3.47917 19 3.71667 19 4V5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H19V8C19 8.28333 18.9042 8.52083 18.7125 8.7125C18.5208 8.90417 18.2833 9 18 9C17.7167 9 17.4792 8.90417 17.2875 8.7125C17.0958 8.52083 17 8.28333 17 8V7ZM11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83333 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16Z", fill: "#161616" })));
|
|
15
|
-
|
|
16
14
|
const SearchModalFullSearchIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
17
15
|
index.h("path", { d: "M4 8C4 5.79 5.79 4 8 4H9V2H8C4.69 2 2 4.69 2 8V9H4V8Z", fill: "#161616" }),
|
|
18
16
|
index.h("path", { d: "M20 8C20 5.79 18.21 4 16 4H15V2H16C19.31 2 22 4.69 22 8V9H20V8Z", fill: "#161616" }),
|
|
@@ -91,7 +89,7 @@ const VviinnVpsButton = class {
|
|
|
91
89
|
render() {
|
|
92
90
|
return (index.h(index.Host, { tabindex: "0", role: "button" }, index.h("vviinn-button", { onClick: () => {
|
|
93
91
|
this.handleClick();
|
|
94
|
-
}, addStyle: this.addStyle, part: "vviinn-button" }, index.h("slot", null, this.mode === "camera" ? (index.h(SearchModalCameraIcon, null)) : this.mode === "upload" ? (index.h(SearchModalUploadIcon, null)) : this.textSearchShow ? (index.h(SearchModalFullSearchIcon, null)) : (index.h(SearchModalImageSearchIcon, null)))), customizedSlots.SlotSkeleton("vps"), index.h("vviinn-vps-widget", { mode: this.mode, "currency-sign": this.currencySign, token: this.token, locale: this.locale, apiPath: this.apiPath, campaignId: this.campaignId, showingInButton: true, buttonPressed: this.buttonPressed, resetVpsButton: this.resetButton.bind(this), buttonElementId: this.el.id, active: this.buttonPressed &&
|
|
92
|
+
}, addStyle: this.addStyle, part: "vviinn-button" }, index.h("slot", null, this.mode === "camera" ? (index.h(SearchModalCameraIcon, null)) : this.mode === "upload" ? (index.h(SearchModalUploadIcon.SearchModalUploadIcon, null)) : this.textSearchShow ? (index.h(SearchModalFullSearchIcon, null)) : (index.h(SearchModalImageSearchIcon, null)))), customizedSlots.SlotSkeleton("vps"), index.h("vviinn-vps-widget", { mode: this.mode, "currency-sign": this.currencySign, token: this.token, locale: this.locale, apiPath: this.apiPath, campaignId: this.campaignId, showingInButton: true, buttonPressed: this.buttonPressed, resetVpsButton: this.resetButton.bind(this), buttonElementId: this.el.id, active: this.buttonPressed &&
|
|
95
93
|
(this.mode === "modal" || this.mode === "camera"), excluded: this.excluded, productDetailsNewTab: this.productDetailsNewTab, productDetailsRedirect: this.productDetailsRedirect, imageResolutionWidth: this.imageResolutionWidth, exampleImageSource: this.exampleImageSource, textSearchShow: this.textSearchShow, replaceSlotsContentInButton: this.replaceSlotsContent.bind(this) })));
|
|
96
94
|
}
|
|
97
95
|
get el() { return index.getElement(this); }
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-4474431a.js');
|
|
6
6
|
const search_store = require('./search.store-4593a19d.js');
|
|
7
7
|
const index$1 = require('./index-3035bd2b.js');
|
|
8
|
-
const _package = require('./package-
|
|
8
|
+
const _package = require('./package-1fb8d4ba.js');
|
|
9
9
|
const customizedSlots = require('./customized-slots-ee9418c1.js');
|
|
10
10
|
const constants = require('./constants-7684cbfc.js');
|
|
11
11
|
|
|
@@ -1,3 +1,215 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
/* New Styles */
|
|
3
|
+
--font-family-base: Inter, system-ui, sans-serif;
|
|
4
|
+
--font-family-mono: monospace;
|
|
5
|
+
|
|
6
|
+
--font-size-title: 24px;
|
|
7
|
+
--font-size-headline: 18px;
|
|
8
|
+
--font-size-label-large: 16px;
|
|
9
|
+
--font-size-label: 14px;
|
|
10
|
+
--font-size-body-large: 16px;
|
|
11
|
+
--font-size-body: 14px;
|
|
12
|
+
--font-size-caption: 12px;
|
|
13
|
+
|
|
14
|
+
--line-height-title: 32px;
|
|
15
|
+
--line-height-headline: 24px;
|
|
16
|
+
--line-height-label-large: 24px;
|
|
17
|
+
--line-height-label: 20px;
|
|
18
|
+
--line-height-body-large: 24px;
|
|
19
|
+
--line-height-body: 20px;
|
|
20
|
+
--line-height-caption: 16px;
|
|
21
|
+
|
|
22
|
+
--letter-spacing-title: 0px;
|
|
23
|
+
--letter-spacing-headline: 0px;
|
|
24
|
+
--letter-spacing-label-large: 0px;
|
|
25
|
+
--letter-spacing-label: 0px;
|
|
26
|
+
--letter-spacing-body-large: 0px;
|
|
27
|
+
--letter-spacing-body: 0px;
|
|
28
|
+
--letter-spacing-caption: 0px;
|
|
29
|
+
|
|
30
|
+
--font-weight-400: 400;
|
|
31
|
+
--font-weight-500: 500;
|
|
32
|
+
--font-weight-600: 600;
|
|
33
|
+
--font-weight-700: 700;
|
|
34
|
+
|
|
35
|
+
/* Spacing */
|
|
36
|
+
--spacing-none: 0px;
|
|
37
|
+
--spacing-25: 2px;
|
|
38
|
+
--spacing-50: 4px;
|
|
39
|
+
--spacing-75: 6px;
|
|
40
|
+
--spacing-100: 8px;
|
|
41
|
+
--spacing-125: 10px;
|
|
42
|
+
--spacing-150: 12px;
|
|
43
|
+
--spacing-200: 16px;
|
|
44
|
+
--spacing-250: 20px;
|
|
45
|
+
--spacing-300: 24px;
|
|
46
|
+
--spacing-400: 32px;
|
|
47
|
+
--spacing-500: 40px;
|
|
48
|
+
--spacing-600: 48px;
|
|
49
|
+
|
|
50
|
+
/* Border Radius */
|
|
51
|
+
--border-radius-none: 0px;
|
|
52
|
+
--border-radius-25: 2px;
|
|
53
|
+
--border-radius-50: 4px;
|
|
54
|
+
--border-radius-100: 8px;
|
|
55
|
+
--border-radius-150: 12px;
|
|
56
|
+
--border-radius-200: 16px;
|
|
57
|
+
--border-radius-300: 24px;
|
|
58
|
+
--border-radius-400: 32px;
|
|
59
|
+
--border-radius-full: 9999px;
|
|
60
|
+
|
|
61
|
+
/* Stroke Width */
|
|
62
|
+
--stroke-width-none: 0px;
|
|
63
|
+
--stroke-width-25: 1px;
|
|
64
|
+
--stroke-width-50: 2px;
|
|
65
|
+
--stroke-width-75: 3px;
|
|
66
|
+
--stroke-width-100: 4px;
|
|
67
|
+
--stroke-width-150: 6px;
|
|
68
|
+
--stroke-width-200: 8px;
|
|
69
|
+
--stroke-width-300: 12px;
|
|
70
|
+
|
|
71
|
+
/* Product Card */
|
|
72
|
+
|
|
73
|
+
--product-card-widget-min-width: 130px;
|
|
74
|
+
--product-card-results-min-width: 250px;
|
|
75
|
+
--image-set-mode-min-size: 155px;
|
|
76
|
+
--product-card-set-mode-max-width: 300px;
|
|
77
|
+
--source-card-set-mode-max-width: 500px;
|
|
78
|
+
|
|
79
|
+
/* Filters */
|
|
80
|
+
--filter-blur-none: 0px;
|
|
81
|
+
--filter-blur-100: 8px;
|
|
82
|
+
--filter-blur-150: 12px;
|
|
83
|
+
--filter-blur-200: 16px;
|
|
84
|
+
|
|
85
|
+
/* Colors. Core */
|
|
86
|
+
--color-bg-base: #ffffff;
|
|
87
|
+
--color-bg-inverse: #161616;
|
|
88
|
+
|
|
89
|
+
--color-border-00: #ffffff;
|
|
90
|
+
--color-border-01: #f4f4f4;
|
|
91
|
+
--color-border-02: #e0e0e0;
|
|
92
|
+
--color-border-03: #c6c6c6;
|
|
93
|
+
--color-border-inverse-00: #161616;
|
|
94
|
+
--color-border-inverse-01: #393939;
|
|
95
|
+
|
|
96
|
+
--color-field-01: #ffffff;
|
|
97
|
+
--color-field-02: #f4f4f4;
|
|
98
|
+
|
|
99
|
+
--color-icon-primary: #161616;
|
|
100
|
+
--color-icon-secondary: #525252;
|
|
101
|
+
--color-icon-helper: #8d8d8d;
|
|
102
|
+
--color-icon-on-color: #ffffff;
|
|
103
|
+
--color-icon-inverse: #ffffff;
|
|
104
|
+
--color-icon-disabled: #16161640;
|
|
105
|
+
|
|
106
|
+
--color-text-primary: #161616;
|
|
107
|
+
--color-text-secondary: #525252;
|
|
108
|
+
--color-text-helper: #8d8d8d;
|
|
109
|
+
--color-text-placeholder: #a8a8a8;
|
|
110
|
+
--color-text-on-color: #ffffff;
|
|
111
|
+
--color-text-inverse: #ffffff;
|
|
112
|
+
--color-text-disabled: #16161640;
|
|
113
|
+
|
|
114
|
+
/* Colors. Components */
|
|
115
|
+
|
|
116
|
+
--button-bg-color-primary: #000000;
|
|
117
|
+
--button-bg-color-primary-hover: #161616;
|
|
118
|
+
--button-bg-color-primary-active: #1e1e1e;
|
|
119
|
+
--button-bg-color-secondary: #f4f4f4;
|
|
120
|
+
--button-bg-color-secondary-hover: #e0e0e0;
|
|
121
|
+
--button-bg-color-secondary-active: #c6c6c6;
|
|
122
|
+
--button-bg-color-ghost-hover: #f4f4f4;
|
|
123
|
+
--button-bg-color-ghost-active: #eaeaea;
|
|
124
|
+
--button-bg-color-frosted: #6f6f6f66;
|
|
125
|
+
--button-bg-color-frosted-hover: #6f6f6f80;
|
|
126
|
+
--button-bg-color-frosted-active: #6f6f6f99;
|
|
127
|
+
--button-bg-color-disabled: #e0e0e0;
|
|
128
|
+
|
|
129
|
+
--surface-bg-color-01: #f4f4f4;
|
|
130
|
+
--surface-bg-color-01-hover: #eaeaea;
|
|
131
|
+
--surface-bg-color-01-active: #e0e0e0;
|
|
132
|
+
--surface-bg-color-02: #ffffff;
|
|
133
|
+
--surface-bg-color-inverse: #262626;
|
|
134
|
+
--surface-bg-color-inverse-hover: #303030;
|
|
135
|
+
--surface-bg-color-inverse-active: #393939;
|
|
136
|
+
--surface-bg-color-disabled: #e0e0e0;
|
|
137
|
+
|
|
138
|
+
--chip-bg-color-primary: #161616;
|
|
139
|
+
--chip-bg-color-primary-hover: #1e1e1e;
|
|
140
|
+
--chip-bg-color-primary-active: #262626;
|
|
141
|
+
--chip-bg-color-subtle: #f4f4f4;
|
|
142
|
+
--chip-bg-color-subtle-hover: #eaeaea;
|
|
143
|
+
--chip-bg-color-subtle-active: #e0e0e0;
|
|
144
|
+
--chip-bg-color-outline-hover: #f4f4f4;
|
|
145
|
+
--chip-bg-color-outline-active: #eaeaea;
|
|
146
|
+
|
|
147
|
+
--label-bg-color-accent: #ff3944;
|
|
148
|
+
|
|
149
|
+
/* DARK MODE SUPPORT
|
|
150
|
+
@media (prefers-color-scheme: dark) {
|
|
151
|
+
--color-bg-base: #161616;
|
|
152
|
+
--color-bg-inverse: #ffffff;
|
|
153
|
+
|
|
154
|
+
--color-border-00: #161616;
|
|
155
|
+
--color-border-01: #393939;
|
|
156
|
+
--color-border-02: #525252;
|
|
157
|
+
--color-border-03: #6f6f6f;
|
|
158
|
+
--color-border-inverse-00: #f4f4f4;
|
|
159
|
+
--color-border-inverse-01: #c6c6c6;
|
|
160
|
+
|
|
161
|
+
--color-field-01: #161616;
|
|
162
|
+
--color-field-02: #262626;
|
|
163
|
+
|
|
164
|
+
--color-icon-primary: #ffffff;
|
|
165
|
+
--color-icon-secondary: #c6c6c6;
|
|
166
|
+
--color-icon-helper: #8d8d8d;
|
|
167
|
+
--color-icon-on-color: #ffffff;
|
|
168
|
+
--color-icon-inverse: #161616;
|
|
169
|
+
--color-icon-disabled: #ffffff40;
|
|
170
|
+
|
|
171
|
+
--color-text-primary: #ffffff;
|
|
172
|
+
--color-text-secondary: #c6c6c6;
|
|
173
|
+
--color-text-helper: #8d8d8d;
|
|
174
|
+
--color-text-placeholder: #6f6f6f;
|
|
175
|
+
--color-text-on-color: #ffffff;
|
|
176
|
+
--color-text-inverse: #161616;
|
|
177
|
+
--color-text-disabled: #ffffff40;
|
|
178
|
+
|
|
179
|
+
--button-bg-color-primary: #ffffff;
|
|
180
|
+
--button-bg-color-primary-hover: #f9f9f9;
|
|
181
|
+
--button-bg-color-primary-active: #f4f4f4;
|
|
182
|
+
--button-bg-color-secondary: #262626;
|
|
183
|
+
--button-bg-color-secondary-hover: #303030;
|
|
184
|
+
--button-bg-color-secondary-active: #393939;
|
|
185
|
+
--button-bg-color-ghost-hover: #262626;
|
|
186
|
+
--button-bg-color-ghost-active: #303030;
|
|
187
|
+
--button-bg-color-frosted: #6f6f6f66;
|
|
188
|
+
--button-bg-color-frosted-hover: #6f6f6f80;
|
|
189
|
+
--button-bg-color-frosted-active: #6f6f6f99;
|
|
190
|
+
--button-bg-color-disabled: #393939;
|
|
191
|
+
|
|
192
|
+
--surface-bg-color-01: #262626;
|
|
193
|
+
--surface-bg-color-01-hover: #303030;
|
|
194
|
+
--surface-bg-color-01-active: #393939;
|
|
195
|
+
--surface-bg-color-02: #393939;
|
|
196
|
+
--surface-bg-color-inverse: #f4f4f4;
|
|
197
|
+
--surface-bg-color-inverse-hover: #eaeaea;
|
|
198
|
+
--surface-bg-color-inverse-active: #e0e0e0;
|
|
199
|
+
--surface-bg-color-disabled: #393939;
|
|
200
|
+
|
|
201
|
+
--chip-bg-color-primary: #ffffff;
|
|
202
|
+
--chip-bg-color-primary-hover: #f9f9f9;
|
|
203
|
+
--chip-bg-color-primary-active: #f4f4f4;
|
|
204
|
+
--chip-bg-color-subtle: #262626;
|
|
205
|
+
--chip-bg-color-subtle-hover: #303030;
|
|
206
|
+
--chip-bg-color-subtle-active: #393939;
|
|
207
|
+
--chip-bg-color-outline-hover: #262626;
|
|
208
|
+
--chip-bg-color-outline-active: #303030;
|
|
209
|
+
} */
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
1
213
|
:host {
|
|
2
214
|
width: 280px;
|
|
3
215
|
background: #f4f4f4;
|
|
@@ -9,6 +221,7 @@
|
|
|
9
221
|
justify-items: center;
|
|
10
222
|
align-self: center;
|
|
11
223
|
justify-self: center;
|
|
224
|
+
font-family: var(--font-family, var(--font-family-base));
|
|
12
225
|
}
|
|
13
226
|
|
|
14
227
|
::slotted(svg) {
|
|
@@ -39,6 +252,7 @@
|
|
|
39
252
|
padding: var(--spacing-100);
|
|
40
253
|
font-size: var(--font-size-body);
|
|
41
254
|
color: var(--color-text-inverse);
|
|
255
|
+
font-family: var(--font-family, var(--font-family-base));
|
|
42
256
|
}
|
|
43
257
|
|
|
44
258
|
::slotted(button:hover) {
|
|
@@ -277,10 +277,11 @@
|
|
|
277
277
|
cursor: unset;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
vviinn-image-selector
|
|
280
|
+
vviinn-image-selector,
|
|
281
|
+
::slotted([slot="vviinn-text-search-actions"]) {
|
|
281
282
|
position: absolute;
|
|
282
283
|
right: 60px;
|
|
283
|
-
top:
|
|
284
|
+
top: calc(50% - 12px);
|
|
284
285
|
}
|
|
285
286
|
|
|
286
287
|
vviinn-preloader {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
2
|
import { makeTextSearchRequest, searchState } from "../../store/search.store";
|
|
3
|
-
import {
|
|
3
|
+
import { SearchModalUploadIcon, TextSearchIcon } from "../vviinn-icons";
|
|
4
4
|
import { slotChangeListener } from "../customized-slots";
|
|
5
5
|
import i18next from "i18next";
|
|
6
6
|
import { resources } from "../../locale";
|
|
7
7
|
/**
|
|
8
8
|
* @part text-search-input - Text search input.
|
|
9
9
|
* @slot vviinn-text-search-icon - Icon of the text search block.
|
|
10
|
+
* @slot vviinn-text-search-actions - Additional actions for the text search block, e.g., a button to open the Search Modal.
|
|
10
11
|
*/
|
|
11
12
|
export class VviinnTextSearch {
|
|
12
13
|
constructor() {
|
|
@@ -29,7 +30,7 @@ export class VviinnTextSearch {
|
|
|
29
30
|
slotChangeListener(this, this.el);
|
|
30
31
|
}
|
|
31
32
|
imageUploadFinished({ detail }) {
|
|
32
|
-
if (!this.showInWidget) {
|
|
33
|
+
if (!this.showInWidget && this.mode === "textAndUpload") {
|
|
33
34
|
this.vviinnSearchIdReceived.emit({ searchId: detail.searchId });
|
|
34
35
|
}
|
|
35
36
|
}
|
|
@@ -57,10 +58,10 @@ export class VviinnTextSearch {
|
|
|
57
58
|
render() {
|
|
58
59
|
return (h(Host, { exportparts: "text-search-input" }, h("input", { class: {
|
|
59
60
|
"text-search-input": true,
|
|
60
|
-
"text-search-input--with-icon": this.mode === "
|
|
61
|
+
"text-search-input--with-icon": this.mode === "textAndUpload",
|
|
61
62
|
}, part: "text-search-input", type: "text", placeholder: i18next.t("textSearchPlaceholder"), value: this.searchQuery, onInput: (event) => this.handleInputChange(event), onKeyUp: (event) => this.handleKeyPress(event) }), h("button", { class: "text-search-button", onClick: () => this.handleTextSearch(), disabled: searchState.loading }, searchState.loading &&
|
|
62
63
|
searchState.searchType === "text" &&
|
|
63
|
-
this.showInWidget ? (h("vviinn-preloader", null)) : (h("slot", { name: "vviinn-text-search-icon" }, h(TextSearchIcon, null)))), this.mode === "
|
|
64
|
+
this.showInWidget ? (h("vviinn-preloader", null)) : (h("slot", { name: "vviinn-text-search-icon" }, h(TextSearchIcon, null)))), this.mode === "textAndUpload" ? (h("vviinn-image-selector", { token: this.token, apiPath: this.apiPath, showInTextSearch: true }, h("span", { slot: "upload-button-text" }, h(SearchModalUploadIcon, null)))) : (h("slot", { name: "vviinn-text-search-actions" }))));
|
|
64
65
|
}
|
|
65
66
|
static get is() { return "vviinn-text-search"; }
|
|
66
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -121,7 +122,7 @@ export class VviinnTextSearch {
|
|
|
121
122
|
"mutable": false,
|
|
122
123
|
"complexType": {
|
|
123
124
|
"original": "TextSearchMode",
|
|
124
|
-
"resolved": "\"text\" | \"
|
|
125
|
+
"resolved": "\"text\" | \"textAndUpload\"",
|
|
125
126
|
"references": {
|
|
126
127
|
"TextSearchMode": {
|
|
127
128
|
"location": "import",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { h } from './index-abf408d8.js';
|
|
2
|
+
|
|
3
|
+
const SearchModalUploadIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
4
|
+
h("path", { d: "M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H13C13.2833 3 13.5208 3.09583 13.7125 3.2875C13.9042 3.47917 14 3.71667 14 4C14 4.28333 13.9042 4.52083 13.7125 4.7125C13.5208 4.90417 13.2833 5 13 5H5V19H19V11C19 10.7167 19.0958 10.4792 19.2875 10.2875C19.4792 10.0958 19.7167 10 20 10C20.2833 10 20.5208 10.0958 20.7125 10.2875C20.9042 10.4792 21 10.7167 21 11V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM17 7H16C15.7167 7 15.4792 6.90417 15.2875 6.7125C15.0958 6.52083 15 6.28333 15 6C15 5.71667 15.0958 5.47917 15.2875 5.2875C15.4792 5.09583 15.7167 5 16 5H17V4C17 3.71667 17.0958 3.47917 17.2875 3.2875C17.4792 3.09583 17.7167 3 18 3C18.2833 3 18.5208 3.09583 18.7125 3.2875C18.9042 3.47917 19 3.71667 19 4V5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H19V8C19 8.28333 18.9042 8.52083 18.7125 8.7125C18.5208 8.90417 18.2833 9 18 9C17.7167 9 17.4792 8.90417 17.2875 8.7125C17.0958 8.52083 17 8.28333 17 8V7ZM11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83333 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16Z", fill: "#161616" })));
|
|
5
|
+
|
|
6
|
+
export { SearchModalUploadIcon as S };
|
|
@@ -3,14 +3,12 @@ import { s as searchState, _ as _function, O as Option, l as fromAlt, n as foldV
|
|
|
3
3
|
import { i as instance, r as resources, c as createTrackingApi, v as v4, n as createResultVpsEventByType, o as createProductVpsEventByType } from './index-60812b71.js';
|
|
4
4
|
import { s as slotChangeListener, c as campaignTypeNames } from './customized-slots-7fa3856f.js';
|
|
5
5
|
import { d as PlusIcon, c as calculatePriceLabel, s as subFilterSelection, e as emitRequestFiltersMore, a as showActiveOnSubButton, R as RenderButton } from './emitRequestFiltersMore-d84828f1.js';
|
|
6
|
-
import { v as version } from './package-
|
|
6
|
+
import { v as version } from './package-d5ab83a6.js';
|
|
7
|
+
import { S as SearchModalUploadIcon } from './SearchModalUploadIcon-ef6e9c6c.js';
|
|
7
8
|
|
|
8
9
|
const ArrowIcon = () => (h("svg", { width: "12", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
10
|
h("path", { d: "M0 10 10 0l1.4 1.4L2.8 10l8.6 8.6L10 20 0 10Z" })));
|
|
10
11
|
|
|
11
|
-
const CameraIcon = () => (h("svg", { width: "22", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
12
|
-
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16.567 3H19A3.01 3.01 0 0 1 22 6v7.69h-2V6c0-.55-.451-1-1.001-1h-3.502l-2.03-3H8.543L6.603 5H3.001c-.55 0-1 .45-1 1v11c0 .55.45 1 1 1h5.933v2H3.001A3.01 3.01 0 0 1 0 17V6c0-1.65 1.35-3 3.001-3h2.522l1.94-3h7.074l2.03 3Zm-5.562 3c1.28 0 2.561.48 3.542 1.46h-.01a4.992 4.992 0 0 1 .64 6.29l3.051 3.05-1.41 1.41-3.052-3.05c-.84.55-1.8.83-2.76.83-1.282 0-2.562-.48-3.543-1.46a5.002 5.002 0 0 1 0-7.07A5.026 5.026 0 0 1 11.005 6Zm-2.771 5a2.763 2.763 0 0 0 2.771 2.77A2.763 2.763 0 0 0 13.776 11a2.763 2.763 0 0 0-2.771-2.77A2.763 2.763 0 0 0 8.234 11Z", fill: "#161616" })));
|
|
13
|
-
|
|
14
12
|
const MinusIcon = () => (h("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
15
13
|
h("path", { d: "M8.00001 17.3333C7.62223 17.3333 7.30556 17.2056 7.05001 16.95C6.79445 16.6944 6.66667 16.3778 6.66667 16C6.66667 15.6222 6.79445 15.3056 7.05001 15.05C7.30556 14.7944 7.62223 14.6667 8.00001 14.6667H24C24.3778 14.6667 24.6944 14.7944 24.95 15.05C25.2056 15.3056 25.3333 15.6222 25.3333 16C25.3333 16.3778 25.2056 16.6944 24.95 16.95C24.6944 17.2056 24.3778 17.3333 24 17.3333H8.00001Z", fill: "currentColor" })));
|
|
16
14
|
|
|
@@ -4404,7 +4402,7 @@ const VviinnTeaser = class {
|
|
|
4404
4402
|
};
|
|
4405
4403
|
VviinnTeaser.style = vviinnTeaserCss;
|
|
4406
4404
|
|
|
4407
|
-
const vviinnTextSearchCss = ":host{--font-family-base:Inter, system-ui, sans-serif;--font-family-mono:monospace;--font-size-title:24px;--font-size-headline:18px;--font-size-label-large:16px;--font-size-label:14px;--font-size-body-large:16px;--font-size-body:14px;--font-size-caption:12px;--line-height-title:32px;--line-height-headline:24px;--line-height-label-large:24px;--line-height-label:20px;--line-height-body-large:24px;--line-height-body:20px;--line-height-caption:16px;--letter-spacing-title:0px;--letter-spacing-headline:0px;--letter-spacing-label-large:0px;--letter-spacing-label:0px;--letter-spacing-body-large:0px;--letter-spacing-body:0px;--letter-spacing-caption:0px;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-weight-700:700;--spacing-none:0px;--spacing-25:2px;--spacing-50:4px;--spacing-75:6px;--spacing-100:8px;--spacing-125:10px;--spacing-150:12px;--spacing-200:16px;--spacing-250:20px;--spacing-300:24px;--spacing-400:32px;--spacing-500:40px;--spacing-600:48px;--border-radius-none:0px;--border-radius-25:2px;--border-radius-50:4px;--border-radius-100:8px;--border-radius-150:12px;--border-radius-200:16px;--border-radius-300:24px;--border-radius-400:32px;--border-radius-full:9999px;--stroke-width-none:0px;--stroke-width-25:1px;--stroke-width-50:2px;--stroke-width-75:3px;--stroke-width-100:4px;--stroke-width-150:6px;--stroke-width-200:8px;--stroke-width-300:12px;--product-card-widget-min-width:130px;--product-card-results-min-width:250px;--image-set-mode-min-size:155px;--product-card-set-mode-max-width:300px;--source-card-set-mode-max-width:500px;--filter-blur-none:0px;--filter-blur-100:8px;--filter-blur-150:12px;--filter-blur-200:16px;--color-bg-base:#ffffff;--color-bg-inverse:#161616;--color-border-00:#ffffff;--color-border-01:#f4f4f4;--color-border-02:#e0e0e0;--color-border-03:#c6c6c6;--color-border-inverse-00:#161616;--color-border-inverse-01:#393939;--color-field-01:#ffffff;--color-field-02:#f4f4f4;--color-icon-primary:#161616;--color-icon-secondary:#525252;--color-icon-helper:#8d8d8d;--color-icon-on-color:#ffffff;--color-icon-inverse:#ffffff;--color-icon-disabled:#16161640;--color-text-primary:#161616;--color-text-secondary:#525252;--color-text-helper:#8d8d8d;--color-text-placeholder:#a8a8a8;--color-text-on-color:#ffffff;--color-text-inverse:#ffffff;--color-text-disabled:#16161640;--button-bg-color-primary:#000000;--button-bg-color-primary-hover:#161616;--button-bg-color-primary-active:#1e1e1e;--button-bg-color-secondary:#f4f4f4;--button-bg-color-secondary-hover:#e0e0e0;--button-bg-color-secondary-active:#c6c6c6;--button-bg-color-ghost-hover:#f4f4f4;--button-bg-color-ghost-active:#eaeaea;--button-bg-color-frosted:#6f6f6f66;--button-bg-color-frosted-hover:#6f6f6f80;--button-bg-color-frosted-active:#6f6f6f99;--button-bg-color-disabled:#e0e0e0;--surface-bg-color-01:#f4f4f4;--surface-bg-color-01-hover:#eaeaea;--surface-bg-color-01-active:#e0e0e0;--surface-bg-color-02:#ffffff;--surface-bg-color-inverse:#262626;--surface-bg-color-inverse-hover:#303030;--surface-bg-color-inverse-active:#393939;--surface-bg-color-disabled:#e0e0e0;--chip-bg-color-primary:#161616;--chip-bg-color-primary-hover:#1e1e1e;--chip-bg-color-primary-active:#262626;--chip-bg-color-subtle:#f4f4f4;--chip-bg-color-subtle-hover:#eaeaea;--chip-bg-color-subtle-active:#e0e0e0;--chip-bg-color-outline-hover:#f4f4f4;--chip-bg-color-outline-active:#eaeaea;--label-bg-color-accent:#ff3944;}:host{display:block;position:relative;width:100%;}.text-search-input{width:100%;height:48px;padding:0 62px 0 16px;font-size:16px;box-sizing:border-box;font-style:normal;font-weight:400;border-radius:8px;font-family:var(--font-family, var(--font-family-base));border:1px solid var(--color-border-02);transition:border-color 0.2s;outline:none;overflow:hidden}.text-search-input--with-icon{padding-right:96px}.text-search-input::-moz-placeholder{color:#a8a8a8}.text-search-input::placeholder{color:#a8a8a8}.text-search-input:focus,.text-search-input:active{border-color:#8d8d8d}.text-search-button{position:absolute;right:1px;top:1px;border:none;border-radius:0 7px 7px 0;width:46px;height:46px;display:flex;justify-content:center;align-items:center;background-color:#f4f4f4;transition:background-color 0.2s;cursor:pointer}.text-search-button:not(:disabled):hover{background-color:#e0e0e0}.text-search-button:disabled{cursor:unset}vviinn-image-selector{position:absolute;right:60px;top:
|
|
4405
|
+
const vviinnTextSearchCss = ":host{--font-family-base:Inter, system-ui, sans-serif;--font-family-mono:monospace;--font-size-title:24px;--font-size-headline:18px;--font-size-label-large:16px;--font-size-label:14px;--font-size-body-large:16px;--font-size-body:14px;--font-size-caption:12px;--line-height-title:32px;--line-height-headline:24px;--line-height-label-large:24px;--line-height-label:20px;--line-height-body-large:24px;--line-height-body:20px;--line-height-caption:16px;--letter-spacing-title:0px;--letter-spacing-headline:0px;--letter-spacing-label-large:0px;--letter-spacing-label:0px;--letter-spacing-body-large:0px;--letter-spacing-body:0px;--letter-spacing-caption:0px;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-weight-700:700;--spacing-none:0px;--spacing-25:2px;--spacing-50:4px;--spacing-75:6px;--spacing-100:8px;--spacing-125:10px;--spacing-150:12px;--spacing-200:16px;--spacing-250:20px;--spacing-300:24px;--spacing-400:32px;--spacing-500:40px;--spacing-600:48px;--border-radius-none:0px;--border-radius-25:2px;--border-radius-50:4px;--border-radius-100:8px;--border-radius-150:12px;--border-radius-200:16px;--border-radius-300:24px;--border-radius-400:32px;--border-radius-full:9999px;--stroke-width-none:0px;--stroke-width-25:1px;--stroke-width-50:2px;--stroke-width-75:3px;--stroke-width-100:4px;--stroke-width-150:6px;--stroke-width-200:8px;--stroke-width-300:12px;--product-card-widget-min-width:130px;--product-card-results-min-width:250px;--image-set-mode-min-size:155px;--product-card-set-mode-max-width:300px;--source-card-set-mode-max-width:500px;--filter-blur-none:0px;--filter-blur-100:8px;--filter-blur-150:12px;--filter-blur-200:16px;--color-bg-base:#ffffff;--color-bg-inverse:#161616;--color-border-00:#ffffff;--color-border-01:#f4f4f4;--color-border-02:#e0e0e0;--color-border-03:#c6c6c6;--color-border-inverse-00:#161616;--color-border-inverse-01:#393939;--color-field-01:#ffffff;--color-field-02:#f4f4f4;--color-icon-primary:#161616;--color-icon-secondary:#525252;--color-icon-helper:#8d8d8d;--color-icon-on-color:#ffffff;--color-icon-inverse:#ffffff;--color-icon-disabled:#16161640;--color-text-primary:#161616;--color-text-secondary:#525252;--color-text-helper:#8d8d8d;--color-text-placeholder:#a8a8a8;--color-text-on-color:#ffffff;--color-text-inverse:#ffffff;--color-text-disabled:#16161640;--button-bg-color-primary:#000000;--button-bg-color-primary-hover:#161616;--button-bg-color-primary-active:#1e1e1e;--button-bg-color-secondary:#f4f4f4;--button-bg-color-secondary-hover:#e0e0e0;--button-bg-color-secondary-active:#c6c6c6;--button-bg-color-ghost-hover:#f4f4f4;--button-bg-color-ghost-active:#eaeaea;--button-bg-color-frosted:#6f6f6f66;--button-bg-color-frosted-hover:#6f6f6f80;--button-bg-color-frosted-active:#6f6f6f99;--button-bg-color-disabled:#e0e0e0;--surface-bg-color-01:#f4f4f4;--surface-bg-color-01-hover:#eaeaea;--surface-bg-color-01-active:#e0e0e0;--surface-bg-color-02:#ffffff;--surface-bg-color-inverse:#262626;--surface-bg-color-inverse-hover:#303030;--surface-bg-color-inverse-active:#393939;--surface-bg-color-disabled:#e0e0e0;--chip-bg-color-primary:#161616;--chip-bg-color-primary-hover:#1e1e1e;--chip-bg-color-primary-active:#262626;--chip-bg-color-subtle:#f4f4f4;--chip-bg-color-subtle-hover:#eaeaea;--chip-bg-color-subtle-active:#e0e0e0;--chip-bg-color-outline-hover:#f4f4f4;--chip-bg-color-outline-active:#eaeaea;--label-bg-color-accent:#ff3944;}:host{display:block;position:relative;width:100%;}.text-search-input{width:100%;height:48px;padding:0 62px 0 16px;font-size:16px;box-sizing:border-box;font-style:normal;font-weight:400;border-radius:8px;font-family:var(--font-family, var(--font-family-base));border:1px solid var(--color-border-02);transition:border-color 0.2s;outline:none;overflow:hidden}.text-search-input--with-icon{padding-right:96px}.text-search-input::-moz-placeholder{color:#a8a8a8}.text-search-input::placeholder{color:#a8a8a8}.text-search-input:focus,.text-search-input:active{border-color:#8d8d8d}.text-search-button{position:absolute;right:1px;top:1px;border:none;border-radius:0 7px 7px 0;width:46px;height:46px;display:flex;justify-content:center;align-items:center;background-color:#f4f4f4;transition:background-color 0.2s;cursor:pointer}.text-search-button:not(:disabled):hover{background-color:#e0e0e0}.text-search-button:disabled{cursor:unset}vviinn-image-selector,::slotted([slot=\"vviinn-text-search-actions\"]){position:absolute;right:60px;top:calc(50% - 12px)}vviinn-preloader{--preloader-size:16px;display:flex;color:#525252}";
|
|
4408
4406
|
|
|
4409
4407
|
const VviinnTextSearch = class {
|
|
4410
4408
|
constructor(hostRef) {
|
|
@@ -4431,7 +4429,7 @@ const VviinnTextSearch = class {
|
|
|
4431
4429
|
slotChangeListener(this, this.el);
|
|
4432
4430
|
}
|
|
4433
4431
|
imageUploadFinished({ detail }) {
|
|
4434
|
-
if (!this.showInWidget) {
|
|
4432
|
+
if (!this.showInWidget && this.mode === "textAndUpload") {
|
|
4435
4433
|
this.vviinnSearchIdReceived.emit({ searchId: detail.searchId });
|
|
4436
4434
|
}
|
|
4437
4435
|
}
|
|
@@ -4459,10 +4457,10 @@ const VviinnTextSearch = class {
|
|
|
4459
4457
|
render() {
|
|
4460
4458
|
return (h(Host, { exportparts: "text-search-input" }, h("input", { class: {
|
|
4461
4459
|
"text-search-input": true,
|
|
4462
|
-
"text-search-input--with-icon": this.mode === "
|
|
4460
|
+
"text-search-input--with-icon": this.mode === "textAndUpload",
|
|
4463
4461
|
}, part: "text-search-input", type: "text", placeholder: instance.t("textSearchPlaceholder"), value: this.searchQuery, onInput: (event) => this.handleInputChange(event), onKeyUp: (event) => this.handleKeyPress(event) }), h("button", { class: "text-search-button", onClick: () => this.handleTextSearch(), disabled: searchState.loading }, searchState.loading &&
|
|
4464
4462
|
searchState.searchType === "text" &&
|
|
4465
|
-
this.showInWidget ? (h("vviinn-preloader", null)) : (h("slot", { name: "vviinn-text-search-icon" }, h(TextSearchIcon, null)))), this.mode === "
|
|
4463
|
+
this.showInWidget ? (h("vviinn-preloader", null)) : (h("slot", { name: "vviinn-text-search-icon" }, h(TextSearchIcon, null)))), this.mode === "textAndUpload" ? (h("vviinn-image-selector", { token: this.token, apiPath: this.apiPath, showInTextSearch: true }, h("span", { slot: "upload-button-text" }, h(SearchModalUploadIcon, null)))) : (h("slot", { name: "vviinn-text-search-actions" }))));
|
|
4466
4464
|
}
|
|
4467
4465
|
get el() { return getElement(this); }
|
|
4468
4466
|
};
|
|
@@ -3,7 +3,7 @@ import { h, r as registerInstance, H as Host } from './index-abf408d8.js';
|
|
|
3
3
|
const VisualSearchIcon = () => (h("svg", { width: "20", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4
4
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5 2C3.35 2 2 3.35 2 5v2H0V5c0-2.76 2.24-5 5-5h2v2H5Zm5 3c1.28 0 2.56.48 3.54 1.46h-.01a4.994 4.994 0 0 1 .64 6.29l3.05 3.05-1.41 1.41-3.05-3.05c-.84.55-1.8.83-2.76.83a4.98 4.98 0 0 1-3.54-1.46 5.003 5.003 0 0 1 0-7.07C7.44 5.49 8.72 5 10 5Zm-2.77 5c0 .74.29 1.44.81 1.96s1.22.81 1.96.81 1.44-.29 1.96-.81.81-1.22.81-1.96-.29-1.44-.81-1.96-1.22-.81-1.96-.81-1.44.29-1.96.81-.81 1.22-.81 1.96ZM2 15v-2H0v2c0 2.76 2.24 5 5 5h2v-2H5c-1.65 0-3-1.35-3-3ZM13 0h2c2.76 0 5 2.24 5 5v2h-2V5c0-1.65-1.35-3-3-3h-2V0Z", fill: "#161616" })));
|
|
5
5
|
|
|
6
|
-
const vviinnButtonCss = ":host{display:block}.open-button{align-items:center;background:rgba(255, 255, 255, 0.8);border-radius:50%;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);box-sizing:border-box;cursor:pointer;display:grid;height:40px;justify-items:center;padding:0;width:40px;transition:all 0.25s ease-in-out}.raw-open-button{background:none;border:none;cursor:pointer}.open-button:hover{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.25)}.open-button:focus{border:2px solid rgba(15, 98, 254, 0.5);outline:none}.open-button:active{background:#f4f4f4;outline:none}";
|
|
6
|
+
const vviinnButtonCss = ":host{display:block}.open-button{align-items:center;background:rgba(255, 255, 255, 0.8);border-radius:50%;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);box-sizing:border-box;cursor:pointer;display:grid;height:40px;justify-items:center;padding:0;width:40px;transition:all 0.25s ease-in-out}.raw-open-button{display:contents;background:none;border:none;cursor:pointer}.open-button:hover{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.25)}.open-button:focus{border:2px solid rgba(15, 98, 254, 0.5);outline:none}.open-button:active{background:#f4f4f4;outline:none}";
|
|
7
7
|
|
|
8
8
|
const VviinnButton = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -3,7 +3,7 @@ import { h as has, t as tuple, s as searchState, _ as _function, a as _Array, O
|
|
|
3
3
|
import { c as campaignTypeNames, s as slotChangeListener, S as SlotSkeleton, f as fromString, a as fold } from './customized-slots-7fa3856f.js';
|
|
4
4
|
import { c as calculatePriceLabel, s as subFilterSelection, e as emitRequestFiltersMore, C as CheckFilterIcon, S as SquareFilterIcon, a as showActiveOnSubButton, R as RenderButton, b as ResponsiveImage, I as Image, L as Linked, P as Price, p as parseBasePrice } from './emitRequestFiltersMore-d84828f1.js';
|
|
5
5
|
import { i as instance, r as resources, v as v4, c as createTrackingApi, a as createAddToBasketVpcEvent, b as createAddToBasketVprEvent, d as createWidgetVpcEvent, e as createWidgetVprEvent, f as createResultVpcEventByType, g as createResultVprEventByType, h as createProductVpcEventByType, j as createProductVprEventByType } from './index-60812b71.js';
|
|
6
|
-
import { v as version } from './package-
|
|
6
|
+
import { v as version } from './package-d5ab83a6.js';
|
|
7
7
|
|
|
8
8
|
const BasketIcon = () => (h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
9
9
|
h("g", { id: "shopping-bag" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-abf408d8.js';
|
|
2
2
|
|
|
3
|
-
const vviinnErrorCss = ":host{width:280px;background:#f4f4f4;border-radius:8px;display:grid;grid-gap:20px;padding:24px;text-align:center;justify-items:center;align-self:center;justify-self:center}::slotted(svg){display:grid;align-self:center}::slotted(h4){margin:unset;font-weight:600;font-size:18px;line-height:24px}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;background:var(--color-primary, var(--button-bg-color-primary));border-radius:var(--border-radius-50);padding:var(--spacing-100);font-size:var(--font-size-body);color:var(--color-text-inverse)}::slotted(button:hover){background:var(--button-bg-color-primary-hover)}@media (max-width: 480px){:host{width:260px}}";
|
|
3
|
+
const vviinnErrorCss = ":host{--font-family-base:Inter, system-ui, sans-serif;--font-family-mono:monospace;--font-size-title:24px;--font-size-headline:18px;--font-size-label-large:16px;--font-size-label:14px;--font-size-body-large:16px;--font-size-body:14px;--font-size-caption:12px;--line-height-title:32px;--line-height-headline:24px;--line-height-label-large:24px;--line-height-label:20px;--line-height-body-large:24px;--line-height-body:20px;--line-height-caption:16px;--letter-spacing-title:0px;--letter-spacing-headline:0px;--letter-spacing-label-large:0px;--letter-spacing-label:0px;--letter-spacing-body-large:0px;--letter-spacing-body:0px;--letter-spacing-caption:0px;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-weight-700:700;--spacing-none:0px;--spacing-25:2px;--spacing-50:4px;--spacing-75:6px;--spacing-100:8px;--spacing-125:10px;--spacing-150:12px;--spacing-200:16px;--spacing-250:20px;--spacing-300:24px;--spacing-400:32px;--spacing-500:40px;--spacing-600:48px;--border-radius-none:0px;--border-radius-25:2px;--border-radius-50:4px;--border-radius-100:8px;--border-radius-150:12px;--border-radius-200:16px;--border-radius-300:24px;--border-radius-400:32px;--border-radius-full:9999px;--stroke-width-none:0px;--stroke-width-25:1px;--stroke-width-50:2px;--stroke-width-75:3px;--stroke-width-100:4px;--stroke-width-150:6px;--stroke-width-200:8px;--stroke-width-300:12px;--product-card-widget-min-width:130px;--product-card-results-min-width:250px;--image-set-mode-min-size:155px;--product-card-set-mode-max-width:300px;--source-card-set-mode-max-width:500px;--filter-blur-none:0px;--filter-blur-100:8px;--filter-blur-150:12px;--filter-blur-200:16px;--color-bg-base:#ffffff;--color-bg-inverse:#161616;--color-border-00:#ffffff;--color-border-01:#f4f4f4;--color-border-02:#e0e0e0;--color-border-03:#c6c6c6;--color-border-inverse-00:#161616;--color-border-inverse-01:#393939;--color-field-01:#ffffff;--color-field-02:#f4f4f4;--color-icon-primary:#161616;--color-icon-secondary:#525252;--color-icon-helper:#8d8d8d;--color-icon-on-color:#ffffff;--color-icon-inverse:#ffffff;--color-icon-disabled:#16161640;--color-text-primary:#161616;--color-text-secondary:#525252;--color-text-helper:#8d8d8d;--color-text-placeholder:#a8a8a8;--color-text-on-color:#ffffff;--color-text-inverse:#ffffff;--color-text-disabled:#16161640;--button-bg-color-primary:#000000;--button-bg-color-primary-hover:#161616;--button-bg-color-primary-active:#1e1e1e;--button-bg-color-secondary:#f4f4f4;--button-bg-color-secondary-hover:#e0e0e0;--button-bg-color-secondary-active:#c6c6c6;--button-bg-color-ghost-hover:#f4f4f4;--button-bg-color-ghost-active:#eaeaea;--button-bg-color-frosted:#6f6f6f66;--button-bg-color-frosted-hover:#6f6f6f80;--button-bg-color-frosted-active:#6f6f6f99;--button-bg-color-disabled:#e0e0e0;--surface-bg-color-01:#f4f4f4;--surface-bg-color-01-hover:#eaeaea;--surface-bg-color-01-active:#e0e0e0;--surface-bg-color-02:#ffffff;--surface-bg-color-inverse:#262626;--surface-bg-color-inverse-hover:#303030;--surface-bg-color-inverse-active:#393939;--surface-bg-color-disabled:#e0e0e0;--chip-bg-color-primary:#161616;--chip-bg-color-primary-hover:#1e1e1e;--chip-bg-color-primary-active:#262626;--chip-bg-color-subtle:#f4f4f4;--chip-bg-color-subtle-hover:#eaeaea;--chip-bg-color-subtle-active:#e0e0e0;--chip-bg-color-outline-hover:#f4f4f4;--chip-bg-color-outline-active:#eaeaea;--label-bg-color-accent:#ff3944;}:host{width:280px;background:#f4f4f4;border-radius:8px;display:grid;grid-gap:20px;padding:24px;text-align:center;justify-items:center;align-self:center;justify-self:center;font-family:var(--font-family, var(--font-family-base))}::slotted(svg){display:grid;align-self:center}::slotted(h4){margin:unset;font-weight:600;font-size:18px;line-height:24px}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;background:var(--color-primary, var(--button-bg-color-primary));border-radius:var(--border-radius-50);padding:var(--spacing-100);font-size:var(--font-size-body);color:var(--color-text-inverse);font-family:var(--font-family, var(--font-family-base))}::slotted(button:hover){background:var(--button-bg-color-primary-hover)}@media (max-width: 480px){:host{width:260px}}";
|
|
4
4
|
|
|
5
5
|
const VviinnError = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-abf408d8.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-d5ab83a6.js';
|
|
3
3
|
|
|
4
4
|
const SimilarProductsIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
5
5
|
h("path", { d: "M4 16V15H2V16C2 19.31 4.69 22 8 22H9V20H8C5.79 20 4 18.21 4 16Z", fill: "#161616" }),
|