PageSourceSearch

https://www.iu.org/build/assets/AspectRatio-DvmGhBbO.js

js iu.org collected 2026-09-24 09:22:26 UTC 991 bytes, 1 lines download raw bytes

1import{D as e,On as t,b as n,er as r,et as i,g as a,k as o,mt as s,qt as c,v as l,xt as u}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{t as d}from"./useForwardExpose-C9TjO9Mm.js";import{t as f}from"./Primitive-OUQ7g2gS.js";var p=o({inheritAttrs:!1,__name:`AspectRatio`,props:{ratio:{type:Number,required:!1,default:1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(o){let l=o,{forwardRef:p}=d(),m=a(()=>1/l.ratio*100);return(a,o)=>(s(),n(`div`,{style:r(`position: relative; width: 100%; padding-bottom: ${m.value}%`),"data-reka-aspect-ratio-wrapper":``},[e(t(f),i({ref:t(p),"as-child":a.asChild,as:a.as,style:{position:`absolute`,inset:`0px`}},a.$attrs),{default:c(()=>[u(a.$slots,`default`,{aspect:m.value})]),_:3},16,[`as-child`,`as`])],4))}}),m=o({__name:`AspectRatio`,props:{ratio:{},asChild:{type:Boolean},as:{}},setup(e){let n=e;return(e,r)=>(s(),l(t(p),i({"data-slot":`aspect-ratio`},n),{default:c(()=>[u(e.$slots,`default`)]),_:3},16))}});export{m 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.