PageSourceSearch

https://sjcd.edu/_resources/js/chatbot.bundle.js

js sjcd.edu collected 2026-09-29 11:10:09 UTC 5,787 bytes, 1 lines download raw bytes

1(()=>{"use strict";var t={492:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmU7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5jaGF0LWJvdDwvdGl0bGU+PHBhdGggZD0iTTE2LDE5YTYuOTkwOCw2Ljk5MDgsMCwwLDEtNS44MzMtMy4xMjg3bDEuNjY2LTEuMTA3NGE1LjAwMDcsNS4wMDA3LDAsMCwwLDguMzM0LDBsMS42NjYsMS4xMDc0QTYuOTkwOCw2Ljk5MDgsMCwwLDEsMTYsMTlaIi8+PHBhdGggZD0iTTIwLDhhMiwyLDAsMSwwLDIsMkExLjk4MDYsMS45ODA2LDAsMCwwLDIwLDhaIi8+PHBhdGggZD0iTTEyLDhhMiwyLDAsMSwwLDIsMkExLjk4MDYsMS45ODA2LDAsMCwwLDEyLDhaIi8+PHBhdGggZD0iTTE3LjczNTgsMzAsMTYsMjlsNC03aDZhMS45OTY2LDEuOTk2NiwwLDAsMCwyLTJWNmExLjk5NjYsMS45OTY2LDAsMCwwLTItMkg2QTEuOTk2NiwxLjk5NjYsMCwwLDAsNCw2VjIwYTEuOTk2NiwxLjk5NjYsMCwwLDAsMiwyaDl2Mkg2YTMuOTk5MywzLjk5OTMsMCwwLDEtNC00VjZBMy45OTg4LDMuOTk4OCwwLDAsMSw2LDJIMjZhMy45OTg4LDMuOTk4OCwwLDAsMSw0LDRWMjBhMy45OTkzLDMuOTk5MywwLDAsMS00LDRIMjEuMTY0NloiLz48cmVjdCBpZD0iX1RyYW5zcGFyZW50X1JlY3RhbmdsZV8iIGRhdGEtbmFtZT0iJmx0O1RyYW5zcGFyZW50IFJlY3RhbmdsZSZndDsiIGNsYXNzPSJjbHMtMSIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIi8+PC9zdmc+"}},n={};function e(i){var s=n[i];if(void 0!==s)return s.exports;var a=n[i]={exports:{}};return t[i](a,a.exports,e),a.exports}(()=>{var t=function(t){var n=document.querySelectorAll(t);return n.length>1?n:1==n.length?n[0]:void 0};function n(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function i(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(n){s(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}function s(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(t,n,e){var i=e.callback,s=e.state,a=e.config,o=e.rerender,r=void 0===o||o;s[t]=n,window.localStorage.setItem("sanjacChatbotState",JSON.stringify(s)),i&&"function"==typeof i&&i(),r&&d(s,a)}function o(n){var e=n.state,i=n.config;t(".chatResize").classList.remove("open"),a("isOpen",!1,{state:e,config:i,rerender:!1})}function r(n,e){var i=e.instance,s=e.state,r=e.config;t(".chatResize").classList.contains("open")?(i.closeWindow(),o({state:s,config:r})):(i.openWindow(),function(n){var e=n.state,i=n.config;t(".chatResize").classList.add("open"),a("isOpen",!0,{state:e,config:i,rerender:!1})}({state:s,config:r}))}var c=function(n,e){var i=n.isSpanish,s=e.englishIntegrationID,c=e.englishServiceInstanceID,u=e.spanishIntegrationID,d=e.spanishServiceInstanceID,l=e.region,w=void 0===l?"us-south":l,h=e.clientVersion,M=void 0===h?"7.5.0":h,g=i?u:s,p=i?d:c,D=t(".chatElement"),L=i?function(i){return function(n,e,i){var s=t(".chatArea");t(".chatLauncher").addEventListener("click",(function(t){return r(0,{instance:n,state:e,config:i})})),n.updateLocale("es").then((function(){n.render()})),n.on({type:"window:pre:close",handler:function(){return o({state:e,config:i})}}),n.updateCustomMenuOptions("bot",[{text:"Switch to English",handler:function(){return function(t,n,e){return a("isSpanish",!1,{callback:function(){t.destroy()},state:n,config:e})}(n,e,i)}}]),n.render().then((function(){s.classList.add("open")}))}(i,n,e)}:function(i){return function(n,e,i){var s=t(".chatArea");t(".chatLauncher").addEventListener("click",(function(t){return r(0,{instance:n,state:e,config:i})})),n.on({type:"window:pre:close",handler:function(){return o({state:e,config:i})}}),n.updateCustomMenuOptions("bot",[{text:"Switch to Spanish",handler:function(){return function(t,n,e){return a("isSpanish",!0,{callback:function(){t.destroy()},state:n,config:e})}(n,e,i)}}]),n.render().then((function(){s.classList.add("open")}))}(i,n,e)};console.log("integrationID",g);var f=n.isOpen||!1;return f&&t(".chatResize").classList.add("open"),{integrationID:g,serviceInstanceID:p,region:w,clientVersion:M,onLoad:L,openChatByDefault:f,element:D,showLauncher:!1,serviceDeskFactory:window.WebChatServiceDeskFactory}},u=e(492);function d(n,e){console.log("re-rendered, state: ",n);var i="Have questions?",s="Ask Jac";n.isSpanish&&(i="¿Tiene preguntas?",s="Habla con Jac");var a=t("#sanjacChat");a.setAttribute("data-fullscreen",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent,n=window.navigator,e=n.platform,i=n.maxTouchPoints,s=window.screen,a=s.width,o=s.height;return Math.min(a,o)<500&&(/Android|iPhone|iPod|iPad/.test(t)||(/iPad/.test(e)||"MacIntel"===e&&i>1)&&!window.MSStream)}().toString()),a.innerHTML="",a.innerHTML='\n    <div class="chatArea">\n      <div class="chatResize">\n        <div class="chatElement"></div>\n      </div>\n      <div class="chatIntro">\n        <strong>'.concat(i,"</strong>
1\n        <span>").concat(s,'</span>\n      </div>\n      <button type="button" class="chatLauncher">\n        <img src=').concat(u,' alt="Chat" />\n      </button>\n    </div>\n  ');var o=c(n,e);window.watsonAssistantChatOptions=o,setTimeout((function(){var t=document.createElement("script");t.src="https://web-chat.global.assistant.watson.appdomain.cloud/versions/".concat(o.clientVersion,"/WatsonAssistantChatEntry.js"),document.head.appendChild(t)}))}var l,w,h=(l={isSpanish:!1,isOpen:!1},(w=window.localStorage.getItem("sanjacChatbotState"))||("spanish"==(navigator.language.toLowerCase().includes("es")?"spanish":"english")&&(l.isSpanish=!0),window.localStorage.setItem("sanjacChatbotState",JSON.stringify(l))),i(i({},l),JSON.parse(w)));console.log("initialized state to:",h),d(h,json)})()})();

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.