@bridgeline-digital/hawksearch-handlebars-ui 6.3.3 → 6.3.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/changelog.md +366 -359
- package/dist/hawksearch-handlebars-ui.cjs +2 -2
- package/dist/hawksearch-handlebars-ui.js +463 -439
- package/dist/hawksearch-handlebars-ui.min.js +945 -945
- package/dist/hawksearch-handlebars-ui.umd.cjs +2 -2
- package/docs/assets/custom.css +25 -25
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @bridgeline-digital/hawksearch-handlebars-ui
|
|
3
3
|
*
|
|
4
|
-
* version: v6.3.
|
|
4
|
+
* version: v6.3.4
|
|
5
5
|
*
|
|
6
6
|
* description: The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.
|
|
7
7
|
*
|
|
@@ -6020,7 +6020,7 @@ class BaseContentComponent extends BaseComponent {
|
|
|
6020
6020
|
this.bindFromEvent = false;
|
|
6021
6021
|
}
|
|
6022
6022
|
}
|
|
6023
|
-
const defaultHtml$I = '<div class="custom-content">\n {{html content}}\n</div>';
|
|
6023
|
+
const defaultHtml$I = '<div class="custom-content">\r\n {{html content}}\r\n</div>';
|
|
6024
6024
|
class CustomContentComponent extends BaseContentComponent {
|
|
6025
6025
|
constructor() {
|
|
6026
6026
|
super(...arguments);
|
|
@@ -6036,7 +6036,7 @@ class CustomContentComponent extends BaseContentComponent {
|
|
|
6036
6036
|
};
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
|
-
const defaultHtml$H = '<div class="row featured-items-content">\n {{#each items}}\n {{#if (or (eq @root.zone "Top") (eq @root.zone "Top2") (eq @root.zone "Bottom") (eq @root.zone "Bottom2"))}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{/if}}\n {{else}}\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n {{/if}}\n {{/each}}\n</div>';
|
|
6039
|
+
const defaultHtml$H = '<div class="row featured-items-content">\r\n {{#each items}}\r\n {{#if (or (eq @root.zone "Top") (eq @root.zone "Top2") (eq @root.zone "Bottom") (eq @root.zone "Bottom2"))}}\r\n {{#if (eq type "content")}}\r\n <div class="column column--12">\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n </div>\r\n {{else}}\r\n <div class="column column--12 column-sm--6 column-lg--4">\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n </div>\r\n {{/if}}\r\n {{else}}\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n {{/if}}\r\n {{/each}}\r\n</div>';
|
|
6040
6040
|
class FeaturedItemsContentComponent extends BaseContentComponent {
|
|
6041
6041
|
constructor() {
|
|
6042
6042
|
super(...arguments);
|
|
@@ -6062,7 +6062,7 @@ class FeaturedItemsContentComponent extends BaseContentComponent {
|
|
|
6062
6062
|
}
|
|
6063
6063
|
}
|
|
6064
6064
|
const placeholderUrl = "data:image/png;base64,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";
|
|
6065
|
-
const defaultHtml$G = '<div class="featured-items-content__item featured-items-content__item--{{type}}">\n {{#if pinned}}\n <span class="featured-items-content__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (eq type "product")}}\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="featured-items-content__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="featured-items-content__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="featured-items-content__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__item__price__original">{{currency price}}</span>\n <span class="featured-items-content__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="featured-items-content__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n {{else}}\n <div class="row">\n {{#if imageUrl}}\n <div class="column column--12 column-sm--4">\n <a hawksearch-link href="{{url}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n </div>\n {{/if}}\n <div class="column column--12 column-sm--8 flex-align-self-sm-center">\n <div class="featured-items-content__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if description}}\n <p>{{description}}</p>\n {{/if}}\n </div>\n </div>\n {{/if}}\n</div>';
|
|
6065
|
+
const defaultHtml$G = '<div class="featured-items-content__item featured-items-content__item--{{type}}">\r\n {{#if pinned}}\r\n <span class="featured-items-content__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (eq type "product")}}\r\n {{#if (lt salePrice price)}}\r\n <span class="featured-items-content__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="featured-items-content__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="featured-items-content__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if rating}}\r\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\r\n {{/if}}\r\n {{#unless (eq price undefined)}}\r\n <div class="featured-items-content__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="featured-items-content__item__price__original">{{currency price}}</span>\r\n <span class="featured-items-content__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="featured-items-content__item__price-__current" itemprop="price">{{currency price}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n <hawksearch-variant-selector></hawksearch-variant-selector>\r\n {{else}}\r\n <div class="row">\r\n {{#if imageUrl}}\r\n <div class="column column--12 column-sm--4">\r\n <a hawksearch-link href="{{url}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n </div>\r\n {{/if}}\r\n <div class="column column--12 column-sm--8 flex-align-self-sm-center">\r\n <div class="featured-items-content__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if description}}\r\n <p>{{description}}</p>\r\n {{/if}}\r\n </div>\r\n </div>\r\n {{/if}}\r\n</div>';
|
|
6066
6066
|
class FeaturedItemsContentItemComponent extends BaseComponent {
|
|
6067
6067
|
constructor() {
|
|
6068
6068
|
super(...arguments);
|
|
@@ -6127,7 +6127,7 @@ class FeaturedItemsContentItemComponent extends BaseComponent {
|
|
|
6127
6127
|
});
|
|
6128
6128
|
}
|
|
6129
6129
|
}
|
|
6130
|
-
const defaultHtml$F = '<div class="image-content">\n {{#if link}}\n <a hawksearch-link href="{{link.url}}" target="{{link.target}}">\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n </a>\n {{else}}\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n {{/if}}\n</div>';
|
|
6130
|
+
const defaultHtml$F = '<div class="image-content">\r\n {{#if link}}\r\n <a hawksearch-link href="{{link.url}}" target="{{link.target}}">\r\n <img\r\n src="{{image.url}}"\r\n class="image-content__image"\r\n height="{{image.height}}"\r\n width="{{image.width}}"\r\n alt="{{image.altText}}"\r\n title="{{image.title}}"\r\n />\r\n </a>\r\n {{else}}\r\n <img\r\n src="{{image.url}}"\r\n class="image-content__image"\r\n height="{{image.height}}"\r\n width="{{image.width}}"\r\n alt="{{image.altText}}"\r\n title="{{image.title}}"\r\n />\r\n {{/if}}\r\n</div>';
|
|
6131
6131
|
class ImageContentComponent extends BaseContentComponent {
|
|
6132
6132
|
constructor() {
|
|
6133
6133
|
super(...arguments);
|
|
@@ -6152,7 +6152,7 @@ class ImageContentComponent extends BaseContentComponent {
|
|
|
6152
6152
|
HawkSearch.services.tracking.trackBannerImpression(this.data.id, this.data.campaignId);
|
|
6153
6153
|
}
|
|
6154
6154
|
}
|
|
6155
|
-
const defaultHtml$E = '<div class="popular-queries-content">\n {{#each items}}\n <a hawksearch-query="{{query}}" class="popular-queries-content__item popular-queries-content__item--{{weight}}">{{query}}</a>\n {{/each}}\n</div>';
|
|
6155
|
+
const defaultHtml$E = '<div class="popular-queries-content">\r\n {{#each items}}\r\n <a hawksearch-query="{{query}}" class="popular-queries-content__item popular-queries-content__item--{{weight}}">{{query}}</a>\r\n {{/each}}\r\n</div>';
|
|
6156
6156
|
class PopularQueriesContentComponent extends BaseContentComponent {
|
|
6157
6157
|
constructor() {
|
|
6158
6158
|
super(...arguments);
|
|
@@ -6182,7 +6182,7 @@ class PopularQueriesContentComponent extends BaseContentComponent {
|
|
|
6182
6182
|
});
|
|
6183
6183
|
}
|
|
6184
6184
|
}
|
|
6185
|
-
const defaultHtml$D = '<div class="content-zone">\n {{#each items}}\n {{#if (eq type "custom")}}\n <hawksearch-custom-content index="{{@index}}"></hawksearch-custom-content>\n {{/if}}\n {{#if (eq type "featured-items")}}\n <hawksearch-featured-items-content index="{{@index}}"></hawksearch-featured-items-content>\n {{/if}}\n {{#if (eq type "image")}}\n <hawksearch-image-content index="{{@index}}"></hawksearch-image-content>\n {{/if}}\n {{#if (eq type "popular-queries")}}\n <hawksearch-popular-queries-content index="{{@index}}"></hawksearch-popular-queries-content>\n {{/if}}\n {{/each}}\n</div>';
|
|
6185
|
+
const defaultHtml$D = '<div class="content-zone">\r\n {{#each items}}\r\n {{#if (eq type "custom")}}\r\n <hawksearch-custom-content index="{{@index}}"></hawksearch-custom-content>\r\n {{/if}}\r\n {{#if (eq type "featured-items")}}\r\n <hawksearch-featured-items-content index="{{@index}}"></hawksearch-featured-items-content>\r\n {{/if}}\r\n {{#if (eq type "image")}}\r\n <hawksearch-image-content index="{{@index}}"></hawksearch-image-content>\r\n {{/if}}\r\n {{#if (eq type "popular-queries")}}\r\n <hawksearch-popular-queries-content index="{{@index}}"></hawksearch-popular-queries-content>\r\n {{/if}}\r\n {{/each}}\r\n</div>';
|
|
6186
6186
|
class ContentZoneComponent extends BaseComponent {
|
|
6187
6187
|
constructor() {
|
|
6188
6188
|
super(...arguments);
|
|
@@ -6324,84 +6324,84 @@ function formatNumber(value, decimals = 2) {
|
|
|
6324
6324
|
function isQueryBase64Image(query) {
|
|
6325
6325
|
return !!query && query.includes("data:image/");
|
|
6326
6326
|
}
|
|
6327
|
-
const defaultHtml$C = `<div class="date-picker"
|
|
6328
|
-
<input type="text" value="{{value}}" hawksearch-input readonly class="date-picker__input" aria-label="{{strings.label}}"
|
|
6329
|
-
{{#if modalVisible}}
|
|
6330
|
-
<div hawksearch-modal class="date-picker__modal"
|
|
6331
|
-
{{#if monthSelectorVisible}}
|
|
6332
|
-
<div class="date-picker__modal__header"
|
|
6333
|
-
<span class="date-picker__modal__header__month">{{strings.selectMonth}}</span
|
|
6334
|
-
</div
|
|
6335
|
-
<div class="row"
|
|
6336
|
-
<div class="column column--12"
|
|
6337
|
-
<select hawksearch-month
|
|
6338
|
-
{{#each months}}
|
|
6339
|
-
{{#if (eq this @root.currentMonth)}}
|
|
6340
|
-
<option value="{{@index}}" selected>{{this}}</option
|
|
6341
|
-
{{else}}
|
|
6342
|
-
<option value="{{@index}}">{{this}}</option
|
|
6343
|
-
{{/if}}
|
|
6344
|
-
{{/each}}
|
|
6345
|
-
</select
|
|
6346
|
-
</div
|
|
6347
|
-
<div class="column column--12"
|
|
6348
|
-
<select hawksearch-year
|
|
6349
|
-
{{#each years}}
|
|
6350
|
-
{{#if (eq this @root.currentYear)}}
|
|
6351
|
-
<option value="{{this}}" selected>{{this}}</option
|
|
6352
|
-
{{else}}
|
|
6353
|
-
<option value="{{this}}">{{this}}</option
|
|
6354
|
-
{{/if}}
|
|
6355
|
-
{{/each}}
|
|
6356
|
-
</select
|
|
6357
|
-
</div
|
|
6358
|
-
<div class="column column--12"
|
|
6359
|
-
<button hawksearch-select-month class="button button--full-width">{{strings.viewCalendar}}</button
|
|
6360
|
-
</div
|
|
6361
|
-
</div
|
|
6362
|
-
{{else}}
|
|
6363
|
-
<div class="date-picker__modal__header"
|
|
6364
|
-
<a hawksearch-previous class="date-picker__modal__header__previous" title="{{strings.previous}}"
|
|
6365
|
-
<hawksearch-icon name="chevron-left"></hawksearch-icon
|
|
6366
|
-
</a
|
|
6367
|
-
<a hawksearch-month-selector class="date-picker__modal__header__month">{{strings.heading}}</a
|
|
6368
|
-
<a hawksearch-next class="date-picker__modal__header__next" title="{{strings.next}}"
|
|
6369
|
-
<hawksearch-icon name="chevron-right"></hawksearch-icon
|
|
6370
|
-
</a
|
|
6371
|
-
</div
|
|
6372
|
-
<table class="date-picker__calendar" cellspacing="0" cellpadding="0"
|
|
6373
|
-
<thead
|
|
6374
|
-
<tr
|
|
6375
|
-
<th scope="col">{{dayAbbreviation 0}}</th
|
|
6376
|
-
<th scope="col">{{dayAbbreviation 1}}</th
|
|
6377
|
-
<th scope="col">{{dayAbbreviation 2}}</th
|
|
6378
|
-
<th scope="col">{{dayAbbreviation 3}}</th
|
|
6379
|
-
<th scope="col">{{dayAbbreviation 4}}</th
|
|
6380
|
-
<th scope="col">{{dayAbbreviation 5}}</th
|
|
6381
|
-
<th scope="col">{{dayAbbreviation 6}}</th
|
|
6382
|
-
</tr
|
|
6383
|
-
</thead
|
|
6384
|
-
<tbody
|
|
6385
|
-
{{#each weeks}}
|
|
6386
|
-
<tr
|
|
6387
|
-
{{#each this}}
|
|
6388
|
-
<td
|
|
6389
|
-
hawksearch-date="{{value}}"
|
|
6390
|
-
class="date-picker__calendar__day
|
|
6391
|
-
{{attribute ' date-picker__calendar__day--alternate' (eq currentMonth false)}}
|
|
6392
|
-
{{attribute ' date-picker__calendar__day--selected' selected}}
|
|
6393
|
-
{{attribute ' date-picker__calendar__day--disabled' (eq enabled false)}}"
|
|
6394
|
-
|
|
6395
|
-
<span>{{dayOfMonth date}}</span
|
|
6396
|
-
</td
|
|
6397
|
-
{{/each}}
|
|
6398
|
-
</tr
|
|
6399
|
-
{{/each}}
|
|
6400
|
-
</tbody
|
|
6401
|
-
</table
|
|
6402
|
-
{{/if}}
|
|
6403
|
-
</div
|
|
6404
|
-
{{/if}}
|
|
6327
|
+
const defaultHtml$C = `<div class="date-picker">\r
|
|
6328
|
+
<input type="text" value="{{value}}" hawksearch-input readonly class="date-picker__input" aria-label="{{strings.label}}" />\r
|
|
6329
|
+
{{#if modalVisible}}\r
|
|
6330
|
+
<div hawksearch-modal class="date-picker__modal">\r
|
|
6331
|
+
{{#if monthSelectorVisible}}\r
|
|
6332
|
+
<div class="date-picker__modal__header">\r
|
|
6333
|
+
<span class="date-picker__modal__header__month">{{strings.selectMonth}}</span>\r
|
|
6334
|
+
</div>\r
|
|
6335
|
+
<div class="row">\r
|
|
6336
|
+
<div class="column column--12">\r
|
|
6337
|
+
<select hawksearch-month>\r
|
|
6338
|
+
{{#each months}}\r
|
|
6339
|
+
{{#if (eq this @root.currentMonth)}}\r
|
|
6340
|
+
<option value="{{@index}}" selected>{{this}}</option>\r
|
|
6341
|
+
{{else}}\r
|
|
6342
|
+
<option value="{{@index}}">{{this}}</option>\r
|
|
6343
|
+
{{/if}}\r
|
|
6344
|
+
{{/each}}\r
|
|
6345
|
+
</select>\r
|
|
6346
|
+
</div>\r
|
|
6347
|
+
<div class="column column--12">\r
|
|
6348
|
+
<select hawksearch-year>\r
|
|
6349
|
+
{{#each years}}\r
|
|
6350
|
+
{{#if (eq this @root.currentYear)}}\r
|
|
6351
|
+
<option value="{{this}}" selected>{{this}}</option>\r
|
|
6352
|
+
{{else}}\r
|
|
6353
|
+
<option value="{{this}}">{{this}}</option>\r
|
|
6354
|
+
{{/if}}\r
|
|
6355
|
+
{{/each}}\r
|
|
6356
|
+
</select>\r
|
|
6357
|
+
</div>\r
|
|
6358
|
+
<div class="column column--12">\r
|
|
6359
|
+
<button hawksearch-select-month class="button button--full-width">{{strings.viewCalendar}}</button>\r
|
|
6360
|
+
</div>\r
|
|
6361
|
+
</div>\r
|
|
6362
|
+
{{else}}\r
|
|
6363
|
+
<div class="date-picker__modal__header">\r
|
|
6364
|
+
<a hawksearch-previous class="date-picker__modal__header__previous" title="{{strings.previous}}">\r
|
|
6365
|
+
<hawksearch-icon name="chevron-left"></hawksearch-icon>\r
|
|
6366
|
+
</a>\r
|
|
6367
|
+
<a hawksearch-month-selector class="date-picker__modal__header__month">{{strings.heading}}</a>\r
|
|
6368
|
+
<a hawksearch-next class="date-picker__modal__header__next" title="{{strings.next}}">\r
|
|
6369
|
+
<hawksearch-icon name="chevron-right"></hawksearch-icon>\r
|
|
6370
|
+
</a>\r
|
|
6371
|
+
</div>\r
|
|
6372
|
+
<table class="date-picker__calendar" cellspacing="0" cellpadding="0">\r
|
|
6373
|
+
<thead>\r
|
|
6374
|
+
<tr>\r
|
|
6375
|
+
<th scope="col">{{dayAbbreviation 0}}</th>\r
|
|
6376
|
+
<th scope="col">{{dayAbbreviation 1}}</th>\r
|
|
6377
|
+
<th scope="col">{{dayAbbreviation 2}}</th>\r
|
|
6378
|
+
<th scope="col">{{dayAbbreviation 3}}</th>\r
|
|
6379
|
+
<th scope="col">{{dayAbbreviation 4}}</th>\r
|
|
6380
|
+
<th scope="col">{{dayAbbreviation 5}}</th>\r
|
|
6381
|
+
<th scope="col">{{dayAbbreviation 6}}</th>\r
|
|
6382
|
+
</tr>\r
|
|
6383
|
+
</thead>\r
|
|
6384
|
+
<tbody>\r
|
|
6385
|
+
{{#each weeks}}\r
|
|
6386
|
+
<tr>\r
|
|
6387
|
+
{{#each this}}\r
|
|
6388
|
+
<td\r
|
|
6389
|
+
hawksearch-date="{{value}}"\r
|
|
6390
|
+
class="date-picker__calendar__day\r
|
|
6391
|
+
{{attribute ' date-picker__calendar__day--alternate' (eq currentMonth false)}}\r
|
|
6392
|
+
{{attribute ' date-picker__calendar__day--selected' selected}}\r
|
|
6393
|
+
{{attribute ' date-picker__calendar__day--disabled' (eq enabled false)}}"\r
|
|
6394
|
+
>\r
|
|
6395
|
+
<span>{{dayOfMonth date}}</span>\r
|
|
6396
|
+
</td>\r
|
|
6397
|
+
{{/each}}\r
|
|
6398
|
+
</tr>\r
|
|
6399
|
+
{{/each}}\r
|
|
6400
|
+
</tbody>\r
|
|
6401
|
+
</table>\r
|
|
6402
|
+
{{/if}}\r
|
|
6403
|
+
</div>\r
|
|
6404
|
+
{{/if}}\r
|
|
6405
6405
|
</div>`;
|
|
6406
6406
|
class DatePickerComponent extends BaseComponent {
|
|
6407
6407
|
constructor() {
|
|
@@ -6615,7 +6615,7 @@ class DatePickerComponent extends BaseComponent {
|
|
|
6615
6615
|
}
|
|
6616
6616
|
}
|
|
6617
6617
|
const iconsSvg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs><symbol id="chevron-back" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.703 5.331a1 1 0 0 1 .014 1.414l-3.303 3.371 3.289 3.222a1 1 0 0 1-1.4 1.428L4.3 10.845a1 1 0 0 1-.014-1.414l4.003-4.085a1 1 0 0 1 1.414-.015Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.817 5.331a1 1 0 0 1 .015 1.414l-3.304 3.371 3.29 3.222a1 1 0 0 1-1.4 1.428l-4.004-3.921A1 1 0 0 1 9.4 9.43l4.003-4.085a1 1 0 0 1 1.414-.015Z"/></symbol><symbol id="chevron-down" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.838 10.111a1 1 0 0 1 1.415 0L12 14.858l4.747-4.747a1 1 0 1 1 1.415 1.414l-5.455 5.455a1 1 0 0 1-1.414 0l-5.455-5.455a1 1 0 0 1 0-1.414Z"/></symbol><symbol id="chevron-forward" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.46 14.766a1 1 0 0 1-.014-1.414l3.303-3.37L9.46 6.76a1 1 0 0 1 1.4-1.429l4.003 3.922a1 1 0 0 1 .014 1.414l-4.003 4.085a1 1 0 0 1-1.414.014Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.346 14.766a1 1 0 0 1-.015-1.414l3.304-3.37-3.29-3.222a1 1 0 1 1 1.4-1.429L9.75 9.253a1 1 0 0 1 .014 1.414L5.76 14.752a1 1 0 0 1-1.414.014Z"/></symbol><symbol id="chevron-left" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.69 18.224a1 1 0 0 1-1.414-.034l-5-5.25a1 1 0 0 1 0-1.38l5-5.25a1 1 0 1 1 1.448 1.38l-4.343 4.56 4.343 4.56a1 1 0 0 1-.034 1.414Z"/></symbol><symbol id="chevron-right" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.31 18.224a1 1 0 0 1-.034-1.414l4.343-4.56-4.343-4.56a1 1 0 0 1 1.448-1.38l5 5.25a1 1 0 0 1 0 1.38l-5 5.25a1 1 0 0 1-1.414.034Z"/></symbol><symbol id="chevron-up" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.156 16.531a1 1 0 0 1-1.414-.012L12 11.7l-4.742 4.82a1 1 0 1 1-1.425-1.402l5.454-5.546a1 1 0 0 1 1.426 0l5.455 5.546a1 1 0 0 1-.012 1.414Z"/></symbol><symbol id="cross" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m17.29 3.922-1.178-1.178-6.077 6.078-6.078-6.078-1.179 1.178L8.856 10l-6.078 6.078 1.18 1.178 6.077-6.078 6.077 6.078 1.179-1.178L11.213 10l6.078-6.078Z"/></symbol><symbol id="drop-image" viewBox="0 0 100 100"><path d="M55.875 25.375H52.75v9h3.125v-9Zm0-5.375v-1.125c0-4.125-3.375-7.5-7.5-7.5H47.25V14.5h1.125c2.375 0 4.375 2 4.375 4.375V20h3.125Zm-14 39.875h-9V63h9v-3.125Zm-14.5 0h-9V63h9v-3.125Zm-19.875-20H4.375v9H7.5v-9Zm0-14.5H4.375v9H7.5v-9ZM11.875 63H13v-3.125h-1.125c-2.375 0-4.375-2-4.375-4.375v-1.125H4.375V55.5c0 4.125 3.375 7.5 7.5 7.5Zm0-48.5H13v-3.125h-1.125c-4.125 0-7.5 3.375-7.5 7.5V20H7.5v-1.125c0-2.375 2-4.375 4.375-4.375Zm15.5-3.125h-9V14.5h9v-3.125Zm14.5 0h-9V14.5h9v-3.125ZM36.625 36.5c.875 0 1.5-.625 1.5-1.5 0-.5-.25-1-.625-1.25L31.25 29c-.5-.5-1.375-.5-1.875 0l-6.25 4.75c-.625.5-.75 1.5-.25 2.125s1.5.75 2.125.25l3.875-2.75v11.25c0 .875.625 1.5 1.5 1.625h.25c.75-.125 1.375-.75 1.375-1.5V33.5l3.875 2.75s.375.25.75.25Zm52.75 1.5H51.25c-1.625 0-3.25.625-4.375 1.875-1.25 1-1.875 2.625-1.875 4.25V82.25c0 1.625.625 3.25 1.875 4.375C48 87.75 49.625 88.5 51.25 88.5h38.125c1.625 0 3.25-.625 4.375-1.875s1.875-2.75 1.875-4.375V44.125c0-1.625-.625-3.25-1.875-4.375S91.125 38 89.375 38Zm3.375 44.375a3.415 3.415 0 0 1-3.375 3.375H51.25a3.415 3.415 0 0 1-3.375-3.375v-6.5l5.75-5.75 6.125 6.125c.125.125.25.25.5.375.5.25 1.125.125 1.625-.375L77.5 60.5l15.25 15.25v6.625Zm0-10.75L78.5 57.5c-.125-.125-.25-.25-.5-.375a1.734 1.734 0 0 0-1.125 0c-.125.125-.375.125-.5.375L60.75 73.125 54.625 67c-.25-.25-.625-.375-1-.375s-.75.125-1 .375l-4.75 4.75v-27.5a3.415 3.415 0 0 1 3.375-3.375h38.125a3.415 3.415 0 0 1 3.375 3.375v27.375Z"/><path d="M64.625 54.125c.125-.875-.125-1.75-.625-2.5s-1.25-1.25-2.125-1.5C61.5 50 61.125 50 60.75 50c-.5 0-1 .125-1.5.25-.875.375-1.5 1-1.875 1.75s-.5 1.75-.375 2.5c.125.875.625 1.625 1.375 2.25.625.5 1.5.875 2.375.875 1 0 2-.375 2.75-1.125.625-.75 1-1.5 1.125-2.375Z"/></symbol><symbol id="help" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.333c-4.595 0-8.333-3.737-8.333-8.333 0-4.594 3.738-8.333 8.333-8.333 4.595 0 8.333 3.738 8.333 8.333 0 4.596-3.738 8.333-8.333 8.333Zm0-15A6.674 6.674 0 0 0 3.333 10 6.674 6.674 0 0 0 10 16.667 6.674 6.674 0 0 0 16.666 10 6.674 6.674 0 0 0 10 3.333Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.833 12.5H9.166V10H10a1.668 1.668 0 0 0 0-3.333c-.92 0-1.667.746-1.667 1.666H6.666A3.338 3.338 0 0 1 10 5a3.338 3.338 0 0 1 3.333 3.333 3.343 3.343 0 0 1-2.5 3.23v.937Zm-.097.93a1.042 1.042 0 1 1-1.473 1.473 1.042 1.042 0 0 1 1.473-1.473Z"/></symbol><symbol id="image" viewBox="0 0 20 20"><path d="M17.27 20H2.727A2.726 2.726 0 0 1 0 17.273V2.727A2.728 2.728 0 0 1 2.727 0H17.27a2.726 2.726 0 0 1 2.727 2.727v14.546A2.728 2.728 0 0 1 17.27 20ZM2.727 1.818a.909.909 0 0 0-.909.91v14.545a.91.91 0 0 0 .91.909H17.27a.91.91 0 0 0 .91-.91V2.728a.909.909 0 0 0-.91-.909H2.727Z"/><path d="M.91 15.455A.91.91 0 0 1 .269 13.9l2.727-2.727a.909.909 0 0 1 1.281.004l2.086 2.082 5.722-5.718a.908.908 0 0 1 1.286 0l6.363 6.364a.91.91 0 0 1-1.287 1.286l-5.721-5.723-5.722 5.719a.909.909 0 0 1-1.286 0l-2.082-2.082L1.55 15.19c-.17.17-.4.264-.64.264Zm5.453-7.273a1.818 1.818 0 1 1 .003-3.636 1.818 1.818 0 0 1-.003 3.636Z"/></symbol><symbol id="message" viewBox="0 0 20 21"><path fill-rule="evenodd" d="M14.84 7.946H5.01a1 1 0 0 1-.998-.998 1 1 0 0 1 .998-.998h9.83a1 1 0 0 1 .998.998 1 1 0 0 1-.998.998Zm-6.407 3.992H5a1 1 0 0 1-.998-.998A1 1 0 0 1 5 9.942h3.433a1 1 0 0 1 .998.998 1 1 0 0 1-.998.998Z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M2.016.96A2.002 2.002 0 0 0 .02 2.956v11.976c0 1.098.898 1.996 1.996 1.996h8.094c-.21-.41-.34-.878-.34-1.377 0-.21.02-.42.07-.62H2.016V2.957h15.968v11.976h-2.216c.04.2.07.409.07.619 0 .499-.13.958-.339 1.377h2.495a2.002 2.002 0 0 0 1.996-1.996V2.956A2.002 2.002 0 0 0 17.994.96H2.016Z" clip-rule="evenodd"/><path d="m17.545 19.413-1.367-1.677a3.85 3.85 0 0 0 .778-2.315 3.897 3.897 0 0 0-3.892-3.892 3.897 3.897 0 0 0-3.892 3.892 3.897 3.897 0 0 0 3.892 3.892 3.89 3.89 0 0 0 1.647-.38l1.367 1.677c.18.22.449.35.738.35a.95.95 0 0 0 .738-1.547h-.009Zm-2.266-3.992a2.217 2.217 0 0 1-2.215 2.215 2.21 2.21 0 0 1-2.216-2.215 2.21 2.21 0 0 1 2.216-2.216 2.21 2.21 0 0 1 2.216 2.216Z"/></symbol><symbol id="minus" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.833 10.833H4.167V9.167h11.666v1.666Z"/></symbol><symbol id="plus" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><path d="M16 9h-5V4c0-.6-.4-1-1-1s-1 .4-1 1v5H4c-.6 0-1 .4-1 1s.4 1 1 1h5v5c0 .6.4 1 1 1s1-.4 1-1v-5h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></symbol><symbol id="reset" viewBox="0 0 16 16"><path d="M14.923 3.988A7.977 7.977 0 0 0 10.459.39a7.98 7.98 0 0 0-5.73.32 8.026 8.026 0 0 0-2.77 2.06V1.765a.976.976 0 0 0-1.951 0V5.86h4.097a.976.976 0 0 0 0-1.95H3.56a6.029 6.029 0 0 1 4.41-1.952h.078a6.003 6.003 0 0 1 4.16 1.694l.187.187a5.99 5.99 0 0 1 1.663 4.082v.187a6.022 6.022 0 0 1-1.647 4.05c-.078.087-.164.165-.25.25a6.042 6.042 0 0 1-4.059 1.647H7.93a6.039 6.039 0 0 1-5.682-4.214C2.1 9.374 1.623 9.1 1.116 9.21a.989.989 0 0 0-.64.46.946.946 0 0 0-.086.78 7.944 7.944 0 0 0 1.678 2.912A7.965 7.965 0 0 0 8.016 16a7.95 7.95 0 0 0 4.706-1.538 7.996 7.996 0 0 0 3.114-4.815 8.026 8.026 0 0 0-.905-5.667l-.008.008Z"/></symbol><symbol id="search" viewBox="0 0 20 20"><g clip-path="url(#a)"><path fill-rule="evenodd" d="m18.678 16.322-3.299-3.3a7.85 7.85 0 0 0 1.265-4.284 7.85 7.85 0 0 0-2.316-5.589A7.854 7.854 0 0 0 8.738.833 7.853 7.853 0 0 0 3.15 3.148a7.855 7.855 0 0 0-2.316 5.59c0 2.112.823 4.098 2.316 5.59a7.85 7.85 0 0 0 5.59 2.315 7.84 7.84 0 0 0 4.283-1.264l3.3 3.3c.315.314.733.488 1.178.488.445 0 .863-.174 1.178-.489.315-.314.489-.732.489-1.178 0-.446-.174-.864-.489-1.178Zm-14.35-3.174A6.193 6.193 0 0 1 2.5 8.738a6.2 6.2 0 0 1 1.827-4.41A6.194 6.194 0 0 1 8.738 2.5c1.667 0 3.233.65 4.411 1.828a6.193 6.193 0 0 1 1.828 4.41c0 1.667-.65 3.233-1.828 4.411a6.193 6.193 0 0 1-4.41 1.828 6.19 6.19 0 0 1-4.412-1.829Z" clip-rule="evenodd"/></g></symbol><symbol id="send" viewBox="0 0 20 20"><path d="M1.635 19a.635.635 0 0 1-.595-.856l2.608-7.03a.629.629 0 0 1 .483-.403l3.985-.704-3.98-.685a.63.63 0 0 1-.488-.405L1.04 1.853a.636.636 0 0 1 .88-.786l16.73 8.367a.634.634 0 0 1 0 1.132L1.918 18.933a.634.634 0 0 1-.282.067Z"/></symbol><symbol id="sparkles" viewBox="0 0 20 20"><path d="m12.263 16.353-.855 2.646-.855-2.646a4.086 4.086 0 0 0-2.636-2.635l-2.646-.855 2.646-.855a4.086 4.086 0 0 0 2.636-2.635l.855-2.646.855 2.646a4.086 4.086 0 0 0 2.635 2.635l2.646.855-2.646.855a4.09 4.09 0 0 0-2.635 2.635ZM5.75 9.342l-.478 1.478-.477-1.478a2.047 2.047 0 0 0-1.317-1.317L2 7.545l1.478-.476A2.047 2.047 0 0 0 4.795 5.75l.477-1.478.477 1.478a2.047 2.047 0 0 0 1.318 1.32l1.478.477-1.478.477a2.053 2.053 0 0 0-1.318 1.32Zm4.313-5.151-.29.899-.29-.899a1.33 1.33 0 0 0-.856-.856l-.898-.29.898-.29a1.33 1.33 0 0 0 .857-.857L9.774 1l.29.898c.13.407.45.726.856.857l.898.29-.898.29a1.337 1.337 0 0 0-.857.856Z"/></symbol><symbol id="star-empty" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m18.333 7.7-5.991-.517L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392l5.15 3.108-1.359-5.858L18.334 7.7ZM10 12.833l-3.133 1.892.833-3.567-2.767-2.4 3.65-.316L10 5.083l1.425 3.367 3.65.317-2.767 2.4.834 3.566-3.142-1.9Z"/></symbol><symbol id="star-half" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><style>.st0{fill-rule:evenodd;clip-rule:evenodd}</style><path class="st0" d="m18.3 7.7-6-.5L10 1.7 7.7 7.2l-6 .5 4.5 3.9-1.4 5.9 5.1-3.1 5.1 3.1-1.4-5.9 4.7-3.9zM10 12.8l-3.1 1.9.8-3.6-2.8-2.3 3.7-.3L10 5.1l1.4 3.4 3.6.3-2.8 2.4.8 3.6-3-2z"/><path class="st0" d="M10 1.7 7.7 7.2l-6 .5 4.5 3.9-1.4 5.9 5.2-3.1z"/></g></symbol><symbol id="star" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m10 14.392 5.15 3.108-1.367-5.858 4.55-3.942-5.991-.508L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392Z"/></symbol><symbol id="upload" viewBox="0 0 21 20"><path fill-rule="evenodd" d="M5.825 6.67C3.422 6.762 1.5 8.72 1.5 11.119c0 2.457 2.016 4.45 4.498 4.45h1.196v-1.187H5.998c-1.82 0-3.297-1.462-3.297-3.263 0-1.8 1.477-3.263 3.297-3.263.286 0 .572.037.857.06.276-2.277 1.645-4.227 4.24-4.227 2.32 0 4.203 1.863 4.203 4.158 0 .614.03.6 0 1.36.428 0 3.001.39 3.001 2.799 0 1.311-1.075 2.376-2.4 2.376h-1.802v1.188h1.801c1.988 0 3.602-1.598 3.602-3.564 0-1.778-1.318-3.254-3.04-3.521.025-.21.038-.422.038-.638 0-2.95-2.42-5.346-5.402-5.346-2.574 0-4.73 1.785-5.271 4.17Z" clip-rule="evenodd"/><path d="m7.78 12.622-.845-.809 3.574-3.398 3.556 3.4-.848.807-2.105-2.013-.006 7.09H9.893l.007-7.094-2.12 2.017Z"/><path fill-rule="evenodd" d="M5.705 6.527c.598-2.398 2.786-4.177 5.39-4.177 3.064 0 5.553 2.462 5.553 5.496 0 .174-.008.345-.024.514 1.723.335 3.026 1.84 3.026 3.645 0 2.05-1.683 3.714-3.752 3.714h-1.95V14.23h1.95c1.244 0 2.251-.999 2.251-2.226 0-1.138-.602-1.794-1.264-2.173-.671-.383-1.395-.476-1.587-.476h-.156l.006-.156c.019-.476.014-.64.008-.85a15.228 15.228 0 0 1-.008-.504c0-2.21-1.815-4.008-4.052-4.008-1.257 0-2.207.47-2.88 1.21-.675.744-1.077 1.77-1.212 2.885l-.018.144-.144-.012-.226-.02a6.558 6.558 0 0 0-.618-.04c-1.739 0-3.147 1.397-3.147 3.113 0 1.717 1.408 3.113 3.147 3.113h1.346v1.488H5.998c-2.564 0-4.648-2.06-4.648-4.6 0-2.444 1.927-4.442 4.355-4.592Zm5.39-3.877c-2.503 0-4.598 1.736-5.124 4.054l-.026.112-.115.005c-2.323.087-4.18 1.98-4.18 4.297 0 2.372 1.947 4.3 4.348 4.3h1.046v-.887H5.998c-1.901 0-3.447-1.528-3.447-3.413 0-1.885 1.546-3.413 3.447-3.413a7.03 7.03 0 0 1 .727.048c.157-1.107.572-2.139 1.27-2.906.73-.804 1.761-1.309 3.1-1.309 2.401 0 4.353 1.93 4.353 4.308 0 .219.004.358.007.484.006.196.01.36-.002.735.332.033.975.16 1.58.507.732.418 1.416 1.162 1.416 2.433 0 1.396-1.144 2.526-2.55 2.526h-1.652v.888h1.651c1.906 0 3.452-1.532 3.452-3.414 0-1.702-1.262-3.117-2.913-3.373l-.143-.022.017-.144c.025-.203.038-.41.038-.62 0-2.866-2.353-5.196-5.253-5.196Zm-.586 5.557 3.774 3.609-1.066 1.013-1.955-1.869-.006 6.89-1.513-.002.007-6.893-1.97 1.874-1.063-1.016 3.792-3.606Zm-3.357 3.607.629.6 2.27-2.159-.008 7.294h.913l.007-7.29 2.255 2.156.63-.6-3.34-3.193-3.356 3.192Z" clip-rule="evenodd"/></symbol></svg>';
|
|
6618
|
-
const defaultHtml$B = '{{html svg}}\n<svg height="{{height}}" width="{{width}}" focusable="false" aria-hidden="true" class="icon">\n <use href="{{url}}"></use>\n</svg>';
|
|
6618
|
+
const defaultHtml$B = '{{html svg}}\r\n<svg height="{{height}}" width="{{width}}" focusable="false" aria-hidden="true" class="icon">\r\n <use href="{{url}}"></use>\r\n</svg>';
|
|
6619
6619
|
class IconComponent extends BaseComponent {
|
|
6620
6620
|
constructor() {
|
|
6621
6621
|
super(...arguments);
|
|
@@ -6652,7 +6652,7 @@ class IconComponent extends BaseComponent {
|
|
|
6652
6652
|
};
|
|
6653
6653
|
}
|
|
6654
6654
|
}
|
|
6655
|
-
const defaultHtml$A = '<div class="range-slider">\n <div class="range-slider__container">\n <div class="range-slider__bar">\n <div class="range-slider__bar__active" hawksearch-bar style="left: {{start}}%; right: {{subtract 100 end}}%;"></div>\n </div>\n <span class="range-slider__handle range-slider__handle--start" title="{{strings.start}}" hawksearch-handle="start" style="left: {{start}}%;"></span>\n <span class="range-slider__handle range-slider__handle--end" title="{{strings.end}}" hawksearch-handle="end" style="left: {{end}}%;"></span>\n </div>\n</div>';
|
|
6655
|
+
const defaultHtml$A = '<div class="range-slider">\r\n <div class="range-slider__container">\r\n <div class="range-slider__bar">\r\n <div class="range-slider__bar__active" hawksearch-bar style="left: {{start}}%; right: {{subtract 100 end}}%;"></div>\r\n </div>\r\n <span class="range-slider__handle range-slider__handle--start" title="{{strings.start}}" hawksearch-handle="start" style="left: {{start}}%;"></span>\r\n <span class="range-slider__handle range-slider__handle--end" title="{{strings.end}}" hawksearch-handle="end" style="left: {{end}}%;"></span>\r\n </div>\r\n</div>';
|
|
6656
6656
|
class RangeSliderComponent extends BaseComponent {
|
|
6657
6657
|
constructor() {
|
|
6658
6658
|
super(...arguments);
|
|
@@ -6802,7 +6802,7 @@ class RangeSliderComponent extends BaseComponent {
|
|
|
6802
6802
|
this.dispatchEvent(newEvent);
|
|
6803
6803
|
}
|
|
6804
6804
|
}
|
|
6805
|
-
const defaultHtml$z = '<div class="rating" title="{{rating}}">\n <hawksearch-icon name="{{ratingIcon rating 0}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 1}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 2}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 3}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 4}}" class="rating__icon"></hawksearch-icon>\n</div>';
|
|
6805
|
+
const defaultHtml$z = '<div class="rating" title="{{rating}}">\r\n <hawksearch-icon name="{{ratingIcon rating 0}}" class="rating__icon"></hawksearch-icon>\r\n <hawksearch-icon name="{{ratingIcon rating 1}}" class="rating__icon"></hawksearch-icon>\r\n <hawksearch-icon name="{{ratingIcon rating 2}}" class="rating__icon"></hawksearch-icon>\r\n <hawksearch-icon name="{{ratingIcon rating 3}}" class="rating__icon"></hawksearch-icon>\r\n <hawksearch-icon name="{{ratingIcon rating 4}}" class="rating__icon"></hawksearch-icon>\r\n</div>';
|
|
6806
6806
|
class RatingComponent extends BaseComponent {
|
|
6807
6807
|
constructor() {
|
|
6808
6808
|
super(...arguments);
|
|
@@ -6857,7 +6857,7 @@ class RatingComponent extends BaseComponent {
|
|
|
6857
6857
|
});
|
|
6858
6858
|
}
|
|
6859
6859
|
}
|
|
6860
|
-
const defaultHtml$y = '<span class="tooltip" hawksearch-tooltip>\n <span class="tooltip__icon">\n <hawksearch-icon name="help" class="facet__heading__tooltip"></hawksearch-icon>\n </span>\n <span class="tooltip__content" hawksearch-tooltip-content>{{text}}</span>\n</span>';
|
|
6860
|
+
const defaultHtml$y = '<span class="tooltip" hawksearch-tooltip>\r\n <span class="tooltip__icon">\r\n <hawksearch-icon name="help" class="facet__heading__tooltip"></hawksearch-icon>\r\n </span>\r\n <span class="tooltip__content" hawksearch-tooltip-content>{{text}}</span>\r\n</span>';
|
|
6861
6861
|
class TooltipComponent extends BaseComponent {
|
|
6862
6862
|
constructor() {
|
|
6863
6863
|
super(...arguments);
|
|
@@ -6933,7 +6933,7 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
|
|
|
6933
6933
|
SearchType2[SearchType2["Refinement"] = 2] = "Refinement";
|
|
6934
6934
|
return SearchType2;
|
|
6935
6935
|
})(SearchType || {});
|
|
6936
|
-
const defaultHtml$x = '{{#if customLayout}}\n {{html customLayout}}\n{{else}}\n <hawksearch-search-results mode="landing-page" url="{{url}}"></hawksearch-search-results>\n{{/if}}';
|
|
6936
|
+
const defaultHtml$x = '{{#if customLayout}}\r\n {{html customLayout}}\r\n{{else}}\r\n <hawksearch-search-results mode="landing-page" url="{{url}}"></hawksearch-search-results>\r\n{{/if}}';
|
|
6937
6937
|
class LandingPageComponent extends BaseComponent {
|
|
6938
6938
|
constructor() {
|
|
6939
6939
|
super();
|
|
@@ -6973,46 +6973,46 @@ class LandingPageComponent extends BaseComponent {
|
|
|
6973
6973
|
return output;
|
|
6974
6974
|
}
|
|
6975
6975
|
}
|
|
6976
|
-
const defaultHtml$w = `<div class="recommendations"
|
|
6977
|
-
{{#if headingEnabled}}
|
|
6978
|
-
<h2 class="heading recommendations__heading">{{title}}</h2
|
|
6979
|
-
{{/if}}
|
|
6980
|
-
<div class="recommendations__content"
|
|
6981
|
-
{{#if (and carousel buttonsEnabled)}}
|
|
6982
|
-
<a hawksearch-previous class="recommendations__button recommendations__button--previous" title="{{strings.previous}}"
|
|
6983
|
-
<hawksearch-icon name="chevron-left"></hawksearch-icon
|
|
6984
|
-
</a
|
|
6985
|
-
{{/if}}
|
|
6986
|
-
<div class="recommendations__carousel"
|
|
6987
|
-
<div hawksearch-carousel class="recommendations__list{{attribute ' recommendations__list--carousel' carousel}}" style="left: {{carouselPosition}};"
|
|
6988
|
-
{{#each items}}
|
|
6989
|
-
<div class="recommendations__carousel__item" style="width: {{@root.itemWidth}};"
|
|
6990
|
-
<hawksearch-recommendations-item widget-id="{{@root.id}}" request-id="{{@root.requestId}}"></hawksearch-recommendations-item
|
|
6991
|
-
</div
|
|
6992
|
-
{{/each}}
|
|
6993
|
-
</div
|
|
6994
|
-
{{#if (and carousel paginationEnabled)}}
|
|
6995
|
-
<div class="recommendations__pagination"
|
|
6996
|
-
{{#each paginationItems}}
|
|
6997
|
-
<span
|
|
6998
|
-
hawksearch-carousel-item="{{@index}}"
|
|
6999
|
-
class="recommendations__pagination__item{{attribute ' recommendations__pagination__item--selected' selected}}"
|
|
7000
|
-
title="{{title}}"
|
|
7001
|
-
></span
|
|
7002
|
-
{{/each}}
|
|
7003
|
-
</div
|
|
7004
|
-
{{/if}}
|
|
7005
|
-
</div
|
|
7006
|
-
{{#if (and carousel buttonsEnabled)}}
|
|
7007
|
-
<a
|
|
7008
|
-
hawksearch-next
|
|
7009
|
-
class="recommendations__button recommendations__button--next{{attribute ' recommendations__button--disabled' (eq nextEnabled false)}}"
|
|
7010
|
-
title="{{strings.next}}"
|
|
7011
|
-
|
|
7012
|
-
<hawksearch-icon name="chevron-right"></hawksearch-icon
|
|
7013
|
-
</a
|
|
7014
|
-
{{/if}}
|
|
7015
|
-
</div
|
|
6976
|
+
const defaultHtml$w = `<div class="recommendations">\r
|
|
6977
|
+
{{#if headingEnabled}}\r
|
|
6978
|
+
<h2 class="heading recommendations__heading">{{title}}</h2>\r
|
|
6979
|
+
{{/if}}\r
|
|
6980
|
+
<div class="recommendations__content">\r
|
|
6981
|
+
{{#if (and carousel buttonsEnabled)}}\r
|
|
6982
|
+
<a hawksearch-previous class="recommendations__button recommendations__button--previous" title="{{strings.previous}}">\r
|
|
6983
|
+
<hawksearch-icon name="chevron-left"></hawksearch-icon>\r
|
|
6984
|
+
</a>\r
|
|
6985
|
+
{{/if}}\r
|
|
6986
|
+
<div class="recommendations__carousel">\r
|
|
6987
|
+
<div hawksearch-carousel class="recommendations__list{{attribute ' recommendations__list--carousel' carousel}}" style="left: {{carouselPosition}};">\r
|
|
6988
|
+
{{#each items}}\r
|
|
6989
|
+
<div class="recommendations__carousel__item" style="width: {{@root.itemWidth}};">\r
|
|
6990
|
+
<hawksearch-recommendations-item widget-id="{{@root.id}}" request-id="{{@root.requestId}}"></hawksearch-recommendations-item>\r
|
|
6991
|
+
</div>\r
|
|
6992
|
+
{{/each}}\r
|
|
6993
|
+
</div>\r
|
|
6994
|
+
{{#if (and carousel paginationEnabled)}}\r
|
|
6995
|
+
<div class="recommendations__pagination">\r
|
|
6996
|
+
{{#each paginationItems}}\r
|
|
6997
|
+
<span\r
|
|
6998
|
+
hawksearch-carousel-item="{{@index}}"\r
|
|
6999
|
+
class="recommendations__pagination__item{{attribute ' recommendations__pagination__item--selected' selected}}"\r
|
|
7000
|
+
title="{{title}}"\r
|
|
7001
|
+
></span>\r
|
|
7002
|
+
{{/each}}\r
|
|
7003
|
+
</div>\r
|
|
7004
|
+
{{/if}}\r
|
|
7005
|
+
</div>\r
|
|
7006
|
+
{{#if (and carousel buttonsEnabled)}}\r
|
|
7007
|
+
<a\r
|
|
7008
|
+
hawksearch-next\r
|
|
7009
|
+
class="recommendations__button recommendations__button--next{{attribute ' recommendations__button--disabled' (eq nextEnabled false)}}"\r
|
|
7010
|
+
title="{{strings.next}}"\r
|
|
7011
|
+
>\r
|
|
7012
|
+
<hawksearch-icon name="chevron-right"></hawksearch-icon>\r
|
|
7013
|
+
</a>\r
|
|
7014
|
+
{{/if}}\r
|
|
7015
|
+
</div>\r
|
|
7016
7016
|
</div>`;
|
|
7017
7017
|
class RecommendationsComponent extends BaseComponent {
|
|
7018
7018
|
constructor() {
|
|
@@ -7257,7 +7257,7 @@ class RecommendationsComponent extends BaseComponent {
|
|
|
7257
7257
|
this.dragOrigin = void 0;
|
|
7258
7258
|
}
|
|
7259
7259
|
}
|
|
7260
|
-
const defaultHtml$v = '<div class="recommendations__item">\n {{#if pinned}}\n <span class="recommendations__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (lt salePrice price)}}\n <span class="recommendations__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="recommendations__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="recommendations__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="recommendations__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="recommendations__item__price__original">{{currency price}}</span>\n <span class="recommendations__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="recommendations__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n</div>';
|
|
7260
|
+
const defaultHtml$v = '<div class="recommendations__item">\r\n {{#if pinned}}\r\n <span class="recommendations__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (lt salePrice price)}}\r\n <span class="recommendations__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="recommendations__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="recommendations__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if rating}}\r\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\r\n {{/if}}\r\n {{#unless (eq price undefined)}}\r\n <div class="recommendations__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="recommendations__item__price__original">{{currency price}}</span>\r\n <span class="recommendations__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="recommendations__item__price-__current" itemprop="price">{{currency price}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n <hawksearch-variant-selector></hawksearch-variant-selector>\r\n</div>';
|
|
7261
7261
|
class RecommendationsItemComponent extends BaseComponent {
|
|
7262
7262
|
constructor() {
|
|
7263
7263
|
super(...arguments);
|
|
@@ -7327,7 +7327,7 @@ class RecommendationsItemComponent extends BaseComponent {
|
|
|
7327
7327
|
});
|
|
7328
7328
|
}
|
|
7329
7329
|
}
|
|
7330
|
-
const defaultHtml$u = '<div class="autocomplete">\n <div class="row">\n {{#if products.results.length}}\n <div class="column column--12 column-md--8">\n <span class="autocomplete__title autocomplete__title--products">{{products.title}}</span>\n <div class="row autocomplete__products">\n {{#each products.results}}\n <div class="column column--12 column-sm--4">\n <div class="autocomplete__product">\n <a hawksearch-product="{{id}}" href="{{url}}" class="autocomplete__product__image">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <span class="autocomplete__product__title">\n <a hawksearch-product="{{id}}" href="{{url}}">{{html title}}</a>\n </span>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="autocomplete__product__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="autocomplete__product__price__original">{{currency price}}</span>\n <span class="autocomplete__product__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="autocomplete__product__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n </div>\n </div>\n {{/each}}\n </div>\n </div>\n {{/if}}\n {{#if (or categories.results.length content.results.length queries.results.length productSuggestedQueries.results.length contentSuggestedQueries.results.length)}}\n <div class="column column--12 column-md--4">\n {{#if productSuggestedQueries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{productSuggestedQueries.title}}</span>\n <ul class="autocomplete__list">\n {{#each productSuggestedQueries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if contentSuggestedQueries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{contentSuggestedQueries.title}}</span>\n <ul class="autocomplete__list">\n {{#each contentSuggestedQueries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if categories.results.length}}\n <span class="autocomplete__title autocomplete__title--categories">{{categories.title}}</span>\n <ul class="autocomplete__list">\n {{#each categories.results}}\n <li>\n <a hawksearch-category-field="{{field}}" hawksearch-category-value="{{value}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if content.results.length}}\n <span class="autocomplete__title autocomplete__title--content">{{content.title}}</span>\n <ul class="autocomplete__list">\n {{#each content.results}}\n <li>\n <a hawksearch-content="{{id}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if queries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{queries.title}}</span>\n <ul class="autocomplete__list">\n {{#each queries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n </div>\n {{/if}}\n </div>\n <div class="autocomplete__view-all">\n <a hawksearch-view-all>{{viewAllText}}</a>\n </div>\n</div>';
|
|
7330
|
+
const defaultHtml$u = '<div class="autocomplete">\r\n <div class="row">\r\n {{#if products.results.length}}\r\n <div class="column column--12 column-md--8">\r\n <span class="autocomplete__title autocomplete__title--products">{{products.title}}</span>\r\n <div class="row autocomplete__products">\r\n {{#each products.results}}\r\n <div class="column column--12 column-sm--4">\r\n <div class="autocomplete__product">\r\n <a hawksearch-product="{{id}}" href="{{url}}" class="autocomplete__product__image">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <span class="autocomplete__product__title">\r\n <a hawksearch-product="{{id}}" href="{{url}}">{{html title}}</a>\r\n </span>\r\n {{#if rating}}\r\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\r\n {{/if}}\r\n {{#unless (eq price undefined)}}\r\n <div class="autocomplete__product__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="autocomplete__product__price__original">{{currency price}}</span>\r\n <span class="autocomplete__product__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="autocomplete__product__price-__current" itemprop="price">{{currency price}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n <hawksearch-variant-selector></hawksearch-variant-selector>\r\n </div>\r\n </div>\r\n {{/each}}\r\n </div>\r\n </div>\r\n {{/if}}\r\n {{#if (or categories.results.length content.results.length queries.results.length productSuggestedQueries.results.length contentSuggestedQueries.results.length)}}\r\n <div class="column column--12 column-md--4">\r\n {{#if productSuggestedQueries.results.length}}\r\n <span class="autocomplete__title autocomplete__title--queries">{{productSuggestedQueries.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each productSuggestedQueries.results}}\r\n <li>\r\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n {{#if contentSuggestedQueries.results.length}}\r\n <span class="autocomplete__title autocomplete__title--queries">{{contentSuggestedQueries.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each contentSuggestedQueries.results}}\r\n <li>\r\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n {{#if categories.results.length}}\r\n <span class="autocomplete__title autocomplete__title--categories">{{categories.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each categories.results}}\r\n <li>\r\n <a hawksearch-category-field="{{field}}" hawksearch-category-value="{{value}}" href="{{url}}">{{html title}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n {{#if content.results.length}}\r\n <span class="autocomplete__title autocomplete__title--content">{{content.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each content.results}}\r\n <li>\r\n <a hawksearch-content="{{id}}" href="{{url}}">{{html title}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n {{#if queries.results.length}}\r\n <span class="autocomplete__title autocomplete__title--queries">{{queries.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each queries.results}}\r\n <li>\r\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n </div>\r\n <div class="autocomplete__view-all">\r\n <a hawksearch-view-all>{{viewAllText}}</a>\r\n </div>\r\n</div>';
|
|
7331
7331
|
class AutocompleteComponent extends BaseComponent {
|
|
7332
7332
|
constructor() {
|
|
7333
7333
|
super(...arguments);
|
|
@@ -7671,62 +7671,62 @@ function decodeNested(value) {
|
|
|
7671
7671
|
function escapeRegExp(value) {
|
|
7672
7672
|
return escapeRegExp$1(value);
|
|
7673
7673
|
}
|
|
7674
|
-
const defaultHtml$t = `<div class="checkbox-list-facet" {{attribute (concat 'style="max-height: ' maxHeight 'px;"') maxHeight}}
|
|
7675
|
-
{{> facet-checkbox-list values}}
|
|
7676
|
-
{{#if showToggle}}
|
|
7677
|
-
<span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span
|
|
7678
|
-
{{/if}}
|
|
7674
|
+
const defaultHtml$t = `<div class="checkbox-list-facet" {{attribute (concat 'style="max-height: ' maxHeight 'px;"') maxHeight}}>\r
|
|
7675
|
+
{{> facet-checkbox-list values}}\r
|
|
7676
|
+
{{#if showToggle}}\r
|
|
7677
|
+
<span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r
|
|
7678
|
+
{{/if}}\r
|
|
7679
7679
|
</div>`;
|
|
7680
|
-
const checkboxListPartialHtml = `{{#if length}}
|
|
7681
|
-
<ul class="checkbox-list-facet__list"
|
|
7682
|
-
{{#each this}}
|
|
7683
|
-
{{#if visible}}
|
|
7684
|
-
<li
|
|
7685
|
-
class="checkbox-list-facet__list__item{{attribute ' checkbox-list-facet__list__item--excluded' excluded}}{{attribute
|
|
7686
|
-
' checkbox-list-facet__list__item--collapsible'
|
|
7687
|
-
hasChildren
|
|
7688
|
-
}}"
|
|
7689
|
-
|
|
7690
|
-
<div class="checkbox-list-facet__list__item__content"
|
|
7691
|
-
{{#if selected}}
|
|
7692
|
-
<input id="{{@root.id}}-{{value}}" type="checkbox" checked hawksearch-facet-value value="{{value}}"
|
|
7693
|
-
{{else}}
|
|
7694
|
-
<input id="{{@root.id}}-{{value}}" type="checkbox" hawksearch-facet-value value="{{value}}"
|
|
7695
|
-
{{/if}}
|
|
7696
|
-
<label for="{{@root.id}}-{{value}}" class="facet__value"
|
|
7697
|
-
<span class="facet__value__title checkbox-list-facet__list__item__title">{{title}}</span
|
|
7698
|
-
{{#if @root.displayCount}}
|
|
7699
|
-
<span class="facet__value__count checkbox-list-facet__list__item__count">({{count}})</span
|
|
7700
|
-
{{/if}}
|
|
7701
|
-
</label
|
|
7702
|
-
{{#if toggled}}
|
|
7703
|
-
{{> facet-checkbox-list children}}
|
|
7704
|
-
{{/if}}
|
|
7705
|
-
</div
|
|
7706
|
-
{{#if (or @root.excludeEnabled hasChildren)}}
|
|
7707
|
-
<div class="checkbox-list-facet__list__item__actions"
|
|
7708
|
-
{{#if @root.excludeEnabled}}
|
|
7709
|
-
{{#if excluded}}
|
|
7710
|
-
<span hawksearch-facet-value-include="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.include}}"
|
|
7711
|
-
<hawksearch-icon name="plus" class="facet__heading__actions__item"></hawksearch-icon
|
|
7712
|
-
</span
|
|
7713
|
-
{{else}}
|
|
7714
|
-
<span hawksearch-facet-value-exclude="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.exclude}}"
|
|
7715
|
-
<hawksearch-icon name="minus" class="facet__heading__actions__item"></hawksearch-icon
|
|
7716
|
-
</span
|
|
7717
|
-
{{/if}}
|
|
7718
|
-
{{/if}}
|
|
7719
|
-
{{#if hasChildren}}
|
|
7720
|
-
<span hawksearch-facet-value-toggle="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{if-else toggled @root.strings.collapse @root.strings.expand}}"
|
|
7721
|
-
<hawksearch-icon name="{{if-else toggled 'chevron-down' 'chevron-right'}}" class="facet__heading__toggle"></hawksearch-icon
|
|
7722
|
-
</span
|
|
7723
|
-
{{/if}}
|
|
7724
|
-
</div
|
|
7725
|
-
{{/if}}
|
|
7726
|
-
</li
|
|
7727
|
-
{{/if}}
|
|
7728
|
-
{{/each}}
|
|
7729
|
-
</ul
|
|
7680
|
+
const checkboxListPartialHtml = `{{#if length}}\r
|
|
7681
|
+
<ul class="checkbox-list-facet__list">\r
|
|
7682
|
+
{{#each this}}\r
|
|
7683
|
+
{{#if visible}}\r
|
|
7684
|
+
<li\r
|
|
7685
|
+
class="checkbox-list-facet__list__item{{attribute ' checkbox-list-facet__list__item--excluded' excluded}}{{attribute\r
|
|
7686
|
+
' checkbox-list-facet__list__item--collapsible'\r
|
|
7687
|
+
hasChildren\r
|
|
7688
|
+
}}"\r
|
|
7689
|
+
>\r
|
|
7690
|
+
<div class="checkbox-list-facet__list__item__content">\r
|
|
7691
|
+
{{#if selected}}\r
|
|
7692
|
+
<input id="{{@root.id}}-{{value}}" type="checkbox" checked hawksearch-facet-value value="{{value}}" />\r
|
|
7693
|
+
{{else}}\r
|
|
7694
|
+
<input id="{{@root.id}}-{{value}}" type="checkbox" hawksearch-facet-value value="{{value}}" />\r
|
|
7695
|
+
{{/if}}\r
|
|
7696
|
+
<label for="{{@root.id}}-{{value}}" class="facet__value">\r
|
|
7697
|
+
<span class="facet__value__title checkbox-list-facet__list__item__title">{{title}}</span>\r
|
|
7698
|
+
{{#if @root.displayCount}}\r
|
|
7699
|
+
<span class="facet__value__count checkbox-list-facet__list__item__count">({{count}})</span>\r
|
|
7700
|
+
{{/if}}\r
|
|
7701
|
+
</label>\r
|
|
7702
|
+
{{#if toggled}}\r
|
|
7703
|
+
{{> facet-checkbox-list children}}\r
|
|
7704
|
+
{{/if}}\r
|
|
7705
|
+
</div>\r
|
|
7706
|
+
{{#if (or @root.excludeEnabled hasChildren)}}\r
|
|
7707
|
+
<div class="checkbox-list-facet__list__item__actions">\r
|
|
7708
|
+
{{#if @root.excludeEnabled}}\r
|
|
7709
|
+
{{#if excluded}}\r
|
|
7710
|
+
<span hawksearch-facet-value-include="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.include}}">\r
|
|
7711
|
+
<hawksearch-icon name="plus" class="facet__heading__actions__item"></hawksearch-icon>\r
|
|
7712
|
+
</span>\r
|
|
7713
|
+
{{else}}\r
|
|
7714
|
+
<span hawksearch-facet-value-exclude="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.exclude}}">\r
|
|
7715
|
+
<hawksearch-icon name="minus" class="facet__heading__actions__item"></hawksearch-icon>\r
|
|
7716
|
+
</span>\r
|
|
7717
|
+
{{/if}}\r
|
|
7718
|
+
{{/if}}\r
|
|
7719
|
+
{{#if hasChildren}}\r
|
|
7720
|
+
<span hawksearch-facet-value-toggle="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{if-else toggled @root.strings.collapse @root.strings.expand}}">\r
|
|
7721
|
+
<hawksearch-icon name="{{if-else toggled 'chevron-down' 'chevron-right'}}" class="facet__heading__toggle"></hawksearch-icon>\r
|
|
7722
|
+
</span>\r
|
|
7723
|
+
{{/if}}\r
|
|
7724
|
+
</div>\r
|
|
7725
|
+
{{/if}}\r
|
|
7726
|
+
</li>\r
|
|
7727
|
+
{{/if}}\r
|
|
7728
|
+
{{/each}}\r
|
|
7729
|
+
</ul>\r
|
|
7730
7730
|
{{/if}}`;
|
|
7731
7731
|
class CheckboxListFacetComponent extends BaseFacetComponent {
|
|
7732
7732
|
constructor() {
|
|
@@ -7786,36 +7786,36 @@ class CheckboxListFacetComponent extends BaseFacetComponent {
|
|
|
7786
7786
|
};
|
|
7787
7787
|
}
|
|
7788
7788
|
}
|
|
7789
|
-
const defaultHtml$s = `<div class="color-facet"
|
|
7790
|
-
<div class="row row--tight color-facet__items"
|
|
7791
|
-
{{#each values}}
|
|
7792
|
-
{{#if visible}}
|
|
7793
|
-
<div hawksearch-facet-value="{{value}}" class="column column--2 color-facet__item{{attribute ' color-facet__item--selected' selected}}"
|
|
7794
|
-
{{#if color.imageUrl}}
|
|
7795
|
-
<img src="{{color.imageUrl}}" class="color-facet__item__image" alt="{{color.name}}" title="{{color.name}}"
|
|
7796
|
-
{{else}}
|
|
7797
|
-
<div class="color-facet__item__box" style="background: {{color.hex}};"></div
|
|
7798
|
-
{{/if}}
|
|
7799
|
-
{{#if @root.excludeEnabled}}
|
|
7800
|
-
<span class="color-facet__item__actions"
|
|
7801
|
-
{{#if excluded}}
|
|
7802
|
-
<span hawksearch-facet-value-include="{{value}}" class="color-facet__item__actions__item" title="{{strings.include}}"
|
|
7803
|
-
<hawksearch-icon name="plus"></hawksearch-icon
|
|
7804
|
-
</span
|
|
7805
|
-
{{else}}
|
|
7806
|
-
<span hawksearch-facet-value-exclude="{{value}}" class="color-facet__item__actions__item" title="{{strings.exclude}}"
|
|
7807
|
-
<hawksearch-icon name="minus"></hawksearch-icon
|
|
7808
|
-
</span
|
|
7809
|
-
{{/if}}
|
|
7810
|
-
</span
|
|
7811
|
-
{{/if}}
|
|
7812
|
-
</div
|
|
7813
|
-
{{/if}}
|
|
7814
|
-
{{/each}}
|
|
7815
|
-
</div
|
|
7816
|
-
{{#if showToggle}}
|
|
7817
|
-
<span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span
|
|
7818
|
-
{{/if}}
|
|
7789
|
+
const defaultHtml$s = `<div class="color-facet">\r
|
|
7790
|
+
<div class="row row--tight color-facet__items">\r
|
|
7791
|
+
{{#each values}}\r
|
|
7792
|
+
{{#if visible}}\r
|
|
7793
|
+
<div hawksearch-facet-value="{{value}}" class="column column--2 color-facet__item{{attribute ' color-facet__item--selected' selected}}">\r
|
|
7794
|
+
{{#if color.imageUrl}}\r
|
|
7795
|
+
<img src="{{color.imageUrl}}" class="color-facet__item__image" alt="{{color.name}}" title="{{color.name}}" />\r
|
|
7796
|
+
{{else}}\r
|
|
7797
|
+
<div class="color-facet__item__box" style="background: {{color.hex}};"></div>\r
|
|
7798
|
+
{{/if}}\r
|
|
7799
|
+
{{#if @root.excludeEnabled}}\r
|
|
7800
|
+
<span class="color-facet__item__actions">\r
|
|
7801
|
+
{{#if excluded}}\r
|
|
7802
|
+
<span hawksearch-facet-value-include="{{value}}" class="color-facet__item__actions__item" title="{{strings.include}}">\r
|
|
7803
|
+
<hawksearch-icon name="plus"></hawksearch-icon>\r
|
|
7804
|
+
</span>\r
|
|
7805
|
+
{{else}}\r
|
|
7806
|
+
<span hawksearch-facet-value-exclude="{{value}}" class="color-facet__item__actions__item" title="{{strings.exclude}}">\r
|
|
7807
|
+
<hawksearch-icon name="minus"></hawksearch-icon>\r
|
|
7808
|
+
</span>\r
|
|
7809
|
+
{{/if}}\r
|
|
7810
|
+
</span>\r
|
|
7811
|
+
{{/if}}\r
|
|
7812
|
+
</div>\r
|
|
7813
|
+
{{/if}}\r
|
|
7814
|
+
{{/each}}\r
|
|
7815
|
+
</div>\r
|
|
7816
|
+
{{#if showToggle}}\r
|
|
7817
|
+
<span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r
|
|
7818
|
+
{{/if}}\r
|
|
7819
7819
|
</div>`;
|
|
7820
7820
|
class ColorFacetComponent extends BaseFacetComponent {
|
|
7821
7821
|
constructor() {
|
|
@@ -7847,7 +7847,7 @@ class ColorFacetComponent extends BaseFacetComponent {
|
|
|
7847
7847
|
};
|
|
7848
7848
|
}
|
|
7849
7849
|
}
|
|
7850
|
-
const defaultHtml$r = '<div class="date-range-facet">\n <div class="row">\n <div class="column column--6">\n <hawksearch-date-picker\n hawksearch-start\n value="{{startValue}}"\n min="{{minValue}}"\n max="{{endValue}}"\n label="{{strings.startDate}}"\n ></hawksearch-date-picker>\n </div>\n <div class="column column--6">\n <hawksearch-date-picker\n hawksearch-end\n value="{{endValue}}"\n min="{{startValue}}"\n max="{{maxValue}}"\n label="{{strings.endDate}}"\n ></hawksearch-date-picker>\n </div>\n </div>\n</div>';
|
|
7850
|
+
const defaultHtml$r = '<div class="date-range-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <hawksearch-date-picker\r\n hawksearch-start\r\n value="{{startValue}}"\r\n min="{{minValue}}"\r\n max="{{endValue}}"\r\n label="{{strings.startDate}}"\r\n ></hawksearch-date-picker>\r\n </div>\r\n <div class="column column--6">\r\n <hawksearch-date-picker\r\n hawksearch-end\r\n value="{{endValue}}"\r\n min="{{startValue}}"\r\n max="{{maxValue}}"\r\n label="{{strings.endDate}}"\r\n ></hawksearch-date-picker>\r\n </div>\r\n </div>\r\n</div>';
|
|
7851
7851
|
class DateRangeFacetComponent extends BaseFacetComponent {
|
|
7852
7852
|
constructor() {
|
|
7853
7853
|
super(...arguments);
|
|
@@ -7929,28 +7929,28 @@ class DateRangeFacetComponent extends BaseFacetComponent {
|
|
|
7929
7929
|
HawkSearch.services.search.setFacetValue(this.data.field, `${(start == null ? void 0 : start.toISOString()) ?? ""},${(end == null ? void 0 : end.toISOString()) ?? ""}`);
|
|
7930
7930
|
}
|
|
7931
7931
|
}
|
|
7932
|
-
const defaultHtml$q = `<div class="link-list-facet" {{attribute (concat 'style="max-height: ' maxHeight 'px;"') maxHeight}}
|
|
7933
|
-
<ul class="link-list-facet__list"
|
|
7934
|
-
{{#each values}}
|
|
7935
|
-
{{#if visible}}
|
|
7936
|
-
<li class="link-list-facet__list__item"
|
|
7937
|
-
<span hawksearch-facet-value="{{value}}" class="link facet__value" tabindex="-1"
|
|
7938
|
-
{{#if imageUrl}}
|
|
7939
|
-
<img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class="facet__value__image"
|
|
7940
|
-
{{else}}
|
|
7941
|
-
<span class="facet__value__title">{{title}}</span
|
|
7942
|
-
{{/if}}
|
|
7943
|
-
{{#if @root.displayCount}}
|
|
7944
|
-
<span class="facet__value__count">({{count}})</span
|
|
7945
|
-
{{/if}}
|
|
7946
|
-
</span
|
|
7947
|
-
</li
|
|
7948
|
-
{{/if}}
|
|
7949
|
-
{{/each}}
|
|
7950
|
-
</ul
|
|
7951
|
-
{{#if showToggle}}
|
|
7952
|
-
<span hawksearch-facet-toggle class="link facet__toggle" tabindex="-1">{{strings.toggle}}</span
|
|
7953
|
-
{{/if}}
|
|
7932
|
+
const defaultHtml$q = `<div class="link-list-facet" {{attribute (concat 'style="max-height: ' maxHeight 'px;"') maxHeight}}>\r
|
|
7933
|
+
<ul class="link-list-facet__list">\r
|
|
7934
|
+
{{#each values}}\r
|
|
7935
|
+
{{#if visible}}\r
|
|
7936
|
+
<li class="link-list-facet__list__item">\r
|
|
7937
|
+
<span hawksearch-facet-value="{{value}}" class="link facet__value" tabindex="-1">\r
|
|
7938
|
+
{{#if imageUrl}}\r
|
|
7939
|
+
<img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class="facet__value__image" />\r
|
|
7940
|
+
{{else}}\r
|
|
7941
|
+
<span class="facet__value__title">{{title}}</span>\r
|
|
7942
|
+
{{/if}}\r
|
|
7943
|
+
{{#if @root.displayCount}}\r
|
|
7944
|
+
<span class="facet__value__count">({{count}})</span>\r
|
|
7945
|
+
{{/if}}\r
|
|
7946
|
+
</span>\r
|
|
7947
|
+
</li>\r
|
|
7948
|
+
{{/if}}\r
|
|
7949
|
+
{{/each}}\r
|
|
7950
|
+
</ul>\r
|
|
7951
|
+
{{#if showToggle}}\r
|
|
7952
|
+
<span hawksearch-facet-toggle class="link facet__toggle" tabindex="-1">{{strings.toggle}}</span>\r
|
|
7953
|
+
{{/if}}\r
|
|
7954
7954
|
</div>`;
|
|
7955
7955
|
class LinkListFacetComponent extends BaseFacetComponent {
|
|
7956
7956
|
constructor() {
|
|
@@ -7981,7 +7981,7 @@ class LinkListFacetComponent extends BaseFacetComponent {
|
|
|
7981
7981
|
};
|
|
7982
7982
|
}
|
|
7983
7983
|
}
|
|
7984
|
-
const defaultHtml$p = '<div class="numeric-range-facet">\n <div class="row">\n <div class="column column--6">\n <input type="number" hawksearch-start value="{{start}}" min="{{min}}" max="{{end}}" aria-label="{{strings.minimum}}" />\n </div>\n <div class="column column--6">\n <input type="number" hawksearch-end value="{{end}}" min="{{start}}" max="{{max}}" aria-label="{{strings.maximum}}" />\n </div>\n </div>\n</div>';
|
|
7984
|
+
const defaultHtml$p = '<div class="numeric-range-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <input type="number" hawksearch-start value="{{start}}" min="{{min}}" max="{{end}}" aria-label="{{strings.minimum}}" />\r\n </div>\r\n <div class="column column--6">\r\n <input type="number" hawksearch-end value="{{end}}" min="{{start}}" max="{{max}}" aria-label="{{strings.maximum}}" />\r\n </div>\r\n </div>\r\n</div>';
|
|
7985
7985
|
class NumericRangeFacetComponent extends BaseFacetComponent {
|
|
7986
7986
|
constructor() {
|
|
7987
7987
|
super(...arguments);
|
|
@@ -8050,7 +8050,7 @@ class NumericRangeFacetComponent extends BaseFacetComponent {
|
|
|
8050
8050
|
HawkSearch.services.search.setFacetValue(this.data.field, `${start},${end}`);
|
|
8051
8051
|
}
|
|
8052
8052
|
}
|
|
8053
|
-
const defaultHtml$o = '<div class="range-slider-facet">\n <div class="row">\n <div class="column column--6">\n <input type="number" hawksearch-start value="{{start}}" min="{{min}}" max="{{end}}" aria-label="{{strings.minimum}}" />\n </div>\n <div class="column column--6">\n <input type="number" hawksearch-end value="{{end}}" min="{{start}}" max="{{max}}" aria-label="{{strings.maximum}}" />\n </div>\n </div>\n <hawksearch-range-slider start="{{sliderStart}}" end="{{sliderEnd}}"></hawksearch-range-slider>\n</div>';
|
|
8053
|
+
const defaultHtml$o = '<div class="range-slider-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <input type="number" hawksearch-start value="{{start}}" min="{{min}}" max="{{end}}" aria-label="{{strings.minimum}}" />\r\n </div>\r\n <div class="column column--6">\r\n <input type="number" hawksearch-end value="{{end}}" min="{{start}}" max="{{max}}" aria-label="{{strings.maximum}}" />\r\n </div>\r\n </div>\r\n <hawksearch-range-slider start="{{sliderStart}}" end="{{sliderEnd}}"></hawksearch-range-slider>\r\n</div>';
|
|
8054
8054
|
class RangeSliderFacetComponent extends BaseFacetComponent {
|
|
8055
8055
|
constructor() {
|
|
8056
8056
|
super(...arguments);
|
|
@@ -8144,7 +8144,7 @@ class RangeSliderFacetComponent extends BaseFacetComponent {
|
|
|
8144
8144
|
HawkSearch.services.search.setFacetValue(this.data.field, `${start.toFixed(2)},${end.toFixed(2)}`);
|
|
8145
8145
|
}
|
|
8146
8146
|
}
|
|
8147
|
-
const defaultHtml$n = '<div class="recent-searches-facet">\n <ul class="recent-searches-facet__list">\n {{#each values}}\n <li class="recent-searches-facet__list__item">\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\n </li>\n {{/each}}\n </ul>\n</div>';
|
|
8147
|
+
const defaultHtml$n = '<div class="recent-searches-facet">\r\n <ul class="recent-searches-facet__list">\r\n {{#each values}}\r\n <li class="recent-searches-facet__list__item">\r\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n</div>';
|
|
8148
8148
|
class RecentSearchesFacetComponent extends BaseFacetComponent {
|
|
8149
8149
|
constructor() {
|
|
8150
8150
|
super(...arguments);
|
|
@@ -8175,7 +8175,7 @@ class RecentSearchesFacetComponent extends BaseFacetComponent {
|
|
|
8175
8175
|
});
|
|
8176
8176
|
}
|
|
8177
8177
|
}
|
|
8178
|
-
const defaultHtml$m = '<div class="related-searches-facet">\n <ul class="related-searches-facet__list">\n {{#each values}}\n <li class="related-searches-facet__list__item">\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\n </li>\n {{/each}}\n </ul>\n</div>';
|
|
8178
|
+
const defaultHtml$m = '<div class="related-searches-facet">\r\n <ul class="related-searches-facet__list">\r\n {{#each values}}\r\n <li class="related-searches-facet__list__item">\r\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n</div>';
|
|
8179
8179
|
class RelatedSearchesFacetComponent extends BaseFacetComponent {
|
|
8180
8180
|
constructor() {
|
|
8181
8181
|
super(...arguments);
|
|
@@ -8206,7 +8206,7 @@ class RelatedSearchesFacetComponent extends BaseFacetComponent {
|
|
|
8206
8206
|
});
|
|
8207
8207
|
}
|
|
8208
8208
|
}
|
|
8209
|
-
const defaultHtml$l = '<div class="search-within-facet">\n <input type="text" hawksearch-input value="{{value}}" class="search-within-facet__input" aria-label="{{strings.label}}" />\n</div>';
|
|
8209
|
+
const defaultHtml$l = '<div class="search-within-facet">\r\n <input type="text" hawksearch-input value="{{value}}" class="search-within-facet__input" aria-label="{{strings.label}}" />\r\n</div>';
|
|
8210
8210
|
class SearchWithinFacetComponent extends BaseFacetComponent {
|
|
8211
8211
|
constructor() {
|
|
8212
8212
|
super(...arguments);
|
|
@@ -8237,36 +8237,36 @@ class SearchWithinFacetComponent extends BaseFacetComponent {
|
|
|
8237
8237
|
});
|
|
8238
8238
|
}
|
|
8239
8239
|
}
|
|
8240
|
-
const defaultHtml$k = `<div class="size-facet"
|
|
8241
|
-
<div class="row row--tight size-facet__items"
|
|
8242
|
-
{{#each values}}
|
|
8243
|
-
{{#if visible}}
|
|
8244
|
-
<div class="column column--3 size-facet__item{{attribute ' size-facet__item--selected' selected}}"
|
|
8245
|
-
<div hawksearch-facet-value="{{value}}" class="size-facet__item__outer"
|
|
8246
|
-
<div hawksearch-facet-value="{{value}}" class="size-facet__item__inner"
|
|
8247
|
-
{{title}}
|
|
8248
|
-
</div
|
|
8249
|
-
</div
|
|
8250
|
-
{{#if @root.excludeEnabled}}
|
|
8251
|
-
<span class="size-facet__item__actions"
|
|
8252
|
-
{{#if excluded}}
|
|
8253
|
-
<span hawksearch-facet-value-include="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.include}}"
|
|
8254
|
-
<hawksearch-icon name="plus"></hawksearch-icon
|
|
8255
|
-
</span
|
|
8256
|
-
{{else}}
|
|
8257
|
-
<span hawksearch-facet-value-exclude="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.exclude}}"
|
|
8258
|
-
<hawksearch-icon name="minus"></hawksearch-icon
|
|
8259
|
-
</span
|
|
8260
|
-
{{/if}}
|
|
8261
|
-
</span
|
|
8262
|
-
{{/if}}
|
|
8263
|
-
</div
|
|
8264
|
-
{{/if}}
|
|
8265
|
-
{{/each}}
|
|
8266
|
-
</div
|
|
8267
|
-
{{#if showToggle}}
|
|
8268
|
-
<span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span
|
|
8269
|
-
{{/if}}
|
|
8240
|
+
const defaultHtml$k = `<div class="size-facet">\r
|
|
8241
|
+
<div class="row row--tight size-facet__items">\r
|
|
8242
|
+
{{#each values}}\r
|
|
8243
|
+
{{#if visible}}\r
|
|
8244
|
+
<div class="column column--3 size-facet__item{{attribute ' size-facet__item--selected' selected}}">\r
|
|
8245
|
+
<div hawksearch-facet-value="{{value}}" class="size-facet__item__outer">\r
|
|
8246
|
+
<div hawksearch-facet-value="{{value}}" class="size-facet__item__inner">\r
|
|
8247
|
+
{{title}}\r
|
|
8248
|
+
</div>\r
|
|
8249
|
+
</div>\r
|
|
8250
|
+
{{#if @root.excludeEnabled}}\r
|
|
8251
|
+
<span class="size-facet__item__actions">\r
|
|
8252
|
+
{{#if excluded}}\r
|
|
8253
|
+
<span hawksearch-facet-value-include="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.include}}">\r
|
|
8254
|
+
<hawksearch-icon name="plus"></hawksearch-icon>\r
|
|
8255
|
+
</span>\r
|
|
8256
|
+
{{else}}\r
|
|
8257
|
+
<span hawksearch-facet-value-exclude="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.exclude}}">\r
|
|
8258
|
+
<hawksearch-icon name="minus"></hawksearch-icon>\r
|
|
8259
|
+
</span>\r
|
|
8260
|
+
{{/if}}\r
|
|
8261
|
+
</span>\r
|
|
8262
|
+
{{/if}}\r
|
|
8263
|
+
</div>\r
|
|
8264
|
+
{{/if}}\r
|
|
8265
|
+
{{/each}}\r
|
|
8266
|
+
</div>\r
|
|
8267
|
+
{{#if showToggle}}\r
|
|
8268
|
+
<span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r
|
|
8269
|
+
{{/if}}\r
|
|
8270
8270
|
</div>`;
|
|
8271
8271
|
class SizeFacetComponent extends BaseFacetComponent {
|
|
8272
8272
|
constructor() {
|
|
@@ -8298,53 +8298,53 @@ class SizeFacetComponent extends BaseFacetComponent {
|
|
|
8298
8298
|
};
|
|
8299
8299
|
}
|
|
8300
8300
|
}
|
|
8301
|
-
const defaultHtml$j = `<div class="facet"
|
|
8302
|
-
<div hawksearch-facet-heading class="facet__heading{{attribute ' facet__heading--collapsible' collapsible}}"
|
|
8303
|
-
{{title}}
|
|
8304
|
-
{{#if tooltip}}
|
|
8305
|
-
<hawksearch-tooltip text="{{tooltip}}"></hawksearch-tooltip
|
|
8306
|
-
{{/if}}
|
|
8307
|
-
{{#if collapsible}}
|
|
8308
|
-
<hawksearch-icon name="{{if-else collapsed 'chevron-right' 'chevron-down'}}" size="1.5em" class="facet__heading__toggle"></hawksearch-icon
|
|
8309
|
-
{{/if}}
|
|
8310
|
-
</div
|
|
8311
|
-
{{#unless collapsed}}
|
|
8312
|
-
<div class="facet__content"
|
|
8313
|
-
{{#if searchable}}
|
|
8314
|
-
<input type="text" placeholder="Quick Lookup" hawksearch-facet-search value="{{filter}}" class="facet__search"
|
|
8315
|
-
{{/if}}
|
|
8316
|
-
{{#if (eq type "checkbox")}}
|
|
8317
|
-
<hawksearch-checkbox-list-facet hawksearch-facet></hawksearch-checkbox-list-facet
|
|
8318
|
-
{{/if}}
|
|
8319
|
-
{{#if (eq type "color")}}
|
|
8320
|
-
<hawksearch-color-facet hawksearch-facet></hawksearch-color-facet
|
|
8321
|
-
{{/if}}
|
|
8322
|
-
{{#if (eq type "date-range")}}
|
|
8323
|
-
<hawksearch-date-range-facet hawksearch-facet></hawksearch-date-range-facet
|
|
8324
|
-
{{/if}}
|
|
8325
|
-
{{#if (eq type "link")}}
|
|
8326
|
-
<hawksearch-link-list-facet hawksearch-facet></hawksearch-link-list-facet
|
|
8327
|
-
{{/if}}
|
|
8328
|
-
{{#if (eq type "numeric-range")}}
|
|
8329
|
-
<hawksearch-numeric-range-facet hawksearch-facet></hawksearch-numeric-range-facet
|
|
8330
|
-
{{/if}}
|
|
8331
|
-
{{#if (eq type "range-slider")}}
|
|
8332
|
-
<hawksearch-range-slider-facet hawksearch-facet></hawksearch-range-slider-facet
|
|
8333
|
-
{{/if}}
|
|
8334
|
-
{{#if (eq type "recent-searches")}}
|
|
8335
|
-
<hawksearch-recent-searches-facet hawksearch-facet></hawksearch-recent-searches-facet
|
|
8336
|
-
{{/if}}
|
|
8337
|
-
{{#if (eq type "related-searches")}}
|
|
8338
|
-
<hawksearch-related-searches-facet hawksearch-facet></hawksearch-related-searches-facet
|
|
8339
|
-
{{/if}}
|
|
8340
|
-
{{#if (eq type "search")}}
|
|
8341
|
-
<hawksearch-search-within-facet hawksearch-facet></hawksearch-search-within-facet
|
|
8342
|
-
{{/if}}
|
|
8343
|
-
{{#if (eq type "size")}}
|
|
8344
|
-
<hawksearch-size-facet hawksearch-facet></hawksearch-size-facet
|
|
8345
|
-
{{/if}}
|
|
8346
|
-
</div
|
|
8347
|
-
{{/unless}}
|
|
8301
|
+
const defaultHtml$j = `<div class="facet">\r
|
|
8302
|
+
<div hawksearch-facet-heading class="facet__heading{{attribute ' facet__heading--collapsible' collapsible}}">\r
|
|
8303
|
+
{{title}}\r
|
|
8304
|
+
{{#if tooltip}}\r
|
|
8305
|
+
<hawksearch-tooltip text="{{tooltip}}"></hawksearch-tooltip>\r
|
|
8306
|
+
{{/if}}\r
|
|
8307
|
+
{{#if collapsible}}\r
|
|
8308
|
+
<hawksearch-icon name="{{if-else collapsed 'chevron-right' 'chevron-down'}}" size="1.5em" class="facet__heading__toggle"></hawksearch-icon>\r
|
|
8309
|
+
{{/if}}\r
|
|
8310
|
+
</div>\r
|
|
8311
|
+
{{#unless collapsed}}\r
|
|
8312
|
+
<div class="facet__content">\r
|
|
8313
|
+
{{#if searchable}}\r
|
|
8314
|
+
<input type="text" placeholder="Quick Lookup" hawksearch-facet-search value="{{filter}}" class="facet__search" />\r
|
|
8315
|
+
{{/if}}\r
|
|
8316
|
+
{{#if (eq type "checkbox")}}\r
|
|
8317
|
+
<hawksearch-checkbox-list-facet hawksearch-facet></hawksearch-checkbox-list-facet>\r
|
|
8318
|
+
{{/if}}\r
|
|
8319
|
+
{{#if (eq type "color")}}\r
|
|
8320
|
+
<hawksearch-color-facet hawksearch-facet></hawksearch-color-facet>\r
|
|
8321
|
+
{{/if}}\r
|
|
8322
|
+
{{#if (eq type "date-range")}}\r
|
|
8323
|
+
<hawksearch-date-range-facet hawksearch-facet></hawksearch-date-range-facet>\r
|
|
8324
|
+
{{/if}}\r
|
|
8325
|
+
{{#if (eq type "link")}}\r
|
|
8326
|
+
<hawksearch-link-list-facet hawksearch-facet></hawksearch-link-list-facet>\r
|
|
8327
|
+
{{/if}}\r
|
|
8328
|
+
{{#if (eq type "numeric-range")}}\r
|
|
8329
|
+
<hawksearch-numeric-range-facet hawksearch-facet></hawksearch-numeric-range-facet>\r
|
|
8330
|
+
{{/if}}\r
|
|
8331
|
+
{{#if (eq type "range-slider")}}\r
|
|
8332
|
+
<hawksearch-range-slider-facet hawksearch-facet></hawksearch-range-slider-facet>\r
|
|
8333
|
+
{{/if}}\r
|
|
8334
|
+
{{#if (eq type "recent-searches")}}\r
|
|
8335
|
+
<hawksearch-recent-searches-facet hawksearch-facet></hawksearch-recent-searches-facet>\r
|
|
8336
|
+
{{/if}}\r
|
|
8337
|
+
{{#if (eq type "related-searches")}}\r
|
|
8338
|
+
<hawksearch-related-searches-facet hawksearch-facet></hawksearch-related-searches-facet>\r
|
|
8339
|
+
{{/if}}\r
|
|
8340
|
+
{{#if (eq type "search")}}\r
|
|
8341
|
+
<hawksearch-search-within-facet hawksearch-facet></hawksearch-search-within-facet>\r
|
|
8342
|
+
{{/if}}\r
|
|
8343
|
+
{{#if (eq type "size")}}\r
|
|
8344
|
+
<hawksearch-size-facet hawksearch-facet></hawksearch-size-facet>\r
|
|
8345
|
+
{{/if}}\r
|
|
8346
|
+
</div>\r
|
|
8347
|
+
{{/unless}}\r
|
|
8348
8348
|
</div>`;
|
|
8349
8349
|
class FacetWrapperComponent extends BaseComponent {
|
|
8350
8350
|
constructor() {
|
|
@@ -8401,16 +8401,16 @@ class FacetWrapperComponent extends BaseComponent {
|
|
|
8401
8401
|
});
|
|
8402
8402
|
}
|
|
8403
8403
|
}
|
|
8404
|
-
const defaultHtml$i = `<div class="facets{{attribute ' facets--expanded' expanded}}"
|
|
8405
|
-
<div hawksearch-mobile-toggle class="facets__heading"
|
|
8406
|
-
{{strings.heading}}
|
|
8407
|
-
<hawksearch-icon name="{{if-else expanded 'chevron-down' 'chevron-right'}}" size="1.5rem" class="facets__heading__mobile-toggle"></hawksearch-icon
|
|
8408
|
-
</div
|
|
8409
|
-
<div class="facets__content"
|
|
8410
|
-
{{#each facets}}
|
|
8411
|
-
<hawksearch-facet-wrapper hawksearch-facet-id="{{id}}"></hawksearch-facet-wrapper
|
|
8412
|
-
{{/each}}
|
|
8413
|
-
</div
|
|
8404
|
+
const defaultHtml$i = `<div class="facets{{attribute ' facets--expanded' expanded}}">\r
|
|
8405
|
+
<div hawksearch-mobile-toggle class="facets__heading">\r
|
|
8406
|
+
{{strings.heading}}\r
|
|
8407
|
+
<hawksearch-icon name="{{if-else expanded 'chevron-down' 'chevron-right'}}" size="1.5rem" class="facets__heading__mobile-toggle"></hawksearch-icon>\r
|
|
8408
|
+
</div>\r
|
|
8409
|
+
<div class="facets__content">\r
|
|
8410
|
+
{{#each facets}}\r
|
|
8411
|
+
<hawksearch-facet-wrapper hawksearch-facet-id="{{id}}"></hawksearch-facet-wrapper>\r
|
|
8412
|
+
{{/each}}\r
|
|
8413
|
+
</div>\r
|
|
8414
8414
|
</div>`;
|
|
8415
8415
|
class FacetsListComponent extends BaseComponent {
|
|
8416
8416
|
constructor() {
|
|
@@ -8499,7 +8499,7 @@ class FacetsListComponent extends BaseComponent {
|
|
|
8499
8499
|
});
|
|
8500
8500
|
}
|
|
8501
8501
|
}
|
|
8502
|
-
const defaultHtml$h = '<div class="modified-query">\n <p>\n {{strings.showingResultsFor}}\n <span class="modified-query__modified">{{modifiedQuery}}</span>.\n {{strings.searchInsteadFor}}\n <a class="modified-query__original" hawksearch-query="{{query}}">{{query}}</a>.\n </p>\n</div>';
|
|
8502
|
+
const defaultHtml$h = '<div class="modified-query">\r\n <p>\r\n {{strings.showingResultsFor}}\r\n <span class="modified-query__modified">{{modifiedQuery}}</span>.\r\n {{strings.searchInsteadFor}}\r\n <a class="modified-query__original" hawksearch-query="{{query}}">{{query}}</a>.\r\n </p>\r\n</div>';
|
|
8503
8503
|
class ModifiedQueryComponent extends BaseComponent {
|
|
8504
8504
|
constructor() {
|
|
8505
8505
|
super(...arguments);
|
|
@@ -8536,7 +8536,7 @@ class ModifiedQueryComponent extends BaseComponent {
|
|
|
8536
8536
|
});
|
|
8537
8537
|
}
|
|
8538
8538
|
}
|
|
8539
|
-
const defaultHtml$g = '<div class="page-size">\n <select hawksearch-page-size>\n {{#each options}}\n {{#if selected}}\n <option value="{{pageSize}}" selected>{{title}}</option>\n {{else}}\n <option value="{{pageSize}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>';
|
|
8539
|
+
const defaultHtml$g = '<div class="page-size">\r\n <select hawksearch-page-size>\r\n {{#each options}}\r\n {{#if selected}}\r\n <option value="{{pageSize}}" selected>{{title}}</option>\r\n {{else}}\r\n <option value="{{pageSize}}">{{title}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n</div>';
|
|
8540
8540
|
class PageSizeComponent extends BaseComponent {
|
|
8541
8541
|
constructor() {
|
|
8542
8542
|
super(...arguments);
|
|
@@ -8565,7 +8565,7 @@ class PageSizeComponent extends BaseComponent {
|
|
|
8565
8565
|
});
|
|
8566
8566
|
}
|
|
8567
8567
|
}
|
|
8568
|
-
const defaultHtml$f = '<div class="pagination">\n {{#if strings.summary}}\n <div class="pagination__summary">{{strings.summary}}</div>\n {{/if}}\n <div class="pagination__pages">\n {{#if displayFirstLink}}\n <span hawksearch-page="1" class="link pagination__page pagination__page--first" title="{{strings.first}}">\n <hawksearch-icon name="chevron-back" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if displayPreviousLink}}\n <a\n hawksearch-page="{{subtract page 1}}"\n rel="prev"\n href="{{pageUrl (subtract page 1)}}"\n class="pagination__page pagination__page--previous"\n title="{{strings.previous}}"\n >\n <hawksearch-icon name="chevron-left" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#each pages}}\n {{#if (eq this @root.page)}}\n <span class="pagination__page pagination__page--selected">{{this}}</span>\n {{else}}\n <a hawksearch-page="{{this}}" href="{{pageUrl this}}" class="pagination__page">{{this}}</a>\n {{/if}}\n {{/each}}\n {{#if displayNextLink}}\n <a\n hawksearch-page="{{add page 1}}"\n rel="next"\n href="{{pageUrl (add page 1)}}"\n class="pagination__page pagination__page--next"\n title="{{strings.next}}"\n >\n <hawksearch-icon name="chevron-right" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#if displayLastLink}}\n <span hawksearch-page="{{totalPages}}" class="link pagination__page pagination__page--last" title="{{strings.last}}">\n <hawksearch-icon name="chevron-forward" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n</div>';
|
|
8568
|
+
const defaultHtml$f = '<div class="pagination">\r\n {{#if strings.summary}}\r\n <div class="pagination__summary">{{strings.summary}}</div>\r\n {{/if}}\r\n <div class="pagination__pages">\r\n {{#if displayFirstLink}}\r\n <span hawksearch-page="1" class="link pagination__page pagination__page--first" title="{{strings.first}}">\r\n <hawksearch-icon name="chevron-back" size="1.2em"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if displayPreviousLink}}\r\n <a\r\n hawksearch-page="{{subtract page 1}}"\r\n rel="prev"\r\n href="{{pageUrl (subtract page 1)}}"\r\n class="pagination__page pagination__page--previous"\r\n title="{{strings.previous}}"\r\n >\r\n <hawksearch-icon name="chevron-left" size="1.2em"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n {{#each pages}}\r\n {{#if (eq this @root.page)}}\r\n <span class="pagination__page pagination__page--selected">{{this}}</span>\r\n {{else}}\r\n <a hawksearch-page="{{this}}" href="{{pageUrl this}}" class="pagination__page">{{this}}</a>\r\n {{/if}}\r\n {{/each}}\r\n {{#if displayNextLink}}\r\n <a\r\n hawksearch-page="{{add page 1}}"\r\n rel="next"\r\n href="{{pageUrl (add page 1)}}"\r\n class="pagination__page pagination__page--next"\r\n title="{{strings.next}}"\r\n >\r\n <hawksearch-icon name="chevron-right" size="1.2em"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n {{#if displayLastLink}}\r\n <span hawksearch-page="{{totalPages}}" class="link pagination__page pagination__page--last" title="{{strings.last}}">\r\n <hawksearch-icon name="chevron-forward" size="1.2em"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </div>\r\n</div>';
|
|
8569
8569
|
class PaginationComponent extends BaseComponent {
|
|
8570
8570
|
constructor() {
|
|
8571
8571
|
super(...arguments);
|
|
@@ -8660,7 +8660,7 @@ class PaginationComponent extends BaseComponent {
|
|
|
8660
8660
|
return pages;
|
|
8661
8661
|
}
|
|
8662
8662
|
}
|
|
8663
|
-
const defaultHtml$e = '<div class="query-suggestions">\n <p>{{query-suggestions querySuggestions}}</p>\n</div>';
|
|
8663
|
+
const defaultHtml$e = '<div class="query-suggestions">\r\n <p>{{query-suggestions querySuggestions}}</p>\r\n</div>';
|
|
8664
8664
|
class QuerySuggestionsComponent extends BaseComponent {
|
|
8665
8665
|
constructor() {
|
|
8666
8666
|
super(...arguments);
|
|
@@ -8712,7 +8712,7 @@ class QuerySuggestionsComponent extends BaseComponent {
|
|
|
8712
8712
|
});
|
|
8713
8713
|
}
|
|
8714
8714
|
}
|
|
8715
|
-
const defaultHtml$d = '<div class="search-field">\n <input type="text" hawksearch-input value="{{query}}" placeholder="{{strings.placeholder}}" />\n <hawksearch-autocomplete></hawksearch-autocomplete>\n</div>';
|
|
8715
|
+
const defaultHtml$d = '<div class="search-field">\r\n <input type="text" hawksearch-input value="{{query}}" placeholder="{{strings.placeholder}}" />\r\n <hawksearch-autocomplete></hawksearch-autocomplete>\r\n</div>';
|
|
8716
8716
|
class SearchFieldComponent extends BaseComponent {
|
|
8717
8717
|
constructor() {
|
|
8718
8718
|
super(...arguments);
|
|
@@ -8885,7 +8885,7 @@ class SearchFieldComponent extends BaseComponent {
|
|
|
8885
8885
|
}
|
|
8886
8886
|
}
|
|
8887
8887
|
}
|
|
8888
|
-
const defaultHtml$c = '<div class="search-field">\n <input type="text" hawksearch-input hawksearch-concept-search value="{{query}}" placeholder="{{strings.placeholder}}" />\n</div>';
|
|
8888
|
+
const defaultHtml$c = '<div class="search-field">\r\n <input type="text" hawksearch-input hawksearch-concept-search value="{{query}}" placeholder="{{strings.placeholder}}" />\r\n</div>';
|
|
8889
8889
|
class ConceptSearchFieldComponent extends BaseComponent {
|
|
8890
8890
|
constructor() {
|
|
8891
8891
|
super(...arguments);
|
|
@@ -9008,7 +9008,7 @@ class ConceptSearchFieldComponent extends BaseComponent {
|
|
|
9008
9008
|
}
|
|
9009
9009
|
}
|
|
9010
9010
|
}
|
|
9011
|
-
const defaultHtml$b = '<div class="conversationalsearch">\n <div class="conversationalsearch__body">\n <ul class="conversationalsearch__message-list" hawksearch-message-list>\n {{#each messages}}\n {{#if (eq role "user")}}\n <li hawksearch-message-item class="conversationalsearch__message message--sent">\n <p>{{content}}</p>\n </li>\n {{else if (eq role "assistant")}}\n <li hawksearch-message-item class="conversationalsearch__message message--received">\n <span class="message__icon">\n <hawksearch-icon name="sparkles" size="16"></hawksearch-icon>\n </span>\n <p>{{content}}</p>\n </li>\n {{/if}}\n {{/each}}\n {{#if busy}}\n <li class="conversationalsearch__message message--received">\n <div class="spinner"></div>\n <p>...</p>\n </li>\n {{/if}}\n </ul>\n </div>\n <div class="conversationalsearch__footer">\n <textarea hawksearch-message-input rows="0" cols="17" placeholder="Enter a message..."></textarea>\n <button hawksearch-message-submit class="conversationalsearch__send-button" type="submit">\n <hawksearch-icon name="send" size="16"></hawksearch-icon>\n </button>\n <button hawksearch-message-reset class="conversationalsearch__reset-button" type="reset">\n <hawksearch-icon name="reset" size="16"></hawksearch-icon>\n </button>\n </div>\n</div>';
|
|
9011
|
+
const defaultHtml$b = '<div class="conversationalsearch">\r\n <div class="conversationalsearch__body">\r\n <ul class="conversationalsearch__message-list" hawksearch-message-list>\r\n {{#each messages}}\r\n {{#if (eq role "user")}}\r\n <li hawksearch-message-item class="conversationalsearch__message message--sent">\r\n <p>{{content}}</p>\r\n </li>\r\n {{else if (eq role "assistant")}}\r\n <li hawksearch-message-item class="conversationalsearch__message message--received">\r\n <span class="message__icon">\r\n <hawksearch-icon name="sparkles" size="16"></hawksearch-icon>\r\n </span>\r\n <p>{{content}}</p>\r\n </li>\r\n {{/if}}\r\n {{/each}}\r\n {{#if busy}}\r\n <li class="conversationalsearch__message message--received">\r\n <div class="spinner"></div>\r\n <p>...</p>\r\n </li>\r\n {{/if}}\r\n </ul>\r\n </div>\r\n <div class="conversationalsearch__footer">\r\n <textarea hawksearch-message-input rows="0" cols="17" placeholder="Enter a message..."></textarea>\r\n <button hawksearch-message-submit class="conversationalsearch__send-button" type="submit">\r\n <hawksearch-icon name="send" size="16"></hawksearch-icon>\r\n </button>\r\n <button hawksearch-message-reset class="conversationalsearch__reset-button" type="reset">\r\n <hawksearch-icon name="reset" size="16"></hawksearch-icon>\r\n </button>\r\n </div>\r\n</div>';
|
|
9012
9012
|
class ConversationalSearchComponent extends BaseComponent {
|
|
9013
9013
|
constructor() {
|
|
9014
9014
|
super(...arguments);
|
|
@@ -9168,7 +9168,7 @@ class ConversationalSearchComponent extends BaseComponent {
|
|
|
9168
9168
|
this.render();
|
|
9169
9169
|
}
|
|
9170
9170
|
}
|
|
9171
|
-
const defaultHtml$a = '<div class="search-field">\n <input type="text" hawksearch-input hawksearch-imagesearch-field value="{{query}}" placeholder="{{strings.placeholder}}" />\n</div>';
|
|
9171
|
+
const defaultHtml$a = '<div class="search-field">\r\n <input type="text" hawksearch-input hawksearch-imagesearch-field value="{{query}}" placeholder="{{strings.placeholder}}" />\r\n</div>';
|
|
9172
9172
|
class ImageSearchFieldComponent extends BaseComponent {
|
|
9173
9173
|
constructor() {
|
|
9174
9174
|
super(...arguments);
|
|
@@ -9291,7 +9291,7 @@ class ImageSearchFieldComponent extends BaseComponent {
|
|
|
9291
9291
|
}
|
|
9292
9292
|
}
|
|
9293
9293
|
}
|
|
9294
|
-
const defaultHtml$9 = '<div class="search-results-list__item search-results-list__item--{{type}}">\n {{#if pinned}}\n <span class="search-results-list__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (eq type "product")}}\n {{#if (lt salePrice price)}}\n <span class="search-results-list__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="search-results-list__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="search-results-list__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="search-results-list__item__price__original">{{currency price}}</span>\n <span class="search-results-list__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="search-results-list__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n {{else}}\n <div class="row">\n {{#if imageUrl}}\n <div class="column column--12 column-sm--4">\n <a hawksearch-link href="{{url}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n </div>\n {{/if}}\n <div class="column column--12 column-sm--8 flex-align-self-sm-center">\n <div class="search-results-list__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if description}}\n <p>{{description}}</p>\n {{/if}}\n </div>\n </div>\n {{/if}}\n</div>';
|
|
9294
|
+
const defaultHtml$9 = '<div class="search-results-list__item search-results-list__item--{{type}}">\r\n {{#if pinned}}\r\n <span class="search-results-list__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (eq type "product")}}\r\n {{#if (lt salePrice price)}}\r\n <span class="search-results-list__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="search-results-list__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if rating}}\r\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\r\n {{/if}}\r\n {{#unless (eq price undefined)}}\r\n <div class="search-results-list__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="search-results-list__item__price__original">{{currency price}}</span>\r\n <span class="search-results-list__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="search-results-list__item__price-__current" itemprop="price">{{currency price}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n <hawksearch-variant-selector></hawksearch-variant-selector>\r\n {{else}}\r\n <div class="row">\r\n {{#if imageUrl}}\r\n <div class="column column--12 column-sm--4">\r\n <a hawksearch-link href="{{url}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n </div>\r\n {{/if}}\r\n <div class="column column--12 column-sm--8 flex-align-self-sm-center">\r\n <div class="search-results-list__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if description}}\r\n <p>{{description}}</p>\r\n {{/if}}\r\n </div>\r\n </div>\r\n {{/if}}\r\n</div>';
|
|
9295
9295
|
class SearchResultsItemComponent extends BaseComponent {
|
|
9296
9296
|
constructor() {
|
|
9297
9297
|
super(...arguments);
|
|
@@ -9355,7 +9355,7 @@ class SearchResultsItemComponent extends BaseComponent {
|
|
|
9355
9355
|
});
|
|
9356
9356
|
}
|
|
9357
9357
|
}
|
|
9358
|
-
const defaultHtml$8 = '<div class="row search-results-list">\n {{#each items}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{/if}}\n {{/each}}\n</div>';
|
|
9358
|
+
const defaultHtml$8 = '<div class="row search-results-list">\r\n {{#each items}}\r\n {{#if (eq type "content")}}\r\n <div class="column column--12">\r\n <hawksearch-search-results-item></hawksearch-search-results-item>\r\n </div>\r\n {{else}}\r\n <div class="column column--12 column-sm--6 column-lg--4">\r\n <hawksearch-search-results-item></hawksearch-search-results-item>\r\n </div>\r\n {{/if}}\r\n {{/each}}\r\n</div>';
|
|
9359
9359
|
class SearchResultsListComponent extends BaseComponent {
|
|
9360
9360
|
constructor() {
|
|
9361
9361
|
super(...arguments);
|
|
@@ -9380,7 +9380,7 @@ class SearchResultsListComponent extends BaseComponent {
|
|
|
9380
9380
|
});
|
|
9381
9381
|
}
|
|
9382
9382
|
}
|
|
9383
|
-
const defaultHtml$7 = '<hawksearch-modified-query></hawksearch-modified-query>\n<hawksearch-query-suggestions></hawksearch-query-suggestions>\n<div class="row">\n <div class="column column--12 column-md--4">\n <hawksearch-content-zone name="LeftTop"></hawksearch-content-zone>\n <hawksearch-facets-list></hawksearch-facets-list>\n <hawksearch-content-zone name="LeftBottom"></hawksearch-content-zone>\n </div>\n <div class="column column--12 column-md--8">\n <hawksearch-content-zone name="Top"></hawksearch-content-zone>\n <hawksearch-content-zone name="Top2"></hawksearch-content-zone>\n <hawksearch-tabs></hawksearch-tabs>\n <hawksearch-selected-facets></hawksearch-selected-facets>\n <div class="row">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-pagination></hawksearch-pagination>\n </div>\n <div class="column column--12 column-md--6">\n <div class="row row--tight">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-page-size></hawksearch-page-size>\n </div>\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-sorting></hawksearch-sorting>\n </div>\n </div>\n </div>\n </div>\n <hawksearch-search-results-list></hawksearch-search-results-list>\n <hawksearch-content-zone name="Bottom"></hawksearch-content-zone>\n <hawksearch-content-zone name="Bottom2"></hawksearch-content-zone>\n </div>\n</div>';
|
|
9383
|
+
const defaultHtml$7 = '<hawksearch-modified-query></hawksearch-modified-query>\r\n<hawksearch-query-suggestions></hawksearch-query-suggestions>\r\n<div class="row">\r\n <div class="column column--12 column-md--4">\r\n <hawksearch-content-zone name="LeftTop"></hawksearch-content-zone>\r\n <hawksearch-facets-list></hawksearch-facets-list>\r\n <hawksearch-content-zone name="LeftBottom"></hawksearch-content-zone>\r\n </div>\r\n <div class="column column--12 column-md--8">\r\n <hawksearch-content-zone name="Top"></hawksearch-content-zone>\r\n <hawksearch-content-zone name="Top2"></hawksearch-content-zone>\r\n <hawksearch-tabs></hawksearch-tabs>\r\n <hawksearch-selected-facets></hawksearch-selected-facets>\r\n <div class="row">\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-pagination></hawksearch-pagination>\r\n </div>\r\n <div class="column column--12 column-md--6">\r\n <div class="row row--tight">\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-page-size></hawksearch-page-size>\r\n </div>\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-sorting></hawksearch-sorting>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <hawksearch-search-results-list></hawksearch-search-results-list>\r\n <hawksearch-content-zone name="Bottom"></hawksearch-content-zone>\r\n <hawksearch-content-zone name="Bottom2"></hawksearch-content-zone>\r\n </div>\r\n</div>';
|
|
9384
9384
|
class SearchResultsComponent extends BaseComponent {
|
|
9385
9385
|
constructor() {
|
|
9386
9386
|
super();
|
|
@@ -9420,21 +9420,21 @@ class SearchResultsComponent extends BaseComponent {
|
|
|
9420
9420
|
};
|
|
9421
9421
|
}
|
|
9422
9422
|
}
|
|
9423
|
-
const defaultHtml$6 = `<div class="flex-gap flex-gap--xs selected-facets"
|
|
9424
|
-
{{#each selections}}
|
|
9425
|
-
<span class="selected-facets__item"
|
|
9426
|
-
<span class="selected-facets__item__field">{{title}}</span
|
|
9427
|
-
<span class="selected-facets__item__value{{attribute ' selected-facets__item__value--excluded' excluded}}">{{selectionTitle}}</span
|
|
9428
|
-
<a
|
|
9429
|
-
hawksearch-facet-field="{{field}}"
|
|
9430
|
-
hawksearch-facet-value="{{selectionValue}}"
|
|
9431
|
-
class="selected-facets__item__remove"
|
|
9432
|
-
title="{{@root.strings.remove}}"
|
|
9433
|
-
|
|
9434
|
-
<hawksearch-icon name="cross" size="0.9em"></hawksearch-icon
|
|
9435
|
-
</a
|
|
9436
|
-
</span
|
|
9437
|
-
{{/each}}
|
|
9423
|
+
const defaultHtml$6 = `<div class="flex-gap flex-gap--xs selected-facets">\r
|
|
9424
|
+
{{#each selections}}\r
|
|
9425
|
+
<span class="selected-facets__item">\r
|
|
9426
|
+
<span class="selected-facets__item__field">{{title}}</span>\r
|
|
9427
|
+
<span class="selected-facets__item__value{{attribute ' selected-facets__item__value--excluded' excluded}}">{{selectionTitle}}</span>\r
|
|
9428
|
+
<a\r
|
|
9429
|
+
hawksearch-facet-field="{{field}}"\r
|
|
9430
|
+
hawksearch-facet-value="{{selectionValue}}"\r
|
|
9431
|
+
class="selected-facets__item__remove"\r
|
|
9432
|
+
title="{{@root.strings.remove}}"\r
|
|
9433
|
+
>\r
|
|
9434
|
+
<hawksearch-icon name="cross" size="0.9em"></hawksearch-icon>\r
|
|
9435
|
+
</a>\r
|
|
9436
|
+
</span>\r
|
|
9437
|
+
{{/each}}\r
|
|
9438
9438
|
</div>`;
|
|
9439
9439
|
class SelectedFacetsComponent extends BaseComponent {
|
|
9440
9440
|
constructor() {
|
|
@@ -9523,51 +9523,51 @@ class SelectedFacetsComponent extends BaseComponent {
|
|
|
9523
9523
|
});
|
|
9524
9524
|
}
|
|
9525
9525
|
}
|
|
9526
|
-
const defaultHtml$5 = `<span class="smartresponse" hawksearch-smartresponse
|
|
9527
|
-
<div class="smartresponse__icon"
|
|
9528
|
-
{{#if busy}}
|
|
9529
|
-
<div class="spinner"></div
|
|
9530
|
-
{{else}}
|
|
9531
|
-
<hawksearch-icon name="sparkles"></hawksearch-icon
|
|
9532
|
-
{{/if}}
|
|
9533
|
-
</div
|
|
9534
|
-
<div class="smartresponse__info {{attribute ' busy' busy}}"
|
|
9535
|
-
{{#if strings.header}}
|
|
9536
|
-
<h4 class="smartresponse__info__header"
|
|
9537
|
-
{{strings.header}}
|
|
9538
|
-
</h4
|
|
9539
|
-
{{/if}}
|
|
9540
|
-
<div class="smartresponse__info__summary"
|
|
9541
|
-
{{#if summary}}
|
|
9542
|
-
{{#if summary.recommendation}}
|
|
9543
|
-
<div class="row"
|
|
9544
|
-
{{html summary.recommendation}}
|
|
9545
|
-
</div
|
|
9546
|
-
{{/if}}
|
|
9547
|
-
{{#if summary.products}}
|
|
9548
|
-
<ul class="row"
|
|
9549
|
-
{{#each summary.products}}
|
|
9550
|
-
<li
|
|
9551
|
-
<a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{name}}"
|
|
9552
|
-
<img hawksearch-image src="{{imageUrl}}" alt=""
|
|
9553
|
-
</a
|
|
9554
|
-
<div class="search-results-list__item__title"
|
|
9555
|
-
<a hawksearch-link href="{{url}}">{{name}}</a
|
|
9556
|
-
</div
|
|
9557
|
-
</li
|
|
9558
|
-
{{/each}}
|
|
9559
|
-
</ul
|
|
9560
|
-
{{else}}
|
|
9561
|
-
{{#if summary.nosources}}
|
|
9562
|
-
<p>{{strings.nosources}}</p
|
|
9563
|
-
{{/if}}
|
|
9564
|
-
{{/if}}
|
|
9565
|
-
{{/if}}
|
|
9566
|
-
</div
|
|
9567
|
-
</div
|
|
9568
|
-
<div class="smartresponse__actions"
|
|
9569
|
-
<div class="switch{{attribute ' on' active}}" smartresponse-switch></div
|
|
9570
|
-
</div
|
|
9526
|
+
const defaultHtml$5 = `<span class="smartresponse" hawksearch-smartresponse>\r
|
|
9527
|
+
<div class="smartresponse__icon">\r
|
|
9528
|
+
{{#if busy}}\r
|
|
9529
|
+
<div class="spinner"></div>\r
|
|
9530
|
+
{{else}}\r
|
|
9531
|
+
<hawksearch-icon name="sparkles"></hawksearch-icon>\r
|
|
9532
|
+
{{/if}}\r
|
|
9533
|
+
</div>\r
|
|
9534
|
+
<div class="smartresponse__info {{attribute ' busy' busy}}">\r
|
|
9535
|
+
{{#if strings.header}}\r
|
|
9536
|
+
<h4 class="smartresponse__info__header">\r
|
|
9537
|
+
{{strings.header}}\r
|
|
9538
|
+
</h4>\r
|
|
9539
|
+
{{/if}}\r
|
|
9540
|
+
<div class="smartresponse__info__summary">\r
|
|
9541
|
+
{{#if summary}}\r
|
|
9542
|
+
{{#if summary.recommendation}}\r
|
|
9543
|
+
<div class="row">\r
|
|
9544
|
+
{{html summary.recommendation}}\r
|
|
9545
|
+
</div>\r
|
|
9546
|
+
{{/if}}\r
|
|
9547
|
+
{{#if summary.products}}\r
|
|
9548
|
+
<ul class="row">\r
|
|
9549
|
+
{{#each summary.products}}\r
|
|
9550
|
+
<li>\r
|
|
9551
|
+
<a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{name}}">\r
|
|
9552
|
+
<img hawksearch-image src="{{imageUrl}}" alt="" />\r
|
|
9553
|
+
</a>\r
|
|
9554
|
+
<div class="search-results-list__item__title">\r
|
|
9555
|
+
<a hawksearch-link href="{{url}}">{{name}}</a>\r
|
|
9556
|
+
</div>\r
|
|
9557
|
+
</li>\r
|
|
9558
|
+
{{/each}}\r
|
|
9559
|
+
</ul>\r
|
|
9560
|
+
{{else}}\r
|
|
9561
|
+
{{#if summary.nosources}}\r
|
|
9562
|
+
<p>{{strings.nosources}}</p>\r
|
|
9563
|
+
{{/if}}\r
|
|
9564
|
+
{{/if}}\r
|
|
9565
|
+
{{/if}}\r
|
|
9566
|
+
</div>\r
|
|
9567
|
+
</div>\r
|
|
9568
|
+
<div class="smartresponse__actions">\r
|
|
9569
|
+
<div class="switch{{attribute ' on' active}}" smartresponse-switch></div>\r
|
|
9570
|
+
</div>\r
|
|
9571
9571
|
</span>`;
|
|
9572
9572
|
class SmartResponseComponent extends BaseComponent {
|
|
9573
9573
|
constructor() {
|
|
@@ -9729,7 +9729,7 @@ class SmartResponseComponent extends BaseComponent {
|
|
|
9729
9729
|
return cleanResults.slice(0, max);
|
|
9730
9730
|
}
|
|
9731
9731
|
}
|
|
9732
|
-
const defaultHtml$4 = '<div class="sorting">\n <select hawksearch-sort>\n {{#each options}}\n {{#if selected}}\n <option value="{{value}}" selected>{{title}}</option>\n {{else}}\n <option value="{{value}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>';
|
|
9732
|
+
const defaultHtml$4 = '<div class="sorting">\r\n <select hawksearch-sort>\r\n {{#each options}}\r\n {{#if selected}}\r\n <option value="{{value}}" selected>{{title}}</option>\r\n {{else}}\r\n <option value="{{value}}">{{title}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n</div>';
|
|
9733
9733
|
class SortingComponent extends BaseComponent {
|
|
9734
9734
|
constructor() {
|
|
9735
9735
|
super(...arguments);
|
|
@@ -9758,13 +9758,13 @@ class SortingComponent extends BaseComponent {
|
|
|
9758
9758
|
});
|
|
9759
9759
|
}
|
|
9760
9760
|
}
|
|
9761
|
-
const defaultHtml$3 = `<ul class="tabs{{attribute ' tabs--list' (gt tabs.length 4)}}"
|
|
9762
|
-
{{#each tabs}}
|
|
9763
|
-
<li class="tabs__item{{attribute ' tabs__item--selected' selected}}" hawksearch-tab-value="{{value}}"
|
|
9764
|
-
{{title}}
|
|
9765
|
-
{{#if @root.displayCount}}({{count}}){{/if}}
|
|
9766
|
-
</li
|
|
9767
|
-
{{/each}}
|
|
9761
|
+
const defaultHtml$3 = `<ul class="tabs{{attribute ' tabs--list' (gt tabs.length 4)}}">\r
|
|
9762
|
+
{{#each tabs}}\r
|
|
9763
|
+
<li class="tabs__item{{attribute ' tabs__item--selected' selected}}" hawksearch-tab-value="{{value}}">\r
|
|
9764
|
+
{{title}}\r
|
|
9765
|
+
{{#if @root.displayCount}}({{count}}){{/if}}\r
|
|
9766
|
+
</li>\r
|
|
9767
|
+
{{/each}}\r
|
|
9768
9768
|
</ul>`;
|
|
9769
9769
|
class TabsComponent extends BaseComponent {
|
|
9770
9770
|
constructor() {
|
|
@@ -9795,7 +9795,7 @@ class TabsComponent extends BaseComponent {
|
|
|
9795
9795
|
});
|
|
9796
9796
|
}
|
|
9797
9797
|
}
|
|
9798
|
-
const defaultHtml$2 = '<div class="unifiedsearch-field">\n <input type="text" hawksearch-input hawksearch-unified-search value="{{query}}" placeholder="{{strings.placeholder}}" />\n <hawksearch-autocomplete></hawksearch-autocomplete>\n</div>\n';
|
|
9798
|
+
const defaultHtml$2 = '<div class="unifiedsearch-field">\r\n <input type="text" hawksearch-input hawksearch-unified-search value="{{query}}" placeholder="{{strings.placeholder}}" />\r\n <hawksearch-autocomplete></hawksearch-autocomplete>\r\n</div>\r\n';
|
|
9799
9799
|
class UnifiedSearchFieldComponent extends BaseComponent {
|
|
9800
9800
|
constructor() {
|
|
9801
9801
|
super(...arguments);
|
|
@@ -9972,7 +9972,7 @@ class UnifiedSearchFieldComponent extends BaseComponent {
|
|
|
9972
9972
|
}
|
|
9973
9973
|
}
|
|
9974
9974
|
}
|
|
9975
|
-
const defaultHtml$1 = '<div class="visualsearch-field">\n <div class="visualsearch-field__drop-area" hawksearch-visualsearch-droparea>\n <div class="visualsearch-field__drop-area__image-display" hawksearch-visualsearch-display></div>\n <p class="visualsearch-field__drop-area__prompt-msg">\n {{strings.dragImageMessage}}\n <label class="visualsearch-field__drop-area__upload-button">\n <input hawksearch-visualsearch-fileinput type="file" accept="image/*" capture="environment" />\n {{strings.uploadImageMessage}}\n </label>\n </p>\n <p class="visualsearch-field__drop-area__drop-msg">{{strings.dropImageMessage}}</p>\n </div>\n</div>';
|
|
9975
|
+
const defaultHtml$1 = '<div class="visualsearch-field">\r\n <div class="visualsearch-field__drop-area" hawksearch-visualsearch-droparea>\r\n <div class="visualsearch-field__drop-area__image-display" hawksearch-visualsearch-display></div>\r\n <p class="visualsearch-field__drop-area__prompt-msg">\r\n {{strings.dragImageMessage}}\r\n <label class="visualsearch-field__drop-area__upload-button">\r\n <input hawksearch-visualsearch-fileinput type="file" accept="image/*" capture="environment" />\r\n {{strings.uploadImageMessage}}\r\n </label>\r\n </p>\r\n <p class="visualsearch-field__drop-area__drop-msg">{{strings.dropImageMessage}}</p>\r\n </div>\r\n</div>';
|
|
9976
9976
|
class VisualSearchFieldComponent extends BaseComponent {
|
|
9977
9977
|
constructor() {
|
|
9978
9978
|
super(...arguments);
|
|
@@ -9991,23 +9991,43 @@ class VisualSearchFieldComponent extends BaseComponent {
|
|
|
9991
9991
|
return;
|
|
9992
9992
|
const reader = new FileReader();
|
|
9993
9993
|
reader.onload = (e) => {
|
|
9994
|
-
var _a2;
|
|
9995
9994
|
const img = new Image();
|
|
9996
|
-
|
|
9995
|
+
const tmpImage = new Image();
|
|
9996
|
+
tmpImage.onload = () => {
|
|
9997
|
+
var _a2, _b;
|
|
9998
|
+
const isAvif = file && file.type === "image/avif";
|
|
9999
|
+
if (isAvif) {
|
|
10000
|
+
const canvas = document.createElement("canvas");
|
|
10001
|
+
canvas.width = tmpImage.width;
|
|
10002
|
+
canvas.height = tmpImage.height;
|
|
10003
|
+
const ctx = canvas.getContext("2d");
|
|
10004
|
+
if (ctx) {
|
|
10005
|
+
ctx.drawImage(tmpImage, 0, 0);
|
|
10006
|
+
const jpegBase64 = canvas.toDataURL("image/jpeg", 0.95);
|
|
10007
|
+
img.src = jpegBase64;
|
|
10008
|
+
}
|
|
10009
|
+
} else {
|
|
10010
|
+
img.src = reader.result;
|
|
10011
|
+
}
|
|
10012
|
+
const base64Data = img.src;
|
|
10013
|
+
if (base64Data) {
|
|
10014
|
+
this.previousValue = base64Data;
|
|
10015
|
+
if (((_a2 = HawkSearch.config.search) == null ? void 0 : _a2.url) && window.location.pathname !== ((_b = HawkSearch.config.search) == null ? void 0 : _b.url)) {
|
|
10016
|
+
localStorage.setItem("hawkimagedata", this.previousValue);
|
|
10017
|
+
}
|
|
10018
|
+
HawkSearch.services.search.query({
|
|
10019
|
+
queryString: base64Data,
|
|
10020
|
+
requestType: "ImageData"
|
|
10021
|
+
});
|
|
10022
|
+
}
|
|
10023
|
+
};
|
|
10024
|
+
tmpImage.src = reader.result;
|
|
9997
10025
|
this.rootElement.querySelectorAll("[hawksearch-visualsearch-display]").forEach((e2) => {
|
|
9998
10026
|
if (e2.lastChild) {
|
|
9999
10027
|
e2.removeChild(e2.lastChild);
|
|
10000
10028
|
}
|
|
10001
10029
|
e2.appendChild(img);
|
|
10002
10030
|
});
|
|
10003
|
-
const base64Data = (_a2 = e.target) == null ? void 0 : _a2.result;
|
|
10004
|
-
if (base64Data) {
|
|
10005
|
-
this.previousValue = base64Data;
|
|
10006
|
-
HawkSearch.services.search.query({
|
|
10007
|
-
queryString: base64Data,
|
|
10008
|
-
requestType: "ImageData"
|
|
10009
|
-
});
|
|
10010
|
-
}
|
|
10011
10031
|
};
|
|
10012
10032
|
reader.onerror = (error) => {
|
|
10013
10033
|
this.triggerUploadFailed("file_read_unsuccessful", { error });
|
|
@@ -10098,22 +10118,22 @@ class VisualSearchFieldComponent extends BaseComponent {
|
|
|
10098
10118
|
});
|
|
10099
10119
|
}
|
|
10100
10120
|
}
|
|
10101
|
-
const defaultHtml = `{{#if (arrayHasObjectsWithValue items "color")}}
|
|
10102
|
-
<div class="variant-selector-list"
|
|
10103
|
-
{{#each (arrayFilterObjects items "color")}}
|
|
10104
|
-
<div
|
|
10105
|
-
hawksearch-variant="{{id}}"
|
|
10106
|
-
class="variant-selector-list__item{{attribute ' variant-selector-list__item--selected' (eq id @root.selectedItem.id)}}"
|
|
10107
|
-
title="{{color.name}}"
|
|
10108
|
-
|
|
10109
|
-
{{#if color.imageUrl}}
|
|
10110
|
-
<img src="{{color.imageUrl}}" class="variant-selector-list__item__image" alt="{{color.name}}" title="{{color.name}}"
|
|
10111
|
-
{{else}}
|
|
10112
|
-
<div class="variant-selector-list__item__box" style="background: {{color.hex}};"></div
|
|
10113
|
-
{{/if}}
|
|
10114
|
-
</div
|
|
10115
|
-
{{/each}}
|
|
10116
|
-
</div
|
|
10121
|
+
const defaultHtml = `{{#if (arrayHasObjectsWithValue items "color")}}\r
|
|
10122
|
+
<div class="variant-selector-list">\r
|
|
10123
|
+
{{#each (arrayFilterObjects items "color")}}\r
|
|
10124
|
+
<div\r
|
|
10125
|
+
hawksearch-variant="{{id}}"\r
|
|
10126
|
+
class="variant-selector-list__item{{attribute ' variant-selector-list__item--selected' (eq id @root.selectedItem.id)}}"\r
|
|
10127
|
+
title="{{color.name}}"\r
|
|
10128
|
+
>\r
|
|
10129
|
+
{{#if color.imageUrl}}\r
|
|
10130
|
+
<img src="{{color.imageUrl}}" class="variant-selector-list__item__image" alt="{{color.name}}" title="{{color.name}}" />\r
|
|
10131
|
+
{{else}}\r
|
|
10132
|
+
<div class="variant-selector-list__item__box" style="background: {{color.hex}};"></div>\r
|
|
10133
|
+
{{/if}}\r
|
|
10134
|
+
</div>\r
|
|
10135
|
+
{{/each}}\r
|
|
10136
|
+
</div>\r
|
|
10117
10137
|
{{/if}}`;
|
|
10118
10138
|
class VariantSelectorComponent extends BaseComponent {
|
|
10119
10139
|
constructor() {
|
|
@@ -10989,6 +11009,10 @@ class SearchService extends BaseService {
|
|
|
10989
11009
|
const performImageSearch = searchRequest.requestType === "ImageData";
|
|
10990
11010
|
const rawRequestQuery = performImageSearch ? "ImageData" : searchRequest.requestType === "ImageSearch" ? "ImageText" : "Keyword";
|
|
10991
11011
|
const rawRequestType = performImageSearch ? "ImageSearch" : searchRequest.requestType;
|
|
11012
|
+
if (rawRequestType === "ImageSearch" && localStorage.getItem("hawkimagedata")) {
|
|
11013
|
+
searchRequest.query = String(localStorage.getItem("hawkimagedata") ?? "");
|
|
11014
|
+
localStorage.removeItem("hawkimagedata");
|
|
11015
|
+
}
|
|
10992
11016
|
const rawSearchRequest = {
|
|
10993
11017
|
ClientData: {
|
|
10994
11018
|
UserAgent: window.navigator.userAgent,
|