1function openModal(a,b){var c=a[0],h=a[1],e=a[2],k=a[3],f=a[4],d=a[5],g=a[6],l=a[7],m=a[8];a=a[9];null!==d&&""!==d&&(e=d);"video/mp4"===e?e="video":"application/pdf"===e&&(e="pdf");if(0===c.indexOf("https://www.youtube.com/")){e="youTube";d="";d=c;var n=c.match(/[?&]v=([^&/]+)|(?:shorts\/)([^&/]+)/);n&&(d=null!=n[1]?n[1]:n[2],d="https://www.youtube.com/".concat("embed/").concat(d).concat("?modestbranding\x3d1\x26rel\x3d0"));document.getElementById("youtube-video").innerHTML='\x3ciframe id\x3d"yt-frame" width\x3d"auto" src\x3d"'+ 2d+'" frameborder\x3d"0" allow\x3d"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen\x3e\x3c/iframe\x3e'}if("true"!==h||"video"!==e&&"pdf"!==e&&"youTube"!==e)b=c.slice((c.lastIndexOf(".")-1>>>0)+2),c.startsWith("/content/www/")&&""===b&&(c+=".html"),window.location.href=c;else{h=b.target.attributes.title.nodeValue;d=document.querySelector(".modal-title");n=document.querySelector(".label_value_modal");var t=document.querySelector(".modal-resourceType"), 3q=document.querySelector(".myVideo"),r=document.querySelector(".modal-dialog-centered"),u=document.querySelector("#myPdf"),v=document.querySelector(".modal-tag"),w=document.querySelector("#yt-frame");r.removeAttribute("style");setModalSize(e,r,q,u,w);if(null===g||""===g)g=c;""!==a&&document.querySelector(".modal-icon").classList.add(a);"video"===e?(document.querySelector(".video-body").classList.remove("d-none"),q.src=g):"youTube"===e?document.querySelector(".youtube-body").classList.remove("d-none"): 4(document.querySelector(".pdf-body").classList.remove("d-none"),0===c.indexOf("/content/dam")?fetch(c).then(function(p){return p.blob()}).then(function(p){p=URL.createObjectURL(p);document.getElementById("myPdf").setAttribute("src",p)}):document.getElementById("myPdf").setAttribute("src",g));"true"===l&&(t.textContent=k);""===m||""===f?v.classList.add("d-none"):n.textContent=f;d.textContent=h;b.preventDefault();b.target.classList.add("active");$("#simpleCardModal").modal("show")}} 5function setModalSize(a,b,c,h,e){var k=window.innerHeight,f=window.screen.width,d=k-150,g=f-50,l=16/9,m=0;991<=f?m=57:767<=f&&(m=30);1.6<=f/k?(k=d,l=Math.round(k*l),g=l+m):k=Math.round((g-m)/l);"video"===a&&767<=f?(c.setAttribute("height",k),b.style.width=g+"px"):"youTube"===a&&767<=f?(e.setAttribute("height",k),b.style.width=g+"px"):767<=f?h.setAttribute("height",d):h.setAttribute("height",d-40)} 6function closeModal(){document.querySelector(".video-body").classList.add("d-none");document.querySelector(".pdf-body").classList.add("d-none");document.querySelector(".modal-tag").classList.remove("d-none");document.querySelector(".modal-resourceType").innerHTML="";document.querySelector(".label_value_modal").innerHTML="";document.getElementById("youtube-video").innerHTML="";document.querySelector(".youtube-body").classList.add("d-none");var a=document.querySelector(".modal-icon");a.className=""; 7a.classList.add("modal-icon");document.querySelector("#myPdf").removeAttribute("src");a=document.querySelector(".myVideo");a.removeAttribute("src");a.pause();document.querySelector(".modal-dialog-centered").removeAttribute("style");document.querySelector(".myVideo").removeAttribute("height");if(a=document.querySelector(".item-title.active"))a.focus(),a.classList.remove("active")} 8function toggleVideo(){var a=document.querySelector(".myVideo"),b=document.querySelector(".play-button");a.paused&&(a.setAttribute("controls","true"),a.play(),b.classList.add("d-none"),a.classList.add("videoOn"))}document.addEventListener("click",function(a){var b=document.getElementById("simpleCardModal");a.target!==b&&"close-modal"!==a.target.id&&"close-modal-tab"!==a.target.id||closeModal()}); 9document.addEventListener("keydown",function(a){var b=document.getElementById("simpleCardModal"),c=document.getElementById("close-modal");"block"===b.style.display&&"Escape"===a.key&&c.click()});function stripExternalTitle(){var a=window.screen.width,b=102;if(991>=a)b=45;else if(1650<=a||991<=a&&1199>=a)b=90;document.querySelectorAll(".item-title-ext").forEach(function(c){var h=c.getAttribute("title");c=c.querySelector("span");h.length>b&&(c.textContent=h.substring(0,b)+"...")})} 10function removeExtraSimpleCardModal(){document.querySelectorAll("#simpleCardModal").forEach(function(a,b){0<b&&a.remove()})}window.addEventListener("resize",function(){stripExternalTitle()});document.addEventListener("DOMContentLoaded",function(){stripExternalTitle();removeExtraSimpleCardModal()});
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.