PageSourceSearch

https://www.redlands.edu/scripts/index-CB25K5V4.js

js redlands.edu collected 2026-09-24 08:56:43 UTC 3,172 bytes, 2 lines download raw bytes

1import{R as a,u as D,a as g,Q as p}from"./vendor-B8v9NfwB.js";import{G as r}from"./index-D1Ap_37U.js";import{L as _,a as F,b as y}from"./Loader-BZNNH0wM.js";import{g as N}from"./index-zvb7O35g.js";import{g as d,a as v}from"./getDateLetter-BmmNDCLv.js";import"./main.bundle-BULf5iqC.js";const C=(n,t)=>{var i;const o=new r(n),f=new Date().toISOString(),{isError:e,error:E,isFetching:m,data:c}=D({queryKey:["GetFeaturedEvents",{tag:t}],queryFn:async()=>t?o.request(F,{tag:t,date:f}):o.request(y,{date:f}),refetchOnWindowFocus:!1,networkMode:"always"});return{status:e?"error":m?"loading":"success",error:E,results:c&&((i=c.EventDetailPage)!=null&&i.items)?c.EventDetailPage.items:[]}},I=({tag:n})=>{const{status:t,results:o}=C(N(),n);if(t==="loading")return a.createElement(_,null);const f=e=>{let E="";if(!e)return;const{EventAudienceFacet:m,EventLocationFacet:c,EventTypeFacet:i}=e;return c&&c.Categories[0]&&c.Categories[0].Id===n&&(E=c.Categories[0].Title),m&&m.Categories[0]&&m.Categories[0].Id===n&&(E=m.Categories[0].Title),(i&&i.Categories[0]&&i.Categories[0].Id===n||!n)&&(E=i.Categories[0].Title),E};return a.createElement(a.Fragment,null,t==="error"&&a.createElement(a.Fragment,null),o.length===0&&a.createElement(a.Fragment,null),o.length>0&&a.createElement(a.Fragment,null,o.map(e=>a.createElement("a",{href:e!=null&&e.Url?e.Url:"#",className:"link featured-event-card",key:e==null?void 0:e._id},a.createElement("div",{className:"featured-event-card__info"},a.createElement("h3",{className:"featured-event-card__even-title"},a.createElement("span",{className:"featured-event-card__even-title-label"},e==null?void 0:e.EventTitle),a.createElement("div",{className:"link-decorator"},a.createElement("span",{className:"link-decorator-inner"}),a.createElement("span",{className:"link-decorator-outer"}))),a.createElement("p",{className:"featured-event-card__event-type"},((e==null?void 0:e.EventLocationFacet)||(e==null?void 0:e.EventAudienceFacet)||(e==null?void 0:e.EventLocationFacet))&&a.createElement("span",null,f(e)))),(e==null?void 0:e.InitialDateEvent)&&(e==null?void 0:e.EndDateEvent)&&a.createElement("div",{className:"featured-event-card__date"},a.createElement("p",{className:"featured-event-card__date-month"},d(e==null?void 0:e.InitialDateEvent),d(e==null?void 0:e.InitialDateEvent)!==d(e==null?void 0:e.EndDateEvent)&&`-${d(e==null?void 0:e.EndDateEvent)}`),a.createElement("p",{className:"featured-event-card__date-days"},v(e==null?void 0:e.InitialDateEvent),(v(e==null?void 0:e.InitialDateEvent)!==v(e==null?void 0:e.EndDateEvent)||d(e==null?void 0:e.InitialDateEvent)!==d(e==null?void 0:e.EndDateEvent))&&`-${v(e==null?void 0:e.EndDateEvent)}`)),(e==null?void 0:e.InitialDateEvent)&&!(e!=null&&e.EndDateEvent)&&a.createElement("div",{className:"featured-event-card__date"},a.createElement("p",{className:"featured-event-card__date-month"},d(e==null?void 0:e.InitialDateEvent)),a.createElement("p",{className:"featured-event-card__date-days"},v(e==null?void 0:e.InitialDateEvent)))))))},h=new p,b=({title:n,tag:t})=>a.createElement(g,{client:h},a.createElement(I,{title:n,tag:t}));export{b as default};
2//# sourceMappingURL=index-CB25K5V4.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.