PageSourceSearch

https://www.pratt.edu/wp-content/themes/pratt/dist/79.1f33ec409bba48b214e1.js

js pratt.edu collected 2026-10-01 08:43:22 UTC 4,241 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpratt_parent=self.webpackChunkpratt_parent||[]).push([[79],{9893:function(t,e,i){var s=i(7e3),n=i(8654),r=i(5001),o=i(1164);e.default=class{constructor(){if(this.rootEl=document.querySelector(".js-share-overlay"),!this.rootEl)throw new Error("Root share tools element not found.");if(this.possibleTriggers=document.querySelectorAll(".js-share-trigger"),!this.possibleTriggers.length>0)throw new Error("Trigger share tools element not found.");this.closeButtonEl=this.rootEl.querySelector(".js-share-close"),this.lineEl=this.rootEl.querySelector(".js-share-line"),this.shareListEl=this.rootEl.querySelector(".share-overlay__list"),this.shareTextCircle=this.rootEl.querySelector(".share-overlay__text-circle"),this.shareLinks=this.rootEl.querySelectorAll(".share-overlay__link"),this.isOpen=!1,this.focusTrap=null,this.triggeringEl=null,this.init()}init(){this.possibleTriggers.forEach(t=>{t.addEventListener("click",()=>{this.isOpen=!this.isOpen,this.triggeringEl=t,this.focusTrap=(0,n.K)(this.rootEl,{escapeDeactivates:!1,setReturnFocus:this.triggeringEl}),this.update()})}),this.closeButtonEl.addEventListener("click",()=>{this.isOpen=!1,this.update()}),document.addEventListener("keydown",t=>{this.isOpen&&"Escape"===t.key&&(t.preventDefault(),this.isOpen=!1,this.update())}),this.shareLinks.forEach(t=>{const e=()=>{this.positionLine(t),this.animateLineIn()};t.addEventListener("mouseover",e),t.addEventListener("focusin",e)});const t=()=>{requestAnimationFrame(()=>{this.shareListEl.contains(document.activeElement)?(this.positionLine(document.activeElement),this.animateLineIn()):window.innerWidth>768&&this.animateLineOut()})};this.shareListEl.addEventListener("mouseleave",t),this.shareListEl.addEventListener("focusout",t)}close(){this.isOpen&&(this.isOpen=!1,this.update())}openAnimation(t){r.os.to(this.rootEl,{duration:.3,opacity:1,ease:o.ys.easeInOut,onComplete:t})}closeAnimation(){r.os.to(this.rootEl,{duration:.3,opacity:0,ease:o.ys.easeInOut})}animateLineIn(){const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:.3,e=this.shareTextCircle.getBoundingClientRect();r.os.to("line",{strokeDashoffset:"left"===this.getCirclePosition(e)?2e3:0,duration:t,ease:o.ys.easeInOut})}animateLineOut(){const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:.3;r.os.to("line",{strokeDashoffset:1e3,duration:t,ease:o.ys.easeInOut,onComplete:()=>{this.lineEl.removeAttribute("style")}})}getCirclePosition(t){return t.left<window.innerWidth-t.right?"left":"right"}positionLine(t){const e=document.querySelector(".admin-bar")?32:0,i=t.getBoundingClientRect(),s=this.shareTextCircle.getBoundingClientRect(),n=this.lineEl.querySelector("line");"left"===this.getCirclePosition(s)?(n.setAttribute("y2",s.top-e+s.height/2),n.setAttribute("y1",i.top-e+i.height/2),this.lineEl.style.cssText=`\n        left: ${s.right}px;\n        width: ${i.left-s.right-20}px;\n        height: calc(100% - ${s.top});\n      `):(n.setAttribute("y1",s.top-e+s.height/2),n.setAttribute("y2",i.top-e+i.height/2),this.lineEl.style.cssText=`\n        right: ${window.innerWidth-s.left}px;\n        width: ${s.left-i.right-20}px;\n        height: calc(100% - ${s.top});\n      `)}positionShareCircle(){const t=this.triggeringEl.getBoundingClientRect();requestAnimationFrame(()=>{this.shareTextCircle.style.cssText=`\n        top: calc(${t.top}px - var(--wp-admin--admin-bar--height, 0px));\n        left: ${t.left}px;\n      `})}update(){this.triggeringEl.setAttribute("aria-expanded",this.isOpen),this.rootEl.setAttribute("aria-hidden",!this.isOpen),document.getElementById("share-overlay-label").innerText=this.triggeringEl.getAttribute("data-share-overlay-label")??"Share",this.shareListEl.setAttribute("data-show-subset",this.triggeringEl.getAttribute("data-subset")??"social"),this.isOpen?((0,s.mh)(this.rootEl),this.positionObserver=new ResizeObserver(()=>{this.positionShareCircle()}),this.positionObserver.observe(document.body),this.openAnimation(()=>{this.focusTrap.activate()})):((0,s.fY)(this.rootEl),this.closeAnimation(),this.focusTrap.deactivate(),this.triggeringEl=null,this.positionObserver.disconnect(),this.positionObserver=null)}}}}]);
2//# sourceMappingURL=79.1f33ec409bba48b214e1.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.