@liip/liipgpt 3.11.2 → 3.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/button/liipgpt-button.iife.js +1 -1
  2. package/button/liipgpt-button.js +1 -1
  3. package/chat/liipgpt-chat.iife.js +18 -18
  4. package/chat/liipgpt-chat.js +18 -18
  5. package/config/index.cjs +1 -0
  6. package/config/index.d.ts +11 -1
  7. package/config/index.js +1 -0
  8. package/configurator/_app/env.js +1 -1
  9. package/configurator/_app/immutable/chunks/BGriYQSA.js +143 -0
  10. package/configurator/_app/immutable/chunks/{CIHHNprL.js → BJVrdkuG.js} +1 -1
  11. package/configurator/_app/immutable/chunks/{59Qy4pzN.js → BOogcmRI.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{BBBsf1IY.js → BgPvdYLz.js} +2 -2
  13. package/configurator/_app/immutable/chunks/BndQp4ie.js +1 -0
  14. package/configurator/_app/immutable/chunks/{MXZgHzgQ.js → BzwH5m-K.js} +1 -1
  15. package/configurator/_app/immutable/chunks/C6xrTJ8-.js +1 -0
  16. package/configurator/_app/immutable/chunks/{C32fguu7.js → C7SVO0yB.js} +1 -1
  17. package/configurator/_app/immutable/chunks/CNNudH1c.js +15 -0
  18. package/configurator/_app/immutable/chunks/CrAgD5Zd.js +16 -0
  19. package/configurator/_app/immutable/chunks/{BZRp1cWz.js → CxsmcPPu.js} +1 -1
  20. package/configurator/_app/immutable/chunks/{SzunIEqj.js → DHHLckcz.js} +1 -1
  21. package/configurator/_app/immutable/chunks/DK3lEKRX.js +3 -0
  22. package/configurator/_app/immutable/chunks/DUHuqsF-.js +1 -0
  23. package/configurator/_app/immutable/chunks/{CD6_VnKE.js → DmZKIk3Y.js} +1 -1
  24. package/configurator/_app/immutable/chunks/DmafQ_KV.js +1 -0
  25. package/configurator/_app/immutable/chunks/{hdHt6us6.js → I5DxyXWx.js} +1 -1
  26. package/configurator/_app/immutable/chunks/MqTIsSeD.js +1 -0
  27. package/configurator/_app/immutable/chunks/{6ikKRAEA.js → hJTLHSgs.js} +2 -2
  28. package/configurator/_app/immutable/chunks/{Bzr04ZcD.js → lj2Jt22R.js} +3 -3
  29. package/configurator/_app/immutable/entry/{app.B_61kXQ4.js → app.CFqiYWk3.js} +2 -2
  30. package/configurator/_app/immutable/entry/start.CT4FgDr_.js +1 -0
  31. package/configurator/_app/immutable/nodes/{0.Bi08LRX0.js → 0.DwmuWxZI.js} +2 -1
  32. package/configurator/_app/immutable/nodes/1.Bjv1gqx4.js +1 -0
  33. package/configurator/_app/immutable/nodes/{2.BNeVNh0R.js → 2.CyWhas6h.js} +9 -9
  34. package/configurator/_app/immutable/nodes/{3.D1rPht9H.js → 3.BlXQFvKY.js} +1 -1
  35. package/configurator/_app/version.json +1 -1
  36. package/configurator/index.html +7 -7
  37. package/configurator/sidebar.html +7 -7
  38. package/index.cjs +6 -5
  39. package/index.d.ts +29 -3
  40. package/index.js +6 -5
  41. package/package.json +1 -1
  42. package/search-summary/liipgpt-search-summary.iife.js +3 -3
  43. package/search-summary/liipgpt-search-summary.js +2 -2
  44. package/search-summary/{load-chat-config-BnSgm085.js → load-chat-config-C0gjKjFi.js} +1 -1
  45. package/configurator/_app/immutable/chunks/C1yKSdkL.js +0 -143
  46. package/configurator/_app/immutable/chunks/COh_IaBC.js +0 -1
  47. package/configurator/_app/immutable/chunks/CYtlA8cd.js +0 -1
  48. package/configurator/_app/immutable/chunks/Ct3VxfiR.js +0 -1
  49. package/configurator/_app/immutable/chunks/CzUv7c8S.js +0 -1
  50. package/configurator/_app/immutable/chunks/DBQyBiSh.js +0 -16
  51. package/configurator/_app/immutable/chunks/oxab-KY5.js +0 -15
  52. package/configurator/_app/immutable/chunks/rEsbAd0y.js +0 -3
  53. package/configurator/_app/immutable/chunks/s6x81Lfq.js +0 -1
  54. package/configurator/_app/immutable/entry/start.BOhSSe81.js +0 -1
  55. package/configurator/_app/immutable/nodes/1.E_trvDMx.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Ct3VxfiR.js","./CsGLkWF6.js","./CibALFW0.js","./BaFk5JeE.js","./6ikKRAEA.js","./CIHHNprL.js","./CzUv7c8S.js"])))=>i.map(i=>d[i]);
2
- import{B as e,Ct as t,Dt as n,E as r,F as i,Gt as a,J as o,K as s,Lt as c,Mt as l,N as u,P as d,Rt as f,St as p,T as m,Tt as h,U as g,X as _,Y as v,Z as y,_ as ee,bt as b,c as x,ct as S,gt as te,ht as C,i as w,kt as T,lt as E,mt as D,n as ne,nt as O,o as k,ot as A,p as j,pt as M,rt as re,tt as N,u as P,v as F,x as ie,xt as I,z as ae}from"./rEsbAd0y.js";import"./Bo0U8J3e.js";import{t as oe}from"./DjVmpym-.js";import"./CFKVnMbq.js";import"./BaFk5JeE.js";import{n as se}from"./CIHHNprL.js";import{i as ce,n as le,r as ue,t as de}from"./BFwiU0IZ.js";import{g as fe,l as pe,n as L,t as me}from"./Bzr04ZcD.js";import{n as he,t as ge}from"./hdHt6us6.js";function _e(e){return Object.prototype.toString.call(e)===`[object Date]`}function R(e,t){if(e===t||e!==e)return()=>e;let n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw Error(`Cannot interpolate values of different type`);if(Array.isArray(e)){let n=t.map((t,n)=>R(e[n],t));return e=>n.map(t=>t(e))}if(n===`object`){if(!e||!t)throw Error(`Object cannot be null`);if(_e(e)&&_e(t)){let n=e.getTime(),r=t.getTime()-n;return e=>new Date(n+e*r)}let n=Object.keys(t),r={};return n.forEach(n=>{r[n]=R(e[n],t[n])}),e=>{let t={};return n.forEach(n=>{t[n]=r[n](e)}),t}}if(n===`number`){let n=t-e;return t=>e+t*n}return()=>t}var ve=class e{#e;#t;#n;#r=null;constructor(e,t={}){this.#e=n(e),this.#t=n(e),this.#n=t}static of(t,n){let r=new e(t(),n);return M(()=>{r.set(t())}),r}set(e,t){h(this.#t,e);let{delay:n=0,duration:r=400,easing:a=L,interpolate:o=R}={...this.#n,...t};if(r===0)return this.#r?.abort(),h(this.#e,e),Promise.resolve();let s=i.now()+n,c,l=!1,u=this.#r;return this.#r=d(t=>{if(t<s)return!0;if(!l){l=!0;let t=this.#e.v;c=o(t,e),typeof r==`function`&&(r=r(t,e)),u?.abort()}let n=t-s;return n>r?(h(this.#e,e),!1):(h(this.#e,c(a(n/r))),!0)}),this.#r.promise}get current(){return A(this.#e)}get target(){return A(this.#t)}set target(e){this.set(e)}},ye={de:{searchSummaryExpand:`Gesamte Antwort`,searchSummaryCollapse:`Weniger anzeigen`,searchSummaryOptInDefault:`KI-Suche aktivieren`,searchSummaryOptOut:`KI-Suche deaktivieren`,searchSummaryError:`Etwas ist schiefgelaufen.`,searchSummaryLoading:`Antwort wird generiert…`,searchSummaryDisclaimer:`<p><strong>Ich bin ein KI-Assistent.</strong></p><p>Meine Antworten werden von einer künstlichen Intelligenz generiert und sind deshalb nicht immer korrekt. Wenn Sie mich aktivieren, unterstütze ich Sie bei der Suche nach den richtigen Informationen.</p>`,ariaSearchSummaryExpand:`Vollständige Antwort anzeigen`,ariaSearchSummaryCollapse:`Antwort einklappen`,ariaSearchSummaryOptOut:`KI-Suche deaktivieren`,referencesTitle:`Quellen`,searchSummaryFollowUpPlaceholder:`Stellen Sie eine Folgefrage…`,searchSummaryFollowUpSubmit:`Im Chat fortfahren`,ariaSearchSummaryFollowUpInput:`Frage stellen`},en:{searchSummaryExpand:`Full answer`,searchSummaryCollapse:`Show less`,searchSummaryOptInDefault:`Enable AI search`,searchSummaryOptOut:`Disable AI search`,searchSummaryError:`Something went wrong.`,searchSummaryLoading:`Generating answer…`,searchSummaryDisclaimer:`<p><strong>I am an AI assistant.</strong></p><p>My answers are generated by artificial intelligence and may not always be correct. If you activate me, I will help you find the right information.</p>`,ariaSearchSummaryExpand:`Show full answer`,ariaSearchSummaryCollapse:`Collapse answer`,ariaSearchSummaryOptOut:`Disable AI search`,referencesTitle:`References`,searchSummaryFollowUpPlaceholder:`Ask a follow-up question…`,searchSummaryFollowUpSubmit:`Continue in chat`,ariaSearchSummaryFollowUpInput:`Ask a follow-up question`},it:{searchSummaryExpand:`Risposta completa`,searchSummaryCollapse:`Mostra meno`,searchSummaryOptInDefault:`Attiva la ricerca IA`,searchSummaryOptOut:`Disattiva la ricerca IA`,searchSummaryError:`Si è verificato un errore.`,searchSummaryLoading:`Generazione della risposta…`,searchSummaryDisclaimer:`<p><strong>Sono un assistente IA.</strong></p><p>Le mie risposte sono generate da un'intelligenza artificiale e potrebbero non essere sempre corrette. Se mi attivi, ti aiuto a trovare le informazioni giuste.</p>`,ariaSearchSummaryExpand:`Mostra la risposta completa`,ariaSearchSummaryCollapse:`Comprimi la risposta`,ariaSearchSummaryOptOut:`Disattiva la ricerca IA`,referencesTitle:`Riferimenti`,searchSummaryFollowUpPlaceholder:`Fai una domanda di approfondimento…`,searchSummaryFollowUpSubmit:`Continua nella chat`,ariaSearchSummaryFollowUpInput:`Fai una domanda di approfondimento`},fr:{searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par une intelligence artificielle et peuvent ne pas toujours être correctes. Si vous m'activez, je vous aide à trouver les bonnes informations.</p>`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,referencesTitle:`Références`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`}},be=`liipgpt-search-summary>[slot]{display:none}@layer components{@keyframes search-summary-spin{to{transform:rotate(360deg)}}@keyframes search-summary-content-appear{0%{opacity:0}}@keyframes search-summary-content-disappear{to{opacity:0}}@keyframes search-summary-action-appear{0%{opacity:0;transform:translateY(12px)}}@keyframes search-summary-action-disappear{to{opacity:0;transform:translateY(12px)}}.search-summary{box-sizing:border-box;padding:var(--search-summary-padding,0);border-width:var(--search-summary-border-width,0);border-style:var(--search-summary-border-style,solid);border-radius:var(--search-summary-border-radius,0);border-color:var(--search-summary-border-color,transparent);background:var(--search-summary-background,transparent);box-shadow:var(--search-summary-box-shadow,none);color:var(--search-summary-color,var(--body-color,inherit));font-weight:var(--base-font-weight-normal,inherit);font-size:var(--base-font-size-body,inherit);line-height:var(--base-line-height-default,inherit);font-family:var(--search-summary-font-family,var(--font-family,inherit));font-optical-sizing:auto;transition:opacity var(--search-summary-fade-duration,.2s) ease-out;flex-direction:column;padding-bottom:0;display:flex;position:relative;overflow:hidden}.search-summary :where(button){cursor:pointer;font-family:inherit}.search-summary :where(.search-summary__sr-only){clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search-summary:where(.search-summary--ready[data-state=loading]),.search-summary:where(.search-summary--ready[data-state=answering]){opacity:var(--search-summary-loading-opacity,1)}.search-summary:where([data-state=error]){border-color:var(--search-summary-error-border-color,inherit)}.search-summary :where(.search-summary__content){min-height:0;padding-bottom:var(--search-summary-padding,0);flex:1;animation:.35s ease-out both search-summary-content-appear;display:block;position:relative;overflow:hidden}.search-summary :where(.search-summary__content--with-follow-up){flex-direction:column;display:flex}.search-summary:where([data-capped=true]) :where(.search-summary__content){overflow-y:auto}.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving){pointer-events:none;animation:.25s ease-in both search-summary-content-disappear}.search-summary :where(.search-summary__answer-wrap){display:block;position:relative}.search-summary :where(.search-summary__answer){margin-bottom:var(--spacer-16,1rem);line-height:var(--search-summary-answer-line-height,1.5)}.search-summary :where(.search-summary__answer a){color:var(--search-summary-link-color,LinkText);text-decoration:underline}.search-summary :where(.search-summary__answer p){margin-top:0}.search-summary :where(.search-summary__answer--themed){font-size:var(--base-font-size-body,inherit);line-height:var(--search-summary-answer-line-height,var(--base-line-height-default,1.5))}.search-summary :where(.search-summary__answer--themed>:first-child){margin-top:0}.search-summary :where(.search-summary__answer--themed>:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed p,.search-summary__answer--themed ul,.search-summary__answer--themed ol){margin-top:0;margin-bottom:var(--spacer-r-16,1rem)}.search-summary :where(.search-summary__answer--themed h1,.search-summary__answer--themed h2,.search-summary__answer--themed h3,.search-summary__answer--themed h4,.search-summary__answer--themed h5,.search-summary__answer--themed h6){margin-top:var(--spacer-r-24,1.5rem);margin-bottom:var(--spacer-r-12,.75rem);font-weight:var(--base-font-weight-title,700);line-height:var(--base-line-height-tight,1.2)}.search-summary :where(.search-summary__answer--themed ul,.search-summary__answer--themed ol){padding-left:1.5em;list-style-position:outside}.search-summary :where(.search-summary__answer--themed ul){list-style-type:disc}.search-summary :where(.search-summary__answer--themed ol){list-style-type:decimal}.search-summary :where(.search-summary__answer--themed li){margin-bottom:var(--spacer-8,.5rem)}.search-summary :where(.search-summary__answer--themed li:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed b,.search-summary__answer--themed strong){font-weight:var(--base-font-weight-bold,700)}.search-summary :where(.search-summary__answer--themed a){color:var(--search-summary-link-color,var(--anchor-color,LinkText))}.search-summary :where(.search-summary__loading){margin-bottom:var(--spacer-16,1rem);align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__loading-spinner){border:1.5px solid var(--anchor-color,currentColor);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:.5em;height:.5em;animation:.4s linear infinite search-summary-spin;display:inline-block}.search-summary :where(.search-summary__loading-text){font-size:var(--base-font-size-default,inherit)}.search-summary :where(.search-summary__references){padding:0;padding-bottom:var(--spacer-32,2rem);color:var(--search-summary-reference-list-color,inherit);font-size:var(--search-summary-reference-list-font-size,inherit);font-size:var(--base-font-size-sm,inherit);margin:0;list-style-type:none}.search-summary :where(.search-summary__references-title){padding:var(--spacer-2,2px) 0;font-weight:var(--base-font-weight-bold,500);font-size:var(--base-font-size-sm,inherit)}.search-summary :where(.search-summary__reference){display:list-item}.search-summary :where(.search-summary__reference a){padding:var(--spacer-2,2px) 0;color:var(--search-summary-reference-list-color,var(--search-summary-link-color,LinkText));display:block}.search-summary :where(.search-summary__follow-up){padding-top:var(--spacer-12,.75rem);flex-shrink:0;margin-top:auto}.search-summary :where(.search-summary__follow-up-field){align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__follow-up-input){border-width:var(--search-summary-follow-up-border-width,revert);border-style:var(--search-summary-follow-up-border-style,revert);border-radius:var(--search-summary-follow-up-border-radius,revert);border-color:var(--search-summary-follow-up-border-color,revert);background:var(--search-summary-follow-up-background,revert);min-width:0;color:var(--search-summary-follow-up-color,revert);font:inherit;flex:auto}.search-summary :where(.search-summary__follow-up-submit){border-width:var(--search-summary-follow-up-submit-border-width,revert);border-style:var(--search-summary-follow-up-submit-border-style,revert);border-radius:var(--search-summary-follow-up-submit-border-radius,revert);border-color:var(--search-summary-follow-up-submit-border-color,revert);background:var(--search-summary-follow-up-submit-background,revert);color:var(--search-summary-follow-up-submit-color,revert);font:inherit;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.search-summary :where(.search-summary__follow-up-submit-icon){width:var(--spacer-20,1.25rem);height:var(--spacer-20,1.25rem);pointer-events:none}.search-summary :where(.search-summary__follow-up-submit-icon) :where(svg){width:100%;height:100%;display:block}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field){padding:var(--spacer-4,.25rem) var(--spacer-8,.5rem) var(--spacer-4,.25rem) var(--spacer-16,1rem);border-width:var(--chat-input-border-width,var(--spacer-1,1px));border-radius:var(--chat-input-border-radius,1.75rem);border-style:solid;border-color:var(--chat-input-border-color,currentColor);background:var(--chat-input-background,transparent);box-shadow:var(--chat-input-box-shadow,none);transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):hover{background:var(--chat-input-hover-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-hover-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):has(.search-summary__follow-up-input:focus-visible){border-width:var(--chat-input-focus-border-width,var(--chat-input-border-width,var(--spacer-1,1px)));border-radius:var(--chat-input-focus-border-radius,var(--chat-input-border-radius,1.75rem));border-color:var(--chat-input-focus-border-color,var(--chat-input-border-color,currentColor));background:var(--chat-input-focus-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-focus-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input){color:var(--chat-input-color,inherit);background:0 0;border:0;padding:0}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus,.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus-visible{outline:none}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit){width:var(--btn-submit-size,2.25rem);height:var(--btn-submit-size,2.25rem);padding:0;border-width:var(--chat-input-submit-border-width,0);border-radius:var(--chat-input-submit-border-radius,50%);border-style:solid;border-color:var(--chat-input-submit-border-color,transparent);background:var(--chat-input-submit-background,var(--search-summary-link-color,LinkText));box-shadow:var(--chat-input-submit-box-shadow,none);color:var(--chat-input-submit-color,Canvas);padding-inline:0;transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s,color .2s,transform .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit):hover{border-width:var(--chat-input-submit-hover-border-width,var(--chat-input-submit-border-width,0));border-radius:var(--chat-input-submit-hover-border-radius,var(--chat-input-submit-border-radius,50%));border-color:var(--chat-input-submit-hover-border-color,var(--chat-input-submit-border-color,transparent));background:var(--chat-input-submit-hover-background,var(--chat-input-submit-background,var(--search-summary-link-color,LinkText)));box-shadow:var(--chat-input-submit-hover-box-shadow,var(--chat-input-submit-box-shadow,none));color:var(--chat-input-submit-hover-color,var(--chat-input-submit-color,Canvas))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit-icon--fallback path){stroke:currentColor;stroke-width:var(--chat-input-submit-stroke-width,2px)}.search-summary :where(.search-summary__disclaimer){margin-bottom:var(--spacer-16,1rem);line-height:var(--base-line-height-default,1.5)}.search-summary :where(.search-summary__disclaimer a){color:var(--search-summary-disclaimer-link-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__disclaimer p){margin-top:0}.search-summary :where(.search-summary__opt-in-panel){flex-direction:column;flex:1;min-height:0;display:flex}.search-summary :where(.search-summary__opt-in-body){min-height:0;margin-top:var(--spacer-4,.25rem);margin-bottom:var(--spacer-16,1rem);flex:1;position:relative;overflow-y:auto}.search-summary :where(.search-summary__error){color:var(--search-summary-error-color,inherit)}.search-summary :where(.search-summary__footer){margin-right:calc(-1 * var(--search-summary-padding,0));margin-left:calc(-1 * var(--search-summary-padding,0));padding:0 var(--search-summary-padding,0) calc(var(--search-summary-padding,0));justify-content:space-between;align-items:center;gap:var(--spacer-12,.75rem);background:var(--search-summary-footer-background,var(--search-summary-background,white));flex-wrap:wrap;flex-shrink:0;display:flex;position:relative}.search-summary :where(.search-summary__footer):after{height:var(--spacer-48,3rem);background:linear-gradient(to bottom, transparent, var(--search-summary-footer-background,var(--search-summary-background,white)));content:"";pointer-events:none;position:absolute;top:0;left:0;right:0;transform:translateY(-100%)}.search-summary :where(.search-summary__footer--overlay){margin:0;position:absolute;bottom:0;left:0;right:0}.search-summary :where(.search-summary__footer-actions){align-items:center;gap:var(--spacer-8,.5rem);flex-wrap:wrap;display:flex}.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount){animation:.3s cubic-bezier(.25,.46,.45,.94) both search-summary-action-appear}.search-summary :where(.search-summary__opt-in,.search-summary__opt-in-slot-mount){animation-delay:.3s}.search-summary :where(.search-summary__btn--leaving){pointer-events:none;animation:.2s cubic-bezier(.55,0,1,.45) both search-summary-action-disappear}.search-summary :where(.search-summary__expand,.search-summary__opt-in,.search-summary__opt-out):not(:where(.search-summary__btn)){font:inherit;padding:0;padding-inline:0}.search-summary :where(.search-summary__expand,.search-summary__opt-in):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-primary-border-radius,0);border-color:var(--search-summary-action-primary-border-color,transparent);background:var(--search-summary-action-primary-background,transparent);color:var(--search-summary-action-primary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__opt-out):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-secondary-border-radius,0);border-color:var(--search-summary-action-secondary-border-color,transparent);background:var(--search-summary-action-secondary-background,transparent);color:var(--search-summary-action-secondary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__btn){padding:var(--btn-padding-y,var(--spacer-8,.5rem)) var(--btn-padding-x,var(--spacer-20,1.25rem));align-items:center;gap:var(--spacer-8,.5rem);border-width:var(--spacer-1,1px);font-size:var(--base-font-size-sm,inherit);cursor:pointer;border-style:solid;font-family:inherit;line-height:1.25;text-decoration:none;display:inline-flex}.search-summary :where(.search-summary__btn--primary){border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color,transparent);background:var(--btn-primary-background);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700)}.search-summary :where(.search-summary__btn--primary):hover{background:var(--btn-primary-hover-background,var(--btn-primary-background));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.search-summary :where(.search-summary__btn--secondary){border-radius:var(--btn-secondary-border-radius);border-color:var(--btn-secondary-border-color,var(--btn-secondary-background));background:var(--btn-secondary-background);color:var(--btn-secondary-color);font-weight:var(--btn-secondary-font-weight,700)}.search-summary :where(.search-summary__btn--secondary):hover{background:var(--btn-secondary-hover-background,var(--btn-secondary-background));color:var(--btn-secondary-hover-color,var(--btn-secondary-color))}@media (prefers-reduced-motion:reduce){.search-summary{transition:none}.search-summary :where(.search-summary__content),.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving),.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount),.search-summary :where(.search-summary__btn--leaving),.search-summary :where(.search-summary__loading-spinner){animation:none!important}}}`,z=`liipgpt:search-summary:opt-in:`;function xe(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return(t>>>0).toString(36)}function B(e){return`${z}${xe(e??``)}`}function Se(){try{return typeof window<`u`&&window.localStorage!==void 0}catch{return!1}}function Ce(e){if(!Se())return!1;try{return window.localStorage.getItem(B(e))===`1`}catch{return!1}}function we(e){if(Se())try{window.localStorage.setItem(B(e),`1`)}catch{}}function Te(e){if(Se())try{window.localStorage.removeItem(B(e))}catch{}}var V=new WeakMap;function Ee(e,t,n){if(!t)return null;let r=V.get(t);return r&&t.removeEventListener(`click`,r),t.removeAttribute(`slot`),t.type=`button`,t.addEventListener(`click`,n),V.set(t,n),e.appendChild(t),({label:e,ariaLabel:n,ariaExpanded:r})=>{e!==void 0&&(t.textContent=e),n!==void 0&&t.setAttribute(`aria-label`,n),r===void 0?t.removeAttribute(`aria-expanded`):t.setAttribute(`aria-expanded`,String(r))}}function De(e,t){if(!t)return;let n=V.get(t);n&&(t.removeEventListener(`click`,n),V.delete(t)),e.contains(t)&&e.removeChild(t)}function Oe(e,t=`.search-summary`){return e.replaceAll(`.chat-app`,t)}var ke=`(prefers-reduced-motion: reduce)`;function Ae(e){if(typeof window>`u`)return e(!1),()=>{};let t=window.matchMedia(ke);e(t.matches);let n=()=>e(t.matches);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var je=_(`<!> <!> <!>`,1),Me=_(`<div class="search-summary__disclaimer-text"></div>`),Ne=_(`<div class="search-summary__opt-in-slot-mount"></div>`),Pe=_(`<button type="button"> </button>`),Fe=_(`<div class="search-summary__opt-in-panel"><div class="search-summary__opt-in-body"><div class="search-summary__disclaimer"><!></div></div> <div class="search-summary__footer"><!></div></div>`),Ie=_(`<div class="search-summary__loading" aria-live="polite"><span class="search-summary__loading-spinner" aria-hidden="true"></span> <span class="search-summary__loading-text"> </span></div>`),Le=_(`<div class="search-summary__error" role="alert"> </div>`),Re=_(`<li class="search-summary__reference"><a target="_blank" rel="noopener noreferrer"> </a></li>`),ze=_(`<div class="search-summary__references-title"> </div> <ol class="search-summary__references"></ol>`,1),Be=_(`<div class="search-summary__follow-up-submit-icon"></div>`),Ve=y(`<svg class="search-summary__follow-up-submit-icon search-summary__follow-up-submit-icon--fallback" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"></path><path d="m4 9 8-8 8 8"></path></g></svg>`),He=_(`<form><label class="search-summary__sr-only" for="search-summary-follow-up-input"> </label> <div class="search-summary__follow-up-field"><input id="search-summary-follow-up-input" class="search-summary__follow-up-input" type="text"/> <button type="submit" class="search-summary__follow-up-submit"><span class="search-summary__sr-only"> </span> <!></button></div></form>`),Ue=_(`<div class="search-summary__expand-slot-mount"></div>`),We=_(`<button type="button"> </button>`),Ge=_(`<div class="search-summary__opt-out-slot-mount"></div>`),Ke=_(`<button type="button"> </button>`),qe=_(`<div><div class="search-summary__footer-actions"><!></div> <!></div>`),Je=_(`<div><div class="search-summary__answer-wrap"><!> <div aria-live="polite"></div></div> <!> <!> <!></div> <!>`,1),Ye=_(`<!> <!> <div><!></div>`,1);function H(i,d){f(d,!0);function _(e){let t=e.trim();return!(!t||/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(t)||t.startsWith(`//`))}let y=k(d,`lang`,7,`de`),x=k(d,`apiUrl`,7),w=k(d,`apiKey`,7,``),M=k(d,`question`,7),N=k(d,`height`,7,`280`),fe=k(d,`maxHeight`,7),L=k(d,`optIn`,7,!1),_e=k(d,`optInLabel`,7),R=k(d,`expandLabel`,7),z=k(d,`collapseLabel`,7),xe=k(d,`optOutLabel`,7),B=k(d,`useChatConfig`,7,!1),Se=k(d,`forceTheme`,7),V=k(d,`disclaimerHtml`,7,``),ke=k(d,`labelledBy`,7),H=k(d,`chatUrl`,7),Xe=k(d,`mode`,7,`search`),Ze=k(d,`source`,7,`search-summary`),Qe=k(d,`cache`,7,!1),$e=k(d,`activateAiButtonSlot`,7,null),U=k(d,`expandAnswerButtonSlot`,7,null),et=k(d,`deactivateAiButtonSlot`,7,null),tt=n(null),W=n(null),nt=n(!1),rt=[`de`,`en`,`fr`,`it`],it=T(()=>A(W)?.language??se(y(),rt)),G=T(()=>({...ye[A(it)],...A(tt)})),K=n(`loading`),q=n(null),J=n(null),at=n(null),ot=n(null),st=n(!1),Y=n(!1),ct=n(!1),lt=n(t(de)),ut=T(()=>ue(N())),X=T(()=>ce(A(ut))),dt=T(()=>A(X)===null),ft=T(()=>A(X)??de),pt=T(()=>fe()===void 0?``:ue(fe()));function mt(){if(!A(pt))return null;let e=ce(A(pt));return e===null?A(q)?le(A(q),A(pt)):null:e}let ht=n(!1);C(()=>Ae(e=>h(ht,e,!0)));function gt(e){return A(ht)?0:e}let _t=new ve(E(()=>A(ft)),{duration:400,easing:me}),vt=n(!1);C(()=>{if(!A(vt)){if(A(Y)){_t.set(A(lt),{duration:gt(400)});return}!A(dt)&&A(X)!==null&&_t.set(A(X),{duration:gt(400)})}});function yt(){return A(q)?A(X)===null?le(A(q),A(ut)):A(X):A(ft)}async function bt(e){h(vt,!0),await _t.set(e,{duration:gt(400)}),h(vt,!1)}function xt(){if(!A(q))return yt();if(A(q).offsetHeight>0)return A(q).offsetHeight;let e=A(q).style.height;if(!e)return yt();let t=ce(e);return t===null?le(A(q),e):t}let St=n(``),Ct=n(t([])),wt=n(``),Tt=n(null),Et=n(!1),Dt=n(``),Ot=T(()=>H()&&_(H())?H():void 0),kt=T(()=>!!A(Ot)&&!!A(Tt)),At=T(()=>A(kt)&&A(Et)),jt=T(()=>!A(Y)&&A(st)),Mt=T(()=>A(K)!==`opt-in`&&A(K)!==`loading`&&A(K)!==`error`&&(A(st)||A(Y))&&!(A(Y)&&A(kt))),Nt=T(()=>L()&&A(K)!==`opt-in`),Pt=T(()=>A(Y)?z()||A(G).searchSummaryCollapse:R()||A(G).searchSummaryExpand),Ft=T(()=>A(Y)?A(G).ariaSearchSummaryCollapse:A(G).ariaSearchSummaryExpand),It=n(``),Lt=n(``),Rt=null,zt=T(()=>A(Y)?A(Lt)||z()||A(G).searchSummaryCollapse:R()||A(It)||A(G).searchSummaryExpand),Bt=T(()=>A(Y)?A(Lt)||z()||A(G).ariaSearchSummaryCollapse:R()||A(It)||A(G).ariaSearchSummaryExpand),Vt=T(()=>A(W)?ge(A(W).chatConfig.fullTheme[A(W).colorScheme].tokens,{root:`.search-summary`}):``),Ht=T(()=>A(W)?.chatConfig.fullTheme[A(W).colorScheme]?.customCSS?Oe(A(W).chatConfig.fullTheme[A(W).colorScheme].customCSS):``),Ut=T(()=>A(W)?.chatConfig.fullTheme[A(W).colorScheme]?.fontCSS??``),Wt=T(()=>A(W)?.chatConfig.fullTheme[A(W).colorScheme]?.tokens?.svgs?.submit??``),Z=T(()=>A(W)!==null),Gt=T(()=>A(Z)?` search-summary__btn`:``),Kt=T(()=>A(Z)?` search-summary__follow-up--themed`:``);function qt(){if(!A(q))return A(ft);let e=A(q).style.height;A(q).style.height=`auto`;let t=A(J)?.style.flex??``;A(J)&&(A(J).style.flex=`none`);let n=A(q).scrollHeight;return A(J)&&(A(J).style.flex=t),A(q).style.height=e,n}function Jt(){h(st,(A(J)?.scrollHeight??0)>(A(J)?.offsetHeight??0)+1)}function Yt(){let e=qt(),t=mt();h(lt,t===null?e:Math.min(e,t),!0),h(ct,t!==null&&e>t,!0)}async function Xt(){if(A(q))if(!A(Y))Yt(),_t.set(xt(),{duration:0}),h(Y,!0),h(K,`expanded`),await S(),Jt(),Yt(),await bt(A(lt));else{_t.set(xt(),{duration:0});let e=yt();h(Y,!1),h(K,A(St)?`done`:`loading`,!0),await S(),Jt(),await bt(e)}}let Zt=n(!1);te(()=>{A(Zt)||x()&&(h(K,L()&&!Ce(x())?`opt-in`:`loading`,!0),h(Zt,!0))}),C(()=>{if(!x()||!B()){h(W,null),h(tt,null),h(nt,!0);return}let e=!1;return h(nt,!1),oe(async()=>{let{loadChatConfig:e}=await import(`./Ct3VxfiR.js`);return{loadChatConfig:e}},__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).then(({loadChatConfig:e})=>e({apiUrl:x(),lang:y(),forceTheme:Se()})).then(t=>{e||(h(W,t,!0),h(tt,t.chatConfig.translations[t.language]??null,!0))}).catch(()=>{e||(h(W,null),h(tt,null))}).finally(()=>{e||h(nt,!0)}),()=>{e=!0}});let Qt=T(()=>A(Zt)&&A(nt)),$t=n(!1);C(()=>{if(!A(Qt)||A($t))return;let e=requestAnimationFrame(()=>h($t,!0));return()=>cancelAnimationFrame(e)}),C(()=>{if(!A(q))return;A(St),A(Ct).length,A(ut),Yt(),Jt();let e=new ResizeObserver(()=>{Yt(),Jt()});return e.observe(A(q)),A(J)&&e.observe(A(J)),()=>e.disconnect()});function en(e){return e.classList.add(`search-summary__btn--leaving`),{duration:gt(200)}}function tn(e,t){if(A(ht)){t();return}let n=e.currentTarget;n.classList.add(`search-summary__btn--leaving`),n.addEventListener(`animationend`,t,{once:!0})}function nn(e=null){if(A(ht)){sn();return}e?.classList.add(`search-summary__btn--leaving`),A(J)?.classList.add(`search-summary__content--leaving`),A(at)?.classList.add(`search-summary__footer--leaving`),A(at)?.querySelector(`.search-summary__expand, .search-summary__expand-slot-mount`)?.classList.add(`search-summary__btn--leaving`);let t=A(J)??e;t?t.addEventListener(`animationend`,sn,{once:!0}):sn()}function rn(e){nn(e.currentTarget)}function an(){we(x()),h(K,`loading`)}function on(){un?.(),Q&&Q.abort().catch(()=>{}),un=void 0,Q=void 0,h(Tt,null),h(Et,!1),h(Dt,``),cn=!1,h(St,``),h(Ct,[],!0),h(wt,``),h(Y,!1),h(st,!1)}function sn(){Te(x()),on(),h(K,`opt-in`)}let cn=!1,ln,un,Q;function dn(){if(cn)return;cn=!0,ln=M();let e=new pe({apiUrl:x(),apiKey:w()});try{let t=e.createConversation();h(Tt,t.id,!0),Q=t.chat(M(),{lang:A(it),mode:Xe()||void 0,source:Ze()||void 0,cache:Qe()||void 0})}catch(e){h(wt,e instanceof Error&&e.message?e.message:A(G).searchSummaryError,!0),h(K,`error`);return}un=Q.subscribe(e=>{if(e.errors.length>0){h(wt,e.errors.join(`, `)||A(G).searchSummaryError,!0),h(K,`error`);return}if(e.state===`loading`){h(K,`loading`);return}h(St,e.message.html,!0),h(Ct,e.references.used.slice().sort((e,t)=>(e.referenceIndex.used??0)-(t.referenceIndex.used??0)),!0),e.state===`streaming`?A(Y)||h(K,`answering`):e.state===`done`&&(h(Et,!0),A(Y)||h(K,`done`),queueMicrotask(Jt))})}C(()=>{!M()||!x()||A(K)!==`loading`||dn()});function fn(){if(on(),L()&&!Ce(x())){h(K,`opt-in`);return}h(K,`loading`),dn()}C(()=>{let e=M();!e||!cn||e===ln||E(()=>fn())}),ne(()=>{un?.(),Q&&Q.abort().catch(()=>{})}),C(()=>{A(ot)&&(A(ot).innerHTML=A(St),A(ot).querySelectorAll(`liipgpt-reference-number`).forEach(e=>e.remove()),queueMicrotask(Jt))});function pn(e){e.preventDefault();let t=A(Dt).trim();if(!t||!A(Ot)||!A(Tt))return;let n=new URL(A(Ot),window.location.href);if(n.pathname===window.location.pathname){let e=new URLSearchParams(window.location.search);for(let[t,r]of n.searchParams)e.set(t,r);n.search=e.toString()}n.searchParams.set(`follow-up-q`,t),n.hash=`cID=${A(Tt)}`,window.location.assign(n.toString())}let mn=n(null),hn=n(null),gn=n(null);C(()=>{let e=A(mn),t=$e();if(!(!e||!t))return Ee(e,t,an)?.({label:_e()||void 0}),()=>De(e,t)}),C(()=>{let e=A(hn),t=U();if(!(!e||!t||!A(Mt)))return Rt!==t&&(Rt=t,h(It,t.textContent?.trim()??``,!0),h(Lt,t.dataset.collapseLabel?.trim()??``,!0)),Ee(e,t,Xt)?.({label:A(zt),ariaLabel:A(Bt),ariaExpanded:A(Y)}),()=>De(e,t)}),C(()=>{!U()||!A(Mt)||(U().textContent=A(zt),U().setAttribute(`aria-label`,A(Bt)),U().setAttribute(`aria-expanded`,String(A(Y))))}),C(()=>{let e=A(gn),t=et();if(!(!e||!t||!A(Nt)))return Ee(e,t,()=>nn(e))?.({label:xe()||void 0,ariaLabel:A(G).ariaSearchSummaryOptOut}),()=>De(e,t)});var _n={reload:fn,get lang(){return y()},set lang(e=`de`){y(e),l()},get apiUrl(){return x()},set apiUrl(e){x(e),l()},get apiKey(){return w()},set apiKey(e=``){w(e),l()},get question(){return M()},set question(e){M(e),l()},get height(){return N()},set height(e=`280`){N(e),l()},get maxHeight(){return fe()},set maxHeight(e){fe(e),l()},get optIn(){return L()},set optIn(e=!1){L(e),l()},get optInLabel(){return _e()},set optInLabel(e){_e(e),l()},get expandLabel(){return R()},set expandLabel(e){R(e),l()},get collapseLabel(){return z()},set collapseLabel(e){z(e),l()},get optOutLabel(){return xe()},set optOutLabel(e){xe(e),l()},get useChatConfig(){return B()},set useChatConfig(e=!1){B(e),l()},get forceTheme(){return Se()},set forceTheme(e){Se(e),l()},get disclaimerHtml(){return V()},set disclaimerHtml(e=``){V(e),l()},get labelledBy(){return ke()},set labelledBy(e){ke(e),l()},get chatUrl(){return H()},set chatUrl(e){H(e),l()},get mode(){return Xe()},set mode(e=`search`){Xe(e),l()},get source(){return Ze()},set source(e=`search-summary`){Ze(e),l()},get cache(){return Qe()},set cache(e=!1){Qe(e),l()},get activateAiButtonSlot(){return $e()},set activateAiButtonSlot(e=null){$e(e),l()},get expandAnswerButtonSlot(){return U()},set expandAnswerButtonSlot(e=null){U(e),l()},get deactivateAiButtonSlot(){return et()},set deactivateAiButtonSlot(e=null){et(e),l()}},vn=Ye(),yn=I(vn);he(yn,{id:`search-summary-css`,get css(){return be}});var bn=p(yn,2),xn=e=>{var t=je(),n=I(t);he(n,{id:`search-summary-font-css`,get css(){return A(Ut)}});var r=p(n,2);he(r,{id:`search-summary-theme-css`,get css(){return A(Vt)}});var i=p(r,2),a=e=>{he(e,{id:`search-summary-custom-css`,get css(){return A(Ht)}})};g(i,e=>{A(Ht)&&e(a)}),o(e,t)};g(bn,e=>{A(Z)&&A(Vt)&&e(xn)});var $=p(bn,2);let Sn,Cn;var wn=b($),Tn=e=>{var t=Fe(),n=b(t),i=b(n),c=b(i),l=e=>{var t=v(),n=I(t),r=e=>{var t=Me();ae(t,()=>A(G).searchSummaryDisclaimer,!0),a(t),o(e,t)};g(n,e=>{A(G).searchSummaryDisclaimer&&e(r)}),o(e,t)},u=e=>{var t=v();ae(I(t),V),o(e,t)};g(c,e=>{B()?e(l):e(u,-1)}),a(i),a(n);var d=p(n,2),f=b(d),m=e=>{var t=Ne();P(t,e=>h(mn,e),()=>A(mn)),o(e,t)},_=e=>{var t=Pe(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__opt-in${A(Gt)??``}${A(Z)?` search-summary__btn--secondary`:``}`),s(n,_e()||A(G).searchSummaryOptInDefault)}),O(`click`,t,e=>tn(e,an)),o(e,t)};g(f,e=>{$e()?e(m):e(_,-1)}),a(d),a(t),o(e,t)},En=t=>{var n=Je(),i=I(n);let c;var l=b(i),d=b(l),f=e=>{var t=Ie(),n=p(b(t),2),r=b(n,!0);a(n),a(t),D(()=>s(r,A(G).searchSummaryLoading)),o(e,t)};g(d,e=>{A(K)===`loading`&&e(f)});var m=p(d,2);let _;P(m,e=>h(ot,e),()=>A(ot)),a(l);var y=p(l,2),x=e=>{var t=Le(),n=b(t,!0);a(t),D(()=>s(n,A(wt)||A(G).searchSummaryError)),o(e,t)};g(y,e=>{A(K)===`error`&&e(x)});var S=p(y,2),te=t=>{var n=ze(),r=I(n),i=b(r,!0);a(r);var c=p(r,2);e(c,21,()=>A(Ct),e=>e.referenceIndex.used??e.url,(e,t)=>{var n=Re(),r=b(n),i=b(r,!0);a(r),a(n),D(()=>{ie(n,A(t).referenceIndex.used??void 0),F(r,`href`,A(t).url),F(r,`tabindex`,A(jt)?-1:void 0),s(i,A(t).display.listItem.title||A(t).display.card.title||A(t).url)}),o(e,n)}),a(c),D(()=>s(i,A(G).referencesTitle)),o(t,n)};g(S,e=>{A(Ct).length>0&&e(te)});var C=p(S,2),w=e=>{var t=He(),n=b(t),i=b(n,!0);a(n);var c=p(n,2),l=b(c);ee(l);var u=p(l,2),d=b(u),f=b(d,!0);a(d);var m=p(d,2),_=e=>{var t=Be();ae(t,()=>A(Wt),!0),a(t),o(e,t)},v=e=>{o(e,Ve())};g(m,e=>{A(Wt)?e(_):e(v,-1)}),a(u),a(c),a(t),D(()=>{r(t,1,`search-summary__follow-up${A(Kt)??``}`),t.inert=A(jt),s(i,A(G).ariaSearchSummaryFollowUpInput),F(l,`placeholder`,A(G).searchSummaryFollowUpPlaceholder),F(l,`aria-label`,A(G).ariaSearchSummaryFollowUpInput),F(u,`aria-label`,A(G).searchSummaryFollowUpSubmit),s(f,A(G).searchSummaryFollowUpSubmit)}),re(`submit`,t,pn),j(l,()=>A(Dt),e=>h(Dt,e)),o(e,t)};g(C,e=>{A(At)&&e(w)}),a(i),P(i,e=>h(J,e),()=>A(J));var T=p(i,2),E=e=>{var t=qe();let n;var i=b(t),c=b(i),l=e=>{var t=v(),n=I(t),i=e=>{var t=Ue();P(t,e=>h(hn,e),()=>A(hn)),u(2,t,()=>en),o(e,t)},c=e=>{var t=We(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__expand${A(Gt)??``}${A(Z)?` search-summary__btn--primary`:``}`),F(t,`aria-expanded`,A(Y)),F(t,`aria-label`,A(Ft)),s(n,A(Pt))}),O(`click`,t,Xt),u(2,t,()=>en),o(e,t)};g(n,e=>{U()?e(i):e(c,-1)}),o(e,t)};g(c,e=>{A(Mt)&&e(l)}),a(i);var d=p(i,2),f=e=>{var t=v(),n=I(t),i=e=>{var t=Ge();P(t,e=>h(gn,e),()=>A(gn)),o(e,t)},c=e=>{var t=Ke(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__opt-out${A(Gt)??``}${A(Z)?` search-summary__btn--secondary`:``}`),F(t,`aria-label`,A(G).ariaSearchSummaryOptOut),s(n,xe()||A(G).searchSummaryOptOut)}),O(`click`,t,rn),o(e,t)};g(n,e=>{et()?e(i):e(c,-1)}),o(e,t)};g(d,e=>{A(Nt)&&e(f)}),a(t),P(t,e=>h(at,e),()=>A(at)),D(()=>n=r(t,1,`search-summary__footer`,null,n,{"search-summary__footer--overlay":A(At)})),o(e,t)};g(T,e=>{(!A(At)||A(Mt)||A(Nt))&&e(E)}),D(()=>{c=r(i,1,`search-summary__content`,null,c,{"search-summary__content--with-follow-up":A(At)}),_=r(m,1,`search-summary__answer`,null,_,{"search-summary__answer--themed":A(Z)})}),o(t,n)};return g(wn,e=>{A(K)===`opt-in`?e(Tn):e(En,-1)}),a($),P($,e=>h(q,e),()=>A(q)),D(()=>{Sn=r($,1,`search-summary`,null,Sn,{"search-summary--ready":A($t)}),F($,`data-state`,A(K)),F($,`data-expanded`,A(Y)?`true`:`false`),F($,`data-capped`,A(Y)&&A(ct)?`true`:void 0),F($,`role`,ke()?`region`:void 0),F($,`aria-labelledby`,ke()),Cn=m($,``,Cn,{height:A(Y)||A(vt)||!A(dt)?`${_t.current}px`:A(ut),"max-height":A(pt)||null})}),o(i,vn),c(_n)}N([`click`]),w(H,{lang:{},apiUrl:{},apiKey:{},question:{},height:{},maxHeight:{},optIn:{},optInLabel:{},expandLabel:{},collapseLabel:{},optOutLabel:{},useChatConfig:{},forceTheme:{},disclaimerHtml:{},labelledBy:{},chatUrl:{},mode:{},source:{},cache:{},activateAiButtonSlot:{},expandAnswerButtonSlot:{},deactivateAiButtonSlot:{}},[],[`reload`],{mode:`open`});function Xe(e,t){f(t,!0);let r=k(t,`lang`,7),i=k(t,`apiUrl`,7),a=k(t,`apiKey`,7),o=k(t,`question`,7),s=k(t,`height`,7),u=k(t,`maxHeight`,7),d=k(t,`optIn`,7),p=k(t,`optInLabel`,7),m=k(t,`expandLabel`,7),g=k(t,`collapseLabel`,7),_=k(t,`optOutLabel`,7),v=k(t,`useChatConfig`,7),y=k(t,`forceTheme`,7),ee=k(t,`wrapperClass`,7),b=k(t,`labelledBy`,7),S=k(t,`chatUrl`,7),w=k(t,`mode`,7),E=k(t,`source`,7),D=k(t,`cache`,7),ne=T(()=>({lang:r(),apiUrl:i(),apiKey:a(),question:o(),height:s(),maxHeight:u(),optIn:d(),optInLabel:p(),expandLabel:m(),collapseLabel:g(),optOutLabel:_(),useChatConfig:v(),forceTheme:y(),labelledBy:b(),chatUrl:S(),mode:w(),source:E(),cache:D()})),O=n(void 0),j=t.$$host;C(()=>{j&&ee()&&(j.className=ee())}),C(()=>{if(!j||!A(O))return;let e=j;return e.reload=()=>A(O)?.reload(),()=>{delete e.reload}});let M=T(()=>j?.querySelector(`[slot="disclaimer"]`)?.innerHTML??``),re=n(null),N=n(null),F=n(null);return te(()=>{if(v()){h(re,null),h(N,null),h(F,null);return}h(re,j?.querySelector(`[slot="activate-ai-button"]`)??null,!0),h(N,j?.querySelector(`[slot="expand-answer-button"]`)??null,!0),h(F,j?.querySelector(`[slot="deactivate-ai-button"]`)??null,!0)}),P(H(e,x(()=>A(ne),{get disclaimerHtml(){return A(M)},get activateAiButtonSlot(){return A(re)},get expandAnswerButtonSlot(){return A(N)},get deactivateAiButtonSlot(){return A(F)}})),e=>h(O,e,!0),()=>A(O)),c({get lang(){return r()},set lang(e){r(e),l()},get apiUrl(){return i()},set apiUrl(e){i(e),l()},get apiKey(){return a()},set apiKey(e){a(e),l()},get question(){return o()},set question(e){o(e),l()},get height(){return s()},set height(e){s(e),l()},get maxHeight(){return u()},set maxHeight(e){u(e),l()},get optIn(){return d()},set optIn(e){d(e),l()},get optInLabel(){return p()},set optInLabel(e){p(e),l()},get expandLabel(){return m()},set expandLabel(e){m(e),l()},get collapseLabel(){return g()},set collapseLabel(e){g(e),l()},get optOutLabel(){return _()},set optOutLabel(e){_(e),l()},get useChatConfig(){return v()},set useChatConfig(e){v(e),l()},get forceTheme(){return y()},set forceTheme(e){y(e),l()},get wrapperClass(){return ee()},set wrapperClass(e){ee(e),l()},get labelledBy(){return b()},set labelledBy(e){b(e),l()},get chatUrl(){return S()},set chatUrl(e){S(e),l()},get mode(){return w()},set mode(e){w(e),l()},get source(){return E()},set source(e){E(e),l()},get cache(){return D()},set cache(e){D(e),l()}})}customElements.define(`liipgpt-search-summary`,w(Xe,{lang:{attribute:`lang`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},question:{attribute:`question`,type:`String`},height:{attribute:`height`,type:`String`},maxHeight:{attribute:`max-height`,type:`String`},optIn:{attribute:`opt-in`,type:`Boolean`},optInLabel:{attribute:`opt-in-label`,type:`String`},expandLabel:{attribute:`expand-label`,type:`String`},collapseLabel:{attribute:`collapse-label`,type:`String`},optOutLabel:{attribute:`opt-out-label`,type:`String`},useChatConfig:{attribute:`use-chat-config`,type:`Boolean`},forceTheme:{attribute:`force-theme`,type:`String`},wrapperClass:{attribute:`wrapper-class`,type:`String`},labelledBy:{attribute:`labelled-by`,type:`String`},chatUrl:{attribute:`chat-url`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[]));export{Xe as LiipGPTSearchSummary,fe as PiiChecks};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C6xrTJ8-.js","./CsGLkWF6.js","./CibALFW0.js","./BaFk5JeE.js","./hJTLHSgs.js","./BJVrdkuG.js","./MqTIsSeD.js"])))=>i.map(i=>d[i]);
2
+ import{B as e,Ct as t,Dt as n,E as r,F as i,Gt as a,J as o,K as s,Lt as c,Mt as l,N as u,P as d,Rt as f,St as p,T as m,Tt as h,U as g,X as _,Y as v,Z as y,_ as ee,bt as b,c as x,ct as S,gt as te,ht as C,i as w,kt as T,lt as E,mt as D,n as ne,nt as O,o as k,ot as A,p as j,pt as M,rt as re,tt as N,u as P,v as F,x as ie,xt as I,z as ae}from"./DK3lEKRX.js";import"./Bo0U8J3e.js";import{t as oe}from"./DjVmpym-.js";import"./CFKVnMbq.js";import"./BaFk5JeE.js";import{n as se}from"./BJVrdkuG.js";import{i as ce,n as le,r as ue,t as de}from"./BFwiU0IZ.js";import{g as fe,l as pe,n as L,t as me}from"./lj2Jt22R.js";import{n as he,t as ge}from"./I5DxyXWx.js";function _e(e){return Object.prototype.toString.call(e)===`[object Date]`}function R(e,t){if(e===t||e!==e)return()=>e;let n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw Error(`Cannot interpolate values of different type`);if(Array.isArray(e)){let n=t.map((t,n)=>R(e[n],t));return e=>n.map(t=>t(e))}if(n===`object`){if(!e||!t)throw Error(`Object cannot be null`);if(_e(e)&&_e(t)){let n=e.getTime(),r=t.getTime()-n;return e=>new Date(n+e*r)}let n=Object.keys(t),r={};return n.forEach(n=>{r[n]=R(e[n],t[n])}),e=>{let t={};return n.forEach(n=>{t[n]=r[n](e)}),t}}if(n===`number`){let n=t-e;return t=>e+t*n}return()=>t}var ve=class e{#e;#t;#n;#r=null;constructor(e,t={}){this.#e=n(e),this.#t=n(e),this.#n=t}static of(t,n){let r=new e(t(),n);return M(()=>{r.set(t())}),r}set(e,t){h(this.#t,e);let{delay:n=0,duration:r=400,easing:a=L,interpolate:o=R}={...this.#n,...t};if(r===0)return this.#r?.abort(),h(this.#e,e),Promise.resolve();let s=i.now()+n,c,l=!1,u=this.#r;return this.#r=d(t=>{if(t<s)return!0;if(!l){l=!0;let t=this.#e.v;c=o(t,e),typeof r==`function`&&(r=r(t,e)),u?.abort()}let n=t-s;return n>r?(h(this.#e,e),!1):(h(this.#e,c(a(n/r))),!0)}),this.#r.promise}get current(){return A(this.#e)}get target(){return A(this.#t)}set target(e){this.set(e)}},ye={de:{searchSummaryExpand:`Gesamte Antwort`,searchSummaryCollapse:`Weniger anzeigen`,searchSummaryOptInDefault:`KI-Suche aktivieren`,searchSummaryOptOut:`KI-Suche deaktivieren`,searchSummaryError:`Etwas ist schiefgelaufen.`,searchSummaryLoading:`Antwort wird generiert…`,searchSummaryDisclaimer:`<p><strong>Ich bin ein KI-Assistent.</strong></p><p>Meine Antworten werden von einer künstlichen Intelligenz generiert und sind deshalb nicht immer korrekt. Wenn Sie mich aktivieren, unterstütze ich Sie bei der Suche nach den richtigen Informationen.</p>`,ariaSearchSummaryExpand:`Vollständige Antwort anzeigen`,ariaSearchSummaryCollapse:`Antwort einklappen`,ariaSearchSummaryOptOut:`KI-Suche deaktivieren`,referencesTitle:`Quellen`,searchSummaryFollowUpPlaceholder:`Stellen Sie eine Folgefrage…`,searchSummaryFollowUpSubmit:`Im Chat fortfahren`,ariaSearchSummaryFollowUpInput:`Frage stellen`},en:{searchSummaryExpand:`Full answer`,searchSummaryCollapse:`Show less`,searchSummaryOptInDefault:`Enable AI search`,searchSummaryOptOut:`Disable AI search`,searchSummaryError:`Something went wrong.`,searchSummaryLoading:`Generating answer…`,searchSummaryDisclaimer:`<p><strong>I am an AI assistant.</strong></p><p>My answers are generated by artificial intelligence and may not always be correct. If you activate me, I will help you find the right information.</p>`,ariaSearchSummaryExpand:`Show full answer`,ariaSearchSummaryCollapse:`Collapse answer`,ariaSearchSummaryOptOut:`Disable AI search`,referencesTitle:`References`,searchSummaryFollowUpPlaceholder:`Ask a follow-up question…`,searchSummaryFollowUpSubmit:`Continue in chat`,ariaSearchSummaryFollowUpInput:`Ask a follow-up question`},it:{searchSummaryExpand:`Risposta completa`,searchSummaryCollapse:`Mostra meno`,searchSummaryOptInDefault:`Attiva la ricerca IA`,searchSummaryOptOut:`Disattiva la ricerca IA`,searchSummaryError:`Si è verificato un errore.`,searchSummaryLoading:`Generazione della risposta…`,searchSummaryDisclaimer:`<p><strong>Sono un assistente IA.</strong></p><p>Le mie risposte sono generate da un'intelligenza artificiale e potrebbero non essere sempre corrette. Se mi attivi, ti aiuto a trovare le informazioni giuste.</p>`,ariaSearchSummaryExpand:`Mostra la risposta completa`,ariaSearchSummaryCollapse:`Comprimi la risposta`,ariaSearchSummaryOptOut:`Disattiva la ricerca IA`,referencesTitle:`Riferimenti`,searchSummaryFollowUpPlaceholder:`Fai una domanda di approfondimento…`,searchSummaryFollowUpSubmit:`Continua nella chat`,ariaSearchSummaryFollowUpInput:`Fai una domanda di approfondimento`},fr:{searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par une intelligence artificielle et peuvent ne pas toujours être correctes. Si vous m'activez, je vous aide à trouver les bonnes informations.</p>`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,referencesTitle:`Références`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`}},be=`liipgpt-search-summary>[slot]{display:none}@layer components{@keyframes search-summary-spin{to{transform:rotate(360deg)}}@keyframes search-summary-content-appear{0%{opacity:0}}@keyframes search-summary-content-disappear{to{opacity:0}}@keyframes search-summary-action-appear{0%{opacity:0;transform:translateY(12px)}}@keyframes search-summary-action-disappear{to{opacity:0;transform:translateY(12px)}}.search-summary{box-sizing:border-box;padding:var(--search-summary-padding,0);border-width:var(--search-summary-border-width,0);border-style:var(--search-summary-border-style,solid);border-radius:var(--search-summary-border-radius,0);border-color:var(--search-summary-border-color,transparent);background:var(--search-summary-background,transparent);box-shadow:var(--search-summary-box-shadow,none);color:var(--search-summary-color,var(--body-color,inherit));font-weight:var(--base-font-weight-normal,inherit);font-size:var(--base-font-size-body,inherit);line-height:var(--base-line-height-default,inherit);font-family:var(--search-summary-font-family,var(--font-family,inherit));font-optical-sizing:auto;transition:opacity var(--search-summary-fade-duration,.2s) ease-out;flex-direction:column;padding-bottom:0;display:flex;position:relative;overflow:hidden}.search-summary :where(button){cursor:pointer;font-family:inherit}.search-summary :where(.search-summary__sr-only){clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search-summary:where(.search-summary--ready[data-state=loading]),.search-summary:where(.search-summary--ready[data-state=answering]){opacity:var(--search-summary-loading-opacity,1)}.search-summary:where([data-state=error]){border-color:var(--search-summary-error-border-color,inherit)}.search-summary :where(.search-summary__content){min-height:0;padding-bottom:var(--search-summary-padding,0);flex:1;animation:.35s ease-out both search-summary-content-appear;display:block;position:relative;overflow:hidden}.search-summary :where(.search-summary__content--with-follow-up){flex-direction:column;display:flex}.search-summary:where([data-capped=true]) :where(.search-summary__content){overflow-y:auto}.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving){pointer-events:none;animation:.25s ease-in both search-summary-content-disappear}.search-summary :where(.search-summary__answer-wrap){display:block;position:relative}.search-summary :where(.search-summary__answer){margin-bottom:var(--spacer-16,1rem);line-height:var(--search-summary-answer-line-height,1.5)}.search-summary :where(.search-summary__answer a){color:var(--search-summary-link-color,LinkText);text-decoration:underline}.search-summary :where(.search-summary__answer p){margin-top:0}.search-summary :where(.search-summary__answer--themed){font-size:var(--base-font-size-body,inherit);line-height:var(--search-summary-answer-line-height,var(--base-line-height-default,1.5))}.search-summary :where(.search-summary__answer--themed>:first-child){margin-top:0}.search-summary :where(.search-summary__answer--themed>:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed p,.search-summary__answer--themed ul,.search-summary__answer--themed ol){margin-top:0;margin-bottom:var(--spacer-r-16,1rem)}.search-summary :where(.search-summary__answer--themed h1,.search-summary__answer--themed h2,.search-summary__answer--themed h3,.search-summary__answer--themed h4,.search-summary__answer--themed h5,.search-summary__answer--themed h6){margin-top:var(--spacer-r-24,1.5rem);margin-bottom:var(--spacer-r-12,.75rem);font-weight:var(--base-font-weight-title,700);line-height:var(--base-line-height-tight,1.2)}.search-summary :where(.search-summary__answer--themed ul,.search-summary__answer--themed ol){padding-left:1.5em;list-style-position:outside}.search-summary :where(.search-summary__answer--themed ul){list-style-type:disc}.search-summary :where(.search-summary__answer--themed ol){list-style-type:decimal}.search-summary :where(.search-summary__answer--themed li){margin-bottom:var(--spacer-8,.5rem)}.search-summary :where(.search-summary__answer--themed li:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed b,.search-summary__answer--themed strong){font-weight:var(--base-font-weight-bold,700)}.search-summary :where(.search-summary__answer--themed a){color:var(--search-summary-link-color,var(--anchor-color,LinkText))}.search-summary :where(.search-summary__loading){margin-bottom:var(--spacer-16,1rem);align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__loading-spinner){border:1.5px solid var(--anchor-color,currentColor);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:.5em;height:.5em;animation:.4s linear infinite search-summary-spin;display:inline-block}.search-summary :where(.search-summary__loading-text){font-size:var(--base-font-size-default,inherit)}.search-summary :where(.search-summary__references){padding:0;padding-bottom:var(--spacer-32,2rem);color:var(--search-summary-reference-list-color,inherit);font-size:var(--search-summary-reference-list-font-size,inherit);font-size:var(--base-font-size-sm,inherit);margin:0;list-style-type:none}.search-summary :where(.search-summary__references-title){padding:var(--spacer-2,2px) 0;font-weight:var(--base-font-weight-bold,500);font-size:var(--base-font-size-sm,inherit)}.search-summary :where(.search-summary__reference){display:list-item}.search-summary :where(.search-summary__reference a){padding:var(--spacer-2,2px) 0;color:var(--search-summary-reference-list-color,var(--search-summary-link-color,LinkText));display:block}.search-summary :where(.search-summary__follow-up){padding-top:var(--spacer-12,.75rem);flex-shrink:0;margin-top:auto}.search-summary :where(.search-summary__follow-up-field){align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__follow-up-input){border-width:var(--search-summary-follow-up-border-width,revert);border-style:var(--search-summary-follow-up-border-style,revert);border-radius:var(--search-summary-follow-up-border-radius,revert);border-color:var(--search-summary-follow-up-border-color,revert);background:var(--search-summary-follow-up-background,revert);min-width:0;color:var(--search-summary-follow-up-color,revert);font:inherit;flex:auto}.search-summary :where(.search-summary__follow-up-submit){border-width:var(--search-summary-follow-up-submit-border-width,revert);border-style:var(--search-summary-follow-up-submit-border-style,revert);border-radius:var(--search-summary-follow-up-submit-border-radius,revert);border-color:var(--search-summary-follow-up-submit-border-color,revert);background:var(--search-summary-follow-up-submit-background,revert);color:var(--search-summary-follow-up-submit-color,revert);font:inherit;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.search-summary :where(.search-summary__follow-up-submit-icon){width:var(--spacer-20,1.25rem);height:var(--spacer-20,1.25rem);pointer-events:none}.search-summary :where(.search-summary__follow-up-submit-icon) :where(svg){width:100%;height:100%;display:block}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field){padding:var(--spacer-4,.25rem) var(--spacer-8,.5rem) var(--spacer-4,.25rem) var(--spacer-16,1rem);border-width:var(--chat-input-border-width,var(--spacer-1,1px));border-radius:var(--chat-input-border-radius,1.75rem);border-style:solid;border-color:var(--chat-input-border-color,currentColor);background:var(--chat-input-background,transparent);box-shadow:var(--chat-input-box-shadow,none);transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):hover{background:var(--chat-input-hover-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-hover-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):has(.search-summary__follow-up-input:focus-visible){border-width:var(--chat-input-focus-border-width,var(--chat-input-border-width,var(--spacer-1,1px)));border-radius:var(--chat-input-focus-border-radius,var(--chat-input-border-radius,1.75rem));border-color:var(--chat-input-focus-border-color,var(--chat-input-border-color,currentColor));background:var(--chat-input-focus-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-focus-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input){color:var(--chat-input-color,inherit);background:0 0;border:0;padding:0}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus,.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus-visible{outline:none}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit){width:var(--btn-submit-size,2.25rem);height:var(--btn-submit-size,2.25rem);padding:0;border-width:var(--chat-input-submit-border-width,0);border-radius:var(--chat-input-submit-border-radius,50%);border-style:solid;border-color:var(--chat-input-submit-border-color,transparent);background:var(--chat-input-submit-background,var(--search-summary-link-color,LinkText));box-shadow:var(--chat-input-submit-box-shadow,none);color:var(--chat-input-submit-color,Canvas);padding-inline:0;transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s,color .2s,transform .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit):hover{border-width:var(--chat-input-submit-hover-border-width,var(--chat-input-submit-border-width,0));border-radius:var(--chat-input-submit-hover-border-radius,var(--chat-input-submit-border-radius,50%));border-color:var(--chat-input-submit-hover-border-color,var(--chat-input-submit-border-color,transparent));background:var(--chat-input-submit-hover-background,var(--chat-input-submit-background,var(--search-summary-link-color,LinkText)));box-shadow:var(--chat-input-submit-hover-box-shadow,var(--chat-input-submit-box-shadow,none));color:var(--chat-input-submit-hover-color,var(--chat-input-submit-color,Canvas))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit-icon--fallback path){stroke:currentColor;stroke-width:var(--chat-input-submit-stroke-width,2px)}.search-summary :where(.search-summary__disclaimer){margin-bottom:var(--spacer-16,1rem);line-height:var(--base-line-height-default,1.5)}.search-summary :where(.search-summary__disclaimer a){color:var(--search-summary-disclaimer-link-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__disclaimer p){margin-top:0}.search-summary :where(.search-summary__opt-in-panel){flex-direction:column;flex:1;min-height:0;display:flex}.search-summary :where(.search-summary__opt-in-body){min-height:0;margin-top:var(--spacer-4,.25rem);margin-bottom:var(--spacer-16,1rem);flex:1;position:relative;overflow-y:auto}.search-summary :where(.search-summary__error){color:var(--search-summary-error-color,inherit)}.search-summary :where(.search-summary__footer){margin-right:calc(-1 * var(--search-summary-padding,0));margin-left:calc(-1 * var(--search-summary-padding,0));padding:0 var(--search-summary-padding,0) calc(var(--search-summary-padding,0));justify-content:space-between;align-items:center;gap:var(--spacer-12,.75rem);background:var(--search-summary-footer-background,var(--search-summary-background,white));flex-wrap:wrap;flex-shrink:0;display:flex;position:relative}.search-summary :where(.search-summary__footer):after{height:var(--spacer-48,3rem);background:linear-gradient(to bottom, transparent, var(--search-summary-footer-background,var(--search-summary-background,white)));content:"";pointer-events:none;position:absolute;top:0;left:0;right:0;transform:translateY(-100%)}.search-summary :where(.search-summary__footer--overlay){margin:0;position:absolute;bottom:0;left:0;right:0}.search-summary :where(.search-summary__footer-actions){align-items:center;gap:var(--spacer-8,.5rem);flex-wrap:wrap;display:flex}.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount){animation:.3s cubic-bezier(.25,.46,.45,.94) both search-summary-action-appear}.search-summary :where(.search-summary__opt-in,.search-summary__opt-in-slot-mount){animation-delay:.3s}.search-summary :where(.search-summary__btn--leaving){pointer-events:none;animation:.2s cubic-bezier(.55,0,1,.45) both search-summary-action-disappear}.search-summary :where(.search-summary__expand,.search-summary__opt-in,.search-summary__opt-out):not(:where(.search-summary__btn)){font:inherit;padding:0;padding-inline:0}.search-summary :where(.search-summary__expand,.search-summary__opt-in):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-primary-border-radius,0);border-color:var(--search-summary-action-primary-border-color,transparent);background:var(--search-summary-action-primary-background,transparent);color:var(--search-summary-action-primary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__opt-out):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-secondary-border-radius,0);border-color:var(--search-summary-action-secondary-border-color,transparent);background:var(--search-summary-action-secondary-background,transparent);color:var(--search-summary-action-secondary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__btn){padding:var(--btn-padding-y,var(--spacer-8,.5rem)) var(--btn-padding-x,var(--spacer-20,1.25rem));align-items:center;gap:var(--spacer-8,.5rem);border-width:var(--spacer-1,1px);font-size:var(--base-font-size-sm,inherit);cursor:pointer;border-style:solid;font-family:inherit;line-height:1.25;text-decoration:none;display:inline-flex}.search-summary :where(.search-summary__btn--primary){border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color,transparent);background:var(--btn-primary-background);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700)}.search-summary :where(.search-summary__btn--primary):hover{background:var(--btn-primary-hover-background,var(--btn-primary-background));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.search-summary :where(.search-summary__btn--secondary){border-radius:var(--btn-secondary-border-radius);border-color:var(--btn-secondary-border-color,var(--btn-secondary-background));background:var(--btn-secondary-background);color:var(--btn-secondary-color);font-weight:var(--btn-secondary-font-weight,700)}.search-summary :where(.search-summary__btn--secondary):hover{background:var(--btn-secondary-hover-background,var(--btn-secondary-background));color:var(--btn-secondary-hover-color,var(--btn-secondary-color))}@media (prefers-reduced-motion:reduce){.search-summary{transition:none}.search-summary :where(.search-summary__content),.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving),.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount),.search-summary :where(.search-summary__btn--leaving),.search-summary :where(.search-summary__loading-spinner){animation:none!important}}}`,z=`liipgpt:search-summary:opt-in:`;function xe(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return(t>>>0).toString(36)}function B(e){return`${z}${xe(e??``)}`}function Se(){try{return typeof window<`u`&&window.localStorage!==void 0}catch{return!1}}function Ce(e){if(!Se())return!1;try{return window.localStorage.getItem(B(e))===`1`}catch{return!1}}function we(e){if(Se())try{window.localStorage.setItem(B(e),`1`)}catch{}}function Te(e){if(Se())try{window.localStorage.removeItem(B(e))}catch{}}var V=new WeakMap;function Ee(e,t,n){if(!t)return null;let r=V.get(t);return r&&t.removeEventListener(`click`,r),t.removeAttribute(`slot`),t.type=`button`,t.addEventListener(`click`,n),V.set(t,n),e.appendChild(t),({label:e,ariaLabel:n,ariaExpanded:r})=>{e!==void 0&&(t.textContent=e),n!==void 0&&t.setAttribute(`aria-label`,n),r===void 0?t.removeAttribute(`aria-expanded`):t.setAttribute(`aria-expanded`,String(r))}}function De(e,t){if(!t)return;let n=V.get(t);n&&(t.removeEventListener(`click`,n),V.delete(t)),e.contains(t)&&e.removeChild(t)}function Oe(e,t=`.search-summary`){return e.replaceAll(`.chat-app`,t)}var ke=`(prefers-reduced-motion: reduce)`;function Ae(e){if(typeof window>`u`)return e(!1),()=>{};let t=window.matchMedia(ke);e(t.matches);let n=()=>e(t.matches);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var je=_(`<!> <!> <!>`,1),Me=_(`<div class="search-summary__disclaimer-text"></div>`),Ne=_(`<div class="search-summary__opt-in-slot-mount"></div>`),Pe=_(`<button type="button"> </button>`),Fe=_(`<div class="search-summary__opt-in-panel"><div class="search-summary__opt-in-body"><div class="search-summary__disclaimer"><!></div></div> <div class="search-summary__footer"><!></div></div>`),Ie=_(`<div class="search-summary__loading" aria-live="polite"><span class="search-summary__loading-spinner" aria-hidden="true"></span> <span class="search-summary__loading-text"> </span></div>`),Le=_(`<div class="search-summary__error" role="alert"> </div>`),Re=_(`<li class="search-summary__reference"><a target="_blank" rel="noopener noreferrer"> </a></li>`),ze=_(`<div class="search-summary__references-title"> </div> <ol class="search-summary__references"></ol>`,1),Be=_(`<div class="search-summary__follow-up-submit-icon"></div>`),Ve=y(`<svg class="search-summary__follow-up-submit-icon search-summary__follow-up-submit-icon--fallback" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"></path><path d="m4 9 8-8 8 8"></path></g></svg>`),He=_(`<form><label class="search-summary__sr-only" for="search-summary-follow-up-input"> </label> <div class="search-summary__follow-up-field"><input id="search-summary-follow-up-input" class="search-summary__follow-up-input" type="text"/> <button type="submit" class="search-summary__follow-up-submit"><span class="search-summary__sr-only"> </span> <!></button></div></form>`),Ue=_(`<div class="search-summary__expand-slot-mount"></div>`),We=_(`<button type="button"> </button>`),Ge=_(`<div class="search-summary__opt-out-slot-mount"></div>`),Ke=_(`<button type="button"> </button>`),qe=_(`<div><div class="search-summary__footer-actions"><!></div> <!></div>`),Je=_(`<div><div class="search-summary__answer-wrap"><!> <div aria-live="polite"></div></div> <!> <!> <!></div> <!>`,1),Ye=_(`<!> <!> <div><!></div>`,1);function H(i,d){f(d,!0);function _(e){let t=e.trim();return!(!t||/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(t)||t.startsWith(`//`))}let y=k(d,`lang`,7,`de`),x=k(d,`apiUrl`,7),w=k(d,`apiKey`,7,``),M=k(d,`question`,7),N=k(d,`height`,7,`280`),fe=k(d,`maxHeight`,7),L=k(d,`optIn`,7,!1),_e=k(d,`optInLabel`,7),R=k(d,`expandLabel`,7),z=k(d,`collapseLabel`,7),xe=k(d,`optOutLabel`,7),B=k(d,`useChatConfig`,7,!1),Se=k(d,`forceTheme`,7),V=k(d,`disclaimerHtml`,7,``),ke=k(d,`labelledBy`,7),H=k(d,`chatUrl`,7),Xe=k(d,`mode`,7,`search`),Ze=k(d,`source`,7,`search-summary`),Qe=k(d,`cache`,7,!1),$e=k(d,`activateAiButtonSlot`,7,null),U=k(d,`expandAnswerButtonSlot`,7,null),et=k(d,`deactivateAiButtonSlot`,7,null),tt=n(null),W=n(null),nt=n(!1),rt=[`de`,`en`,`fr`,`it`],it=T(()=>A(W)?.language??se(y(),rt)),G=T(()=>({...ye[A(it)],...A(tt)})),K=n(`loading`),q=n(null),J=n(null),at=n(null),ot=n(null),st=n(!1),Y=n(!1),ct=n(!1),lt=n(t(de)),ut=T(()=>ue(N())),X=T(()=>ce(A(ut))),dt=T(()=>A(X)===null),ft=T(()=>A(X)??de),pt=T(()=>fe()===void 0?``:ue(fe()));function mt(){if(!A(pt))return null;let e=ce(A(pt));return e===null?A(q)?le(A(q),A(pt)):null:e}let ht=n(!1);C(()=>Ae(e=>h(ht,e,!0)));function gt(e){return A(ht)?0:e}let _t=new ve(E(()=>A(ft)),{duration:400,easing:me}),vt=n(!1);C(()=>{if(!A(vt)){if(A(Y)){_t.set(A(lt),{duration:gt(400)});return}!A(dt)&&A(X)!==null&&_t.set(A(X),{duration:gt(400)})}});function yt(){return A(q)?A(X)===null?le(A(q),A(ut)):A(X):A(ft)}async function bt(e){h(vt,!0),await _t.set(e,{duration:gt(400)}),h(vt,!1)}function xt(){if(!A(q))return yt();if(A(q).offsetHeight>0)return A(q).offsetHeight;let e=A(q).style.height;if(!e)return yt();let t=ce(e);return t===null?le(A(q),e):t}let St=n(``),Ct=n(t([])),wt=n(``),Tt=n(null),Et=n(!1),Dt=n(``),Ot=T(()=>H()&&_(H())?H():void 0),kt=T(()=>!!A(Ot)&&!!A(Tt)),At=T(()=>A(kt)&&A(Et)),jt=T(()=>!A(Y)&&A(st)),Mt=T(()=>A(K)!==`opt-in`&&A(K)!==`loading`&&A(K)!==`error`&&(A(st)||A(Y))&&!(A(Y)&&A(kt))),Nt=T(()=>L()&&A(K)!==`opt-in`),Pt=T(()=>A(Y)?z()||A(G).searchSummaryCollapse:R()||A(G).searchSummaryExpand),Ft=T(()=>A(Y)?A(G).ariaSearchSummaryCollapse:A(G).ariaSearchSummaryExpand),It=n(``),Lt=n(``),Rt=null,zt=T(()=>A(Y)?A(Lt)||z()||A(G).searchSummaryCollapse:R()||A(It)||A(G).searchSummaryExpand),Bt=T(()=>A(Y)?A(Lt)||z()||A(G).ariaSearchSummaryCollapse:R()||A(It)||A(G).ariaSearchSummaryExpand),Vt=T(()=>A(W)?ge(A(W).chatConfig.fullTheme[A(W).colorScheme].tokens,{root:`.search-summary`}):``),Ht=T(()=>A(W)?.chatConfig.fullTheme[A(W).colorScheme]?.customCSS?Oe(A(W).chatConfig.fullTheme[A(W).colorScheme].customCSS):``),Ut=T(()=>A(W)?.chatConfig.fullTheme[A(W).colorScheme]?.fontCSS??``),Wt=T(()=>A(W)?.chatConfig.fullTheme[A(W).colorScheme]?.tokens?.svgs?.submit??``),Z=T(()=>A(W)!==null),Gt=T(()=>A(Z)?` search-summary__btn`:``),Kt=T(()=>A(Z)?` search-summary__follow-up--themed`:``);function qt(){if(!A(q))return A(ft);let e=A(q).style.height;A(q).style.height=`auto`;let t=A(J)?.style.flex??``;A(J)&&(A(J).style.flex=`none`);let n=A(q).scrollHeight;return A(J)&&(A(J).style.flex=t),A(q).style.height=e,n}function Jt(){h(st,(A(J)?.scrollHeight??0)>(A(J)?.offsetHeight??0)+1)}function Yt(){let e=qt(),t=mt();h(lt,t===null?e:Math.min(e,t),!0),h(ct,t!==null&&e>t,!0)}async function Xt(){if(A(q))if(!A(Y))Yt(),_t.set(xt(),{duration:0}),h(Y,!0),h(K,`expanded`),await S(),Jt(),Yt(),await bt(A(lt));else{_t.set(xt(),{duration:0});let e=yt();h(Y,!1),h(K,A(St)?`done`:`loading`,!0),await S(),Jt(),await bt(e)}}let Zt=n(!1);te(()=>{A(Zt)||x()&&(h(K,L()&&!Ce(x())?`opt-in`:`loading`,!0),h(Zt,!0))}),C(()=>{if(!x()||!B()){h(W,null),h(tt,null),h(nt,!0);return}let e=!1;return h(nt,!1),oe(async()=>{let{loadChatConfig:e}=await import(`./C6xrTJ8-.js`);return{loadChatConfig:e}},__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).then(({loadChatConfig:e})=>e({apiUrl:x(),lang:y(),forceTheme:Se()})).then(t=>{e||(h(W,t,!0),h(tt,t.chatConfig.translations[t.language]??null,!0))}).catch(()=>{e||(h(W,null),h(tt,null))}).finally(()=>{e||h(nt,!0)}),()=>{e=!0}});let Qt=T(()=>A(Zt)&&A(nt)),$t=n(!1);C(()=>{if(!A(Qt)||A($t))return;let e=requestAnimationFrame(()=>h($t,!0));return()=>cancelAnimationFrame(e)}),C(()=>{if(!A(q))return;A(St),A(Ct).length,A(ut),Yt(),Jt();let e=new ResizeObserver(()=>{Yt(),Jt()});return e.observe(A(q)),A(J)&&e.observe(A(J)),()=>e.disconnect()});function en(e){return e.classList.add(`search-summary__btn--leaving`),{duration:gt(200)}}function tn(e,t){if(A(ht)){t();return}let n=e.currentTarget;n.classList.add(`search-summary__btn--leaving`),n.addEventListener(`animationend`,t,{once:!0})}function nn(e=null){if(A(ht)){sn();return}e?.classList.add(`search-summary__btn--leaving`),A(J)?.classList.add(`search-summary__content--leaving`),A(at)?.classList.add(`search-summary__footer--leaving`),A(at)?.querySelector(`.search-summary__expand, .search-summary__expand-slot-mount`)?.classList.add(`search-summary__btn--leaving`);let t=A(J)??e;t?t.addEventListener(`animationend`,sn,{once:!0}):sn()}function rn(e){nn(e.currentTarget)}function an(){we(x()),h(K,`loading`)}function on(){un?.(),Q&&Q.abort().catch(()=>{}),un=void 0,Q=void 0,h(Tt,null),h(Et,!1),h(Dt,``),cn=!1,h(St,``),h(Ct,[],!0),h(wt,``),h(Y,!1),h(st,!1)}function sn(){Te(x()),on(),h(K,`opt-in`)}let cn=!1,ln,un,Q;function dn(){if(cn)return;cn=!0,ln=M();let e=new pe({apiUrl:x(),apiKey:w()});try{let t=e.createConversation();h(Tt,t.id,!0),Q=t.chat(M(),{lang:A(it),mode:Xe()||void 0,source:Ze()||void 0,cache:Qe()||void 0})}catch(e){h(wt,e instanceof Error&&e.message?e.message:A(G).searchSummaryError,!0),h(K,`error`);return}un=Q.subscribe(e=>{if(e.errors.length>0){h(wt,e.errors.join(`, `)||A(G).searchSummaryError,!0),h(K,`error`);return}if(e.state===`loading`){h(K,`loading`);return}h(St,e.message.html,!0),h(Ct,e.references.used.slice().sort((e,t)=>(e.referenceIndex.used??0)-(t.referenceIndex.used??0)),!0),e.state===`streaming`?A(Y)||h(K,`answering`):e.state===`done`&&(h(Et,!0),A(Y)||h(K,`done`),queueMicrotask(Jt))})}C(()=>{!M()||!x()||A(K)!==`loading`||dn()});function fn(){if(on(),L()&&!Ce(x())){h(K,`opt-in`);return}h(K,`loading`),dn()}C(()=>{let e=M();!e||!cn||e===ln||E(()=>fn())}),ne(()=>{un?.(),Q&&Q.abort().catch(()=>{})}),C(()=>{A(ot)&&(A(ot).innerHTML=A(St),A(ot).querySelectorAll(`liipgpt-reference-number`).forEach(e=>e.remove()),queueMicrotask(Jt))});function pn(e){e.preventDefault();let t=A(Dt).trim();if(!t||!A(Ot)||!A(Tt))return;let n=new URL(A(Ot),window.location.href);if(n.pathname===window.location.pathname){let e=new URLSearchParams(window.location.search);for(let[t,r]of n.searchParams)e.set(t,r);n.search=e.toString()}n.searchParams.set(`follow-up-q`,t),n.hash=`cID=${A(Tt)}`,window.location.assign(n.toString())}let mn=n(null),hn=n(null),gn=n(null);C(()=>{let e=A(mn),t=$e();if(!(!e||!t))return Ee(e,t,an)?.({label:_e()||void 0}),()=>De(e,t)}),C(()=>{let e=A(hn),t=U();if(!(!e||!t||!A(Mt)))return Rt!==t&&(Rt=t,h(It,t.textContent?.trim()??``,!0),h(Lt,t.dataset.collapseLabel?.trim()??``,!0)),Ee(e,t,Xt)?.({label:A(zt),ariaLabel:A(Bt),ariaExpanded:A(Y)}),()=>De(e,t)}),C(()=>{!U()||!A(Mt)||(U().textContent=A(zt),U().setAttribute(`aria-label`,A(Bt)),U().setAttribute(`aria-expanded`,String(A(Y))))}),C(()=>{let e=A(gn),t=et();if(!(!e||!t||!A(Nt)))return Ee(e,t,()=>nn(e))?.({label:xe()||void 0,ariaLabel:A(G).ariaSearchSummaryOptOut}),()=>De(e,t)});var _n={reload:fn,get lang(){return y()},set lang(e=`de`){y(e),l()},get apiUrl(){return x()},set apiUrl(e){x(e),l()},get apiKey(){return w()},set apiKey(e=``){w(e),l()},get question(){return M()},set question(e){M(e),l()},get height(){return N()},set height(e=`280`){N(e),l()},get maxHeight(){return fe()},set maxHeight(e){fe(e),l()},get optIn(){return L()},set optIn(e=!1){L(e),l()},get optInLabel(){return _e()},set optInLabel(e){_e(e),l()},get expandLabel(){return R()},set expandLabel(e){R(e),l()},get collapseLabel(){return z()},set collapseLabel(e){z(e),l()},get optOutLabel(){return xe()},set optOutLabel(e){xe(e),l()},get useChatConfig(){return B()},set useChatConfig(e=!1){B(e),l()},get forceTheme(){return Se()},set forceTheme(e){Se(e),l()},get disclaimerHtml(){return V()},set disclaimerHtml(e=``){V(e),l()},get labelledBy(){return ke()},set labelledBy(e){ke(e),l()},get chatUrl(){return H()},set chatUrl(e){H(e),l()},get mode(){return Xe()},set mode(e=`search`){Xe(e),l()},get source(){return Ze()},set source(e=`search-summary`){Ze(e),l()},get cache(){return Qe()},set cache(e=!1){Qe(e),l()},get activateAiButtonSlot(){return $e()},set activateAiButtonSlot(e=null){$e(e),l()},get expandAnswerButtonSlot(){return U()},set expandAnswerButtonSlot(e=null){U(e),l()},get deactivateAiButtonSlot(){return et()},set deactivateAiButtonSlot(e=null){et(e),l()}},vn=Ye(),yn=I(vn);he(yn,{id:`search-summary-css`,get css(){return be}});var bn=p(yn,2),xn=e=>{var t=je(),n=I(t);he(n,{id:`search-summary-font-css`,get css(){return A(Ut)}});var r=p(n,2);he(r,{id:`search-summary-theme-css`,get css(){return A(Vt)}});var i=p(r,2),a=e=>{he(e,{id:`search-summary-custom-css`,get css(){return A(Ht)}})};g(i,e=>{A(Ht)&&e(a)}),o(e,t)};g(bn,e=>{A(Z)&&A(Vt)&&e(xn)});var $=p(bn,2);let Sn,Cn;var wn=b($),Tn=e=>{var t=Fe(),n=b(t),i=b(n),c=b(i),l=e=>{var t=v(),n=I(t),r=e=>{var t=Me();ae(t,()=>A(G).searchSummaryDisclaimer,!0),a(t),o(e,t)};g(n,e=>{A(G).searchSummaryDisclaimer&&e(r)}),o(e,t)},u=e=>{var t=v();ae(I(t),V),o(e,t)};g(c,e=>{B()?e(l):e(u,-1)}),a(i),a(n);var d=p(n,2),f=b(d),m=e=>{var t=Ne();P(t,e=>h(mn,e),()=>A(mn)),o(e,t)},_=e=>{var t=Pe(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__opt-in${A(Gt)??``}${A(Z)?` search-summary__btn--secondary`:``}`),s(n,_e()||A(G).searchSummaryOptInDefault)}),O(`click`,t,e=>tn(e,an)),o(e,t)};g(f,e=>{$e()?e(m):e(_,-1)}),a(d),a(t),o(e,t)},En=t=>{var n=Je(),i=I(n);let c;var l=b(i),d=b(l),f=e=>{var t=Ie(),n=p(b(t),2),r=b(n,!0);a(n),a(t),D(()=>s(r,A(G).searchSummaryLoading)),o(e,t)};g(d,e=>{A(K)===`loading`&&e(f)});var m=p(d,2);let _;P(m,e=>h(ot,e),()=>A(ot)),a(l);var y=p(l,2),x=e=>{var t=Le(),n=b(t,!0);a(t),D(()=>s(n,A(wt)||A(G).searchSummaryError)),o(e,t)};g(y,e=>{A(K)===`error`&&e(x)});var S=p(y,2),te=t=>{var n=ze(),r=I(n),i=b(r,!0);a(r);var c=p(r,2);e(c,21,()=>A(Ct),e=>e.referenceIndex.used??e.url,(e,t)=>{var n=Re(),r=b(n),i=b(r,!0);a(r),a(n),D(()=>{ie(n,A(t).referenceIndex.used??void 0),F(r,`href`,A(t).url),F(r,`tabindex`,A(jt)?-1:void 0),s(i,A(t).display.listItem.title||A(t).display.card.title||A(t).url)}),o(e,n)}),a(c),D(()=>s(i,A(G).referencesTitle)),o(t,n)};g(S,e=>{A(Ct).length>0&&e(te)});var C=p(S,2),w=e=>{var t=He(),n=b(t),i=b(n,!0);a(n);var c=p(n,2),l=b(c);ee(l);var u=p(l,2),d=b(u),f=b(d,!0);a(d);var m=p(d,2),_=e=>{var t=Be();ae(t,()=>A(Wt),!0),a(t),o(e,t)},v=e=>{o(e,Ve())};g(m,e=>{A(Wt)?e(_):e(v,-1)}),a(u),a(c),a(t),D(()=>{r(t,1,`search-summary__follow-up${A(Kt)??``}`),t.inert=A(jt),s(i,A(G).ariaSearchSummaryFollowUpInput),F(l,`placeholder`,A(G).searchSummaryFollowUpPlaceholder),F(l,`aria-label`,A(G).ariaSearchSummaryFollowUpInput),F(u,`aria-label`,A(G).searchSummaryFollowUpSubmit),s(f,A(G).searchSummaryFollowUpSubmit)}),re(`submit`,t,pn),j(l,()=>A(Dt),e=>h(Dt,e)),o(e,t)};g(C,e=>{A(At)&&e(w)}),a(i),P(i,e=>h(J,e),()=>A(J));var T=p(i,2),E=e=>{var t=qe();let n;var i=b(t),c=b(i),l=e=>{var t=v(),n=I(t),i=e=>{var t=Ue();P(t,e=>h(hn,e),()=>A(hn)),u(2,t,()=>en),o(e,t)},c=e=>{var t=We(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__expand${A(Gt)??``}${A(Z)?` search-summary__btn--primary`:``}`),F(t,`aria-expanded`,A(Y)),F(t,`aria-label`,A(Ft)),s(n,A(Pt))}),O(`click`,t,Xt),u(2,t,()=>en),o(e,t)};g(n,e=>{U()?e(i):e(c,-1)}),o(e,t)};g(c,e=>{A(Mt)&&e(l)}),a(i);var d=p(i,2),f=e=>{var t=v(),n=I(t),i=e=>{var t=Ge();P(t,e=>h(gn,e),()=>A(gn)),o(e,t)},c=e=>{var t=Ke(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__opt-out${A(Gt)??``}${A(Z)?` search-summary__btn--secondary`:``}`),F(t,`aria-label`,A(G).ariaSearchSummaryOptOut),s(n,xe()||A(G).searchSummaryOptOut)}),O(`click`,t,rn),o(e,t)};g(n,e=>{et()?e(i):e(c,-1)}),o(e,t)};g(d,e=>{A(Nt)&&e(f)}),a(t),P(t,e=>h(at,e),()=>A(at)),D(()=>n=r(t,1,`search-summary__footer`,null,n,{"search-summary__footer--overlay":A(At)})),o(e,t)};g(T,e=>{(!A(At)||A(Mt)||A(Nt))&&e(E)}),D(()=>{c=r(i,1,`search-summary__content`,null,c,{"search-summary__content--with-follow-up":A(At)}),_=r(m,1,`search-summary__answer`,null,_,{"search-summary__answer--themed":A(Z)})}),o(t,n)};return g(wn,e=>{A(K)===`opt-in`?e(Tn):e(En,-1)}),a($),P($,e=>h(q,e),()=>A(q)),D(()=>{Sn=r($,1,`search-summary`,null,Sn,{"search-summary--ready":A($t)}),F($,`data-state`,A(K)),F($,`data-expanded`,A(Y)?`true`:`false`),F($,`data-capped`,A(Y)&&A(ct)?`true`:void 0),F($,`role`,ke()?`region`:void 0),F($,`aria-labelledby`,ke()),Cn=m($,``,Cn,{height:A(Y)||A(vt)||!A(dt)?`${_t.current}px`:A(ut),"max-height":A(pt)||null})}),o(i,vn),c(_n)}N([`click`]),w(H,{lang:{},apiUrl:{},apiKey:{},question:{},height:{},maxHeight:{},optIn:{},optInLabel:{},expandLabel:{},collapseLabel:{},optOutLabel:{},useChatConfig:{},forceTheme:{},disclaimerHtml:{},labelledBy:{},chatUrl:{},mode:{},source:{},cache:{},activateAiButtonSlot:{},expandAnswerButtonSlot:{},deactivateAiButtonSlot:{}},[],[`reload`],{mode:`open`});function Xe(e,t){f(t,!0);let r=k(t,`lang`,7),i=k(t,`apiUrl`,7),a=k(t,`apiKey`,7),o=k(t,`question`,7),s=k(t,`height`,7),u=k(t,`maxHeight`,7),d=k(t,`optIn`,7),p=k(t,`optInLabel`,7),m=k(t,`expandLabel`,7),g=k(t,`collapseLabel`,7),_=k(t,`optOutLabel`,7),v=k(t,`useChatConfig`,7),y=k(t,`forceTheme`,7),ee=k(t,`wrapperClass`,7),b=k(t,`labelledBy`,7),S=k(t,`chatUrl`,7),w=k(t,`mode`,7),E=k(t,`source`,7),D=k(t,`cache`,7),ne=T(()=>({lang:r(),apiUrl:i(),apiKey:a(),question:o(),height:s(),maxHeight:u(),optIn:d(),optInLabel:p(),expandLabel:m(),collapseLabel:g(),optOutLabel:_(),useChatConfig:v(),forceTheme:y(),labelledBy:b(),chatUrl:S(),mode:w(),source:E(),cache:D()})),O=n(void 0),j=t.$$host;C(()=>{j&&ee()&&(j.className=ee())}),C(()=>{if(!j||!A(O))return;let e=j;return e.reload=()=>A(O)?.reload(),()=>{delete e.reload}});let M=T(()=>j?.querySelector(`[slot="disclaimer"]`)?.innerHTML??``),re=n(null),N=n(null),F=n(null);return te(()=>{if(v()){h(re,null),h(N,null),h(F,null);return}h(re,j?.querySelector(`[slot="activate-ai-button"]`)??null,!0),h(N,j?.querySelector(`[slot="expand-answer-button"]`)??null,!0),h(F,j?.querySelector(`[slot="deactivate-ai-button"]`)??null,!0)}),P(H(e,x(()=>A(ne),{get disclaimerHtml(){return A(M)},get activateAiButtonSlot(){return A(re)},get expandAnswerButtonSlot(){return A(N)},get deactivateAiButtonSlot(){return A(F)}})),e=>h(O,e,!0),()=>A(O)),c({get lang(){return r()},set lang(e){r(e),l()},get apiUrl(){return i()},set apiUrl(e){i(e),l()},get apiKey(){return a()},set apiKey(e){a(e),l()},get question(){return o()},set question(e){o(e),l()},get height(){return s()},set height(e){s(e),l()},get maxHeight(){return u()},set maxHeight(e){u(e),l()},get optIn(){return d()},set optIn(e){d(e),l()},get optInLabel(){return p()},set optInLabel(e){p(e),l()},get expandLabel(){return m()},set expandLabel(e){m(e),l()},get collapseLabel(){return g()},set collapseLabel(e){g(e),l()},get optOutLabel(){return _()},set optOutLabel(e){_(e),l()},get useChatConfig(){return v()},set useChatConfig(e){v(e),l()},get forceTheme(){return y()},set forceTheme(e){y(e),l()},get wrapperClass(){return ee()},set wrapperClass(e){ee(e),l()},get labelledBy(){return b()},set labelledBy(e){b(e),l()},get chatUrl(){return S()},set chatUrl(e){S(e),l()},get mode(){return w()},set mode(e){w(e),l()},get source(){return E()},set source(e){E(e),l()},get cache(){return D()},set cache(e){D(e),l()}})}customElements.define(`liipgpt-search-summary`,w(Xe,{lang:{attribute:`lang`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},question:{attribute:`question`,type:`String`},height:{attribute:`height`,type:`String`},maxHeight:{attribute:`max-height`,type:`String`},optIn:{attribute:`opt-in`,type:`Boolean`},optInLabel:{attribute:`opt-in-label`,type:`String`},expandLabel:{attribute:`expand-label`,type:`String`},collapseLabel:{attribute:`collapse-label`,type:`String`},optOutLabel:{attribute:`opt-out-label`,type:`String`},useChatConfig:{attribute:`use-chat-config`,type:`Boolean`},forceTheme:{attribute:`force-theme`,type:`String`},wrapperClass:{attribute:`wrapper-class`,type:`String`},labelledBy:{attribute:`labelled-by`,type:`String`},chatUrl:{attribute:`chat-url`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[]));export{Xe as LiipGPTSearchSummary,fe as PiiChecks};
@@ -0,0 +1 @@
1
+ import{Lt as e,Mt as t,Rt as n,c as r,i,kt as a,o,ot as s,qt as c}from"./DK3lEKRX.js";import"./CFKVnMbq.js";import"./CsGLkWF6.js";import"./hJTLHSgs.js";import"./BaFk5JeE.js";import"./BJVrdkuG.js";import"./DHHLckcz.js";import"./I5DxyXWx.js";import{t as l}from"./DmZKIk3Y.js";import"./MqTIsSeD.js";import{t as u}from"./CNNudH1c.js";function d(i,d){n(d,!0);let f=o(d,`onclick`,7),p=o(d,`buttonClass`,7),m=o(d,`buttonStyle`,7),h=o(d,`apiUrl`,7),g=o(d,`forceTheme`,7),_=o(d,`lang`,7),v=a(()=>({onclick:f(),buttonClass:p(),buttonStyle:m(),apiUrl:h(),forceTheme:g(),lang:_()}));return u(i,{silent:!0,body:(e,t=c)=>{l(e,r({host:d.$$host,get onError(){return t()}},()=>s(v)))},$$slots:{body:!0}}),e({get onclick(){return f()},set onclick(e){f(e),t()},get buttonClass(){return p()},set buttonClass(e){p(e),t()},get buttonStyle(){return m()},set buttonStyle(e){m(e),t()},get apiUrl(){return h()},set apiUrl(e){h(e),t()},get forceTheme(){return g()},set forceTheme(e){g(e),t()},get lang(){return _()},set lang(e){_(e),t()}})}customElements.define(`liipgpt-button`,i(d,{forceTheme:{attribute:`force-theme`,type:`String`},buttonClass:{attribute:`button-class`,type:`String`},buttonStyle:{attribute:`button-style`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},lang:{attribute:`lang`,type:`String`},onclick:{}},[],[],{mode:`open`}));export{d as LiipGPTButton};
@@ -1,4 +1,4 @@
1
- import{A as e,J as t,Lt as n,Mt as r,Rt as i,U as a,X as o,Y as s,i as c,nt as l,o as u,tt as d,xt as f}from"./rEsbAd0y.js";import{t as p}from"./59Qy4pzN.js";import{t as m}from"./BZRp1cWz.js";var h=(e,t)=>{let n=new URLSearchParams(m.url.searchParams);t===void 0?n.delete(e):n.set(e,String(t));let r=`?${n.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+r,`*`),p(r,{replaceState:!0})},g=e=>{let t=new URLSearchParams(m.url.searchParams);for(let[n,r]of Object.entries(e))r===void 0?t.delete(n):t.set(n,String(r));let n=`?${t.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+n,`*`),p(n,{replaceState:!0})},_=o(`<button type="button" class="sidebar-hide svelte-q6hwt7" aria-label="Hide sidebar">Hide sidebar</button>`),v=o(`<button type="button" class="sidebar-reopen svelte-q6hwt7" aria-label="Show sidebar"><span class="sidebar-reopen__label svelte-q6hwt7" aria-hidden="true">Show sidebar</span></button>`),y={hash:`svelte-q6hwt7`,code:`.sidebar-hide.svelte-q6hwt7 {display:block;padding:0.375rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.375rem;background:#fff;color:#4b5563;font-weight:500;font-size:0.75rem;line-height:1.25;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-hide.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen.svelte-q6hwt7 {display:flex;z-index:50;position:fixed;bottom:5rem;left:0;align-items:center;justify-content:center;padding:0.5rem 0.25rem;border:1px solid #e5e7eb;border-left:none;border-radius:0 0.375rem 0.375rem 0;background:#fff;box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1),
1
+ import{A as e,J as t,Lt as n,Mt as r,Rt as i,U as a,X as o,Y as s,i as c,nt as l,o as u,tt as d,xt as f}from"./DK3lEKRX.js";import{t as p}from"./BOogcmRI.js";import{t as m}from"./CxsmcPPu.js";var h=(e,t)=>{let n=new URLSearchParams(m.url.searchParams);t===void 0?n.delete(e):n.set(e,String(t));let r=`?${n.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+r,`*`),p(r,{replaceState:!0})},g=e=>{let t=new URLSearchParams(m.url.searchParams);for(let[n,r]of Object.entries(e))r===void 0?t.delete(n):t.set(n,String(r));let n=`?${t.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+n,`*`),p(n,{replaceState:!0})},_=o(`<button type="button" class="sidebar-hide svelte-q6hwt7" aria-label="Hide sidebar">Hide sidebar</button>`),v=o(`<button type="button" class="sidebar-reopen svelte-q6hwt7" aria-label="Show sidebar"><span class="sidebar-reopen__label svelte-q6hwt7" aria-hidden="true">Show sidebar</span></button>`),y={hash:`svelte-q6hwt7`,code:`.sidebar-hide.svelte-q6hwt7 {display:block;padding:0.375rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.375rem;background:#fff;color:#4b5563;font-weight:500;font-size:0.75rem;line-height:1.25;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-hide.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen.svelte-q6hwt7 {display:flex;z-index:50;position:fixed;bottom:5rem;left:0;align-items:center;justify-content:center;padding:0.5rem 0.25rem;border:1px solid #e5e7eb;border-left:none;border-radius:0 0.375rem 0.375rem 0;background:#fff;box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1),
2
2
  0 1px 2px -1px rgb(0 0 0 / 0.1);color:#4b5563;font-weight:500;font-size:0.6rem;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-reopen.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen__label.svelte-q6hwt7 {letter-spacing:0.04em;text-orientation:mixed;writing-mode:vertical-rl;}
3
3
 
4
4
  @media (prefers-color-scheme: dark) {.sidebar-hide.svelte-q6hwt7 {border-color:#4b5563;background:#1f2937;color:#d1d5db;}.sidebar-hide.svelte-q6hwt7:hover {background:#374151;color:#f3f4f6;}.sidebar-reopen.svelte-q6hwt7 {border-color:#4b5563;background:#1f2937;color:#d1d5db;}.sidebar-reopen.svelte-q6hwt7:hover {background:#374151;color:#f3f4f6;}
@@ -0,0 +1 @@
1
+ import"./CsGLkWF6.js";import{i as e,t}from"./hJTLHSgs.js";import"./BaFk5JeE.js";import{n}from"./BJVrdkuG.js";import{t as r}from"./MqTIsSeD.js";var i=async e=>r(await(await fetch(`${e}/chatconfig`)).json());async function a({apiUrl:r,lang:a,forceTheme:o}){let s=e(await i(r));return{chatConfig:s,language:n(a,s.supportedLanguages),colorScheme:t(Object.keys(s.fullTheme))}}export{a as loadChatConfig};
@@ -1,4 +1,4 @@
1
- var e=`https://liipgpt.dev.cluster.liipgpt.ch/liipgpt`,t=`3.11.2`,n=new Map;async function r(e){let t=n.get(e);if(t)return t;let r=await fetch(e),i=r.url,a=await r.arrayBuffer(),o=await crypto.subtle.digest(`SHA-384`,a),s={versionedUrl:i,integrity:`sha384-${btoa(String.fromCharCode(...new Uint8Array(o)))}`};return n.set(e,s),s}var i=/\/\*\s*@host-class:\s*([a-zA-Z_-][\w-]*)\s*\*\//;function a(e,t=`your-custom-class-wrapper`){let n=e.match(i);if(n)return n[1];let r=e.match(/\.([a-zA-Z_-][\w-]*)\s+\.search-summary\b/);if(r)return r[1];let a=e.match(/liipgpt-search-summary\.([a-zA-Z_-][\w-]*)/);return a?a[1]:t}var o=`/* Host tokens — set on the custom element, inherited by .search-summary and descendants */
1
+ var e=`https://liipgpt.dev.cluster.liipgpt.ch/liipgpt`,t=`3.12.1`,n=new Map;async function r(e){let t=n.get(e);if(t)return t;let r=await fetch(e),i=r.url,a=await r.arrayBuffer(),o=await crypto.subtle.digest(`SHA-384`,a),s={versionedUrl:i,integrity:`sha384-${btoa(String.fromCharCode(...new Uint8Array(o)))}`};return n.set(e,s),s}var i=/\/\*\s*@host-class:\s*([a-zA-Z_-][\w-]*)\s*\*\//;function a(e,t=`your-custom-class-wrapper`){let n=e.match(i);if(n)return n[1];let r=e.match(/\.([a-zA-Z_-][\w-]*)\s+\.search-summary\b/);if(r)return r[1];let a=e.match(/liipgpt-search-summary\.([a-zA-Z_-][\w-]*)/);return a?a[1]:t}var o=`/* Host tokens — set on the custom element, inherited by .search-summary and descendants */
2
2
  liipgpt-search-summary.your-custom-class-wrapper {
3
3
  --search-summary-padding: 1rem;
4
4
  --search-summary-background: #fff;
@@ -0,0 +1,15 @@
1
+ import{A as e,At as t,Dt as n,Gt as r,J as i,K as a,L as o,Lt as s,Mt as c,Rt as l,St as u,Tt as d,U as f,Wt as p,X as m,Y as h,bt as g,i as _,mt as v,nt as y,o as b,ot as x,qt as S,tt as C,xt as w}from"./DK3lEKRX.js";var T=m(`<div class="chat-app__container"><div class="error-message svelte-14mj70v">Server is unreachable, please try later... <button class="error-message__retry-button svelte-14mj70v">Retry</button></div></div>`),E=m(` <!>`,1),D={hash:`svelte-14mj70v`,code:`
2
+ /* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-14mj70v {display:table;z-index:1000;width:auto;margin:2rem auto;padding:2rem;border-radius:2px;background:white;color:oklch(27.8% 0.033 256.848);font-family:-apple-system,
3
+ BlinkMacSystemFont,
4
+ avenir next,
5
+ avenir,
6
+ segoe ui,
7
+ helvetica neue,
8
+ helvetica,
9
+ Cantarell,
10
+ Ubuntu,
11
+ roboto,
12
+ noto,
13
+ arial,
14
+ sans-serif;}.error-message__retry-button.svelte-14mj70v {border:none;outline:none;background:none;font-size:1rem;text-decoration:underline;&:active {outline:none;}}`};function O(m,_){l(_,!0),e(m,D);let C=(e,t=S,n=S)=>{p();var o=E(),s=w(o),c=u(s),l=e=>{},d=e=>{var t=T(),a=g(t),o=u(g(a));r(a),r(t),y(`click`,o,()=>n()()),i(e,t)};f(c,e=>{k()?e(l):e(d,-1)}),v(e=>a(s,`${e??``} `),[()=>console.error(`Panic, uncaught error:
15
+ `,t())??``]),i(e,o)},O=b(_,`body`,7),k=b(_,`silent`,7),A=n(void 0),j=e=>{d(A,{error:e},!0)};var M={get body(){return O()},set body(e){O(e),c()},get silent(){return k()},set silent(e){k(e),c()}},N=h();return t(w(N),{get failed(){return C}},e=>{var t=h(),n=w(t),r=e=>{C(e,()=>x(A).error,()=>()=>{d(A,void 0)})},a=e=>{var t=h();o(w(t),O,()=>j),i(e,t)};f(n,e=>{x(A)?e(r):e(a,-1)}),i(e,t)}),i(m,N),s(M)}C([`click`]),_(O,{body:{},silent:{}},[],[],{mode:`open`});export{O as t};