PageSourceSearch

https://www.iu.org/build/assets/useCard-DUHBDvQO.js

js iu.org collected 2026-09-24 09:20:29 UTC 1,425 bytes, 1 lines download raw bytes

1import{g as e}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{c as t}from"./utils-DICGkfbo.js";import{a as n}from"./button-D5_pHZWS.js";import{s as r,u as i}from"./cloudinary-gjdUMiSH.js";var a=(e,n)=>{n?.startsWith(`#`)&&(t(n.substring(1)),e.preventDefault())},o={"1:1":1,"2:1":2,"3:4":3/4};function s(e){return e||`2:1`}function c(e){return o[s(e)]}function l(e){try{let t=e.value;if(!t?.parentElement)return 0;let n=t.parentElement,r=0;for(;n&&n.children.length<=1&&r<50;){let e=n.parentElement;if(!e||e===document.body||e===document.documentElement)break;n=e,r++}if(!n||r>=50)return 0;let i=n.querySelectorAll(`.animation-background`);if(i.length===0)return 0;let a=Array.from(i).map(e=>e.closest(`[role="link"], [role="article"]`)).filter(e=>e!==null),o=t.closest(`[role="link"], [role="article"]`);if(!o)return 0;let s=a.findIndex(e=>e===o||e.contains(t));return Math.max(s,0)}catch{return 0}}function u(t){let r=e(()=>n(t.linkedStory)??``),i=e(()=>!!r.value),o=e(()=>r.value.startsWith(`#`)),s=e(()=>r.value.startsWith(`http`)?r.value:null);return{isClickable:i,isAnchorLink:o,isExternalLink:e(()=>!!s.value),getHref:r,shouldBeClickable:e(()=>i.value&&(!t.footer||t.footer?.length===0)),handleCardClick:e=>a(e,r.value)}}function d(t){return{isVideo:e(()=>{if(!t?.filename)return!1;let e=r(t.filename),n=t.content_type;return i(e)||(n?.startsWith(`video/`)??!1)})}}export{d as a,u as i,s as n,a as o,l as r,c as t};

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.