PageSourceSearch

https://www.financialhorizons.com/etc/clientlibs/canadalife/modern/218b5d9b/chunk-AemSearchResults.js

js financialhorizons.com collected 2026-10-07 15:51:03 UTC 2,787 bytes, 104 lines download raw bytes

1import { i, __tla as __tla_0 } from "./chunk-_virtual___federation_fn_import.js";
2import { x as a, __tla as __tla_1 } from "./chunk-index3.js";
3import { a as n } from "./chunk-parsing.js";
4import { s as l } from "./chunk-search.mixin.js";
5import { _ as c } from "./chunk-_plugin-vue_export-helper.js";
6let j;
7let __tla = Promise.all([
8  (() => {
9    try {
10      return __tla_0;
11    } catch {
12    }
13  })(),
14  (() => {
15    try {
16      return __tla_1;
17    } catch {
18    }
19  })()
20]).then(async () => {
21  const u = "/services/solr.json", d = {
22    name: "AemSearchResults",
23    components: {
24      SearchWithResults: a
25    },
26    extends: a,
27    mixins: [
28      l
29    ],
30    props: {
31      quicklinks: {
32        type: String,
33        default: ""
34      },
35      limitResults: {
36        type: String,
37        default: ""
38      }
39    },
40    computed: {
41      customProps() {
42        return {
43          ...this.$props,
44          quicklinks: n(this.quicklinks),
45          suggestions: this.suggestionsObject,
46          searchDataEndpoint: u,
47          customRequestParams: this.requestParams,
48          formatter: this.dataFormatter
49        };
50      },
51      requestParams() {
52        return this.promoteIds ? {
53          ...this.defaultRequestParams,
54          promoteIds: this.promoteIds
55        } : this.defaultRequestParams;
56      },
57      promoteIds() {
58        const s = this.currentQuery;
59        let t = [];
60        return this.suggestionsObject && this.suggestionsObject.items && s && this.suggestionsObject.items.map((e) => {
61          e.label == s && t.push(e.promoteUrl);
62        }), t.length > 0 ? t.join(",") : "";
63      },
64      defaultRequestParams() {
65        return {
66          site: window.canadalife && window.canadalife.vars && window.canadalife.vars.site,
67          lang: window.canadalife && window.canadalife.vars && window.canadalife.vars.locale,
68          format: this.limitResults == "pdfs" ? "application/pdf" : "",
69          pageSize: 100
70        };
71      }
72    },
73    mounted() {
74      this.fetchSuggestions();
75    },
76    methods: {
77      dataFormatter(s) {
78        const t = s.documents;
79        return t && t.map((e) => {
80          e.highlighted = e.promoted, e.linkType = e.format != "html" ? "download" : "", e.linkLabel = e.linklabel, e.titleHeadingLevel = this.startingHeadingLevel;
81        }), t;
82      }
83    }
84  }, { renderSlot: m, resolveComponent: p, normalizeProps: h, guardReactiveProps: f, withCtx: g, openBlock: _, createBlock: w } = await i("vue");
85  function R(s, t, e, S, k, o) {
86    const r = p("SearchWithResults");
87    return _(), w(r, h(f(o.customProps)), {
88      default: g(() => [
89        m(s.$slots, "default")
90      ]),
91      _: 3
92    }, 16);
93  }
94  j = c(d, [
95    [
96      "render",
97      R
98    ]
99  ]);
100});
101export {
102  __tla,
103  j as default
104};

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.