PageSourceSearch

https://www.iu.org/build/assets/SynteaStore-P2Jj5QjM.js

js iu.org collected 2026-10-01 11:28:15 UTC 2,168 bytes, 1 lines download raw bytes

1import{g as e,vn as t}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{n}from"./pinia-Bk4qx9O9.js";import{t as r}from"./ssr-F9GWYbf6.js";import{n as i}from"./useTracking-DPVxoASA.js";import{t as a}from"./_baseIsEqual-Cm0o83uL.js";import{t as o}from"./usePublicConfig-BlEawDBt.js";function s(e,t){return a(e,t)}var c=()=>new Promise(e=>{let t=()=>{e(),globalThis.removeEventListener(`syntea_init`,t)};r&&globalThis.addEventListener(`syntea_init`,t);let n=o(`SYNTEA_HOST`);if(r){let e=document.createElement(`link`);e.rel=`stylesheet`,e.href=`${n}/lib/style.css`,document.head.appendChild(e);let t=document.createElement(`script`);t.type=`module`,t.src=`${n}/lib/syntea.conv-ui.mjs`,t.async=!0,t.dataset.usercentrics=`Syntea`,document.head.appendChild(t)}r||e()}),l=n(`syntea`,()=>{let{trackEvent:n}=i(),a=()=>n(`chat_closed`),o=e=>n(`chat_link_clicked`,{url:e}),l=t(!1),u=t(!1),d=t(!1),f=t(!1),p=r?globalThis.document.documentElement.lang:`de`,m=t({privacy_policy_accepted:!0,preferred_language:p||`de`,public:!0,light_mode:!0}),h=async()=>{d.value||(l.value?(r&&globalThis.syntea?.start_conversational_ui(),d.value=!0):(l.value=!0,await c(),u.value=!0,d.value=!0))},g=()=>{d.value&&=(r&&globalThis.syntea?.stop_conversational_ui(),!1)},_=async()=>{f.value||=(d.value||await h(),r&&globalThis.syntea?.open_chat(),!0)},v=()=>{!f.value||!d.value||(r&&globalThis.syntea?.close_chat(),f.value=!1)},y=e=>{let t={...m.value,...e};s(t,m.value)||(m.value=t,l.value&&r&&globalThis.syntea?.update_config(m.value))},b=e(()=>u.value),x=e(()=>f.value),S=e(()=>d.value);return r&&(globalThis.addEventListener(`chat_opened`,()=>{f.value=!0}),globalThis.addEventListener(`chat_closed`,()=>{f.value=!1,a()}),globalThis.addEventListener(`open_syntea`,e=>{let t=e;if(!t?.detail)return void _();let{template_id:n,enabled_domains:r}=t.detail;y({...n?{template_id:n}:{},...r?{enabled_domains:r}:{}}),_()}),globalThis.syntea_link_callback=async e=>{o(e),window.open(e,`_blank`)}),{config:e(()=>m.value),isInitialized:b,isVisible:S,isOpen:x,show:h,hide:g,openChat:_,closeChat:v,updateConfig:y,setDefaultPreferredLanguage:e=>{!e||e===``||(m.value.preferred_language=p||e)}}});export{l as t};

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.