PageSourceSearch

https://www.aon.com/lib/introduction.630d1b16.js

js aon.com collected 2026-10-01 08:29:49 UTC 1,959 bytes, 1 lines download raw bytes

1import{f as getAnchorOffset,h as animateScrollTo,g as getView}from"./utils.f2275497.js";import"./index.7712d821.js";import"./global.2a31109e.js";const CLASSES={READ_MORE:"introduction--read-more",SHOW_LESS:"introduction--show-less",READ_MORE_CTA:"introduction-read-more__cta",SHOW_LESS_CTA:"introduction-show-less__cta"},LIMIT_HEIGHT_SHOW_MORE=510;class Introduction{constructor(t){this.element=t,this.canShowMore=this.element.classList.contains(`${CLASSES.READ_MORE}`),this.isShow=!1,this.readMoreBtn=t.querySelector(`.${CLASSES.READ_MORE_CTA}`),this.showLessBtn=t.querySelector(`.${CLASSES.SHOW_LESS_CTA}`),this.title=t.querySelector(".introduction-title"),this.body=t.querySelector(".introduction-body"),this.init()}showMore(){this.element.classList.remove(CLASSES.READ_MORE),this.element.classList.add(CLASSES.SHOW_LESS),this.isShow=!0}showLess(){this.element.classList.add(CLASSES.READ_MORE),this.element.classList.remove(CLASSES.SHOW_LESS),this.isShow=!1}init(){const t=this.showMore.bind(this),e=this.showLess.bind(this),s=()=>{var s,i,n,o;this.canShowMore&&this.title.clientHeight+this.body.clientHeight>=510?(null==(s=this.readMoreBtn)||s.addEventListener("click",t),null==(i=this.showLessBtn)||i.addEventListener("click",e),this.isShow?t():e()):(null==(n=this.readMoreBtn)||n.removeEventListener("click",t),null==(o=this.showLessBtn)||o.removeEventListener("click",e),this.element.classList.remove(CLASSES.READ_MORE),this.element.classList.remove(CLASSES.SHOW_LESS))};s(),window.addEventListener("resize",(()=>{s()})),document.querySelectorAll('a[href^="#"]').forEach((t=>{t.addEventListener("click",(t=>{const e=t.currentTarget.hash;if(!e||"#"===e)return;const s=document.querySelector(e);if(!s)return;t.preventDefault();const i=getAnchorOffset(getView(window.innerWidth)),n=s.getBoundingClientRect().top+window.pageYOffset-i;animateScrollTo(n)}))}))}}function init(t){if(t instanceof HTMLElement)return new Introduction(t)}export{init as default};

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.