PageSourceSearch

https://www.dal.ca/etc.clientlibs/dal-main/clientlibs/clientlib-si…/resources/chunks/4-6ee50a522433fa17b20a.js

js dal.ca collected 2026-09-24 07:29:39 UTC 1,299 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_dal_main=self.webpackChunkaem_dal_main||[]).push([[4],{4:function(e,t,c){c.r(t),c.d(t,{default:function(){return l}});var a=c(848),n=c(540),s=c(961);const r=(e,t,c)=>{const a=t-e;return((c-e)%a+a)%a+e};var o=c(522);function u({gcseCode:e}){return(0,n.useEffect)((()=>{const t=document.createElement("script");return t.src=`https://cse.google.com/cse.js?cx=${e}`,t.async=!0,document.body.appendChild(t),()=>{document.body.removeChild(t)}}),[e]),(0,a.jsx)("div",{className:"gcse-search","data-webSearchSafesearch":!1,"data-webSearchResultSetSize":20,"data-enableHistory":!1})}function l({title:e,gcseCode:t}){const[c,l]=function(...e){const t=(0,n.useRef)(0),[c,a]=(0,n.useState)(e[t.current]);return[c,(0,n.useCallback)((c=>{t.current="number"!=typeof c?r(0,e.length,t.current+1):c,a(e[t.current])}),[e.length,...e])]}(!1,!0),[d,i]=(0,n.useState)(c);return(0,n.useEffect)((()=>{c&&i(!0)}),[c,i]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:"cmp-search__button",type:"button",title:"Open Search","aria-label":"Open Search",onClick:()=>l()}),(0,s.createPortal)((0,a.jsx)(o.A,{className:"cmp-search__modal",open:c,disableEscape:!1,onClose:()=>{c&&l()},title:e,closeLabel:"Close Search",children:d&&(0,a.jsx)(u,{gcseCode:t})}),document.body)]})}}}]);

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.