@coveo/atomic-react 3.11.27 → 3.11.29

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.
@@ -3610,13 +3610,12 @@ function highlightSearchResult(resultValue, searchQuery = '') {
3610
3610
  function announceFacetSearchResultsWithAriaLive(facet, label, setAriaLive, i18n) {
3611
3611
  let prevState = facet.state.facetSearch;
3612
3612
  facet.subscribe(()=>{
3613
- if (shouldUpdateFacetSearchComponent(facet.state.facetSearch, prevState) && facet.state.facetSearch.query) {
3614
- prevState = facet.state.facetSearch;
3615
- setAriaLive(i18n.t('facet-search-results-count', {
3616
- count: facet.state.facetSearch.values.length,
3617
- label
3618
- }));
3619
- }
3613
+ const nextState = facet.state.facetSearch;
3614
+ if (shouldUpdateFacetSearchComponent(nextState, prevState) && nextState.query) setAriaLive(i18n.t('facet-search-results-count', {
3615
+ count: nextState.values.length,
3616
+ label
3617
+ }));
3618
+ prevState = nextState;
3620
3619
  });
3621
3620
  }
3622
3621
 
@@ -7251,7 +7250,7 @@ function getWindow$1() {
7251
7250
  }
7252
7251
  function getAtomicEnvironment(headlessVersion) {
7253
7252
  return {
7254
- version: "3.59.4",
7253
+ version: "3.59.6",
7255
7254
  headlessVersion
7256
7255
  };
7257
7256
  }
@@ -19890,6 +19889,7 @@ class AtomicSmartSnippetExpandableAnswer extends lit.LitElement {
19890
19889
  @click=${()=>this.isExpanded ? this.handleCollapse() : this.handleExpand()}
19891
19890
  class="text-primary mb-4 hover:underline"
19892
19891
  part=${this.isExpanded ? 'show-less-button' : 'show-more-button'}
19892
+ aria-expanded=${this.isExpanded ? 'true' : 'false'}
19893
19893
  >
19894
19894
  ${this.bindings.i18n.t(this.isExpanded ? 'show-less' : 'show-more')}
19895
19895
  <atomic-icon
@@ -20939,7 +20939,7 @@ class GeneratedAnswerController {
20939
20939
  const isHidden = !state.isVisible;
20940
20940
  const isGenerating = !!state.isStreaming;
20941
20941
  const hasNonEmptyAnswer = !!state.answer?.trim();
20942
- const hasError = !!state.error;
20942
+ const hasError = !!state.error?.message;
20943
20943
  if (isHidden) return bindings.i18n.t('generated-answer-hidden');
20944
20944
  if (isGenerating) return bindings.i18n.t('generating-answer');
20945
20945
  if (hasError) return bindings.i18n.t('answer-could-not-be-generated');
@@ -21030,6 +21030,7 @@ const renderShowButton = ({ props })=>lit.html`${renderButton({
21030
21030
  style: 'text-primary',
21031
21031
  part: 'answer-show-button',
21032
21032
  class: 'hidden items-center hover:bg-transparent',
21033
+ ariaExpanded: props.isCollapsed ? 'false' : 'true',
21033
21034
  onClick: props.onClick
21034
21035
  }
21035
21036
  })(lit.html`
@@ -24210,6 +24211,67 @@ AtomicAutomaticFacetGenerator$1 = _ts_decorate$11([
24210
24211
  _ts_metadata$_("design:paramtypes", [])
24211
24212
  ], AtomicAutomaticFacetGenerator$1);
24212
24213
 
24214
+ const shadowSheet = new CSSStyleSheet();
24215
+ shadowSheet.replaceSync(':host(:state(empty)) { display: none }');
24216
+ const lightSheet = new CSSStyleSheet();
24217
+ lightSheet.replaceSync(':state(empty) { display: none }');
24218
+ class HiddenStateController {
24219
+ hostConnected() {
24220
+ if (!this.internals) return;
24221
+ const root = this.host.shadowRoot;
24222
+ if (root) {
24223
+ if (shadowSheet && !root.adoptedStyleSheets.includes(shadowSheet)) root.adoptedStyleSheets.push(shadowSheet);
24224
+ return;
24225
+ }
24226
+ const parent = this.host.getRootNode();
24227
+ if (lightSheet && (parent instanceof Document || parent instanceof ShadowRoot) && !parent.adoptedStyleSheets.includes(lightSheet)) parent.adoptedStyleSheets.push(lightSheet);
24228
+ }
24229
+ set isEmpty(value) {
24230
+ if (value) this.internals.states.add('empty');
24231
+ else this.internals.states.delete('empty');
24232
+ }
24233
+ get isEmpty() {
24234
+ return this.internals.states.has('empty');
24235
+ }
24236
+ constructor(host){
24237
+ this.host = host;
24238
+ this.internals = host.attachInternals();
24239
+ this.internals.states.add('empty');
24240
+ host.addController(this);
24241
+ }
24242
+ }
24243
+
24244
+ function _check_private_redeclaration$5(obj, privateCollection) {
24245
+ if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
24246
+ }
24247
+ function _class_apply_descriptor_get$5(receiver, descriptor) {
24248
+ if (descriptor.get) return descriptor.get.call(receiver);
24249
+ return descriptor.value;
24250
+ }
24251
+ function _class_apply_descriptor_set$4(receiver, descriptor, value) {
24252
+ if (descriptor.set) descriptor.set.call(receiver, value);
24253
+ else {
24254
+ if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
24255
+ descriptor.value = value;
24256
+ }
24257
+ }
24258
+ function _class_extract_field_descriptor$5(receiver, privateMap, action) {
24259
+ if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
24260
+ return privateMap.get(receiver);
24261
+ }
24262
+ function _class_private_field_get$5(receiver, privateMap) {
24263
+ var descriptor = _class_extract_field_descriptor$5(receiver, privateMap, "get");
24264
+ return _class_apply_descriptor_get$5(receiver, descriptor);
24265
+ }
24266
+ function _class_private_field_init$5(obj, privateMap, value) {
24267
+ _check_private_redeclaration$5(obj, privateMap);
24268
+ privateMap.set(obj, value);
24269
+ }
24270
+ function _class_private_field_set$4(receiver, privateMap, value) {
24271
+ var descriptor = _class_extract_field_descriptor$5(receiver, privateMap, "set");
24272
+ _class_apply_descriptor_set$4(receiver, descriptor, value);
24273
+ return value;
24274
+ }
24213
24275
  function _ts_decorate$10(decorators, target, key, desc) {
24214
24276
  var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24215
24277
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);
@@ -24219,6 +24281,7 @@ function _ts_decorate$10(decorators, target, key, desc) {
24219
24281
  function _ts_metadata$Z(k, v) {
24220
24282
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
24221
24283
  }
24284
+ var _hiddenState$3 = /*#__PURE__*/ new WeakMap();
24222
24285
  let AtomicBreadbox$1 = class AtomicBreadbox extends lit.LitElement {
24223
24286
  initialize() {
24224
24287
  this.breadcrumbManager = headless.buildBreadcrumbManager(this.bindings.engine);
@@ -24237,6 +24300,7 @@ let AtomicBreadbox$1 = class AtomicBreadbox extends lit.LitElement {
24237
24300
  }
24238
24301
  render() {
24239
24302
  const breadcrumbs = this.allBreadcrumbs;
24303
+ _class_private_field_get$5(this, _hiddenState$3).isEmpty = !breadcrumbs.length;
24240
24304
  if (!breadcrumbs.length) return lit.nothing;
24241
24305
  return lit.html`${renderBreadcrumbContainer({
24242
24306
  props: {
@@ -24455,7 +24519,10 @@ let AtomicBreadbox$1 = class AtomicBreadbox extends lit.LitElement {
24455
24519
  });
24456
24520
  }
24457
24521
  constructor(){
24458
- super(), this.lastRemovedBreadcrumbIndex = 0, this.numberOfBreadcrumbs = 0, this.numberOfCollapsedBreadcrumbs = 0, this.isCollapsed = true, this.showMoreText = '', this.disableCollapse = false, this.breadboxAriaMessage = new AriaLiveRegionController(this, 'breadbox', true), this.pathLimit = 3;
24522
+ super(), _class_private_field_init$5(this, _hiddenState$3, {
24523
+ writable: true,
24524
+ value: void 0
24525
+ }), this.lastRemovedBreadcrumbIndex = 0, this.numberOfBreadcrumbs = 0, this.numberOfCollapsedBreadcrumbs = 0, _class_private_field_set$4(this, _hiddenState$3, new HiddenStateController(this)), this.isCollapsed = true, this.showMoreText = '', this.disableCollapse = false, this.breadboxAriaMessage = new AriaLiveRegionController(this, 'breadbox', true), this.pathLimit = 3;
24459
24526
  new ValidatePropsController(this, ()=>({
24460
24527
  pathLimit: this.pathLimit
24461
24528
  }), AtomicBreadbox.propsSchema);
@@ -25625,6 +25692,37 @@ AtomicColorFacet$1 = _ts_decorate$_([
25625
25692
  _ts_metadata$X("design:paramtypes", [])
25626
25693
  ], AtomicColorFacet$1);
25627
25694
 
25695
+ function _check_private_redeclaration$4(obj, privateCollection) {
25696
+ if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
25697
+ }
25698
+ function _class_apply_descriptor_get$4(receiver, descriptor) {
25699
+ if (descriptor.get) return descriptor.get.call(receiver);
25700
+ return descriptor.value;
25701
+ }
25702
+ function _class_apply_descriptor_set$3(receiver, descriptor, value) {
25703
+ if (descriptor.set) descriptor.set.call(receiver, value);
25704
+ else {
25705
+ if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
25706
+ descriptor.value = value;
25707
+ }
25708
+ }
25709
+ function _class_extract_field_descriptor$4(receiver, privateMap, action) {
25710
+ if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
25711
+ return privateMap.get(receiver);
25712
+ }
25713
+ function _class_private_field_get$4(receiver, privateMap) {
25714
+ var descriptor = _class_extract_field_descriptor$4(receiver, privateMap, "get");
25715
+ return _class_apply_descriptor_get$4(receiver, descriptor);
25716
+ }
25717
+ function _class_private_field_init$4(obj, privateMap, value) {
25718
+ _check_private_redeclaration$4(obj, privateMap);
25719
+ privateMap.set(obj, value);
25720
+ }
25721
+ function _class_private_field_set$3(receiver, privateMap, value) {
25722
+ var descriptor = _class_extract_field_descriptor$4(receiver, privateMap, "set");
25723
+ _class_apply_descriptor_set$3(receiver, descriptor, value);
25724
+ return value;
25725
+ }
25628
25726
  function _ts_decorate$Z(decorators, target, key, desc) {
25629
25727
  var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
25630
25728
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);
@@ -25634,6 +25732,7 @@ function _ts_decorate$Z(decorators, target, key, desc) {
25634
25732
  function _ts_metadata$W(k, v) {
25635
25733
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
25636
25734
  }
25735
+ var _hiddenState$2 = /*#__PURE__*/ new WeakMap();
25637
25736
  let AtomicDidYouMean$1 = class AtomicDidYouMean extends lit.LitElement {
25638
25737
  initialize() {
25639
25738
  this.didYouMean = headless.buildDidYouMean(this.bindings.engine, {
@@ -25677,10 +25776,14 @@ let AtomicDidYouMean$1 = class AtomicDidYouMean extends lit.LitElement {
25677
25776
  }
25678
25777
  render() {
25679
25778
  const hasCorrection = this.didYouMeanState.hasQueryCorrection || this.queryTriggerState.wasQueryModified;
25779
+ _class_private_field_get$4(this, _hiddenState$2).isEmpty = !hasCorrection;
25680
25780
  return lit.html`${when_js.when(hasCorrection, ()=>this.content)}`;
25681
25781
  }
25682
25782
  constructor(){
25683
- super(), this.automaticallyCorrectQuery = true, this.queryCorrectionMode = 'next';
25783
+ super(), _class_private_field_init$4(this, _hiddenState$2, {
25784
+ writable: true,
25785
+ value: void 0
25786
+ }), _class_private_field_set$3(this, _hiddenState$2, new HiddenStateController(this)), this.automaticallyCorrectQuery = true, this.queryCorrectionMode = 'next';
25684
25787
  new ValidatePropsController(this, ()=>({
25685
25788
  queryCorrectionMode: this.queryCorrectionMode
25686
25789
  }), AtomicDidYouMean.propsSchema, false);
@@ -25739,23 +25842,23 @@ AtomicDidYouMean$1 = _ts_decorate$Z([
25739
25842
  _ts_metadata$W("design:paramtypes", [])
25740
25843
  ], AtomicDidYouMean$1);
25741
25844
 
25742
- function _check_private_redeclaration$1(obj, privateCollection) {
25845
+ function _check_private_redeclaration$3(obj, privateCollection) {
25743
25846
  if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
25744
25847
  }
25745
- function _class_apply_descriptor_get$1(receiver, descriptor) {
25848
+ function _class_apply_descriptor_get$3(receiver, descriptor) {
25746
25849
  if (descriptor.get) return descriptor.get.call(receiver);
25747
25850
  return descriptor.value;
25748
25851
  }
25749
- function _class_extract_field_descriptor$1(receiver, privateMap, action) {
25852
+ function _class_extract_field_descriptor$3(receiver, privateMap, action) {
25750
25853
  if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
25751
25854
  return privateMap.get(receiver);
25752
25855
  }
25753
- function _class_private_field_get$1(receiver, privateMap) {
25754
- var descriptor = _class_extract_field_descriptor$1(receiver, privateMap, "get");
25755
- return _class_apply_descriptor_get$1(receiver, descriptor);
25856
+ function _class_private_field_get$3(receiver, privateMap) {
25857
+ var descriptor = _class_extract_field_descriptor$3(receiver, privateMap, "get");
25858
+ return _class_apply_descriptor_get$3(receiver, descriptor);
25756
25859
  }
25757
- function _class_private_field_init$1(obj, privateMap, value) {
25758
- _check_private_redeclaration$1(obj, privateMap);
25860
+ function _class_private_field_init$3(obj, privateMap, value) {
25861
+ _check_private_redeclaration$3(obj, privateMap);
25759
25862
  privateMap.set(obj, value);
25760
25863
  }
25761
25864
  function _ts_decorate$Y(decorators, target, key, desc) {
@@ -25774,33 +25877,33 @@ let AtomicExternal$1 = class AtomicExternal extends ChildrenUpdateCompleteMixin(
25774
25877
  await this.getUpdateComplete();
25775
25878
  this.addEventListener('atomic/initializeComponent', this.handleInitialization);
25776
25879
  this.addEventListener('atomic/scrollToTop', this.handleScrollToTop);
25777
- _class_private_field_get$1(this, _interface)?.addEventListener('atomic/parentReady', this.handleParentReady);
25778
- if (isParentReady(_class_private_field_get$1(this, _interface))) markParentAsReady(this);
25880
+ _class_private_field_get$3(this, _interface)?.addEventListener('atomic/parentReady', this.handleParentReady);
25881
+ if (isParentReady(_class_private_field_get$3(this, _interface))) markParentAsReady(this);
25779
25882
  }
25780
25883
  disconnectedCallback() {
25781
25884
  super.disconnectedCallback();
25782
25885
  this.removeEventListener('atomic/initializeComponent', this.handleInitialization);
25783
25886
  this.removeEventListener('atomic/scrollToTop', this.handleScrollToTop);
25784
- _class_private_field_get$1(this, _interface)?.removeEventListener('atomic/parentReady', this.handleParentReady);
25887
+ _class_private_field_get$3(this, _interface)?.removeEventListener('atomic/parentReady', this.handleParentReady);
25785
25888
  }
25786
25889
  render() {
25787
25890
  return lit.html`<slot></slot>`;
25788
25891
  }
25789
25892
  constructor(...args){
25790
- super(...args), _class_private_field_init$1(this, _interface, {
25893
+ super(...args), _class_private_field_init$3(this, _interface, {
25791
25894
  get: get_interface,
25792
25895
  set: void 0
25793
25896
  }), this.selector = 'atomic-search-interface', this.bindings = {}, this.handleInitialization = (event)=>{
25794
25897
  event.preventDefault();
25795
25898
  event.stopPropagation();
25796
- _class_private_field_get$1(this, _interface)?.dispatchEvent(buildCustomEvent(initializeEventName, event.detail));
25899
+ _class_private_field_get$3(this, _interface)?.dispatchEvent(buildCustomEvent(initializeEventName, event.detail));
25797
25900
  }, this.handleScrollToTop = (event)=>{
25798
25901
  event.preventDefault();
25799
25902
  event.stopPropagation();
25800
- _class_private_field_get$1(this, _interface)?.dispatchEvent(buildCustomEvent('atomic/scrollToTop', event.detail));
25903
+ _class_private_field_get$3(this, _interface)?.dispatchEvent(buildCustomEvent('atomic/scrollToTop', event.detail));
25801
25904
  }, this.handleParentReady = (event)=>{
25802
25905
  if (event.target === this.boundInterface) {
25803
- this.bindings = _class_private_field_get$1(this, _interface)?.bindings;
25906
+ this.bindings = _class_private_field_get$3(this, _interface)?.bindings;
25804
25907
  markParentAsReady(this);
25805
25908
  }
25806
25909
  };
@@ -28051,6 +28154,37 @@ AtomicNoResults$1 = _ts_decorate$M([
28051
28154
 
28052
28155
  var info = "<svg viewBox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<circle cx=\"14\" cy=\"14\" r=\"13.5\" stroke=\"currentColor\" stroke-linecap=\"round\"/>\n<path d=\"M14.5 21.5L14.5 9.5L11.5 9.5M14.5 21.5L10.5 21.5M14.5 21.5L18.5 21.5M14.5 6.5L14.5 5.5\" stroke=\"currentColor\" stroke-linecap=\"round\"/>\n</svg>\n";
28053
28156
 
28157
+ function _check_private_redeclaration$2(obj, privateCollection) {
28158
+ if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
28159
+ }
28160
+ function _class_apply_descriptor_get$2(receiver, descriptor) {
28161
+ if (descriptor.get) return descriptor.get.call(receiver);
28162
+ return descriptor.value;
28163
+ }
28164
+ function _class_apply_descriptor_set$2(receiver, descriptor, value) {
28165
+ if (descriptor.set) descriptor.set.call(receiver, value);
28166
+ else {
28167
+ if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
28168
+ descriptor.value = value;
28169
+ }
28170
+ }
28171
+ function _class_extract_field_descriptor$2(receiver, privateMap, action) {
28172
+ if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
28173
+ return privateMap.get(receiver);
28174
+ }
28175
+ function _class_private_field_get$2(receiver, privateMap) {
28176
+ var descriptor = _class_extract_field_descriptor$2(receiver, privateMap, "get");
28177
+ return _class_apply_descriptor_get$2(receiver, descriptor);
28178
+ }
28179
+ function _class_private_field_init$2(obj, privateMap, value) {
28180
+ _check_private_redeclaration$2(obj, privateMap);
28181
+ privateMap.set(obj, value);
28182
+ }
28183
+ function _class_private_field_set$2(receiver, privateMap, value) {
28184
+ var descriptor = _class_extract_field_descriptor$2(receiver, privateMap, "set");
28185
+ _class_apply_descriptor_set$2(receiver, descriptor, value);
28186
+ return value;
28187
+ }
28054
28188
  function _ts_decorate$L(decorators, target, key, desc) {
28055
28189
  var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
28056
28190
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);
@@ -28060,6 +28194,7 @@ function _ts_decorate$L(decorators, target, key, desc) {
28060
28194
  function _ts_metadata$I(k, v) {
28061
28195
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
28062
28196
  }
28197
+ var _hiddenState$1 = /*#__PURE__*/ new WeakMap();
28063
28198
  let AtomicNotifications$1 = class AtomicNotifications extends InitializeBindingsMixin(lit.LitElement) {
28064
28199
  initialize() {
28065
28200
  this.notifyTrigger = headless.buildNotifyTrigger(this.bindings.engine);
@@ -28099,6 +28234,7 @@ let AtomicNotifications$1 = class AtomicNotifications extends InitializeBindings
28099
28234
  `;
28100
28235
  }
28101
28236
  render() {
28237
+ _class_private_field_get$2(this, _hiddenState$1).isEmpty = !this.notifications.length;
28102
28238
  if (!this.notifications.length) return lit.nothing;
28103
28239
  this.ariaMessage.message = this.generateAriaMessage();
28104
28240
  return lit.html`
@@ -28112,7 +28248,10 @@ let AtomicNotifications$1 = class AtomicNotifications extends InitializeBindings
28112
28248
  `;
28113
28249
  }
28114
28250
  constructor(){
28115
- super(), this.headingLevel = 0, this.ariaMessage = new AriaLiveRegionController(this, 'notifications');
28251
+ super(), _class_private_field_init$2(this, _hiddenState$1, {
28252
+ writable: true,
28253
+ value: void 0
28254
+ }), this.headingLevel = 0, this.ariaMessage = new AriaLiveRegionController(this, 'notifications'), _class_private_field_set$2(this, _hiddenState$1, new HiddenStateController(this));
28116
28255
  new ValidatePropsController(this, ()=>({
28117
28256
  headingLevel: this.headingLevel
28118
28257
  }), AtomicNotifications.schema, false);
@@ -28195,7 +28334,7 @@ let AtomicNumericFacet$1 = class AtomicNumericFacet extends lit.LitElement {
28195
28334
  disconnectedCallback() {
28196
28335
  super.disconnectedCallback();
28197
28336
  if (!this.isConnected) {
28198
- this.filterDependenciesManager?.stopWatching();
28337
+ this.conditionManagers.forEach((manager)=>manager.stopWatching());
28199
28338
  this.removeNumberFormatListener?.();
28200
28339
  this.removeNumberInputApplyListener?.();
28201
28340
  this.unsubscribeFacetForRange?.();
@@ -28308,6 +28447,7 @@ let AtomicNumericFacet$1 = class AtomicNumericFacet extends lit.LitElement {
28308
28447
  this.unsubscribeFacetForRange = this.facetForRange.subscribe(()=>{
28309
28448
  this.facetState = this.facetForRange.state;
28310
28449
  });
28450
+ this.conditionManagers.push(this.initializeDependenciesManager(this.facetState.facetId));
28311
28451
  return this.facetForRange;
28312
28452
  }
28313
28453
  initializeFilter() {
@@ -28322,8 +28462,8 @@ let AtomicNumericFacet$1 = class AtomicNumericFacet extends lit.LitElement {
28322
28462
  }
28323
28463
  }
28324
28464
  });
28325
- this.filterDependenciesManager = this.initializeDependenciesManager(this.filter.state.facetId);
28326
28465
  this.filterState = this.filter.state;
28466
+ this.conditionManagers.push(this.initializeDependenciesManager(this.filterState.facetId));
28327
28467
  this.unsubscribeFilter = this.filter.subscribe(()=>{
28328
28468
  this.filterState = this.filter.state;
28329
28469
  });
@@ -28453,7 +28593,7 @@ let AtomicNumericFacet$1 = class AtomicNumericFacet extends lit.LitElement {
28453
28593
  ${when_js.when(this.shouldRenderInput, ()=>this.renderInput())}`)}`))}`;
28454
28594
  }
28455
28595
  constructor(){
28456
- 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;
28596
+ 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 = [];
28457
28597
  new ValidatePropsController(this, ()=>({
28458
28598
  displayValuesAs: this.displayValuesAs,
28459
28599
  withInput: this.withInput
@@ -28717,7 +28857,7 @@ let AtomicPager$1 = class AtomicPager extends InitializeBindingsMixin(lit.LitEle
28717
28857
  }
28718
28858
  announcePageLoaded() {
28719
28859
  this.ariaMessage.message = this.bindings.i18n.t('pager-page-loaded', {
28720
- pageNumber: this.pagerState.currentPage
28860
+ page: this.pagerState.currentPage
28721
28861
  });
28722
28862
  }
28723
28863
  constructor(){
@@ -30092,6 +30232,37 @@ AtomicRatingRangeFacet$1 = _ts_decorate$D([
30092
30232
  _ts_metadata$A("design:paramtypes", [])
30093
30233
  ], AtomicRatingRangeFacet$1);
30094
30234
 
30235
+ function _check_private_redeclaration$1(obj, privateCollection) {
30236
+ if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
30237
+ }
30238
+ function _class_apply_descriptor_get$1(receiver, descriptor) {
30239
+ if (descriptor.get) return descriptor.get.call(receiver);
30240
+ return descriptor.value;
30241
+ }
30242
+ function _class_apply_descriptor_set$1(receiver, descriptor, value) {
30243
+ if (descriptor.set) descriptor.set.call(receiver, value);
30244
+ else {
30245
+ if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
30246
+ descriptor.value = value;
30247
+ }
30248
+ }
30249
+ function _class_extract_field_descriptor$1(receiver, privateMap, action) {
30250
+ if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
30251
+ return privateMap.get(receiver);
30252
+ }
30253
+ function _class_private_field_get$1(receiver, privateMap) {
30254
+ var descriptor = _class_extract_field_descriptor$1(receiver, privateMap, "get");
30255
+ return _class_apply_descriptor_get$1(receiver, descriptor);
30256
+ }
30257
+ function _class_private_field_init$1(obj, privateMap, value) {
30258
+ _check_private_redeclaration$1(obj, privateMap);
30259
+ privateMap.set(obj, value);
30260
+ }
30261
+ function _class_private_field_set$1(receiver, privateMap, value) {
30262
+ var descriptor = _class_extract_field_descriptor$1(receiver, privateMap, "set");
30263
+ _class_apply_descriptor_set$1(receiver, descriptor, value);
30264
+ return value;
30265
+ }
30095
30266
  function _ts_decorate$C(decorators, target, key, desc) {
30096
30267
  var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
30097
30268
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);
@@ -30101,6 +30272,7 @@ function _ts_decorate$C(decorators, target, key, desc) {
30101
30272
  function _ts_metadata$z(k, v) {
30102
30273
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
30103
30274
  }
30275
+ var _hiddenState = /*#__PURE__*/ new WeakMap();
30104
30276
  let AtomicRefineModal$1 = class AtomicRefineModal extends lit.LitElement {
30105
30277
  initialize() {
30106
30278
  this.breadcrumbManager = headless.buildBreadcrumbManager(this.bindings.engine);
@@ -30225,6 +30397,7 @@ let AtomicRefineModal$1 = class AtomicRefineModal extends lit.LitElement {
30225
30397
  }) : lit.nothing);
30226
30398
  }
30227
30399
  render() {
30400
+ _class_private_field_get$1(this, _hiddenState).isEmpty = !this.isOpen;
30228
30401
  return lit.html`${renderRefineModal({
30229
30402
  props: {
30230
30403
  i18n: this.bindings.i18n,
@@ -30243,7 +30416,10 @@ let AtomicRefineModal$1 = class AtomicRefineModal extends lit.LitElement {
30243
30416
  `))}`;
30244
30417
  }
30245
30418
  constructor(...args){
30246
- super(...args), this.isOpen = false, this.collapseFacetsAfter = 0, this.onSelectSortOption = (e)=>{
30419
+ super(...args), _class_private_field_init$1(this, _hiddenState, {
30420
+ writable: true,
30421
+ value: void 0
30422
+ }), this.isOpen = false, this.collapseFacetsAfter = 0, _class_private_field_set$1(this, _hiddenState, new HiddenStateController(this)), this.onSelectSortOption = (e)=>{
30247
30423
  const select = e.composedPath()[0];
30248
30424
  const option = this.options.find((option)=>option.expression === select.value);
30249
30425
  option && this.sort.sortBy(option.criteria);
@@ -35840,9 +36016,9 @@ let AtomicSmartSnippet$1 = class AtomicSmartSnippet extends lit.LitElement {
35840
36016
  <atomic-smart-snippet-source
35841
36017
  .source=${source}
35842
36018
  .anchorAttributes=${getAttributesFromLinkSlotContent(this, 'source-anchor-attributes')}
35843
- @selectSource=${this.smartSnippet.selectSource}
35844
- @beginDelayedSelectSource=${this.smartSnippet.beginDelayedSelectSource}
35845
- @cancelPendingSelectSource=${this.smartSnippet.cancelPendingSelectSource}
36019
+ @select-source=${this.smartSnippet.selectSource}
36020
+ @begin-delayed-select-source=${this.smartSnippet.beginDelayedSelectSource}
36021
+ @cancel-pending-select-source=${this.smartSnippet.cancelPendingSelectSource}
35846
36022
  ></atomic-smart-snippet-source>
35847
36023
  `)}
35848
36024
  ${renderSmartSnippetFeedbackBanner({
@@ -36052,9 +36228,9 @@ let AtomicSmartSnippetSuggestions$1 = class AtomicSmartSnippetSuggestions extend
36052
36228
  })(lit.html`
36053
36229
  <atomic-smart-snippet-source
36054
36230
  .anchorAttributes=${getAttributesFromLinkSlotContent(this, 'source-anchor-attributes')}
36055
- @beginDelayedSelectSource=${()=>this.smartSnippetQuestionsList.beginDelayedSelectSource(questionAnswerId)}
36056
- @cancelPendingSelectSource=${()=>this.smartSnippetQuestionsList.cancelPendingSelectSource(questionAnswerId)}
36057
- @selectSource=${()=>this.smartSnippetQuestionsList.selectSource(questionAnswerId)}
36231
+ @begin-delayed-select-source=${()=>this.smartSnippetQuestionsList.beginDelayedSelectSource(questionAnswerId)}
36232
+ @cancel-pending-select-source=${()=>this.smartSnippetQuestionsList.cancelPendingSelectSource(questionAnswerId)}
36233
+ @select-source=${()=>this.smartSnippetQuestionsList.selectSource(questionAnswerId)}
36058
36234
  .source=${source}
36059
36235
  ></atomic-smart-snippet-source>
36060
36236
  `);