PageSourceSearch

https://www.principal.com/profiles/contrib/houston/modules/pfg_cov…/pdscoveo-result-reading-time.D6NaA8QO.js

js principal.com collected 2026-09-24 08:41:26 UTC 2,449 bytes, 47 lines download raw bytes

1import { b as e, n as t, r as n } from "./pdscoveo-breadbox.9Y03e-5b.js";
2import { _ as r, d as i, f as a, h as o, n as s, p as c, r as l, u } from "./lit.BIXSeZ-E.js";
3import "./pdscoveo-result-card.ZqjvJf7k.js";
4//#region packages/pdscoveo/src/components/pdscoveo-result-reading-time/pdscoveo-result-reading-time.css?inline
5var d = ":host{font-family:var(--pds-semantic-type-meta-sm-font-family);font-size:var(--pds-semantic-type-meta-sm-font-size);letter-spacing:var(--pds-semantic-type-meta-sm-letter-spacing);margin-bottom:calc(2 * var(--pds-base-unit,8px));text-transform:uppercase;font-weight:400;display:block}abbr[title]{text-decoration:none}.pds-c-coveo-result-reading-time-layout{align-items:center;gap:calc(.75 * var(--pds-base-unit,8px));display:inline-flex}", f = class extends c {
6	static {
7		this.styles = r(d);
8	}
9	constructor() {
10		super(), this.field = "wordcount", this.countExists = !1, this.time = s`1`, this.resultContext = e(this);
11	}
12	async connectedCallback() {
13		super.connectedCallback();
14		try {
15			if (!this.result && this.resultContext.item) {
16				let e = this.resultContext.item;
17				"result" in e ? this.result = e.result : this.result = e;
18			}
19		} catch (e) {
20			console.error(e), this.remove();
21		}
22	}
23	render() {
24		if (!(this.error || !this.result)) return o`${l(this.result, () => (this.fixed && this.result.raw[this.fixed] ? (this.time = s`${this.result.raw[this.fixed]}`, this.countExists = !0) : this.result.raw[this.field] && (this.count = this.result.raw[this.field], this.time = s`${Math.ceil(this.count / 225)}`, this.countExists = !0), this.countExists ? o`<div class="pds-c-coveo-result-reading-time-layout">
25          <pds-icon-clock part="icon" size="xs"></pds-icon-clock>
26          <span class="pds-c-coveo-result-reading-time-time">
27            ${this.time}
28          </span>
29          <slot name="default">
30            <span>
31              <abbr title="minute">min</abbr> read
32            </span>
33          </slot>
34        </div>` : null))}`;
35	}
36};
37t([u(), n("design:type", Object)], f.prototype, "result", void 0), t([i({
38	attribute: "field",
39	type: String
40}), n("design:type", Object)], f.prototype, "field", void 0), t([i({
41	attribute: "fixed",
42	type: String
43}), n("design:type", String)], f.prototype, "fixed", void 0), f = t([a("pdscoveo-result-reading-time"), n("design:paramtypes", [])], f);
44//#endregion
45export { f as t };
46
47//# sourceMappingURL=pdscoveo-result-reading-time.D6NaA8QO.js.map

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.