PageSourceSearch

https://www.unsw.edu.au/etc.clientlibs/unsw-common/clientlibs/unsw…vents-teaser-manual-4114bfc1f81553dc3046.js

js unsw.edu.au collected 2026-09-24 06:54:09 UTC 3,846 bytes, 39 lines download raw bytes

1"use strict";(self.webpackChunkuds_styleguide=self.webpackChunkuds_styleguide||[]).push([[1725],{2793:(function(v,u,d){d.d(u,{CM:function(){return e},Jf:function(){return c},pn:function(){return a}});function a(t){const r=window.DOMPurify;if(r)return r.sanitize(t,{USE_PROFILES:{html:!0}});const s=document.createElement("div");return s.textContent=t,s.innerHTML}function c(t){const r=t.trim();if(!r)return"#";try{const s=new URL(r,window.location.href);return s.protocol!=="http:"&&s.protocol!=="https:"?"#":s.href}catch(s){return"#"}}function e(t){return t.replace(/(&|\u0026)(nbsp|#160|#xA0);/gi," ").replace(/\u00A0/g," ")}}),4019:(function(v,u,d){var a=d(9493),c=d(2793),e=d(7836);class t{constructor(n){this.element=n,this.init()}init(){const n=this.element.querySelector(".card-events-teaser__date-container"),i=this.element.querySelector(".card-events-teaser__keywords");n&&(n.innerHTML=(0,e.wn)(n.dataset.startDate||"",n.dataset.endDate||"","card-events-teaser")),i&&(i.innerHTML=this.buildSubjectArea(i.dataset.subjectArea))}buildSubjectArea(n=""){return n.split?n.split(",").map(i=>`<li><span rel="tag" class="card-events-teaser__tag">${(0,c.pn)(i)}</span></li>`).join(""):""}}const r=new a.q('[data-cmp-is="card-events-teaser-manual"]',s=>new t(s));r.init(),r.observe()}),7836:(function(v,u,d){d.d(u,{gI:function(){return t},wn:function(){return s}});var a=d(2793);const c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];class t{constructor(i){this.element=i,this.init()}init(){const i=this.element.querySelector(".events-page-header__date-container");i&&(i.innerHTML=s(i.dataset.startDate||"",i.dataset.endDate||"","events-page-header"))}}function r(n=document){n.querySelectorAll(".events-page-header__container").forEach(i=>{new t(i)})}function s(n,i,m){const o=new Date(n),l=new Date(i);return o.toDateString()===l.toDateString()?`
2      <div class="${m}__date-item single-date">
3        <div class="weekday">
4          <div class="start-day">${(0,a.pn)(e[o.getDay()]||"")}</div>
5        </div>
6        <div class="day-number">
7          <div class="start-number">${(0,a.pn)(String(o.getDate()))}</div>
8        </div>
9        <div class="month">
10          <div class="start-month">${(0,a.pn)(c[o.getMonth()]||"")}</div>
11        </div>
12      </div>
13    `:`
14    <div class="${m}__date-item">
15      <div class="start-date">
16        <div class="weekday">
17          <div class="start-day">${(0,a.pn)(e[o.getDay()]||"")}</div>
18        </div>
19        <div class="day-number">
20          <div class="start-number">${(0,a.pn)(String(o.getDate()))}</div>
21        </div>
22        <div class="month">
23          <div class="start-month">${(0,a.pn)(c[o.getMonth()]||"")}</div>
24        </div>
25      </div>
26      <div class="dash">-</div>
27      <div class="end-date">
28        <div class="weekday">
29          <div class="end-day">${(0,a.pn)(e[l.getDay()]||"")}</div>
30        </div>
31        <div class="day-number">
32          <div class="end-number">${(0,a.pn)(String(l.getDate()))}</div>
33        </div>
34        <div class="month">
35          <div class="end-month">${(0,a.pn)(c[l.getMonth()]||"")}</div>
36        </div>
37      </div>
38    </div>
39  `}}),9493:(function(v,u,d){d.d(u,{q:function(){return a}});class a{constructor(e,t){this.selector=e,this.createComponent=t}init(e=document){e.querySelectorAll(this.selector).forEach(t=>{this.initElement(t)})}observe(){const e=document.querySelector("body");if(!e)return;new MutationObserver(r=>{r.forEach(s=>{Array.from(s.addedNodes).forEach(n=>{this.initNode(n)})})}).observe(e,{childList:!0,subtree:!0})}initNode(e){if(e instanceof Element){e.matches(this.selector)&&this.initElement(e),this.init(e);return}e instanceof DocumentFragment&&this.init(e)}initElement(e){e.removeAttribute("data-cmp-is"),this.createComponent(e)}}})}]);

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.