@liip/liipgpt 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/button/liipgpt-button.iife.js +175 -172
  2. package/chat/liipgpt-chat.iife.js +201 -198
  3. package/config/index.cjs +30 -6
  4. package/config/index.d.ts +2591 -185
  5. package/config/index.js +30 -6
  6. package/configurator/_app/env.js +1 -1
  7. package/configurator/_app/immutable/chunks/BnCAkRMw.js +1 -0
  8. package/configurator/_app/immutable/chunks/C1CVfDcA.js +209 -0
  9. package/configurator/_app/immutable/chunks/{Daj9x7sZ.js → C7ucs8kz.js} +1 -1
  10. package/configurator/_app/immutable/chunks/{ChcTJagy.js → DNNNN9KC.js} +2 -2
  11. package/configurator/_app/immutable/chunks/DuQTZe3l.js +1 -0
  12. package/configurator/_app/immutable/chunks/{D-Dn-KSg.js → DwsPRhVz.js} +1 -1
  13. package/configurator/_app/immutable/chunks/{pxprCMm0.js → PdZf4Jij.js} +1 -1
  14. package/configurator/_app/immutable/chunks/dZVw-Q0d.js +228 -0
  15. package/configurator/_app/immutable/chunks/{BtLfsQWl.js → lMON6K8G.js} +1 -1
  16. package/configurator/_app/immutable/entry/{app.B4WSrzpv.js → app.CdFUjOEM.js} +2 -2
  17. package/configurator/_app/immutable/entry/start.CnM-eUb6.js +1 -0
  18. package/configurator/_app/immutable/nodes/{0.B7euNXzq.js → 0.-WsI4DHZ.js} +1 -1
  19. package/configurator/_app/immutable/nodes/{1.C9w5e9w0.js → 1.CbwRpfkr.js} +1 -1
  20. package/configurator/_app/immutable/nodes/2.DbP2H5Hu.js +30 -0
  21. package/configurator/_app/immutable/nodes/{3.BaHVKKga.js → 3.CrU_53hy.js} +8 -8
  22. package/configurator/_app/version.json +1 -1
  23. package/configurator/index.html +6 -6
  24. package/configurator/sidebar.html +6 -6
  25. package/index.cjs +30 -6
  26. package/index.d.ts +4233 -333
  27. package/index.js +30 -6
  28. package/package.json +1 -1
  29. package/configurator/_app/immutable/chunks/BWd1KRA2.js +0 -67
  30. package/configurator/_app/immutable/chunks/CBFTM35p.js +0 -367
  31. package/configurator/_app/immutable/chunks/CP9-4jcs.js +0 -1
  32. package/configurator/_app/immutable/chunks/LjIoA1Wm.js +0 -1
  33. package/configurator/_app/immutable/entry/start.GK6q9XMZ.js +0 -1
  34. package/configurator/_app/immutable/nodes/2.CWOgfthk.js +0 -28
