PageSourceSearch

https://www.iu.org/build/assets/useConditionalWrapper-K4QAn44j.js

js iu.org collected 2026-10-01 11:28:52 UTC 1,075 bytes, 1 lines download raw bytes

1import{i as e}from"./dist-V0wV9pPA.js";import{t}from"./ssr-F9GWYbf6.js";import{n}from"./usePrefillUtils-CQPruryQ.js";var r=()=>{let{props:r}=e(),i=e=>e===r.userAgent,a=e=>{let{studyProgram:t}=n(`lastVisitedProduct`);return t===e},o=e=>r.usergroup===e,s=e=>r.cloudfrontViewerCountry===e,c=e=>r.currentLocale===e,l=(e,n)=>t?new URLSearchParams(globalThis.window.location.search).get(e)===n:!1,u=(e,t)=>{let n=new Date,r=new Date(t);return Number.isNaN(r.getTime())?!1:e===`before_date_time`?n<r:n>r},d={userAgent:i,lastVisitedProduct:a,usergroup:o,userCountry:s,locale:c},f=e=>{if(e.label===`dateTime`&&e.operator&&e.dateTime)return u(e.operator,e.dateTime);if(e.label===`parameter`&&e.parameterName)return l(e.parameterName,e.conditionValue);let t=d[e.label];return t?.(e.conditionValue)??!1};return{evaluateCondition:f,evaluateConditions:(e,t=`showAllTrue`,n=!1)=>{if(!e||e.length===0||n&&r.isInPreview)return!0;let i=e.map(f),a=i.some(Boolean),o=i.every(Boolean);return{showAnyTrue:()=>a,showAllTrue:()=>o,hideAnyTrue:()=>!a,hideAllTrue:()=>!o}[t]?.()??!0}}};export{r 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.