@coveo/atomic-react 3.11.42 → 3.11.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ai.svg +1 -1
- package/dist/assets/ai_model_generative.svg +1 -0
- package/dist/assets/attachment.svg +1 -1
- package/dist/assets/audio.svg +1 -1
- package/dist/assets/box_notes.svg +1 -1
- package/dist/assets/css.svg +1 -1
- package/dist/assets/csv.svg +1 -1
- package/dist/assets/eps.svg +1 -1
- package/dist/assets/excel.svg +1 -1
- package/dist/assets/exe.svg +1 -1
- package/dist/assets/flash.svg +1 -1
- package/dist/assets/gdoc.svg +1 -1
- package/dist/assets/gdocs.svg +1 -1
- package/dist/assets/gform.svg +1 -1
- package/dist/assets/gpres.svg +1 -1
- package/dist/assets/gsheet.svg +1 -1
- package/dist/assets/html.svg +1 -1
- package/dist/assets/image.svg +1 -1
- package/dist/assets/in_queue_experience.svg +1 -0
- package/dist/assets/initiate_external_transfer.svg +1 -0
- package/dist/assets/keynote.svg +1 -1
- package/dist/assets/mp4.svg +1 -1
- package/dist/assets/outbound_call.svg +1 -0
- package/dist/assets/overlay.svg +1 -1
- package/dist/assets/pack.svg +1 -1
- package/dist/assets/pages.svg +1 -1
- package/dist/assets/pdf.svg +1 -1
- package/dist/assets/ppt.svg +1 -1
- package/dist/assets/psd.svg +1 -1
- package/dist/assets/quip_doc.svg +1 -1
- package/dist/assets/quip_slide.svg +1 -1
- package/dist/assets/rfp_record.svg +1 -0
- package/dist/assets/rtf.svg +1 -1
- package/dist/assets/slack_canvas.svg +1 -1
- package/dist/assets/slack_list_item.svg +1 -1
- package/dist/assets/slack_lists.svg +1 -1
- package/dist/assets/slide.svg +1 -1
- package/dist/assets/stypi.svg +1 -1
- package/dist/assets/suggested_for_you.svg +1 -0
- package/dist/assets/txt.svg +1 -1
- package/dist/assets/unknown.svg +1 -1
- package/dist/assets/vcf.svg +1 -0
- package/dist/assets/visio.svg +1 -1
- package/dist/assets/voicemail_drop.svg +1 -0
- package/dist/assets/webex.svg +1 -1
- package/dist/assets/word.svg +1 -1
- package/dist/assets/xml.svg +1 -1
- package/dist/assets/zip.svg +1 -1
- package/dist/cjs/atomic-react.cjs +186 -68
- package/dist/cjs/atomic-react.cjs.map +1 -1
- package/dist/cjs/commerce/atomic-react.cjs +96 -26
- package/dist/cjs/commerce/atomic-react.cjs.map +1 -1
- package/dist/cjs/recommendation/atomic-react.cjs +186 -68
- package/dist/cjs/recommendation/atomic-react.cjs.map +1 -1
- package/package.json +4 -4
|
@@ -605,7 +605,7 @@ const renderBreadcrumbContainer = ({ props })=>(children)=>{
|
|
|
605
605
|
</div>`;
|
|
606
606
|
};
|
|
607
607
|
|
|
608
|
-
/*! @license DOMPurify 3.4.
|
|
608
|
+
/*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
|
|
609
609
|
|
|
610
610
|
function _arrayLikeToArray(r, a) {
|
|
611
611
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -1077,7 +1077,7 @@ const _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallbac
|
|
|
1077
1077
|
function createDOMPurify() {
|
|
1078
1078
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
1079
1079
|
const DOMPurify = root => createDOMPurify(root);
|
|
1080
|
-
DOMPurify.version = '3.4.
|
|
1080
|
+
DOMPurify.version = '3.4.15';
|
|
1081
1081
|
DOMPurify.removed = [];
|
|
1082
1082
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
1083
1083
|
// Not running in a browser, provide a factory function
|
|
@@ -1101,6 +1101,12 @@ function createDOMPurify() {
|
|
|
1101
1101
|
const ElementPrototype = Element.prototype;
|
|
1102
1102
|
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
|
1103
1103
|
const remove = lookupGetter(ElementPrototype, 'remove');
|
|
1104
|
+
// Clobber-safe Attr-node removal. On an HTMLFormElement a descendant named
|
|
1105
|
+
// "removeAttributeNode" shadows the prototype method via
|
|
1106
|
+
// [LegacyOverrideBuiltIns], so element.removeAttributeNode(attr) throws.
|
|
1107
|
+
// Calling the cached Element.prototype method with the element as the
|
|
1108
|
+
// receiver removes the exact live Attr node regardless of the shadowing.
|
|
1109
|
+
const removeAttributeNode = lookupGetter(ElementPrototype, 'removeAttributeNode');
|
|
1104
1110
|
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
|
1105
1111
|
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
|
1106
1112
|
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
|
@@ -1765,7 +1771,7 @@ function createDOMPurify() {
|
|
|
1765
1771
|
*/
|
|
1766
1772
|
const _stripAttributeNode = function _stripAttributeNode(element, attribute, name) {
|
|
1767
1773
|
try {
|
|
1768
|
-
|
|
1774
|
+
removeAttributeNode(element, attribute);
|
|
1769
1775
|
} catch (_) {
|
|
1770
1776
|
try {
|
|
1771
1777
|
element.removeAttribute(name);
|
|
@@ -1853,13 +1859,18 @@ function createDOMPurify() {
|
|
|
1853
1859
|
});
|
|
1854
1860
|
try {
|
|
1855
1861
|
if (attr) {
|
|
1856
|
-
|
|
1862
|
+
removeAttributeNode(element, attr);
|
|
1857
1863
|
} else {
|
|
1858
1864
|
element.removeAttribute(name);
|
|
1859
1865
|
}
|
|
1860
1866
|
} catch (_) {
|
|
1861
1867
|
/* Clobbered or already-detached node - best-effort fall back to a
|
|
1862
|
-
name-based removal so the "is" handling below still runs.
|
|
1868
|
+
name-based removal so the "is" handling below still runs. Note this
|
|
1869
|
+
fallback ASCII-lowercases its lookup key in an HTML document and so
|
|
1870
|
+
cannot reach a case-preserved attribute name; the cached
|
|
1871
|
+
removeAttributeNode() above is what removes those, and a clobbered
|
|
1872
|
+
form is already removed wholesale by _isClobbered() before reaching
|
|
1873
|
+
here. */
|
|
1863
1874
|
try {
|
|
1864
1875
|
element.removeAttribute(name);
|
|
1865
1876
|
} catch (_) {}
|
|
@@ -2195,7 +2206,17 @@ function createDOMPurify() {
|
|
|
2195
2206
|
// makes the direct read diverge from the cached read; a clean form
|
|
2196
2207
|
// (same-realm OR foreign-realm) has both reads pointing at the same
|
|
2197
2208
|
// canonical NamedNodeMap.
|
|
2198
|
-
element.attributes !== getAttributes(element) || typeof element.removeAttribute !== 'function' ||
|
|
2209
|
+
element.attributes !== getAttributes(element) || typeof element.removeAttribute !== 'function' ||
|
|
2210
|
+
// A form descendant named "removeAttributeNode" or "getAttributeNode"
|
|
2211
|
+
// shadows these Attr-node methods via [LegacyOverrideBuiltIns].
|
|
2212
|
+
// _removeAttribute() / _stripAttributeNode() reach for
|
|
2213
|
+
// element.removeAttributeNode(attr) first; when it is shadowed the call
|
|
2214
|
+
// throws and the name-based fallback element.removeAttribute(name)
|
|
2215
|
+
// ASCII-lowercases its lookup key in an HTML document, silently missing
|
|
2216
|
+
// a case-preserved event-handler attribute (e.g. an ONANIMATIONSTART
|
|
2217
|
+
// that reached the sanitizer through an XML/XHTML parse). Flag the form
|
|
2218
|
+
// so it is removed wholesale, exactly as for the other shadowed methods.
|
|
2219
|
+
typeof element.removeAttributeNode !== 'function' || typeof element.getAttributeNode !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function' ||
|
|
2199
2220
|
// NodeType clobbering probe. Cached Node.prototype.nodeType getter
|
|
2200
2221
|
// returns the integer 1 for any Element regardless of realm; direct
|
|
2201
2222
|
// read on a clobbered form (e.g. <input name="nodeType">) returns
|
|
@@ -2686,15 +2707,25 @@ function createDOMPurify() {
|
|
|
2686
2707
|
/**
|
|
2687
2708
|
* Write a modified attribute value back onto the element. On
|
|
2688
2709
|
* success, re-probe for clobbering introduced by the new value and
|
|
2689
|
-
* remove the element when found; otherwise
|
|
2690
|
-
*
|
|
2691
|
-
*
|
|
2710
|
+
* remove the element when found; otherwise, when this writeback is the
|
|
2711
|
+
* recreate half of the SANITIZE_NAMED_PROPS remove-and-recreate, pop the
|
|
2712
|
+
* removal entry that path recorded so it does not show as removed. On
|
|
2692
2713
|
* failure, remove the attribute instead.
|
|
2693
2714
|
*
|
|
2715
|
+
* Returns true only on a clean write (the value was set and the new value
|
|
2716
|
+
* introduced no clobbering). The caller uses that, together with its own
|
|
2717
|
+
* knowledge of whether this attribute pushed a DOMPurify.removed record, to
|
|
2718
|
+
* decide whether to pop that record. The pop must happen ONLY for the
|
|
2719
|
+
* named-prop remove-and-recreate; popping on any other value change (trim,
|
|
2720
|
+
* template scrubbing, Trusted Types) would consume an unrelated _forceRemove
|
|
2721
|
+
* subtree-cleanup record and let that detached subtree keep a live event
|
|
2722
|
+
* handler through the IN_PLACE neutralization pass (SO-001).
|
|
2723
|
+
*
|
|
2694
2724
|
* @param currentNode the element carrying the attribute
|
|
2695
2725
|
* @param name the attribute name as present on the element
|
|
2696
2726
|
* @param namespaceURI the attribute's namespace, if any
|
|
2697
2727
|
* @param value the new attribute value
|
|
2728
|
+
* @return true if the value was written without introducing clobbering
|
|
2698
2729
|
*/
|
|
2699
2730
|
const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
|
|
2700
2731
|
try {
|
|
@@ -2706,11 +2737,12 @@ function createDOMPurify() {
|
|
|
2706
2737
|
}
|
|
2707
2738
|
if (_isClobbered(currentNode)) {
|
|
2708
2739
|
_forceRemove(currentNode);
|
|
2709
|
-
|
|
2710
|
-
arrayPop(DOMPurify.removed);
|
|
2740
|
+
return false;
|
|
2711
2741
|
}
|
|
2742
|
+
return true;
|
|
2712
2743
|
} catch (_) {
|
|
2713
2744
|
_removeAttribute(name, currentNode);
|
|
2745
|
+
return false;
|
|
2714
2746
|
}
|
|
2715
2747
|
};
|
|
2716
2748
|
/**
|
|
@@ -2723,6 +2755,7 @@ function createDOMPurify() {
|
|
|
2723
2755
|
*
|
|
2724
2756
|
* @param currentNode to sanitize
|
|
2725
2757
|
*/
|
|
2758
|
+
// eslint-disable-next-line complexity
|
|
2726
2759
|
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
|
2727
2760
|
/* Execute a hook if present */
|
|
2728
2761
|
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
@@ -2752,6 +2785,15 @@ function createDOMPurify() {
|
|
|
2752
2785
|
const lcName = transformCaseFunc(name);
|
|
2753
2786
|
const initValue = attrValue;
|
|
2754
2787
|
let value = name === 'value' ? initValue : stringTrim(initValue);
|
|
2788
|
+
/* Tracks whether this specific attribute pushed a DOMPurify.removed
|
|
2789
|
+
record that a later _setAttributeValue() writeback is expected to pop
|
|
2790
|
+
back off (the SANITIZE_NAMED_PROPS remove-and-recreate below is the
|
|
2791
|
+
only path that does). A value that merely changed via trim, template
|
|
2792
|
+
scrubbing, or Trusted Types pushes no such record, so its writeback
|
|
2793
|
+
must NOT pop — otherwise it consumes an unrelated _forceRemove subtree
|
|
2794
|
+
record and that detached subtree escapes the IN_PLACE handler-
|
|
2795
|
+
neutralization pass (SO-001). */
|
|
2796
|
+
let recreatedNamedProp = false;
|
|
2755
2797
|
/* Execute a hook if present */
|
|
2756
2798
|
hookEvent.attrName = lcName;
|
|
2757
2799
|
hookEvent.attrValue = value;
|
|
@@ -2767,6 +2809,9 @@ function createDOMPurify() {
|
|
|
2767
2809
|
_removeAttribute(name, currentNode, attr);
|
|
2768
2810
|
// Prefix the value and later re-create the attribute with the sanitized value
|
|
2769
2811
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
2812
|
+
// This attribute owns the record just pushed; its recreate writeback
|
|
2813
|
+
// is the one allowed to pop it back off.
|
|
2814
|
+
recreatedNamedProp = true;
|
|
2770
2815
|
}
|
|
2771
2816
|
// Else: already prefixed, leave the attribute alone — the prefix is
|
|
2772
2817
|
// itself the clobbering protection, and re-applying it is incorrect.
|
|
@@ -2807,7 +2852,14 @@ function createDOMPurify() {
|
|
|
2807
2852
|
value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
|
|
2808
2853
|
/* Handle invalid data-* attribute set by try-catching it */
|
|
2809
2854
|
if (value !== initValue) {
|
|
2810
|
-
_setAttributeValue(currentNode, name, namespaceURI, value);
|
|
2855
|
+
const cleanWrite = _setAttributeValue(currentNode, name, namespaceURI, value);
|
|
2856
|
+
/* Only the named-prop remove-and-recreate owns a DOMPurify.removed
|
|
2857
|
+
record to pop; a plain trim/template/Trusted-Types writeback owns
|
|
2858
|
+
none, so popping here would drop an unrelated subtree's cleanup
|
|
2859
|
+
record (SO-001). */
|
|
2860
|
+
if (cleanWrite && recreatedNamedProp) {
|
|
2861
|
+
arrayPop(DOMPurify.removed);
|
|
2862
|
+
}
|
|
2811
2863
|
}
|
|
2812
2864
|
}
|
|
2813
2865
|
/* Execute a hook if present */
|
|
@@ -3083,8 +3135,15 @@ function createDOMPurify() {
|
|
|
3083
3135
|
them before the main iterator runs, since the iterator does not
|
|
3084
3136
|
descend into shadow trees. The walk routes every read through a
|
|
3085
3137
|
cached prototype getter so clobbering descendants on a form root
|
|
3086
|
-
cannot hide a shadow host from this pass.
|
|
3087
|
-
|
|
3138
|
+
cannot hide a shadow host from this pass.
|
|
3139
|
+
Traverse from `body`, not `importedNode`: when importedNode is a
|
|
3140
|
+
DocumentFragment, the appendChild() above moves its children into
|
|
3141
|
+
`body` and leaves the fragment empty, so walking importedNode would
|
|
3142
|
+
scan nothing and miss every attached shadow host now under `body`
|
|
3143
|
+
(SO-003). In the BODY/HTML branches `body === importedNode`, so this
|
|
3144
|
+
is equivalent there; in the element branch `body` contains the
|
|
3145
|
+
appended element and its descendants. `body` covers all three. */
|
|
3146
|
+
_sanitizeAttachedShadowRoots(body);
|
|
3088
3147
|
} else {
|
|
3089
3148
|
/* Exit directly if we have nothing to do */
|
|
3090
3149
|
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
|
@@ -5092,7 +5151,7 @@ const renderCategoryFacetSearchValue = ({ props })=>{
|
|
|
5092
5151
|
|
|
5093
5152
|
const renderCategoryFacetTreeValueContainer = ()=>(children)=>lit.html`<li class="contents">${children}</li>`;
|
|
5094
5153
|
|
|
5095
|
-
const styles$r = lit.css`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.value-count{margin-left:calc(var(--spacing,.25rem)*1.5);color:var(--atomic-neutral-dark)}[part=value-exclude-button]+.value-count{margin-right:calc(var(--spacing,.25rem)*2)}:host(.popover-nested){min-width:var(--container-2xs,18rem)}:host(.popover-nested)::part(label-button){display:none}:host(.popover-nested)::part(facet){--tw-shadow:0px 2px 8px var(--tw-shadow-color,#e5e8e8bf);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:host(.popover-nested)::part(values){max-height:calc(var(--spacing,.25rem)*96);margin-top:0;overflow-y:auto}:host(.popover-nested)::part(search-wrapper){margin-bottom:calc(var(--spacing,.25rem)*2)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`;
|
|
5154
|
+
const styles$r = lit.css`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.value-count{margin-left:calc(var(--spacing,.25rem)*1.5);color:var(--atomic-neutral-dark)}[part=value-exclude-button]+.value-count{margin-right:calc(var(--spacing,.25rem)*2)}:host(:state(hidden)){display:none}:host(.popover-nested){min-width:var(--container-2xs,18rem)}:host(.popover-nested)::part(label-button){display:none}:host(.popover-nested)::part(facet){--tw-shadow:0px 2px 8px var(--tw-shadow-color,#e5e8e8bf);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:host(.popover-nested)::part(values){max-height:calc(var(--spacing,.25rem)*96);margin-top:0;overflow-y:auto}:host(.popover-nested)::part(search-wrapper){margin-bottom:calc(var(--spacing,.25rem)*2)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`;
|
|
5096
5155
|
const facet_common_tw_css = styles$r;
|
|
5097
5156
|
|
|
5098
5157
|
const styles$q = lit.css`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */input[type=text]:focus-visible~.search-icon{color:var(--atomic-primary)}input[type=text]:hover~.search-icon{color:var(--atomic-primary-light)}.search-icon atomic-icon{width:var(--atomic-facet-search-icon-size,.75rem);height:var(--atomic-facet-search-icon-size,.75rem)}.search-clear-button atomic-icon{width:var(--atomic-facet-search-clear-icon-size,.625rem);height:var(--atomic-facet-search-clear-icon-size,.625rem)}`;
|
|
@@ -7252,7 +7311,7 @@ class Interpolator {
|
|
|
7252
7311
|
interpolationkey: match[1].trim()
|
|
7253
7312
|
}), value.trim());
|
|
7254
7313
|
}
|
|
7255
|
-
str = str.replace(match[0], value);
|
|
7314
|
+
str = str.replace(match[0], regexSafe(makeString(value)));
|
|
7256
7315
|
this.regexp.lastIndex = 0;
|
|
7257
7316
|
}
|
|
7258
7317
|
return str;
|
|
@@ -8302,7 +8361,7 @@ function getWindow$1() {
|
|
|
8302
8361
|
}
|
|
8303
8362
|
function getAtomicEnvironment(headlessVersion) {
|
|
8304
8363
|
return {
|
|
8305
|
-
version: "3.61.
|
|
8364
|
+
version: "3.61.4",
|
|
8306
8365
|
headlessVersion
|
|
8307
8366
|
};
|
|
8308
8367
|
}
|
|
@@ -8529,7 +8588,7 @@ function isSafeUrlSegmentBase(v) {
|
|
|
8529
8588
|
if (UNSAFE_KEYS$1.indexOf(v) > -1) return false;
|
|
8530
8589
|
if (v.indexOf("..") > -1) return false;
|
|
8531
8590
|
if (v.indexOf("\\") > -1) return false;
|
|
8532
|
-
if (/[
|
|
8591
|
+
if (/[?#%:\s]/.test(v)) return false;
|
|
8533
8592
|
if (/[\x00-\x1F\x7F]/.test(v)) return false;
|
|
8534
8593
|
return true;
|
|
8535
8594
|
}
|
|
@@ -8539,7 +8598,9 @@ function isSafeLangUrlSegment(v) {
|
|
|
8539
8598
|
return true;
|
|
8540
8599
|
}
|
|
8541
8600
|
function isSafeNsUrlSegment(v) {
|
|
8542
|
-
|
|
8601
|
+
if (!isSafeUrlSegmentBase(v)) return false;
|
|
8602
|
+
if (v.indexOf("//") > -1) return false;
|
|
8603
|
+
return true;
|
|
8543
8604
|
}
|
|
8544
8605
|
const SAFETY_CHECK_BY_KEY = {
|
|
8545
8606
|
lng: isSafeLangUrlSegment,
|
|
@@ -12617,7 +12678,7 @@ var attachStyles = (hostRef) => {
|
|
|
12617
12678
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
12618
12679
|
const elm = hostRef.$hostElement$;
|
|
12619
12680
|
const flags = cmpMeta.$flags$;
|
|
12620
|
-
createTime("attachStyles", cmpMeta.$tagName$);
|
|
12681
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
12621
12682
|
const scopeId2 = addStyle(
|
|
12622
12683
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
12623
12684
|
cmpMeta,
|
|
@@ -12630,6 +12691,7 @@ var attachStyles = (hostRef) => {
|
|
|
12630
12691
|
elm.classList.add(scopeId2 + "-s");
|
|
12631
12692
|
}
|
|
12632
12693
|
}
|
|
12694
|
+
endAttachStyles();
|
|
12633
12695
|
};
|
|
12634
12696
|
var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
12635
12697
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
@@ -13311,7 +13373,7 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
13311
13373
|
};
|
|
13312
13374
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
13313
13375
|
const elm = hostRef.$hostElement$;
|
|
13314
|
-
createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
13376
|
+
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
13315
13377
|
const instance = elm;
|
|
13316
13378
|
if (!instance) {
|
|
13317
13379
|
throw new Error(
|
|
@@ -13331,6 +13393,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
13331
13393
|
{
|
|
13332
13394
|
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
13333
13395
|
}
|
|
13396
|
+
endSchedule();
|
|
13334
13397
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
13335
13398
|
};
|
|
13336
13399
|
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
@@ -13340,15 +13403,17 @@ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then
|
|
|
13340
13403
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
13341
13404
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
13342
13405
|
const elm = hostRef.$hostElement$;
|
|
13343
|
-
createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
13406
|
+
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
13344
13407
|
elm["s-rc"];
|
|
13345
13408
|
if (isInitialLoad) {
|
|
13346
13409
|
attachStyles(hostRef);
|
|
13347
13410
|
}
|
|
13348
|
-
createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
13411
|
+
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
13349
13412
|
{
|
|
13350
13413
|
callRender(hostRef, instance, elm, isInitialLoad);
|
|
13351
13414
|
}
|
|
13415
|
+
endRender();
|
|
13416
|
+
endUpdate();
|
|
13352
13417
|
{
|
|
13353
13418
|
postUpdateComponent(hostRef);
|
|
13354
13419
|
}
|
|
@@ -13382,8 +13447,9 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
13382
13447
|
return null;
|
|
13383
13448
|
};
|
|
13384
13449
|
var postUpdateComponent = (hostRef) => {
|
|
13385
|
-
hostRef.$cmpMeta$.$tagName$;
|
|
13450
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
13386
13451
|
const elm = hostRef.$hostElement$;
|
|
13452
|
+
const endPostUpdate = createTime("postUpdate", tagName);
|
|
13387
13453
|
const instance = elm;
|
|
13388
13454
|
hostRef.$ancestorComponent$;
|
|
13389
13455
|
{
|
|
@@ -13394,10 +13460,12 @@ var postUpdateComponent = (hostRef) => {
|
|
|
13394
13460
|
{
|
|
13395
13461
|
safeCall(instance, "componentDidLoad");
|
|
13396
13462
|
}
|
|
13463
|
+
endPostUpdate();
|
|
13397
13464
|
} else {
|
|
13398
13465
|
{
|
|
13399
13466
|
safeCall(instance, "componentDidUpdate");
|
|
13400
13467
|
}
|
|
13468
|
+
endPostUpdate();
|
|
13401
13469
|
}
|
|
13402
13470
|
};
|
|
13403
13471
|
var safeCall = (instance, method, arg) => {
|
|
@@ -13544,8 +13612,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
13544
13612
|
}
|
|
13545
13613
|
const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
13546
13614
|
if (!styles$h.has(scopeId2)) {
|
|
13547
|
-
createTime("registerStyles", cmpMeta.$tagName$);
|
|
13615
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
13548
13616
|
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
13617
|
+
endRegisterStyles();
|
|
13549
13618
|
}
|
|
13550
13619
|
}
|
|
13551
13620
|
}
|
|
@@ -13563,7 +13632,7 @@ var connectedCallback = (elm) => {
|
|
|
13563
13632
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
13564
13633
|
const hostRef = getHostRef(elm);
|
|
13565
13634
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
13566
|
-
createTime("connectedCallback", cmpMeta.$tagName$);
|
|
13635
|
+
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
13567
13636
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
13568
13637
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
13569
13638
|
{
|
|
@@ -13592,6 +13661,7 @@ var connectedCallback = (elm) => {
|
|
|
13592
13661
|
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
13593
13662
|
}
|
|
13594
13663
|
}
|
|
13664
|
+
endConnected();
|
|
13595
13665
|
}
|
|
13596
13666
|
};
|
|
13597
13667
|
var setContentReference = (elm) => {
|
|
@@ -21850,6 +21920,18 @@ function initializePopover(host, childFacet) {
|
|
|
21850
21920
|
host.dispatchEvent(buildCustomEvent('atomic/initializePopover', childFacet));
|
|
21851
21921
|
}
|
|
21852
21922
|
|
|
21923
|
+
class FacetVisibilityController {
|
|
21924
|
+
hostUpdate() {
|
|
21925
|
+
if (this.isHidden()) this.internals.states.add('hidden');
|
|
21926
|
+
else this.internals.states.delete('hidden');
|
|
21927
|
+
}
|
|
21928
|
+
constructor(host, isHidden){
|
|
21929
|
+
this.isHidden = isHidden;
|
|
21930
|
+
this.internals = host.attachInternals();
|
|
21931
|
+
host.addController(this);
|
|
21932
|
+
}
|
|
21933
|
+
}
|
|
21934
|
+
|
|
21853
21935
|
class ResultTemplateProvider extends TemplateProvider {
|
|
21854
21936
|
makeDefaultTemplate() {
|
|
21855
21937
|
const content = document.createDocumentFragment();
|
|
@@ -23589,22 +23671,27 @@ class TimeframeFacetCommon {
|
|
|
23589
23671
|
this.facetForDatePickerDependenciesManager?.stopWatching();
|
|
23590
23672
|
this.filterDependenciesManager?.stopWatching();
|
|
23591
23673
|
}
|
|
23592
|
-
|
|
23593
|
-
return !this.
|
|
23674
|
+
isHostHidden({ hasError, firstSearchExecuted }) {
|
|
23675
|
+
return hasError || !this.enabled || firstSearchExecuted && this.facetInfo.isHidden();
|
|
23594
23676
|
}
|
|
23595
|
-
|
|
23596
|
-
|
|
23677
|
+
get facetInfo() {
|
|
23678
|
+
return {
|
|
23597
23679
|
label: ()=>this.props.bindings.i18n.t(this.props.label),
|
|
23598
23680
|
facetId: this.facetId,
|
|
23599
23681
|
element: this.props.host,
|
|
23600
23682
|
isHidden: ()=>this.isHidden
|
|
23601
23683
|
};
|
|
23684
|
+
}
|
|
23685
|
+
get isHidden() {
|
|
23686
|
+
return !this.shouldRenderFacet || !this.enabled;
|
|
23687
|
+
}
|
|
23688
|
+
registerFacetToStore() {
|
|
23602
23689
|
this.props.bindings.store.registerFacet('dateFacets', {
|
|
23603
|
-
...facetInfo,
|
|
23690
|
+
...this.facetInfo,
|
|
23604
23691
|
format: (value)=>this.formatFacetValue(value)
|
|
23605
23692
|
});
|
|
23606
23693
|
initializePopover(this.props.host, {
|
|
23607
|
-
...facetInfo,
|
|
23694
|
+
...this.facetInfo,
|
|
23608
23695
|
hasValues: ()=>this.hasValues,
|
|
23609
23696
|
numberOfActiveValues: ()=>this.numberOfSelectedValues
|
|
23610
23697
|
});
|
|
@@ -23701,14 +23788,16 @@ class TimeframeFacetCommon {
|
|
|
23701
23788
|
></atomic-facet-date-input>`;
|
|
23702
23789
|
}
|
|
23703
23790
|
render({ hasError, firstSearchExecuted, isCollapsed, headerFocus, onToggleCollapse }) {
|
|
23704
|
-
if (
|
|
23791
|
+
if (this.isHostHidden({
|
|
23792
|
+
hasError,
|
|
23793
|
+
firstSearchExecuted
|
|
23794
|
+
})) return lit.nothing;
|
|
23705
23795
|
if (!firstSearchExecuted) return renderFacetPlaceholder({
|
|
23706
23796
|
props: {
|
|
23707
23797
|
numberOfValues: this.currentValues.length,
|
|
23708
23798
|
isCollapsed
|
|
23709
23799
|
}
|
|
23710
23800
|
});
|
|
23711
|
-
if (!this.shouldRenderFacet) return lit.nothing;
|
|
23712
23801
|
return renderFacetContainer()(lit.html`${this.renderHeader(isCollapsed, headerFocus, onToggleCollapse)}
|
|
23713
23802
|
${!isCollapsed ? lit.html`${this.shouldRenderValues ? this.renderValues() : lit.nothing}
|
|
23714
23803
|
${this.shouldRenderInput ? this.renderDateInput() : lit.nothing}` : lit.nothing}`);
|
|
@@ -25591,6 +25680,14 @@ function _ts_metadata$Y(metadataKey, metadataValue) {
|
|
|
25591
25680
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(metadataKey, metadataValue);
|
|
25592
25681
|
}
|
|
25593
25682
|
let AtomicCategoryFacet$1 = class AtomicCategoryFacet extends lit.LitElement {
|
|
25683
|
+
get facetInfo() {
|
|
25684
|
+
return {
|
|
25685
|
+
label: ()=>this.bindings.i18n.t(this.label),
|
|
25686
|
+
facetId: this.facetId,
|
|
25687
|
+
element: this,
|
|
25688
|
+
isHidden: ()=>this.isHidden
|
|
25689
|
+
};
|
|
25690
|
+
}
|
|
25594
25691
|
initialize() {
|
|
25595
25692
|
if (this.tabsIncluded.length > 0 && this.tabsExcluded.length > 0) console.warn('Values for both "tabs-included" and "tabs-excluded" have been provided. This could lead to unexpected behaviors.');
|
|
25596
25693
|
this.searchStatus = headless.buildSearchStatus(this.bindings.engine);
|
|
@@ -25620,15 +25717,9 @@ let AtomicCategoryFacet$1 = class AtomicCategoryFacet extends lit.LitElement {
|
|
|
25620
25717
|
announceFacetSearchResultsWithAriaLive(this.facet, this.label, (msg)=>{
|
|
25621
25718
|
this.facetSearchAriaMessage.message = msg;
|
|
25622
25719
|
}, this.bindings.i18n);
|
|
25623
|
-
|
|
25624
|
-
label: ()=>this.bindings.i18n.t(this.label),
|
|
25625
|
-
facetId: this.facetId,
|
|
25626
|
-
element: this,
|
|
25627
|
-
isHidden: ()=>this.isHidden
|
|
25628
|
-
};
|
|
25629
|
-
this.bindings.store.registerFacet('categoryFacets', facetInfo);
|
|
25720
|
+
this.bindings.store.registerFacet('categoryFacets', this.facetInfo);
|
|
25630
25721
|
initializePopover(this, {
|
|
25631
|
-
...facetInfo,
|
|
25722
|
+
...this.facetInfo,
|
|
25632
25723
|
hasValues: ()=>!!this.facet.state.valuesAsTrees.length,
|
|
25633
25724
|
numberOfActiveValues: ()=>this.facetState.hasActiveValues ? 1 : 0
|
|
25634
25725
|
});
|
|
@@ -25904,6 +25995,7 @@ let AtomicCategoryFacet$1 = class AtomicCategoryFacet extends lit.LitElement {
|
|
|
25904
25995
|
}
|
|
25905
25996
|
constructor(){
|
|
25906
25997
|
super(), this.resultIndexToFocusOnShowMore = 0, this.label = 'no-label', this.tabsIncluded = [], this.tabsExcluded = [], this.numberOfValues = 8, this.withSearch = false, this.sortCriteria = 'occurrences', this.delimitingCharacter = ';', this.basePath = [], this.filterByBasePath = true, this.isCollapsed = false, this.headingLevel = 0, this.filterFacetCount = true, this.injectionDepth = 1000, this.facetSearchAriaMessage = new AriaLiveRegionController(this, 'facet-search');
|
|
25998
|
+
new FacetVisibilityController(this, ()=>!!this.facet && this.facetInfo.isHidden());
|
|
25907
25999
|
new ValidatePropsController(this, ()=>({
|
|
25908
26000
|
field: this.field,
|
|
25909
26001
|
numberOfValues: this.numberOfValues,
|
|
@@ -26425,6 +26517,7 @@ let AtomicColorFacet$1 = class AtomicColorFacet extends lit.LitElement {
|
|
|
26425
26517
|
}
|
|
26426
26518
|
constructor(){
|
|
26427
26519
|
super(), this.label = 'no-label', this.tabsIncluded = [], this.tabsExcluded = [], this.numberOfValues = 8, this.withSearch = true, this.sortCriteria = 'automatic', this.resultsMustMatch = 'atLeastOneValue', this.displayValuesAs = 'box', this.isCollapsed = false, this.headingLevel = 0, this.filterFacetCount = true, this.injectionDepth = 1000, this.allowedValues = [], this.customSort = [], this.valuesBeforeShowMore = new Set();
|
|
26520
|
+
new FacetVisibilityController(this, ()=>!!this.facet && this.facetInfo.isHidden());
|
|
26428
26521
|
new ValidatePropsController(this, ()=>({
|
|
26429
26522
|
field: this.field,
|
|
26430
26523
|
numberOfValues: this.numberOfValues,
|
|
@@ -27218,6 +27311,7 @@ let AtomicFacet$1 = class AtomicFacet extends lit.LitElement {
|
|
|
27218
27311
|
}
|
|
27219
27312
|
constructor(){
|
|
27220
27313
|
super(), this.label = 'no-label', this.tabsIncluded = [], this.tabsExcluded = [], this.numberOfValues = 8, this.withSearch = true, this.sortCriteria = 'automatic', this.resultsMustMatch = 'atLeastOneValue', this.displayValuesAs = 'checkbox', this.isCollapsed = false, this.headingLevel = 0, this.filterFacetCount = true, this.enableExclusion = false, this.injectionDepth = 1000, this.allowedValues = [], this.customSort = [], this.valuesBeforeShowMore = new Set();
|
|
27314
|
+
new FacetVisibilityController(this, ()=>!!this.facet && this.facetInfo.isHidden());
|
|
27221
27315
|
new ValidatePropsController(this, ()=>({
|
|
27222
27316
|
field: this.field,
|
|
27223
27317
|
numberOfValues: this.numberOfValues,
|
|
@@ -29347,6 +29441,14 @@ function _ts_metadata$H(metadataKey, metadataValue) {
|
|
|
29347
29441
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(metadataKey, metadataValue);
|
|
29348
29442
|
}
|
|
29349
29443
|
let AtomicNumericFacet$1 = class AtomicNumericFacet extends lit.LitElement {
|
|
29444
|
+
get facetInfo() {
|
|
29445
|
+
return {
|
|
29446
|
+
label: ()=>this.bindings.i18n.t(this.label),
|
|
29447
|
+
facetId: this.facetId,
|
|
29448
|
+
element: this,
|
|
29449
|
+
isHidden: ()=>this.isHidden
|
|
29450
|
+
};
|
|
29451
|
+
}
|
|
29350
29452
|
initialize() {
|
|
29351
29453
|
this.validateTabs();
|
|
29352
29454
|
this.initializeTabManager();
|
|
@@ -29506,14 +29608,8 @@ let AtomicNumericFacet$1 = class AtomicNumericFacet extends lit.LitElement {
|
|
|
29506
29608
|
});
|
|
29507
29609
|
}
|
|
29508
29610
|
registerFacetToStore() {
|
|
29509
|
-
const facetInfo = {
|
|
29510
|
-
label: ()=>this.bindings.i18n.t(this.label),
|
|
29511
|
-
facetId: this.facetId,
|
|
29512
|
-
element: this,
|
|
29513
|
-
isHidden: ()=>this.isHidden
|
|
29514
|
-
};
|
|
29515
29611
|
this.bindings.store.registerFacet('numericFacets', {
|
|
29516
|
-
...facetInfo,
|
|
29612
|
+
...this.facetInfo,
|
|
29517
29613
|
format: (value)=>formatHumanReadable({
|
|
29518
29614
|
facetValue: value,
|
|
29519
29615
|
logger: this.bindings.engine.logger,
|
|
@@ -29524,7 +29620,7 @@ let AtomicNumericFacet$1 = class AtomicNumericFacet extends lit.LitElement {
|
|
|
29524
29620
|
})
|
|
29525
29621
|
});
|
|
29526
29622
|
initializePopover(this, {
|
|
29527
|
-
...facetInfo,
|
|
29623
|
+
...this.facetInfo,
|
|
29528
29624
|
hasValues: ()=>this.hasValues,
|
|
29529
29625
|
numberOfActiveValues: ()=>this.numberOfSelectedValues
|
|
29530
29626
|
});
|
|
@@ -29625,6 +29721,7 @@ let AtomicNumericFacet$1 = class AtomicNumericFacet extends lit.LitElement {
|
|
|
29625
29721
|
}
|
|
29626
29722
|
constructor(){
|
|
29627
29723
|
super(), this.label = 'no-label', this.tabsIncluded = [], this.tabsExcluded = [], this.numberOfValues = 8, this.sortCriteria = 'ascending', this.rangeAlgorithm = 'equiprobable', this.displayValuesAs = 'checkbox', this.isCollapsed = false, this.headingLevel = 0, this.filterFacetCount = true, this.injectionDepth = 1000, this.manualRanges = [], this.formatter = defaultNumberFormatter, this.conditionManagers = [];
|
|
29724
|
+
new FacetVisibilityController(this, ()=>!!this.searchStatus && this.facetInfo.isHidden());
|
|
29628
29725
|
new ValidatePropsController(this, ()=>({
|
|
29629
29726
|
displayValuesAs: this.displayValuesAs,
|
|
29630
29727
|
withInput: this.withInput
|
|
@@ -30488,6 +30585,14 @@ let AtomicRatingFacet$1 = class AtomicRatingFacet extends lit.LitElement {
|
|
|
30488
30585
|
if (!this.headerFocus) this.headerFocus = new FocusTargetController(this, this.bindings);
|
|
30489
30586
|
return this.headerFocus;
|
|
30490
30587
|
}
|
|
30588
|
+
get facetInfo() {
|
|
30589
|
+
return {
|
|
30590
|
+
label: ()=>this.bindings.i18n.t(this.label),
|
|
30591
|
+
facetId: this.facetId,
|
|
30592
|
+
element: this,
|
|
30593
|
+
isHidden: ()=>this.isHidden
|
|
30594
|
+
};
|
|
30595
|
+
}
|
|
30491
30596
|
connectedCallback() {
|
|
30492
30597
|
super.connectedCallback();
|
|
30493
30598
|
if (void 0 === this.maxValueInIndex) this.maxValueInIndex = this.numberOfIntervals;
|
|
@@ -30533,19 +30638,13 @@ let AtomicRatingFacet$1 = class AtomicRatingFacet extends lit.LitElement {
|
|
|
30533
30638
|
options
|
|
30534
30639
|
});
|
|
30535
30640
|
this.facetId = this.facet.state.facetId;
|
|
30536
|
-
const facetInfo = {
|
|
30537
|
-
label: ()=>this.bindings.i18n.t(this.label),
|
|
30538
|
-
facetId: this.facetId,
|
|
30539
|
-
element: this,
|
|
30540
|
-
isHidden: ()=>this.isHidden
|
|
30541
|
-
};
|
|
30542
30641
|
this.bindings.store.registerFacet('numericFacets', {
|
|
30543
|
-
...facetInfo,
|
|
30642
|
+
...this.facetInfo,
|
|
30544
30643
|
format: (value)=>this.formatFacetValue(value),
|
|
30545
30644
|
content: (value)=>this.ratingContent(value)
|
|
30546
30645
|
});
|
|
30547
30646
|
initializePopover(this, {
|
|
30548
|
-
...facetInfo,
|
|
30647
|
+
...this.facetInfo,
|
|
30549
30648
|
hasValues: ()=>!!this.valuesToRender.length,
|
|
30550
30649
|
numberOfActiveValues: ()=>this.numberOfSelectedValues
|
|
30551
30650
|
});
|
|
@@ -30672,6 +30771,7 @@ let AtomicRatingFacet$1 = class AtomicRatingFacet extends lit.LitElement {
|
|
|
30672
30771
|
}
|
|
30673
30772
|
constructor(){
|
|
30674
30773
|
super(), this.label = 'no-label', this.numberOfIntervals = 5, this.tabsIncluded = [], this.tabsExcluded = [], this.minValueInIndex = 1, this.displayValuesAs = 'checkbox', this.icon = star, this.isCollapsed = false, this.headingLevel = 0, this.injectionDepth = 1000;
|
|
30774
|
+
new FacetVisibilityController(this, ()=>!!this.facet && this.facetInfo.isHidden());
|
|
30675
30775
|
new ValidatePropsController(this, ()=>({
|
|
30676
30776
|
field: this.field,
|
|
30677
30777
|
numberOfIntervals: this.numberOfIntervals,
|
|
@@ -30885,6 +30985,14 @@ function _ts_metadata$A(metadataKey, metadataValue) {
|
|
|
30885
30985
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(metadataKey, metadataValue);
|
|
30886
30986
|
}
|
|
30887
30987
|
let AtomicRatingRangeFacet$1 = class AtomicRatingRangeFacet extends lit.LitElement {
|
|
30988
|
+
get facetInfo() {
|
|
30989
|
+
return {
|
|
30990
|
+
label: ()=>this.bindings.i18n.t(this.label),
|
|
30991
|
+
facetId: this.facetId,
|
|
30992
|
+
element: this,
|
|
30993
|
+
isHidden: ()=>this.isHidden
|
|
30994
|
+
};
|
|
30995
|
+
}
|
|
30888
30996
|
connectedCallback() {
|
|
30889
30997
|
super.connectedCallback();
|
|
30890
30998
|
if (void 0 === this.maxValueInIndex) this.maxValueInIndex = this.numberOfIntervals;
|
|
@@ -30933,19 +31041,13 @@ let AtomicRatingRangeFacet$1 = class AtomicRatingRangeFacet extends lit.LitEleme
|
|
|
30933
31041
|
options
|
|
30934
31042
|
});
|
|
30935
31043
|
this.facetId = this.facet.state.facetId;
|
|
30936
|
-
const facetInfo = {
|
|
30937
|
-
label: ()=>this.bindings.i18n.t(this.label),
|
|
30938
|
-
facetId: this.facetId,
|
|
30939
|
-
element: this,
|
|
30940
|
-
isHidden: ()=>this.isHidden
|
|
30941
|
-
};
|
|
30942
31044
|
this.bindings.store.registerFacet('numericFacets', {
|
|
30943
|
-
...facetInfo,
|
|
31045
|
+
...this.facetInfo,
|
|
30944
31046
|
format: (value)=>this.formatFacetValue(value),
|
|
30945
31047
|
content: (value)=>this.ratingContent(value)
|
|
30946
31048
|
});
|
|
30947
31049
|
initializePopover(this, {
|
|
30948
|
-
...facetInfo,
|
|
31050
|
+
...this.facetInfo,
|
|
30949
31051
|
hasValues: ()=>!!this.valuesToRender.length,
|
|
30950
31052
|
numberOfActiveValues: ()=>this.numberOfSelectedValues
|
|
30951
31053
|
});
|
|
@@ -31065,6 +31167,7 @@ let AtomicRatingRangeFacet$1 = class AtomicRatingRangeFacet extends lit.LitEleme
|
|
|
31065
31167
|
}
|
|
31066
31168
|
constructor(){
|
|
31067
31169
|
super(), this.label = 'no-label', this.tabsIncluded = [], this.tabsExcluded = [], this.numberOfIntervals = 5, this.minValueInIndex = 1, this.icon = star, this.isCollapsed = false, this.headingLevel = 0, this.injectionDepth = 1000;
|
|
31170
|
+
new FacetVisibilityController(this, ()=>!!this.facet && this.facetInfo.isHidden());
|
|
31068
31171
|
new ValidatePropsController(this, ()=>({
|
|
31069
31172
|
field: this.field,
|
|
31070
31173
|
numberOfIntervals: this.numberOfIntervals,
|
|
@@ -31329,8 +31432,10 @@ let AtomicRefineModal$1 = class AtomicRefineModal extends lit.LitElement {
|
|
|
31329
31432
|
const visibleFacetsClone = this.cloneFacets(visibleFacets);
|
|
31330
31433
|
const invisibleFacetsClone = this.cloneFacets(invisibleFacets);
|
|
31331
31434
|
collapseFacetsAfter(visibleFacetsClone, this.collapseFacetsAfter);
|
|
31332
|
-
|
|
31333
|
-
|
|
31435
|
+
const clonesByFacet = new Map();
|
|
31436
|
+
visibleFacets.forEach((facet, index)=>clonesByFacet.set(facet, visibleFacetsClone[index]));
|
|
31437
|
+
invisibleFacets.forEach((facet, index)=>clonesByFacet.set(facet, invisibleFacetsClone[index]));
|
|
31438
|
+
divSlot.append(...sortedFacets.map((facet)=>clonesByFacet.get(facet)));
|
|
31334
31439
|
const generator = this.makeAutomaticFacetGenerator();
|
|
31335
31440
|
if (generator) {
|
|
31336
31441
|
generator.updateCollapseFacetsDependingOnFacetsVisibility(this.collapseFacetsAfter, visibleFacets.length);
|
|
@@ -32552,6 +32657,7 @@ function requireBgStandard_common () {
|
|
|
32552
32657
|
pastChat: "rgb(255, 93, 45)",
|
|
32553
32658
|
cryptoTransactionEnvelopeChangeLog: "rgb(8, 73, 104)",
|
|
32554
32659
|
feedback: "rgb(27, 150, 255)",
|
|
32660
|
+
voicemailDrop: "rgb(3, 45, 96)",
|
|
32555
32661
|
actionListComponent: "rgb(16, 124, 173)",
|
|
32556
32662
|
opportunitySplits: "rgb(255, 93, 45)",
|
|
32557
32663
|
locationPermit: "rgb(6, 165, 154)",
|
|
@@ -32702,7 +32808,9 @@ function requireBgStandard_common () {
|
|
|
32702
32808
|
sendLog: "rgb(147, 147, 147)",
|
|
32703
32809
|
dxPipeline: "rgb(255, 93, 45)",
|
|
32704
32810
|
account: "rgb(88, 103, 232)",
|
|
32811
|
+
suggestedForYou: "rgb(144, 80, 233)",
|
|
32705
32812
|
programStatus: "rgb(144, 80, 233)",
|
|
32813
|
+
outboundCall: "rgb(3, 45, 96)",
|
|
32706
32814
|
studyCandidate: "rgb(47, 44, 183)",
|
|
32707
32815
|
couponCodes: "rgb(57, 101, 71)",
|
|
32708
32816
|
adverseEvent: "rgb(182, 5, 84)",
|
|
@@ -32795,6 +32903,7 @@ function requireBgStandard_common () {
|
|
|
32795
32903
|
contract: "rgb(57, 101, 71)",
|
|
32796
32904
|
policy: "rgb(6, 165, 154)",
|
|
32797
32905
|
sobject: "rgb(147, 147, 147)",
|
|
32906
|
+
inQueueExperience: "rgb(3, 45, 96)",
|
|
32798
32907
|
adEventEffect: "rgb(182, 5, 84)",
|
|
32799
32908
|
whatsapp: "rgb(59, 167, 85)",
|
|
32800
32909
|
salesCadenceTarget: "rgb(16, 124, 173)",
|
|
@@ -32827,6 +32936,7 @@ function requireBgStandard_common () {
|
|
|
32827
32936
|
taxRate: "rgb(57, 101, 71)",
|
|
32828
32937
|
report: "rgb(6, 165, 154)",
|
|
32829
32938
|
customerWorkspace: "rgb(57, 101, 71)",
|
|
32939
|
+
rfpRecord: "rgb(59, 167, 85)",
|
|
32830
32940
|
groups: "rgb(27, 150, 255)",
|
|
32831
32941
|
diseaseOutbreak: "rgb(255, 83, 138)",
|
|
32832
32942
|
dataModel: "rgb(255, 83, 138)",
|
|
@@ -32840,6 +32950,7 @@ function requireBgStandard_common () {
|
|
|
32840
32950
|
priceBooks: "rgb(57, 101, 71)",
|
|
32841
32951
|
entityMilestone: "rgb(255, 93, 45)",
|
|
32842
32952
|
contractLineOutcome: "rgb(57, 101, 71)",
|
|
32953
|
+
aiModelGenerative: "rgb(27, 150, 255)",
|
|
32843
32954
|
wealthManagement: "rgb(6, 165, 154)",
|
|
32844
32955
|
customers: "rgb(6, 165, 154)",
|
|
32845
32956
|
disclosureAndCompliance: "rgb(6, 165, 154)",
|
|
@@ -32918,6 +33029,7 @@ function requireBgStandard_common () {
|
|
|
32918
33029
|
avatar: "rgb(27, 150, 255)",
|
|
32919
33030
|
recordDelete: "rgb(255, 83, 138)",
|
|
32920
33031
|
solution: "rgb(59, 167, 85)",
|
|
33032
|
+
initiateExternalTransfer: "rgb(3, 45, 96)",
|
|
32921
33033
|
editForm: "rgb(147, 147, 147)",
|
|
32922
33034
|
nftStudio: "rgb(88, 103, 232)",
|
|
32923
33035
|
manualDiscounts: "rgb(16, 124, 173)",
|
|
@@ -37381,6 +37493,7 @@ let AtomicSortDropdown$1 = class AtomicSortDropdown extends lit.LitElement {
|
|
|
37381
37493
|
})))}`);
|
|
37382
37494
|
}
|
|
37383
37495
|
render() {
|
|
37496
|
+
if (!this.options.length) return lit.html`<slot></slot>`;
|
|
37384
37497
|
const { hasError, hasResults, firstSearchExecuted, isLoading } = this.searchStatusState;
|
|
37385
37498
|
return lit.html`
|
|
37386
37499
|
${sortGuard({
|
|
@@ -37742,6 +37855,10 @@ function _ts_metadata(metadataKey, metadataValue) {
|
|
|
37742
37855
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(metadataKey, metadataValue);
|
|
37743
37856
|
}
|
|
37744
37857
|
let AtomicTimeframeFacet$1 = class AtomicTimeframeFacet extends lit.LitElement {
|
|
37858
|
+
get isHidden() {
|
|
37859
|
+
if (!this.timeframeFacetCommon || !this.searchStatusState) return false;
|
|
37860
|
+
return this.timeframeFacetCommon.isHostHidden(this.searchStatusState);
|
|
37861
|
+
}
|
|
37745
37862
|
get focusTarget() {
|
|
37746
37863
|
if (!this.headerFocus) this.headerFocus = new FocusTargetController(this, this.bindings);
|
|
37747
37864
|
return this.headerFocus;
|
|
@@ -37850,6 +37967,7 @@ let AtomicTimeframeFacet$1 = class AtomicTimeframeFacet extends lit.LitElement {
|
|
|
37850
37967
|
super(), this.label = 'no-label', this.field = 'date', this.tabsIncluded = [], this.tabsExcluded = [], this.withDatePicker = false, this.isCollapsed = false, this.headingLevel = 0, this.filterFacetCount = true, this.injectionDepth = 1000, this.sortCriteria = 'descending', this.handleDateInputApply = ()=>{
|
|
37851
37968
|
if (this.facetId) this.bindings.engine.dispatch(headless.loadDateFacetSetActions(this.bindings.engine).deselectAllDateFacetValues(this.facetId));
|
|
37852
37969
|
};
|
|
37970
|
+
new FacetVisibilityController(this, ()=>this.isHidden);
|
|
37853
37971
|
new ValidatePropsController(this, ()=>({
|
|
37854
37972
|
injectionDepth: this.injectionDepth,
|
|
37855
37973
|
headingLevel: this.headingLevel,
|