@@ -1 +0,0 @@
1
- import"./NZTpNUN0.js";import{av as Rt,o as ot,aN as Re,p as te,I as Q,a as q,b as d,d as re,v as b,L as ie,G as t,H as z,f as M,e as v,r as u,F as we,c as ae,O as T,K as V,ab as Tt,s as F,aL as At,t as J,aH as le,g as ce,M as st,u as de,aO as qe,aI as It}from"./TMezqz9A.js";import{i as H,c as ue,b as ge}from"./Cgm2UlUC.js";import{G as Bt,H as oe,J as me,K as be,L as Te,O as qt,Q as Lt,T as He,U as Ht,V as zt,W as ze,X as $e,Y as $t,Z as jt,_ as Xe,$ as Kt,a0 as Wt,a1 as Me,a2 as Qt,n as g,a3 as Ze,a4 as Vt,a5 as Yt,a6 as Ut,t as se,a7 as je,a8 as Gt,S as Se,a9 as ke,v as Jt,z as Xt,aa as et,h as Ee,s as ve,a as it,e as pe,i as _e,q as lt,b as ye,ab as Zt,M as er,E as Le,ac as tr,ad as rr,ae as ct,af as dt,ag as ut,c as Ke,d as Ae,w as vt,p as We,ah as tt,R as rt,ai as ar,P as nr,I as Oe,o as ft,aj as or,ak as at,al as sr,f as ir,am as lr,an as cr,N as dr,ao as ur,C as vr,u as fr}from"./CBFTM35p.js";import{p as y,r as xe,s as ht}from"./CfQtRUjK.js";import{t as hr}from"./BWd1KRA2.js";import{O as gr}from"./LjIoA1Wm.js";class Qe{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,a){var r=this.#e.get(e)||new Set;return r.add(a),this.#e.set(e,r),this.#a().observe(e,this.#r),()=>{var n=this.#e.get(e);n.delete(a),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#a(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){Qe.entries.set(a.target,a);for(var r of this.#e.get(a.target)||[])r(a)}}))}}var pr=new Qe({box:"border-box"});function gt(C,e,a){var r=pr.observe(C,()=>a(C[e]));Rt(()=>(ot(()=>a(C[e])),r))}var _r=M("<div><!></div>");function pt(C,e){const a=Re();te(e,!0);let r=y(e,"id",23,()=>me(a)),n=y(e,"children",7),o=y(e,"child",7),i=y(e,"ref",15,null),l=xe(e,["$$slots","$$events","$$legacy","$$host","id","children","child","ref"]);const k=Bt.create({id:oe.with(()=>r()),ref:oe.with(()=>i(),_=>i(_))}),h=z(()=>Te(l,k.props));var f=Q(),D=q(f);{var x=_=>{var p=Q(),I=q(p);ie(I,o,()=>({props:t(h)})),d(_,p)},w=_=>{var p=_r();be(p,()=>({...t(h)}));var I=v(p);ie(I,()=>n()??we),u(p),d(_,p)};H(D,_=>{o()?_(x):_(w,!1)})}return d(C,f),re({get id(){return r()},set id(_=me(a)){r(_),b()},get children(){return n()},set children(_){n(_),b()},get child(){return o()},set child(_){o(_),b()},get ref(){return i()},set ref(_=null){i(_),b()}})}ae(pt,{id:{},children:{},child:{},ref:{}},[],[],!0);function _t(C,e){te(e,!0);let a=y(e,"children",7),r=y(e,"defaultPortalTo",7),n=y(e,"defaultLocale",7);qt({defaultPortalTo:oe.with(()=>r()),defaultLocale:oe.with(()=>n())});var o=Q(),i=q(o);return ie(i,()=>a()??we),d(C,o),re({get children(){return a()},set children(l){a(l),b()},get defaultPortalTo(){return r()},set defaultPortalTo(l){r(l),b()},get defaultLocale(){return n()},set defaultLocale(l){n(l),b()}})}ae(_t,{children:{},defaultPortalTo:{},defaultLocale:{}},[],[],!0);const Ve=jt({component:"collapsible",parts:["root","content","trigger"]}),Ye=new Lt("Collapsible.Root");class Ue{static create(e){return Ye.set(new Ue(e))}opts;attachment;#e=V(null);get contentNode(){return t(this.#e)}set contentNode(e){T(this.#e,e,!0)}#t=V(void 0);get contentId(){return t(this.#t)}set contentId(e){T(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=He(this.opts.ref),new Kt({ref:oe.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=z(()=>({id:this.opts.id.current,"data-state":$e(this.opts.open.current),"data-disabled":ze(this.opts.disabled.current),[Ve.root]:"",...this.attachment}));get props(){return t(this.#r)}set props(e){T(this.#r,e)}}class Ge{static create(e){return new Ge(e,Ye.get())}opts;root;attachment;#e=z(()=>this.opts.forceMount.current||this.root.opts.open.current);get present(){return t(this.#e)}set present(e){T(this.#e,e)}#t;#r=V(!1);#a=V(0);#n=V(0);constructor(e,a){this.opts=e,this.root=a,T(this.#r,a.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=He(this.opts.ref,r=>this.root.contentNode=r),Xe.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),Tt(()=>{const r=requestAnimationFrame(()=>{T(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),Xe([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Wt(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const n=r.getBoundingClientRect();if(T(this.#n,n.height,!0),T(this.#a,n.width,!0),!t(this.#r)){const{animationName:o,transitionDuration:i}=this.#t;r.style.transitionDuration=i,r.style.animationName=o}})})}#o=z(()=>({open:this.root.opts.open.current}));get snippetProps(){return t(this.#o)}set snippetProps(e){T(this.#o,e)}#s=z(()=>({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":$e(this.root.opts.open.current),"data-disabled":ze(this.root.opts.disabled.current),[Ve.content]:"",...this.attachment}));get props(){return t(this.#s)}set props(e){T(this.#s,e)}}class Je{static create(e){return new Je(e,Ye.get())}opts;root;attachment;#e=z(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,a){this.opts=e,this.root=a,this.attachment=He(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===Ht||e.key===zt)&&(e.preventDefault(),this.root.toggleOpen())}#t=z(()=>({id:this.opts.id.current,type:"button",disabled:t(this.#e),"aria-controls":this.root.contentId,"aria-expanded":$t(this.root.opts.open.current),"data-state":$e(this.root.opts.open.current),"data-disabled":ze(t(this.#e)),[Ve.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return t(this.#t)}set props(e){T(this.#t,e)}}var mr=M("<div><!></div>");function mt(C,e){const a=Re();te(e,!0);let r=y(e,"children",7),n=y(e,"child",7),o=y(e,"id",23,()=>me(a)),i=y(e,"ref",15,null),l=y(e,"open",15,!1),k=y(e,"disabled",7,!1),h=y(e,"onOpenChange",7,Me),f=y(e,"onOpenChangeComplete",7,Me),D=xe(e,["$$slots","$$events","$$legacy","$$host","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const x=Ue.create({open:oe.with(()=>l(),c=>{l(c),h()(c)}),disabled:oe.with(()=>k()),id:oe.with(()=>o()),ref:oe.with(()=>i(),c=>i(c)),onOpenChangeComplete:oe.with(()=>f())}),w=z(()=>Te(D,x.props));var _=Q(),p=q(_);{var I=c=>{var N=Q(),m=q(N);ie(m,n,()=>({props:t(w)})),d(c,N)},s=c=>{var N=mr();be(N,()=>({...t(w)}));var m=v(N);ie(m,()=>r()??we),u(N),d(c,N)};H(p,c=>{n()?c(I):c(s,!1)})}return d(C,_),re({get children(){return r()},set children(c){r(c),b()},get child(){return n()},set child(c){n(c),b()},get id(){return o()},set id(c=me(a)){o(c),b()},get ref(){return i()},set ref(c=null){i(c),b()},get open(){return l()},set open(c=!1){l(c),b()},get disabled(){return k()},set disabled(c=!1){k(c),b()},get onOpenChange(){return h()},set onOpenChange(c=Me){h(c),b()},get onOpenChangeComplete(){return f()},set onOpenChangeComplete(c=Me){f(c),b()}})}ae(mt,{children:{},child:{},id:{},ref:{},open:{},disabled:{},onOpenChange:{},onOpenChangeComplete:{}},[],[],!0);var br=M("<div><!></div>");function bt(C,e){const a=Re();te(e,!0);let r=y(e,"child",7),n=y(e,"ref",15,null),o=y(e,"forceMount",7,!1),i=y(e,"children",7),l=y(e,"id",23,()=>me(a)),k=xe(e,["$$slots","$$events","$$legacy","$$host","child","ref","forceMount","children","id"]);const h=Ge.create({id:oe.with(()=>l()),forceMount:oe.with(()=>o()),ref:oe.with(()=>n(),f=>n(f))});return Qt(C,{forceMount:!0,get open(){return h.present},get ref(){return h.opts.ref},presence:(D,x)=>{let w=()=>x?.().present;var _=Q();const p=z(()=>Te(k,h.props,{hidden:o()?void 0:!w()}));var I=q(_);{var s=N=>{var m=Q(),$=q(m);{let E=z(()=>({...h.snippetProps,props:t(p)}));ie($,r,()=>t(E))}d(N,m)},c=N=>{var m=br();be(m,()=>({...t(p)}));var $=v(m);ie($,()=>i()??we),u(m),d(N,m)};H(I,N=>{r()?N(s):N(c,!1)})}d(D,_)},$$slots:{presence:!0}}),re({get child(){return r()},set child(f){r(f),b()},get ref(){return n()},set ref(f=null){n(f),b()},get forceMount(){return o()},set forceMount(f=!1){o(f),b()},get children(){return i()},set children(f){i(f),b()},get id(){return l()},set id(f=me(a)){l(f),b()}})}ae(bt,{child:{},ref:{},forceMount:{},children:{},id:{}},[],[],!0);var yr=M("<button><!></button>");function yt(C,e){const a=Re();te(e,!0);let r=y(e,"children",7),n=y(e,"child",7),o=y(e,"ref",15,null),i=y(e,"id",23,()=>me(a)),l=y(e,"disabled",7,!1),k=xe(e,["$$slots","$$events","$$legacy","$$host","children","child","ref","id","disabled"]);const h=Je.create({id:oe.with(()=>i()),ref:oe.with(()=>o(),p=>o(p)),disabled:oe.with(()=>l())}),f=z(()=>Te(k,h.props));var D=Q(),x=q(D);{var w=p=>{var I=Q(),s=q(I);ie(s,n,()=>({props:t(f)})),d(p,I)},_=p=>{var I=yr();be(I,()=>({...t(f)}));var s=v(I);ie(s,()=>r()??we),u(I),d(p,I)};H(x,p=>{n()?p(w):p(_,!1)})}return d(C,D),re({get children(){return r()},set children(p){r(p),b()},get child(){return n()},set child(p){n(p),b()},get ref(){return o()},set ref(p=null){o(p),b()},get id(){return i()},set id(p=me(a)){i(p),b()},get disabled(){return l()},set disabled(p=!1){l(p),b()}})}ae(yt,{children:{},child:{},ref:{},id:{},disabled:{}},[],[],!0);var Cr=M("<div></div>"),kr=M('<span class="sr-only">Close</span> <!>',1),wr=M('<div><div class="dialog-header"><!> <!></div> <!></div>'),xr=M("<!> <!>",1);function Ct(C,e){te(e,!0);let a=y(e,"open",7),r=y(e,"content",7),n=y(e,"title",7),o=y(e,"onClose",7);const i={duration:Number(g.theme.components.dialog.custom?.transitionDuration)||200,delay:Number(g.theme.components.dialog.custom?.transitionDelay)||0,y:Number(g.theme.components.dialog.custom?.transitionY)||10},l=f=>{f||o()()};var k=Q(),h=q(k);return ue(h,()=>Ut,(f,D)=>{D(f,{get open(){return a()},onOpenChange:l,children:(x,w)=>{var _=xr(),p=q(_);ue(p,()=>Ze,(s,c)=>{c(s,{class:"dialog-overlay-wrapper",children:(N,m)=>{var $=Q(),E=q($);{const A=(P,R)=>{let B=()=>R?.().props,Y=()=>R?.().open;var L=Q(),K=q(L);{var X=W=>{var Z=Cr();be(Z,()=>({...B(),class:"dialog-overlay"})),se(3,Z,()=>je,()=>i),d(W,Z)};H(K,W=>{Y()&&W(X)})}d(P,L)};ue(E,()=>Vt,(P,R)=>{R(P,{forceMount:!0,child:A,$$slots:{child:!0}})})}d(N,$)},$$slots:{default:!0}})});var I=F(p,2);{const s=(c,N)=>{let m=()=>N?.().props,$=()=>N?.().open;var E=Q(),A=q(E);{var P=R=>{var B=wr();be(B,()=>({...m(),class:"dialog-content"}));var Y=v(B),L=v(Y);ue(L,()=>Gt,(W,Z)=>{Z(W,{class:"dialog-title",children:(ne,ee)=>{var j=Q(),G=q(j);ie(G,()=>n()??we),d(ne,j)},$$slots:{default:!0}})});var K=F(L,2);ue(K,()=>Ze,(W,Z)=>{Z(W,{class:"dialog-close",children:(ne,ee)=>{var j=kr(),G=F(q(j),2);Se(G,{name:"dismiss"}),d(ne,j)},$$slots:{default:!0}})}),u(Y);var X=F(Y,2);ue(X,()=>pt,(W,Z)=>{Z(W,{class:"dialog-description",children:(ne,ee)=>{var j=Q(),G=q(j);ie(G,r),d(ne,j)},$$slots:{default:!0}})}),u(B),se(3,B,()=>ke,()=>i),d(R,B)};H(A,R=>{$()&&R(P)})}d(c,E)};ue(I,()=>Yt,(c,N)=>{N(c,{forceMount:!0,child:s,$$slots:{child:!0}})})}d(x,_)},$$slots:{default:!0}})}),d(C,k),re({get open(){return a()},set open(f){a(f),b()},get content(){return r()},set content(f){r(f),b()},get title(){return n()},set title(f){n(f),b()},get onClose(){return o()},set onClose(f){o(f),b()}})}ae(Ct,{open:{},content:{},title:{},onClose:{}},[],[],!0);var Sr=M('<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 kt(C,e){te(e,!0);let a=z(()=>g.t),r=y(e,"logic",7),n=V(""),o=V(""),i=V(void 0),l=V(void 0),k=z(()=>t(i)!==void 0||t(l)!==void 0||t(n)!=="");{const h=x=>{var w=Q(),_=q(w);Ee(_,()=>t(a).feedbackFormTitle),d(x,w)},f=x=>{var w=Sr(),_=v(w);Jt(_,{get classificationConfig(){return r().data.chatConfig.classification},get impact(){return t(i)},set impact(R){T(i,R,!0)},get quality(){return t(l)},set quality(R){T(l,R,!0)}});var p=F(_,2),I=v(p),s=v(I,!0);u(I);var c=F(I,2);At(c),u(p);var N=F(p,2),m=v(N),$=v(m,!0);u(m);var E=F(m,2);Xt(E),u(N);var A=F(N,2),P=v(A,!0);u(A),u(w),J(()=>{ce(s,t(a).feedbackFormMessage),ve(c,"placeholder",t(a).feedbackFormMessagePlaceholder),ce($,t(a).feedbackFormEmail),ve(E,"placeholder",t(a).feedbackFormEmailPlaceholder),A.disabled=!t(k),ce(P,t(a).send)}),le("submit",w,async R=>{R.preventDefault(),r().data.chatConfig.classification?await r().submitFeedback({email:t(o),message:t(n),classification:{impact:t(i),quality:t(l)}}):await r().submitFeedback({email:t(o),message:t(n)}),T(i,void 0),T(l,void 0),T(n,""),r().closeFeedback()}),et(c,()=>t(n),R=>T(n,R)),et(E,()=>t(o),R=>T(o,R)),d(x,w)};let D=z(()=>!!r().data.feedbackOpenedId||r().data.feedbackOpenedConversation);Ct(C,{get open(){return t(D)},get onClose(){return r().closeFeedback},title:h,content:f,$$slots:{title:!0,content:!0}})}return re({get logic(){return r()},set logic(h){r(h),b()}})}ae(kt,{logic:{}},[],[],!0);let De;function Pr(C,e,a,r,n){De&&cancelAnimationFrame(De);const o=C instanceof Window?window.scrollY:C[r],i=performance.now();function l(k){const h=k-i,f=Math.min(h/a,1),D=n(f),x=o+(e-o)*D;C instanceof Window?window.scrollTo({top:x,behavior:"instant"}):C[r]=x,f<1?De=requestAnimationFrame(l):C.dispatchEvent(new CustomEvent("scrollcomplete"))}De=requestAnimationFrame(l)}var Nr=()=>g.openConverstionFeedback(),Or=M('<button class="chat-page__give-feedback btn btn--primary"> </button>'),Er=M('<div class="chat-page__footer-text"><!></div>'),Fr=M('<section class="chat-page"><!> <div class="chat-page__body"><div class="chat-page__messages"><!> <div class="chat-page__buttons"><!></div></div></div> <div><div class="chat-page__footer-content"><button><span class="sr-only"> </span> <!></button> <!> <!></div></div></section>');const Mr={hash:"svelte-19wcq0c",code:":host {--chat-footer-height: 0px;}"};function wt(C,e){te(e,!0),it(C,Mr);let a=z(()=>g.t),r=y(e,"history",7),n=y(e,"onSubmit",7),o=V(!1),i=V(!1),l,k,h,f=V(0);const D=90,x=()=>{T(f,h.offsetHeight,!0),l.style.setProperty("--chat-footer-height",`${t(f)}px`)};de(()=>{const O=new ResizeObserver(x);return O.observe(h),()=>O.disconnect()});const w=()=>{Pr(l,l.scrollHeight-l.clientHeight,1e3,"scrollTop",Zt)},_=()=>{if(!l)return;const O=l.scrollHeight-l.scrollTop-l.clientHeight<D;T(i,!O)},p=()=>{_()},I=O=>{if(O.altKey&&O.code==="KeyR"){O.preventDefault();const S=g.data.history.findLast(U=>U.type==="user")?.message;g.goto({name:"start-page",prefill:S})}},s=O=>{k.offsetHeight>l.offsetHeight&&(k.style.minHeight=`calc(${k.offsetHeight}px + 40cqh)`,requestAnimationFrame(()=>{w()})),n()(O)};de(()=>{T(o,!0)});var c=Fr();le("resize",qe,p),le("keypress",qe,I);var N=v(c);kt(N,{get logic(){return g}});var m=F(N,2),$=v(m),E=v($);pe(E,17,r,_e,(O,S)=>{er(O,{get message(){return t(S)},onmessageupdate:_,get logic(){return g}})});var A=F(E,2),P=v(A);{var R=O=>{var S=Or();S.__click=[Nr];var U=v(S,!0);u(S),J(()=>ce(U,t(a).giveFeedback)),d(O,S)};H(P,O=>{g.data.chatConfig.showOverallFeedbackButton&&O(R)})}u(A),u($),ge($,O=>k=O,()=>k),u(m),ge(m,O=>l=O,()=>l);var B=F(m,2);let Y;var L=v(B),K=v(L);K.__click=w;let X;var W=v(K),Z=v(W,!0);u(W);var ne=F(W,2);Se(ne,{name:"chevronDown"}),u(K);var ee=F(K,2);lt(ee,{onSubmit:s,class:"chat-page__chat-input"});var j=F(ee,2);{var G=O=>{var S=Er(),U=v(S);Ee(U,()=>t(a).chatFooterText),u(S),d(O,S)};H(j,O=>{t(a).chatFooterText!==void 0&&O(G)})}return u(L),u(B),ge(B,O=>h=O,()=>h),u(c),J((O,S)=>{Y=ye(B,1,"chat-page__footer container",null,Y,O),X=ye(K,1,"chat-page__scroll-to-bottom btn btn--secondary",null,X,S),ce(Z,t(a).scrollToBottom)},[()=>({mounted:t(o)}),()=>({"chat-page__scroll-to-bottom--hidden":!t(i)})]),le("scroll",m,_),d(C,c),re({get history(){return r()},set history(O){r(O),b()},get onSubmit(){return n()},set onSubmit(O){n(O),b()}})}st(["click"]);ae(wt,{history:{},onSubmit:{}},[],[],!0);var Dr=(C,e)=>(C.stopPropagation(),T(e,!t(e))),Rr=M('<div class="context-box__content text-container"><!></div>'),Tr=M('<div><button class="btn btn--secondary btn--header"><span class="sr-only"> </span> <!></button> <!></div>');function xt(C,e){te(e,!0);let a=z(()=>g.t),r=V(!1),n,o=V(void 0),i=y(e,"logic",7);const l={duration:Number(i().theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(i().theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(i().theme.components.referenceNumberContent.custom?.transitionY)||10},k=async()=>{if(!n||!t(o))return;const{x:s,y:c}=await ct(n,t(o),{placement:"bottom-end",middleware:[dt(8),ut({padding:8})]});Object.assign(t(o).style,{left:`${s}px`,top:`${c}px`})};de(()=>{t(r)&&k()});var h=Tr();let f;var D=v(h);D.__click=[Dr,r];var x=v(D),w=v(x,!0);u(x);var _=F(x,2);{let s=z(()=>t(r)?"menuClose":"info");Se(_,{get name(){return t(s)}})}u(D),ge(D,s=>n=s,()=>n),Le(D,s=>tr?.(s)),Le(D,(s,c)=>rr?.(s,c),()=>({text:t(a).openInfo,position:"bottom-right",delay:0}));var p=F(D,2);{var I=s=>{var c=Rr(),N=v(c);Ee(N,()=>t(a).aboutThisChat),u(c),ge(c,m=>T(o,m),()=>t(o)),se(3,c,()=>ke,()=>l),d(s,c)};H(p,s=>{t(r)&&s(I)})}return u(h),J(s=>{f=ye(h,1,"context-box context-box--info",null,f,s),ve(D,"aria-label",t(r)?t(a).close:t(a).openInfo),ce(w,t(r)?t(a).close:t(a).openInfo)},[()=>({open:t(r)})]),le("clickoutside",D,()=>T(r,!1)),d(C,h),re({get logic(){return i()},set logic(s){i(s),b()}})}st(["click"]);ae(xt,{logic:{}},[],[],!0);var Ar=M("<div><div><!></div></div>");function St(C,e){te(e,!0);let a=y(e,"class",7),r=y(e,"children",7),n=V(void 0);var o=Ar();let i;var l=v(o),k=v(l);return ie(k,()=>r()??we),u(l),u(o),J(h=>{ye(o,1,Ke(["animated-height",a()])),i=Ae(o,"",i,h)},[()=>({height:t(n)?`${t(n)}px`:"auto"})]),gt(l,"clientHeight",h=>T(n,h)),d(C,o),re({get class(){return a()},set class(h){a(h),b()},get children(){return r()},set children(h){r(h),b()}})}ae(St,{class:{},children:{}},[],[],!0);var Ir=M('<div class="references__toggle-title"> </div> <!>',1),Br=M('<div><div class="references__items"></div></div>'),qr=M("<!> <!>",1),Lr=M('<div class="references__items"><!> <!></div>'),Hr=M('<div><div class="references__container"><div class="references__transition"><!></div></div></div>');function Pt(C,e){te(e,!0);let a=y(e,"class",7),r=z(()=>g.data.history.filter(x=>x.type==="bot").find(x=>x.id===g.data.currentReferencesAsideId)?.references),n=z(()=>g.data.currentReferencesAsideId),o=V(void 0),i=V(!1),l=V(void 0);de(()=>{t(n)&&T(i,!1),T(o,t(n),!0)}),de(()=>{t(i)&&setTimeout(()=>{t(l)?.scrollIntoView({behavior:"smooth"})},200)});var k=Hr(),h=v(k),f=v(h),D=v(f);return vt(D,()=>g.data.currentReferencesAsideId,x=>{var w=Lr(),_=v(w);pe(_,17,()=>t(r)?.used,_e,(s,c)=>{rt(s,{get reference(){return t(c)}})});var p=F(_,2);{var I=s=>{St(s,{children:(c,N)=>{var m=Q(),$=q(m);ue($,()=>mt,(E,A)=>{A(E,{get class(){return`references__further ${a()??""}`},get open(){return t(i)},set open(P){T(i,P,!0)},children:(P,R)=>{var B=qr(),Y=q(B);ue(Y,()=>yt,(K,X)=>{X(K,{class:"references__toggle transition-colors",children:(W,Z)=>{var ne=Ir(),ee=q(ne),j=v(ee,!0);u(ee);var G=F(ee,2);Se(G,{name:"chevronDown",class:"references__toggle-icon"}),J(()=>ce(j,g.t.referencesFurtherTitle)),d(W,ne)},$$slots:{default:!0}})});var L=F(Y,2);{const K=(X,W)=>{let Z=()=>W?.().props,ne=()=>W?.().open;var ee=Q(),j=q(ee);{var G=O=>{var S=Br();be(S,()=>({...Z(),class:"references__container"}));var U=v(S);pe(U,21,()=>t(r)?.unused,_e,(fe,Pe)=>{rt(fe,{get reference(){return t(Pe)}})}),u(U),u(S),ge(S,fe=>T(l,fe),()=>t(l)),se(1,S,()=>ke,()=>({duration:500,easing:tt,y:50})),se(2,S,()=>je,()=>({duration:100})),d(O,S)};H(j,O=>{ne()&&O(G)})}d(X,ee)};ue(L,()=>bt,(X,W)=>{W(X,{forceMount:!0,child:K,$$slots:{child:!0}})})}d(P,B)},$$slots:{default:!0}})}),d(c,m)},$$slots:{default:!0}})};H(p,s=>{t(r)?.unused&&s(I)})}u(w),se(2,w,()=>We,()=>({duration:200,delay:t(n)?0:200})),se(1,w,()=>ke,()=>t(o)?{delay:200,duration:500,easing:tt,y:50}:{duration:0,y:0}),d(x,w)}),u(f),u(h),u(k),J(()=>ye(k,1,Ke(["references",a()]))),d(C,k),re({get class(){return a()},set class(x){a(x),b()}})}ae(Pt,{class:{}},[],[],!0);var zr=M('<div><!> <h1 class="introduction__title"><!></h1></div>');function Nt(C,e){te(e,!0);let a=z(()=>g.t),r=y(e,"class",7);var n=zr(),o=v(n);Se(o,{name:"avatar",class:"introduction__avatar"});var i=F(o,2),l=v(i);return Ee(l,()=>t(a).introductionTitle),u(i),u(n),J(()=>ye(n,1,`introduction ${r()??""}`)),d(C,n),re({get class(){return r()},set class(k){r(k),b()}})}ae(Nt,{class:{}},[],[],!0);var $r=M("<div></div>");function Ot(C,e){te(e,!0);let a=y(e,"class",7),r=xe(e,["$$slots","$$events","$$legacy","$$host","class"]);var n=$r();return be(n,o=>({class:`predefined-questions ${a()??""}`,...r,[ar]:o}),[()=>({"predefined-questions--pii-padding":g.data.questionHasPii})]),pe(n,21,()=>g.data.predefinedQuestions,_e,(o,i)=>{nr(o,{get predefinedQuestion(){return t(i)},get onSubmit(){return g.onStartConversation}})}),u(n),d(C,n),re({get class(){return a()},set class(o){a(o),b()}})}ae(Ot,{class:{}},[],[],!0);var jr=M('<div class="introduction-disclaimer text-container fly-in" style="--fly-in-id: 3;"><!></div>'),Kr=M("<section><!> <!> <!> <!></section>");function Et(C,e){te(e,!0);let a=z(()=>g.t),r=V(!1);de(()=>{T(r,!0)});var n=Kr();let o;var i=v(n);Nt(i,{class:"start-page__introduction fly-in"});var l=F(i,2);lt(l,{get onSubmit(){return g.onStartConversation},class:"start-page__chat-input fly-in",style:"--fly-in-id: 1;",isStartPage:!0});var k=F(l,2);{var h=x=>{Ot(x,{class:"start-page__predefined-questions fly-in",style:"--fly-in-id: 2;"})};H(k,x=>{g.data.predefinedQuestions&&g.data.predefinedQuestions.length&&x(h)})}var f=F(k,2);{var D=x=>{var w=jr(),_=v(w);Ee(_,()=>t(a).introductionDisclaimer),u(w),d(x,w)};H(f,x=>{t(a).introductionDisclaimer&&x(D)})}u(n),J(x=>o=ye(n,1,"start-page container",null,o,x),[()=>({mounted:t(r)})]),d(C,n),re()}ae(Et,{},[],[],!0);function nt(C,{delay:e=0,duration:a=200,easing:r=i=>i,baseScale:n=0,transformOrigin:o="bottom right"}={}){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return{delay:0,duration:0,css:()=>`opacity: 1; transform: scale(1); transform-origin: ${o};`};const l=getComputedStyle(C),k=+l.opacity,h=l.transform.match(/scale\(([0-9.]+)\)/),f=h?+h[1]:1,D=1-n;return{delay:e,duration:a,css:x=>{const w=r(x),_=w*f*D+n;return`opacity: ${w*k}; transform: scale(${_}); transform-origin: ${o};`}}}var Wr=M('<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 Qr={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 Ft(C,e){te(e,!0),it(C,Qr);let a=y(e,"color",7),r=y(e,"background",7);var n=Wr(),o=v(n);return u(n),J(()=>{Ae(n,r()?`background: ${r()};`:""),ve(o,"fill",a()??"rgba(127, 127, 127, 0.3)")}),d(C,n),re({get color(){return a()},set color(i){a(i),b()},get background(){return r()},set background(i){r(i),b()}})}ae(Ft,{color:{},background:{}},[],[],!0);var Vr=M('<div class="flyout__content"><!></div>'),Yr=M('<div><div class="flyout__body"><!></div></div>'),Ur=M('<!> <div class="chat-app__main"><div class="chat-app__loader-container"><!></div></div>',1);function Mt(C,e){te(e,!0);let a=y(e,"children",7),r=y(e,"loaderColor",7),n=y(e,"loaderBackground",7),o=y(e,"flyout",7),i=y(e,"flyoutClass",7),l=y(e,"flyoutStyle",7),k=y(e,"onCloseChat",7),h=y(e,"onError",7),f=xe(e,["$$slots","$$events","$$legacy","$$host","children","loaderColor","loaderBackground","flyout","flyoutClass","flyoutStyle","onCloseChat","onError"]),D;const x=s=>{de(()=>{const c=N=>{D=N};return s.addEventListener("click",c),()=>{s.removeEventListener("click",c),D=void 0}})};var w=Q();le("click",qe,s=>{s!==D&&o()&&k()()});var _=q(w);{var p=s=>{var c=Q(),N=q(c);{var m=E=>{},$=E=>{var A=Yr(),P=v(A),R=v(P);{var B=L=>{var K=Vr(),X=v(K);ie(X,a),u(K),se(1,K,()=>nt,()=>({delay:0,duration:500,easing:at,baseScale:.3})),se(2,K,()=>nt,()=>({delay:0,duration:300,easing:at,baseScale:.7})),d(L,K)},Y=L=>{gr(L,ht({get onError(){return h()},onclick:K=>{K.stopPropagation(),g.openFlyout()},buttonClass:"flyout__open-button"},()=>f))};H(R,L=>{g.data.flyoutIsOpen?L(B):L(Y,!1)})}u(P),Le(P,L=>x?.(L)),u(A),J(()=>{Ae(A,l()),ye(A,1,Ke(["flyout",i()]))}),d(E,A)};H(N,E=>{g.initialized?E($,!1):E(m)})}d(s,c)},I=s=>{var c=Q(),N=q(c);{var m=E=>{var A=Ur(),P=q(A);Oe(P,{id:"app-css",get css(){return ft}});var R=F(P,2),B=v(R),Y=v(B);or(Y,e,"loader",{},L=>{Ft(L,{get background(){return n()},get color(){return r()}})}),u(B),u(R),se(2,B,()=>We,()=>({duration:200,delay:300})),d(E,A)},$=E=>{var A=Q(),P=q(A);ie(P,a),d(E,A)};H(N,E=>{g.initialized?E($,!1):E(m)})}d(s,c)};H(_,s=>{o()?s(p):s(I,!1)})}return d(C,w),re({get children(){return a()},set children(s){a(s),b()},get loaderColor(){return r()},set loaderColor(s){r(s),b()},get loaderBackground(){return n()},set loaderBackground(s){n(s),b()},get flyout(){return o()},set flyout(s){o(s),b()},get flyoutClass(){return i()},set flyoutClass(s){i(s),b()},get flyoutStyle(){return l()},set flyoutStyle(s){l(s),b()},get onCloseChat(){return k()},set onCloseChat(s){k(s),b()},get onError(){return h()},set onError(s){h(s),b()}})}ae(Mt,{children:{},loaderColor:{},loaderBackground:{},flyout:{},flyoutClass:{},flyoutStyle:{},onCloseChat:{},onError:{}},["loader"],[],!0);var Gr=M('<span class="reference__description line-clamp line-clamp--12"> </span>'),Jr=M('<span class="reference__breadcrumb transition-colors"> </span>'),Xr=M('<span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></span>'),Zr=M('<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"> </h3> <!></span> <!> <!></a></div>'),ea=M('<div class="reference-number"><a target="_blank" rel="noopener noreferrer" class="reference-number__trigger transition-colors no-link-styling"> </a> <!></div>');function ta(C,e){te(e,!0);let a=z(()=>g.t),r=y(e,"usedNumber",7),n=y(e,"source",7),o=V(!1),i,l,k=V(void 0);const h=n();let f=z(()=>h.display.card.title),D=z(()=>h.display.card.description),x=z(()=>h.display.card.badge),w=z(()=>h.display.card.breadcrumbs);const _={duration:Number(g.theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(g.theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(g.theme.components.referenceNumberContent.custom?.transitionY)||10},p=async()=>{if(!l||!t(k))return;const{x:P,y:R}=await ct(l,t(k),{placement:"top",middleware:[dt(8),sr(),ut({padding:8})]});Object.assign(t(k).style,{left:`${P}px`,top:`${R}px`})},I=()=>{i&&(clearTimeout(i),i=void 0)},s=()=>{I(),i=setTimeout(()=>{T(o,!1)},100)},c=()=>{I(),T(o,!0)};de(()=>{t(o)&&p()});var N=ea(),m=v(N),$=v(m,!0);u(m),ge(m,P=>l=P,()=>l);var E=F(m,2);{var A=P=>{var R=Zr(),B=v(R),Y=v(B),L=v(Y),K=v(L,!0);u(L);var X=F(L,2);Se(X,{name:"externalLink",class:"reference__icon transition-colors"}),u(Y);var W=F(Y,2);{var Z=j=>{var G=Gr(),O=v(G,!0);u(G),J(()=>ce(O,t(D))),d(j,G)};H(W,j=>{t(D)&&j(Z)})}var ne=F(W,2);{var ee=j=>{var G=Xr(),O=v(G),S=v(O),U=v(S,!0);u(S),u(O);var fe=F(O,2);{var Pe=Ne=>{var he=Q(),Fe=q(he);pe(Fe,17,()=>t(w),_e,(Ie,Be)=>{var Ce=Jr(),Dt=v(Ce,!0);u(Ce),J(()=>ce(Dt,t(Be))),d(Ie,Ce)}),d(Ne,he)};H(fe,Ne=>{t(w)&&Ne(Pe)})}u(G),J(()=>ce(U,t(x))),d(j,G)};H(ne,j=>{t(x)&&j(ee)})}u(B),u(R),ge(R,j=>T(k,j),()=>t(k)),J(()=>{ve(B,"href",h.url),ce(K,t(f))}),le("mouseenter",R,c),le("mouseleave",R,s),se(3,R,()=>ke,()=>_),d(P,R)};H(E,P=>{t(o)&&P(A)})}return u(N),J(()=>{ve(m,"href",h.url),ve(m,"aria-label",`${t(a).referenceLink??""}: ${t(f)??""}`),ce($,r())}),le("mouseenter",m,c),le("mouseleave",m,s),le("focus",m,()=>T(o,!0)),le("blur",m,()=>T(o,!1)),d(C,N),re({get usedNumber(){return r()},set usedNumber(P){r(P),b()},get source(){return n()},set source(P){n(P),b()}})}customElements.define("liipgpt-reference-number",ae(ta,{source:{attribute:"data-source",type:"Object"},refNumber:{attribute:"data-all-index",type:"String"},usedNumber:{attribute:"data-used-index",type:"String"}},[],[],!1));var ra=M('<link rel="stylesheet"/>'),aa=M('<link rel="stylesheet"/>'),na=M("<!> <!> <!>",1),oa=M('<link rel="stylesheet"/>'),sa=M("<!> <!> <!> <!>",1),ia=M("<div><!></div>"),la=M('<div class="chat-app__page-transition"><!></div>'),ca=M('<div class="chat-app__container"><div class="chat-app__main"><div class="chat-app__header"><div class="chat-app__header-container"><!> <!> <!> <!></div></div> <div class="chat-app__body"><!></div> <!></div> <!></div>'),da=M('<main class="chat-app"><!> <!></main>');function ua(C,e){te(e,!0);let a=y(e,"host",7),r=y(e,"onError",7),n=xe(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);de(()=>{const w={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(()=>g.init(w).catch(_=>r()(_)))});let o=z(()=>g.data.route.name);const i=()=>{g.closeFlyout(),a().dispatchEvent(new CustomEvent("closechat"))};de(()=>{g.initialized&&g.data?.chatConfig&&a().dispatchEvent(new CustomEvent("configloaded",{detail:g.data.chatConfig}))});let l=V(void 0),k=V(0);const h=hr.fineGrained?.light?.tokens?.components?.aside?.custom?.containerWidthForMobileLayout;let f=V(!1),D=z(()=>g.data.props.flyout||t(k)<=h);const x=()=>{g.closeReferencesAside()};return de(()=>{g.data.currentReferencesAsideId?T(f,!0):T(f,!1)}),It(w=>{var _=Q(),p=q(_);{var I=s=>{var c=na(),N=q(c);pe(N,17,()=>g.themeBase.fontURLs??[],_e,(E,A)=>{var P=ra();J(()=>ve(P,"href",t(A))),d(E,P)});var m=F(N,2);pe(m,17,()=>g.data.additionalStylesheets,_e,(E,A)=>{var P=aa();J(()=>ve(P,"href",t(A))),d(E,P)});var $=F(m,2);Oe($,{id:"font-css",get css(){return g.themeBase.fontCSS}}),d(s,c)};H(p,s=>{g.initialized&&s(I)})}d(w,_)}),_t(C,{get defaultPortalTo(){return t(l)},children:(w,_)=>{var p=da();let I;var s=v(p);{var c=m=>{var $=sa(),E=q($);{let B=z(()=>ir(g.theme));Oe(E,{id:"theme-css",get css(){return t(B)}})}var A=F(E,2);Oe(A,{id:"app-css",get css(){return ft}});var P=F(A,2);Oe(P,{id:"custom-css",get css(){return g.themeBase.customCSS}});var R=F(P,2);pe(R,17,()=>g.data.additionalStylesheets,_e,(B,Y)=>{var L=oa();J(()=>ve(L,"href",t(Y))),d(B,L)}),d(m,$)};H(s,m=>{g.initialized&&m(c)})}var N=F(s,2);Mt(N,ht({onCloseChat:i,get onError(){return r()}},()=>n,{children:(m,$)=>{var E=ca(),A=v(E),P=v(A),R=v(P),B=v(R);{var Y=S=>{var U=ia(),fe=v(U);dr(fe,{}),u(U),se(1,U,()=>ke,()=>({duration:300,y:30})),se(2,U,()=>ke,()=>({y:15,duration:150,easing:ur})),d(S,U)};H(B,S=>{t(o)!=="start-page"&&S(Y)})}var L=F(B,2);{var K=S=>{vr(S,{get chatLogic(){return g}})};H(L,S=>{g.data.chatConfig.showContextMenu&&S(K)})}var X=F(L,2);{var W=S=>{xt(S,{get logic(){return g}})};H(X,S=>{g.data.chatConfig.showContextInfo&&S(W)})}var Z=F(X,2);{var ne=S=>{fr(S,{onclick:i})};H(Z,S=>{(g.data.chatConfig.showCloseChatButton||g.data.props.flyout)&&S(ne)})}u(R),u(P);var ee=F(P,2),j=v(ee);vt(j,()=>t(o),S=>{var U=la(),fe=v(U);{var Pe=he=>{Et(he,{})},Ne=he=>{var Fe=Q(),Ie=q(Fe);{var Be=Ce=>{wt(Ce,{get history(){return g.data.history},get onSubmit(){return g.onSubmit}})};H(Ie,Ce=>{t(o)==="chat-page"&&Ce(Be)},!0)}d(he,Fe)};H(fe,he=>{t(o)==="start-page"?he(Pe):he(Ne,!1)})}u(U),se(1,U,()=>je,()=>({duration:300,delay:250})),se(2,U,()=>We,()=>({duration:150})),d(S,U)}),u(ee);var G=F(ee,2);lr(G,{position:"top-center"}),u(A),ge(A,S=>T(l,S),()=>t(l));var O=F(A,2);cr(O,{get isOpen(){return t(f)},get isMobile(){return t(D)},onClose:x,get title(){return g.t.referencesTitle},children:(S,U)=>{Pt(S,{})},$$slots:{default:!0}}),u(E),gt(E,"clientWidth",S=>T(k,S)),d(m,E)},$$slots:{default:!0}})),u(p),J(m=>I=Ae(p,"",I,m),[()=>({"color-scheme":g.colorScheme})]),d(w,p)},$$slots:{default:!0}}),re({get host(){return a()},set host(w){a(w),b()},get onError(){return r()},set onError(w){r(w),b()}})}ae(ua,{host:{},onError:{}},[],[],!0);export{ua as C};
@@ -1 +0,0 @@
1
- import"./NZTpNUN0.js";import{aC as Ge,ae as Ye,aD as me,aj as be,aE as ne,_ as fe,P as ge,ax as Ue,a0 as we,aF as ye,aG as _e,h as Ve,al as xe,ah as ie,am as se,v as x,an as $,aq as Ke,ar as Ze,as as Je,at as ke,ao as Qe,au as Xe,M as $e,c as je,p as Le,I as X,a as A,b as h,d as Oe,f as I,e as M,L as ze,r as D,t as he,aH as ee,aI as et,G as e,H as E,s as Y,K as te,O as le}from"./TMezqz9A.js";import{i as U,b as Ee}from"./Cgm2UlUC.js";import{s as Ae,b as qe,c as Se,d as Te,e as tt,i as rt,I as re,f as at,h as ce,g as ot,j as nt,k as it,l as st,m as lt}from"./CBFTM35p.js";import{p as q,r as ct}from"./CfQtRUjK.js";import"./BWd1KRA2.js";import"./pxprCMm0.js";const de=0,ae=1,pe=2;function Ce(K,a,m,w,k){$&&Qe();var i=K,S=Ge(),z=Ve,s=be,l,y,d,_=S?fe(void 0):ge(void 0,!1,!1),F=S?fe(void 0):ge(void 0,!1,!1),H=!1;function t(o,u){H=!0,u&&(we(r),ye(r),_e(z));try{o===de&&m&&(l?xe(l):l=ie(()=>m(i))),o===ae&&w&&(y?xe(y):y=ie(()=>w(i,_))),o!==de&&l&&se(l,()=>l=null),o!==ae&&y&&se(y,()=>y=null),o!==pe&&d&&se(d,()=>d=null)}finally{u&&(_e(null),ye(null),we(null),x())}}var r=Ye(()=>{if(s===(s=a()))return;let o=$&&me(s)===(i.data===Ke);if(o&&(i=Ze(),Je(i),ke(!1),o=!0),me(s)){var u=s;H=!1,u.then(n=>{u===s&&(ne(_,n),t(ae,!0))},n=>{if(u===s)throw ne(F,n),t(pe,!0),F.v}),$?m&&(l=ie(()=>m(i))):Ue(()=>{H||t(de,!0)})}else ne(_,s),t(ae,!1);return o&&ke(!0),()=>s=be});$&&(i=Xe)}const dt='@layer base,utilities,components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::-moz-placeholder{color:currentcolor;@supports (color: color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor;@supports (color: color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer base{.chat-app{--spacer-1: .0625rem;--spacer-2: .125rem;--spacer-3: .1875rem;--spacer-4: .25rem;--spacer-5: .3125rem;--spacer-6: .375rem;--spacer-8: .5rem;--spacer-10: .625rem;--spacer-12: .75rem;--spacer-16: 1rem;--spacer-20: 1.25rem;--spacer-24: 1.5rem;--spacer-28: 1.75rem;--spacer-32: 2rem;--spacer-40: 2.5rem;--spacer-48: 3rem;--spacer-56: 3.5rem;--spacer-64: 4rem;--spacer-80: 5rem;--spacer-120: 7.5rem;--spacer-r-8: clamp(.375rem, .3182rem + .2841cqw, .5rem);--spacer-r-12: clamp(.625rem, .5682rem + .2841cqw, .75rem);--spacer-r-16: clamp(.75rem, .6364rem + .5682cqw, 1rem);--spacer-r-20: clamp(.875rem, .7045rem + .8523cqw, 1.25rem);--spacer-r-24: clamp(1rem, .7727rem + 1.1364cqw, 1.5rem);--spacer-r-28: clamp(1.125rem, .8409rem + 1.4205cqw, 1.75rem);--spacer-r-32: clamp(1.25rem, .9091rem + 1.7045cqw, 2rem);--spacer-r-40: clamp(1.5rem, 1.0455rem + 2.2727cqw, 2.5rem);--spacer-r-48: clamp(1.625rem, 1rem + 3.125cqw, 3rem);--spacer-r-56: clamp(1.75rem, .9545rem + 3.9773cqw, 3.5rem);--spacer-r-64: clamp(2rem, 1.0909rem + 4.5455cqw, 4rem);--spacer-r-80: clamp(3rem, 2.0909rem + 4.5455cqw, 5rem);--spacer-r-96: clamp(3.5rem, 2.3636rem + 5.6818cqw, 6rem);--spacer-r-120: clamp(4rem, 2.4091rem + 7.9545cqw, 7.5rem);--font-xs: .75em;--font-sm: .875em;--font-body: 1rem;--font-h3: clamp(1.125rem, .9545rem + .8523cqw, 1.5rem);--font-h2: clamp(1.25rem, .7955rem + 2.2727cqw, 2.25rem);--font-h1: clamp(1.5rem, .8182rem + 3.4091cqw, 3rem);--font-weight-normal: 400;--font-weight-bold: 700;--line-height-default: 1.5;--line-height-snug: 1.375;--line-height-tight: 1.25;--default-transition-duration: .2s;--default-transition-timing-function: ease-in-out;--z-index-flyout: 10000;--z-index-dialog: 600;--z-index-loader: 500;--z-index-reference-number: 400;--z-index-footer: 300;--z-index-tooltip: 200;--z-index-header: 100;--z-index-local-overlay: 10;--ease-out-quart: cubic-bezier(.165, .84, .44, 1);--ease-in-quart: cubic-bezier(.895, .03, .685, .22);--ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);--fly-in-id: 0;--chat-footer-height: 0}}@value container-sm,container-md,container-lg from "./viewports.css";@layer base{.chat-app{:where(h1,h2,h3,h4,h5,h6){font-weight:var(--font-weight-bold);line-height:var(--line-height-tight)}:where(b,strong){font-weight:var(--font-weight-bold)}:where(button){cursor:pointer}:where(input[type=text],input[type=email],input[type=search],input[type=password],textarea){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow, none);color:var(--input-color);&::-moz-placeholder{color:var(--input-placeholder-color)}&::placeholder{color:var(--input-placeholder-color)}}:where(input[type=radio],input[type=checkbox]){margin:0}:where(*:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--spacer-3);outline-offset:var(--spacer-2)}& *::-moz-selection{background:var(--body-selection-background);color:var(--body-selection-color)}& *::selection{background:var(--body-selection-background);color:var(--body-selection-color)}>*{color:var(--body-color);font-style:normal;font-weight:var(--font-weight-normal);font-size:var(--body-font-size, var(--font-body));line-height:var(--line-height-default);font-family:var(--font-family);font-optical-sizing:auto}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0000004d;-webkit-transition:background-color .2s;transition:background-color .2s}::-webkit-scrollbar-thumb:hover{background-color:#00000080}*{scrollbar-color:rgba(0,0,0,.3) transparent;scrollbar-width:thin}::-webkit-scrollbar-thumb{visibility:hidden}*:hover::-webkit-scrollbar-thumb,*:active::-webkit-scrollbar-thumb,*:focus::-webkit-scrollbar-thumb{visibility:visible}}}@layer utilities{.chat-app{:where(.expand-interaction){position:relative;&:after{position:absolute;inset:0;background-color:transparent;content:""}}:where(.sr-only){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}:where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}:where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}:where(.fly-in){--fly-in-id: 0;--fly-in-duration: .4s;--fly-out-duration: .2s;--fly-in-delay: .3s;--fly-in-delay-additional: .1s;--fly-in-y: var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease,var(--ease-out-quart)}:where(.mounted .fly-in){transform:translateY(0);opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration)}:where(.truncate){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.line-clamp){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}:where(.line-clamp--2){-webkit-line-clamp:2}:where(.line-clamp--3){-webkit-line-clamp:3}:where(.line-clamp--12){-webkit-line-clamp:12}:where(.container){width:100%;max-width:var(--container-max-width, 1024px);margin:0 auto;padding-right:var(--spacer-16);padding-left:var(--spacer-16);@container chat-container (min-width: 640px){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}@container chat-container (min-width: 768px){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}:where(.text-container){>:where(h1){font-size:var(--font-h1)}>:where(h2){font-size:var(--font-h2)}>:where(h3){font-size:var(--font-h3)}>:where(h4,h5,h6){font-size:var(--body-font-size)}>:where(p,ul,ol,img,table){display:block;margin-bottom:var(--spacer-r-24)}>:where(div){margin:var(--spacer-r-40) 0}>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}>:where(ul:not(.no-list-styling),ol:not(.no-list-styling)){>:where(li){margin-bottom:var(--spacer-12);&:last-child{margin-bottom:0}}}>:where(ol){padding-left:1.5em;list-style-position:outside;list-style-type:decimal}>:where(ul:not(.no-list-styling)){>:where(li){position:relative;padding-left:1em;&:before{position:absolute;top:0;left:0;content:"•";font-size:.9em}}}>:where(hr){height:1px;margin:var(--spacer-r-40) 0;border:none;background-color:var(--color-grey-700);background-color:var(--hr-color)}:where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight, var(--font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration, underline);text-decoration:var(--anchor-text-decoration, underline);text-underline-offset:var(--anchor-text-underline-offset, .15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function);&:hover{color:var(--anchor-hover-color)}}&:first-child{margin-top:0}&:last-child{margin-bottom:0}:where(table){display:block;width:100%;overflow-x:auto;border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch}:where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--line-height-tight);text-align:left;vertical-align:bottom}:where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}:where(tr:last-child td){border-bottom:none}}:where(.animated-height){transition:height .5s var(--ease-in-out-quart)}}}@layer base{.svg{width:var(--spacer-r-24);height:auto;& svg{display:block;width:100%;height:auto;overflow:visible}}}@layer components{.chat-app{display:contents}.chat-app__container{display:flex;height:100%;overflow-x:hidden}.chat-app__main{container-name:chat-container;container-type:inline-size;display:block;width:100%;height:100%;transform:scale(1);background:var(--body-background)}.chat-app__loader-container{display:flex;z-index:var(--z-index-loader);position:relative;align-items:center;justify-content:center;width:100%;height:100%}.chat-app__header{z-index:var(--z-index-header);position:fixed;top:0;right:0;left:0;padding:var(--spacer-16);border-width:var(--header-border-width);border-style:solid;border-color:var(--header-border-color);background:var(--header-background);box-shadow:var(--header-box-shadow);pointer-events:none;@container chat-container (min-width: 640px){padding:var(--spacer-12)}}.chat-app__header-container{display:flex;align-items:center;justify-content:flex-end;gap:var(--spacer-r-12);>:where(*){pointer-events:auto}}.chat-app__body{position:relative;width:100%;height:100%}.chat-app__page-transition{width:100%;height:100%}.chat-app__aside{--duration-in: .65s;--duration-out: .5s;visibility:hidden;flex-grow:1;width:0;transition-delay:0s,var(--duration-out);transition-duration:var(--duration-out),0s;transition-property:width,visibility;transition-timing-function:var(--ease-in-out-quart),linear;&.open{visibility:visible;width:var(--aside-width);transition-delay:0s;transition-duration:var(--duration-in),0s;transition-timing-function:var(--ease-out-quart),linear}}.chat-app__aside-container{position:relative;width:var(--aside-width);height:100%;overflow-y:auto;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable}.chat-app__aside-header,.chat-app__sheet-header{display:flex;z-index:var(--z-index-flyout);position:sticky;top:0;flex-wrap:no-wrap;align-items:center;justify-content:space-between;padding:var(--spacer-12) var(--spacer-12) var(--spacer-12) var(--spacer-24);gap:var(--spacer-24);border-bottom-width:var(--aside-header-border-width);border-color:var(--aside-header-border-color);background:var(--aside-background);color:var(--aside-header-color)}.chat-app__sheet-close{position:relative}.chat-app__sheet-overlay{z-index:var(--z-index-dialog);position:fixed;inset:0;background:var(--aside-background-overlay)}.chat-app__sheet-content{z-index:var(--z-index-flyout);position:fixed;top:0;right:0;width:100%;max-width:var(--aside-width);height:100%;overflow-y:auto;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable}.chat-app__aside-close,.chat-app__sheet-close{:where(.btn){background-color:transparent}}}@layer components{.open-button{--open-button-avatar-height: var(--spacer-r-80);--open-button-avatar-width: var(--spacer-r-80);--open-button-duration: .4s;--open-button-delay: .3s;--open-button-ease: ease-in-out;display:flex;flex-direction:row;align-items:flex-end;cursor:pointer}.open-button__text{display:flex;position:absolute;right:100%;bottom:50%;flex-direction:column;align-items:flex-start;justify-content:center;margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);padding-left:0;overflow:hidden;transform:translateY(50%);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease),padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);.open-button:hover &{transform:translateY(0);background:var(--open-button-hover-background, var(--open-button-background));color:var(--open-button-hover-color, var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);font-weight:700}.open-button__mask{width:0;height:0;overflow:hidden;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease),height var(--open-button-duration) var(--open-button-ease);.open-button:hover &{transition:width var(--open-button-duration) var(--open-button-ease),height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}}.open-button__description{position:relative;width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance}.open-button__avatar{z-index:var(--z-index-local-overlay);position:relative;width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);overflow:clip;border-radius:var(--spacer-r-80);filter:drop-shadow(0 0 8px rgba(0,0,0,.2));transition:transform .2s var(--open-button-ease);.open-button:hover &{transform:scale(1.05)}}.open-button__link-icon{display:none;position:absolute;right:0;width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color)}:where(.open-button--standalone){position:fixed;right:var(--spacer-r-16);bottom:var(--spacer-r-16)}@media (prefers-reduced-motion: reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}}';var g=typeof window<"u"?window:{screen:{},navigator:{}},V=(g.matchMedia||function(){return{matches:!1}}).bind(g),pt={get passive(){return!0}},Me=function(){};g.addEventListener&&g.addEventListener("p",Me,pt);g.removeEventListener&&g.removeEventListener("p",Me,!1);var ue="ontouchstart"in g,ht="TouchEvent"in g,ut=ue||ht&&V("(any-pointer: coarse)").matches,Ie=(g.navigator.maxTouchPoints||0)>0||ut,De=g.navigator.userAgent||"",vt=V("(pointer: coarse)").matches&&/iPad|Macintosh/.test(De)&&Math.min(g.screen.width||0,g.screen.height||0)>=768,He=(V("(pointer: coarse)").matches||!V("(pointer: fine)").matches&&ue)&&!/Windows.*Firefox/.test(De),mt=V("(any-pointer: fine)").matches||V("(any-hover: hover)").matches||vt||!ue,Ne=Ie&&(mt||!He)?"hybrid":Ie?"touchOnly":"mouseOnly",bt=Ne==="mouseOnly"?"mouse":Ne==="touchOnly"||He?"touch":"mouse",ft=I("<a><!></a>"),gt=I('<button type="button"><!></button>');function Be(K,a){Le(a,!1);let m=q(a,"href",12),w=q(a,"onclick",12),k=q(a,"onmouseenter",12),i=q(a,"onmouseleave",12),S=q(a,"style",12),z=q(a,"className",12),s=q(a,"isStandalone",12,!1),l=q(a,"children",12);const y=Array.isArray(z())?z():z()?[z()]:[];var d=X(),_=A(d);{var F=t=>{var r=ft();let o;var u=M(r);ze(u,l),D(r),he(n=>{Ae(r,"href",m()),o=qe(r,1,Se(y),null,o,n),Te(r,S())},[()=>({"open-button--standalone":s()})]),ee("mouseenter",r,function(...n){k()?.apply(this,n)}),ee("mouseleave",r,function(...n){i()?.apply(this,n)}),h(t,r)},H=t=>{var r=gt();r.__click=function(...n){w()?.apply(this,n)};let o;var u=M(r);ze(u,l),D(r),he(n=>{o=qe(r,1,Se(y),null,o,n),Te(r,S())},[()=>({"open-button--standalone":s()})]),ee("mouseenter",r,function(...n){k()?.apply(this,n)}),ee("mouseleave",r,function(...n){i()?.apply(this,n)}),h(t,r)};U(_,t=>{m()?t(F):t(H,!1)})}return h(K,d),Oe({get href(){return m()},set href(t){m(t),x()},get onclick(){return w()},set onclick(t){w(t),x()},get onmouseenter(){return k()},set onmouseenter(t){k(t),x()},get onmouseleave(){return i()},set onmouseleave(t){i(t),x()},get style(){return S()},set style(t){S(t),x()},get className(){return z()},set className(t){z(t),x()},get isStandalone(){return s()},set isStandalone(t){s(t),x()},get children(){return l()},set children(t){l(t),x()}})}$e(["click"]);je(Be,{href:{},onclick:{},onmouseenter:{},onmouseleave:{},style:{},className:{},isStandalone:{},children:{}},[],[],!0);var wt=I('<div class="open-button__title"><!></div>'),yt=I('<div class="open-button__mask"><div class="open-button__description"><!></div></div>'),_t=I('<div class="open-button__text"><!> <!></div>'),xt=I('<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"><!></div>',1),kt=I('<link rel="stylesheet"/>'),zt=I("<!> <!>",1),Et=I('<!> <!> <!> <main class="chat-app"><!></main>',1);function qt(K,a){Le(a,!0);const m=(p,v)=>{let b=()=>v?.().theme,N=()=>v?.().language;const c=E(()=>{const{openButtonTitle:C,openButtonDescription:f}=b().translations[N()];return{openButtonTitle:C,openButtonDescription:f}}),T=E(()=>b().fullTheme[e(w)].tokens.svgs);{let C=E(()=>["open-button",a.buttonClass]);Be(p,{get href(){return b().buttonHref},get onclick(){return a.onclick},onmouseenter:t,onmouseleave:r,get style(){return a.buttonStyle},get className(){return e(C)},get isStandalone(){return e(l)},children:(f,Z)=>{var j=xt(),L=A(j);{var B=R=>{var G=_t(),ve=M(G);{var Pe=W=>{var O=wt(),Q=M(O);ce(Q,()=>e(c).openButtonTitle),D(O),h(W,O)};U(ve,W=>{e(c).openButtonTitle&&W(Pe)})}var Re=Y(ve,2);{var We=W=>{var O=yt(),Q=M(O),Fe=M(Q);ce(Fe,()=>e(c).openButtonDescription),D(Q),Ee(Q,oe=>le(_,oe),()=>e(_)),D(O),Ee(O,oe=>le(d,oe),()=>e(d)),h(W,O)};U(Re,W=>{e(c).openButtonDescription&&bt==="mouse"&&W(We)})}D(G),h(R,G)};U(L,R=>{(e(c).openButtonTitle||e(c).openButtonDescription)&&R(B)})}var P=Y(L,2),J=M(P);ce(J,()=>e(T).avatar),D(P),h(f,j)},$$slots:{default:!0}})}};let w=te("light"),k=q(a,"host",7),i=q(a,"onError",7),S=ct(a,["$$slots","$$events","$$legacy","$$host","host","onError"]);const z=async p=>{const b=await(await fetch(`${p}/chatconfig`)).json();return lt.parse(b)},s=async({forceTheme:p,lang:v,apiUrl:b})=>{const N=window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await z(b);let c;v?c=ot(v):c=nt();const T=it(N),C=Object.keys(T.fullTheme);return le(w,st(C),!0),{theme:T,language:c}};let l=E(()=>!!k()),y=te(!1),d=te(void 0),_=te(void 0),F=E(()=>e(_)?.offsetWidth??0),H=E(()=>e(_)?.offsetHeight??0);function t(){!e(_)||!e(d)||(e(d).style.width=`${e(F)}px`,e(d).style.height=`${e(H)}px`)}function r(){!e(y)&&e(d)&&(e(d).style.width="0",e(d).style.height="0")}let o=E(()=>s(S).catch(p=>i()(p)));var u=X();et(p=>{var v=X(),b=A(v);{var N=c=>{var T=X(),C=A(T);Ce(C,()=>e(o),null,(f,Z)=>{var j=zt();const L=E(()=>e(Z).theme.fullTheme[e(w)]);var B=A(j);tt(B,17,()=>e(L).fontURLs??[],rt,(J,R)=>{var G=kt();he(()=>Ae(G,"href",e(R))),h(J,G)});var P=Y(B,2);re(P,{id:"font-css",get css(){return e(L).fontCSS}}),h(f,j)}),h(c,T)};U(b,c=>{e(l)&&c(N)})}h(p,v)});var n=A(u);return Ce(n,()=>e(o),p=>{},(p,v)=>{var b=X();const N=E(()=>e(v).theme.fullTheme[e(w)]);var c=A(b);{var T=f=>{var Z=Et(),j=A(Z);{let R=E(()=>at(e(N).tokens));re(j,{id:"theme-css",get css(){return e(R)}})}var L=Y(j,2);re(L,{id:"app-css",get css(){return dt}});var B=Y(L,2);re(B,{id:"custom-css",get css(){return e(N).customCSS}});var P=Y(B,2),J=M(P);m(J,()=>e(v)),D(P),h(f,Z)},C=f=>{m(f,()=>e(v))};U(c,f=>{e(l)?f(T):f(C,!1)})}h(p,b)}),h(K,u),Oe({get host(){return k()},set host(p){k(p),x()},get onError(){return i()},set onError(p){i(p),x()}})}je(qt,{host:{},onError:{}},[],[],!0);export{qt as O};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/ChcTJagy.js";export{o as load_css,r as start};
@@ -1,28 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/Daj9x7sZ.js","../chunks/NZTpNUN0.js","../chunks/TMezqz9A.js","../chunks/CfQtRUjK.js","../chunks/CP9-4jcs.js","../chunks/Cgm2UlUC.js","../chunks/CBFTM35p.js","../chunks/pxprCMm0.js","../chunks/ChcTJagy.js","../chunks/DvEdoyY3.js","../chunks/BWd1KRA2.js","../chunks/LjIoA1Wm.js","../chunks/BtLfsQWl.js","../chunks/D-Dn-KSg.js"])))=>i.map(i=>d[i]);
2
- import{i as z,_ as ut,b as pt}from"../chunks/Cgm2UlUC.js";import"../chunks/NZTpNUN0.js";import{c as K,p as ke,f as x,s as e,e as a,t as V,b as l,d as xe,v as te,r as t,g as ye,N as ae,u as Q,o as Pt,aI as wt,I as M,a as I,G as n,H,aH as Dt,aJ as be,K as vt,aK as ht,J as Ht,O as gt}from"../chunks/TMezqz9A.js";import{a as qe,s as W,d as ft,n as r,e as $,i as N,I as ee,o as jt,C as mt,t as Ft,p as At,S as s,q as Ot,P as we,R as fe,r as _e,N as Rt,u as Gt,v as Jt,f as Ut,M as Zt,w as $t,x as bt,h as Nt,y as Qt}from"../chunks/CBFTM35p.js";import{p as ie,s as Vt,r as Wt}from"../chunks/CfQtRUjK.js";import{g as Kt}from"../chunks/ChcTJagy.js";import{p as Yt}from"../chunks/pxprCMm0.js";var Xt=x('<div class="swatch svelte-ys8164"><div class="swatch__color svelte-ys8164"></div> <div class="swatch__label svelte-ys8164"> </div></div>');const ea={hash:"svelte-ys8164",code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-ys8164 {opacity:1;}}.swatch__color.svelte-ys8164 {aspect-ratio:1;width:100%;}.swatch__label.svelte-ys8164 {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
3
-
4
- @media (min-width: 768px) {display:block;
5
- }}`};function ne(b,d){ke(d,!1),qe(b,ea);let f=ie(d,"name",12),c=ie(d,"key",12),B=ie(d,"value",12);var _=Xt(),E=a(_),P=e(E,2),F=a(P,!0);return t(P),t(_),V(()=>{W(_,"title",`Color ${c()}: ${B()}`),ft(E,`background-color: var(--color-${f()??""}-${c()??""});`),ye(F,c())}),l(b,_),xe({get name(){return f()},set name(h){f(h),te()},get key(){return c()},set key(h){c(h),te()},get value(){return B()},set value(h){B(h),te()}})}K(ne,{name:{},key:{},value:{}},[],[],!0);var ta=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 _t(b){var d=ta();l(b,d)}K(_t,{},[],[],!0);var aa=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> <h2>Title h2</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
6
- enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <h3>Title h3</h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
7
- enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <h4>Title h4</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
8
- enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <ul><li>Unordered List 1</li> <li>Unordered List 2</li> <li>Unordered List 3</li></ul> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
9
- enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet sed sed enim in elit vulputate
10
- finibus.</p> <table><tbody><tr><th>Name</th><th>Role</th><th>Location</th></tr><tr><td>Sarah Hilse</td><td>Software Developer</td><td>Zürich</td></tr><tr><td>Sarah Perrollaz</td><td>User Experience Designer</td><td>Bern</td></tr><tr><td>Sarah Bähler</td><td>User Experience Designer</td><td>Fribourg</td></tr></tbody></table> <ol><li>Ordered List 1</li> <li>Ordered List 2</li> <li>Ordered List 3</li></ol> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
11
- enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet <a href="https://www.google.com">Check it on google</a> sed sed enim in elit vulputate finibus.</p>`,1);function yt(b){var d=aa();ae(26),l(b,d)}K(yt,{},[],[],!0);const ia=[{type:"user",time:"2025-01-22T08:03:11.044Z",message:"Ok, let's inspect this dummy discussion"},{state:"done",errors:[],type:"bot",time:"2025-03-31T15:37:53.914Z",message:{markdown:`Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind.
12
-
13
- Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über **End-to-End-Tests mit Jest und Puppeteer** von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert[^4].
14
-
15
- Zusätzlich gibt es auch Inhalte über **Debugging von E-Mails auf einem Staging-Server**, die einfache Lösungen für Testumgebungen bieten[^3].
16
-
17
- Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen!
18
-
19
- `,html:`<p>Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind. </p>
20
- <p>Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über <strong>End-to-End-Tests mit Jest und Puppeteer</strong> von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert <liipgpt-reference-number data-source="{&quot;url&quot;:&quot;https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks&quot;,&quot;considered&quot;:true,&quot;referencesIndex&quot;:{&quot;all&quot;:3,&quot;used&quot;:1},&quot;display&quot;:{&quot;card&quot;:{&quot;title&quot;:&quot;How to test your Gutenberg blocks with Jest and Puppeteer · Blog&quot;,&quot;description&quot;:&quot;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.&quot;,&quot;badge&quot;:&quot;https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks&quot;},&quot;listItem&quot;:{&quot;title&quot;:&quot;How to test your Gutenberg blocks with Jest and Puppeteer · Blog&quot;,&quot;badge&quot;:&quot;www.liip.ch&quot;}}}" data-used-index="1" data-all-index="3"></liipgpt-reference-number>. </p>
21
- <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="{&quot;url&quot;:&quot;https://www.liip.ch/en/blog/debugging-email-on-staging-server&quot;,&quot;considered&quot;:true,&quot;referencesIndex&quot;:{&quot;all&quot;:2,&quot;used&quot;:2},&quot;display&quot;:{&quot;card&quot;:{&quot;title&quot;:&quot;Debugging Email on Staging Server · Blog&quot;,&quot;description&quot;:&quot;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.&quot;,&quot;badge&quot;:&quot;https://www.liip.ch/en/blog/debugging-email-on-staging-server&quot;},&quot;listItem&quot;:{&quot;title&quot;:&quot;Debugging Email on Staging Server · Blog&quot;,&quot;badge&quot;:&quot;www.liip.ch&quot;}}}" data-used-index="2" data-all-index="2"></liipgpt-reference-number>. </p>
22
- <p>Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen! </p>
23
- `},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 na=x('<link rel="stylesheet"/>'),sa=x("<!> <!> <!> <!> <!>",1),oa=x('<div class="context-menu svelte-a9tspw"><!></div>'),ra=x('<div class="chat-app__loader-container">Loading...</div>'),la=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-a9tspw"><!></div> <h3 class="h4">Highlight Colors (optional)</h3> <div class="color-swatches svelte-a9tspw"><!></div> <h3 class="h4">Grey Colors</h3> <div class="color-swatches svelte-a9tspw"><!></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
24
- files and are applied to the components that need them.</p> <div class="card transition-colors svelte-a9tspw">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 (optional)</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 (optional)</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-a9tspw"><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">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
25
- 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> <h3>Menu example</h3> <div class="context-box__content svelte-a9tspw"><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-a9tspw"><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"></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),da=x('<main class="chat-app svelte-a9tspw"><!> <div class="chat-app__container svelte-a9tspw"><div class="chat-app__main svelte-a9tspw"><!></div></div></main>');const ca={hash:"svelte-a9tspw",code:`.color-swatches.svelte-a9tspw {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-a9tspw,
26
- .chat-app__container.svelte-a9tspw {width:100%;height:100%;background:var(--body-background);}.context-menu.svelte-a9tspw {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__container.svelte-a9tspw {overflow-y:auto;}.chat-app__main.svelte-a9tspw {background:transparent;}.card.svelte-a9tspw {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-a9tspw {position:relative;top:0;left:0;transform:none;}.references__container.svelte-a9tspw {background-color:var(--aside-background);}.context-box__content.svelte-a9tspw {position:relative;}`};function kt(b,d){ke(d,!0),qe(b,ca);let f=ie(d,"data",7),c=H(()=>r.t);Q(()=>{const o={lang:f().options.lang.value,forceTheme:f().options?.["force-theme"]?.value,apiUrl:f().options["api-url"].value,features:""};Pt(()=>r.init(o).catch(i=>{console.error("Failed to init chat logic",i)}))});const B=ia;var _=da();wt(o=>{var i=M(),u=I(i);{var w=y=>{var q=sa(),p=I(q);$(p,17,()=>r.themeBase.fontURLs??[],N,(L,O)=>{var j=na();V(()=>W(j,"href",n(O))),l(L,j)});var g=e(p,2);ee(g,{id:"font-css",get css(){return r.themeBase.fontCSS}});var k=e(g,2);{let L=H(()=>Ut(r.theme));ee(k,{id:"theme-css",get css(){return n(L)}})}var v=e(k,2);ee(v,{id:"app-css",get css(){return jt}});var C=e(v,2);ee(C,{id:"custom-css",get css(){return r.themeBase.customCSS}}),l(y,q)};z(u,y=>{r.initialized&&y(w)})}l(o,i)});let E;var P=a(_);{var F=o=>{var i=oa(),u=a(i);mt(u,{get chatLogic(){return r}}),t(i),l(o,i)};z(P,o=>{r.initialized&&o(F)})}var h=e(P,2),D=a(h),Y=a(D);{var A=o=>{var i=ra();Ft(2,i,()=>At,()=>({duration:200,delay:300})),l(o,i)},X=o=>{var i=la(),u=I(i),w=e(a(u),8),y=a(w);{var q=m=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(r.theme.colors.brand),N,(G,J)=>{var T=H(()=>be(n(J),2));let U=()=>n(T)[0],Z=()=>n(T)[1];ne(G,{name:"brand",get key(){return U()},get value(){return Z()}})}),l(m,S)};z(y,m=>{r.theme.colors?.brand&&m(q)})}t(w);var p=e(w,4),g=a(p);{var k=m=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(r.theme.colors.highlight),N,(G,J)=>{var T=H(()=>be(n(J),2));let U=()=>n(T)[0],Z=()=>n(T)[1];ne(G,{name:"highlight",get key(){return U()},get value(){return Z()}})}),l(m,S)};z(g,m=>{r.theme?.colors?.highlight&&m(k)})}t(p);var v=e(p,4),C=a(v);{var L=m=>{var S=M(),R=I(S);$(R,17,()=>Object.entries(r.theme.colors.grey),N,(G,J)=>{var T=H(()=>be(n(J),2));let U=()=>n(T)[0],Z=()=>n(T)[1];ne(G,{name:"grey",get key(){return U()},get value(){return Z()}})}),l(m,S)};z(C,m=>{r.theme?.colors?.grey&&m(L)})}t(v),t(u);var O=e(u,4),j=e(a(O),10),Ce=a(j);s(Ce,{name:"avatar",class:"introduction__avatar"});var xt=e(Ce,2);s(xt,{name:"avatar",class:"message__bot-avatar"}),t(j);var Se=e(j,4);Ot(Se,{onSubmit:()=>{}});var se=e(Se,2),Ie=a(se);we(Ie,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{}});var Le=e(Ie,2);we(Le,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{}});var qt=e(Le,2);we(qt,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{}}),t(se);var oe=e(se,4),ze=a(oe),Be=a(ze);fe(Be,{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 Te=e(Be,2);fe(Te,{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 Ct=e(Te,2);fe(Ct,{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:3}}}),t(ze),t(oe);var re=e(oe,2),Me=a(re),le=e(a(Me));_e(le,"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"}}})),_e(le,"data-used-index","1"),_e(le,"data-all-index","3"),ae(),t(Me),t(re);var de=e(re,2),Ee=a(de),Pe=a(Ee),St=e(a(Pe),2);s(St,{name:"externalLink",class:"reference__icon transition-colors"}),t(Pe),ae(4),t(Ee),t(de);var ce=e(de,4),De=a(ce);Rt(De,{});var He=e(De,2);mt(He,{get chatLogic(){return r}});var It=e(He,2);Gt(It,{onclick:()=>{}}),t(ce);var je=e(ce,8),Fe=e(a(je),2),ue=a(Fe),Ae=a(ue);Jt(Ae,{get classificationConfig(){return r.data.chatConfig.classification},impact:0,quality:0});var pe=e(Ae,2),ve=a(pe),Lt=a(ve,!0);t(ve);var zt=e(ve,2);t(pe);var Oe=e(pe,2),he=a(Oe),Bt=a(he,!0);t(he);var Tt=e(he,2);t(Oe),t(ue),t(Fe),t(je),ae(4),t(O);var ge=e(O,2),Mt=e(a(ge),4);_t(Mt),t(ge);var me=e(ge,4);$(me,21,()=>B,N,(m,S)=>{Zt(m,{get message(){return n(S)},get logic(){return r},onmessageupdate:()=>{}})}),t(me);var Re=e(me,2),Ge=e(a(Re),4);yt(Ge);var Je=e(Ge,6),Ue=a(Je);s(Ue,{name:"predefinedQuestion"});var Ze=e(Ue,2);s(Ze,{name:"edit"});var $e=e(Ze,2);s($e,{name:"newConversation"});var Ne=e($e,2);s(Ne,{name:"voteUp"});var Qe=e(Ne,2);s(Qe,{name:"voteDown"});var Ve=e(Qe,2);s(Ve,{name:"retry"});var We=e(Ve,2);s(We,{name:"message"});var Ke=e(We,2);s(Ke,{name:"thread"});var Ye=e(Ke,2);s(Ye,{name:"submit"});var Xe=e(Ye,2);s(Xe,{name:"expand"});var et=e(Xe,2);s(et,{name:"help"});var tt=e(et,2);s(tt,{name:"attach"});var at=e(tt,2);s(at,{name:"record"});var it=e(at,2);s(it,{name:"reward"});var nt=e(it,2);s(nt,{name:"share"});var st=e(nt,2);s(st,{name:"audio"});var ot=e(st,2);s(ot,{name:"copy"});var rt=e(ot,2);s(rt,{name:"dismiss"});var lt=e(rt,2);s(lt,{name:"menu"});var dt=e(lt,2);s(dt,{name:"listUnordered"});var ct=e(dt,2);s(ct,{name:"lightMode"});var Et=e(ct,2);s(Et,{name:"darkMode"}),t(Je),t(Re),V(()=>{ye(Lt,n(c).feedbackFormMessage),W(zt,"placeholder",n(c).feedbackFormMessagePlaceholder),ye(Bt,n(c).feedbackFormEmail),W(Tt,"placeholder",n(c).feedbackFormEmailPlaceholder)}),Dt("submit",ue,async()=>{}),l(o,i)};z(Y,o=>{r.initialized?o(X,!1):o(A)})}return t(D),t(h),t(_),V(o=>E=ft(_,"",E,o),[()=>({"color-scheme":r.colorScheme})]),l(b,_),xe({get data(){return f()},set data(o){f(o),te()}})}K(kt,{data:{}},[],[],!0);var ua=x('<div id="chat-wrapper" class="svelte-1h9zc1h"><div></div> <!> <div></div></div>'),pa=x('<div id="preview" class="svelte-1h9zc1h"><iframe title="sidebar" id="sidebar" class="svelte-1h9zc1h"></iframe> <!></div>');const va={hash:"svelte-1h9zc1h",code:`html,
27
- 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;
28
- /* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function ha(b,d){ke(d,!0),qe(b,va);let f=Wt(d,["$$slots","$$events","$$legacy","$$host"]),c=H(()=>d.data);Q(()=>{window.onmessage=function(i){if(typeof i.data=="string"&&i.data.startsWith("liipgpt-url:")){const u=new URLSearchParams(i.data.replace("liipgpt-url:",""));Kt("?"+u.toString(),{replaceState:!0})}}});const B=i=>`/build/${i}/liipgpt-${i}.iife.js`,_=async i=>{i==="build"&&(await import(B("chat")),await import(B("button"))),i==="dev"&&(await ut(()=>import("../chunks/Daj9x7sZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),await ut(()=>import("../chunks/D-Dn-KSg.js"),__vite__mapDeps([13,1,2,3,12,5,6,7,8,9,10,11]),import.meta.url)),i==="server"&&(import(bt(d.data.options,"chat")),import(bt(d.data.options,"button")))};let E="server",P=H(()=>d.data.options?.["preview-mode"]?.value??E);Q(()=>{_(n(P))});const F=`./sidebar${Yt.url.search}`;let h=vt(void 0),D=vt(void 0);const Y=(i,u)=>{const w=document.createElement("script"),y=document.createTextNode(u);w.appendChild(y),i.replaceChildren(w)};Q(()=>{n(h)&&Y(n(h),n(c).options.CHAT_CONFIG_OVERRIDE.value||"")}),Q(()=>{n(D)&&Y(n(D),n(c).options.onclosechat.value||"")});var A=pa();wt(i=>{var u=M(),w=I(u);{var y=q=>{var p=M(),g=I(p);{var k=C=>{ht.title="LiipGPT Configurator | Components"},v=C=>{ht.title="LiipGPT Configurator"};z(g,C=>{n(c).options["show-components"].value?C(k):C(v,!1)},!0)}l(q,p)};z(w,q=>{q(y,!1)})}l(i,u)});var X=a(A),o=e(X,2);$t(o,()=>n(c),i=>{var u=M(),w=I(u);{var y=p=>{var g=M(),k=I(g);Ht(k,{onerror:v=>console.error("Rendering error of components",v)},v=>{kt(v,Vt(()=>f))}),l(p,g)},q=p=>{var g=ua(),k=a(g);pt(k,L=>gt(h,L),()=>n(h));var v=e(k,2);Nt(v,()=>Qt(n(c).options));var C=e(v,2);pt(C,L=>gt(D,L),()=>n(D)),t(g),l(p,g)};z(w,p=>{n(c).options["show-components"].value?p(y):p(q,!1)})}l(i,u)}),t(A),V(()=>W(X,"src",F)),l(b,A),xe()}K(ha,{},[],[],!0);export{ha as component};