1import { a as e, i as t, n, u as r } from "./decoratorsDgvFPsqQ.js"; 2import { d as i } from "./utilsCdZ5ESYt.js"; 3import { t as a } from "./light-domBii3S8u8.js"; 4import { t as o } from "./style-mapBSqwCM_3.js"; 5import { t as s } from "./debounce-utilsDiaIhBnY.js"; 6//#region node_modules/@coveo/atomic/dist/atomic/components/components/common/atomic-aria-live/atomic-aria-live.js 7var c = function(e, t, n, r) { 8 var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o; 9 if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r); 10 else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a); 11 return i > 3 && a && Object.defineProperty(t, n, a), a; 12}, l = class extends a(e) { 13 constructor() { 14 super(...arguments), this.regions = {}, this.messagesQueue = s({ delay: 500 }), this.onFindAriaLive = (e) => { 15 let t = e; 16 t.detail.element = this; 17 }; 18 } 19 connectedCallback() { 20 super.connectedCallback(), this.ariaLiveId = i("atomic-aria-live-"), document.addEventListener("atomic/accessibility/findAriaLive", this.onFindAriaLive); 21 } 22 disconnectedCallback() { 23 super.disconnectedCallback(), this.messagesQueue.clear(), document.removeEventListener("atomic/accessibility/findAriaLive", this.onFindAriaLive); 24 } 25 updateMessage(e, t, n) { 26 let r = () => { 27 this.regions = { 28 ...this.regions, 29 [e]: { 30 assertive: n, 31 message: t 32 } 33 }; 34 }; 35 t ? this.messagesQueue.enqueue(r, e) : (this.messagesQueue.cancelActionIfQueued(e), r()); 36 } 37 registerRegion(e, t) { 38 e in this.regions || (this.regions = { 39 ...this.regions, 40 [e]: { 41 assertive: t, 42 message: "" 43 } 44 }); 45 } 46 render() { 47 return r` 48 <div style=${o({ 49 position: "absolute", 50 display: "block", 51 height: "0", 52 overflow: "hidden", 53 margin: "0" 54 })}> 55 ${Object.entries(this.regions).map(([e, { assertive: t, message: n }]) => r` 56 <div 57 id="${this.ariaLiveId}-${e}" 58 aria-live="${t ? "assertive" : "polite"}" 59 role="status" 60 > 61 ${n} 62 </div> 63 `)} 64 </div> 65 `; 66 } 67}; 68c([n()], l.prototype, "regions", void 0), l = c([t("atomic-aria-live")], l); 69//#endregion 70export { l as AtomicAriaLive };
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.