@liip/liipgpt 2.1.1 → 2.2.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 +6 -6
- package/chat/liipgpt-chat.iife.js +29 -29
- package/config/index.cjs +2 -1
- package/config/index.d.ts +3 -0
- package/config/index.js +2 -1
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/BLE4Sq-A.js +1 -0
- package/configurator/_app/immutable/chunks/{DYN93pDG.js → BZPD6_qr.js} +1 -1
- package/configurator/_app/immutable/chunks/{D2c6aJfp.js → CQ6VxnO_.js} +1 -1
- package/configurator/_app/immutable/chunks/{BXqV06iJ.js → DANiOd5E.js} +1 -1
- package/configurator/_app/immutable/chunks/DJZcw4Ms.js +228 -0
- package/configurator/_app/immutable/chunks/DS-tNX5D.js +209 -0
- package/configurator/_app/immutable/chunks/{BOW8nxZh.js → DTEQ1xM_.js} +1 -1
- package/configurator/_app/immutable/chunks/{7tLp1xC_.js → DaOZ5688.js} +1 -1
- package/configurator/_app/immutable/chunks/DxRCLLL2.js +1 -0
- package/configurator/_app/immutable/entry/{app.fguqgOLS.js → app.CgsZebn8.js} +2 -2
- package/configurator/_app/immutable/entry/start.BwFowG2r.js +1 -0
- package/configurator/_app/immutable/nodes/{0.BZKTPwId.js → 0.BFSnXoIO.js} +3 -2
- package/configurator/_app/immutable/nodes/{1.Dmvv4SAG.js → 1.CVSz_gq-.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.BcY5smXV.js → 2.BTuwgXLq.js} +5 -5
- package/configurator/_app/immutable/nodes/{3.DRC-4F3Q.js → 3.DG2GcCKm.js} +16 -16
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +2 -1
- package/index.d.ts +10 -0
- package/index.js +2 -1
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/B_uz94sO.js +0 -209
- package/configurator/_app/immutable/chunks/CvYGSlFU.js +0 -1
- package/configurator/_app/immutable/chunks/Gpwjp1Zy.js +0 -1
- package/configurator/_app/immutable/chunks/Xsk8EJFw.js +0 -228
- package/configurator/_app/immutable/entry/start.Zr9z0Xq-.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as k,F as B,G as d,H as m,d as T,v as r,c as A}from"./TMezqz9A.js";import{p as o,s as R}from"./CfQtRUjK.js";import{C as U}from"./
|
|
1
|
+
import"./NZTpNUN0.js";import{p as k,F as B,G as d,H as m,d as T,v as r,c as A}from"./TMezqz9A.js";import{p as o,s as R}from"./CfQtRUjK.js";import{C as U}from"./DxRCLLL2.js";import{E as _}from"./DaOZ5688.js";function E(S,t){k(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),u=o(t,"speechRecognitionApiKey",7),n=o(t,"lang",7),y=o(t,"features",7),s=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),h=m(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:u(),lang:n(),features:y(),loaderBackground:s(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p()}));{const e=(b,K=B)=>{U(b,R({host:t.$$host,get onError(){return K()}},()=>d(h)))};let C=m(()=>d(h).flyout??!1);_(S,{get silent(){return d(C)},body:e,$$slots:{body:!0}})}return T({get forceTheme(){return a()},set forceTheme(e){a(e),r()},get apiUrl(){return l()},set apiUrl(e){l(e),r()},get apiKey(){return i()},set apiKey(e){i(e),r()},get speechRecognitionApiKey(){return u()},set speechRecognitionApiKey(e){u(e),r()},get lang(){return n()},set lang(e){n(e),r()},get features(){return y()},set features(e){y(e),r()},get loaderBackground(){return s()},set loaderBackground(e){s(e),r()},get loaderColor(){return g()},set loaderColor(e){g(e),r()},get flyout(){return f()},set flyout(e){f(e),r()},get flyoutStyle(){return c()},set flyoutStyle(e){c(e),r()},get flyoutClass(){return p()},set flyoutClass(e){p(e),r()}})}customElements.define("liipgpt-chat",A(E,{forceTheme:{attribute:"force-theme",type:"String"},apiUrl:{attribute:"api-url",type:"String"},apiKey:{attribute:"api-key",type:"String"},speechRecognitionApiKey:{attribute:"speech-recognition-api-key",type:"String"},lang:{attribute:"lang",type:"String"},features:{attribute:"features",type:"String"},loaderBackground:{attribute:"loader-background",type:"String"},loaderColor:{attribute:"loader-color",type:"String"},flyout:{attribute:"flyout",type:"Boolean"},flyoutStyle:{attribute:"flyout-style",type:"String"},flyoutClass:{attribute:"flyout-class",type:"String"}},[],[],!0));export{E as LiipGPTChat};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as J,I as b,a as d,J as K,b as n,d as L,v as k,G as x,K as N,F as q,L as O,M as P,c as R,N as T,f as B,s as E,t as U,g as j,O as S,e as w,r as z}from"./TMezqz9A.js";import{i as F}from"./Cgm2UlUC.js";import{a as A}from"./
|
|
1
|
+
import"./NZTpNUN0.js";import{p as J,I as b,a as d,J as K,b as n,d as L,v as k,G as x,K as N,F as q,L as O,M as P,c as R,N as T,f as B,s as E,t as U,g as j,O as S,e as w,r as z}from"./TMezqz9A.js";import{i as F}from"./Cgm2UlUC.js";import{a as A}from"./DS-tNX5D.js";import{p as M}from"./CfQtRUjK.js";var D=(u,a)=>a()(),H=B('<div class="chat-app__container"><div class="error-message svelte-4thrqu">Server is unreachable, please try later... <button class="error-message__retry-button svelte-4thrqu">Retry</button></div></div>'),Q=B(" <!>",1);const V={hash:"svelte-4thrqu",code:`
|
|
2
2
|
/* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-4thrqu {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
3
|
BlinkMacSystemFont,
|
|
4
4
|
avenir next,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./NZTpNUN0.js";import{av as Et,o as ot,aN as Re,p as Z,I as V,a as q,b as d,d as ee,v as w,L as se,G as t,H as j,f as R,e as f,r as u,F as Se,c as te,O as D,K as Y,ab as Mt,s as M,aL as Tt,t as G,aH as ve,g as ce,M as Ft,u as ie,aO as Ie,aI as Rt}from"./TMezqz9A.js";import{i as W,c as ge,b as pe}from"./Cgm2UlUC.js";import{H as At,J as re,K as be,L as ye,O as Ae,Q as Dt,T as Bt,U as ze,V as Lt,W as qt,X as Ke,Y as We,Z as Ht,_ as It,$ as et,a0 as zt,a1 as Kt,a2 as Me,a3 as Wt,n as v,a4 as jt,a5 as $t,a6 as Qt,t as le,a7 as je,a8 as Ut,S as Ee,a9 as Vt,aa as Fe,w as Yt,A as Gt,ab as tt,h as De,s as _e,e as me,q as it,b as xe,M as Jt,ac as Xt,c as $e,d as Be,x as lt,i as we,p as Qe,ad as rt,R as at,ae as Zt,P as er,a as tr,F as rr,I as Ne,o as ct,af as ar,ag as nt,ah as nr,ai as sr,aj as or,ak as ir,f as lr,al as cr,am as dr,N as ur,u as vr,C as fr,v as hr}from"./DS-tNX5D.js";import{p as S,r as Pe,s as dt}from"./CfQtRUjK.js";import{t as gr}from"./DJZcw4Ms.js";import{O as pr}from"./BLE4Sq-A.js";class Ue{#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){Ue.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var _r=new Ue({box:"border-box"});function ut(O,e,n){var r=_r.observe(O,()=>n(O[e]));Et(()=>(ot(()=>n(O[e])),r))}var mr=R("<div><!></div>");function vt(O,e){const n=Re();Z(e,!0);let r=S(e,"id",23,()=>be(n)),a=S(e,"children",7),s=S(e,"child",7),o=S(e,"ref",15,null),i=Pe(e,["$$slots","$$events","$$legacy","$$host","id","children","child","ref"]);const g=At.create({id:re.with(()=>r()),ref:re.with(()=>o(),x=>o(x))}),p=j(()=>Ae(i,g.props));var h=V(),L=q(h);{var m=x=>{var b=V(),y=q(b);se(y,s,()=>({props:t(p)})),d(x,b)},N=x=>{var b=mr();ye(b,()=>({...t(p)}));var y=f(b);se(y,()=>a()??Se),u(b),d(x,b)};W(L,x=>{s()?x(m):x(N,!1)})}return d(O,h),ee({get id(){return r()},set id(x=be(n)){r(x),w()},get children(){return a()},set children(x){a(x),w()},get child(){return s()},set child(x){s(x),w()},get ref(){return o()},set ref(x=null){o(x),w()}})}te(vt,{id:{},children:{},child:{},ref:{}},[],[],!0);function ft(O,e){Z(e,!0);let n=S(e,"children",7),r=S(e,"defaultPortalTo",7),a=S(e,"defaultLocale",7);Dt({defaultPortalTo:re.with(()=>r()),defaultLocale:re.with(()=>a())});var s=V(),o=q(s);return se(o,()=>n()??Se),d(O,s),ee({get children(){return n()},set children(i){n(i),w()},get defaultPortalTo(){return r()},set defaultPortalTo(i){r(i),w()},get defaultLocale(){return a()},set defaultLocale(i){a(i),w()}})}te(ft,{children:{},defaultPortalTo:{},defaultLocale:{}},[],[],!0);const Ve=It({component:"collapsible",parts:["root","content","trigger"]}),Ye=new Bt("Collapsible.Root");class Ge{static create(e){return Ye.set(new Ge(e))}opts;attachment;#e=Y(null);get contentNode(){return t(this.#e)}set contentNode(e){D(this.#e,e,!0)}#t=Y(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=ze(this.opts.ref),new zt({ref:re.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":We(this.opts.open.current),"data-disabled":Ke(this.opts.disabled.current),[Ve.root]:"",...this.attachment}));get props(){return t(this.#r)}set props(e){D(this.#r,e)}}class Je{static create(e){return new Je(e,Ye.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=Y(!1);#a=Y(0);#n=Y(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=ze(this.opts.ref,r=>this.root.contentNode=r),et.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),Mt(()=>{const r=requestAnimationFrame(()=>{D(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),et([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Kt(()=>{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":We(this.root.opts.open.current),"data-disabled":Ke(this.root.opts.disabled.current),[Ve.content]:"",...this.attachment}));get props(){return t(this.#o)}set props(e){D(this.#o,e)}}class Xe{static create(e){return new Xe(e,Ye.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=ze(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===Lt||e.key===qt)&&(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":Ht(this.root.opts.open.current),"data-state":We(this.root.opts.open.current),"data-disabled":Ke(t(this.#e)),[Ve.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return t(this.#t)}set props(e){D(this.#t,e)}}var br=R("<div><!></div>");function ht(O,e){const n=Re();Z(e,!0);let r=S(e,"children",7),a=S(e,"child",7),s=S(e,"id",23,()=>be(n)),o=S(e,"ref",15,null),i=S(e,"open",15,!1),g=S(e,"disabled",7,!1),p=S(e,"onOpenChange",7,Me),h=S(e,"onOpenChangeComplete",7,Me),L=Pe(e,["$$slots","$$events","$$legacy","$$host","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const m=Ge.create({open:re.with(()=>i(),l=>{i(l),p()(l)}),disabled:re.with(()=>g()),id:re.with(()=>s()),ref:re.with(()=>o(),l=>o(l)),onOpenChangeComplete:re.with(()=>h())}),N=j(()=>Ae(L,m.props));var x=V(),b=q(x);{var y=l=>{var C=V(),P=q(C);se(P,a,()=>({props:t(N)})),d(l,C)},c=l=>{var C=br();ye(C,()=>({...t(N)}));var P=f(C);se(P,()=>r()??Se),u(C),d(l,C)};W(b,l=>{a()?l(y):l(c,!1)})}return d(O,x),ee({get children(){return r()},set children(l){r(l),w()},get child(){return a()},set child(l){a(l),w()},get id(){return s()},set id(l=be(n)){s(l),w()},get ref(){return o()},set ref(l=null){o(l),w()},get open(){return i()},set open(l=!1){i(l),w()},get disabled(){return g()},set disabled(l=!1){g(l),w()},get onOpenChange(){return p()},set onOpenChange(l=Me){p(l),w()},get onOpenChangeComplete(){return h()},set onOpenChangeComplete(l=Me){h(l),w()}})}te(ht,{children:{},child:{},id:{},ref:{},open:{},disabled:{},onOpenChange:{},onOpenChangeComplete:{}},[],[],!0);var yr=R("<div><!></div>");function gt(O,e){const n=Re();Z(e,!0);let r=S(e,"child",7),a=S(e,"ref",15,null),s=S(e,"forceMount",7,!1),o=S(e,"children",7),i=S(e,"id",23,()=>be(n)),g=Pe(e,["$$slots","$$events","$$legacy","$$host","child","ref","forceMount","children","id"]);const p=Je.create({id:re.with(()=>i()),forceMount:re.with(()=>s()),ref:re.with(()=>a(),h=>a(h))});return Wt(O,{forceMount:!0,get open(){return p.present},get ref(){return p.opts.ref},presence:(L,m)=>{let N=()=>m?.().present;var x=V();const b=j(()=>Ae(g,p.props,{hidden:s()?void 0:!N()}));var y=q(x);{var c=C=>{var P=V(),Q=q(P);{let B=j(()=>({...p.snippetProps,props:t(b)}));se(Q,r,()=>t(B))}d(C,P)},l=C=>{var P=yr();ye(P,()=>({...t(b)}));var Q=f(P);se(Q,()=>o()??Se),u(P),d(C,P)};W(y,C=>{r()?C(c):C(l,!1)})}d(L,x)},$$slots:{presence:!0}}),ee({get child(){return r()},set child(h){r(h),w()},get ref(){return a()},set ref(h=null){a(h),w()},get forceMount(){return s()},set forceMount(h=!1){s(h),w()},get children(){return o()},set children(h){o(h),w()},get id(){return i()},set id(h=be(n)){i(h),w()}})}te(gt,{child:{},ref:{},forceMount:{},children:{},id:{}},[],[],!0);var Cr=R("<button><!></button>");function pt(O,e){const n=Re();Z(e,!0);let r=S(e,"children",7),a=S(e,"child",7),s=S(e,"ref",15,null),o=S(e,"id",23,()=>be(n)),i=S(e,"disabled",7,!1),g=Pe(e,["$$slots","$$events","$$legacy","$$host","children","child","ref","id","disabled"]);const p=Xe.create({id:re.with(()=>o()),ref:re.with(()=>s(),b=>s(b)),disabled:re.with(()=>i())}),h=j(()=>Ae(g,p.props));var L=V(),m=q(L);{var N=b=>{var y=V(),c=q(y);se(c,a,()=>({props:t(h)})),d(b,y)},x=b=>{var y=Cr();ye(y,()=>({...t(h)}));var c=f(y);se(c,()=>r()??Se),u(y),d(b,y)};W(m,b=>{a()?b(N):b(x,!1)})}return d(O,L),ee({get children(){return r()},set children(b){r(b),w()},get child(){return a()},set child(b){a(b),w()},get ref(){return s()},set ref(b=null){s(b),w()},get id(){return o()},set id(b=be(n)){o(b),w()},get disabled(){return i()},set disabled(b=!1){i(b),w()}})}te(pt,{children:{},child:{},ref:{},id:{},disabled:{}},[],[],!0);var kr=R("<div></div>"),wr=R('<span class="sr-only">Close</span> <!>',1),Sr=R('<div><div class="dialog-header"><!> <!></div> <!></div>'),xr=R("<!> <!>",1);function _t(O,e){Z(e,!0);let n=S(e,"open",7),r=S(e,"content",7),a=S(e,"title",7),s=S(e,"onClose",7);const o={duration:Number(v.theme.components.dialog.custom?.transitionDuration)||200,delay:Number(v.theme.components.dialog.custom?.transitionDelay)||0,y:Number(v.theme.components.dialog.custom?.transitionY)||10},i=h=>{h||s()()};var g=V(),p=q(g);return ge(p,()=>Qt,(h,L)=>{L(h,{get open(){return n()},onOpenChange:i,children:(m,N)=>{var x=xr(),b=q(x);{const c=(l,C)=>{let P=()=>C?.().props,Q=()=>C?.().open;var B=V(),A=q(B);{var T=k=>{var F=kr();ye(F,()=>({...P(),class:"dialog-overlay"})),le(3,F,()=>je,()=>o),d(k,F)};W(A,k=>{Q()&&k(T)})}d(l,B)};ge(b,()=>jt,(l,C)=>{C(l,{forceMount:!0,child:c,$$slots:{child:!0}})})}var y=M(b,2);{const c=(l,C)=>{let P=()=>C?.().props,Q=()=>C?.().open;var B=V(),A=q(B);{var T=k=>{var F=Sr();ye(F,()=>({...P(),class:"dialog-content"}));var H=f(F),K=f(H);ge(K,()=>Ut,(U,ae)=>{ae(U,{class:"dialog-title",children:(X,_)=>{var E=V(),z=q(E);se(z,()=>a()??Se),d(X,E)},$$slots:{default:!0}})});var $=M(K,2);ge($,()=>Vt,(U,ae)=>{ae(U,{class:"dialog-close",children:(X,_)=>{var E=wr(),z=M(q(E),2);Ee(z,{name:"dismiss"}),d(X,E)},$$slots:{default:!0}})}),u(H);var J=M(H,2);ge(J,()=>vt,(U,ae)=>{ae(U,{class:"dialog-description",children:(X,_)=>{var E=V(),z=q(E);se(z,r),d(X,E)},$$slots:{default:!0}})}),u(F),le(3,F,()=>Fe,()=>o),d(k,F)};W(A,k=>{Q()&&k(T)})}d(l,B)};ge(y,()=>$t,(l,C)=>{C(l,{forceMount:!0,child:c,$$slots:{child:!0}})})}d(m,x)},$$slots:{default:!0}})}),d(O,g),ee({get open(){return n()},set open(h){n(h),w()},get content(){return r()},set content(h){r(h),w()},get title(){return a()},set title(h){a(h),w()},get onClose(){return s()},set onClose(h){s(h),w()}})}te(_t,{open:{},content:{},title:{},onClose:{}},[],[],!0);var Pr=R('<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 mt(O,e){Z(e,!0);let n=j(()=>v.t),r=S(e,"logic",7),a=Y(""),s=Y(""),o=Y(void 0),i=Y(void 0),g=j(()=>t(o)!==void 0||t(i)!==void 0||t(a)!=="");{const p=m=>{var N=V(),x=q(N);De(x,()=>t(n).feedbackFormTitle),d(m,N)},h=m=>{var N=Pr(),x=f(N);Yt(x,{get classificationConfig(){return r().data.chatConfig.classification},get impact(){return t(o)},set impact(k){D(o,k,!0)},get quality(){return t(i)},set quality(k){D(i,k,!0)}});var b=M(x,2),y=f(b),c=f(y,!0);u(y);var l=M(y,2);Tt(l),u(b);var C=M(b,2),P=f(C),Q=f(P,!0);u(P);var B=M(P,2);Gt(B),u(C);var A=M(C,2),T=f(A,!0);u(A),u(N),G(()=>{ce(c,t(n).feedbackFormMessage),_e(l,"placeholder",t(n).feedbackFormMessagePlaceholder),ce(Q,t(n).feedbackFormEmail),_e(B,"placeholder",t(n).feedbackFormEmailPlaceholder),A.disabled=!t(g),ce(T,t(n).send)}),ve("submit",N,async k=>{k.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()}),tt(l,()=>t(a),k=>D(a,k)),tt(B,()=>t(s),k=>D(s,k)),d(m,N)};let L=j(()=>!!r().data.feedbackOpenedId||r().data.feedbackOpenedConversation);_t(O,{get open(){return t(L)},get onClose(){return r().closeFeedback},title:p,content:h,$$slots:{title:!0,content:!0}})}return ee({get logic(){return r()},set logic(p){r(p),w()}})}te(mt,{logic:{}},[],[],!0);let Te;function Or(O,e,n,r,a){Te&&cancelAnimationFrame(Te);const s=O instanceof Window?window.scrollY:O[r],o=performance.now();function i(g){const p=g-o,h=Math.min(p/n,1),L=a(h),m=s+(e-s)*L;O instanceof Window?window.scrollTo({top:m,behavior:"instant"}):O[r]=m,h<1?Te=requestAnimationFrame(i):O.dispatchEvent(new CustomEvent("scrollcomplete"))}Te=requestAnimationFrame(i)}var Nr=()=>v.openConverstionFeedback(),Er=R('<button class="chat-page__give-feedback btn btn--primary"> </button>'),Mr=(O,e)=>{e(500)},Tr=R('<div class="chat-page__footer-text"><!></div>'),Fr=R('<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 bt(O,e){Z(e,!0);let n=j(()=>v.t),r=Y(!1),a,s,o,i,g;const p=90,h=_=>{g&&Or(g,g.scrollHeight-g.clientHeight,_,"scrollTop",Xt)},L=()=>{if(!g)return;const _=g.scrollHeight-g.scrollTop-g.clientHeight<p;D(r,!_)},m=()=>{L()},N=_=>{if(_.altKey&&_.code==="KeyR"){_.preventDefault();const E=v.data.history.findLast(z=>z.type==="user")?.message;v.goto({name:"start-page",prefill:E})}},x=()=>{setTimeout(()=>{const _=a.closest(".chat-app__container"),E=_?.querySelector(".chat-page__messages"),z=_?.querySelectorAll(".chat-page__messages .message--user");if(_&&E&&z){const oe=_.clientHeight,ne=_.querySelector(".chat-app__header").offsetHeight,de=o.offsetHeight,fe=i.offsetHeight,Ce=z[z.length-1].offsetHeight,ke=parseInt(getComputedStyle(E).gap),I=oe-ne-fe-de-Ce-ke*2;s.style.setProperty("--last-bot-message-min-height",`${I}px`)}h(1e3)},50)},b=()=>{v.onSubmit()};ie(()=>{a&&(g=a.closest(".chat-app__main"))}),ie(()=>{if(g)return g.addEventListener("scroll",L),()=>{g.removeEventListener("scroll",L)}});var y=Fr();ve("resize",Ie,m),ve("keypress",Ie,N);var c=f(y);mt(c,{get logic(){return v}});var l=M(c,2),C=f(l);me(C,21,()=>v.data.history,_=>_?.id??_?.time,(_,E)=>{Jt(_,{get message(){return t(E)},onmessageupdate:L,onbotmessageinit:x,get logic(){return v}})}),u(C),pe(C,_=>s=_,()=>s);var P=M(C,2),Q=f(P);{var B=_=>{var E=Er();E.__click=[Nr];var z=f(E,!0);u(E),G(()=>ce(z,t(n).giveFeedback)),d(_,E)};W(Q,_=>{v.data.chatConfig.showOverallFeedbackButton&&_(B)})}u(P),pe(P,_=>o=_,()=>o),u(l);var A=M(l,2),T=f(A),k=f(T),F=f(k);F.__click=[Mr,h];let H;var K=f(F),$=f(K,!0);u(K);var J=M(K,2);Ee(J,{name:"chevronDown"}),u(F);var U=M(F,2);it(U,{onSubmit:b,class:"chat-page__chat-input"});var ae=M(U,2);{var X=_=>{var E=Tr(),z=f(E);De(z,()=>t(n).chatFooterText),u(E),d(_,E)};W(ae,_=>{t(n).chatFooterText!==void 0&&_(X)})}u(k),u(T),u(A),pe(A,_=>i=_,()=>i),u(y),pe(y,_=>a=_,()=>a),G(_=>{H=xe(F,1,"chat-page__scroll-to-bottom btn btn--secondary btn--square",null,H,_),ce($,t(n).scrollToBottom)},[()=>({"chat-page__scroll-to-bottom--hidden":!t(r)})]),d(O,y),ee()}Ft(["click"]);te(bt,{},[],[],!0);var Rr=R("<div><div><!></div></div>");function yt(O,e){Z(e,!0);let n=S(e,"class",7),r=S(e,"children",7),a=Y(void 0);var s=Rr();let o;var i=f(s),g=f(i);return se(g,()=>r()??Se),u(i),u(s),G(p=>{xe(s,1,$e(["animated-height",n()])),o=Be(s,"",o,p)},[()=>({height:t(a)?`${t(a)}px`:"auto"})]),ut(i,"clientHeight",p=>D(a,p)),d(O,s),ee({get class(){return n()},set class(p){n(p),w()},get children(){return r()},set children(p){r(p),w()}})}te(yt,{class:{},children:{}},[],[],!0);var Ar=R('<div class="references__toggle-title"> </div> <!>',1),Dr=R('<div><div class="references__items"></div></div>'),Br=R("<!> <!>",1),Lr=R('<div class="references__items"><!> <!></div>'),qr=R('<div><div class="references__container"><div class="references__transition"><!></div></div></div>');function Ct(O,e){Z(e,!0);let n=S(e,"class",7),r=j(()=>v.data.history.filter(m=>m.type==="bot").find(m=>m.id===v.data.currentReferencesAsideId)?.references),a=j(()=>v.data.currentReferencesAsideId),s=Y(void 0),o=Y(!1),i=Y(void 0);ie(()=>{t(a)&&D(o,!1),D(s,t(a),!0)}),ie(()=>{t(o)&&setTimeout(()=>{t(i)?.scrollIntoView({behavior:"smooth"})},200)});var g=qr(),p=f(g),h=f(p),L=f(h);return lt(L,()=>v.data.currentReferencesAsideId,m=>{var N=Lr(),x=f(N);me(x,17,()=>t(r)?.used,we,(c,l)=>{at(c,{get reference(){return t(l)}})});var b=M(x,2);{var y=c=>{yt(c,{children:(l,C)=>{var P=V(),Q=q(P);ge(Q,()=>ht,(B,A)=>{A(B,{get class(){return`references__further ${n()??""}`},get open(){return t(o)},set open(T){D(o,T,!0)},children:(T,k)=>{var F=Br(),H=q(F);ge(H,()=>pt,($,J)=>{J($,{class:"references__toggle transition-colors",children:(U,ae)=>{var X=Ar(),_=q(X),E=f(_,!0);u(_);var z=M(_,2);Ee(z,{name:"chevronDown",class:"references__toggle-icon"}),G(()=>ce(E,v.t.referencesFurtherTitle)),d(U,X)},$$slots:{default:!0}})});var K=M(H,2);{const $=(J,U)=>{let ae=()=>U?.().props,X=()=>U?.().open;var _=V(),E=q(_);{var z=oe=>{var ne=Dr();ye(ne,()=>({...ae(),class:"references__container"}));var de=f(ne);me(de,21,()=>t(r)?.unused,we,(fe,Ce)=>{at(fe,{get reference(){return t(Ce)}})}),u(de),u(ne),pe(ne,fe=>D(i,fe),()=>t(i)),le(1,ne,()=>Fe,()=>({duration:500,easing:rt,y:50})),le(2,ne,()=>je,()=>({duration:100})),d(oe,ne)};W(E,oe=>{X()&&oe(z)})}d(J,_)};ge(K,()=>gt,(J,U)=>{U(J,{forceMount:!0,child:$,$$slots:{child:!0}})})}d(T,F)},$$slots:{default:!0}})}),d(l,P)},$$slots:{default:!0}})};W(b,c=>{t(r)?.unused&&c(y)})}u(N),le(2,N,()=>Qe,()=>({duration:200,delay:t(a)?0:200})),le(1,N,()=>Fe,()=>t(s)?{delay:200,duration:500,easing:rt,y:50}:{duration:0,y:0}),d(m,N)}),u(h),u(p),u(g),G(()=>xe(g,1,$e(["references",n()]))),d(O,g),ee({get class(){return n()},set class(m){n(m),w()}})}te(Ct,{class:{}},[],[],!0);var Hr=R('<div><!> <h1 class="introduction__title"><!></h1></div>');function kt(O,e){Z(e,!0);let n=j(()=>v.t),r=S(e,"class",7);var a=Hr(),s=f(a);Ee(s,{name:"avatar",class:"introduction__avatar"});var o=M(s,2),i=f(o);return De(i,()=>t(n).introductionTitle),u(o),u(a),G(()=>xe(a,1,`introduction ${r()??""}`)),d(O,a),ee({get class(){return r()},set class(g){r(g),w()}})}te(kt,{class:{}},[],[],!0);var Ir=R("<div></div>");function wt(O,e){Z(e,!0);let n=S(e,"class",7),r=Pe(e,["$$slots","$$events","$$legacy","$$host","class"]);var a=Ir();return ye(a,s=>({class:`predefined-questions ${n()??""}`,...r,[Zt]:s}),[()=>({"predefined-questions--pii-padding":v.data.questionHasPii})]),me(a,21,()=>v.data.predefinedQuestions,we,(s,o)=>{er(s,{get predefinedQuestion(){return t(o)},get onSubmit(){return v.onStartConversation}})}),u(a),d(O,a),ee({get class(){return n()},set class(s){n(s),w()}})}te(wt,{class:{}},[],[],!0);var zr=R('<div class="introduction-disclaimer text-container fly-in" style="--fly-in-id: 3;"><!></div>'),Kr=R("<section><!> <!> <!> <!></section>");function St(O,e){Z(e,!0);let n=j(()=>v.t),r=Y(!1);ie(()=>{D(r,!0)});var a=Kr();let s;var o=f(a);kt(o,{class:"start-page__introduction fly-in"});var i=M(o,2);it(i,{get onSubmit(){return v.onStartConversation},class:"start-page__chat-input fly-in",style:"--fly-in-id: 1;",isStartPage:!0});var g=M(i,2);{var p=m=>{wt(m,{class:"start-page__predefined-questions fly-in",style:"--fly-in-id: 2;"})};W(g,m=>{v.data.predefinedQuestions&&v.data.predefinedQuestions.length&&m(p)})}var h=M(g,2);{var L=m=>{var N=zr(),x=f(N);De(x,()=>t(n).introductionDisclaimer),u(N),d(m,N)};W(h,m=>{t(n).introductionDisclaimer&&m(L)})}u(a),G(m=>s=xe(a,1,"start-page container",null,s,m),[()=>({mounted:t(r)})]),d(O,a),ee()}te(St,{},[],[],!0);function st(O,{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(O),g=+i.opacity,p=i.transform.match(/scale\(([0-9.]+)\)/),h=p?+p[1]:1,L=1-a;return{delay:e,duration:n,css:m=>{const N=r(m),x=N*h*L+a;return`opacity: ${N*g}; transform: scale(${x}); transform-origin: ${s};`}}}var Wr=R('<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 jr={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 xt(O,e){Z(e,!0),tr(O,jr);let n=S(e,"color",7),r=S(e,"background",7);var a=Wr(),s=f(a);return u(a),G(()=>{Be(a,r()?`background: ${r()};`:""),_e(s,"fill",n()??"rgba(127, 127, 127, 0.3)")}),d(O,a),ee({get color(){return n()},set color(o){n(o),w()},get background(){return r()},set background(o){r(o),w()}})}te(xt,{color:{},background:{}},[],[],!0);var $r=R('<div class="flyout__content"><!></div>'),Qr=R('<div><div class="flyout__body"><!></div></div>'),Ur=R('<!> <div class="chat-app__container"><div class="chat-app__loader-container"><!></div></div>',1);function Pt(O,e){Z(e,!0);let n=S(e,"children",7),r=S(e,"loaderColor",7),a=S(e,"loaderBackground",7),s=S(e,"flyout",7),o=S(e,"flyoutClass",7),i=S(e,"flyoutStyle",7),g=S(e,"onCloseChat",7),p=S(e,"onError",7),h=Pe(e,["$$slots","$$events","$$legacy","$$host","children","loaderColor","loaderBackground","flyout","flyoutClass","flyoutStyle","onCloseChat","onError"]),L;const m=c=>{ie(()=>{const l=C=>{L=C};return c.addEventListener("click",l),()=>{c.removeEventListener("click",l),L=void 0}})};var N=V();ve("click",Ie,c=>{c!==L&&s()&&g()()});var x=q(N);{var b=c=>{var l=V(),C=q(l);{var P=B=>{},Q=B=>{var A=Qr(),T=f(A),k=f(T);{var F=K=>{var $=$r(),J=f($);se(J,n),u($),le(1,$,()=>st,()=>({delay:0,duration:500,easing:nt,baseScale:.3})),le(2,$,()=>st,()=>({delay:0,duration:300,easing:nt,baseScale:.7})),d(K,$)},H=K=>{pr(K,dt({get onError(){return p()},onclick:$=>{$.stopPropagation(),v.openFlyout()},buttonClass:"flyout__open-button"},()=>h))};W(k,K=>{v.data.flyoutIsOpen?K(F):K(H,!1)})}u(T),rr(T,K=>m?.(K)),u(A),G(()=>{Be(A,i()),xe(A,1,$e(["flyout",o()]))}),d(B,A)};W(C,B=>{v.initialized?B(Q,!1):B(P)})}d(c,l)},y=c=>{var l=V(),C=q(l);{var P=B=>{var A=Ur(),T=q(A);Ne(T,{id:"app-css",get css(){return ct}});var k=M(T,2),F=f(k),H=f(F);ar(H,e,"loader",{},K=>{xt(K,{get background(){return a()},get color(){return r()}})}),u(F),u(k),le(2,k,()=>Qe,()=>({duration:200,delay:300})),d(B,A)},Q=B=>{var A=V(),T=q(A);se(T,n),d(B,A)};W(C,B=>{v.initialized?B(Q,!1):B(P)})}d(c,l)};W(x,c=>{s()?c(b):c(y,!1)})}return d(O,N),ee({get children(){return n()},set children(c){n(c),w()},get loaderColor(){return r()},set loaderColor(c){r(c),w()},get loaderBackground(){return a()},set loaderBackground(c){a(c),w()},get flyout(){return s()},set flyout(c){s(c),w()},get flyoutClass(){return o()},set flyoutClass(c){o(c),w()},get flyoutStyle(){return i()},set flyoutStyle(c){i(c),w()},get onCloseChat(){return g()},set onCloseChat(c){g(c),w()},get onError(){return p()},set onError(c){p(c),w()}})}te(Pt,{children:{},loaderColor:{},loaderBackground:{},flyout:{},flyoutClass:{},flyoutStyle:{},onCloseChat:{},onError:{}},["loader"],[],!0);var Vr=R('<span class="reference__description line-clamp line-clamp--12"> </span>'),Yr=R('<span class="reference__breadcrumb transition-colors"> </span>'),Gr=R('<span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></span>'),Jr=R('<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>'),Xr=R('<div class="reference-number"><a target="_blank" rel="noopener noreferrer" class="reference-number__trigger transition-colors no-link-styling"> </a> <!></div>');function Zr(O,e){Z(e,!0);let n=j(()=>v.t),r=S(e,"usedNumber",7),a=S(e,"source",7),s=Y(!1),o,i,g=Y(void 0);const p=a();let h=j(()=>p.display.card.title),L=j(()=>p.display.card.description),m=j(()=>p.display.card.badge),N=j(()=>p.display.card.breadcrumbs);const x={duration:Number(v.theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(v.theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(v.theme.components.referenceNumberContent.custom?.transitionY)||10},b=async()=>{if(!i||!t(g))return;const{x:T,y:k}=await nr(i,t(g),{placement:"top",middleware:[sr(8),or(),ir({padding:8})]});Object.assign(t(g).style,{left:`${T}px`,top:`${k}px`})},y=()=>{o&&(clearTimeout(o),o=void 0)},c=()=>{y(),o=setTimeout(()=>{D(s,!1)},100)},l=()=>{y(),D(s,!0)};ie(()=>{t(s)&&b()});var C=Xr(),P=f(C),Q=f(P,!0);u(P),pe(P,T=>i=T,()=>i);var B=M(P,2);{var A=T=>{var k=Jr(),F=f(k),H=f(F),K=f(H),$=f(K,!0);u(K);var J=M(K,2);Ee(J,{name:"externalLink",class:"reference__icon transition-colors"}),u(H);var U=M(H,2);{var ae=E=>{var z=Vr(),oe=f(z,!0);u(z),G(()=>ce(oe,t(L))),d(E,z)};W(U,E=>{t(L)&&E(ae)})}var X=M(U,2);{var _=E=>{var z=Gr(),oe=f(z),ne=f(oe),de=f(ne,!0);u(ne),u(oe);var fe=M(oe,2);{var Ce=ke=>{var I=V(),he=q(I);me(he,17,()=>t(N),we,(Le,qe)=>{var Oe=Yr(),ue=f(Oe,!0);u(Oe),G(()=>ce(ue,t(qe))),d(Le,Oe)}),d(ke,I)};W(fe,ke=>{t(N)&&ke(Ce)})}u(z),G(()=>ce(de,t(m))),d(E,z)};W(X,E=>{t(m)&&E(_)})}u(F),u(k),pe(k,E=>D(g,E),()=>t(g)),G(()=>{_e(F,"href",p.url),ce($,t(h))}),ve("mouseenter",k,l),ve("mouseleave",k,c),le(3,k,()=>Fe,()=>x),d(T,k)};W(B,T=>{t(s)&&T(A)})}return u(C),G(()=>{_e(P,"href",p.url),_e(P,"aria-label",`${t(n).referenceLink??""}: ${t(h)??""}`),ce(Q,r())}),ve("mouseenter",P,l),ve("mouseleave",P,c),ve("focus",P,()=>D(s,!0)),ve("blur",P,()=>D(s,!1)),d(O,C),ee({get usedNumber(){return r()},set usedNumber(T){r(T),w()},get source(){return a()},set source(T){a(T),w()}})}customElements.define("liipgpt-reference-number",te(Zr,{source:{attribute:"data-source",type:"Object"},refNumber:{attribute:"data-all-index",type:"String"},usedNumber:{attribute:"data-used-index",type:"String"}},[],[],!1));var ea=R('<link rel="stylesheet"/>'),ta=R('<link rel="stylesheet"/>'),ra=R("<!> <!> <!>",1),aa=R('<link rel="stylesheet"/>'),na=R("<!> <!> <!> <!>",1),sa=R('<div class="chat-app__page-transition"><!></div>'),oa=R('<div class="chat-app__container"><div class="chat-app__main"><div class="chat-app__header"><div class="container"><div><!> <!> <!> <!></div></div></div> <div class="chat-app__body"><!></div> <!></div> <!></div>'),ia=R('<main class="chat-app"><!> <!></main>');function la(O,e){Z(e,!0);let n=S(e,"host",7),r=S(e,"onError",7),a=Pe(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);ie(()=>{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};ot(()=>v.init(y).catch(c=>r()(c)))});let s=j(()=>v.data.route.name);const o=()=>{v.closeFlyout(),n().dispatchEvent(new CustomEvent("closechat"))};ie(()=>{v.initialized&&v.data?.chatConfig&&n().dispatchEvent(new CustomEvent("configloaded",{detail:v.data.chatConfig}))});let i=Y(void 0),g=Y(0);const p=gr.fineGrained?.light?.tokens?.components?.aside?.custom?.containerWidthForMobileLayout;let h=Y(!1),L=j(()=>v.data.props.flyout||t(g)<=p),m=Y(void 0),N=Y(!1),x=Y(0);ie(()=>{if(t(m)&&t(m).firstElementChild instanceof HTMLElement){const y=getComputedStyle(t(m).firstElementChild);D(x,parseFloat(y.paddingTop)||0,!0)}}),ie(()=>{let y=!1;const c=()=>{y||(y=!0,requestAnimationFrame(()=>{t(i)&&(y=!1,D(N,t(i).scrollTop>=t(x)+1))}))};return c(),t(i)?.addEventListener("scroll",c,{passive:!0}),()=>t(i)?.removeEventListener("scroll",c)});const b=()=>{v.closeReferencesAside()};return ie(()=>{v.data.currentReferencesAsideId?D(h,!0):D(h,!1)}),Rt(y=>{var c=V(),l=q(c);{var C=P=>{var Q=ra(),B=q(Q);me(B,17,()=>v.themeBase.fontURLs??[],we,(k,F)=>{var H=ea();G(()=>_e(H,"href",t(F))),d(k,H)});var A=M(B,2);me(A,17,()=>v.data.additionalStylesheets,we,(k,F)=>{var H=ta();G(()=>_e(H,"href",t(F))),d(k,H)});var T=M(A,2);Ne(T,{id:"font-css",get css(){return v.themeBase.fontCSS}}),d(P,Q)};W(l,P=>{v.initialized&&P(C)})}d(y,c)}),ft(O,{get defaultPortalTo(){return t(i)},children:(y,c)=>{var l=ia();let C;var P=f(l);{var Q=A=>{var T=na(),k=q(T);{let $=j(()=>lr(v.theme));Ne(k,{id:"theme-css",get css(){return t($)}})}var F=M(k,2);Ne(F,{id:"app-css",get css(){return ct}});var H=M(F,2);Ne(H,{id:"custom-css",get css(){return v.themeBase.customCSS}});var K=M(H,2);me(K,17,()=>v.data.additionalStylesheets,we,($,J)=>{var U=aa();G(()=>_e(U,"href",t(J))),d($,U)}),d(A,T)};W(P,A=>{v.initialized&&A(Q)})}var B=M(P,2);Pt(B,dt({onCloseChat:o,get onError(){return r()}},()=>a,{children:(A,T)=>{var k=oa(),F=f(k),H=f(F),K=f(H),$=f(K);let J;var U=f($);{var ae=I=>{ur(I,{})};W(U,I=>{t(s)!=="start-page"&&I(ae)})}var X=M(U,2);{var _=I=>{vr(I,{get logic(){return v}})};W(X,I=>{v.data.chatConfig.showContextInfo&&I(_)})}var E=M(X,2);{var z=I=>{fr(I,{get chatLogic(){return v}})};W(E,I=>{v.data.chatConfig.showContextMenu&&I(z)})}var oe=M(E,2);{var ne=I=>{hr(I,{onclick:o})};W(oe,I=>{(v.data.chatConfig.showCloseChatButton||v.data.props.flyout)&&I(ne)})}u($),u(K),u(H);var de=M(H,2),fe=f(de);lt(fe,()=>t(s),I=>{var he=sa(),Le=f(he);{var qe=ue=>{St(ue,{})},Oe=ue=>{var Ze=V(),Ot=q(Ze);{var Nt=He=>{bt(He,{})};W(Ot,He=>{t(s)==="chat-page"&&He(Nt)},!0)}d(ue,Ze)};W(Le,ue=>{t(s)==="start-page"?ue(qe):ue(Oe,!1)})}u(he),pe(he,ue=>D(m,ue),()=>t(m)),le(1,he,()=>je,()=>({duration:300,delay:250})),le(2,he,()=>Qe,()=>({duration:150})),d(I,he)}),u(de);var Ce=M(de,2);cr(Ce,{position:"top-center"}),u(F),pe(F,I=>D(i,I),()=>t(i));var ke=M(F,2);dr(ke,{get isOpen(){return t(h)},get isMobile(){return t(L)},onClose:b,get title(){return v.t.referencesTitle},children:(I,he)=>{Ct(I,{})},$$slots:{default:!0}}),u(k),G(I=>J=xe($,1,"chat-app__header-content",null,J,I),[()=>({"has-border":t(N)})]),ut(k,"clientWidth",I=>D(g,I)),d(A,k)},$$slots:{default:!0}})),u(l),G(A=>C=Be(l,"",C,A),[()=>({"color-scheme":v.colorScheme})]),d(y,l)},$$slots:{default:!0}}),ee({get host(){return n()},set host(y){n(y),w()},get onError(){return r()},set onError(y){r(y),w()}})}te(la,{host:{},onError:{}},[],[],!0);export{la as C};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{i as O,c as x,b as D,_ as E}from"../chunks/Cgm2UlUC.js";import{c as N,p as Q,ab as U,u as W,G as i,K as I,O as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,I as w,H as A,e as $,r as tt,ac as et,t as rt,g as at,ad as st}from"../chunks/TMezqz9A.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/DvEdoyY3.js";import{p as u}from"../chunks/CfQtRUjK.js";const vt={};var nt=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),d=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),_=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(d())),W(()=>{m(),d(),o(),r(),_(),f(),b(),m().page.notify()});let y=I(!1),L=I(!1),T=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(L,!0),X().then(()=>{R(T,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=A(()=>o()[1]);var V=it(),k=P(V);{var K=t=>{var a=w();const v=A(()=>o()[0]);var g=P(a);x(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return _()},get params(){return d().params},children:(h,mt)=>{var j=w(),z=P(j);x(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return _()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},M=t=>{var a=w();const v=A(()=>o()[0]);var g=P(a);x(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return _()},get params(){return d().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};O(k,t=>{o()[1]?t(K):t(M,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(T))),p(n,l)};O(v,n=>{i(L)&&n(g)})}tt(a),p(t,a)};O(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return d()},set page(t){d(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return _()},set form(t){_(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}N(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BFSnXoIO.js","../chunks/DJZcw4Ms.js","../chunks/NZTpNUN0.js","../chunks/TMezqz9A.js","../chunks/CfQtRUjK.js","../nodes/1.CVSz_gq-.js","../chunks/DANiOd5E.js","../chunks/BZPD6_qr.js","../chunks/DvEdoyY3.js","../nodes/2.BTuwgXLq.js","../chunks/Cgm2UlUC.js","../chunks/DS-tNX5D.js","../nodes/3.DG2GcCKm.js","../chunks/DxRCLLL2.js","../chunks/BLE4Sq-A.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as O,c as x,b as D,_ as E}from"../chunks/Cgm2UlUC.js";import{c as N,p as Q,ab as U,u as W,G as i,K as I,O as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,I as w,H as A,e as $,r as tt,ac as et,t as rt,g as at,ad as st}from"../chunks/TMezqz9A.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/DvEdoyY3.js";import{p as u}from"../chunks/CfQtRUjK.js";const vt={};var nt=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),d=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),_=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(d())),W(()=>{m(),d(),o(),r(),_(),f(),b(),m().page.notify()});let y=I(!1),L=I(!1),T=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(L,!0),X().then(()=>{R(T,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=A(()=>o()[1]);var V=it(),k=P(V);{var K=t=>{var a=w();const v=A(()=>o()[0]);var g=P(a);x(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return _()},get params(){return d().params},children:(h,mt)=>{var j=w(),z=P(j);x(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return _()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},M=t=>{var a=w();const v=A(()=>o()[0]);var g=P(a);x(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return _()},get params(){return d().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};O(k,t=>{o()[1]?t(K):t(M,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(T))),p(n,l)};O(v,n=>{i(L)&&n(g)})}tt(a),p(t,a)};O(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return d()},set page(t){d(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return _()},set form(t){_(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}N(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.BFSnXoIO.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.CVSz_gq-.js"),__vite__mapDeps([5,2,6,3,7,8]),import.meta.url),()=>E(()=>import("../nodes/2.BTuwgXLq.js"),__vite__mapDeps([9,10,3,2,11,4,6,7,8,1]),import.meta.url),()=>E(()=>import("../nodes/3.DG2GcCKm.js"),__vite__mapDeps([12,2,4,3,11,10,6,7,8,1,13,14]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([s,e])=>[s,e.decode])),Pt=!1,yt=(s,e)=>ut[s](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/BZPD6_qr.js";export{o as load_css,r as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as a}from"../chunks/
|
|
1
|
+
import{P as a}from"../chunks/DJZcw4Ms.js";import"../chunks/NZTpNUN0.js";import{c as r,p as l,I as c,a as p,L as u,b as d,d as h,v as f}from"../chunks/TMezqz9A.js";import{p as g}from"../chunks/CfQtRUjK.js";const v=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),y=["baselcitygpt"],m=async()=>{const n=await v().catch(e=>(console.error("Error fetching org names:",e),[]));n.push("liipgpt");const i=n.map(e=>y.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(i)},b=`/**
|
|
2
2
|
* @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
|
|
3
3
|
*/
|
|
4
4
|
const CHAT_CONFIG_OVERRIDE = {
|
|
@@ -14,6 +14,7 @@ const CHAT_CONFIG_OVERRIDE = {
|
|
|
14
14
|
// translations: {},
|
|
15
15
|
// theme: {},
|
|
16
16
|
// renderKatex: true, // will use katex to render formulas
|
|
17
|
+
// reflectLanguageInPath: true,
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
|
|
@@ -55,4 +56,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
|
|
|
55
56
|
</g>
|
|
56
57
|
</svg>
|
|
57
58
|
</div>
|
|
58
|
-
`,C={"api-org":{type:"string",values:[],value:"liipgpt",description:"Select the organization to to get the API URL"},"prod-api":{type:"boolean",value:!1,description:"Select to use the production API URL"},"api-url":{type:"string",required:!0,value:a,description:"URL of the API endpoint."},lang:{type:"string",values:["en","de","fr","it"],value:"en",description:"This property allows the parent page of the chat to control the chat language. This is useful if the parent page should drive the language selection."},flyout:{type:"boolean",value:!1,description:"If set the chat will be put in a default flyout container."},"flyout-style":{type:"string",value:"width: 400px; height: 600px;",description:"This is the style attribute of the flyout container. With this the flyout size and position can be customized."},"flyout-class":{type:"string",value:"custom-flyout-class",description:"This is the class attribute of the flyout container. With this the flyout size and position can be customized."},"loader-background":{type:"string",value:"linear-gradient(0deg, #1B181E 0%, #2A2440 90%)",description:"This is the background color of the loading spinner."},"loader-color":{type:"string",value:"#9C92EE",description:"This is the color of the loading spinner."},"custom-loader":{type:"string",value:w,description:"This is an example how you can provide a custom loading spinner when the chat is loading."},onclosechat:{type:"string",value:'document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));',description:"This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners."},cdn:{type:"boolean",value:!0,description:"When set, a fixed CDN URL will be used. Instead of providing the code from the backend."},CHAT_CONFIG_OVERRIDE:{type:"string",value:b,description:"This is only for demo purposes and should not be used in production. RELOAD the page to see the effects."},"show-components":{type:"boolean",value:!1,description:"Previews all the components for designing purposes."},"show-link-button":{type:"boolean",value:!1,description:"Previews the button as a link to an external page"}},
|
|
59
|
+
`,C={"api-org":{type:"string",values:[],value:"liipgpt",description:"Select the organization to to get the API URL"},"prod-api":{type:"boolean",value:!1,description:"Select to use the production API URL"},"api-url":{type:"string",required:!0,value:a,description:"URL of the API endpoint."},lang:{type:"string",values:["en","de","fr","it"],value:"en",description:"This property allows the parent page of the chat to control the chat language. This is useful if the parent page should drive the language selection."},flyout:{type:"boolean",value:!1,description:"If set the chat will be put in a default flyout container."},"flyout-style":{type:"string",value:"width: 400px; height: 600px;",description:"This is the style attribute of the flyout container. With this the flyout size and position can be customized."},"flyout-class":{type:"string",value:"custom-flyout-class",description:"This is the class attribute of the flyout container. With this the flyout size and position can be customized."},"loader-background":{type:"string",value:"linear-gradient(0deg, #1B181E 0%, #2A2440 90%)",description:"This is the background color of the loading spinner."},"loader-color":{type:"string",value:"#9C92EE",description:"This is the color of the loading spinner."},"custom-loader":{type:"string",value:w,description:"This is an example how you can provide a custom loading spinner when the chat is loading."},onclosechat:{type:"string",value:'document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));',description:"This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners."},cdn:{type:"boolean",value:!0,description:"When set, a fixed CDN URL will be used. Instead of providing the code from the backend."},CHAT_CONFIG_OVERRIDE:{type:"string",value:b,description:"This is only for demo purposes and should not be used in production. RELOAD the page to see the effects."},"show-components":{type:"boolean",value:!1,description:"Previews all the components for designing purposes."},"show-link-button":{type:"boolean",value:!1,description:"Previews the button as a link to an external page"}},I=async()=>{const n=await m();let i=C;return i["api-org"].values=Object.keys(n),{optionsDefinition:i,apiUrls:n}},O=!1,x=!0,T=(n,i)=>{const e=structuredClone(n);return Object.entries(n).forEach(([t,o])=>{const s=i.get(t);o.type==="boolean"&&(e[t].required=!0),s!==null?(o.type==="boolean"&&(e[t].value=s!=="false"),o.type==="string"&&(e[t].value=String(s))):o.required?e[t].value=n[t].value:e[t].value=void 0}),e},_=async({url:n})=>{const{optionsDefinition:i,apiUrls:e}=await I(),t=T(i,n.searchParams);if(t["api-org"].value){const o=e[t["api-org"].value];t["api-url"].value=t["prod-api"].value?o.prod:o.dev}return{optionsDefinition:i,options:t}},L=Object.freeze(Object.defineProperty({__proto__:null,load:_,prerender:x,ssr:O},Symbol.toStringTag,{value:"Module"}));function E(n,i){l(i,!0);let e=g(i,"children",7);var t=c(),o=p(t);return u(o,e),d(n,t),h({get children(){return e()},set children(s){e(s),f()}})}r(E,{children:{}},[],[],!0);export{E as component,L as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/NZTpNUN0.js";import{i as c,p as r}from"../chunks/
|
|
1
|
+
import"../chunks/NZTpNUN0.js";import{i as c,p as r}from"../chunks/DANiOd5E.js";import{c as h,p as l,f as u,a as _,t as v,b as g,d,e as s,r as p,s as x,g as o}from"../chunks/TMezqz9A.js";var b=u("<h1> </h1> <p> </p>",1);function E(m,i){l(i,!1),c();var a=b(),t=_(a),f=s(t,!0);p(t);var e=x(t,2),n=s(e,!0);p(e),v(()=>{o(f,r.status),o(n,r.error?.message)}),g(m,a),d()}h(E,{},[],[],!0);export{E as component};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/
|
|
2
|
-
import{i as z,_ as vt,b as ht}from"../chunks/Cgm2UlUC.js";import"../chunks/NZTpNUN0.js";import{c as K,p as xe,f as x,s as e,e as i,t as V,b as l,d as qe,v as te,r as t,g as ke,N as ie,u as Q,o as Ft,aI as _t,I as M,a as I,G as s,H as F,aH as Ht,aJ as we,K as gt,aK as mt,J as jt,O as bt}from"../chunks/TMezqz9A.js";import{a as ne,s as W,d as yt,n as o,e as $,i as N,I as ee,o as At,C as wt,t as Ot,p as Rt,S as n,q as Gt,P as fe,R as _e,r as ye,N as Jt,u as Ut,v as Zt,w as $t,f as Nt,M as Qt,x as Vt,y as ft,h as Wt,z as Kt}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DTEQ1xM_.js","../chunks/NZTpNUN0.js","../chunks/TMezqz9A.js","../chunks/CfQtRUjK.js","../chunks/DxRCLLL2.js","../chunks/Cgm2UlUC.js","../chunks/DS-tNX5D.js","../chunks/DANiOd5E.js","../chunks/BZPD6_qr.js","../chunks/DvEdoyY3.js","../chunks/DJZcw4Ms.js","../chunks/BLE4Sq-A.js","../chunks/DaOZ5688.js","../chunks/CQ6VxnO_.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as z,_ as vt,b as ht}from"../chunks/Cgm2UlUC.js";import"../chunks/NZTpNUN0.js";import{c as K,p as xe,f as x,s as e,e as i,t as V,b as l,d as qe,v as te,r as t,g as ke,N as ie,u as Q,o as Ft,aI as _t,I as M,a as I,G as s,H as F,aH as Ht,aJ as we,K as gt,aK as mt,J as jt,O as bt}from"../chunks/TMezqz9A.js";import{a as ne,s as W,d as yt,n as o,e as $,i as N,I as ee,o as At,C as wt,t as Ot,p as Rt,S as n,q as Gt,P as fe,R as _e,r as ye,N as Jt,u as Ut,v as Zt,w as $t,f as Nt,M as Qt,x as Vt,y as ft,h as Wt,z as Kt}from"../chunks/DS-tNX5D.js";import{p as ae,s as Yt,r as Xt}from"../chunks/CfQtRUjK.js";import{g as ei}from"../chunks/BZPD6_qr.js";import{p as ti}from"../chunks/DANiOd5E.js";var ii=x('<div class="swatch svelte-18q4g20"><div class="swatch__color svelte-18q4g20"></div> <div class="swatch__label svelte-18q4g20"> </div></div>');const ai={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 se(h,d){xe(d,!1),ne(h,ai);let f=ae(d,"name",12),c=ae(d,"key",12),T=ae(d,"value",12);var _=ii(),E=i(_),P=e(E,2),j=i(P,!0);return t(P),t(_),V(()=>{W(_,"title",`Color ${c()}: ${T()}`),yt(E,`background-color: var(--color-${f()??""}-${c()??""});`),ke(j,c())}),l(h,_),qe({get name(){return f()},set name(g){f(g),te()},get key(){return c()},set key(g){c(g),te()},get value(){return T()},set value(g){T(g),te()}})}K(se,{name:{},key:{},value:{}},[],[],!0);var si=x('<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=si();l(h,d)}K(kt,{},[],[],!0);var ni=x(`<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
|
|
@@ -23,8 +23,8 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
|
|
|
23
23
|
<p>Zusätzlich gibt es auch Inhalte über <strong>Debugging von E-Mails auf einem Staging-Server</strong>, die einfache Lösungen für Testumgebungen bieten <liipgpt-reference-number data-source="{"url":"https://www.liip.ch/en/blog/debugging-email-on-staging-server","considered":true,"referencesIndex":{"all":2,"used":2},"display":{"card":{"title":"Debugging Email on Staging Server · Blog","description":"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.","badge":"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},"listItem":{"title":"Debugging Email on Staging Server · Blog","badge":"www.liip.ch"}}}" data-used-index="2" data-all-index="2"></liipgpt-reference-number>. </p>
|
|
24
24
|
<p>Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen! </p>
|
|
25
25
|
`},references:{used:[{url:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks",considered:!0,score:.9,metadata:{},referenceIndex:{all:3,used:1},display:{card:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",description:"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.",badge:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},listItem:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/debugging-email-on-staging-server",considered:!0,score:.9,metadata:{},referenceIndex:{all:2,used:2},display:{card:{title:"Debugging Email on Staging Server · Blog",description:"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.",badge:"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},listItem:{title:"Debugging Email on Staging Server · Blog",badge:"www.liip.ch"}}}],all:[{url:"https://www.liip.ch/en/blog/little-test",considered:!0,referenceIndex:{all:0},score:.9,metadata:{},display:{card:{title:"little test · Blog",description:"The text appears to be a placeholder or test entry on a blog, lacking substantive content or context.",badge:"https://www.liip.ch/en/blog/little-test"},listItem:{title:"little test · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem",considered:!0,score:.9,metadata:{},referenceIndex:{all:1},display:{card:{title:"How a simple solution alleviated a complex problem · Blog",description:"A developer shares their experience of addressing the issue of insufficient test coverage in a Symfony application by implementing a script that monitors routing changes, thereby enhancing the stability of the API without extensive resource investment.",badge:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem"},listItem:{title:"How a simple solution alleviated a complex problem · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/debugging-email-on-staging-server",considered:!0,score:.9,metadata:{},referenceIndex:{all:2,used:2},display:{card:{title:"Debugging Email on Staging Server · Blog",description:"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.",badge:"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},listItem:{title:"Debugging Email on Staging Server · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks",considered:!0,referenceIndex:{all:3,used:1},score:.9,metadata:{},display:{card:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",description:"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.",badge:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},listItem:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",badge:"www.liip.ch"}}}],unused:[{url:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem",considered:!0,score:.9,metadata:{},referenceIndex:{all:1},display:{card:{title:"How a simple solution alleviated a complex problem · Blog",description:"A developer shares their experience of addressing the issue of insufficient test coverage in a Symfony application by implementing a script that monitors routing changes, thereby enhancing the stability of the API without extensive resource investment.",badge:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem"},listItem:{title:"How a simple solution alleviated a complex problem · Blog",badge:"www.liip.ch"}}}]},id:"eb8a0123-5143-46e2-8e23-d4e6a76a8ebb"}];var li=x('<link rel="stylesheet"/>'),di=x("<!> <!> <!> <!> <!>",1),ci=x('<div class="context-menu svelte-33lsek"><!></div>'),ui=x('<div class="chat-app__loader-container">Loading...</div>'),pi=x(`<div class="container text-container" style="padding-top: 100px;"><h1>Base</h1> <p>This text has the configured text color. This <a href="https://www.liip.ch">anchor</a> has the configured anchor color. This page has the configured background color.</p> <h2 class="h3">Colors</h2> <h3 class="h4">Brand Colors</h3> <div class="color-swatches svelte-33lsek"><!></div> <h3 class="h4">Highlight Colors (optional)</h3> <div class="color-swatches svelte-33lsek"><!></div> <h3 class="h4">Grey Colors</h3> <div class="color-swatches svelte-33lsek"><!></div></div> <div class="container text-container"><hr/> <h1>Abstractions</h1> <p>The following elements are not components, but abstractions only. Their properties are defined in the configuration
|
|
26
|
-
files and are applied to the components that need them.</p> <div class="card transition-colors svelte-33lsek">Card</div></div> <div class="container text-container"><hr/> <h1>Components</h1> <h2>Buttons</h2> <div><div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><button class="btn btn--primary">Primary</button> <button class="btn btn--secondary">Secondary</button> <button class="btn btn--tertiary">Tertiary
|
|
26
|
+
files and are applied to the components that need them.</p> <div class="card transition-colors svelte-33lsek">Card</div></div> <div class="container text-container"><hr/> <h1>Components</h1> <h2>Buttons</h2> <div><div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><button class="btn btn--primary">Primary</button> <button class="btn btn--secondary">Secondary</button> <button class="btn btn--tertiary">Tertiary</button></div> <div style="display: flex; gap: 1rem;"><button class="btn btn--primary" disabled>Primary</button> <button class="btn btn--secondary" disabled>Secondary</button> <button class="btn btn--tertiary" disabled>Tertiary</button></div></div> <h2>Avatars</h2> <div style="display: flex; gap: 1rem;"><!> <!></div> <h2>ChatInput</h2> <!> <div class="predefined-questions"><!> <!> <!></div> <h2>References</h2> <div class="references__container svelte-33lsek"><div class="references__items"><!> <!> <!></div></div> <div><p>hover over the reference number to see the tooltip: <liipgpt-reference-number></liipgpt-reference-number> .</p></div> <div style="position: relative;"><a class="reference-number__content transition-colors no-link-styling" href="https://www.liip.ch" target="_blank" rel="noopener noreferrer"><span class="reference__header"><h3 class="reference__title h4">Reference tooltip example</h3> <!></span> <span class="reference__description line-clamp line-clamp--12">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et
|
|
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-33lsek"><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-33lsek"><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-33lsek"></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),vi=x('<main class="chat-app svelte-33lsek"><!> <div class="chat-app__container svelte-33lsek"><div class="chat-app__main svelte-33lsek"><!></div></div></main>');const hi={hash:"svelte-33lsek",code:`.color-swatches.svelte-33lsek {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-33lsek,
|
|
28
|
-
.chat-app__container.svelte-33lsek {width:100%;height:100%;background:var(--body-background);}.chat-page__messages.svelte-33lsek {min-height:auto;padding-bottom:200px;}.context-menu.svelte-33lsek {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__container.svelte-33lsek {overflow-y:auto;}.chat-app__main.svelte-33lsek {background:transparent;}.card.svelte-33lsek {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-33lsek {position:relative;top:0;left:0;transform:none;}.references__container.svelte-33lsek {background-color:var(--aside-background);}.context-box__content.svelte-33lsek {position:relative;}`};function qt(h,d){xe(d,!0),ne(h,hi);let f=ae(d,"data",7),c=F(()=>o.t);Q(()=>{const r={lang:f().options.lang.value,forceTheme:f().options?.["force-theme"]?.value,apiUrl:f().options["api-url"].value,features:""};Ft(()=>o.init(r).catch(a=>{console.error("Failed to init chat logic",a)}))});const T=ri;var _=vi();_t(r=>{var a=M(),u=I(a);{var w=y=>{var q=di(),p=I(q);$(p,17,()=>o.themeBase.fontURLs??[],N,(L,O)=>{var H=li();V(()=>W(H,"href",s(O))),l(L,H)});var m=e(p,2);ee(m,{id:"font-css",get css(){return o.themeBase.fontCSS}});var k=e(m,2);{let L=F(()=>Nt(o.theme));ee(k,{id:"theme-css",get css(){return s(L)}})}var v=e(k,2);ee(v,{id:"app-css",get css(){return At}});var C=e(v,2);ee(C,{id:"custom-css",get css(){return o.themeBase.customCSS}}),l(y,q)};z(u,y=>{o.initialized&&y(w)})}l(r,a)});let E;var P=i(_);{var j=r=>{var a=ci(),u=i(a);wt(u,{get chatLogic(){return o}}),t(a),l(r,a)};z(P,r=>{o.initialized&&r(j)})}var g=e(P,2),D=i(g),Y=i(D);{var A=r=>{var a=ui();Ot(2,a,()=>Rt,()=>({duration:200,delay:300})),l(r,a)},X=r=>{var a=pi(),u=I(a),w=e(i(u),8),y=i(w);{var q=b=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(o.theme.colors.brand),N,(G,J)=>{var B=F(()=>we(s(J),2));let U=()=>s(B)[0],Z=()=>s(B)[1];se(G,{name:"brand",get key(){return U()},get value(){return Z()}})}),l(b,S)};z(y,b=>{o.theme.colors?.brand&&b(q)})}t(w);var p=e(w,4),m=i(p);{var k=b=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(o.theme.colors.highlight),N,(G,J)=>{var B=F(()=>we(s(J),2));let U=()=>s(B)[0],Z=()=>s(B)[1];se(G,{name:"highlight",get key(){return U()},get value(){return Z()}})}),l(b,S)};z(m,b=>{o.theme?.colors?.highlight&&b(k)})}t(p);var v=e(p,4),C=i(v);{var L=b=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(o.theme.colors.grey),N,(G,J)=>{var B=F(()=>we(s(J),2));let U=()=>s(B)[0],Z=()=>s(B)[1];se(G,{name:"grey",get key(){return U()},get value(){return Z()}})}),l(b,S)};z(C,b=>{o.theme?.colors?.grey&&b(L)})}t(v),t(u);var O=e(u,4),H=e(i(O),10),Ce=i(H);n(Ce,{name:"avatar",class:"introduction__avatar"});var Ct=e(Ce,2);n(Ct,{name:"avatar",class:"message__bot-avatar"}),t(H);var Se=e(H,4);Gt(Se,{onSubmit:()=>{}});var oe=e(Se,2),Ie=i(oe);fe(Ie,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{}});var Le=e(Ie,2);fe(Le,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{}});var St=e(Le,2);fe(St,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{}}),t(oe);var re=e(oe,4),ze=i(re),Te=i(ze);_e(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);_e(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 It=e(Be,2);_e(It,{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}}}),t(ze),t(re);var le=e(re,2),Me=i(le),de=e(i(Me));ye(de,"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"}}})),ye(de,"data-used-index","1"),ye(de,"data-all-index","3"),ie(),t(Me),t(le);var ce=e(le,2),Ee=i(ce),Pe=i(Ee),Lt=e(i(Pe),2);n(Lt,{name:"externalLink",class:"reference__icon transition-colors"}),t(Pe),ie(4),t(Ee),t(ce);var ue=e(ce,4),De=i(ue),Fe=i(De);Jt(Fe,{});var He=e(Fe,2);wt(He,{get chatLogic(){return o}});var je=e(He,2);Ut(je,{get logic(){return o}});var zt=e(je,2);Zt(zt,{onclick:()=>{}}),t(De),t(ue);var Ae=e(ue,8),Oe=e(i(Ae),2),pe=i(Oe),Re=i(pe);$t(Re,{get classificationConfig(){return o.data.chatConfig.classification},impact:0,quality:0});var ve=e(Re,2),he=i(ve),Tt=i(he,!0);t(he);var Bt=e(he,2);t(ve);var Ge=e(ve,2),ge=i(Ge),Mt=i(ge,!0);t(ge);var Et=e(ge,2);t(Ge),t(pe),t(Oe),t(Ae),ie(4),t(O);var me=e(O,2),Pt=e(i(me),4);kt(Pt),t(me);var be=e(me,4);$(be,21,()=>T,N,(b,S)=>{Qt(b,{get message(){return s(S)},get logic(){return o},onmessageupdate:()=>{}})}),t(be);var Je=e(be,2),Ue=e(i(Je),4);xt(Ue);var Ze=e(Ue,6),$e=i(Ze);n($e,{name:"predefinedQuestion"});var Ne=e($e,2);n(Ne,{name:"edit"});var Qe=e(Ne,2);n(Qe,{name:"newConversation"});var Ve=e(Qe,2);n(Ve,{name:"voteUp"});var We=e(Ve,2);n(We,{name:"voteDown"});var Ke=e(We,2);n(Ke,{name:"retry"});var Ye=e(Ke,2);n(Ye,{name:"message"});var Xe=e(Ye,2);n(Xe,{name:"thread"});var et=e(Xe,2);n(et,{name:"submit"});var tt=e(et,2);n(tt,{name:"expand"});var it=e(tt,2);n(it,{name:"help"});var at=e(it,2);n(at,{name:"attach"});var st=e(at,2);n(st,{name:"record"});var nt=e(st,2);n(nt,{name:"reward"});var ot=e(nt,2);n(ot,{name:"share"});var rt=e(ot,2);n(rt,{name:"audio"});var lt=e(rt,2);n(lt,{name:"copy"});var dt=e(lt,2);n(dt,{name:"dismiss"});var ct=e(dt,2);n(ct,{name:"menu"});var ut=e(ct,2);n(ut,{name:"listUnordered"});var pt=e(ut,2);n(pt,{name:"lightMode"});var Dt=e(pt,2);n(Dt,{name:"darkMode"}),t(Ze),t(Je),V(()=>{ke(Tt,s(c).feedbackFormMessage),W(Bt,"placeholder",s(c).feedbackFormMessagePlaceholder),ke(Mt,s(c).feedbackFormEmail),W(Et,"placeholder",s(c).feedbackFormEmailPlaceholder)}),Ht("submit",pe,async()=>{}),l(r,a)};z(Y,r=>{o.initialized?r(X,!1):r(A)})}return t(D),t(g),t(_),V(r=>E=yt(_,"",E,r),[()=>({"color-scheme":o.colorScheme})]),l(h,_),qe({get data(){return f()},set data(r){f(r),te()}})}K(qt,{data:{}},[],[],!0);var gi=x('<div id="chat-wrapper" class="svelte-1h9zc1h"><div></div> <!> <div></div></div>'),mi=x('<div id="preview" class="svelte-1h9zc1h"><iframe title="sidebar" id="sidebar" class="svelte-1h9zc1h"></iframe> <!></div>');const bi={hash:"svelte-1h9zc1h",code:`html,
|
|
28
|
+
.chat-app__container.svelte-33lsek {width:100%;height:100%;background:var(--body-background);}.chat-page__messages.svelte-33lsek {min-height:auto;padding-bottom:200px;}.context-menu.svelte-33lsek {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__container.svelte-33lsek {overflow-y:auto;}.chat-app__main.svelte-33lsek {background:transparent;}.card.svelte-33lsek {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-33lsek {position:relative;top:0;left:0;transform:none;}.references__container.svelte-33lsek {background-color:var(--aside-background);}.context-box__content.svelte-33lsek {position:relative;}`};function qt(h,d){xe(d,!0),ne(h,hi);let f=ae(d,"data",7),c=F(()=>o.t);Q(()=>{const r={lang:f().options.lang.value,forceTheme:f().options?.["force-theme"]?.value,apiUrl:f().options["api-url"].value,features:""};Ft(()=>o.init(r).catch(a=>{console.error("Failed to init chat logic",a)}))});const T=ri;var _=vi();_t(r=>{var a=M(),u=I(a);{var w=y=>{var q=di(),p=I(q);$(p,17,()=>o.themeBase.fontURLs??[],N,(L,O)=>{var H=li();V(()=>W(H,"href",s(O))),l(L,H)});var m=e(p,2);ee(m,{id:"font-css",get css(){return o.themeBase.fontCSS}});var k=e(m,2);{let L=F(()=>Nt(o.theme));ee(k,{id:"theme-css",get css(){return s(L)}})}var v=e(k,2);ee(v,{id:"app-css",get css(){return At}});var C=e(v,2);ee(C,{id:"custom-css",get css(){return o.themeBase.customCSS}}),l(y,q)};z(u,y=>{o.initialized&&y(w)})}l(r,a)});let E;var P=i(_);{var j=r=>{var a=ci(),u=i(a);wt(u,{get chatLogic(){return o}}),t(a),l(r,a)};z(P,r=>{o.initialized&&r(j)})}var g=e(P,2),D=i(g),Y=i(D);{var A=r=>{var a=ui();Ot(2,a,()=>Rt,()=>({duration:200,delay:300})),l(r,a)},X=r=>{var a=pi(),u=I(a),w=e(i(u),8),y=i(w);{var q=b=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(o.theme.colors.brand),N,(G,J)=>{var B=F(()=>we(s(J),2));let U=()=>s(B)[0],Z=()=>s(B)[1];se(G,{name:"brand",get key(){return U()},get value(){return Z()}})}),l(b,S)};z(y,b=>{o.theme.colors?.brand&&b(q)})}t(w);var p=e(w,4),m=i(p);{var k=b=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(o.theme.colors.highlight),N,(G,J)=>{var B=F(()=>we(s(J),2));let U=()=>s(B)[0],Z=()=>s(B)[1];se(G,{name:"highlight",get key(){return U()},get value(){return Z()}})}),l(b,S)};z(m,b=>{o.theme?.colors?.highlight&&b(k)})}t(p);var v=e(p,4),C=i(v);{var L=b=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(o.theme.colors.grey),N,(G,J)=>{var B=F(()=>we(s(J),2));let U=()=>s(B)[0],Z=()=>s(B)[1];se(G,{name:"grey",get key(){return U()},get value(){return Z()}})}),l(b,S)};z(C,b=>{o.theme?.colors?.grey&&b(L)})}t(v),t(u);var O=e(u,4),H=e(i(O),10),Ce=i(H);n(Ce,{name:"avatar",class:"introduction__avatar"});var Ct=e(Ce,2);n(Ct,{name:"avatar",class:"message__bot-avatar"}),t(H);var Se=e(H,4);Gt(Se,{onSubmit:()=>{}});var oe=e(Se,2),Ie=i(oe);fe(Ie,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{}});var Le=e(Ie,2);fe(Le,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{}});var St=e(Le,2);fe(St,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{}}),t(oe);var re=e(oe,4),ze=i(re),Te=i(ze);_e(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);_e(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 It=e(Be,2);_e(It,{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}}}),t(ze),t(re);var le=e(re,2),Me=i(le),de=e(i(Me));ye(de,"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"}}})),ye(de,"data-used-index","1"),ye(de,"data-all-index","3"),ie(),t(Me),t(le);var ce=e(le,2),Ee=i(ce),Pe=i(Ee),Lt=e(i(Pe),2);n(Lt,{name:"externalLink",class:"reference__icon transition-colors"}),t(Pe),ie(4),t(Ee),t(ce);var ue=e(ce,4),De=i(ue),Fe=i(De);Jt(Fe,{});var He=e(Fe,2);wt(He,{get chatLogic(){return o}});var je=e(He,2);Ut(je,{get logic(){return o}});var zt=e(je,2);Zt(zt,{onclick:()=>{}}),t(De),t(ue);var Ae=e(ue,8),Oe=e(i(Ae),2),pe=i(Oe),Re=i(pe);$t(Re,{get classificationConfig(){return o.data.chatConfig.classification},impact:0,quality:0});var ve=e(Re,2),he=i(ve),Tt=i(he,!0);t(he);var Bt=e(he,2);t(ve);var Ge=e(ve,2),ge=i(Ge),Mt=i(ge,!0);t(ge);var Et=e(ge,2);t(Ge),t(pe),t(Oe),t(Ae),ie(4),t(O);var me=e(O,2),Pt=e(i(me),4);kt(Pt),t(me);var be=e(me,4);$(be,21,()=>T,N,(b,S)=>{Qt(b,{get message(){return s(S)},get logic(){return o},onmessageupdate:()=>{},onbotmessageinit:()=>{}})}),t(be);var Je=e(be,2),Ue=e(i(Je),4);xt(Ue);var Ze=e(Ue,6),$e=i(Ze);n($e,{name:"predefinedQuestion"});var Ne=e($e,2);n(Ne,{name:"edit"});var Qe=e(Ne,2);n(Qe,{name:"newConversation"});var Ve=e(Qe,2);n(Ve,{name:"voteUp"});var We=e(Ve,2);n(We,{name:"voteDown"});var Ke=e(We,2);n(Ke,{name:"retry"});var Ye=e(Ke,2);n(Ye,{name:"message"});var Xe=e(Ye,2);n(Xe,{name:"thread"});var et=e(Xe,2);n(et,{name:"submit"});var tt=e(et,2);n(tt,{name:"expand"});var it=e(tt,2);n(it,{name:"help"});var at=e(it,2);n(at,{name:"attach"});var st=e(at,2);n(st,{name:"record"});var nt=e(st,2);n(nt,{name:"reward"});var ot=e(nt,2);n(ot,{name:"share"});var rt=e(ot,2);n(rt,{name:"audio"});var lt=e(rt,2);n(lt,{name:"copy"});var dt=e(lt,2);n(dt,{name:"dismiss"});var ct=e(dt,2);n(ct,{name:"menu"});var ut=e(ct,2);n(ut,{name:"listUnordered"});var pt=e(ut,2);n(pt,{name:"lightMode"});var Dt=e(pt,2);n(Dt,{name:"darkMode"}),t(Ze),t(Je),V(()=>{ke(Tt,s(c).feedbackFormMessage),W(Bt,"placeholder",s(c).feedbackFormMessagePlaceholder),ke(Mt,s(c).feedbackFormEmail),W(Et,"placeholder",s(c).feedbackFormEmailPlaceholder)}),Ht("submit",pe,async()=>{}),l(r,a)};z(Y,r=>{o.initialized?r(X,!1):r(A)})}return t(D),t(g),t(_),V(r=>E=yt(_,"",E,r),[()=>({"color-scheme":o.colorScheme})]),l(h,_),qe({get data(){return f()},set data(r){f(r),te()}})}K(qt,{data:{}},[],[],!0);var gi=x('<div id="chat-wrapper" class="svelte-1h9zc1h"><div></div> <!> <div></div></div>'),mi=x('<div id="preview" class="svelte-1h9zc1h"><iframe title="sidebar" id="sidebar" class="svelte-1h9zc1h"></iframe> <!></div>');const bi={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 wi(h,d){xe(d,!0),ne(h,bi);let f=Xt(d,["$$slots","$$events","$$legacy","$$host"]),c=F(()=>d.data);Q(()=>{window.onmessage=function(a){if(typeof a.data=="string"&&a.data.startsWith("liipgpt-url:")){const u=new URLSearchParams(a.data.replace("liipgpt-url:",""));ei("?"+u.toString(),{replaceState:!0})}}});const T=a=>`/build/${a}/liipgpt-${a}.iife.js`,_=async a=>{a==="build"&&(await import(T("chat")),await import(T("button"))),a==="dev"&&(await vt(()=>import("../chunks/
|
|
30
|
+
/* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function wi(h,d){xe(d,!0),ne(h,bi);let f=Xt(d,["$$slots","$$events","$$legacy","$$host"]),c=F(()=>d.data);Q(()=>{window.onmessage=function(a){if(typeof a.data=="string"&&a.data.startsWith("liipgpt-url:")){const u=new URLSearchParams(a.data.replace("liipgpt-url:",""));ei("?"+u.toString(),{replaceState:!0})}}});const T=a=>`/build/${a}/liipgpt-${a}.iife.js`,_=async a=>{a==="build"&&(await import(T("chat")),await import(T("button"))),a==="dev"&&(await vt(()=>import("../chunks/DTEQ1xM_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),await vt(()=>import("../chunks/CQ6VxnO_.js"),__vite__mapDeps([13,1,2,3,12,5,6,7,8,9,10,11]),import.meta.url)),a==="server"&&(import(ft(d.data.options,"chat")),import(ft(d.data.options,"button")))};let E="server",P=F(()=>d.data.options?.["preview-mode"]?.value??E);Q(()=>{_(s(P))});const j=`./sidebar${ti.url.search}`;let g=gt(void 0),D=gt(void 0);const Y=(a,u)=>{const w=document.createElement("script"),y=document.createTextNode(u);w.appendChild(y),a.replaceChildren(w)};Q(()=>{s(g)&&Y(s(g),s(c).options.CHAT_CONFIG_OVERRIDE.value||"")}),Q(()=>{s(D)&&Y(s(D),s(c).options.onclosechat.value||"")});var A=mi();_t(a=>{var u=M(),w=I(u);{var y=q=>{var p=M(),m=I(p);{var k=C=>{mt.title="LiipGPT Configurator | Components"},v=C=>{mt.title="LiipGPT Configurator"};z(m,C=>{s(c).options["show-components"].value?C(k):C(v,!1)},!0)}l(q,p)};z(w,q=>{q(y,!1)})}l(a,u)});var X=i(A),r=e(X,2);Vt(r,()=>s(c),a=>{var u=M(),w=I(u);{var y=p=>{var m=M(),k=I(m);jt(k,{onerror:v=>console.error("Rendering error of components",v)},v=>{qt(v,Yt(()=>f))}),l(p,m)},q=p=>{var m=gi(),k=i(m);ht(k,L=>bt(g,L),()=>s(g));var v=e(k,2);Wt(v,()=>Kt(s(c).options));var C=e(v,2);ht(C,L=>bt(D,L),()=>s(D)),t(m),l(p,m)};z(w,p=>{s(c).options["show-components"].value?p(y):p(q,!1)})}l(a,u)}),t(A),V(()=>W(X,"src",j)),l(h,A),qe()}K(wi,{},[],[],!0);export{wi as component};
|