@liip/liipgpt 2.5.3 → 2.6.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.
- package/button/liipgpt-button.iife.js +5 -5
- package/chat/liipgpt-chat.iife.js +34 -34
- package/config/index.cjs +3 -1
- package/config/index.d.ts +16 -0
- package/config/index.js +3 -1
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{DLxdoDhR.js → 0A6a-Oen.js} +21 -21
- package/configurator/_app/immutable/chunks/B0jaEcsT.js +1 -0
- package/configurator/_app/immutable/chunks/{CL3atIlV.js → B3jBMS6G.js} +1 -1
- package/configurator/_app/immutable/chunks/{BbgP8uyW.js → Bp7nV9v3.js} +1 -1
- package/configurator/_app/immutable/chunks/{DfXVvzbI.js → Carjelbg.js} +1 -1
- package/configurator/_app/immutable/chunks/{B-KsaaAH.js → G_rjVM0p.js} +1 -1
- package/configurator/_app/immutable/chunks/{G73YkWSR.js → VPh9UxyL.js} +1 -1
- package/configurator/_app/immutable/chunks/{CW-6PVWW.js → ZXGg3ezU.js} +1 -1
- package/configurator/_app/immutable/chunks/{Dl1JCgAN.js → v1VchEkS.js} +1 -1
- package/configurator/_app/immutable/entry/{app.DZvxIZjg.js → app.CpHfhl-E.js} +2 -2
- package/configurator/_app/immutable/entry/start.zSbGktLy.js +1 -0
- package/configurator/_app/immutable/nodes/{0.ByWoHaKL.js → 0.Cic9VhlA.js} +1 -1
- package/configurator/_app/immutable/nodes/{1.ExHBvsxI.js → 1.Bj0kR7fh.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.D0qzJpo_.js → 2.CFuUsGi-.js} +3 -3
- package/configurator/_app/immutable/nodes/{3.trEBTDkz.js → 3.C7NenYsU.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +7 -2
- package/index.d.ts +36 -0
- package/index.js +7 -2
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/3BR1cIvz.js +0 -1
- package/configurator/_app/immutable/entry/start.B5-5I-bD.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/
|
|
2
|
-
import{i as z,_ as ht,b as gt}from"../chunks/Buwjqn5O.js";import"../chunks/NZTpNUN0.js";import{c as Y,p as qe,f as q,s as e,e as i,t as V,b as l,d as Ce,v as te,r as a,g as ke,N as ae,u as W,o as Ft,aH as yt,I as j,a as S,G as r,H as E,aI as At,aJ as fe,K as mt,aK as bt,J as Ht,O as wt}from"../chunks/DC-s52-u.js";import{a as ne,s as K,k as xt,l as s,m as Ot,t as Gt,e as $,i as Q,I as ee,n as Rt,C as ft,o as Jt,p as Ut,S as o,q as Zt,P as _e,R as ye,r as xe,N as Nt,u as $t,v as Qt,w as Wt,c as Vt,M as Kt,x as Yt,y as _t,h as Xt,z as ea}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/VPh9UxyL.js","../chunks/NZTpNUN0.js","../chunks/DC-s52-u.js","../chunks/M-YrVFI7.js","../chunks/B0jaEcsT.js","../chunks/Buwjqn5O.js","../chunks/0A6a-Oen.js","../chunks/Bp7nV9v3.js","../chunks/B3jBMS6G.js","../chunks/Bu5Euvdy.js","../chunks/Carjelbg.js","../chunks/v1VchEkS.js","../chunks/ZXGg3ezU.js","../chunks/G_rjVM0p.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as z,_ as ht,b as gt}from"../chunks/Buwjqn5O.js";import"../chunks/NZTpNUN0.js";import{c as Y,p as qe,f as q,s as e,e as i,t as V,b as l,d as Ce,v as te,r as a,g as ke,N as ae,u as W,o as Ft,aH as yt,I as j,a as S,G as r,H as E,aI as At,aJ as fe,K as mt,aK as bt,J as Ht,O as wt}from"../chunks/DC-s52-u.js";import{a as ne,s as K,k as xt,l as s,m as Ot,t as Gt,e as $,i as Q,I as ee,n as Rt,C as ft,o as Jt,p as Ut,S as o,q as Zt,P as _e,R as ye,r as xe,N as Nt,u as $t,v as Qt,w as Wt,c as Vt,M as Kt,x as Yt,y as _t,h as Xt,z as ea}from"../chunks/0A6a-Oen.js";import{p as ie,s as ta,r as aa}from"../chunks/M-YrVFI7.js";import{g as ia}from"../chunks/B3jBMS6G.js";import{p as ra}from"../chunks/Bp7nV9v3.js";var na=q('<div class="swatch svelte-18q4g20"><div class="swatch__color svelte-18q4g20"></div> <div class="swatch__label svelte-18q4g20"> </div></div>');const oa={hash:"svelte-18q4g20",code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-18q4g20 {opacity:1;}}.swatch__color.svelte-18q4g20 {aspect-ratio:1;width:100%;}.swatch__label.svelte-18q4g20 {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
|
|
3
3
|
|
|
4
4
|
@media (min-width: 768px) {display:block;
|
|
5
5
|
}}`};function re(h,d){qe(d,!1),ne(h,oa);let f=ie(d,"name",12),c=ie(d,"key",12),L=ie(d,"value",12);var _=na(),T=i(_),B=e(T,2),F=i(B,!0);return a(B),a(_),V(()=>{K(_,"title",`Color ${c()}: ${L()}`),xt(T,`background-color: var(--color-${f()??""}-${c()??""});`),ke(F,c())}),l(h,_),Ce({get name(){return f()},set name(g){f(g),te()},get key(){return c()},set key(g){c(g),te()},get value(){return L()},set value(g){L(g),te()}})}Y(re,{name:{},key:{},value:{}},[],[],!0);var sa=q('<ol><li class="toast" data-type="error"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Error notification</div></div></li> <li class="toast" data-type="warning"><div data-icon=""><svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg></div> <div data-content=""><div data-title="">Warning notification</div></div></li> <li class="toast" data-type="success"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Success notification</div></div></li> <li class="toast" data-type="info"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Info notification</div></div></li></ol>');function kt(h){var d=sa();l(h,d)}Y(kt,{},[],[],!0);var la=q(`<h1>Title h1</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <em>Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus.</em> <strong>Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. <a href="https://www.google.com">Check it on google</a> . Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <p class="text-sm svelte-128qu17">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
|
|
@@ -27,4 +27,4 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
|
|
|
27
27
|
dolore magna aliqua. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span> <span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate">www.very-very-longer-url-to-test.ch</span></span> <span class="reference__breadcrumb transition-colors">Organisation</span> <span class="reference__breadcrumb transition-colors">Über uns</span></span></a></div> <h2>Menu</h2> <div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><div class="chat-app__header-content"><!> <!> <!> <!></div></div> <h3>Menu example</h3> <div class="context-box__content svelte-12rj1z4"><ul class="context-box__menu"><li><a class="context-box__menu-item transition-colors" href="https://www.liip.ch/de" target="_blank"><div aria-hidden="true" class="svg svg--externalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m18 6-12 12"></path><path d="m18 17v-11h-11"></path></g></svg></div> <span>Menü Beispiel</span></a></li></ul> <hr class="context-box__separator"/> <div class="context-box__title">Sprache auswählen</div> <ul class="context-box__menu"><li><button class="context-box__menu-item transition-colors active"><div aria-hidden="true" class="svg svg--internalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"></path><path d="m13 19 7-7-7-7"></path></g></svg></div> <span>Deutsch</span></button></li> <li><button class="context-box__menu-item transition-colors"><div aria-hidden="true" class="svg svg--internalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"></path><path d="m13 19 7-7-7-7"></path></g></svg></div> <span>English</span></button></li> <li><button class="context-box__menu-item transition-colors"><div aria-hidden="true" class="svg svg--internalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"></path><path d="m13 19 7-7-7-7"></path></g></svg></div> <span>Français</span></button></li> <li><button class="context-box__menu-item transition-colors"><div aria-hidden="true" class="svg svg--internalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"></path><path d="m13 19 7-7-7-7"></path></g></svg></div> <span>Italiano</span></button></li></ul> <hr class="context-box__separator"/> <div class="color-scheme-selector"><button class="color-scheme-selector__button transition-colors"><div aria-hidden="true" class="svg svg--lightMode"><svg viewBox="0 0 24 24" fill="none"><path d="M18.5625 12C18.5625 10.2595 17.8711 8.59032 16.6404 7.35961C15.4097 6.1289 13.7405 5.4375 12 5.4375C10.2595 5.4375 8.59032 6.1289 7.35961 7.35961C6.1289 8.59032 5.4375 10.2595 5.4375 12C5.4375 13.7405 6.1289 15.4097 7.35961 16.6404C8.59032 17.8711 10.2595 18.5625 12 18.5625C13.7405 18.5625 15.4097 17.8711 16.6404 16.6404C17.8711 15.4097 18.5625 13.7405 18.5625 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 20.4375V22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20.4375 12H22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 3.5625V1.6875" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.5625 12H1.6875" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6.03469 17.9663L4.70813 19.2929" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.9662 17.9663L19.2919 19.2919" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.9672 6.03461L19.2928 4.70898" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6.03375 6.03461L4.70813 4.70898" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></div> <span>Hell</span></button> <hr class="color-scheme-selector__separator"/> <button class="color-scheme-selector__button transition-colors color-scheme-selector__button--active"><div aria-hidden="true" class="svg svg--darkMode"><svg viewBox="0 0 24 24" fill="none"><path d="M17.4546 19.3866C19.2134 18.1336 20.4574 16.2846 20.9554 14.1833C20.27 14.9892 19.4098 15.6282 18.4403 16.0517C17.4708 16.4753 16.4176 16.6723 15.3605 16.6277C14.3035 16.5831 13.2706 16.2981 12.3402 15.7944C11.4098 15.2908 10.6065 14.5816 9.99136 13.7209C9.37618 12.8601 8.96532 11.8705 8.78999 10.8272C8.61467 9.78384 8.67951 8.71426 8.97957 7.69974C9.27963 6.68522 9.80703 5.75246 10.5217 4.97235C11.2363 4.19223 12.1194 3.5853 13.1038 3.19768C11.6649 3.0599 10.2141 3.2727 8.87542 3.81787C7.53673 4.36304 6.35002 5.22437 5.41679 6.32817C4.48357 7.43197 3.83159 8.7454 3.51665 10.1561C3.2017 11.5668 3.23314 13.0328 3.6083 14.4287C3.98345 15.8246 4.69115 17.1089 5.67085 18.1717C6.65055 19.2344 7.87311 20.0441 9.23394 20.5313C10.5948 21.0186 12.0534 21.169 13.485 20.9696C14.9166 20.7703 16.2787 20.2271 17.4546 19.3866Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></div> <span>Dunkel</span></button></div></div> <h2>Feedback Form</h2> <div class="dialog-content svelte-12rj1z4"><div class="dialog-header"><div class="dialog-title"><h3 class="h4">Feedback geben, um unseren Chatbot zu verbessern</h3></div> <button class="dialog-close"><span class="sr-only">Close</span> <div aria-hidden="true" class="svg svg--dismiss"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m5.743 5.742 12.514 12.514"></path><path d="m18.257 5.742-12.514 12.514"></path></g></svg></div></button></div> <div class="dialog-description" id="bits-92" data-dialog-description="" data-state="open"><form name="feedback-form" class="form"><!> <div class="form__item"><label class="form__label" for="feedback"> </label> <textarea id="feedback" class="input"></textarea></div> <div class="form__item"><label class="form__label" for="email"> </label> <input type="email" id="email" class="input"/></div></form></div></div> <h2>Tooltip</h2> <div class="tooltip-container" style="height: 100px"><div class="tooltip tooltip-top" style="">I'm a tooltip</div></div></div> <div class="container text-container"><hr/> <h2>Notifications</h2> <!></div> <div class="container text-container"><hr/> <h2>Chat</h2></div> <div class="chat-page__messages svelte-12rj1z4"></div> <div class="text-container container" style="padding-bottom: 200px;"><hr/> <h2>Typography</h2> <!> <hr/> <h2>Icons</h2> <div style="color: currentColor; display: flex; flex-wrap: wrap; gap: 1rem;"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div></div>`,3),ma=q('<main class="chat-app svelte-12rj1z4"><!> <div class="chat-app__container svelte-12rj1z4"><div class="chat-app__main svelte-12rj1z4"><div class="chat-app__portals"></div> <!></div></div></main>');const ba={hash:"svelte-12rj1z4",code:`.color-swatches.svelte-12rj1z4 {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-12rj1z4,
|
|
28
28
|
.chat-app__container.svelte-12rj1z4 {width:100%;height:100%;background:var(--body-background);}.chat-page__messages.svelte-12rj1z4 {min-height:auto;padding-bottom:200px;}.context-menu.svelte-12rj1z4 {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__container.svelte-12rj1z4 {overflow-y:auto;}.chat-app__main.svelte-12rj1z4 {overflow-x:hidden;overscroll-behavior-x:none;background:transparent;touch-action:pan-y;}.card.svelte-12rj1z4 {padding:1rem;border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);color:var(--card-color);&:hover {background:var(--card-hover-background);color:var(--card-hover-color);}}.dialog-content.svelte-12rj1z4 {position:relative;top:0;left:0;transform:none;}.references__container.svelte-12rj1z4 {background-color:var(--aside-background);}.context-box__content.svelte-12rj1z4 {position:relative;}`};function Ct(h,d){qe(d,!0),ne(h,ba);let f=ie(d,"data",7),c=E(()=>s.t);W(()=>{const t={lang:f().options.lang.value,forceTheme:f().options?.["force-theme"]?.value,apiUrl:f().options["api-url"].value,features:""};Ft(()=>s.init(t).catch(n=>{console.error("Failed to init chat logic",n)}))});const L=ca;var _=ma();yt(t=>{var n=j(),p=S(n);{var y=x=>{var v=pa(),u=S(v);$(u,17,()=>s.themeBase.fontURLs??[],Q,(O,G)=>{var D=ua();V(()=>K(D,"href",r(G))),l(O,D)});var k=e(u,2);ee(k,{id:"font-css",get css(){return s.themeBase.fontCSS}});var m=e(k,2);{let O=E(()=>Vt(s.theme));ee(m,{id:"theme-css",get css(){return r(O)}})}var w=e(m,2);ee(w,{id:"app-css",get css(){return Rt}});var P=e(w,2);ee(P,{id:"custom-css",get css(){return s.themeBase.customCSS}}),l(x,v)};z(p,x=>{s.initialized&&x(y)})}l(t,n)});let T;var B=i(_);{var F=t=>{var n=va(),p=i(n);ft(p,{get chatLogic(){return s}}),a(n),l(t,n)};z(B,t=>{s.initialized&&t(F)})}var g=e(B,2),M=i(g),A=i(M);Ot(A,(t,n)=>Gt?.(t,n),()=>"portals");var H=e(A,2);{var X=t=>{var n=ha();Jt(2,n,()=>Ut,()=>({duration:200,delay:300})),l(t,n)},oe=t=>{var n=ga(),p=S(n),y=e(i(p),8),x=i(y);{var v=b=>{var C=j(),R=S(C);$(R,17,()=>Object.entries(s.theme.colors.brand),Q,(J,U)=>{var I=E(()=>fe(r(U),2));let Z=()=>r(I)[0],N=()=>r(I)[1];re(J,{name:"brand",get key(){return Z()},get value(){return N()}})}),l(b,C)};z(x,b=>{s.theme.colors?.brand&&b(v)})}a(y);var u=e(y,4),k=i(u);{var m=b=>{var C=j(),R=S(C);$(R,17,()=>Object.entries(s.theme.colors.highlight),Q,(J,U)=>{var I=E(()=>fe(r(U),2));let Z=()=>r(I)[0],N=()=>r(I)[1];re(J,{name:"highlight",get key(){return Z()},get value(){return N()}})}),l(b,C)};z(k,b=>{s.theme?.colors?.highlight&&b(m)})}a(u);var w=e(u,4),P=i(w);{var O=b=>{var C=j(),R=S(C);$(R,17,()=>Object.entries(s.theme.colors.grey),Q,(J,U)=>{var I=E(()=>fe(r(U),2));let Z=()=>r(I)[0],N=()=>r(I)[1];re(J,{name:"grey",get key(){return Z()},get value(){return N()}})}),l(b,C)};z(P,b=>{s.theme?.colors?.grey&&b(O)})}a(w),a(p);var G=e(p,4),D=e(i(G),10),Se=i(D);o(Se,{name:"avatar",class:"introduction__avatar"});var St=e(Se,2);o(St,{name:"avatar",class:"message__bot-avatar"}),a(D);var ze=e(D,4);Zt(ze,{onSubmit:()=>{}});var se=e(ze,2),Le=i(se);_e(Le,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{},index:0});var Ie=e(Le,2);_e(Ie,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{},index:1});var zt=e(Ie,2);_e(zt,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{},index:2}),a(se);var le=e(se,4),je=i(le),Te=i(je);ye(Te,{reference:{url:"https://www.liip.ch/en/blog/liip-revolutioniert-das-lohnsystem",score:.8279685974121094,metadata:{kwLang:"de",titleAi:"Revolutionizing Salary Systems with the Liip Deal",keywords:["salary system","self-organization","transparency","diversity","inclusion","Swiss HR Award"],documentIdSalt:"en"},considered:!0,display:{card:{title:"Liip revolutioniert das Lohnsystem",description:"A digital agency has developed an innovative, transparent, and self-organized salary system called the 'Liip Deal', which emphasizes equality, self-evaluation, and agility, earning it the Swiss HR Award in the category of diversity and inclusion.",badge:"www.liip.ch"},listItem:{title:"Liip revolutioniert das Lohnsystem",badge:"www.very-very-longer-url-to-test.ch",breadcrumbs:["Organisation","Über uns","Philosophie"]}},referenceIndex:{all:11,used:4}}});var Be=e(Te,2);ye(Be,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!",description:"The article celebrates 15 years of a Swiss digital agency known for its innovative, sustainable, and client-focused approach, highlighting its history of growth, organizational evolution, and long-standing client relationships, while emphasizing its commitment to Swiss quality and environmental responsibility.",badge:"www.liip.ch"},listItem:{title:"15 years of Liip, and what a journey it's been!",badge:"www.liip.ch",breadcrumbs:["Organisation","Team"]}},referenceIndex:{all:12,used:2}}});var Lt=e(Be,2);ye(Lt,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!"},listItem:{title:"15 years of Liip, and what a journey it's been!"}},referenceIndex:{all:12,used:10}}}),a(je),a(le);var de=e(le,2),Me=i(de),ce=e(i(Me));xe(ce,"data-source",JSON.stringify({url:"https://www.liip.ch",considered:!0,referencesIndex:{all:3,used:1},display:{card:{title:"Reference tooltip example",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",breadcrumbs:["Organisation","Über uns","Philosophie"],badge:"www.liip.ch"}}})),xe(ce,"data-used-index","1"),xe(ce,"data-all-index","3"),ae(),a(Me),a(de);var ue=e(de,2),Pe=i(ue),Ee=i(Pe),It=e(i(Ee),2);o(It,{name:"externalLink",class:"reference__icon transition-colors"}),a(Ee),ae(4),a(Pe),a(ue);var pe=e(ue,4),De=i(pe),Fe=i(De);Nt(Fe,{});var Ae=e(Fe,2);ft(Ae,{get chatLogic(){return s}});var He=e(Ae,2);$t(He,{get logic(){return s}});var jt=e(He,2);Qt(jt,{onclick:()=>{}}),a(De),a(pe);var Oe=e(pe,8),Ge=e(i(Oe),2),ve=i(Ge),Re=i(ve);Wt(Re,{get classificationConfig(){return s.data.chatConfig.classification},impact:0,quality:0});var he=e(Re,2),ge=i(he),Tt=i(ge,!0);a(ge);var Bt=e(ge,2);a(he);var Je=e(he,2),me=i(Je),Mt=i(me,!0);a(me);var Pt=e(me,2);a(Je),a(ve),a(Ge),a(Oe),ae(4),a(G);var be=e(G,2),Et=e(i(be),4);kt(Et),a(be);var we=e(be,4);$(we,21,()=>L,Q,(b,C)=>{Kt(b,{get message(){return r(C)},get logic(){return s},onmessageupdate:()=>{},onbotmessageinit:()=>{}})}),a(we);var Ue=e(we,2),Ze=e(i(Ue),4);qt(Ze);var Ne=e(Ze,6),$e=i(Ne);o($e,{name:"predefinedQuestion"});var Qe=e($e,2);o(Qe,{name:"edit"});var We=e(Qe,2);o(We,{name:"newConversation"});var Ve=e(We,2);o(Ve,{name:"voteUp"});var Ke=e(Ve,2);o(Ke,{name:"voteDown"});var Ye=e(Ke,2);o(Ye,{name:"retry"});var Xe=e(Ye,2);o(Xe,{name:"message"});var et=e(Xe,2);o(et,{name:"thread"});var tt=e(et,2);o(tt,{name:"submit"});var at=e(tt,2);o(at,{name:"expand"});var it=e(at,2);o(it,{name:"help"});var rt=e(it,2);o(rt,{name:"attach"});var nt=e(rt,2);o(nt,{name:"record"});var ot=e(nt,2);o(ot,{name:"reward"});var st=e(ot,2);o(st,{name:"share"});var lt=e(st,2);o(lt,{name:"audio"});var dt=e(lt,2);o(dt,{name:"copy"});var ct=e(dt,2);o(ct,{name:"dismiss"});var ut=e(ct,2);o(ut,{name:"menu"});var pt=e(ut,2);o(pt,{name:"listUnordered"});var vt=e(pt,2);o(vt,{name:"lightMode"});var Dt=e(vt,2);o(Dt,{name:"darkMode"}),a(Ne),a(Ue),V(()=>{ke(Tt,r(c).feedbackFormMessage),K(Bt,"placeholder",r(c).feedbackFormMessagePlaceholder),ke(Mt,r(c).feedbackFormEmail),K(Pt,"placeholder",r(c).feedbackFormEmailPlaceholder)}),At("submit",ve,async()=>{}),l(t,n)};z(H,t=>{s.initialized?t(oe,!1):t(X)})}return a(M),a(g),a(_),V(t=>T=xt(_,"",T,t),[()=>({"color-scheme":s.colorScheme})]),l(h,_),Ce({get data(){return f()},set data(t){f(t),te()}})}Y(Ct,{data:{}},[],[],!0);var wa=q('<div id="chat-wrapper" class="svelte-1h9zc1h"><div></div> <!> <div></div></div>'),fa=q('<div id="preview" class="svelte-1h9zc1h"><iframe title="sidebar" id="sidebar" class="svelte-1h9zc1h"></iframe> <!></div>');const _a={hash:"svelte-1h9zc1h",code:`html,
|
|
29
29
|
body {width:100%;height:100%;margin:0;padding:0;}#sidebar.svelte-1h9zc1h {width:500px;height:100%;border:none;}#preview.svelte-1h9zc1h {display:flex;align-items:center;justify-content:center;width:100%;height:100%;}#chat-wrapper.svelte-1h9zc1h {container-name:preview-container;
|
|
30
|
-
/* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function ya(h,d){qe(d,!0),ne(h,_a);let f=aa(d,["$$slots","$$events","$$legacy","$$host"]),c=E(()=>d.data);W(()=>{window.onmessage=function(t){if(typeof t.data=="string"&&t.data.startsWith("liipgpt-url:")){const n=new URLSearchParams(t.data.replace("liipgpt-url:",""));ia("?"+n.toString(),{replaceState:!0})}}});const L=t=>`/build/${t}/liipgpt-${t}.iife.js`,_=async t=>{t==="build"&&(await import(L("chat")),await import(L("button"))),t==="dev"&&(await ht(()=>import("../chunks/
|
|
30
|
+
/* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function ya(h,d){qe(d,!0),ne(h,_a);let f=aa(d,["$$slots","$$events","$$legacy","$$host"]),c=E(()=>d.data);W(()=>{window.onmessage=function(t){if(typeof t.data=="string"&&t.data.startsWith("liipgpt-url:")){const n=new URLSearchParams(t.data.replace("liipgpt-url:",""));ia("?"+n.toString(),{replaceState:!0})}}});const L=t=>`/build/${t}/liipgpt-${t}.iife.js`,_=async t=>{t==="build"&&(await import(L("chat")),await import(L("button"))),t==="dev"&&(await ht(()=>import("../chunks/VPh9UxyL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),await ht(()=>import("../chunks/G_rjVM0p.js"),__vite__mapDeps([13,1,2,3,12,5,6,7,8,9,10,11]),import.meta.url)),t==="server"&&(import(_t(d.data.options,"chat")),import(_t(d.data.options,"button")))};let T="server",B=E(()=>d.data.options?.["preview-mode"]?.value??T);W(()=>{_(r(B))});const F=`./sidebar${ra.url.search}`;let g=mt(void 0),M=mt(void 0);const A=(t,n)=>{const p=document.createElement("script"),y=document.createTextNode(n);p.appendChild(y),t.replaceChildren(p)};W(()=>{r(g)&&A(r(g),r(c).options.CHAT_CONFIG_OVERRIDE.value||"")}),W(()=>{r(M)&&A(r(M),r(c).options.onclosechat.value||"")});var H=fa();yt(t=>{var n=j(),p=S(n);{var y=x=>{var v=j(),u=S(v);{var k=w=>{bt.title="LiipGPT Configurator | Components"},m=w=>{bt.title="LiipGPT Configurator"};z(u,w=>{r(c).options["show-components"].value?w(k):w(m,!1)},!0)}l(x,v)};z(p,x=>{x(y,!1)})}l(t,n)});var X=i(H),oe=e(X,2);Yt(oe,()=>r(c),t=>{var n=j(),p=S(n);{var y=v=>{var u=j(),k=S(u);Ht(k,{onerror:m=>console.error("Rendering error of components",m)},m=>{Ct(m,ta(()=>f))}),l(v,u)},x=v=>{var u=wa(),k=i(u);gt(k,P=>wt(g,P),()=>r(g));var m=e(k,2);Xt(m,()=>ea(r(c).options));var w=e(m,2);gt(w,P=>wt(M,P),()=>r(M)),a(u),l(v,u)};z(p,v=>{r(c).options["show-components"].value?v(y):v(x,!1)})}l(t,n)}),a(H),V(()=>K(X,"src",F)),l(h,H),Ce()}Y(ya,{},[],[],!0);export{ya as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../chunks/NZTpNUN0.js";import{p as it,s as Ei,r as _i}from"../chunks/M-YrVFI7.js";import{M as ko,c as Tt,p as Gt,f as Se,s as De,e as ve,r as me,N as bo,t as Ue,G as Ne,K as Vi,g as ot,b as $e,d as Xt,v as nt,O as uo,I as fo,a as Zt,aL as Ni,aH as Oi,aM as Fi,H as po,aJ as Wi}from"../chunks/DC-s52-u.js";import{A as ho,D as mo,s as Ge,E as go,e as yo,i as Ui,F as Di,G as Bi,m as Li,H as Mi,a as Ii,z as Ri}from"../chunks/
|
|
1
|
+
import"../chunks/NZTpNUN0.js";import{p as it,s as Ei,r as _i}from"../chunks/M-YrVFI7.js";import{M as ko,c as Tt,p as Gt,f as Se,s as De,e as ve,r as me,N as bo,t as Ue,G as Ne,K as Vi,g as ot,b as $e,d as Xt,v as nt,O as uo,I as fo,a as Zt,aL as Ni,aH as Oi,aM as Fi,H as po,aJ as Wi}from"../chunks/DC-s52-u.js";import{A as ho,D as mo,s as Ge,E as go,e as yo,i as Ui,F as Di,G as Bi,m as Li,H as Mi,a as Ii,z as Ri}from"../chunks/0A6a-Oen.js";import"../chunks/B0jaEcsT.js";import{b as Hi,i as rt}from"../chunks/Buwjqn5O.js";import{g as qi}from"../chunks/B3jBMS6G.js";import{p as Pi}from"../chunks/Bp7nV9v3.js";var vo={},wo;function Yi(){return wo||(wo=1,(()=>{var O="4.1.5",M=92,D=47,_=42,te=34,be=39,I=58,ie=59,J=10,X=32,ne=9,P=123,Z=125,G=40,ge=41,we=91,ye=93,de=45,xe=64,He=33;function fe(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let r=[],o=[],t=[],i=null,c=null,s="",u="",l;for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);if(m===M)s+=e.slice(p,p+2),p+=1;else if(m===D&&e.charCodeAt(p+1)===_){let h=p;for(let w=p+2;w<e.length;w++)if(l=e.charCodeAt(w),l===M)w+=1;else if(l===_&&e.charCodeAt(w+1)===D){p=w+1;break}let v=e.slice(h,p+1);v.charCodeAt(2)===He&&o.push(sr(v.slice(2,-2)))}else if(m===be||m===te){let h=p;for(let v=p+1;v<e.length;v++)if(l=e.charCodeAt(v),l===M)v+=1;else if(l===m){p=v;break}else{if(l===ie&&e.charCodeAt(v+1)===J)throw new Error(`Unterminated string: ${e.slice(h,v+1)+String.fromCharCode(m)}`);if(l===J)throw new Error(`Unterminated string: ${e.slice(h,v)+String.fromCharCode(m)}`)}s+=e.slice(h,p+1)}else{if((m===X||m===J||m===ne)&&(l=e.charCodeAt(p+1))&&(l===X||l===J||l===ne))continue;if(m===J){if(s.length===0)continue;l=s.charCodeAt(s.length-1),l!==X&&l!==J&&l!==ne&&(s+=" ")}else if(m===de&&e.charCodeAt(p+1)===de&&s.length===0){let h="",v=p,w=-1;for(let b=p+2;b<e.length;b++)if(l=e.charCodeAt(b),l===M)b+=1;else if(l===D&&e.charCodeAt(b+1)===_){for(let A=b+2;A<e.length;A++)if(l=e.charCodeAt(A),l===M)A+=1;else if(l===_&&e.charCodeAt(A+1)===D){b=A+1;break}}else if(w===-1&&l===I)w=s.length+b-v;else if(l===ie&&h.length===0){s+=e.slice(v,b),p=b;break}else if(l===G)h+=")";else if(l===we)h+="]";else if(l===P)h+="}";else if((l===Z||e.length-1===b)&&h.length===0){p=b-1,s+=e.slice(v,b);break}else(l===ge||l===ye||l===Z)&&h.length>0&&e[b]===h[h.length-1]&&(h=h.slice(0,-1));let k=Oe(s,w);if(!k)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(k):r.push(k),s=""}else if(m===ie&&s.charCodeAt(0)===xe)c=Ke(s),i?i.nodes.push(c):r.push(c),s="",c=null;else if(m===ie&&u[u.length-1]!==")"){let h=Oe(s);if(!h)throw s.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${s.trim()}\``);i?i.nodes.push(h):r.push(h),s=""}else if(m===P&&u[u.length-1]!==")")u+="}",c=ae(s.trim()),i&&i.nodes.push(c),t.push(i),i=c,s="",c=null;else if(m===Z&&u[u.length-1]!==")"){if(u==="")throw new Error("Missing opening {");if(u=u.slice(0,-1),s.length>0)if(s.charCodeAt(0)===xe)c=Ke(s),i?i.nodes.push(c):r.push(c),s="",c=null;else{let v=s.indexOf(":");if(i){let w=Oe(s,v);if(!w)throw new Error(`Invalid declaration: \`${s.trim()}\``);i.nodes.push(w)}}let h=t.pop()??null;h===null&&i&&r.push(i),i=h,s="",c=null}else if(m===G)u+=")",s+="(";else if(m===ge){if(u[u.length-1]!==")")throw new Error("Missing opening (");u=u.slice(0,-1),s+=")"}else{if(s.length===0&&(m===X||m===J||m===ne))continue;s+=String.fromCharCode(m)}}}if(s.charCodeAt(0)===xe&&r.push(Ke(s)),u.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return o.length>0?o.concat(r):r}function Ke(e,r=[]){for(let o=5;o<e.length;o++){let t=e.charCodeAt(o);if(t===X||t===G){let i=e.slice(0,o).trim(),c=e.slice(o).trim();return R(i,c,r)}}return R(e.trim(),"",r)}function Oe(e,r=e.indexOf(":")){if(r===-1)return null;let o=e.indexOf("!important",r+1);return n(e.slice(0,r).trim(),e.slice(r+1,o===-1?e.length:o).trim(),o!==-1)}function je(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),o=r.length,t=-1,i,c="",s=r.charCodeAt(0);if(o===1&&s===45)return"\\"+r;for(;++t<o;){if(i=r.charCodeAt(t),i===0){c+="�";continue}if(i>=1&&i<=31||i===127||t===0&&i>=48&&i<=57||t===1&&i>=48&&i<=57&&s===45){c+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){c+=r.charAt(t);continue}c+="\\"+r.charAt(t)}return c}function pe(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var Ae=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function st(e,r){return(Ae.get(r)??[]).some(o=>e===o||e.startsWith(`${o}-`))}var Ct=class{constructor(e=new Map,r=new Set([])){this.values=e,this.keyframes=r}prefix=null;add(e,r,o=0){if(e.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${e}\``);e==="--*"?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(o&4){let t=this.values.get(e);if(t&&!(t.options&4))return}r==="initial"?this.values.delete(e):this.values.set(e,{value:r,options:o})}keysInNamespaces(e){let r=[];for(let o of e){let t=`${o}-`;for(let i of this.values.keys())i.startsWith(t)&&i.indexOf("--",2)===-1&&(st(i,o)||r.push(i.slice(t.length)))}return r}get(e){for(let r of e){let o=this.values.get(r);if(o)return o.value}return null}hasDefault(e){return(this.getOptions(e)&4)===4}getOptions(e){return e=pe(this.#r(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#r(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,r){let o=Ae.get(e)??[];e:for(let t of this.values.keys())if(t.startsWith(e)){if(r!==0&&(this.getOptions(t)&r)!==r)continue;for(let i of o)if(t.startsWith(i))continue e;this.values.delete(t)}}#e(e,r){for(let o of r){let t=e!==null?`${o}-${e}`:o;if(!this.values.has(t))if(e!==null&&e.includes(".")){if(t=`${o}-${e.replaceAll(".","_")}`,!this.values.has(t))continue}else continue;if(!st(t,o))return t}return null}#t(e){let r=this.values.get(e);if(!r)return null;let o=null;return r.options&2&&(o=r.value),`var(${je(this.prefixKey(e))}${o?`, ${o}`:""})`}markUsedVariable(e){let r=pe(this.#r(e)),o=this.values.get(r);if(!o)return!1;let t=o.options&16;return o.options|=16,!t}resolve(e,r,o=0){let t=this.#e(e,r);if(!t)return null;let i=this.values.get(t);return(o|i.options)&1?i.value:this.#t(t)}resolveValue(e,r){let o=this.#e(e,r);return o?this.values.get(o).value:null}resolveWith(e,r,o=[]){let t=this.#e(e,r);if(!t)return null;let i={};for(let s of o){let u=`${t}${s}`,l=this.values.get(u);l&&(l.options&1?i[s]=l.value:i[s]=this.#t(u))}let c=this.values.get(t);return c.options&1?[c.value,i]:[this.#t(t),i]}namespace(e){let r=new Map,o=`${e}-`;for(let[t,i]of this.values)t===e?r.set(null,i.value):t.startsWith(`${o}-`)?r.set(t.slice(e.length),i.value):t.startsWith(o)&&r.set(t.slice(o.length),i.value);return r}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},le=class extends Map{constructor(e){super(),this.factory=e}get(e){let r=super.get(e);return r===void 0&&(r=this.factory(e,this),this.set(e,r)),r}};function Ce(e){return{kind:"word",value:e}}function re(e,r){return{kind:"function",value:e,nodes:r}}function qe(e){return{kind:"separator",value:e}}function ke(e,r,o=null){for(let t=0;t<e.length;t++){let i=e[t],c=!1,s=0,u=r(i,{parent:o,replaceWith(l){c||(c=!0,Array.isArray(l)?l.length===0?(e.splice(t,1),s=0):l.length===1?(e[t]=l[0],s=1):(e.splice(t,1,...l),s=l.length):e[t]=l)}})??0;if(c){u===0?t--:t+=s-1;continue}if(u===2||u!==1&&i.kind==="function"&&ke(i.nodes,r,i)===2)return 2}}function Q(e){let r="";for(let o of e)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+Q(o.nodes)+")"}return r}var Fe=92,St=41,Xe=58,Qt=44,zo=34,er=61,tr=62,rr=60,or=10,To=40,jo=39,ar=47,ir=32,nr=9;function oe(e){e=e.replaceAll(`\r
|
|
4
4
|
`,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1760217522372"}
|
package/configurator/index.html
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
7
|
|
|
8
|
-
<link rel="modulepreload" href="./_app/immutable/entry/start.
|
|
9
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
8
|
+
<link rel="modulepreload" href="./_app/immutable/entry/start.zSbGktLy.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/B3jBMS6G.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/Bu5Euvdy.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/DC-s52-u.js">
|
|
12
|
-
<link rel="modulepreload" href="./_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.CpHfhl-E.js">
|
|
13
13
|
<link rel="modulepreload" href="./_app/immutable/chunks/Buwjqn5O.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/NZTpNUN0.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/M-YrVFI7.js">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_1rmuvma = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.zSbGktLy.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.CpHfhl-E.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
7
|
|
|
8
|
-
<link rel="modulepreload" href="./_app/immutable/entry/start.
|
|
9
|
-
<link rel="modulepreload" href="./_app/immutable/chunks/
|
|
8
|
+
<link rel="modulepreload" href="./_app/immutable/entry/start.zSbGktLy.js">
|
|
9
|
+
<link rel="modulepreload" href="./_app/immutable/chunks/B3jBMS6G.js">
|
|
10
10
|
<link rel="modulepreload" href="./_app/immutable/chunks/Bu5Euvdy.js">
|
|
11
11
|
<link rel="modulepreload" href="./_app/immutable/chunks/DC-s52-u.js">
|
|
12
|
-
<link rel="modulepreload" href="./_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="./_app/immutable/entry/app.CpHfhl-E.js">
|
|
13
13
|
<link rel="modulepreload" href="./_app/immutable/chunks/Buwjqn5O.js">
|
|
14
14
|
<link rel="modulepreload" href="./_app/immutable/chunks/NZTpNUN0.js">
|
|
15
15
|
<link rel="modulepreload" href="./_app/immutable/chunks/M-YrVFI7.js">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_1rmuvma = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.zSbGktLy.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.CpHfhl-E.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/index.cjs
CHANGED
|
@@ -10618,7 +10618,9 @@ var translationSchema = exports_external.object({
|
|
|
10618
10618
|
classificationTitle: exports_external.string(),
|
|
10619
10619
|
selectLanguage: exports_external.string(),
|
|
10620
10620
|
lightMode: exports_external.string(),
|
|
10621
|
-
darkMode: exports_external.string()
|
|
10621
|
+
darkMode: exports_external.string(),
|
|
10622
|
+
termsTitle: exports_external.string().optional(),
|
|
10623
|
+
termsContent: exports_external.string().optional()
|
|
10622
10624
|
});
|
|
10623
10625
|
var allLanguages = ["en", "de", "fr", "it"];
|
|
10624
10626
|
var languagesSchema = exports_external.enum(allLanguages);
|
|
@@ -11359,7 +11361,10 @@ class LiipGPTClientPrimitive {
|
|
|
11359
11361
|
options2.onMessage?.(data);
|
|
11360
11362
|
},
|
|
11361
11363
|
onError: (event2) => {
|
|
11362
|
-
console.error("sse-error:", event2);
|
|
11364
|
+
console.error(" sse-error:", event2);
|
|
11365
|
+
if ("data" in event2 && !event2.data && "responseCode" in event2 && event2.responseCode === 0) {
|
|
11366
|
+
return;
|
|
11367
|
+
}
|
|
11363
11368
|
chatResultBuilder.pushError("sse-error");
|
|
11364
11369
|
}
|
|
11365
11370
|
});
|
package/index.d.ts
CHANGED
|
@@ -2144,6 +2144,8 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<[
|
|
|
2144
2144
|
selectLanguage: z.ZodString;
|
|
2145
2145
|
lightMode: z.ZodString;
|
|
2146
2146
|
darkMode: z.ZodString;
|
|
2147
|
+
termsTitle: z.ZodOptional<z.ZodString>;
|
|
2148
|
+
termsContent: z.ZodOptional<z.ZodString>;
|
|
2147
2149
|
}, "strip", z.ZodTypeAny, {
|
|
2148
2150
|
lightMode: string;
|
|
2149
2151
|
darkMode: string;
|
|
@@ -2191,6 +2193,8 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<[
|
|
|
2191
2193
|
openButtonTitle?: string | undefined;
|
|
2192
2194
|
openButtonDescription?: string | undefined;
|
|
2193
2195
|
aboutThisChat?: string | undefined;
|
|
2196
|
+
termsTitle?: string | undefined;
|
|
2197
|
+
termsContent?: string | undefined;
|
|
2194
2198
|
}, {
|
|
2195
2199
|
lightMode: string;
|
|
2196
2200
|
darkMode: string;
|
|
@@ -2238,6 +2242,8 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<[
|
|
|
2238
2242
|
openButtonTitle?: string | undefined;
|
|
2239
2243
|
openButtonDescription?: string | undefined;
|
|
2240
2244
|
aboutThisChat?: string | undefined;
|
|
2245
|
+
termsTitle?: string | undefined;
|
|
2246
|
+
termsContent?: string | undefined;
|
|
2241
2247
|
}>>;
|
|
2242
2248
|
export declare const completeChatConfigSchema: z.ZodObject<{
|
|
2243
2249
|
/** Shows cards of predefined questions on the start page */
|
|
@@ -6540,6 +6546,8 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
6540
6546
|
selectLanguage: z.ZodOptional<z.ZodString>;
|
|
6541
6547
|
lightMode: z.ZodOptional<z.ZodString>;
|
|
6542
6548
|
darkMode: z.ZodOptional<z.ZodString>;
|
|
6549
|
+
termsTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
6550
|
+
termsContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
6543
6551
|
}, "strip", z.ZodTypeAny, {
|
|
6544
6552
|
lightMode?: string | undefined;
|
|
6545
6553
|
darkMode?: string | undefined;
|
|
@@ -6587,6 +6595,8 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
6587
6595
|
classificationThankYou?: string | undefined;
|
|
6588
6596
|
classificationTitle?: string | undefined;
|
|
6589
6597
|
selectLanguage?: string | undefined;
|
|
6598
|
+
termsTitle?: string | undefined;
|
|
6599
|
+
termsContent?: string | undefined;
|
|
6590
6600
|
}, {
|
|
6591
6601
|
lightMode?: string | undefined;
|
|
6592
6602
|
darkMode?: string | undefined;
|
|
@@ -6634,6 +6644,8 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
6634
6644
|
classificationThankYou?: string | undefined;
|
|
6635
6645
|
classificationTitle?: string | undefined;
|
|
6636
6646
|
selectLanguage?: string | undefined;
|
|
6647
|
+
termsTitle?: string | undefined;
|
|
6648
|
+
termsContent?: string | undefined;
|
|
6637
6649
|
}>>;
|
|
6638
6650
|
/** href of the standalone liipgpt-button component */
|
|
6639
6651
|
buttonHref: z.ZodOptional<z.ZodString>;
|
|
@@ -7082,6 +7094,8 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
7082
7094
|
classificationThankYou?: string | undefined;
|
|
7083
7095
|
classificationTitle?: string | undefined;
|
|
7084
7096
|
selectLanguage?: string | undefined;
|
|
7097
|
+
termsTitle?: string | undefined;
|
|
7098
|
+
termsContent?: string | undefined;
|
|
7085
7099
|
}>>;
|
|
7086
7100
|
menu?: Partial<Record<"en" | "de" | "fr" | "it", {
|
|
7087
7101
|
url: string;
|
|
@@ -7535,6 +7549,8 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
7535
7549
|
classificationThankYou?: string | undefined;
|
|
7536
7550
|
classificationTitle?: string | undefined;
|
|
7537
7551
|
selectLanguage?: string | undefined;
|
|
7552
|
+
termsTitle?: string | undefined;
|
|
7553
|
+
termsContent?: string | undefined;
|
|
7538
7554
|
}>>;
|
|
7539
7555
|
menu?: Partial<Record<"en" | "de" | "fr" | "it", {
|
|
7540
7556
|
url: string;
|
|
@@ -11850,6 +11866,8 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
11850
11866
|
selectLanguage: z.ZodOptional<z.ZodString>;
|
|
11851
11867
|
lightMode: z.ZodOptional<z.ZodString>;
|
|
11852
11868
|
darkMode: z.ZodOptional<z.ZodString>;
|
|
11869
|
+
termsTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11870
|
+
termsContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11853
11871
|
}, "strip", z.ZodTypeAny, {
|
|
11854
11872
|
lightMode?: string | undefined;
|
|
11855
11873
|
darkMode?: string | undefined;
|
|
@@ -11897,6 +11915,8 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
11897
11915
|
classificationThankYou?: string | undefined;
|
|
11898
11916
|
classificationTitle?: string | undefined;
|
|
11899
11917
|
selectLanguage?: string | undefined;
|
|
11918
|
+
termsTitle?: string | undefined;
|
|
11919
|
+
termsContent?: string | undefined;
|
|
11900
11920
|
}, {
|
|
11901
11921
|
lightMode?: string | undefined;
|
|
11902
11922
|
darkMode?: string | undefined;
|
|
@@ -11944,6 +11964,8 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
11944
11964
|
classificationThankYou?: string | undefined;
|
|
11945
11965
|
classificationTitle?: string | undefined;
|
|
11946
11966
|
selectLanguage?: string | undefined;
|
|
11967
|
+
termsTitle?: string | undefined;
|
|
11968
|
+
termsContent?: string | undefined;
|
|
11947
11969
|
}>>>;
|
|
11948
11970
|
buttonHref: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11949
11971
|
addQueryToUrlParams: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -12402,6 +12424,8 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
12402
12424
|
classificationThankYou?: string | undefined;
|
|
12403
12425
|
classificationTitle?: string | undefined;
|
|
12404
12426
|
selectLanguage?: string | undefined;
|
|
12427
|
+
termsTitle?: string | undefined;
|
|
12428
|
+
termsContent?: string | undefined;
|
|
12405
12429
|
}>> | undefined;
|
|
12406
12430
|
buttonHref?: string | undefined;
|
|
12407
12431
|
addQueryToUrlParams?: boolean | undefined;
|
|
@@ -12855,6 +12879,8 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
12855
12879
|
classificationThankYou?: string | undefined;
|
|
12856
12880
|
classificationTitle?: string | undefined;
|
|
12857
12881
|
selectLanguage?: string | undefined;
|
|
12882
|
+
termsTitle?: string | undefined;
|
|
12883
|
+
termsContent?: string | undefined;
|
|
12858
12884
|
}>> | undefined;
|
|
12859
12885
|
buttonHref?: string | undefined;
|
|
12860
12886
|
addQueryToUrlParams?: boolean | undefined;
|
|
@@ -17148,6 +17174,8 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
17148
17174
|
selectLanguage: z.ZodOptional<z.ZodString>;
|
|
17149
17175
|
lightMode: z.ZodOptional<z.ZodString>;
|
|
17150
17176
|
darkMode: z.ZodOptional<z.ZodString>;
|
|
17177
|
+
termsTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
17178
|
+
termsContent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
17151
17179
|
}, "strip", z.ZodTypeAny, {
|
|
17152
17180
|
lightMode?: string | undefined;
|
|
17153
17181
|
darkMode?: string | undefined;
|
|
@@ -17195,6 +17223,8 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
17195
17223
|
classificationThankYou?: string | undefined;
|
|
17196
17224
|
classificationTitle?: string | undefined;
|
|
17197
17225
|
selectLanguage?: string | undefined;
|
|
17226
|
+
termsTitle?: string | undefined;
|
|
17227
|
+
termsContent?: string | undefined;
|
|
17198
17228
|
}, {
|
|
17199
17229
|
lightMode?: string | undefined;
|
|
17200
17230
|
darkMode?: string | undefined;
|
|
@@ -17242,6 +17272,8 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
17242
17272
|
classificationThankYou?: string | undefined;
|
|
17243
17273
|
classificationTitle?: string | undefined;
|
|
17244
17274
|
selectLanguage?: string | undefined;
|
|
17275
|
+
termsTitle?: string | undefined;
|
|
17276
|
+
termsContent?: string | undefined;
|
|
17245
17277
|
}>>>;
|
|
17246
17278
|
buttonHref: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
17247
17279
|
addQueryToUrlParams: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -17700,6 +17732,8 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
17700
17732
|
classificationThankYou?: string | undefined;
|
|
17701
17733
|
classificationTitle?: string | undefined;
|
|
17702
17734
|
selectLanguage?: string | undefined;
|
|
17735
|
+
termsTitle?: string | undefined;
|
|
17736
|
+
termsContent?: string | undefined;
|
|
17703
17737
|
}>> | undefined;
|
|
17704
17738
|
buttonHref?: string | undefined;
|
|
17705
17739
|
addQueryToUrlParams?: boolean | undefined;
|
|
@@ -18153,6 +18187,8 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
18153
18187
|
classificationThankYou?: string | undefined;
|
|
18154
18188
|
classificationTitle?: string | undefined;
|
|
18155
18189
|
selectLanguage?: string | undefined;
|
|
18190
|
+
termsTitle?: string | undefined;
|
|
18191
|
+
termsContent?: string | undefined;
|
|
18156
18192
|
}>> | undefined;
|
|
18157
18193
|
buttonHref?: string | undefined;
|
|
18158
18194
|
addQueryToUrlParams?: boolean | undefined;
|
package/index.js
CHANGED
|
@@ -10582,7 +10582,9 @@ var translationSchema = exports_external.object({
|
|
|
10582
10582
|
classificationTitle: exports_external.string(),
|
|
10583
10583
|
selectLanguage: exports_external.string(),
|
|
10584
10584
|
lightMode: exports_external.string(),
|
|
10585
|
-
darkMode: exports_external.string()
|
|
10585
|
+
darkMode: exports_external.string(),
|
|
10586
|
+
termsTitle: exports_external.string().optional(),
|
|
10587
|
+
termsContent: exports_external.string().optional()
|
|
10586
10588
|
});
|
|
10587
10589
|
var allLanguages = ["en", "de", "fr", "it"];
|
|
10588
10590
|
var languagesSchema = exports_external.enum(allLanguages);
|
|
@@ -11323,7 +11325,10 @@ class LiipGPTClientPrimitive {
|
|
|
11323
11325
|
options2.onMessage?.(data);
|
|
11324
11326
|
},
|
|
11325
11327
|
onError: (event2) => {
|
|
11326
|
-
console.error("sse-error:", event2);
|
|
11328
|
+
console.error(" sse-error:", event2);
|
|
11329
|
+
if ("data" in event2 && !event2.data && "responseCode" in event2 && event2.responseCode === 0) {
|
|
11330
|
+
return;
|
|
11331
|
+
}
|
|
11327
11332
|
chatResultBuilder.pushError("sse-error");
|
|
11328
11333
|
}
|
|
11329
11334
|
});
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{av as lt,o as ct,aN as Re,p as te,I as Q,a as q,b as l,d as re,v as C,L as de,G as t,H as j,f as T,e as v,r as c,F as Se,c as ae,O as D,K as G,ab as At,s as E,aL as Ft,t as J,aI as pe,g as he,M as Dt,u as ve,aO as Ke,aH as Lt}from"./DC-s52-u.js";import{i as W,c as ge,b as be}from"./Buwjqn5O.js";import{J as Rt,K as se,L as we,O as Pe,Q as Be,T as Bt,U as It,V as We,W as qt,X as Ht,Y as je,Z as Qe,_ as zt,$ as $t,a0 as at,a1 as Kt,a2 as Wt,a3 as Fe,a4 as jt,l as u,a5 as Qt,a6 as Ut,a7 as Vt,a8 as Yt,o as ce,a9 as Ue,aa as Gt,S as Ie,ab as Jt,ac as Ne,w as Xt,D as Zt,ad as nt,h as qe,s as ye,e as ke,m as Ae,t as Le,q as dt,A as Oe,M as er,ae as tr,af as Ve,k as He,x as ut,i as xe,p as Ye,ag as rr,R as st,ah as ar,ai as nr,P as sr,a as or,I as Te,n as vt,aj as ir,ak as ot,al as lr,am as cr,an as dr,ao as ur,c as vr,ap as fr,aq as hr,N as gr,u as pr,C as _r,v as mr}from"./DLxdoDhR.js";import{p as k,r as Me,s as ft}from"./M-YrVFI7.js";import{t as br}from"./DfXVvzbI.js";import{O as yr}from"./Dl1JCgAN.js";class Ge{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,n){var r=this.#e.get(e)||new Set;return r.add(n),this.#e.set(e,r),this.#a().observe(e,this.#r),()=>{var a=this.#e.get(e);a.delete(n),a.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#a(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var n of e){Ge.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var Cr=new Ge({box:"border-box"});function ht(S,e,n){var r=Cr.observe(S,()=>n(S[e]));lt(()=>(ct(()=>n(S[e])),r))}var kr=T("<div><!></div>");function gt(S,e){const n=Re();te(e,!0);let r=k(e,"id",23,()=>we(n)),a=k(e,"children",7),s=k(e,"child",7),o=k(e,"ref",15,null),i=Me(e,["$$slots","$$events","$$legacy","$$host","id","children","child","ref"]);const f=Rt.create({id:se.with(()=>r()),ref:se.with(()=>o(),_=>o(_))}),g=j(()=>Be(i,f.props));var w=Q(),P=q(w);{var M=_=>{var m=Q(),y=q(m);de(y,s,()=>({props:t(g)})),l(_,m)},N=_=>{var m=kr();Pe(m,()=>({...t(g)}));var y=v(m);de(y,()=>a()??Se),c(m),l(_,m)};W(P,_=>{s()?_(M):_(N,!1)})}return l(S,w),re({get id(){return r()},set id(_=we(n)){r(_),C()},get children(){return a()},set children(_){a(_),C()},get child(){return s()},set child(_){s(_),C()},get ref(){return o()},set ref(_=null){o(_),C()}})}ae(gt,{id:{},children:{},child:{},ref:{}},[],[],!0);function pt(S,e){te(e,!0);let n=k(e,"children",7),r=k(e,"defaultPortalTo",7),a=k(e,"defaultLocale",7);Bt({defaultPortalTo:se.with(()=>r()),defaultLocale:se.with(()=>a())});var s=Q(),o=q(s);return de(o,()=>n()??Se),l(S,s),re({get children(){return n()},set children(i){n(i),C()},get defaultPortalTo(){return r()},set defaultPortalTo(i){r(i),C()},get defaultLocale(){return a()},set defaultLocale(i){a(i),C()}})}ae(pt,{children:{},defaultPortalTo:{},defaultLocale:{}},[],[],!0);const Je=$t({component:"collapsible",parts:["root","content","trigger"]}),Xe=new It("Collapsible.Root");class Ze{static create(e){return Xe.set(new Ze(e))}opts;attachment;#e=G(null);get contentNode(){return t(this.#e)}set contentNode(e){D(this.#e,e,!0)}#t=G(void 0);get contentId(){return t(this.#t)}set contentId(e){D(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=We(this.opts.ref),new Kt({ref:se.with(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=j(()=>({id:this.opts.id.current,"data-state":Qe(this.opts.open.current),"data-disabled":je(this.opts.disabled.current),[Je.root]:"",...this.attachment}));get props(){return t(this.#r)}set props(e){D(this.#r,e)}}class et{static create(e){return new et(e,Xe.get())}opts;root;attachment;#e=j(()=>this.opts.forceMount.current||this.root.opts.open.current);get present(){return t(this.#e)}set present(e){D(this.#e,e)}#t;#r=G(!1);#a=G(0);#n=G(0);constructor(e,n){this.opts=e,this.root=n,D(this.#r,n.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=We(this.opts.ref,r=>this.root.contentNode=r),at.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),At(()=>{const r=requestAnimationFrame(()=>{D(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),at([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Wt(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const a=r.getBoundingClientRect();if(D(this.#n,a.height,!0),D(this.#a,a.width,!0),!t(this.#r)){const{animationName:s,transitionDuration:o}=this.#t;r.style.transitionDuration=o,r.style.animationName=s}})})}#s=j(()=>({open:this.root.opts.open.current}));get snippetProps(){return t(this.#s)}set snippetProps(e){D(this.#s,e)}#o=j(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":t(this.#n)?`${t(this.#n)}px`:void 0,"--bits-collapsible-content-width":t(this.#a)?`${t(this.#a)}px`:void 0},"data-state":Qe(this.root.opts.open.current),"data-disabled":je(this.root.opts.disabled.current),[Je.content]:"",...this.attachment}));get props(){return t(this.#o)}set props(e){D(this.#o,e)}}class tt{static create(e){return new tt(e,Xe.get())}opts;root;attachment;#e=j(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,n){this.opts=e,this.root=n,this.attachment=We(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!t(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){t(this.#e)||(e.key===qt||e.key===Ht)&&(e.preventDefault(),this.root.toggleOpen())}#t=j(()=>({id:this.opts.id.current,type:"button",disabled:t(this.#e),"aria-controls":this.root.contentId,"aria-expanded":zt(this.root.opts.open.current),"data-state":Qe(this.root.opts.open.current),"data-disabled":je(t(this.#e)),[Je.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return t(this.#t)}set props(e){D(this.#t,e)}}var wr=T("<div><!></div>");function _t(S,e){const n=Re();te(e,!0);let r=k(e,"children",7),a=k(e,"child",7),s=k(e,"id",23,()=>we(n)),o=k(e,"ref",15,null),i=k(e,"open",15,!1),f=k(e,"disabled",7,!1),g=k(e,"onOpenChange",7,Fe),w=k(e,"onOpenChangeComplete",7,Fe),P=Me(e,["$$slots","$$events","$$legacy","$$host","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const M=Ze.create({open:se.with(()=>i(),d=>{i(d),g()(d)}),disabled:se.with(()=>f()),id:se.with(()=>s()),ref:se.with(()=>o(),d=>o(d)),onOpenChangeComplete:se.with(()=>w())}),N=j(()=>Be(P,M.props));var _=Q(),m=q(_);{var y=d=>{var x=Q(),b=q(x);de(b,a,()=>({props:t(N)})),l(d,x)},h=d=>{var x=wr();Pe(x,()=>({...t(N)}));var b=v(x);de(b,()=>r()??Se),c(x),l(d,x)};W(m,d=>{a()?d(y):d(h,!1)})}return l(S,_),re({get children(){return r()},set children(d){r(d),C()},get child(){return a()},set child(d){a(d),C()},get id(){return s()},set id(d=we(n)){s(d),C()},get ref(){return o()},set ref(d=null){o(d),C()},get open(){return i()},set open(d=!1){i(d),C()},get disabled(){return f()},set disabled(d=!1){f(d),C()},get onOpenChange(){return g()},set onOpenChange(d=Fe){g(d),C()},get onOpenChangeComplete(){return w()},set onOpenChangeComplete(d=Fe){w(d),C()}})}ae(_t,{children:{},child:{},id:{},ref:{},open:{},disabled:{},onOpenChange:{},onOpenChangeComplete:{}},[],[],!0);var Pr=T("<div><!></div>");function mt(S,e){const n=Re();te(e,!0);let r=k(e,"child",7),a=k(e,"ref",15,null),s=k(e,"forceMount",7,!1),o=k(e,"children",7),i=k(e,"id",23,()=>we(n)),f=Me(e,["$$slots","$$events","$$legacy","$$host","child","ref","forceMount","children","id"]);const g=et.create({id:se.with(()=>i()),forceMount:se.with(()=>s()),ref:se.with(()=>a(),w=>a(w))});return jt(S,{forceMount:!0,get open(){return g.present},get ref(){return g.opts.ref},presence:(P,M)=>{let N=()=>M?.().present;var _=Q();const m=j(()=>Be(f,g.props,{hidden:s()?void 0:!N()}));var y=q(_);{var h=x=>{var b=Q(),U=q(b);{let z=j(()=>({...g.snippetProps,props:t(m)}));de(U,r,()=>t(z))}l(x,b)},d=x=>{var b=Pr();Pe(b,()=>({...t(m)}));var U=v(b);de(U,()=>o()??Se),c(b),l(x,b)};W(y,x=>{r()?x(h):x(d,!1)})}l(P,_)},$$slots:{presence:!0}}),re({get child(){return r()},set child(w){r(w),C()},get ref(){return a()},set ref(w=null){a(w),C()},get forceMount(){return s()},set forceMount(w=!1){s(w),C()},get children(){return o()},set children(w){o(w),C()},get id(){return i()},set id(w=we(n)){i(w),C()}})}ae(mt,{child:{},ref:{},forceMount:{},children:{},id:{}},[],[],!0);var xr=T("<button><!></button>");function bt(S,e){const n=Re();te(e,!0);let r=k(e,"children",7),a=k(e,"child",7),s=k(e,"ref",15,null),o=k(e,"id",23,()=>we(n)),i=k(e,"disabled",7,!1),f=Me(e,["$$slots","$$events","$$legacy","$$host","children","child","ref","id","disabled"]);const g=tt.create({id:se.with(()=>o()),ref:se.with(()=>s(),m=>s(m)),disabled:se.with(()=>i())}),w=j(()=>Be(f,g.props));var P=Q(),M=q(P);{var N=m=>{var y=Q(),h=q(y);de(h,a,()=>({props:t(w)})),l(m,y)},_=m=>{var y=xr();Pe(y,()=>({...t(w)}));var h=v(y);de(h,()=>r()??Se),c(y),l(m,y)};W(M,m=>{a()?m(N):m(_,!1)})}return l(S,P),re({get children(){return r()},set children(m){r(m),C()},get child(){return a()},set child(m){a(m),C()},get ref(){return s()},set ref(m=null){s(m),C()},get id(){return o()},set id(m=we(n)){o(m),C()},get disabled(){return i()},set disabled(m=!1){i(m),C()}})}ae(bt,{children:{},child:{},ref:{},id:{},disabled:{}},[],[],!0);var Sr=T("<div></div>"),Or=T('<span class="sr-only">Close</span> <!>',1),Mr=T('<div><div class="dialog-header"><!> <!></div> <!></div>'),Nr=T("<!> <!>",1);function yt(S,e){te(e,!0);let n=k(e,"open",7),r=k(e,"content",7),a=k(e,"title",7),s=k(e,"onClose",7);const o={duration:Number(u.theme.components.dialog.custom?.transitionDuration)||200,delay:Number(u.theme.components.dialog.custom?.transitionDelay)||0,y:Number(u.theme.components.dialog.custom?.transitionY)||10},i=P=>{P||s()()};var f=Q(),g=q(f);{var w=P=>{var M=Q(),N=q(M);ge(N,()=>Yt,(_,m)=>{m(_,{get open(){return n()},onOpenChange:i,children:(y,h)=>{var d=Q(),x=q(d);ge(x,()=>Qt,(b,U)=>{U(b,{get to(){return u.targets.portals},children:(z,L)=>{var R=Nr(),O=q(R);{const K=(I,H)=>{let X=()=>H?.().props,Z=()=>H?.().open;var ne=Q(),oe=q(ne);{var p=A=>{var B=Sr();Pe(B,()=>({...X(),class:"dialog-overlay"})),ce(3,B,()=>Ue,()=>o),l(A,B)};W(oe,A=>{Z()&&A(p)})}l(I,ne)};ge(O,()=>Ut,(I,H)=>{H(I,{forceMount:!0,child:K,$$slots:{child:!0}})})}var $=E(O,2);{const K=(I,H)=>{let X=()=>H?.().props,Z=()=>H?.().open;var ne=Q(),oe=q(ne);{var p=A=>{var B=Mr();Pe(B,()=>({...X(),class:"dialog-content"}));var Y=v(B),ue=v(Y);ge(ue,()=>Gt,(ee,ie)=>{ie(ee,{class:"dialog-title",children:(le,F)=>{var V=Q(),me=q(V);de(me,()=>a()??Se),l(le,V)},$$slots:{default:!0}})});var _e=E(ue,2);ge(_e,()=>Jt,(ee,ie)=>{ie(ee,{class:"dialog-close",children:(le,F)=>{var V=Or(),me=E(q(V),2);Ie(me,{name:"dismiss"}),l(le,V)},$$slots:{default:!0}})}),c(Y);var fe=E(Y,2);ge(fe,()=>gt,(ee,ie)=>{ie(ee,{class:"dialog-description",children:(le,F)=>{var V=Q(),me=q(V);de(me,r),l(le,V)},$$slots:{default:!0}})}),c(B),ce(3,B,()=>Ne,()=>o),l(A,B)};W(oe,A=>{Z()&&A(p)})}l(I,ne)};ge($,()=>Vt,(I,H)=>{H(I,{forceMount:!0,child:K,$$slots:{child:!0}})})}l(z,R)},$$slots:{default:!0}})}),l(y,d)},$$slots:{default:!0}})}),l(P,M)};W(g,P=>{u.targets.portals&&P(w)})}return l(S,f),re({get open(){return n()},set open(P){n(P),C()},get content(){return r()},set content(P){r(P),C()},get title(){return a()},set title(P){a(P),C()},get onClose(){return s()},set onClose(P){s(P),C()}})}ae(yt,{open:{},content:{},title:{},onClose:{}},[],[],!0);var Er=T('<form name="feedback-form" class="form"><!> <div class="form__item"><label class="form__label" for="feedback"> </label> <textarea id="feedback" class="input"></textarea></div> <div class="form__item"><label class="form__label" for="email"> </label> <input type="email" id="email" class="input"/></div> <button type="submit" class="btn btn--primary"> </button></form>');function Ct(S,e){te(e,!0);let n=j(()=>u.t),r=k(e,"logic",7),a=G(""),s=G(""),o=G(void 0),i=G(void 0),f=j(()=>t(o)!==void 0||t(i)!==void 0||t(a)!=="");{const g=M=>{var N=Q(),_=q(N);qe(_,()=>t(n).feedbackFormTitle),l(M,N)},w=M=>{var N=Er(),_=v(N);Xt(_,{get classificationConfig(){return r().data.chatConfig.classification},get impact(){return t(o)},set impact(O){D(o,O,!0)},get quality(){return t(i)},set quality(O){D(i,O,!0)}});var m=E(_,2),y=v(m),h=v(y,!0);c(y);var d=E(y,2);Ft(d),c(m);var x=E(m,2),b=v(x),U=v(b,!0);c(b);var z=E(b,2);Zt(z),c(x);var L=E(x,2),R=v(L,!0);c(L),c(N),J(()=>{he(h,t(n).feedbackFormMessage),ye(d,"placeholder",t(n).feedbackFormMessagePlaceholder),he(U,t(n).feedbackFormEmail),ye(z,"placeholder",t(n).feedbackFormEmailPlaceholder),L.disabled=!t(f),he(R,t(n).send)}),pe("submit",N,async O=>{O.preventDefault(),r().data.chatConfig.classification?await r().submitFeedback({email:t(s),message:t(a),classification:{impact:t(o),quality:t(i)}}):await r().submitFeedback({email:t(s),message:t(a)}),D(o,void 0),D(i,void 0),D(a,""),r().closeFeedback()}),nt(d,()=>t(a),O=>D(a,O)),nt(z,()=>t(s),O=>D(s,O)),l(M,N)};let P=j(()=>!!r().data.feedbackOpenedId||r().data.feedbackOpenedConversation);yt(S,{get open(){return t(P)},get onClose(){return r().closeFeedback},title:g,content:w,$$slots:{title:!0,content:!0}})}return re({get logic(){return r()},set logic(g){r(g),C()}})}ae(Ct,{logic:{}},[],[],!0);let De;function Tr(S,e,n,r,a){De&&cancelAnimationFrame(De);const s=S instanceof Window?window.scrollY:S[r],o=performance.now();function i(f){const g=f-o,w=Math.min(g/n,1),P=a(w),M=s+(e-s)*P;S instanceof Window?window.scrollTo({top:M,behavior:"instant"}):S[r]=M,w<1?De=requestAnimationFrame(i):S.dispatchEvent(new CustomEvent("scrollcomplete"))}De=requestAnimationFrame(i)}var Ar=()=>u.openConversationFeedback(),Fr=T('<div class="chat-page__give-feedback"><button class="btn btn--primary"> </button></div>'),Dr=(S,e)=>{e(500)},Lr=T('<div class="chat-page__footer-text"><!></div>'),Rr=T('<section class="chat-page"><!> <div class="chat-page__body"><div class="chat-page__messages"></div> <div class="chat-page__buttons"><!></div></div> <div class="chat-page__footer"><div class="container"><div class="chat-page__footer-content"><button><span class="sr-only"> </span> <!></button> <!> <!></div></div></div></section>');function kt(S,e){te(e,!0);let n=j(()=>u.t),r=G(!1),a,s,o,i,f;const g=90,w=p=>{f&&Tr(f,f.scrollHeight-f.clientHeight,p,"scrollTop",tr)},P=()=>{if(!f)return;const p=f.scrollHeight-f.scrollTop-f.clientHeight<g;D(r,!p)},M=()=>{P()},N=p=>{if(p.altKey&&p.code==="KeyR"){p.preventDefault();const A=u.data.history.findLast(B=>B.type==="user")?.message;u.goto({name:"start-page",prefill:A})}},_=()=>{setTimeout(()=>{const{chatAppContainer:p,chatAppHeader:A,chatPageMessages:B,chatPageLastUserMessage:Y}=u.targets;if(p&&A&&B&&Y){const ue=p.clientHeight-A.offsetHeight-i.offsetHeight-o.offsetHeight-Y.offsetHeight-parseInt(getComputedStyle(B).gap)*2;s.style.setProperty("--last-bot-message-min-height",`${ue}px`)}w(1e3)},50)},m=()=>{u.onSubmit(!0)};ve(()=>{a&&(f=a.closest(".chat-app__main"))}),ve(()=>{if(f)return f.addEventListener("scroll",P),()=>{f.removeEventListener("scroll",P)}});var y=Rr();pe("resize",Ke,M),pe("keypress",Ke,N);var h=v(y);Ct(h,{get logic(){return u}});var d=E(h,2),x=v(d);ke(x,21,()=>u.data.history,p=>p?.id??p?.time,(p,A)=>{er(p,{get message(){return t(A)},onmessageupdate:P,onbotmessageinit:_,get logic(){return u}})}),c(x),be(x,p=>s=p,()=>s),Ae(x,(p,A)=>Le?.(p,A),()=>"chatPageMessages");var b=E(x,2),U=v(b);{var z=p=>{var A=Fr(),B=v(A);B.__click=[Ar];var Y=v(B,!0);c(B),c(A),J(()=>he(Y,t(n).giveFeedback)),l(p,A)};W(U,p=>{u.data.chatConfig.showOverallFeedbackButton&&p(z)})}c(b),be(b,p=>o=p,()=>o),c(d);var L=E(d,2),R=v(L),O=v(R),$=v(O);$.__click=[Dr,w];let K;var I=v($),H=v(I,!0);c(I);var X=E(I,2);Ie(X,{name:"chevronDown"}),c($);var Z=E($,2);dt(Z,{onSubmit:m,class:"chat-page__chat-input"});var ne=E(Z,2);{var oe=p=>{var A=Lr(),B=v(A);qe(B,()=>t(n).chatFooterText),c(A),l(p,A)};W(ne,p=>{t(n).chatFooterText!==void 0&&p(oe)})}c(O),c(R),c(L),be(L,p=>i=p,()=>i),c(y),be(y,p=>a=p,()=>a),J(p=>{K=Oe($,1,"chat-page__scroll-to-bottom btn btn--secondary btn--square",null,K,p),he(H,t(n).scrollToBottom)},[()=>({"chat-page__scroll-to-bottom--hidden":!t(r)})]),l(S,y),re()}Dt(["click"]);ae(kt,{},[],[],!0);var Br=T("<div><div><!></div></div>");function wt(S,e){te(e,!0);let n=k(e,"class",7),r=k(e,"children",7),a=G(void 0);var s=Br();let o;var i=v(s),f=v(i);return de(f,()=>r()??Se),c(i),c(s),J(g=>{Oe(s,1,Ve(["animated-height",n()])),o=He(s,"",o,g)},[()=>({height:t(a)?`${t(a)}px`:"auto"})]),ht(i,"clientHeight",g=>D(a,g)),l(S,s),re({get class(){return n()},set class(g){n(g),C()},get children(){return r()},set children(g){r(g),C()}})}ae(wt,{class:{},children:{}},[],[],!0);var Ir=T("<div><!></div>"),qr=T('<div class="references__toggle-title"> </div> <!>',1),Hr=T('<div><div class="references__items"></div></div>'),zr=T("<!> <!>",1),$r=T("<div><!></div>"),Kr=T('<div><div class="references__items"></div> <!></div>'),Wr=T('<div><div class="references__container"><div class="references__transition"><!></div></div></div>');function Pt(S,e){te(e,!0);let n=k(e,"class",7),r=j(()=>u.data.history.filter(N=>N.type==="bot").find(N=>N.id===u.data.currentReferencesAsideId)?.references),a=j(()=>u.data.currentReferencesAsideId),s=G(void 0),o=G(!1),i=G(void 0);ve(()=>{t(a)&&D(o,!1),D(s,t(a),!0)}),ve(()=>{t(o)&&setTimeout(()=>{t(i)?.scrollIntoView({behavior:"smooth"})},200)});const f={delay:200,duration:500,easing:rr,y:50};var g=Wr(),w=v(g),P=v(w),M=v(P);return ut(M,()=>u.data.currentReferencesAsideId,N=>{var _=Kr(),m=v(_);ke(m,21,()=>t(r)?.used,xe,(d,x)=>{var b=Ir(),U=v(b);st(U,{get reference(){return t(x)}}),c(b),ce(1,b,()=>Ne,()=>({...f,delay:0})),l(d,b)}),c(m);var y=E(m,2);{var h=d=>{var x=$r(),b=v(x);wt(b,{children:(U,z)=>{var L=Q(),R=q(L);ge(R,()=>_t,(O,$)=>{$(O,{get class(){return`references__further ${n()??""}`},get open(){return t(o)},set open(K){D(o,K,!0)},children:(K,I)=>{var H=zr(),X=q(H);ge(X,()=>bt,(ne,oe)=>{oe(ne,{class:"references__toggle transition-colors",children:(p,A)=>{var B=qr(),Y=q(B),ue=v(Y,!0);c(Y);var _e=E(Y,2);Ie(_e,{name:"chevronDown",class:"references__toggle-icon"}),J(()=>he(ue,u.t.referencesFurtherTitle)),l(p,B)},$$slots:{default:!0}})});var Z=E(X,2);{const ne=(oe,p)=>{let A=()=>p?.().props,B=()=>p?.().open;var Y=Q(),ue=q(Y);{var _e=fe=>{var ee=Hr();Pe(ee,()=>({...A(),class:"references__container"}));var ie=v(ee);ke(ie,21,()=>t(r)?.unused,xe,(le,F)=>{st(le,{get reference(){return t(F)}})}),c(ie),c(ee),be(ee,le=>D(i,le),()=>t(i)),ce(1,ee,()=>Ne,()=>({...f,delay:0})),ce(2,ee,()=>Ue,()=>({duration:100})),l(fe,ee)};W(ue,fe=>{B()&&fe(_e)})}l(oe,Y)};ge(Z,()=>mt,(oe,p)=>{p(oe,{forceMount:!0,child:ne,$$slots:{child:!0}})})}l(K,H)},$$slots:{default:!0}})}),l(U,L)},$$slots:{default:!0}}),c(x),ce(1,x,()=>Ne,()=>f),l(d,x)};W(y,d=>{t(r)?.unused&&t(r).unused.length>0&&d(h)})}c(_),ce(2,_,()=>Ye,()=>({duration:200,delay:t(a)?0:200})),ce(1,_,()=>Ne,()=>t(s)?f:{duration:0,y:0}),l(N,_)}),c(P),c(w),c(g),J(()=>Oe(g,1,Ve(["references",n()]))),l(S,g),re({get class(){return n()},set class(N){n(N),C()}})}ae(Pt,{class:{}},[],[],!0);var jr=T('<div><!> <h1 class="introduction__title"><!></h1></div>');function xt(S,e){te(e,!0);let n=j(()=>u.t),r=k(e,"class",7);var a=jr(),s=v(a);ar(s,{class:"introduction__avatar",isLarge:!0});var o=E(s,2),i=v(o);return qe(i,()=>t(n).introductionTitle),c(o),c(a),J(()=>Oe(a,1,`introduction ${r()??""}`)),l(S,a),re({get class(){return r()},set class(f){r(f),C()}})}ae(xt,{class:{}},[],[],!0);var Qr=T("<div></div>");function St(S,e){te(e,!0);let n=k(e,"class",7),r=Me(e,["$$slots","$$events","$$legacy","$$host","class"]);var a=Qr();return Pe(a,s=>({class:`predefined-questions ${n()??""}`,...r,[nr]:s}),[()=>({"predefined-questions--pii-padding":u.data.questionHasPii})]),ke(a,21,()=>u.data.predefinedQuestions,xe,(s,o,i)=>{sr(s,{get predefinedQuestion(){return t(o)},get onSubmit(){return u.onStartConversation},index:i})}),c(a),l(S,a),re({get class(){return n()},set class(s){n(s),C()}})}ae(St,{class:{}},[],[],!0);var Ur=T('<div class="introduction-disclaimer text-container fly-in" style="--fly-in-id: 3;"><!></div>'),Vr=T("<section><!> <!> <!> <!></section>");function Ot(S,e){te(e,!0);let n=j(()=>u.t),r=G(!1);ve(()=>{D(r,!0)});var a=Vr();let s;var o=v(a);xt(o,{class:"start-page__introduction fly-in"});var i=E(o,2);dt(i,{get onSubmit(){return u.onStartConversation},class:"start-page__chat-input fly-in",style:"--fly-in-id: 1;",isStartPage:!0});var f=E(i,2);{var g=M=>{St(M,{class:"start-page__predefined-questions fly-in",style:"--fly-in-id: 2;"})};W(f,M=>{u.data.predefinedQuestions&&u.data.predefinedQuestions.length&&M(g)})}var w=E(f,2);{var P=M=>{var N=Ur(),_=v(N);qe(_,()=>t(n).introductionDisclaimer),c(N),l(M,N)};W(w,M=>{t(n).introductionDisclaimer&&M(P)})}c(a),J(M=>s=Oe(a,1,"start-page container",null,s,M),[()=>({mounted:t(r)})]),l(S,a),re()}ae(Ot,{},[],[],!0);function it(S,{delay:e=0,duration:n=200,easing:r=o=>o,baseScale:a=0,transformOrigin:s="bottom right"}={}){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return{delay:0,duration:0,css:()=>`opacity: 1; transform: scale(1); transform-origin: ${s};`};const i=getComputedStyle(S),f=+i.opacity,g=i.transform.match(/scale\(([0-9.]+)\)/),w=g?+g[1]:1,P=1-a;return{delay:e,duration:n,css:M=>{const N=r(M),_=N*w*P+a;return`opacity: ${N*f}; transform: scale(${_}); transform-origin: ${s};`}}}var Yr=T('<div class="loader-container svelte-jdm8uf"><svg width="40" height="40" viewBox="0 0 24 24"><circle cx="4" cy="12" r="3"><animate id="spinner_qFRN" begin="0;spinner_OcgL.end+0.25s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle><circle cx="12" cy="12" r="3"><animate begin="spinner_qFRN.begin+0.1s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle><circle cx="20" cy="12" r="3"><animate id="spinner_OcgL" begin="spinner_qFRN.begin+0.2s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle></svg></div>');const Gr={hash:"svelte-jdm8uf",code:".loader-container.svelte-jdm8uf {display:flex;z-index:var(--z-index-loader);position:absolute;top:0;right:0;bottom:0;left:0;align-items:center;justify-content:center;background-color:#fff;}"};function Mt(S,e){te(e,!0),or(S,Gr);let n=k(e,"color",7),r=k(e,"background",7);var a=Yr(),s=v(a);return c(a),J(()=>{He(a,r()?`background: ${r()};`:""),ye(s,"fill",n()??"rgba(127, 127, 127, 0.3)")}),l(S,a),re({get color(){return n()},set color(o){n(o),C()},get background(){return r()},set background(o){r(o),C()}})}ae(Mt,{color:{},background:{}},[],[],!0);var Jr=T('<div class="flyout__content"><!></div>'),Xr=T('<div><div class="flyout__body"><!></div></div>'),Zr=T('<!> <div class="chat-app__container"><div class="chat-app__loader-container"><!></div></div>',1);function Nt(S,e){te(e,!0);let n=k(e,"children",7),r=k(e,"loaderColor",7),a=k(e,"loaderBackground",7),s=k(e,"flyout",7),o=k(e,"flyoutClass",7),i=k(e,"flyoutStyle",7),f=k(e,"onCloseChat",7),g=k(e,"onError",7),w=Me(e,["$$slots","$$events","$$legacy","$$host","children","loaderColor","loaderBackground","flyout","flyoutClass","flyoutStyle","onCloseChat","onError"]),P;const M=h=>{ve(()=>{const d=x=>{P=x};return h.addEventListener("click",d),()=>{h.removeEventListener("click",d),P=void 0}})};var N=Q();pe("click",Ke,h=>{h!==P&&s()&&f()()});var _=q(N);{var m=h=>{var d=Q(),x=q(d);{var b=z=>{},U=z=>{var L=Xr(),R=v(L),O=v(R);{var $=I=>{var H=Jr(),X=v(H);de(X,n),c(H),ce(1,H,()=>it,()=>({delay:0,duration:500,easing:ot,baseScale:.3})),ce(2,H,()=>it,()=>({delay:0,duration:300,easing:ot,baseScale:.7})),l(I,H)},K=I=>{yr(I,ft({get onError(){return g()},onclick:H=>{H.stopPropagation(),u.openFlyout()},buttonClass:"flyout__open-button"},()=>w))};W(O,I=>{u.data.flyoutIsOpen?I($):I(K,!1)})}c(R),Ae(R,I=>M?.(I)),c(L),J(()=>{He(L,i()),Oe(L,1,Ve(["flyout",o()]))}),l(z,L)};W(x,z=>{u.initialized?z(U,!1):z(b)})}l(h,d)},y=h=>{var d=Q(),x=q(d);{var b=z=>{var L=Zr(),R=q(L);Te(R,{id:"app-css",get css(){return vt}});var O=E(R,2),$=v(O),K=v($);ir(K,e,"loader",{},I=>{Mt(I,{get background(){return a()},get color(){return r()}})}),c($),c(O),ce(2,O,()=>Ye,()=>({duration:200,delay:300})),l(z,L)},U=z=>{var L=Q(),R=q(L);de(R,n),l(z,L)};W(x,z=>{u.initialized?z(U,!1):z(b)})}l(h,d)};W(_,h=>{s()?h(m):h(y,!1)})}return l(S,N),re({get children(){return n()},set children(h){n(h),C()},get loaderColor(){return r()},set loaderColor(h){r(h),C()},get loaderBackground(){return a()},set loaderBackground(h){a(h),C()},get flyout(){return s()},set flyout(h){s(h),C()},get flyoutClass(){return o()},set flyoutClass(h){o(h),C()},get flyoutStyle(){return i()},set flyoutStyle(h){i(h),C()},get onCloseChat(){return f()},set onCloseChat(h){f(h),C()},get onError(){return g()},set onError(h){g(h),C()}})}ae(Nt,{children:{},loaderColor:{},loaderBackground:{},flyout:{},flyoutClass:{},flyoutStyle:{},onCloseChat:{},onError:{}},["loader"],[],!0);var ea=T('<span class="reference__description line-clamp line-clamp--6"> </span>'),ta=T('<span class="reference__breadcrumb transition-colors"> </span>'),ra=T('<span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></span>'),aa=T('<div class="reference-number__content-wrapper" role="tooltip"><a class="reference-number__content transition-colors no-link-styling" target="_blank" rel="noopener noreferrer"><span class="reference__header"><h3 class="reference__title line-clamp line-clamp--2 h4"> </h3> <!></span> <!> <!></a></div>'),na=T('<div class="reference-number"><a target="_blank" rel="noopener noreferrer" class="reference-number__trigger transition-colors no-link-styling"> </a> <!></div>');function sa(S,e){te(e,!0);let n=j(()=>u.t),r=k(e,"usedNumber",7),a=k(e,"source",7),s=G(!1),o,i,f=G(void 0);const g=a();let w=j(()=>g.display.card.title),P=j(()=>g.display.card.description),M=j(()=>g.display.card.badge),N=j(()=>g.display.card.breadcrumbs);const _={duration:Number(u.theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(u.theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(u.theme.components.referenceNumberContent.custom?.transitionY)||10},m=async()=>{if(!i||!t(f))return;const{x:R,y:O}=await lr(i,t(f),{placement:"top",middleware:[cr(8),dr(),ur({padding:8})]});Object.assign(t(f).style,{left:`${R}px`,top:`${O}px`})},y=()=>{o&&(clearTimeout(o),o=void 0)},h=()=>{y(),o=setTimeout(()=>{D(s,!1)},100)},d=()=>{y(),D(s,!0)};ve(()=>{t(s)&&m()});var x=na(),b=v(x),U=v(b,!0);c(b),be(b,R=>i=R,()=>i);var z=E(b,2);{var L=R=>{var O=aa(),$=v(O),K=v($),I=v(K),H=v(I,!0);c(I);var X=E(I,2);Ie(X,{name:"externalLink",class:"reference__icon transition-colors"}),c(K);var Z=E(K,2);{var ne=A=>{var B=ea(),Y=v(B,!0);c(B),J(()=>he(Y,t(P))),l(A,B)};W(Z,A=>{t(P)&&A(ne)})}var oe=E(Z,2);{var p=A=>{var B=ra(),Y=v(B),ue=v(Y),_e=v(ue,!0);c(ue),c(Y);var fe=E(Y,2);{var ee=ie=>{var le=Q(),F=q(le);ke(F,17,()=>t(N),xe,(V,me)=>{var Ee=ta(),ze=v(Ee,!0);c(Ee),J(()=>he(ze,t(me))),l(V,Ee)}),l(ie,le)};W(fe,ie=>{t(N)&&ie(ee)})}c(B),J(()=>he(_e,t(M))),l(A,B)};W(oe,A=>{t(M)&&A(p)})}c($),c(O),be(O,A=>D(f,A),()=>t(f)),J(()=>{ye($,"href",g.url),he(H,t(w))}),pe("mouseenter",O,d),pe("mouseleave",O,h),ce(3,O,()=>Ne,()=>_),l(R,O)};W(z,R=>{t(s)&&R(L)})}return c(x),J(()=>{ye(b,"href",g.url),ye(b,"aria-label",`${t(n).referenceLink??""}: ${t(w)??""}`),he(U,r())}),pe("mouseenter",b,d),pe("mouseleave",b,h),pe("focus",b,()=>D(s,!0)),pe("blur",b,()=>D(s,!1)),l(S,x),re({get usedNumber(){return r()},set usedNumber(R){r(R),C()},get source(){return a()},set source(R){a(R),C()}})}customElements.define("liipgpt-reference-number",ae(sa,{source:{attribute:"data-source",type:"Object"},refNumber:{attribute:"data-all-index",type:"String"},usedNumber:{attribute:"data-used-index",type:"String"}},[],[],!1));var oa=T('<link rel="stylesheet"/>'),ia=T('<link rel="stylesheet"/>'),la=T("<!> <!> <!>",1),ca=T('<link rel="stylesheet"/>'),da=T("<!> <!> <!> <!>",1),ua=T('<div class="chat-app__page-transition"><!></div>'),va=T('<div class="chat-app__container"><div class="chat-app__main"><div class="chat-app__portals"></div> <div class="chat-app__header"><div class="container"><div><!> <!> <!> <!></div></div></div> <div class="chat-app__body"><!></div> <!></div> <!></div>'),fa=T('<main class="chat-app"><!> <!></main>');function ha(S,e){te(e,!0);let n=k(e,"host",7),r=k(e,"onError",7),a=Me(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);ve(()=>{const y={forceTheme:e.forceTheme,apiUrl:e.apiUrl,apiKey:e.apiKey,speechRecognitionApiKey:e.speechRecognitionApiKey,lang:e.lang,features:e.features,loaderBackground:e.loaderBackground,loaderColor:e.loaderColor,flyout:e.flyout,flyoutStyle:e.flyoutStyle,flyoutClass:e.flyoutClass};ct(()=>u.init(y).catch(h=>r()(h)))});let s=j(()=>u.data.route.name);const o=()=>{u.closeFlyout(),n().dispatchEvent(new CustomEvent("closechat"))};ve(()=>{u.initialized&&u.data?.chatConfig&&n().dispatchEvent(new CustomEvent("configloaded",{detail:u.data.chatConfig}))});let i=G(void 0),f=G(0);const g=br.fineGrained?.light?.tokens?.components?.aside?.custom?.containerWidthForMobileLayout;let w=G(!1),P=j(()=>u.data.props?.flyout||t(f)<=g),M=G(void 0),N=G(!1),_=G(0);ve(()=>{if(t(M)&&t(M).firstElementChild instanceof HTMLElement){const y=getComputedStyle(t(M).firstElementChild);D(_,parseFloat(y.paddingTop)||0,!0)}}),ve(()=>{let y=!1;const h=()=>{y||(y=!0,requestAnimationFrame(()=>{t(i)&&(y=!1,D(N,t(i).scrollTop>=t(_)+1))}))};return h(),t(i)?.addEventListener("scroll",h,{passive:!0}),()=>t(i)?.removeEventListener("scroll",h)});const m=()=>{u.closeReferencesAside()};return ve(()=>{u.data.currentReferencesAsideId?D(w,!0):D(w,!1)}),ve(()=>{u.setAsideMobile(t(P))}),Lt(y=>{var h=Q(),d=q(h);{var x=b=>{var U=la(),z=q(U);ke(z,17,()=>u.themeBase.fontURLs??[],xe,(O,$)=>{var K=oa();J(()=>ye(K,"href",t($))),l(O,K)});var L=E(z,2);ke(L,17,()=>u.data.additionalStylesheets,xe,(O,$)=>{var K=ia();J(()=>ye(K,"href",t($))),l(O,K)});var R=E(L,2);Te(R,{id:"font-css",get css(){return u.themeBase.fontCSS}}),l(b,U)};W(d,b=>{u.initialized&&b(x)})}l(y,h)}),pt(S,{get defaultPortalTo(){return t(i)},children:(y,h)=>{var d=fa();let x;var b=v(d);{var U=L=>{var R=da(),O=q(R);{let H=j(()=>vr(u.theme));Te(O,{id:"theme-css",get css(){return t(H)}})}var $=E(O,2);Te($,{id:"app-css",get css(){return vt}});var K=E($,2);Te(K,{id:"custom-css",get css(){return u.themeBase.customCSS}});var I=E(K,2);ke(I,17,()=>u.data.additionalStylesheets,xe,(H,X)=>{var Z=ca();J(()=>ye(Z,"href",t(X))),l(H,Z)}),l(L,R)};W(b,L=>{u.initialized&&L(U)})}var z=E(b,2);Nt(z,ft({onCloseChat:o,get onError(){return r()}},()=>a,{children:(L,R)=>{var O=va(),$=v(O),K=v($);Ae(K,(F,V)=>Le?.(F,V),()=>"portals");var I=E(K,2),H=v(I),X=v(H);let Z;var ne=v(X);{var oe=F=>{gr(F,{})};W(ne,F=>{t(s)!=="start-page"&&F(oe)})}var p=E(ne,2);{var A=F=>{pr(F,{get logic(){return u}})};W(p,F=>{u.data.chatConfig.showContextInfo&&F(A)})}var B=E(p,2);{var Y=F=>{_r(F,{get chatLogic(){return u}})};W(B,F=>{u.data.chatConfig.showContextMenu&&F(Y)})}var ue=E(B,2);{var _e=F=>{mr(F,{onclick:o})};W(ue,F=>{(u.data.chatConfig.showCloseChatButton||u.data.props.flyout)&&F(_e)})}c(X),c(H),c(I),Ae(I,(F,V)=>Le?.(F,V),()=>"chatAppHeader");var fe=E(I,2),ee=v(fe);ut(ee,()=>t(s),F=>{var V=ua(),me=v(V);{var Ee=Ce=>{Ot(Ce,{})},ze=Ce=>{var rt=Q(),Et=q(rt);{var Tt=$e=>{kt($e,{})};W(Et,$e=>{t(s)==="chat-page"&&$e(Tt)},!0)}l(Ce,rt)};W(me,Ce=>{t(s)==="start-page"?Ce(Ee):Ce(ze,!1)})}c(V),be(V,Ce=>D(M,Ce),()=>t(M)),ce(1,V,()=>Ue,()=>({duration:300,delay:250})),ce(2,V,()=>Ye,()=>({duration:150})),l(F,V)}),c(fe);var ie=E(fe,2);fr(ie,{position:"top-center"}),c($),be($,F=>D(i,F),()=>t(i));var le=E($,2);hr(le,{get isOpen(){return t(w)},get isMobile(){return t(P)},onClose:m,get title(){return u.t.referencesTitle},children:(F,V)=>{Pt(F,{})},$$slots:{default:!0}}),c(O),lt(()=>ht(O,"clientWidth",F=>D(f,F))),Ae(O,(F,V)=>Le?.(F,V),()=>"chatAppContainer"),J(F=>Z=Oe(X,1,"chat-app__header-content",null,Z,F),[()=>({"has-border":t(N)})]),l(L,O)},$$slots:{default:!0}})),c(d),J(L=>x=He(d,"",x,L),[()=>({"color-scheme":u.colorScheme})]),l(y,d)},$$slots:{default:!0}}),re({get host(){return n()},set host(y){n(y),C()},get onError(){return r()},set onError(y){r(y),C()}})}ae(ha,{host:{},onError:{}},[],[],!0);export{ha as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/CL3atIlV.js";export{o as load_css,r as start};
|