PageSourceSearch

https://map.baylor.edu/js/852.28ce001a618ba373a29e.js

js baylor.edu collected 2026-09-24 06:53:17 UTC 6,991 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmap_ui=self.webpackChunkmap_ui||[]).push([[852],{6733(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setAuthInfo=t.logout=t.login=void 0,t.login=function(){return{type:"LOGIN"}},t.logout=function(){return{type:"LOGOUT"}},t.setAuthInfo=function(e){return{type:"SET_AUTH_INFO",data:e}}},71516(e,t,o){var n=o(24994),a=n(o(17383)),r=n(o(34579)),i=n(o(28452)),s=n(o(63072)),u=n(o(29511)),c=n(o(96540)),l=n(o(76548)),m=n(o(6525)),f=o(72962),d=o(74848);function p(e,t,o){return t=(0,s.default)(t),(0,i.default)(e,h()?Reflect.construct(t,o||[],(0,s.default)(e).constructor):t.apply(e,o))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var g=function(e){function t(e){var o;return(0,a.default)(this,t),(o=p(this,t,[e])).requestLogin=o.requestLogin.bind(o),o}return(0,u.default)(t,e),(0,r.default)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.auth,o=t.keycloak,n=e.auth;t.loginRequested&&!n.loginRequested?o.login({idpHint:t.ssoIdpName}):t.logoutRequested&&!n.logoutRequested&&o.logout()}},{key:"requestLogin",value:function(){m.default.push(f.GaEvents.LOGIN_CLICK,"Sign In"),sessionStorage.setItem(f.SessionStorageKeys.LOGIN_TRIGGER,f.LoginTrigger.BUTTON),this.props.login()}},{key:"render",value:function(){var e=this.props,t=e.auth,o=e.enableRestrictedCategories,n=e.enableRestrictedInteriors,a=e.hideSignInButton;if(!0===t.authenticated){if(!t.userInfo)return null;var r=t.userInfo.email||"",i=t.userInfo.given_name||r.split("@")[0]||"";return(0,d.jsx)(l.default,{givenName:i,name:t.userInfo.name||"",email:r,onSignOut:this.props.logout})}return!a&&(o||n)&&t.keycloak?(0,d.jsx)("button",{className:"auth-button",onClick:this.requestLogin,children:"Sign In"}):null}}])}(c.default.Component);e.exports=g},7852(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(61225),r=o(91829),i=n(o(71516)),s=o(6733);t.default=(0,a.connect)((function(e){return{auth:e.auth,enableRestrictedCategories:e.config.enableRestrictedCategories,enableRestrictedInteriors:e.config.enableRestrictedInteriors,hideSignInButton:e.config.hideSignInButton}}),(function(e){return(0,r.bindActionCreators)({login:s.login,logout:s.logout,setAuthInfo:s.setAuthInfo},e)}))(i.default)},69474(e,t,o){o.d(t,{A:()=>s});var n=o(31601),a=o.n(n),r=o(76314),i=o.n(r)()(a());
1i.push([e.id,"@-webkit-keyframes shareSlideUp{from{bottom:-330px}to{bottom:10px}}@-moz-keyframes shareSlideUp{from{bottom:-330px}to{bottom:10px}}@keyframes shareSlideUp{from{bottom:-330px}to{bottom:10px}}@-webkit-keyframes fadeInFadeOut{0%{opacity:0}5%{opacity:1}85%{opacity:1}100%{opacity:0}}@-moz-keyframes fadeInFadeOut{0%{opacity:0}5%{opacity:1}85%{opacity:1}100%{opacity:0}}@keyframes fadeInFadeOut{0%{opacity:0}5%{opacity:1}85%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@-moz-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}@-webkit-keyframes heightGrow{from{max-height:0}to{max-height:5000px}}@-moz-keyframes heightGrow{from{max-height:0}to{max-height:5000px}}@keyframes heightGrow{from{max-height:0}to{max-height:5000px}}@-webkit-keyframes heightGrowTransit{from{max-height:0}to{max-height:5000px}}@-moz-keyframes heightGrowTransit{from{max-height:0}to{max-height:5000px}}@keyframes heightGrowTransit{from{max-height:0}to{max-height:5000px}}@-webkit-keyframes heightGrowDropdown{from{max-height:0}to{max-height:1000px}}@-moz-keyframes heightGrowDropdown{from{max-height:0}to{max-height:1000px}}@keyframes heightGrowDropdown{from{max-height:0}to{max-height:1000px}}.account-menu__popover{padding:0;background-color:#fff}.account-menu__info{padding:10px 15px;background-color:#fff;border-bottom:1px solid #e8e8e8;border-radius:3px 3px 0 0}.account-menu__name{margin:0 0 4px 0;font-weight:600;font-size:.9rem;color:#363636}.account-menu__name:focus-visible{box-shadow:0 0 0 2px #000,0 0 0 4px #fff,0 0 0 6px #000;-webkit-box-shadow:0 0 0 2px #000,0 0 0 4px #fff,0 0 0 6px #000}.account-menu__email{margin:0;font-size:.85rem;color:#363636}.account-menu__signout{-webkit-transition:all .25s ease;-moz-transition:all .25s ease;-ms-transition:all .25s ease;transition:all .25s ease;display:block;width:100%;padding:10px 15px;margin:0;text-align:left;background-color:#fff;border:none;border-radius:0 0 3px 3px;font-weight:600;font-size:.9rem;color:#2560a6;cursor:pointer}.account-menu__signout:hover,.account-menu__signout:focus{background-color:#e8e8e8}.account-menu__signout:active{background-color:#ccc}.account-menu__signout:focus{outline:2px solid rgba(0,120,215,.5);outline-offset:-2px}",""]);const s=i},76548(e,t,o){o.r(t),o.d(t,{default:()=>w});var n=o(74848),a=o(96540),r=o(32485),i=o.n(r),s=o(85072),u=o.n(s),c=o(97825),l=o.n(c),m=o(77659),f=o.n(m),d=o(55056),p=o.n(d),h=o(10540),g=o.n(h),y=o(41113),x=o.n(y),k=o(69474),b={};b.styleTagTransform=x(),b.setAttributes=p(),b.insert=f().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=g(),u()(k.A,b),k.A&&k.A.locals&&k.A.locals;var v=o(6525),_=o(72962);const w=({name:e,email:t,givenName:o,onSignOut:r})=>{const[s,u]=(0,a.useState)(!1),c=(0,a.useRef)(null),l=(0,a.useRef)(null),m=(0,a.useRef)(null),f="account-menu-popover",d=(0,a.useCallback)((()=>{u(!1)}),[]),p=(0,a.useCallback)((e=>{c.current&&!c.current.contains(e.target)&&d()}),[d]),h=(0,a.useCallback)((e=>{var t;"Escape"===e.key&&s&&(d(),null===(t=l.current)||void 0===t||t.focus())}),[s,d]);(0,a.useEffect)((()=>{var e;return s&&(document.addEventListener("click",p),document.addEventListener("keydown",h),null===(e=m.current)||void 0===e||e.focus()),()=>{document.removeEventListener("click",p),document.removeEventListener("keydown",h)}}),[s,p,h]);const g=i()("dropdown-container",{open:s,closed:!s}),y=i()("arrow","rightside",{up:s,down:!s});return(0,n.jsxs)("div",{className:g,ref:c,children:[(0,n.jsxs)("button",{ref:l,className:"dropdown-header",onClick:()=>{s||v.default.push(_.GaEvents.OPEN_PROFILE,"Profile"),u((e=>!e))},"aria-expanded":s,"aria-controls":f,"aria-label":`${o} account menu`,"data-cy":"account-menu-btn",children:[(0,n.jsx)("div",{className:"dropdown-title",children:o}),(0,n.jsx)("span",{className:y})]}),s&&(0,n.jsxs)("div",{id:f,className:"options-container account-menu__popover","data-cy":"account-menu-popover",children:[(0,n.jsxs)("div",{className:"account-menu__info",children:[(0,n.jsx)("p",{ref:m,tabIndex:-1,
1className:"account-menu__name",children:e}),(0,n.jsx)("p",{className:"account-menu__email",children:t})]}),(0,n.jsx)("button",{className:"account-menu__signout",onClick:()=>{v.default.push(_.GaEvents.LOGOUT,"Sign Out"),sessionStorage.removeItem(_.SessionStorageKeys.AUTH_SESSION_TRACKED),d(),r()},"data-cy":"account-menu-signout",children:"Sign Out"})]})]})}}}]);

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.