PageSourceSearch

https://tcu.edu/_resources/js/min/home.min.js

js tcu.edu collected 2026-10-01 09:07:50 UTC 11,038 bytes, 1 lines download raw bytes

1function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function ownKeys(e,r){var o,t=Object.keys(e);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(e),r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)),t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0===e)return("string"===r?String:Number)(t);e=e.call(t,r||"default");if("object"!=_typeof(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{gsap.registerPlugin(ScrollTrigger);var videoOptions,landscapeOptions,player,heroVideo,heroWrapper,portraitOptions,actionMenuButton,actionMenufocusTrap,actionMenuOpen,actionMenu,reduceMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,isEditing=document.body.classList.contains("_is-editing"),breakPoints_small=767,breakPoints_medium=768,smallMediaQuery=window.matchMedia("(max-width: ".concat(breakPoints_small,")")),FocusTrap=(()=>_createClass(function FocusTrap(element){_classCallCheck(this,FocusTrap),this.el=element,this.focusableEls=element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),this.focusHandler=this.focusHandler.bind(this)},[{key:"addEvents",value:function(){this.el.addEventListener("keydown",this.focusHandler)}},{key:"removeEvents",value:function(){this.el.removeEventListener("keydown",this.focusHandler)}},{key:"focusHandler",value:function(e){var firstFocusableEl,lastFocusableEl;!this.el.contains(e.target)||"Tab"!==e.key&&9!==e.keyCode||(firstFocusableEl=this.focusableEls[0],lastFocusableEl=this.focusableEls[this.focusableEls.length-1],e.shiftKey?document.activeElement===firstFocusableEl&&(lastFocusableEl.focu
1s(),e.preventDefault()):document.activeElement===lastFocusableEl&&(firstFocusableEl.focus(),e.preventDefault()))}}]))();function closeActionMenu(){actionMenuOpen=!1,actionMenu.classList.remove("_is-active"),actionMenuButton.setAttribute("aria-expanded",!1),actionMenufocusTrap.removeEvents(),actionMenuButton.focus()}heroVideo=document.getElementById("tcu-home-hero__video"),(heroWrapper=document.querySelector(".tcu-home-hero")).classList.add("_is-loading"),heroVideo&&(videoOptions={},portraitOptions={url:heroVideo.dataset.portrait,width:1920,height:1080},landscapeOptions={url:heroVideo.dataset.landscape,width:390,height:844},window.matchMedia("(orientation: portrait)").matches&&(videoOptions=_objectSpread(_objectSpread({},videoOptions),portraitOptions)),window.matchMedia("(orientation: landscape)").matches&&(videoOptions=_objectSpread(_objectSpread({},videoOptions),landscapeOptions)),(player=dashjs.MediaPlayer().create()).updateSettings({streaming:{abr:{limitBitrateByPortal:!0}}}),player.initialize(heroVideo,videoOptions.url,!reduceMotion),player.on("bufferLoaded",function(){heroWrapper.classList.remove("_is-loading"),heroWrapper.classList.add("_loaded")}),heroVideo.addEventListener("click",function(){player.isPaused()?player.play():player.pause()})),document.querySelector(".tcu-home-hero")&&gsap.matchMedia().add({isMedium:"(min-width: ".concat(breakPoints_medium,"px)"),isSmall:"(max-width: ".concat(breakPoints_small,"px)"),prefersReducedMotion:"(prefers-reduced-motion: reduce)"},function(context){var context=context.conditions,isMedium=context.isMedium,context=context.prefersReducedMotion,heroText=(gsap.timeline({scrollTrigger:{start:"+=100",toggleClass:{targets:".tcu-home-hero__intro",className:"_is-active"}}}),document.querySelector(".tcu-home-hero__text")),heroImage=document.querySelector(".tcu-home-hero__image"),heroBackground=gsap.timeline({scrollTrigger:{trigger:".tcu-home-hero__text",end:"180% bottom",scrub:.5,onEnter:function(){heroText.classList.add("_is-active")},onLeaveBack:function(){heroText.classList.remove("_is-active")},onEnterBack:function(){heroImage.classList.remove("_is-absolute")},onLeave:function(){heroImage.classList.add("_is-absolute")},toggleClass:{targets:".tcu-home-hero__text-bg",className:"_is-fixed"}}});isMedium&&!context&&(heroBackground.set(".tcu-home-hero__text-bg",{xPercent:100}),heroBackground.to(".tcu-home-hero__text-bg",{xPercent:-90}))}),gsap.utils.toArray(".tcu-parallax-item").forEach(function(item){var svg=item.querySelector("svg"),start=getComputedStyle(svg).getPropertyValue("--gsap-start")||"-50%",end=getComputedStyle(svg).getPropertyValue("--gsap-end")||"-30%",item=gsap.timeline({scrollTrigger:{trigger:item,start:"top bottom",end:"bottom -30%",scrub:1}});item.set(svg,{y:start}),item.to(svg,{y:end})}),(actionMenu=document.querySelector(".tcu-action-bar__nav"))&&(portraitOptions=document.querySelectorAll(".tcu-action-bar__trigger._action, .tcu-action-bar__nav, .tcu-action-bar__nav button"),actionMenuButton=document.querySelector(".tcu-action-bar__trigger._action"),actionMenufocusTrap=new FocusTrap(actionMenu),actionMenuOpen=!1,portraitOptions.forEach(function(element){return element.addEventListener("click",function(e){e.target.className===element.className&&(actionMenuOpen?closeActionMenu():(actionMenuOpen=!0,actionMenu.classList.add("_is-active"),actionMenuButton.setAttribute("aria-expanded",!0),actionMenufocusTrap.addEvents(),actionMenu.querySelector("button").focus()))})}),smallMediaQuery.addEventListener("change",function(e){!1===e.matches&&closeActionMenu()})),gsap.matchMedia().add({isMedium:"(min-width: ".concat(breakPoints_medium,"px)"),isSmall:"(max-width: ".concat(breakPoints_small,"px)"),prefersReducedMotion:"(prefers-reduced-motion: reduce)"},function(context){var headerHeight,chantOuterElements,context=context.conditions,isMedium=context.isMedium,context=context.prefersReducedMotion,spotlightImages=gsap.utils.toArray(".tcu-spotlight-images img"),spotlightWrapper=(document.querySelectorAll(".tcu-spotlight-slide").forEach(function(slide,index){slide.querySelector("a").addEventListener("focusin",function(){spotlightImages[index].scrollIntoView({behavior:"smooth"})})}),document.querySelector(".tcu-spotlight-wrapper"));!spotlightWrapper||context||isEditing||(headerHeight=document.querySelector(".tcu-header").offsetHeight,isMedium&&(gsap.timeline({scrollTrigger:{trigger:spotlightWrapper,start:"top top",end:"bottom bottom",toggleClass:{targets:"body",className:"_within-slide"}}}),gsap.timeline({scrollTrigger:{trigger:spotlightWrapper,start:"-=".concat(headerHeight," top"),end:"100%+=".concat(headerHeight," bottom"),toggleClass:{targets:"body",className:"_hide-header"}}}
1),spotlightImages.forEach(function(image,index){var slide=document.querySelector(".tcu-spotlight-slide:nth-child(".concat(index+1,")")),content=slide.querySelector(".tcu-spotlight-slide__content-overflow"),secondaryImage=slide.querySelector(".tcu-spotlight-slide__secondary-image");function enterAnimation(reversed){var tl=gsap.timeline({ease:"power1.inOut",paused:!0});tl.fromTo(content,{x:"100%",opacity:0},{x:0,opacity:1,duration:1}),tl.fromTo(secondaryImage,{x:"100vw"},{x:0,duration:1},"<"),reversed?tl.progress(1).reverse():tl.play()}function leaveAnimation(reversed){var tl=gsap.timeline({ease:"power1.inOut",paused:!0});tl.fromTo(content,{x:"0",opacity:1},{x:"-100%",opacity:0,duration:1}),tl.fromTo(secondaryImage,{x:"0"},{x:"-100vw",duration:1},"<"),reversed?tl.progress(1).reverse():tl.play()}gsap.set(content,{x:"100%",opacity:0}),gsap.set(secondaryImage,{x:"100vw"}),gsap.timeline({scrollTrigger:{trigger:image,start:"top center",end:"bottom center",onEnter:function(){slide.classList.add("_is-active"),enterAnimation()},onEnterBack:function(){slide.classList.add("_is-active"),leaveAnimation(!0)},onLeave:function(){slide.classList.remove("_is-active"),leaveAnimation()},onLeaveBack:function(){slide.classList.remove("_is-active"),enterAnimation(!0)}}})})),spotlightWrapper=document.querySelector(".tcu-testimonial__wrapper"),(headerHeight=document.querySelector(".tcu-testimonial__bg"))&&isMedium&&!context?gsap.fromTo(headerHeight,{y:0},{y:"20%",ease:"none",scrollTrigger:{trigger:spotlightWrapper,start:"top top",end:"bottom top",scrub:.5,invalidateOnRefresh:!0}}):headerHeight&&!context?gsap.fromTo(headerHeight,{y:0},{y:"15%",ease:"none",scrollTrigger:{trigger:spotlightWrapper,start:"bottom bottom",end:"bottom top",scrub:.5,invalidateOnRefresh:!0}}):gsap.set(".tcu-testimonial__bg",{clearProps:"transform"}),spotlightWrapper&&isMedium?gsap.fromTo(".tcu-testimonial",{y:100},{y:0,ease:"none",scrollTrigger:{trigger:spotlightWrapper,start:"top bottom",end:"bottom bottom",scrub:!0,invalidateOnRefresh:!0}}):gsap.set(".tcu-testimonial",{clearProps:"transform"}),headerHeight=document.querySelector(".tcu-scrolling-text"),chantOuterElements="".concat(".tcu-chant-text p:first-child",", ").concat(".tcu-chant-text p:nth-child(3)"),headerHeight&&!context&&ScrollTrigger.batch(".tcu-scrolling-text",{onEnter:function(){isMedium?(gsap.set(".tcu-chant-text p",{clearProps:"all"}),gsap.set(".tcu-chant-text p:first-child",{xPercent:0}),gsap.set(".tcu-chant-text p:nth-child(2)",{xPercent:-25}),gsap.set(".tcu-chant-text p:nth-child(3)",{xPercent:-15})):(gsap.set(".tcu-chant-text p",{clearProps:"all"}),gsap.set(".tcu-chant-text p:first-child",{xPercent:0}),gsap.set(".tcu-chant-text p:nth-child(2)",{xPercent:-40}),gsap.set(".tcu-chant-text p:nth-child(3)",{xPercent:-45})),gsap.to(chantOuterElements,{x:-100,ease:"none",scrollTrigger:{trigger:".tcu-scrolling-text",scrub:.5,start:"top bottom",end:"bottom top",invalidateOnRefresh:!0}}),gsap.to(".tcu-chant-text p:nth-child(2)",{x:80,ease:"none",scrollTrigger:{trigger:".tcu-scrolling-text",scrub:.5,start:"top bottom",end:"bottom top",invalidateOnRefresh:!0}})}}))})})();

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.