@liip/liipgpt 3.1.5 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/liipgpt-button.iife.js +17 -17
- package/chat/liipgpt-chat.iife.js +26 -26
- package/config/index.cjs +6 -0
- package/config/index.d.ts +56 -0
- package/config/index.js +6 -0
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{Cka1vezo.js → B1-B4mtg.js} +1 -1
- package/configurator/_app/immutable/chunks/{B0WXLX1J.js → BBUV8NAY.js} +1 -1
- package/configurator/_app/immutable/chunks/{DQUNH2ut.js → Bjeg_oGE.js} +1 -1
- package/configurator/_app/immutable/chunks/C-ITotyQ.js +1 -0
- package/configurator/_app/immutable/chunks/{BY9g7Fs-.js → C7F61EmX.js} +1 -1
- package/configurator/_app/immutable/chunks/{BQdomWeS.js → CB4UbYGS.js} +1 -1
- package/configurator/_app/immutable/chunks/{DGtI_Ps6.js → Cm2wS9RB.js} +20 -20
- package/configurator/_app/immutable/chunks/f-az8jJM.js +143 -0
- package/configurator/_app/immutable/chunks/{Bpz1vSSr.js → mT2ZYCk2.js} +1 -1
- package/configurator/_app/immutable/entry/{app.BMADe28q.js → app.agyVlPA0.js} +2 -2
- package/configurator/_app/immutable/entry/start.DWeDxcIz.js +1 -0
- package/configurator/_app/immutable/nodes/{0.BGTtQsuS.js → 0.CYDemkbE.js} +1 -1
- package/configurator/_app/immutable/nodes/{1.CV0bJM1X.js → 1.B-fQulzV.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.BMsVzskQ.js → 2.DKxnXl-X.js} +5 -5
- package/configurator/_app/immutable/nodes/{3.D1ncyx74.js → 3.CzHQ22rw.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +6 -0
- package/index.d.ts +122 -0
- package/index.js +6 -0
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/CJz3G_dw.js +0 -143
- package/configurator/_app/immutable/chunks/WqaQhzMR.js +0 -1
- package/configurator/_app/immutable/entry/start.BFbyydjl.js +0 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import"./NZTpNUN0.js";import{o as Xe}from"./D54U55sL.js";import{aj as vn,ak as gn,p as Rt,f as A,e as m,b as r,r as u,t as rt,d as Ht,v as f,c as Tt,aI as mn,aJ as Ve,y as hn,x as pa,B as pn,P as F,X as Ea,u as bt,T as h,G as t,H as C,o as ye,s as P,aD as ce,Q as Nt,F as te,N as S,a as b,R as Pa,a8 as ba,g as Mt,aK as ze,aL as bn,aG as _n,aM as da,Y as yn,aC as xn,ar as wn}from"./Cx_YT9bD.js";import{i as I,b as Vt,c as Kt}from"./B0YFyw9m.js";import{e as ue,L as Xt,E as At,s as z,O as jt,Q as pe,l as Ie,a as La,T as Cn,U as Pe,V as In,W as kn,X as We,Y as _a,Z as Tn,_ as Sn,j as c,$ as Aa,a0 as Bn,a1 as En,a2 as Pn,a3 as Ln,a4 as An,t as $t,a5 as fa,a6 as Mn,S as Ge,a7 as Dn,n as be,a8 as Ee,a9 as On,m as Gt,h as xe,w as Fn,aa as ya,F as Nn,q as Ma,ab as Rn,M as Hn,x as Ce,ac as Da,y as Oa,i as ke,p as va,ad as zn,ae as Yn,af as qn,ag as jn,R as xa,ah as Kn,P as Un,I as Re,o as Fa,ai as wa,aj as Vn,ak as Wn,al as Qn,am as Xn,an as Gn,N as Zn,ao as Jn,u as $n,C as tr,v as er,c as ar}from"./Cm2wS9RB.js";import{p as v,s as He,r as Ye}from"./DePuinxN.js";import"./C-ITotyQ.js";import{i as Na}from"./CDW8Ir6T.js";import{t as nr}from"./CB4UbYGS.js";import{O as rr}from"./Bjeg_oGE.js";function or(g,e,o,a,s){vn&&gn();var i=e.$$slots?.[o],l=!1;i===!0&&(i=e[o],l=!0),i===void 0?s!==null&&s(g):i(g,l?()=>a:a)}const sr=Array(12).fill(0);var ir=A('<div class="sonner-loading-bar"></div>'),lr=A('<div><div class="sonner-spinner"></div></div>');function Ra(g,e){Rt(e,!0);let o=v(e,"visible",7),a=v(e,"class",7);var s=lr(),i=m(s);return ue(i,23,()=>sr,(l,p)=>`spinner-bar-${p}`,(l,p)=>{var _=ir();r(l,_)}),u(i),u(s),rt(l=>{At(s,1,l),z(s,"data-visible",o())},[()=>Xt(["sonner-loading-wrapper",a()].filter(Boolean).join(" "))]),r(g,s),Ht({get visible(){return o()},set visible(l){o(l),f()},get class(){return a()},set class(l){a(l),f()}})}Tt(Ra,{visible:{},class:{}},[],[],!0);const dr=typeof window<"u"?window:void 0;function cr(g){let e=g.activeElement;for(;e?.shadowRoot;){const o=e.shadowRoot.activeElement;if(o===e)break;e=o}return e}class ur{#e;#t;constructor(e={}){const{window:o=dr,document:a=o?.document}=e;o!==void 0&&(this.#e=a,this.#t=mn(s=>{const i=Ve(o,"focusin",s),l=Ve(o,"focusout",s);return()=>{i(),l()}}))}get current(){return this.#t?.(),this.#e?cr(this.#e):null}}new ur;class fr{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return hn(this.#t)}get(){const e=pa(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const o=pa(this.#t);return o===void 0?e:o}set(e){return pn(this.#t,e)}}const vr=new fr("<Toaster/>");function Qe(g){return g.label!==void 0}function gr(){let g=F(Ea(typeof document<"u"?document.hidden:!1));return bt(()=>Ve(document,"visibilitychange",()=>{h(g,document.hidden,!0)})),{get current(){return t(g)}}}const Ca=4e3,mr=14,hr=45,pr=200,br=.05,_r={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function yr(g){const[e,o]=g.split("-"),a=[];return e&&a.push(e),o&&a.push(o),a}function Ia(g){return 1/(1.5+Math.abs(g)/20)}var xr=A("<div><!></div>"),wr=(g,e,o,a,s)=>{t(e)||!t(o)||(a(),s().onDismiss?.(s()))},Cr=A('<button data-close-button=""><!></button>'),Ir=A('<div data-icon=""><!> <!></div>'),kr=A('<div data-description=""><!></div>'),Tr=(g,e,o,a)=>{Qe(e().cancel)&&t(o)&&(e().cancel?.onClick?.(g),a())},Sr=A('<button data-button="" data-cancel=""> </button>'),Br=(g,e,o)=>{Qe(e().action)&&(e().action?.onClick(g),!g.defaultPrevented&&o())},Er=A('<button data-button=""> </button>'),Pr=A('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),Lr=A('<li data-sonner-toast=""><!> <!></li>');function Ha(g,e){Rt(e,!0);const o=d=>{var st=S(),ht=b(st);{var Ct=$=>{var mt=xr(),Wt=m(mt);Nt(Wt,et),u(mt),rt(ae=>{At(mt,1,ae),z(mt,"data-visible",t(nt)==="loading")},[()=>Xt(pe(t(n)?.loader,a()?.classes?.loader,"sonner-loader"))]),r($,mt)},Bt=$=>{{let mt=C(()=>pe(t(n)?.loader,a().classes?.loader)),Wt=C(()=>t(nt)==="loading");Ra($,{get class(){return t(mt)},get visible(){return t(Wt)}})}};I(ht,$=>{et()?$(Ct):$(Bt,!1)})}r(d,st)};let a=v(e,"toast",7),s=v(e,"index",7),i=v(e,"expanded",7),l=v(e,"invert",7),p=v(e,"position",7),_=v(e,"visibleToasts",7),y=v(e,"expandByDefault",7),M=v(e,"closeButton",7),R=v(e,"interacting",7),B=v(e,"cancelButtonStyle",7,""),x=v(e,"actionButtonStyle",7,""),w=v(e,"duration",7),Y=v(e,"descriptionClass",7,""),_t=v(e,"classes",7),pt=v(e,"unstyled",7,!1),et=v(e,"loadingIcon",7),G=v(e,"successIcon",7),ot=v(e,"errorIcon",7),lt=v(e,"warningIcon",7),q=v(e,"closeIcon",7),L=v(e,"infoIcon",7),k=v(e,"defaultRichColors",7,!1),dt=v(e,"swipeDirections",7),O=v(e,"closeButtonAriaLabel",7);const Q={..._r};let at=F(!1),J=F(!1),j=F(!1),K=F(!1),it=F(!1),D=F(0),X=F(0),H=a().duration||w()||Ca,yt=F(null),T=F(void 0),U=F(null),N=F(null);const xt=C(()=>s()===0),wt=C(()=>s()+1<=_()),nt=C(()=>a().type),E=C(()=>a().dismissable!==!1),Z=C(()=>a().class||""),gt=C(()=>a().descriptionClass||""),Et=C(()=>jt.heights.findIndex(d=>d.toastId===a().id)||0),ee=C(()=>a().closeButton??M()),Dt=C(()=>a().duration??w()??Ca);let St=null;const ne=C(()=>p().split("-")),_e=C(()=>jt.heights.reduce((d,st,ht)=>ht>=t(Et)?d:d+st.height,0)),ge=gr(),Le=C(()=>a().invert||l()),V=C(()=>t(nt)==="loading"),n=C(()=>({...Q,..._t()})),kt=C(()=>a().title),Zt=C(()=>a().description);let Ut=F(0),Ot=F(0);const se=C(()=>Math.round(t(Et)*mr+t(_e)));bt(()=>{t(kt),t(Zt);let d;i()||y()?d=1:d=1-s()*br;const st=ye(()=>t(T));if(st===void 0)return;st.style.setProperty("height","auto");const ht=st.offsetHeight,Ct=st.getBoundingClientRect().height,Bt=Math.round(Ct/d+Number.EPSILON&100)/100;st.style.removeProperty("height");let $;Math.abs(Bt-ht)<1?$=Bt:$=ht,h(X,$,!0),ye(()=>{jt.setHeight({toastId:a().id,height:$})})});function re(){h(J,!0),h(D,t(se),!0),jt.removeHeight(a().id),setTimeout(()=>{jt.remove(a().id)},pr)}let It;const fe=C(()=>a().promise&&t(nt)==="loading"||a().duration===Number.POSITIVE_INFINITY);function ie(){h(Ut,new Date().getTime(),!0),It=setTimeout(()=>{a().onAutoClose?.(a()),re()},H)}function Jt(){if(t(Ot)<t(Ut)){const d=new Date().getTime()-t(Ut);H=H-d}h(Ot,new Date().getTime(),!0)}bt(()=>{a().updated&&(clearTimeout(It),H=t(Dt),ie())}),bt(()=>(t(fe)||(i()||R()||ge.current?Jt():ie()),()=>clearTimeout(It))),Xe(()=>{h(at,!0);const d=t(T)?.getBoundingClientRect().height;return h(X,d,!0),jt.setHeight({toastId:a().id,height:d}),()=>{jt.removeHeight(a().id)}}),bt(()=>{a().delete&&ye(()=>{re(),a().onDismiss?.(a())})});const we=d=>{if(t(V))return;h(D,t(se),!0);const st=d.target;st.setPointerCapture(d.pointerId),st.tagName!=="BUTTON"&&(h(j,!0),St={x:d.clientX,y:d.clientY})},Ze=()=>{if(t(K)||!t(E))return;St=null;const d=Number(t(T)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),st=Number(t(T)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),ht=new Date().getTime()-(t(yt)?.getTime()??0),Ct=t(U)==="x"?d:st,Bt=Math.abs(Ct)/ht;if(Math.abs(Ct)>=hr||Bt>.11){h(D,t(se),!0),a().onDismiss?.(a()),t(U)==="x"?h(N,d>0?"right":"left",!0):h(N,st>0?"down":"up",!0),re(),h(K,!0);return}else t(T)?.style.setProperty("--swipe-amount-x","0px"),t(T)?.style.setProperty("--swipe-amount-y","0px");h(it,!1),h(j,!1),h(U,null)},ma=d=>{if(!St||!t(E)||(window.getSelection()?.toString().length??-1)>0)return;const ht=d.clientY-St.y,Ct=d.clientX-St.x,Bt=dt()??yr(p());!t(U)&&(Math.abs(Ct)>1||Math.abs(ht)>1)&&h(U,Math.abs(Ct)>Math.abs(ht)?"x":"y",!0);let $={x:0,y:0};if(t(U)==="y"){if(Bt.includes("top")||Bt.includes("bottom"))if(Bt.includes("top")&&ht<0||Bt.includes("bottom")&&ht>0)$.y=ht;else{const mt=ht*Ia(ht);$.y=Math.abs(mt)<Math.abs(ht)?mt:ht}}else if(t(U)==="x"&&(Bt.includes("left")||Bt.includes("right")))if(Bt.includes("left")&&Ct<0||Bt.includes("right")&&Ct>0)$.x=Ct;else{const mt=Ct*Ia(Ct);$.x=Math.abs(mt)<Math.abs(Ct)?mt:Ct}(Math.abs($.x)>0||Math.abs($.y)>0)&&h(it,!0),t(T)?.style.setProperty("--swipe-amount-x",`${$.x}px`),t(T)?.style.setProperty("--swipe-amount-y",`${$.y}px`)},Je=()=>{h(j,!1),h(U,null),St=null},$e=C(()=>a().icon?a().icon:t(nt)==="success"?G():t(nt)==="error"?ot():t(nt)==="warning"?lt():t(nt)==="info"?L():t(nt)==="loading"?et():null);var ut=Lr();z(ut,"tabindex",0);let qe;ut.__pointermove=ma,ut.__pointerup=Ze,ut.__pointerdown=we;var je=m(ut);{var ta=d=>{var st=Cr();st.__click=[wr,V,E,re,a];var ht=m(st);Nt(ht,()=>q()??te),u(st),rt(Ct=>{z(st,"aria-label",O()),z(st,"data-disabled",t(V)),At(st,1,Ct)},[()=>Xt(pe(t(n)?.closeButton,a()?.classes?.closeButton))]),r(d,st)};I(je,d=>{t(ee)&&!a().component&&t(nt)!=="loading"&&q()!==null&&d(ta)})}var ea=P(je,2);{var aa=d=>{var st=S();const ht=C(()=>a().component);var Ct=b(st);Kt(Ct,()=>t(ht),(Bt,$)=>{$(Bt,He(()=>a().componentProps,{closeToast:re}))}),r(d,st)},na=d=>{var st=Pr(),ht=b(st);{var Ct=W=>{var zt=Ir(),ve=m(zt);{var me=ct=>{var Yt=S(),Qt=b(Yt);{var Ft=qt=>{var oe=S(),Ae=b(oe);Kt(Ae,()=>a().icon,(Me,De)=>{De(Me,{})}),r(qt,oe)},Lt=qt=>{o(qt)};I(Qt,qt=>{a().icon?qt(Ft):qt(Lt,!1)})}r(ct,Yt)};I(ve,ct=>{(a().promise||t(nt)==="loading")&&ct(me)})}var he=P(ve,2);{var vt=ct=>{var Yt=S(),Qt=b(Yt);{var Ft=qt=>{var oe=S(),Ae=b(oe);Kt(Ae,()=>a().icon,(Me,De)=>{De(Me,{})}),r(qt,oe)},Lt=qt=>{var oe=S(),Ae=b(oe);{var Me=Te=>{var Oe=S(),ra=b(Oe);Nt(ra,()=>G()??te),r(Te,Oe)},De=Te=>{var Oe=S(),ra=b(Oe);{var sn=Se=>{var Fe=S(),oa=b(Fe);Nt(oa,()=>ot()??te),r(Se,Fe)},ln=Se=>{var Fe=S(),oa=b(Fe);{var dn=Be=>{var Ne=S(),sa=b(Ne);Nt(sa,()=>lt()??te),r(Be,Ne)},cn=Be=>{var Ne=S(),sa=b(Ne);{var un=ia=>{var ha=S(),fn=b(ha);Nt(fn,()=>L()??te),r(ia,ha)};I(sa,ia=>{t(nt)==="info"&&ia(un)},!0)}r(Be,Ne)};I(oa,Be=>{t(nt)==="warning"?Be(dn):Be(cn,!1)},!0)}r(Se,Fe)};I(ra,Se=>{t(nt)==="error"?Se(sn):Se(ln,!1)},!0)}r(Te,Oe)};I(Ae,Te=>{t(nt)==="success"?Te(Me):Te(De,!1)},!0)}r(qt,oe)};I(Qt,qt=>{a().icon?qt(Ft):qt(Lt,!1)})}r(ct,Yt)};I(he,ct=>{a().type!=="loading"&&ct(vt)})}u(zt),rt(ct=>At(zt,1,ct),[()=>Xt(pe(t(n)?.icon,a()?.classes?.icon))]),r(W,zt)};I(ht,W=>{(t(nt)||a().icon||a().promise)&&a().icon!==null&&(t($e)!==null||a().icon)&&W(Ct)})}var Bt=P(ht,2),$=m(Bt),mt=m($);{var Wt=W=>{var zt=S(),ve=b(zt);{var me=vt=>{var ct=S();const Yt=C(()=>a().title);var Qt=b(ct);Kt(Qt,()=>t(Yt),(Ft,Lt)=>{Lt(Ft,He(()=>a().componentProps))}),r(vt,ct)},he=vt=>{var ct=ba();rt(()=>Mt(ct,a().title)),r(vt,ct)};I(ve,vt=>{typeof a().title!="string"?vt(me):vt(he,!1)})}r(W,zt)};I(mt,W=>{a().title&&W(Wt)})}u($);var ae=P($,2);{var le=W=>{var zt=kr(),ve=m(zt);{var me=vt=>{var ct=S();const Yt=C(()=>a().description);var Qt=b(ct);Kt(Qt,()=>t(Yt),(Ft,Lt)=>{Lt(Ft,He(()=>a().componentProps))}),r(vt,ct)},he=vt=>{var ct=ba();rt(()=>Mt(ct,a().description)),r(vt,ct)};I(ve,vt=>{typeof a().description!="string"?vt(me):vt(he,!1)})}u(zt),rt(vt=>At(zt,1,vt),[()=>Xt(pe(Y(),t(gt),t(n)?.description,a().classes?.description))]),r(W,zt)};I(ae,W=>{a().description&&W(le)})}u(Bt);var tt=P(Bt,2);{var ft=W=>{var zt=S(),ve=b(zt);{var me=vt=>{var ct=S(),Yt=b(ct);Kt(Yt,()=>a().cancel,(Qt,Ft)=>{Ft(Qt,{})}),r(vt,ct)},he=vt=>{var ct=S(),Yt=b(ct);{var Qt=Ft=>{var Lt=Sr();Lt.__click=[Tr,a,E,re];var qt=m(Lt,!0);u(Lt),rt(oe=>{Ie(Lt,a().cancelButtonStyle??B()),At(Lt,1,oe),Mt(qt,a().cancel.label)},[()=>Xt(pe(t(n)?.cancelButton,a()?.classes?.cancelButton))]),r(Ft,Lt)};I(Yt,Ft=>{Qe(a().cancel)&&Ft(Qt)},!0)}r(vt,ct)};I(ve,vt=>{typeof a().cancel=="function"?vt(me):vt(he,!1)})}r(W,zt)};I(tt,W=>{a().cancel&&W(ft)})}var Pt=P(tt,2);{var de=W=>{var zt=S(),ve=b(zt);{var me=vt=>{var ct=S(),Yt=b(ct);Kt(Yt,()=>a().action,(Qt,Ft)=>{Ft(Qt,{})}),r(vt,ct)},he=vt=>{var ct=S(),Yt=b(ct);{var Qt=Ft=>{var Lt=Er();Lt.__click=[Br,a,re];var qt=m(Lt,!0);u(Lt),rt(oe=>{Ie(Lt,a().actionButtonStyle??x()),At(Lt,1,oe),Mt(qt,a().action.label)},[()=>Xt(pe(t(n)?.actionButton,a()?.classes?.actionButton))]),r(Ft,Lt)};I(Yt,Ft=>{Qe(a().action)&&Ft(Qt)},!0)}r(vt,ct)};I(ve,vt=>{typeof a().action=="function"?vt(me):vt(he,!1)})}r(W,zt)};I(Pt,W=>{a().action&&W(de)})}rt(W=>At($,1,W),[()=>Xt(pe(t(n)?.title,a()?.classes?.title))]),r(d,st)};I(ea,d=>{a().component?d(aa):d(na,!1)})}return u(ut),Vt(ut,d=>h(T,d),()=>t(T)),rt((d,st,ht,Ct)=>{At(ut,1,d),z(ut,"data-rich-colors",a().richColors??k()),z(ut,"data-styled",!(a().component||a().unstyled||pt())),z(ut,"data-mounted",t(at)),z(ut,"data-promise",st),z(ut,"data-swiped",t(it)),z(ut,"data-removed",t(J)),z(ut,"data-visible",t(wt)),z(ut,"data-y-position",t(ne)[0]),z(ut,"data-x-position",t(ne)[1]),z(ut,"data-index",s()),z(ut,"data-front",t(xt)),z(ut,"data-swiping",t(j)),z(ut,"data-dismissable",t(E)),z(ut,"data-type",t(nt)),z(ut,"data-invert",t(Le)),z(ut,"data-swipe-out",t(K)),z(ut,"data-swipe-direction",t(N)),z(ut,"data-expanded",ht),qe=Ie(ut,`${e.style} ${a().style}`,qe,Ct)},[()=>Xt(pe(e.class,t(Z),t(n)?.toast,a()?.classes?.toast,t(n)?.[t(nt)],a()?.classes?.[t(nt)])),()=>!!a().promise,()=>!!(i()||y()&&t(at)),()=>({"--index":s(),"--toasts-before":s(),"--z-index":jt.toasts.length-s(),"--offset":`${t(J)?t(D):t(se)}px`,"--initial-height":y()?"auto":`${t(X)}px`})]),ce("dragend",ut,Je),r(g,ut),Ht({get toast(){return a()},set toast(d){a(d),f()},get index(){return s()},set index(d){s(d),f()},get expanded(){return i()},set expanded(d){i(d),f()},get invert(){return l()},set invert(d){l(d),f()},get position(){return p()},set position(d){p(d),f()},get visibleToasts(){return _()},set visibleToasts(d){_(d),f()},get expandByDefault(){return y()},set expandByDefault(d){y(d),f()},get closeButton(){return M()},set closeButton(d){M(d),f()},get interacting(){return R()},set interacting(d){R(d),f()},get cancelButtonStyle(){return B()},set cancelButtonStyle(d=""){B(d),f()},get actionButtonStyle(){return x()},set actionButtonStyle(d=""){x(d),f()},get duration(){return w()},set duration(d){w(d),f()},get descriptionClass(){return Y()},set descriptionClass(d=""){Y(d),f()},get classes(){return _t()},set classes(d){_t(d),f()},get unstyled(){return pt()},set unstyled(d=!1){pt(d),f()},get loadingIcon(){return et()},set loadingIcon(d){et(d),f()},get successIcon(){return G()},set successIcon(d){G(d),f()},get errorIcon(){return ot()},set errorIcon(d){ot(d),f()},get warningIcon(){return lt()},set warningIcon(d){lt(d),f()},get closeIcon(){return q()},set closeIcon(d){q(d),f()},get infoIcon(){return L()},set infoIcon(d){L(d),f()},get defaultRichColors(){return k()},set defaultRichColors(d=!1){k(d),f()},get swipeDirections(){return dt()},set swipeDirections(d){dt(d),f()},get closeButtonAriaLabel(){return O()},set closeButtonAriaLabel(d){O(d),f()}})}Pa(["pointermove","pointerup","pointerdown","click"]);Tt(Ha,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{}},[],[],!0);var Ar=ze('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><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>');function za(g){var e=Ar();r(g,e)}Tt(za,{},[],[],!0);var Mr=ze('<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>');function Ya(g){var e=Mr();r(g,e)}Tt(Ya,{},[],[],!0);var Dr=ze('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" 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>');function qa(g){var e=Dr();r(g,e)}Tt(qa,{},[],[],!0);var Or=ze('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><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>');function ja(g){var e=Or();r(g,e)}Tt(ja,{},[],[],!0);var Fr=ze('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function Ka(g){var e=Fr();r(g,e)}Tt(Ka,{},[],[],!0);const ka=3,ca="24px",ua="16px",Ta=4e3,Nr=356,Sa=14,la="dark",Ke="light";function Rr(g,e){const o={};return[g,e].forEach((a,s)=>{const i=s===1,l=i?"--mobile-offset":"--offset",p=i?ua:ca;function _(y){["top","right","bottom","left"].forEach(M=>{o[`${l}-${M}`]=typeof y=="number"?`${y}px`:y})}typeof a=="number"||typeof a=="string"?_(a):typeof a=="object"?["top","right","bottom","left"].forEach(y=>{const M=a[y];M===void 0?o[`${l}-${y}`]=p:o[`${l}-${y}`]=typeof M=="number"?`${M}px`:M}):_(p)}),o}var Hr=A("<ol></ol>"),zr=A('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-214svo"><!></section>');const Yr={hash:"svelte-214svo",code:`html[dir='ltr'],
|
|
2
|
+
[data-sonner-toaster][dir='ltr'] {--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%);}html[dir='rtl'],
|
|
3
|
+
[data-sonner-toaster][dir='rtl'] {--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%);}[data-sonner-toaster] {position:fixed;width:var(--width);font-family:ui-sans-serif,
|
|
4
|
+
system-ui,
|
|
5
|
+
-apple-system,
|
|
6
|
+
BlinkMacSystemFont,
|
|
7
|
+
Segoe UI,
|
|
8
|
+
Roboto,
|
|
9
|
+
Helvetica Neue,
|
|
10
|
+
Arial,
|
|
11
|
+
Noto Sans,
|
|
12
|
+
sans-serif,
|
|
13
|
+
Apple Color Emoji,
|
|
14
|
+
Segoe UI Emoji,
|
|
15
|
+
Segoe UI Symbol,
|
|
16
|
+
Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform 400ms ease;}
|
|
17
|
+
|
|
18
|
+
@media (hover: none) and (pointer: coarse) {[data-sonner-toaster][data-lifted='true'] {transform:none;}
|
|
19
|
+
}[data-sonner-toaster][data-x-position='right'] {right:var(--offset-right);}[data-sonner-toaster][data-x-position='left'] {left:var(--offset-left);}[data-sonner-toaster][data-x-position='center'] {left:50%;transform:translateX(-50%);}[data-sonner-toaster][data-y-position='top'] {top:var(--offset-top);}[data-sonner-toaster][data-y-position='bottom'] {bottom:var(--offset-bottom);}[data-sonner-toast] {--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform 400ms,
|
|
20
|
+
opacity 400ms,
|
|
21
|
+
height 400ms,
|
|
22
|
+
box-shadow 200ms;box-sizing:border-box;outline:none;overflow-wrap:anywhere;}[data-sonner-toast][data-styled='true'] {padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0px 4px 12px rgba(0, 0, 0, 0.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px;}[data-sonner-toast]:focus-visible {box-shadow:0px 4px 12px rgba(0, 0, 0, 0.1),
|
|
23
|
+
0 0 0 2px rgba(0, 0, 0, 0.2);}[data-sonner-toast][data-y-position='top'] {top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap));}[data-sonner-toast][data-y-position='bottom'] {bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap));}[data-sonner-toast][data-styled='true'] [data-description] {font-weight:400;line-height:1.4;color:#3f3f3f;}[data-rich-colors='true'][data-sonner-toast][data-styled='true']
|
|
24
|
+
[data-description] {color:inherit;}[data-sonner-toaster][data-sonner-theme='dark'] [data-description] {color:hsl(0, 0%, 91%);}[data-sonner-toast][data-styled='true'] [data-title] {font-weight:500;line-height:1.5;color:inherit;}[data-sonner-toast][data-styled='true'] [data-icon] {display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end);}[data-sonner-toast][data-promise='true'] [data-icon] > svg {opacity:0;transform:scale(0.8);transform-origin:center;
|
|
25
|
+
animation: sonner-fade-in 300ms ease forwards;}[data-sonner-toast][data-styled='true'] [data-icon] > * {flex-shrink:0;}[data-sonner-toast][data-styled='true'] [data-icon] svg {margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end);}[data-sonner-toast][data-styled='true'] [data-content] {display:flex;flex-direction:column;gap:2px;}[data-sonner-toast][data-styled='true'] [data-button] {border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity 400ms,
|
|
26
|
+
box-shadow 200ms;}[data-sonner-toast][data-styled='true'] [data-button]:focus-visible {box-shadow:0 0 0 2px rgba(0, 0, 0, 0.4);}[data-sonner-toast][data-styled='true'] [data-button]:first-of-type {margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);}[data-sonner-toast][data-styled='true'] [data-cancel] {color:var(--normal-text);background:rgba(0, 0, 0, 0.08);}[data-sonner-toaster][data-sonner-theme='dark']
|
|
27
|
+
[data-sonner-toast][data-styled='true']
|
|
28
|
+
[data-cancel] {background:rgba(255, 255, 255, 0.3);}[data-sonner-toast][data-styled='true'] [data-close-button] {position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity 100ms,
|
|
29
|
+
background 200ms,
|
|
30
|
+
border-color 200ms;}[data-sonner-toast][data-styled='true'] [data-close-button]:focus-visible {box-shadow:0px 4px 12px rgba(0, 0, 0, 0.1),
|
|
31
|
+
0 0 0 2px rgba(0, 0, 0, 0.2);}[data-sonner-toast][data-styled='true'] [data-disabled='true'] {cursor:not-allowed;}[data-sonner-toast][data-styled='true']:hover [data-close-button]:hover {background:var(--gray2);border-color:var(--gray5);}[data-sonner-toast][data-swiping='true']::before {content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1;}[data-sonner-toast][data-y-position='top'][data-swiping='true']::before {bottom:50%;transform:scaleY(3) translateY(50%);}[data-sonner-toast][data-y-position='bottom'][data-swiping='true']::before {top:50%;transform:scaleY(3) translateY(-50%);}[data-sonner-toast][data-swiping='false'][data-removed='true']::before {content:'';position:absolute;inset:0;transform:scaleY(2);}[data-sonner-toast][data-expanded='true']::after {content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%;}[data-sonner-toast][data-mounted='true'] {--y: translateY(0);opacity:1;}[data-sonner-toast][data-expanded='false'][data-front='false'] {--scale: var(--toasts-before) * 0.05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before)))
|
|
32
|
+
scale(calc(-1 * var(--scale)));height:var(--front-toast-height);}[data-sonner-toast] > * {transition:opacity 400ms;}[data-sonner-toast][data-x-position='right'] {right:0;}[data-sonner-toast][data-x-position='left'] {left:0;}[data-sonner-toast][data-expanded='false'][data-front='false'][data-styled='true']
|
|
33
|
+
> * {opacity:0;}[data-sonner-toast][data-visible='false'] {opacity:0;pointer-events:none;}[data-sonner-toast][data-mounted='true'][data-expanded='true'] {--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height);}[data-sonner-toast][data-removed='true'][data-front='true'][data-swipe-out='false'] {--y: translateY(calc(var(--lift) * -100%));opacity:0;}[data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='true'] {--y: translateY(
|
|
34
|
+
calc(var(--lift) * var(--offset) + var(--lift) * -100%)
|
|
35
|
+
);opacity:0;}[data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='false'] {--y: translateY(40%);opacity:0;transition:transform 500ms,
|
|
36
|
+
opacity 200ms;}[data-sonner-toast][data-removed='true'][data-front='false']::before {height:calc(var(--initial-height) + 20%);}[data-sonner-toast][data-swiping='true'] {transform:var(--y) translateY(var(--swipe-amount-y, 0px))
|
|
37
|
+
translateX(var(--swipe-amount-x, 0px));transition:none;}[data-sonner-toast][data-swiped='true'] {-webkit-user-select:none;-moz-user-select:none;user-select:none;}[data-sonner-toast][data-swipe-out='true'][data-y-position='bottom'],
|
|
38
|
+
[data-sonner-toast][data-swipe-out='true'][data-y-position='top'] {animation-duration:200ms;animation-timing-function:ease-out;animation-fill-mode:forwards;}[data-sonner-toast][data-swipe-out='true'][data-swipe-direction='left'] {
|
|
39
|
+
animation-name: swipe-out-left;}[data-sonner-toast][data-swipe-out='true'][data-swipe-direction='right'] {
|
|
40
|
+
animation-name: swipe-out-right;}[data-sonner-toast][data-swipe-out='true'][data-swipe-direction='up'] {
|
|
41
|
+
animation-name: swipe-out-up;}[data-sonner-toast][data-swipe-out='true'][data-swipe-direction='down'] {
|
|
42
|
+
animation-name: swipe-out-down;}
|
|
43
|
+
|
|
44
|
+
@keyframes swipe-out-left {
|
|
45
|
+
from {
|
|
46
|
+
transform: var(--y) translateX(var(--swipe-amount-x));
|
|
47
|
+
opacity: 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
to {
|
|
51
|
+
transform: var(--y) translateX(calc(var(--swipe-amount-x) - 100%));
|
|
52
|
+
opacity: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes swipe-out-right {
|
|
57
|
+
from {
|
|
58
|
+
transform: var(--y) translateX(var(--swipe-amount-x));
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
to {
|
|
63
|
+
transform: var(--y) translateX(calc(var(--swipe-amount-x) + 100%));
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes swipe-out-up {
|
|
69
|
+
from {
|
|
70
|
+
transform: var(--y) translateY(var(--swipe-amount-y));
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
to {
|
|
75
|
+
transform: var(--y) translateY(calc(var(--swipe-amount-y) - 100%));
|
|
76
|
+
opacity: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@keyframes swipe-out-down {
|
|
81
|
+
from {
|
|
82
|
+
transform: var(--y) translateY(var(--swipe-amount-y));
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
to {
|
|
87
|
+
transform: var(--y) translateY(calc(var(--swipe-amount-y) + 100%));
|
|
88
|
+
opacity: 0;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@media (max-width: 600px) {[data-sonner-toaster] {position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%;}[data-sonner-toaster][dir='rtl'] {left:calc(var(--mobile-offset-left) * -1);}[data-sonner-toaster] [data-sonner-toast] {left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2);}[data-sonner-toaster][data-x-position='left'] {left:var(--mobile-offset-left);}[data-sonner-toaster][data-y-position='bottom'] {bottom:var(--mobile-offset-bottom);}[data-sonner-toaster][data-y-position='top'] {top:var(--mobile-offset-top);}[data-sonner-toaster][data-x-position='center'] {left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none;}
|
|
93
|
+
}[data-sonner-toaster][data-sonner-theme='light'] {--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 87%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 93%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 84%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%);}[data-sonner-toaster][data-sonner-theme='light']
|
|
94
|
+
[data-sonner-toast][data-invert='true'] {--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);}[data-sonner-toaster][data-sonner-theme='dark']
|
|
95
|
+
[data-sonner-toast][data-invert='true'] {--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12);}[data-sonner-toaster][data-sonner-theme='dark'] {--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 43%, 17%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 9%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%);}[data-sonner-toaster][data-sonner-theme='dark']
|
|
96
|
+
[data-sonner-toast]
|
|
97
|
+
[data-close-button] {background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text);}[data-sonner-toaster][data-sonner-theme='dark']
|
|
98
|
+
[data-sonner-toast]
|
|
99
|
+
[data-close-button]:hover {background:var(--normal-bg-hover);border-color:var(--normal-border-hover);}[data-rich-colors='true'][data-sonner-toast][data-type='success'] {background:var(--success-bg);border-color:var(--success-border);color:var(--success-text);}[data-rich-colors='true'][data-sonner-toast][data-type='success']
|
|
100
|
+
[data-close-button] {background:var(--success-bg);border-color:var(--success-border);color:var(--success-text);}[data-rich-colors='true'][data-sonner-toast][data-type='info'] {background:var(--info-bg);border-color:var(--info-border);color:var(--info-text);}[data-rich-colors='true'][data-sonner-toast][data-type='info']
|
|
101
|
+
[data-close-button] {background:var(--info-bg);border-color:var(--info-border);color:var(--info-text);}[data-rich-colors='true'][data-sonner-toast][data-type='warning'] {background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text);}[data-rich-colors='true'][data-sonner-toast][data-type='warning']
|
|
102
|
+
[data-close-button] {background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text);}[data-rich-colors='true'][data-sonner-toast][data-type='error'] {background:var(--error-bg);border-color:var(--error-border);color:var(--error-text);}[data-rich-colors='true'][data-sonner-toast][data-type='error']
|
|
103
|
+
[data-close-button] {background:var(--error-bg);border-color:var(--error-border);color:var(--error-text);}.sonner-loading-wrapper {--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10;}.sonner-loading-wrapper[data-visible='false'] {transform-origin:center;
|
|
104
|
+
animation: sonner-fade-out 0.2s ease forwards;}.sonner-spinner {position:relative;top:50%;left:50%;height:var(--size);width:var(--size);}.sonner-loading-bar {
|
|
105
|
+
animation: sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%;}.sonner-loading-bar:nth-child(1) {animation-delay:-1.2s;transform:rotate(0.0001deg) translate(146%);}.sonner-loading-bar:nth-child(2) {animation-delay:-1.1s;transform:rotate(30deg) translate(146%);}.sonner-loading-bar:nth-child(3) {animation-delay:-1s;transform:rotate(60deg) translate(146%);}.sonner-loading-bar:nth-child(4) {animation-delay:-0.9s;transform:rotate(90deg) translate(146%);}.sonner-loading-bar:nth-child(5) {animation-delay:-0.8s;transform:rotate(120deg) translate(146%);}.sonner-loading-bar:nth-child(6) {animation-delay:-0.7s;transform:rotate(150deg) translate(146%);}.sonner-loading-bar:nth-child(7) {animation-delay:-0.6s;transform:rotate(180deg) translate(146%);}.sonner-loading-bar:nth-child(8) {animation-delay:-0.5s;transform:rotate(210deg) translate(146%);}.sonner-loading-bar:nth-child(9) {animation-delay:-0.4s;transform:rotate(240deg) translate(146%);}.sonner-loading-bar:nth-child(10) {animation-delay:-0.3s;transform:rotate(270deg) translate(146%);}.sonner-loading-bar:nth-child(11) {animation-delay:-0.2s;transform:rotate(300deg) translate(146%);}.sonner-loading-bar:nth-child(12) {animation-delay:-0.1s;transform:rotate(330deg) translate(146%);}
|
|
106
|
+
|
|
107
|
+
@keyframes sonner-fade-in {
|
|
108
|
+
0% {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
transform: scale(0.8);
|
|
111
|
+
}
|
|
112
|
+
100% {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
transform: scale(1);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@keyframes sonner-fade-out {
|
|
119
|
+
0% {
|
|
120
|
+
opacity: 1;
|
|
121
|
+
transform: scale(1);
|
|
122
|
+
}
|
|
123
|
+
100% {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
transform: scale(0.8);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@keyframes sonner-spin {
|
|
130
|
+
0% {
|
|
131
|
+
opacity: 1;
|
|
132
|
+
}
|
|
133
|
+
100% {
|
|
134
|
+
opacity: 0.15;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (prefers-reduced-motion) {[data-sonner-toast],
|
|
139
|
+
[data-sonner-toast] > *,
|
|
140
|
+
.sonner-loading-bar {transition:none !important;
|
|
141
|
+
animation: none !important;}
|
|
142
|
+
}.sonner-loader {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transform-origin:center;transition:opacity 200ms,
|
|
143
|
+
transform 200ms;}.sonner-loader[data-visible='false'] {opacity:0;transform:scale(0.8) translate(-50%, -50%);}`};function Ua(g,e){Rt(e,!0),La(g,Yr);function o(n){return n!=="system"?n:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?la:Ke}let a=v(e,"invert",7,!1),s=v(e,"position",7,"bottom-right"),i=v(e,"hotkey",23,()=>["altKey","KeyT"]),l=v(e,"expand",7,!1),p=v(e,"closeButton",7,!1),_=v(e,"offset",7,ca),y=v(e,"mobileOffset",7,ua),M=v(e,"theme",7,"light"),R=v(e,"richColors",7,!1),B=v(e,"duration",7,Ta),x=v(e,"visibleToasts",7,ka),w=v(e,"toastOptions",23,()=>({})),Y=v(e,"dir",7,"auto"),_t=v(e,"gap",7,Sa),pt=v(e,"loadingIcon",7),et=v(e,"successIcon",7),G=v(e,"errorIcon",7),ot=v(e,"warningIcon",7),lt=v(e,"closeIcon",7),q=v(e,"infoIcon",7),L=v(e,"containerAriaLabel",7,"Notifications"),k=v(e,"class",7),dt=v(e,"closeButtonAriaLabel",7,"Close toast"),O=v(e,"onblur",7),Q=v(e,"onfocus",7),at=v(e,"onmouseenter",7),J=v(e,"onmousemove",7),j=v(e,"onmouseleave",7),K=v(e,"ondragend",7),it=v(e,"onpointerdown",7),D=v(e,"onpointerup",7),X=Ye(e,["$$slots","$$events","$$legacy","$$host","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function H(){if(Y()!=="auto")return Y();if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?(ye(()=>Y(window.getComputedStyle(document.documentElement).direction??"ltr")),Y()):(ye(()=>Y(n)),n)}const yt=C(()=>Array.from(new Set([s(),...jt.toasts.filter(n=>n.position).map(n=>n.position)].filter(Boolean))));let T=F(!1),U=F(!1),N=F(Ea(o(M()))),xt=F(void 0),wt=F(null),nt=F(!1);const E=C(()=>i().join("+").replace(/Key/g,"").replace(/Digit/g,""));bt(()=>{jt.toasts.length<=1&&h(T,!1)}),bt(()=>{const n=jt.toasts.filter(kt=>kt.dismiss&&!kt.delete);if(n.length>0){const kt=jt.toasts.map(Zt=>n.find(Ot=>Ot.id===Zt.id)?{...Zt,delete:!0}:Zt);jt.toasts=kt}}),bt(()=>()=>{t(xt)&&t(wt)&&(t(wt).focus({preventScroll:!0}),h(wt,null),h(nt,!1))}),Xe(()=>(jt.reset(),Ve(document,"keydown",kt=>{i().every(Ut=>kt[Ut]||kt.code===Ut)&&(h(T,!0),t(xt)?.focus()),kt.code==="Escape"&&(document.activeElement===t(xt)||t(xt)?.contains(document.activeElement))&&h(T,!1)}))),bt(()=>{if(M()!=="system"&&h(N,M()),typeof window<"u"){M()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?h(N,la):h(N,Ke));const n=window.matchMedia("(prefers-color-scheme: dark)"),kt=({matches:Zt})=>{h(N,Zt?la:Ke,!0)};"addEventListener"in n?n.addEventListener("change",kt):n.addListener(kt)}});const Z=n=>{O()?.(n),t(nt)&&!n.currentTarget.contains(n.relatedTarget)&&(h(nt,!1),t(wt)&&(t(wt).focus({preventScroll:!0}),h(wt,null)))},gt=n=>{Q()?.(n),!(n.target instanceof HTMLElement&&n.target.dataset.dismissable==="false")&&(t(nt)||(h(nt,!0),h(wt,n.relatedTarget,!0)))},Et=n=>{it()?.(n),!(n.target instanceof HTMLElement&&n.target.dataset.dismissable==="false")&&h(U,!0)},ee=n=>{at()?.(n),h(T,!0)},Dt=n=>{j()?.(n),t(U)||h(T,!1)},St=n=>{J()?.(n),h(T,!0)},ne=n=>{K()?.(n),h(T,!1)},_e=n=>{D()?.(n),h(U,!1)};vr.set(new Cn);var ge=zr();z(ge,"tabindex",-1);var Le=m(ge);{var V=n=>{var kt=S(),Zt=b(kt);ue(Zt,18,()=>t(yt),Ut=>Ut,(Ut,Ot,se,re)=>{var It=Hr();const fe=C(()=>{const[Jt,we]=Ot.split("-");return{y:Jt,x:we}}),ie=C(()=>Rr(_(),y()));Pe(It,(Jt,we)=>({tabindex:-1,dir:Jt,class:k(),"data-sonner-toaster":!0,"data-sonner-theme":t(N),"data-y-position":t(fe).y,"data-x-position":t(fe).x,style:e.style,onblur:Z,onfocus:gt,onmouseenter:ee,onmousemove:St,onmouseleave:Dt,ondragend:ne,onpointerdown:Et,onpointerup:_e,...X,[In]:we}),[H,()=>({"--front-toast-height":`${jt.heights[0]?.height}px`,"--width":`${Nr}px`,"--gap":`${_t()}px`,"--offset-top":t(ie)["--offset-top"],"--offset-right":t(ie)["--offset-right"],"--offset-bottom":t(ie)["--offset-bottom"],"--offset-left":t(ie)["--offset-left"],"--mobile-offset-top":t(ie)["--mobile-offset-top"],"--mobile-offset-right":t(ie)["--mobile-offset-right"],"--mobile-offset-bottom":t(ie)["--mobile-offset-bottom"],"--mobile-offset-left":t(ie)["--mobile-offset-left"]})],void 0,"svelte-214svo"),ue(It,23,()=>jt.toasts.filter(Jt=>!Jt.position&&t(se)===0||Jt.position===Ot),Jt=>Jt.id,(Jt,we,Ze,ma)=>{{const Je=$=>{var mt=S(),Wt=b(mt);{var ae=tt=>{var ft=S(),Pt=b(ft);Nt(Pt,()=>et()??te),r(tt,ft)},le=tt=>{var ft=S(),Pt=b(ft);{var de=W=>{za(W)};I(Pt,W=>{et()!==null&&W(de)},!0)}r(tt,ft)};I(Wt,tt=>{et()?tt(ae):tt(le,!1)})}r($,mt)},$e=$=>{var mt=S(),Wt=b(mt);{var ae=tt=>{var ft=S(),Pt=b(ft);Nt(Pt,()=>G()??te),r(tt,ft)},le=tt=>{var ft=S(),Pt=b(ft);{var de=W=>{Ya(W)};I(Pt,W=>{G()!==null&&W(de)},!0)}r(tt,ft)};I(Wt,tt=>{G()?tt(ae):tt(le,!1)})}r($,mt)},ut=$=>{var mt=S(),Wt=b(mt);{var ae=tt=>{var ft=S(),Pt=b(ft);Nt(Pt,()=>ot()??te),r(tt,ft)},le=tt=>{var ft=S(),Pt=b(ft);{var de=W=>{qa(W)};I(Pt,W=>{ot()!==null&&W(de)},!0)}r(tt,ft)};I(Wt,tt=>{ot()?tt(ae):tt(le,!1)})}r($,mt)},qe=$=>{var mt=S(),Wt=b(mt);{var ae=tt=>{var ft=S(),Pt=b(ft);Nt(Pt,()=>q()??te),r(tt,ft)},le=tt=>{var ft=S(),Pt=b(ft);{var de=W=>{ja(W)};I(Pt,W=>{q()!==null&&W(de)},!0)}r(tt,ft)};I(Wt,tt=>{q()?tt(ae):tt(le,!1)})}r($,mt)},je=$=>{var mt=S(),Wt=b(mt);{var ae=tt=>{var ft=S(),Pt=b(ft);Nt(Pt,()=>lt()??te),r(tt,ft)},le=tt=>{var ft=S(),Pt=b(ft);{var de=W=>{Ka(W)};I(Pt,W=>{lt()!==null&&W(de)},!0)}r(tt,ft)};I(Wt,tt=>{lt()?tt(ae):tt(le,!1)})}r($,mt)};let ta=C(()=>w()?.duration??B()),ea=C(()=>w()?.class??""),aa=C(()=>w()?.descriptionClass||""),na=C(()=>w()?.style??""),d=C(()=>w().classes||{}),st=C(()=>w().unstyled??!1),ht=C(()=>w()?.cancelButtonStyle??""),Ct=C(()=>w()?.actionButtonStyle??""),Bt=C(()=>w()?.closeButtonAriaLabel??dt());Ha(Jt,{get index(){return t(Ze)},get toast(){return t(we)},get defaultRichColors(){return R()},get duration(){return t(ta)},get class(){return t(ea)},get descriptionClass(){return t(aa)},get invert(){return a()},get visibleToasts(){return x()},get closeButton(){return p()},get interacting(){return t(U)},get position(){return Ot},get style(){return t(na)},get classes(){return t(d)},get unstyled(){return t(st)},get cancelButtonStyle(){return t(ht)},get actionButtonStyle(){return t(Ct)},get closeButtonAriaLabel(){return t(Bt)},get expandByDefault(){return l()},get expanded(){return t(T)},get loadingIcon(){return pt()},successIcon:Je,errorIcon:$e,warningIcon:ut,infoIcon:qe,closeIcon:je,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),u(It),Vt(It,Jt=>h(xt,Jt),()=>t(xt)),rt(()=>It.dir=It.dir),r(Ut,It)}),r(n,kt)};I(Le,n=>{jt.toasts.length>0&&n(V)})}return u(ge),rt(()=>z(ge,"aria-label",`${L()??""} ${t(E)??""}`)),r(g,ge),Ht({get invert(){return a()},set invert(n=!1){a(n),f()},get position(){return s()},set position(n="bottom-right"){s(n),f()},get hotkey(){return i()},set hotkey(n=["altKey","KeyT"]){i(n),f()},get expand(){return l()},set expand(n=!1){l(n),f()},get closeButton(){return p()},set closeButton(n=!1){p(n),f()},get offset(){return _()},set offset(n=ca){_(n),f()},get mobileOffset(){return y()},set mobileOffset(n=ua){y(n),f()},get theme(){return M()},set theme(n="light"){M(n),f()},get richColors(){return R()},set richColors(n=!1){R(n),f()},get duration(){return B()},set duration(n=Ta){B(n),f()},get visibleToasts(){return x()},set visibleToasts(n=ka){x(n),f()},get toastOptions(){return w()},set toastOptions(n={}){w(n),f()},get dir(){return Y()},set dir(n="auto"){Y(n),f()},get gap(){return _t()},set gap(n=Sa){_t(n),f()},get loadingIcon(){return pt()},set loadingIcon(n){pt(n),f()},get successIcon(){return et()},set successIcon(n){et(n),f()},get errorIcon(){return G()},set errorIcon(n){G(n),f()},get warningIcon(){return ot()},set warningIcon(n){ot(n),f()},get closeIcon(){return lt()},set closeIcon(n){lt(n),f()},get infoIcon(){return q()},set infoIcon(n){q(n),f()},get containerAriaLabel(){return L()},set containerAriaLabel(n="Notifications"){L(n),f()},get class(){return k()},set class(n){k(n),f()},get closeButtonAriaLabel(){return dt()},set closeButtonAriaLabel(n="Close toast"){dt(n),f()},get onblur(){return O()},set onblur(n){O(n),f()},get onfocus(){return Q()},set onfocus(n){Q(n),f()},get onmouseenter(){return at()},set onmouseenter(n){at(n),f()},get onmousemove(){return J()},set onmousemove(n){J(n),f()},get onmouseleave(){return j()},set onmouseleave(n){j(n),f()},get ondragend(){return K()},set ondragend(n){K(n),f()},get onpointerdown(){return it()},set onpointerdown(n){it(n),f()},get onpointerup(){return D()},set onpointerup(n){D(n),f()}})}Tt(Ua,{invert:{},position:{},hotkey:{},expand:{},closeButton:{},offset:{},mobileOffset:{},theme:{},richColors:{},duration:{},visibleToasts:{},toastOptions:{},dir:{},gap:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},containerAriaLabel:{},class:{},closeButtonAriaLabel:{},onblur:{},onfocus:{},onmouseenter:{},onmousemove:{},onmouseleave:{},ondragend:{},onpointerdown:{},onpointerup:{}},[],[],!0);var qr=A("<div><!></div>");function Va(g,e){const o=bn();Rt(e,!0);let a=v(e,"id",23,()=>_a(o)),s=v(e,"children",7),i=v(e,"child",7),l=v(e,"ref",15,null),p=Ye(e,["$$slots","$$events","$$legacy","$$host","id","children","child","ref"]);const _=kn.create({id:We.with(()=>a()),ref:We.with(()=>l(),w=>l(w))}),y=C(()=>Tn(p,_.props));var M=S(),R=b(M);{var B=w=>{var Y=S(),_t=b(Y);Nt(_t,i,()=>({props:t(y)})),r(w,Y)},x=w=>{var Y=qr();Pe(Y,()=>({...t(y)}));var _t=m(Y);Nt(_t,()=>s()??te),u(Y),r(w,Y)};I(R,w=>{i()?w(B):w(x,!1)})}return r(g,M),Ht({get id(){return a()},set id(w=_a(o)){a(w),f()},get children(){return s()},set children(w){s(w),f()},get child(){return i()},set child(w){i(w),f()},get ref(){return l()},set ref(w=null){l(w),f()}})}Tt(Va,{id:{},children:{},child:{},ref:{}},[],[],!0);function Wa(g,e){Rt(e,!0);let o=v(e,"children",7),a=v(e,"defaultPortalTo",7),s=v(e,"defaultLocale",7);Sn({defaultPortalTo:We.with(()=>a()),defaultLocale:We.with(()=>s())});var i=S(),l=b(i);return Nt(l,()=>o()??te),r(g,i),Ht({get children(){return o()},set children(p){o(p),f()},get defaultPortalTo(){return a()},set defaultPortalTo(p){a(p),f()},get defaultLocale(){return s()},set defaultLocale(p){s(p),f()}})}Tt(Wa,{children:{},defaultPortalTo:{},defaultLocale:{}},[],[],!0);var jr=A('<div role="status" class="sr-only"> </div>');function Qa(g,e){Rt(e,!1),Na();var o=jr(),a=m(o,!0);u(o),rt(()=>Mt(a,c.data.ariaLiveStatusMessage)),r(g,o),Ht()}Tt(Qa,{},[],[],!0);var Kr=A("<div></div>"),Ur=A("<div><!></div>"),Vr=A('<span class="sr-only"> </span> <!>',1),Wr=A('<div><div class="dialog-header"><!> <!></div> <!></div>'),Qr=A("<!> <!>",1);function ga(g,e){Rt(e,!0);let o=v(e,"open",7),a=v(e,"content",7),s=v(e,"title",7),i=v(e,"onClose",7),l=F(void 0),p=F(void 0);const _={duration:Number(c.theme.components.dialog.custom?.transitionDuration)||200,delay:Number(c.theme.components.dialog.custom?.transitionDelay)||0,y:Number(c.theme.components.dialog.custom?.transitionY)||10},y=x=>{x||i()()};bt(()=>{if(o()&&t(l)&&t(p)&&t(p).textContent){const x=Aa(t(p).textContent.trim());t(l).setAttribute("aria-label",x),t(l).removeAttribute("aria-labelledby"),Bn(t(l))[0].focus({preventScroll:!0})}});var M=S(),R=b(M);{var B=x=>{var w=S(),Y=b(w);Kt(Y,()=>An,(_t,pt)=>{pt(_t,{get open(){return o()},onOpenChange:y,children:(et,G)=>{var ot=S(),lt=b(ot);Kt(lt,()=>En,(q,L)=>{L(q,{get to(){return c.targets.portals},children:(k,dt)=>{var O=Qr(),Q=b(O);{const J=(j,K)=>{let it=()=>K?.().props,D=()=>K?.().open;var X=S(),H=b(X);{var yt=T=>{var U=Kr();Pe(U,()=>({...it(),class:"dialog-overlay"})),$t(3,U,()=>fa,()=>_),r(T,U)};I(H,T=>{D()&&T(yt)})}r(j,X)};Kt(Q,()=>Pn,(j,K)=>{K(j,{forceMount:!0,child:J,$$slots:{child:!0}})})}var at=P(Q,2);{const J=(K,it)=>{let D=()=>it?.().props,X=()=>it?.().open;var H=S(),yt=b(H);{var T=U=>{var N=Wr();Pe(N,()=>({...D(),class:"dialog-content"}));var xt=m(N),wt=m(xt);Kt(wt,()=>Mn,(Z,gt)=>{gt(Z,{class:"dialog-title h4",children:(Et,ee)=>{var Dt=Ur(),St=m(Dt);Nt(St,()=>s()??te),u(Dt),Vt(Dt,ne=>h(p,ne),()=>t(p)),r(Et,Dt)},$$slots:{default:!0}})});var nt=P(wt,2);Kt(nt,()=>Dn,(Z,gt)=>{gt(Z,{class:"dialog-close",children:(Et,ee)=>{var Dt=Vr(),St=b(Dt),ne=m(St,!0);u(St);var _e=P(St,2);Ge(_e,{name:"dismiss"}),rt(()=>Mt(ne,c.t.close)),r(Et,Dt)},$$slots:{default:!0}})}),u(xt);var E=P(xt,2);Kt(E,()=>Va,(Z,gt)=>{gt(Z,{class:"dialog-description text-container",children:(Et,ee)=>{var Dt=S(),St=b(Dt);Nt(St,a),r(Et,Dt)},$$slots:{default:!0}})}),u(N),be(N,(Z,gt)=>On?.(Z,gt),()=>({firstFocusableOnMount:!1})),Vt(N,Z=>h(l,Z),()=>t(l)),$t(3,N,()=>Ee,()=>_),r(U,N)};I(yt,U=>{X()&&U(T)})}r(K,H)};let j=C(()=>!c.data.chatConfig.inlineLayout);Kt(at,()=>Ln,(K,it)=>{it(K,{trapFocus:!1,forceMount:!0,get preventScroll(){return t(j)},child:J,$$slots:{child:!0}})})}r(k,O)},$$slots:{default:!0}})}),r(et,ot)},$$slots:{default:!0}})}),r(x,w)};I(R,x=>{c.targets.portals&&x(B)})}return r(g,M),Ht({get open(){return o()},set open(x){o(x),f()},get content(){return a()},set content(x){a(x),f()},get title(){return s()},set title(x){s(x),f()},get onClose(){return i()},set onClose(x){i(x),f()}})}Tt(ga,{open:{},content:{},title:{},onClose:{}},[],[],!0);var Xr=A('<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 Xa(g,e){Rt(e,!0);let o=C(()=>c.t),a=F(""),s=F(""),i=F(void 0),l=F(void 0),p=C(()=>t(i)!==void 0||t(l)!==void 0||t(a)!=="");{const _=R=>{var B=S(),x=b(B);xe(x,()=>t(o).feedbackFormTitle),r(R,B)},y=R=>{var B=Xr(),x=m(B);Fn(x,{get classificationConfig(){return c.data.chatConfig.classification},get impact(){return t(i)},set impact(k){h(i,k,!0)},get quality(){return t(l)},set quality(k){h(l,k,!0)}});var w=P(x,2),Y=m(w),_t=m(Y,!0);u(Y);var pt=P(Y,2);_n(pt),u(w);var et=P(w,2),G=m(et),ot=m(G,!0);u(G);var lt=P(G,2);Nn(lt),u(et);var q=P(et,2),L=m(q,!0);u(q),u(B),rt(()=>{Mt(_t,t(o).feedbackFormMessage),z(pt,"placeholder",t(o).feedbackFormMessagePlaceholder),Mt(ot,t(o).feedbackFormEmail),z(lt,"placeholder",t(o).feedbackFormEmailPlaceholder),q.disabled=!t(p),Mt(L,t(o).send)}),ce("submit",B,async k=>{k.preventDefault(),c.data.chatConfig.classification?await Gt.submitFeedback({email:t(s),message:t(a),classification:{impact:t(i),quality:t(l)}}):await Gt.submitFeedback({email:t(s),message:t(a)}),h(i,void 0),h(l,void 0),h(a,""),Gt.closeFeedback()}),ya(pt,()=>t(a),k=>h(a,k)),ya(lt,()=>t(s),k=>h(s,k)),r(R,B)};let M=C(()=>!!c.data.conversationFeedbackId||c.data.conversationFeedbackIsOpen);ga(g,{get open(){return t(M)},get onClose(){return Gt.closeFeedback},title:_,content:y,$$slots:{title:!0,content:!0}})}Ht()}Tt(Xa,{},[],[],!0);let Ue;function Gr(g,e,o,a,s){Ue&&cancelAnimationFrame(Ue);const i=g instanceof Window?window.scrollY:g[a],l=performance.now();function p(_){const y=_-l,M=Math.min(y/o,1),R=s(M),B=i+(e-i)*R;g instanceof Window?window.scrollTo({top:B,behavior:"instant"}):g[a]=B,M<1?Ue=requestAnimationFrame(p):g.dispatchEvent(new CustomEvent("scrollcomplete"))}Ue=requestAnimationFrame(p)}var Zr=()=>Gt.openConversationFeedback(),Jr=A('<div class="chat-page__give-feedback"><button class="btn btn--primary" aria-haspopup="dialog"> </button></div>'),$r=(g,e)=>{e(500)},to=A('<div class="chat-page__footer-text"><!></div>'),eo=A('<section class="chat-page"><!> <h1 class="sr-only"><!></h1> <div class="chat-page__body"><h2 class="sr-only"><!></h2> <div class="chat-page__messages"></div> <div class="chat-page__buttons"><!></div></div> <div><div class="container"><div class="chat-page__footer-content"><button aria-hidden="true"><span class="sr-only"> </span> <!></button> <!> <a class="skip-link"> </a> <!></div></div></div></section>');function Ga(g,e){Rt(e,!0);let o=C(()=>c.t),a=F(!1),s,i,l,p,_;const y=90,M=E=>{_&&Gr(_,_.scrollHeight-_.clientHeight,E,"scrollTop",Rn)},R=()=>{if(!_)return;const E=_.scrollHeight-_.scrollTop-_.clientHeight<y;h(a,!E)};let B,x=F(!1);const w=()=>{h(x,!1),B?.disconnect(),B=new IntersectionObserver(([E])=>{E.isIntersecting?(h(x,!0),B.disconnect()):h(x,!1)},{root:c.targets.scrollContainer,rootMargin:"0px 0px -30% 0px"}),B.observe(p)};Xe(()=>(w(),window.addEventListener("resize",w),()=>{B?.disconnect(),window.removeEventListener("resize",w)}));const Y=()=>{R()},_t=E=>{if(E.altKey&&E.code==="KeyR"){E.preventDefault();const Z=c.data.history.findLast(gt=>gt.type==="user")?.message;Gt.goto({name:"start-page",prefill:Z})}},pt=()=>{setTimeout(()=>{const{chatAppContainer:E,chatAppHeader:Z,chatPageMessages:gt,chatPageLastUserMessage:Et}=c.targets;if(E&&Z&>&&Et){const ee=E.clientHeight-Z.offsetHeight-p.offsetHeight-l.offsetHeight-Et.offsetHeight-parseInt(getComputedStyle(gt).gap)*2;ee>0?(i.style.setProperty("--last-bot-message-min-height",`${ee}px`),M(1e3)):Et.scrollIntoView({behavior:"smooth"})}},50)},et=()=>{Gt.onSubmit(!0)};bt(()=>{s&&(_=s.closest(".chat-app__main"))}),bt(()=>{if(_)return _.addEventListener("scroll",R),()=>{_.removeEventListener("scroll",R)}});var G=eo();ce("resize",da,Y),ce("keypress",da,_t);var ot=m(G);Xa(ot,{});var lt=P(ot,2),q=m(lt);xe(q,()=>t(o).introductionTitle),u(lt);var L=P(lt,2),k=m(L),dt=m(k);xe(dt,()=>t(o).ariaChatHistory),u(k);var O=P(k,2);ue(O,23,()=>c.data.history,E=>E?.id??E?.time,(E,Z,gt)=>{{let Et=C(()=>t(gt)===c.data.history.length-1);Hn(E,{get message(){return t(Z)},onmessageupdate:R,onbotmessageinit:pt,get isLast(){return t(Et)}})}}),u(O),Vt(O,E=>i=E,()=>i),be(O,(E,Z)=>Ce?.(E,Z),()=>"chatPageMessages");var Q=P(O,2),at=m(Q);{var J=E=>{var Z=Jr(),gt=m(Z);gt.__click=[Zr];var Et=m(gt,!0);u(gt),u(Z),rt(()=>{z(gt,"aria-expanded",c.data.conversationFeedbackIsOpen),Mt(Et,t(o).giveFeedback)}),r(E,Z)};I(at,E=>{c.data.chatConfig.showOverallFeedbackButton&&E(J)})}u(Q),Vt(Q,E=>l=E,()=>l),u(L);var j=P(L,2),K=m(j),it=m(K),D=m(it);D.__click=[$r,M];let X;var H=m(D),yt=m(H,!0);u(H);var T=P(H,2);Ge(T,{name:"chevronDown"}),u(D);var U=P(D,2);Ma(U,{onSubmit:et,class:"chat-page__chat-input"});var N=P(U,2);N.__click=function(...E){Bo?.apply(this,E)};var xt=m(N,!0);u(N);var wt=P(N,2);{var nt=E=>{var Z=to(),gt=m(Z);xe(gt,()=>t(o).chatFooterText),u(Z),r(E,Z)};I(wt,E=>{t(o).chatFooterText!==void 0&&E(nt)})}u(it),u(K),u(j),Vt(j,E=>p=E,()=>p),u(G),Vt(G,E=>s=E,()=>s),rt(E=>{At(j,1,Xt(["chat-page__footer",{"chat-page__footer--unsticked":t(x)}])),X=At(D,1,"chat-page__scroll-to-bottom btn btn--secondary btn--square",null,X,E),D.disabled=!t(a),Mt(yt,t(o).scrollToBottom),z(N,"href",`#${on}`),Mt(xt,t(o).ariaGotoMainNavigation)},[()=>({"chat-page__scroll-to-bottom--hidden":!t(a)})]),r(g,G),Ht()}Pa(["click"]);Tt(Ga,{},[],[],!0);var ao=A("<div><div><!></div></div>");function Za(g,e){Rt(e,!0);let o=v(e,"class",7),a=v(e,"children",7),s=F(void 0);var i=ao();let l;var p=m(i),_=m(p);return Nt(_,()=>a()??te),u(p),u(i),rt(y=>{At(i,1,Xt(["animated-height",o()])),l=Ie(i,"",l,y)},[()=>({height:t(s)?`${t(s)}px`:"auto"})]),Da(p,"clientHeight",y=>h(s,y)),r(g,i),Ht({get class(){return o()},set class(y){o(y),f()},get children(){return a()},set children(y){a(y),f()}})}Tt(Za,{class:{},children:{}},[],[],!0);var no=A("<div><!></div>"),ro=A('<div class="references__toggle-title"> </div> <!>',1),oo=A('<div><div class="references__items"></div></div>'),so=A("<div><!></div>"),io=A("<!> <!>",1),lo=A("<div><!></div>"),co=A('<div><div class="references__items"></div> <!></div>'),uo=A('<div><div class="references__container"><div class="references__transition"><!></div></div></div>');function Ja(g,e){Rt(e,!0);let o=v(e,"class",7),a=C(()=>c.data.history.filter(x=>x.type==="bot").find(x=>x.id===c.data.currentReferencesAsideId)?.references),s=C(()=>c.data.currentReferencesAsideId),i=F(void 0),l=F(!1),p=F(void 0);bt(()=>{t(s)&&h(l,!1),h(i,t(s),!0)}),bt(()=>{t(l)&&setTimeout(()=>{c.data.chatConfig.inlineLayout===!1&&t(p)?.scrollIntoView({behavior:"smooth"})},200)});const _={delay:200,duration:500,easing:zn,y:50};var y=uo(),M=m(y),R=m(M),B=m(R);return Oa(B,()=>c.data.currentReferencesAsideId,x=>{var w=co(),Y=m(w);ue(Y,21,()=>t(a)?.used,ke,(et,G)=>{var ot=no(),lt=m(ot);xa(lt,{get reference(){return t(G)}}),u(ot),$t(1,ot,()=>Ee,()=>({..._,delay:0})),r(et,ot)}),u(Y);var _t=P(Y,2);{var pt=et=>{var G=lo(),ot=m(G);Za(ot,{children:(lt,q)=>{var L=S(),k=b(L);Kt(k,()=>jn,(dt,O)=>{O(dt,{get class(){return`references__further ${o()??""}`},get open(){return t(l)},set open(Q){h(l,Q,!0)},children:(Q,at)=>{var J=io(),j=b(J);Kt(j,()=>Yn,(it,D)=>{D(it,{class:"references__toggle transition-colors",children:(X,H)=>{var yt=ro(),T=b(yt),U=m(T,!0);u(T);var N=P(T,2);Ge(N,{name:"chevronDown",class:"references__toggle-icon"}),rt(()=>Mt(U,c.t.referencesFurtherTitle)),r(X,yt)},$$slots:{default:!0}})});var K=P(j,2);{const it=(D,X)=>{let H=()=>X?.().props,yt=()=>X?.().open;var T=so();Pe(T,()=>({...H(),class:"references__container"}));var U=m(T);{var N=xt=>{var wt=oo(),nt=m(wt);ue(nt,21,()=>t(a)?.unused,ke,(E,Z)=>{xa(E,{get reference(){return t(Z)}})}),u(nt),u(wt),$t(1,wt,()=>Ee,()=>({..._,delay:0})),$t(2,wt,()=>fa,()=>({duration:100})),r(xt,wt)};I(U,xt=>{yt()&&xt(N)})}u(T),Vt(T,xt=>h(p,xt),()=>t(p)),r(D,T)};Kt(K,()=>qn,(D,X)=>{X(D,{forceMount:!0,child:it,$$slots:{child:!0}})})}r(Q,J)},$$slots:{default:!0}})}),r(lt,L)},$$slots:{default:!0}}),u(G),$t(1,G,()=>Ee,()=>_),r(et,G)};I(_t,et=>{t(a)?.unused&&t(a).unused.length>0&&et(pt)})}u(w),$t(2,w,()=>va,()=>({duration:200,delay:t(s)?0:200})),$t(1,w,()=>Ee,()=>t(i)?_:{duration:0,y:0}),r(x,w)}),u(R),u(M),u(y),rt(()=>At(y,1,Xt(["references",o()]))),r(g,y),Ht({get class(){return o()},set class(x){o(x),f()}})}Tt(Ja,{class:{}},[],[],!0);var fo=A('<div><!> <h1 class="introduction__title"><!></h1></div>');function $a(g,e){Rt(e,!0);let o=C(()=>c.t),a=v(e,"class",7);var s=fo(),i=m(s);Kn(i,{class:"introduction__avatar",isLarge:!0});var l=P(i,2),p=m(l);return xe(p,()=>t(o).introductionTitle),u(l),u(s),rt(()=>At(s,1,`introduction ${a()??""}`)),r(g,s),Ht({get class(){return a()},set class(_){a(_),f()}})}Tt($a,{class:{}},[],[],!0);var vo=A("<li><!></li>"),go=A('<section><h2 class="sr-only"> </h2> <ul></ul></section>');function tn(g,e){Rt(e,!0);let o=v(e,"class",7),a=Ye(e,["$$slots","$$events","$$legacy","$$host","class"]);var s=go();Pe(s,()=>({"aria-label":c.t.ariaPredefinedQuestionsRegion,class:o(),...a}));var i=m(s),l=m(i,!0);u(i);var p=P(i,2);let _;return ue(p,21,()=>c.data.predefinedQuestions,ke,(y,M,R)=>{var B=vo(),x=m(B);Un(x,{get predefinedQuestion(){return t(M)},get onSubmit(){return Gt.onStartConversation},index:R}),u(B),r(y,B)}),u(p),u(s),rt(y=>{Mt(l,c.t.ariaPredefinedQuestions),_=At(p,1,"predefined-questions",null,_,y)},[()=>({"predefined-questions--pii-padding":c.data.questionHasPii})]),r(g,s),Ht({get class(){return o()},set class(y){o(y),f()}})}Tt(tn,{class:{}},[],[],!0);var mo=A('<div class="introduction-disclaimer text-container fly-in" style="--fly-in-id: 3;"><!></div>'),ho=A("<section><!> <!> <!> <!></section>");function en(g,e){Rt(e,!0);let o=C(()=>c.t),a=F(!1);bt(()=>{h(a,!0)});var s=ho();let i;var l=m(s);$a(l,{class:"start-page__introduction fly-in"});var p=P(l,2);{let B=C(()=>Aa(t(o).introductionTitle));Ma(p,{get onSubmit(){return Gt.onStartConversation},class:"start-page__chat-input fly-in",style:"--fly-in-id: 1;",isStartPage:!0,get ariaLabel(){return t(B)}})}var _=P(p,2);{var y=B=>{tn(B,{class:"start-page__predefined-questions fly-in",style:"--fly-in-id: 2;"})};I(_,B=>{c.data.predefinedQuestions&&c.data.predefinedQuestions.length&&B(y)})}var M=P(_,2);{var R=B=>{var x=mo(),w=m(x);xe(w,()=>t(o).introductionDisclaimer),u(x),r(B,x)};I(M,B=>{t(o).introductionDisclaimer&&B(R)})}u(s),rt(B=>i=At(s,1,"start-page container",null,i,B),[()=>({mounted:t(a)})]),r(g,s),Ht()}Tt(en,{},[],[],!0);function Ba(g,{delay:e=0,duration:o=200,easing:a=l=>l,baseScale:s=0,transformOrigin:i="bottom right"}={}){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return{delay:0,duration:0,css:()=>`opacity: 1; transform: scale(1); transform-origin: ${i};`};const p=getComputedStyle(g),_=+p.opacity,y=p.transform.match(/scale\(([0-9.]+)\)/),M=y?+y[1]:1,R=1-s;return{delay:e,duration:o,css:B=>{const x=a(B),w=x*M*R+s;return`opacity: ${x*_}; transform: scale(${w}); transform-origin: ${i};`}}}var po=A('<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 bo={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 an(g,e){Rt(e,!0),La(g,bo);let o=v(e,"color",7),a=v(e,"background",7);var s=po(),i=m(s);return u(s),rt(()=>{Ie(s,a()?`background: ${a()};`:""),z(i,"fill",o()??"rgba(127, 127, 127, 0.3)")}),r(g,s),Ht({get color(){return o()},set color(l){o(l),f()},get background(){return a()},set background(l){a(l),f()}})}Tt(an,{color:{},background:{}},[],[],!0);var _o=A('<div class="flyout__content"><!></div>'),yo=A('<div><div class="flyout__body"><!> <div><!></div></div></div>'),xo=A('<!> <div class="chat-app__container"><div class="chat-app__loader-container"><!></div></div>',1);function nn(g,e){Rt(e,!0);let o=v(e,"children",7),a=v(e,"loaderColor",7),s=v(e,"loaderBackground",7),i=v(e,"flyout",7),l=v(e,"flyoutClass",7),p=v(e,"flyoutStyle",7),_=v(e,"onCloseChat",7),y=v(e,"onError",7),M=Ye(e,["$$slots","$$events","$$legacy","$$host","children","loaderColor","loaderBackground","flyout","flyoutClass","flyoutStyle","onCloseChat","onError"]),R;const B=L=>{bt(()=>{const k=dt=>{R=dt};return L.addEventListener("click",k),()=>{L.removeEventListener("click",k),R=void 0}})};let x="flyout",w=F(void 0),Y=C(()=>c.data.flyoutIsOpen),_t=F(!1),pt=C(()=>c.initialized),et=C(()=>c.data.hasOpenedOverlays);bt(()=>{!c.data.flyoutIsOpen&&t(_t)&&t(w)?.querySelector("button")?.focus({preventScroll:!0}),h(_t,t(Y),!0)}),bt(()=>{if(t(pt)&&t(Y)){const L=k=>{k.key==="Escape"&&(t(et)||_()())};return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}}});var G=S();ce("click",da,L=>{L!==R&&i()&&_()()});var ot=b(G);{var lt=L=>{var k=S(),dt=b(k);{var O=at=>{},Q=at=>{var J=yo(),j=m(J);z(j,"id",x);var K=m(j);{var it=H=>{var yt=_o(),T=m(yt);Nt(T,o),u(yt),$t(1,yt,()=>Ba,()=>({delay:0,duration:500,easing:wa,baseScale:.3})),$t(2,yt,()=>Ba,()=>({delay:0,duration:300,easing:wa,baseScale:.7})),r(H,yt)};I(K,H=>{c.data.flyoutIsOpen&&H(it)})}var D=P(K,2),X=m(D);rr(X,He({get onError(){return y()},onclick:H=>{H.stopPropagation(),Gt.openFlyout()},flyoutId:x,get flyoutIsOpen(){return t(Y)},buttonClass:"flyout__open-button"},()=>M)),u(D),Vt(D,H=>h(w,H),()=>t(w)),u(j),be(j,H=>B?.(H)),u(J),rt(()=>{Ie(J,p()),At(J,1,Xt(["flyout",l()]))}),r(at,J)};I(dt,at=>{c.initialized?at(Q,!1):at(O)})}r(L,k)},q=L=>{var k=S(),dt=b(k);{var O=at=>{var J=xo(),j=b(J);Re(j,{id:"app-css",get css(){return Fa}});var K=P(j,2),it=m(K),D=m(it);or(D,e,"loader",{},X=>{an(X,{get background(){return s()},get color(){return a()}})}),u(it),u(K),$t(2,K,()=>va,()=>({duration:200,delay:300})),r(at,J)},Q=at=>{var J=S(),j=b(J);Nt(j,o),r(at,J)};I(dt,at=>{c.initialized?at(Q,!1):at(O)})}r(L,k)};I(ot,L=>{i()?L(lt):L(q,!1)})}return r(g,G),Ht({get children(){return o()},set children(L){o(L),f()},get loaderColor(){return a()},set loaderColor(L){a(L),f()},get loaderBackground(){return s()},set loaderBackground(L){s(L),f()},get flyout(){return i()},set flyout(L){i(L),f()},get flyoutClass(){return l()},set flyoutClass(L){l(L),f()},get flyoutStyle(){return p()},set flyoutStyle(L){p(L),f()},get onCloseChat(){return _()},set onCloseChat(L){_(L),f()},get onError(){return y()},set onError(L){y(L),f()}})}Tt(nn,{children:{},loaderColor:{},loaderBackground:{},flyout:{},flyoutClass:{},flyoutStyle:{},onCloseChat:{},onError:{}},["loader"],[],!0);function rn(g,e){Rt(e,!1),Na();{const o=i=>{var l=S(),p=b(l);xe(p,()=>c.data.openedPopup?.title),r(i,l)},a=i=>{var l=S(),p=b(l);xe(p,()=>c.data.openedPopup?.content),r(i,l)};let s=yn(()=>c.data.openedPopup!==void 0);ga(g,{get open(){return t(s)},get onClose(){return Gt.closePopup},title:o,content:a,$$slots:{title:!0,content:!0}})}Ht()}Tt(rn,{},[],[],!0);var wo=A('<span class="reference__description line-clamp line-clamp--6"> </span>'),Co=A('<span class="reference__breadcrumb transition-colors"> </span>'),Io=A('<span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></span>'),ko=A('<div class="reference-number__content-wrapper" role="tooltip" aria-hidden="true"><a class="reference-number__content transition-colors no-link-styling" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true"><span class="reference__header"><h3 class="reference__title line-clamp line-clamp--2 h4"> </h3> <!></span> <!> <!></a></div>'),To=A('<div class="reference-number"><a target="_blank" rel="noopener noreferrer" class="reference-number__trigger transition-colors no-link-styling"> </a> <!></div>');function So(g,e){Rt(e,!0);let o=C(()=>c.t),a=v(e,"usedNumber",7),s=v(e,"source",7),i=F(!1),l,p,_=F(void 0);const y=s();let M=C(()=>y.display.card.title),R=C(()=>y.display.card.description),B=C(()=>y.display.card.badge),x=C(()=>y.display.card.breadcrumbs);const w={duration:Number(c.theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(c.theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(c.theme.components.referenceNumberContent.custom?.transitionY)||10},Y=async()=>{if(!p||!t(_))return;const{x:O,y:Q}=await Wn(p,t(_),{placement:"top",middleware:[Qn(8),Xn(),Gn({padding:8})]});Object.assign(t(_).style,{left:`${O}px`,top:`${Q}px`})},_t=()=>{l&&(clearTimeout(l),l=void 0)},pt=()=>{_t(),l=setTimeout(()=>{h(i,!1)},100)};let et=`tooltip-${Vn()}`;const G=O=>{O.key==="Escape"&&h(i,!1)},ot=()=>{_t(),h(i,!0)};bt(()=>{t(i)?document.addEventListener("keydown",G):document.removeEventListener("keydown",G)}),bt(()=>{t(i)&&Y()});var lt=To(),q=m(lt),L=m(q,!0);u(q),Vt(q,O=>p=O,()=>p);var k=P(q,2);{var dt=O=>{var Q=ko(),at=m(Q),J=m(at),j=m(J),K=m(j,!0);u(j);var it=P(j,2);Ge(it,{name:"externalLink",class:"reference__icon transition-colors"}),u(J);var D=P(J,2);{var X=T=>{var U=wo(),N=m(U,!0);u(U),rt(()=>Mt(N,t(R))),r(T,U)};I(D,T=>{t(R)&&T(X)})}var H=P(D,2);{var yt=T=>{var U=Io(),N=m(U),xt=m(N),wt=m(xt,!0);u(xt),u(N);var nt=P(N,2);{var E=Z=>{var gt=S(),Et=b(gt);ue(Et,17,()=>t(x),ke,(ee,Dt)=>{var St=Co(),ne=m(St,!0);u(St),rt(()=>Mt(ne,t(Dt))),r(ee,St)}),r(Z,gt)};I(nt,Z=>{t(x)&&Z(E)})}u(U),rt(()=>Mt(wt,t(B))),r(T,U)};I(H,T=>{t(B)&&T(yt)})}u(at),u(Q),Vt(Q,T=>h(_,T),()=>t(_)),rt(()=>{z(Q,"id",et),z(at,"href",y.url),Mt(K,t(M))}),ce("mouseenter",Q,ot),ce("mouseleave",Q,pt),$t(3,Q,()=>Ee,()=>w),r(O,Q)};I(k,O=>{t(i)&&O(dt)})}return u(lt),rt(()=>{z(q,"href",y.url),z(q,"aria-describedby",t(i)?et:void 0),z(q,"aria-label",`${t(o).referenceLink??""}: ${t(M)??""}`),z(q,"data-state",t(i)?"open":"closed"),Mt(L,a())}),ce("mouseenter",q,ot),ce("mouseleave",q,pt),ce("focus",q,()=>h(i,!0)),ce("blur",q,()=>h(i,!1)),r(g,lt),Ht({get usedNumber(){return a()},set usedNumber(O){a(O),f()},get source(){return s()},set source(O){s(O),f()}})}customElements.define("liipgpt-reference-number",Tt(So,{source:{attribute:"data-source",type:"Object"},refNumber:{attribute:"data-all-index",type:"String"},usedNumber:{attribute:"data-used-index",type:"String"}},[],[],!1));const on="main-navigation",Bo=g=>{g.preventDefault(),c.targets.chatAppMainNavigation&&(c.targets.chatAppMainNavigation.scrollIntoView({behavior:"smooth",block:"start"}),c.targets.chatAppMainNavigation.focus())};var Eo=A('<link rel="stylesheet"/>'),Po=A('<link rel="stylesheet"/>'),Lo=A("<!> <!> <!>",1),Ao=A('<link rel="stylesheet"/>'),Mo=A("<!> <!> <!> <!>",1),Do=A("<!> <!> <!>",1),Oo=A('<div class="chat-app__page-transition"><!></div>'),Fo=A('<div><div class="chat-app__main"><div class="chat-app__portals"></div> <!> <div><div class="container"><nav tabindex="-1"><h2 class="sr-only"> </h2> <!> <!></nav> <div id="chat-app-header-portal"></div></div></div> <div class="chat-app__body"><!> <!></div></div> <!> <!></div>'),No=A('<main class="chat-app"><!> <!></main>');function Ro(g,e){Rt(e,!0);let o=v(e,"host",7),a=v(e,"onError",7),s=Ye(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);bt(()=>{const k={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};ye(()=>Gt.init(k).catch(dt=>a()(dt)))});let i=C(()=>c.data.route.name);const l=()=>{Gt.closeFlyout(),o().dispatchEvent(new CustomEvent("closechat"))};bt(()=>{c.initialized&&c.data?.chatConfig&&o().dispatchEvent(new CustomEvent("configloaded",{detail:c.data.chatConfig}))});let p=F(void 0),_=F(null);const y=nr.fineGrained?.light?.tokens?.components?.aside?.custom?.containerWidthForMobileLayout;let M=F(!1),R=C(()=>t(_)?c.data.props?.flyout||t(_)<=y:null),B=C(()=>c.data?.chatConfig?.inlineLayout),x=F(void 0),w=F(!1),Y=F(0);bt(()=>{if(t(x)&&t(x).firstElementChild instanceof HTMLElement){const k=getComputedStyle(t(x).firstElementChild);h(Y,parseFloat(k.paddingTop)||0,!0)}}),bt(()=>{let k=!1;const dt=()=>{k||(k=!0,requestAnimationFrame(()=>{t(p)&&(k=!1,c.targets.scrollContainer?.scrollTop===0&&ot(),h(w,t(p).scrollTop>=t(Y)+1))}))};return dt(),t(p)?.addEventListener("scroll",dt,{passive:!0}),()=>t(p)?.removeEventListener("scroll",dt)});const _t=()=>{Gt.closeReferencesAside()};bt(()=>{c.initialized&&c.data.currentReferencesAsideId?h(M,!0):h(M,!1)});let pt=F(void 0),et,G=F(!1);const ot=()=>{h(G,!1),et?.disconnect(),et=new IntersectionObserver(([k])=>{k.isIntersecting?(h(G,!0),et.disconnect()):h(G,!1)},{root:c.targets.scrollContainer,rootMargin:"-15% 0px 0px 0px"}),t(pt)&&et.observe(t(pt))};Xe(()=>{if(t(pt))return ot(),window.addEventListener("resize",ot),()=>{et?.disconnect(),window.removeEventListener("resize",ot)}});let lt=C(()=>c.initialized);bt(()=>{t(lt)&&t(R)!==null&&ye(()=>Gt.setAsideMobile(t(R)))});let q=F(void 0);bt(()=>{if(t(B)&&t(q)){let k=!1;const dt=()=>{k||(k=!0,t(q)?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{k=!1},300))},O=["mouseup","click","touchend","keydown","input"];return O.forEach(Q=>{t(q).addEventListener(Q,dt,!0)}),()=>{O.forEach(Q=>{t(q).removeEventListener(Q,dt,!0)})}}});let L=C(()=>c.data.props.flyout);return bt(()=>{t(lt)&&t(L)&&(o().setAttribute("role","region"),ye(()=>{o().setAttribute("aria-label",c.t.ariaFlyoutRegion)}))}),xn(k=>{var dt=S(),O=b(dt);{var Q=at=>{var J=Lo(),j=b(J);ue(j,17,()=>c.themeBase.fontURLs??[],ke,(D,X)=>{var H=Eo();rt(()=>z(H,"href",t(X))),r(D,H)});var K=P(j,2);ue(K,17,()=>c.data.additionalStylesheets,ke,(D,X)=>{var H=Po();rt(()=>z(H,"href",t(X))),r(D,H)});var it=P(K,2);Re(it,{id:"font-css",get css(){return c.themeBase.fontCSS}}),r(at,J)};I(O,at=>{c.initialized&&at(Q)})}r(k,dt)}),Wa(g,{get defaultPortalTo(){return t(p)},children:(k,dt)=>{var O=No();let Q;var at=m(O);{var J=K=>{var it=Mo(),D=b(it);{let T=C(()=>ar(c.theme));Re(D,{id:"theme-css",get css(){return t(T)}})}var X=P(D,2);Re(X,{id:"app-css",get css(){return Fa}});var H=P(X,2);Re(H,{id:"custom-css",get css(){return c.themeBase.customCSS}});var yt=P(H,2);ue(yt,17,()=>c.data.additionalStylesheets,ke,(T,U)=>{var N=Ao();rt(()=>z(N,"href",t(U))),r(T,N)}),r(K,it)};I(at,K=>{c.initialized&&K(J)})}var j=P(at,2);nn(j,He({onCloseChat:l,get onError(){return a()}},()=>s,{children:(K,it)=>{var D=Fo(),X=m(D),H=m(X);be(H,(V,n)=>Ce?.(V,n),()=>"portals");var yt=P(H,2);Qa(yt,{});var T=P(yt,2),U=m(T),N=m(U);let xt;z(N,"id",on);var wt=m(N),nt=m(wt,!0);u(wt);var E=P(wt,2);{var Z=V=>{Zn(V,{})};I(E,V=>{t(i)!=="start-page"&&V(Z)})}var gt=P(E,2);{var Et=V=>{var n=Do(),kt=b(n);{var Zt=It=>{{let fe=C(()=>c.t.aboutThisChat||"");$n(It,{get content(){return t(fe)}})}};I(kt,It=>{c.data.chatConfig.showContextInfo&&It(Zt)})}var Ut=P(kt,2);{var Ot=It=>{tr(It,{})};I(Ut,It=>{c.data.chatConfig.showContextMenu&&It(Ot)})}var se=P(Ut,2);{var re=It=>{er(It,{onclick:l})};I(se,It=>{(c.data.chatConfig.showCloseChatButton||c.data.props.flyout)&&It(re)})}r(V,n)};I(gt,V=>{c.initialized&&V(Et)})}u(N),be(N,(V,n)=>Ce?.(V,n),()=>"chatAppMainNavigation");var ee=P(N,2);be(ee,(V,n)=>Ce?.(V,n),()=>"chatAppHeaderPortal"),u(U),u(T),Vt(T,V=>h(pt,V),()=>t(pt)),be(T,(V,n)=>Ce?.(V,n),()=>"chatAppHeader");var Dt=P(T,2),St=m(Dt);rn(St,{});var ne=P(St,2);Oa(ne,()=>t(i),V=>{var n=Oo(),kt=m(n);{var Zt=Ot=>{en(Ot,{})},Ut=Ot=>{var se=S(),re=b(se);{var It=fe=>{Ga(fe,{})};I(re,fe=>{t(i)==="chat-page"&&fe(It)},!0)}r(Ot,se)};I(kt,Ot=>{t(i)==="start-page"?Ot(Zt):Ot(Ut,!1)})}u(n),Vt(n,Ot=>h(x,Ot),()=>t(x)),$t(1,n,()=>fa,()=>({duration:300,delay:250})),$t(2,n,()=>va,()=>({duration:150})),r(V,n)}),u(Dt),u(X),Vt(X,V=>h(p,V),()=>t(p)),be(X,(V,n)=>Ce?.(V,n),()=>"scrollContainer");var _e=P(X,2);{var ge=V=>{Jn(V,{get isOpen(){return t(M)},get isMobile(){return t(R)},get showReferencesByDefault(){return c.data.chatConfig.showReferencesByDefault},onClose:_t,get title(){return c.t.referencesTitle},children:(n,kt)=>{Ja(n,{})},$$slots:{default:!0}})};I(_e,V=>{t(R)!==null&&V(ge)})}var Le=P(_e,2);Ua(Le,{position:"top-center",get containerAriaLabel(){return c.t.ariaNotifications}}),u(D),wn(()=>Da(D,"clientWidth",V=>h(_,V))),Vt(D,V=>h(q,V),()=>t(q)),be(D,(V,n)=>Ce?.(V,n),()=>"chatAppContainer"),rt(V=>{At(D,1,Xt(["chat-app__container",{"chat-app__container--inline-layout":t(B)}])),At(T,1,Xt(["chat-app__header",{"chat-app__header--unsticked":t(G)}])),xt=At(N,1,"chat-app__header-content",null,xt,V),z(N,"aria-label",`${c.t.ariaMainNavigationRegion}${c.data.chatConfig.showCloseChatButton||c.data.props.flyout?`, ${c.t.closeChat}`:""}`),Mt(nt,c.t.ariaMainNavigation)},[()=>({"has-border":t(w)})]),r(K,D)},$$slots:{default:!0}})),u(O),rt(K=>Q=Ie(O,"",Q,K),[()=>({"color-scheme":c.colorScheme||"light"})]),r(k,O)},$$slots:{default:!0}}),Ht({get host(){return o()},set host(k){o(k),f()},get onError(){return a()},set onError(k){a(k),f()}})}Tt(Ro,{host:{},onError:{}},[],[],!0);export{Ro as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as k,F as B,G as d,H as m,d as T,v as r,c as A}from"./Cx_YT9bD.js";import{p as o,s as R}from"./DePuinxN.js";import{C as U}from"./
|
|
1
|
+
import"./NZTpNUN0.js";import{p as k,F as B,G as d,H as m,d as T,v as r,c as A}from"./Cx_YT9bD.js";import{p as o,s as R}from"./DePuinxN.js";import{C as U}from"./f-az8jJM.js";import{E as _}from"./C7F61EmX.js";function E(S,t){k(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),u=o(t,"speechRecognitionApiKey",7),n=o(t,"lang",7),y=o(t,"features",7),s=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),h=m(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:u(),lang:n(),features:y(),loaderBackground:s(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p()}));{const e=(b,K=B)=>{U(b,R({host:t.$$host,get onError(){return K()}},()=>d(h)))};let C=m(()=>d(h).flyout??!1);_(S,{get silent(){return d(C)},body:e,$$slots:{body:!0}})}return T({get forceTheme(){return a()},set forceTheme(e){a(e),r()},get apiUrl(){return l()},set apiUrl(e){l(e),r()},get apiKey(){return i()},set apiKey(e){i(e),r()},get speechRecognitionApiKey(){return u()},set speechRecognitionApiKey(e){u(e),r()},get lang(){return n()},set lang(e){n(e),r()},get features(){return y()},set features(e){y(e),r()},get loaderBackground(){return s()},set loaderBackground(e){s(e),r()},get loaderColor(){return g()},set loaderColor(e){g(e),r()},get flyout(){return f()},set flyout(e){f(e),r()},get flyoutStyle(){return c()},set flyoutStyle(e){c(e),r()},get flyoutClass(){return p()},set flyoutClass(e){p(e),r()}})}customElements.define("liipgpt-chat",A(E,{forceTheme:{attribute:"force-theme",type:"String"},apiUrl:{attribute:"api-url",type:"String"},apiKey:{attribute:"api-key",type:"String"},speechRecognitionApiKey:{attribute:"speech-recognition-api-key",type:"String"},lang:{attribute:"lang",type:"String"},features:{attribute:"features",type:"String"},loaderBackground:{attribute:"loader-background",type:"String"},loaderColor:{attribute:"loader-color",type:"String"},flyout:{attribute:"flyout",type:"Boolean"},flyoutStyle:{attribute:"flyout-style",type:"String"},flyoutClass:{attribute:"flyout-class",type:"String"}},[],[],!0));export{E as LiipGPTChat};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{i as x,c as O,b as D,_ as E}from"../chunks/B0YFyw9m.js";import{c as K,p as Q,I as U,u as W,G as i,P as I,T as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,N as T,H as w,e as $,r as tt,a8 as et,t as rt,g as at,a9 as st}from"../chunks/Cx_YT9bD.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/D54U55sL.js";import{p as u}from"../chunks/DePuinxN.js";const vt={};var nt=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),_=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),d=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(_())),W(()=>{m(),_(),o(),r(),d(),f(),b(),m().page.notify()});let y=I(!1),A=I(!1),L=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(A,!0),X().then(()=>{R(L,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=w(()=>o()[1]);var V=it(),k=P(V);{var M=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params},children:(h,mt)=>{var j=T(),z=P(j);O(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return d()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},N=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};x(k,t=>{o()[1]?t(M):t(N,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(L))),p(n,l)};x(v,n=>{i(A)&&n(g)})}tt(a),p(t,a)};x(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return _()},set page(t){_(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return d()},set form(t){d(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}K(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CYDemkbE.js","../chunks/CB4UbYGS.js","../chunks/NZTpNUN0.js","../chunks/Cx_YT9bD.js","../chunks/DePuinxN.js","../nodes/1.B-fQulzV.js","../chunks/C-ITotyQ.js","../chunks/B1-B4mtg.js","../chunks/D54U55sL.js","../chunks/CDW8Ir6T.js","../nodes/2.DKxnXl-X.js","../chunks/B0YFyw9m.js","../chunks/Cm2wS9RB.js","../nodes/3.CzHQ22rw.js","../chunks/f-az8jJM.js","../chunks/Bjeg_oGE.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as x,c as O,b as D,_ as E}from"../chunks/B0YFyw9m.js";import{c as K,p as Q,I as U,u as W,G as i,P as I,T as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,N as T,H as w,e as $,r as tt,a8 as et,t as rt,g as at,a9 as st}from"../chunks/Cx_YT9bD.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/D54U55sL.js";import{p as u}from"../chunks/DePuinxN.js";const vt={};var nt=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),_=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),d=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(_())),W(()=>{m(),_(),o(),r(),d(),f(),b(),m().page.notify()});let y=I(!1),A=I(!1),L=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(A,!0),X().then(()=>{R(L,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=w(()=>o()[1]);var V=it(),k=P(V);{var M=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params},children:(h,mt)=>{var j=T(),z=P(j);O(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return d()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},N=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};x(k,t=>{o()[1]?t(M):t(N,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(L))),p(n,l)};x(v,n=>{i(A)&&n(g)})}tt(a),p(t,a)};x(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return _()},set page(t){_(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return d()},set form(t){d(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}K(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.CYDemkbE.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.B-fQulzV.js"),__vite__mapDeps([5,2,6,3,7,8,9]),import.meta.url),()=>E(()=>import("../nodes/2.DKxnXl-X.js"),__vite__mapDeps([10,11,3,2,12,4,8,1,7,6]),import.meta.url),()=>E(()=>import("../nodes/3.CzHQ22rw.js"),__vite__mapDeps([13,2,4,3,12,11,8,1,7,14,6,9,15]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([s,e])=>[s,e.decode])),Pt=!1,yt=(s,e)=>ut[s](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/B1-B4mtg.js";export{o as load_css,r as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as a}from"../chunks/
|
|
1
|
+
import{P as a}from"../chunks/CB4UbYGS.js";import"../chunks/NZTpNUN0.js";import{c as r,p as l,N as c,a as u,Q as p,b as d,d as h,v as f}from"../chunks/Cx_YT9bD.js";import{p as g}from"../chunks/DePuinxN.js";const v=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),m=["baselcitygpt"],y=async()=>{const n=await v().catch(e=>(console.error("Error fetching org names:",e),[]));n.push("liipgpt");const i=n.map(e=>m.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(i)},b=`/**
|
|
2
2
|
* @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
|
|
3
3
|
*/
|
|
4
4
|
const CHAT_CONFIG_OVERRIDE = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/NZTpNUN0.js";import{p as e}from"../chunks/
|
|
1
|
+
import"../chunks/NZTpNUN0.js";import{p as e}from"../chunks/C-ITotyQ.js";import{c,p as h,f as l,a as u,t as _,b as v,d as g,e as s,r as o,s as d,g as p}from"../chunks/Cx_YT9bD.js";import{i as x}from"../chunks/CDW8Ir6T.js";var b=l("<h1> </h1> <p> </p>",1);function E(m,i){h(i,!1),x();var r=b(),t=u(r),f=s(t,!0);o(t);var a=d(t,2),n=s(a,!0);o(a),_(()=>{p(f,e.status),p(n,e.error?.message)}),v(m,r),g()}c(E,{},[],[],!0);export{E as component};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/
|
|
2
|
-
import{i as I,_ as Ct,b as Bt}from"../chunks/B0YFyw9m.js";import"../chunks/NZTpNUN0.js";import{c as X,p as Ee,f as _,s as e,e as a,t as K,b as l,d as De,v as ie,r as t,g as je,S as z,u as Y,o as da,aC as Mt,N as F,a as L,G as n,H as D,aD as ca,aE as Te,P as jt,aF as Pt,O as ua,T as Et}from"../chunks/Cx_YT9bD.js";import{a as se,s as R,l as At,m as va,j as v,n as pa,A as ma,e as W,i as V,I as ae,o as ha,C as Dt,t as ga,p as ba,S as r,q as wa,P as Le,R as Ce,r as Be,N as _a,u as fa,v as ya,w as xa,c as qa,x as ka,M as Sa,h as Pe,y as za,z as Ft,D as Ia}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/mT2ZYCk2.js","../chunks/NZTpNUN0.js","../chunks/Cx_YT9bD.js","../chunks/DePuinxN.js","../chunks/f-az8jJM.js","../chunks/D54U55sL.js","../chunks/B0YFyw9m.js","../chunks/Cm2wS9RB.js","../chunks/CB4UbYGS.js","../chunks/B1-B4mtg.js","../chunks/C-ITotyQ.js","../chunks/CDW8Ir6T.js","../chunks/Bjeg_oGE.js","../chunks/C7F61EmX.js","../chunks/BBUV8NAY.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as I,_ as Ct,b as Bt}from"../chunks/B0YFyw9m.js";import"../chunks/NZTpNUN0.js";import{c as X,p as Ee,f as _,s as e,e as a,t as K,b as l,d as De,v as ie,r as t,g as je,S as z,u as Y,o as da,aC as Mt,N as F,a as L,G as n,H as D,aD as ca,aE as Te,P as jt,aF as Pt,O as ua,T as Et}from"../chunks/Cx_YT9bD.js";import{a as se,s as R,l as At,m as va,j as v,n as pa,A as ma,e as W,i as V,I as ae,o as ha,C as Dt,t as ga,p as ba,S as r,q as wa,P as Le,R as Ce,r as Be,N as _a,u as fa,v as ya,w as xa,c as qa,x as ka,M as Sa,h as Pe,y as za,z as Ft,D as Ia}from"../chunks/Cm2wS9RB.js";import{p as ne,s as Ta,r as La}from"../chunks/DePuinxN.js";import{g as Ca}from"../chunks/B1-B4mtg.js";import{p as Ba}from"../chunks/C-ITotyQ.js";var ja=_('<div class="swatch svelte-18q4g20"><div class="swatch__color svelte-18q4g20"></div> <div class="swatch__label svelte-18q4g20"> </div></div>');const Pa={hash:"svelte-18q4g20",code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-18q4g20 {opacity:1;}}.swatch__color.svelte-18q4g20 {aspect-ratio:1;width:100%;}.swatch__label.svelte-18q4g20 {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
|
|
3
3
|
|
|
4
4
|
@media (min-width: 768px) {display:block;
|
|
5
5
|
}}`};function re(b,c){Ee(c,!1),se(b,Pa);let y=ne(c,"name",12),o=ne(c,"key",12),j=ne(c,"value",12);var x=ja(),M=a(x),A=e(M,2),U=a(A,!0);return t(A),t(x),K(()=>{R(x,"title",`Color ${o()}: ${j()}`),At(M,`background-color: var(--color-${y()??""}-${o()??""});`),je(U,o())}),l(b,x),De({get name(){return y()},set name(p){y(p),ie()},get key(){return o()},set key(p){o(p),ie()},get value(){return j()},set value(p){j(p),ie()}})}X(re,{name:{},key:{},value:{}},[],[],!0);var Ea=_('<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" aria-hidden="true"><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" aria-hidden="true"><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="" aria-hidden="true"><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" aria-hidden="true"><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 Ht(b){var c=Ea();l(b,c)}X(Ht,{},[],[],!0);var Da=_(`<h1>Title h1</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <em>Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus.</em> <strong>Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. <a href="https://www.google.com">Check it on google</a> . Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <p class="text-sm svelte-128qu17">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
|
|
@@ -22,9 +22,9 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
|
|
|
22
22
|
<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="{"url":"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks","considered":true,"referencesIndex":{"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"}}}" data-used-index="1" data-all-index="3"></liipgpt-reference-number>. </p>
|
|
23
23
|
<p>Zusätzlich gibt es auch Inhalte über <strong>Debugging von E-Mails auf einem Staging-Server</strong>, die einfache Lösungen für Testumgebungen bieten <liipgpt-reference-number data-source="{"url":"https://www.liip.ch/en/blog/debugging-email-on-staging-server","considered":true,"referencesIndex":{"all":2,"used":2},"display":{"card":{"title":"Debugging Email on Staging Server · Blog","description":"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.","badge":"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},"listItem":{"title":"Debugging Email on Staging Server · Blog","badge":"www.liip.ch"}}}" data-used-index="2" data-all-index="2"></liipgpt-reference-number>. </p>
|
|
24
24
|
<p>Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen! </p>
|
|
25
|
-
`,text:'Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind. 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. Zusätzlich gibt es auch Inhalte über Debugging von E-Mails auf einem Staging-Server, die einfache Lösungen für Testumgebungen bieten. Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen!'},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"},{type:"component",componentName:"combobox",time:"2025-01-22T08:03:11.044Z",data:{caption:"What is your favorite <b>fruit</b>?",placeholder:"Search a fruit",values:[{value:"mango",label:"Mango"},{value:"watermelon",label:"Watermelon"},{value:"apple",label:"Apple"},{value:"pineapple",label:"Pineapple"},{value:"orange",label:"Orange"},{value:"grape",label:"Grape"},{value:"strawberry",label:"Strawberry"},{value:"banana",label:"Banana"},{value:"kiwi",label:"Kiwi"},{value:"peach",label:"Peach"},{value:"cherry",label:"Cherry"},{value:"blueberry",label:"Blueberry"},{value:"raspberry",label:"Raspberry"},{value:"blackberry",label:"Blackberry"},{value:"plum",label:"Plum"},{value:"apricot",label:"Apricot"},{value:"pear",label:"Pear"},{value:"grapefruit",label:"Grapefruit"}]}},{type:"component",componentName:"buttons",time:"2025-01-22T08:03:11.044Z",data:{caption:"Are you <b>ready</b>?",buttons:[{label:"<b>Yes</b>",value:"yes",variant:"primary"},{label:"No",value:"no",variant:"secondary"},{label:"Well, maybe",value:"no",href:"https://example.com",variant:"tertiary",icon:"externalLink",target:"_blank"}]}}];var Aa=_('<link rel="stylesheet"/>'),Ha=_("<!> <!> <!> <!> <!>",1),Ga=_('<div class="context-menu svelte-12rj1z4"><!></div>'),Oa=_('<div class="chat-app__loader-container">Loading...</div>'),Ra=_('<div class="container text-container" style="padding-bottom: 200px;"><hr/> <h2>
|
|
25
|
+
`,text:'Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind. 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. Zusätzlich gibt es auch Inhalte über Debugging von E-Mails auf einem Staging-Server, die einfache Lösungen für Testumgebungen bieten. Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen!'},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"},{type:"component",componentName:"combobox",time:"2025-01-22T08:03:11.044Z",data:{caption:"What is your favorite <b>fruit</b>?",placeholder:"Search a fruit",values:[{value:"mango",label:"Mango"},{value:"watermelon",label:"Watermelon"},{value:"apple",label:"Apple"},{value:"pineapple",label:"Pineapple"},{value:"orange",label:"Orange"},{value:"grape",label:"Grape"},{value:"strawberry",label:"Strawberry"},{value:"banana",label:"Banana"},{value:"kiwi",label:"Kiwi"},{value:"peach",label:"Peach"},{value:"cherry",label:"Cherry"},{value:"blueberry",label:"Blueberry"},{value:"raspberry",label:"Raspberry"},{value:"blackberry",label:"Blackberry"},{value:"plum",label:"Plum"},{value:"apricot",label:"Apricot"},{value:"pear",label:"Pear"},{value:"grapefruit",label:"Grapefruit"}]}},{type:"component",componentName:"buttons",time:"2025-01-22T08:03:11.044Z",data:{caption:"Are you <b>ready</b>?",buttons:[{label:"<b>Yes</b>",value:"yes",variant:"primary"},{label:"No",value:"no",variant:"secondary"},{label:"Well, maybe",value:"no",href:"https://example.com",variant:"tertiary",icon:"externalLink",target:"_blank"}]}}];var Aa=_('<link rel="stylesheet"/>'),Ha=_("<!> <!> <!> <!> <!>",1),Ga=_('<div class="context-menu svelte-12rj1z4"><!></div>'),Oa=_('<div class="chat-app__loader-container">Loading...</div>'),Ra=_('<div class="container text-container" style="padding-bottom: 200px;"><hr/> <h2>Popups</h2> <div class="dialog-content svelte-12rj1z4"><div class="dialog-header"><div class="dialog-title"><!></div> <div class="dialog-close"><span class="sr-only">Close</span> <!></div></div> <div class="dialog-description"><!></div></div></div>'),Ja=_(`<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-12rj1z4"><!></div> <h3 class="h4">Highlight Colors (optional)</h3> <div class="color-swatches svelte-12rj1z4"><!></div> <h3 class="h4">Grey Colors</h3> <div class="color-swatches svelte-12rj1z4"><!></div></div> <div class="container text-container"><hr/> <h1>Abstractions</h1> <p>The following elements are not components, but abstractions only. Their properties are defined in the configuration
|
|
26
26
|
files and are applied to the components that need them.</p> <div class="card transition-colors svelte-12rj1z4">Card</div></div> <div class="container text-container"><h1>Components</h1> <h2>Buttons</h2> <div><div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><button class="btn btn--primary">Primary</button> <button class="btn btn--secondary">Secondary</button> <button class="btn btn--tertiary">Tertiary</button></div> <div style="display: flex; gap: 1rem;"><button class="btn btn--primary" disabled>Primary</button> <button class="btn btn--secondary" disabled>Secondary</button> <button class="btn btn--tertiary" disabled>Tertiary</button></div></div> <h2>Avatars</h2> <div style="display: flex; gap: 1rem;"><!> <!></div> <h2>ChatInput</h2> <!> <div class="predefined-questions"><!> <!> <!></div> <h2>References</h2> <div class="references__container svelte-12rj1z4"><div class="references__items"><!> <!> <!></div></div> <div><p>hover over the reference number to see the tooltip: <liipgpt-reference-number></liipgpt-reference-number> .</p></div> <div style="position: relative;"><a class="reference-number__content transition-colors no-link-styling" href="https://www.liip.ch" target="_blank" rel="noopener noreferrer"><span class="reference__header"><h3 class="reference__title h4">Reference tooltip example</h3> <!></span> <span class="reference__description line-clamp line-clamp--6">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et
|
|
27
27
|
dolore magna aliqua. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span> <span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate">www.very-very-longer-url-to-test.ch</span></span> <span class="reference__breadcrumb transition-colors">Organisation</span> <span class="reference__breadcrumb transition-colors">Über uns</span></span></a></div> <h2>Menu</h2> <div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><div class="chat-app__header-content"><!> <!> <!> <!></div></div> <h3>Menu example</h3> <div class="context-box__content svelte-12rj1z4"><div class="context-box__menu"><div class="context-box__menu-item transition-colors"><!> <span>Menü Beispiel</span></div></div> <div class="context-box__separator"></div> <div><div class="context-box__title">Sprache auswählen</div> <div class="context-box__menu"><div class="context-box__menu-item transition-colors active"><!> <span>Deutsch</span></div> <div class="context-box__menu-item transition-colors"><!> <span>English</span></div> <div class="context-box__menu-item transition-colors"><!> <span>Français</span></div> <div class="context-box__menu-item transition-colors"><!> <span>Italiano</span></div></div></div> <div class="context-box__separator" id="bits-c15" role="group" data-dropdown-menu-separator=""></div> <div id="bits-c16" data-dropdown-menu-radio-group="" role="group"><div class="context-box__color-scheme-selector"><div class="context-box__color-scheme-selector-button transition-colors context-box__color-scheme-selector-button--active"><!> <span>Hell</span></div> <hr class="context-box__color-scheme-selector-separator"/> <div class="context-box__color-scheme-selector-button transition-colors"><!> <span>Dunkel</span></div></div></div></div> <h2>Feedback Form</h2> <div class="dialog-content svelte-12rj1z4"><div class="dialog-header"><div class="dialog-title"><h3 class="h4">Feedback geben, um unseren Chatbot zu verbessern</h3></div> <button class="dialog-close"><span class="sr-only">Close</span> <div aria-hidden="true" class="svg svg--dismiss"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m5.743 5.742 12.514 12.514"></path><path d="m18.257 5.742-12.514 12.514"></path></g></svg></div></button></div> <div class="dialog-description" id="bits-92" data-dialog-description="" data-state="open"><form name="feedback-form" class="form"><!> <div class="form__item"><label class="form__label" for="feedback"> </label> <textarea id="feedback" class="input"></textarea></div> <div class="form__item"><label class="form__label" for="email"> </label> <input type="email" id="email" class="input"/></div></form></div></div> <h2>Tooltip</h2> <div class="tooltip-container" style="height: 100px"><div class="tooltip tooltip-top" style="">I'm a tooltip</div></div></div> <div class="container text-container"><hr/> <h2>Notifications</h2> <!></div> <div class="container text-container"><hr/> <h2>Chat</h2></div> <div class="chat-page__messages svelte-12rj1z4"></div> <div class="text-container container"><hr/> <h2>Typography</h2> <!> <hr/> <h2>Icons</h2> <div style="color: currentColor; display: flex; flex-wrap: wrap; gap: 1rem;"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div></div> <!>`,3),Ua=_('<main class="chat-app svelte-12rj1z4"><!> <div class="chat-app__container svelte-12rj1z4"><div class="chat-app__main svelte-12rj1z4"><div class="chat-app__portals"></div> <!></div></div> <div></div></main>');const Na={hash:"svelte-12rj1z4",code:`.color-swatches.svelte-12rj1z4 {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-12rj1z4,
|
|
28
|
-
.chat-app__container.svelte-12rj1z4 {width:100%;height:100%;background:var(--body-background);}.chat-page__messages.svelte-12rj1z4 {min-height:auto;padding-bottom:200px;}.context-menu.svelte-12rj1z4 {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__container.svelte-12rj1z4 {overflow-y:auto;}.chat-app__main.svelte-12rj1z4 {overflow-x:hidden;overscroll-behavior-x:none;background:transparent;touch-action:pan-y;}.card.svelte-12rj1z4 {padding:1rem;border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);color:var(--card-color);&:hover {background:var(--card-hover-background);color:var(--card-hover-color);}}.dialog-content.svelte-12rj1z4 {position:relative;top:0;left:0;transform:none;}.references__container.svelte-12rj1z4 {background-color:var(--aside-background);}.context-box__content.svelte-12rj1z4 {position:relative;}`};function Ot(b,c){Ee(c,!0),se(b,Na);let y=ne(c,"data",7),o=D(()=>v.t);Y(()=>{const i={lang:y().options.lang.value,forceTheme:y().options?.["force-theme"]?.value,apiUrl:y().options["api-url"].value,features:""};da(()=>va.init(i).catch(s=>{console.error("Failed to init chat logic",s)}))});const j=Ma;var x=Ua();Mt(i=>{var s=F(),m=L(s);{var q=k=>{var h=Ha(),u=L(h);W(u,17,()=>v.themeBase.fontURLs??[],V,($,Q)=>{var J=Aa();K(()=>R(J,"href",n(Q))),l($,J)});var S=e(u,2);ae(S,{id:"font-css",get css(){return v.themeBase.fontCSS}});var w=e(S,2);{let $=D(()=>qa(v.theme));ae(w,{id:"theme-css",get css(){return n($)}})}var f=e(w,2);ae(f,{id:"app-css",get css(){return ha}});var G=e(f,2);ae(G,{id:"custom-css",get css(){return v.themeBase.customCSS}}),l(k,h)};I(m,k=>{v.initialized&&k(q)})}l(i,s)});let M;var A=a(x);{var U=i=>{var s=Ga(),m=a(s);Dt(m,{}),t(s),l(i,s)};I(A,i=>{v.initialized&&i(U)})}var p=e(A,2),H=a(p),N=a(H);pa(N,(i,s)=>ka?.(i,s),()=>"portals");var Z=e(N,2);{var ee=i=>{var s=Oa();ga(2,s,()=>ba,()=>({duration:200,delay:300})),l(i,s)},oe=i=>{var s=Ja(),m=L(s),q=e(a(m),8),k=a(q);{var h=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.brand),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"brand",get key(){return E()},get value(){return O()}})}),l(d,g)};I(k,d=>{v.theme.colors?.brand&&d(h)})}t(q);var u=e(q,4),S=a(u);{var w=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.highlight),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"highlight",get key(){return E()},get value(){return O()}})}),l(d,g)};I(S,d=>{v.theme?.colors?.highlight&&d(w)})}t(u);var f=e(u,4),G=a(f);{var $=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.grey),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"grey",get key(){return E()},get value(){return O()}})}),l(d,g)};I(G,d=>{v.theme?.colors?.grey&&d($)})}t(f),t(m);var Q=e(m,4),J=e(a(Q),8),Fe=a(J);r(Fe,{name:"avatar",class:"introduction__avatar"});var Rt=e(Fe,2);r(Rt,{name:"avatar",class:"message__bot-avatar"}),t(J);var Me=e(J,4);wa(Me,{onSubmit:()=>{}});var de=e(Me,2),Ae=a(de);Le(Ae,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{},index:0});var He=e(Ae,2);Le(He,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{},index:1});var Jt=e(He,2);Le(Jt,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{},index:2}),t(de);var ce=e(de,4),Ge=a(ce),Oe=a(Ge);Ce(Oe,{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 Re=e(Oe,2);Ce(Re,{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 Ut=e(Re,2);Ce(Ut,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!"},listItem:{title:"15 years of Liip, and what a journey it's been!"}},referenceIndex:{all:12,used:10}}}),t(Ge),t(ce);var ue=e(ce,2),Je=a(ue),ve=e(a(Je));Be(ve,"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"}}})),Be(ve,"data-used-index","1"),Be(ve,"data-all-index","3"),z(),t(Je),t(ue);var pe=e(ue,2),Ue=a(pe),Ne=a(Ue),Nt=e(a(Ne),2);r(Nt,{name:"externalLink",class:"reference__icon transition-colors"}),t(Ne),z(4),t(Ue),t(pe);var me=e(pe,4),Ze=a(me),$e=a(Ze);_a($e,{});var Qe=e($e,2);Dt(Qe,{});var We=e(Qe,2);{let d=D(()=>n(o).aboutThisChat||"");fa(We,{get content(){return n(d)}})}var Zt=e(We,2);ya(Zt,{onclick:()=>{}}),t(Ze),t(me);var he=e(me,4),ge=a(he),Ve=a(ge),$t=a(Ve);r($t,{name:"externalLink"}),z(2),t(Ve),t(ge);var be=e(ge,4),Ye=e(a(be),2),we=a(Ye),Qt=a(we);r(Qt,{name:"internalLink"}),z(2),t(we);var _e=e(we,2),Wt=a(_e);r(Wt,{name:"internalLink"}),z(2),t(_e);var fe=e(_e,2),Vt=a(fe);r(Vt,{name:"internalLink"}),z(2),t(fe);var Ke=e(fe,2),Yt=a(Ke);r(Yt,{name:"internalLink"}),z(2),t(Ke),t(Ye),t(be);var Xe=e(be,4),et=a(Xe),ye=a(et),Kt=a(ye);r(Kt,{name:"lightMode"}),z(2),t(ye);var tt=e(ye,4),Xt=a(tt);r(Xt,{name:"darkMode"}),z(2),t(tt),t(et),t(Xe),t(he);var at=e(he,4),it=e(a(at),2),te=a(it),nt=a(te);xa(nt,{classificationConfig:{impact:{label:"Impact",options:[{label:"Positive",value:1},{label:"Negative",value:2}]},quality:{label:"Quality",options:[{label:"Good",value:1},{label:"Bad",value:2}]}},impact:0,quality:0});var xe=e(nt,2),qe=a(xe),ea=a(qe,!0);t(qe);var ta=e(qe,2);t(xe);var rt=e(xe,2),ke=a(rt),aa=a(ke,!0);t(ke);var ia=e(ke,2);t(rt),t(te),t(it),t(at),z(4),t(Q);var Se=e(Q,2),na=e(a(Se),4);Ht(na),t(Se);var ze=e(Se,4);W(ze,21,()=>j,V,(d,g)=>{Sa(d,{get message(){return n(g)},onmessageupdate:()=>{},onbotmessageinit:()=>{}})}),t(ze);var Ie=e(ze,2),st=e(a(Ie),4);Gt(st);var ot=e(st,6),lt=a(ot);r(lt,{name:"predefinedQuestion"});var dt=e(lt,2);r(dt,{name:"edit"});var ct=e(dt,2);r(ct,{name:"newConversation"});var ut=e(ct,2);r(ut,{name:"voteUp"});var vt=e(ut,2);r(vt,{name:"voteDown"});var pt=e(vt,2);r(pt,{name:"retry"});var mt=e(pt,2);r(mt,{name:"message"});var ht=e(mt,2);r(ht,{name:"thread"});var gt=e(ht,2);r(gt,{name:"submit"});var bt=e(gt,2);r(bt,{name:"expand"});var wt=e(bt,2);r(wt,{name:"help"});var _t=e(wt,2);r(_t,{name:"attach"});var ft=e(_t,2);r(ft,{name:"record"});var yt=e(ft,2);r(yt,{name:"reward"});var xt=e(yt,2);r(xt,{name:"share"});var qt=e(xt,2);r(qt,{name:"audio"});var kt=e(qt,2);r(kt,{name:"copy"});var St=e(kt,2);r(St,{name:"dismiss"});var zt=e(St,2);r(zt,{name:"menu"});var It=e(zt,2);r(It,{name:"listUnordered"});var Tt=e(It,2);r(Tt,{name:"lightMode"});var ra=e(Tt,2);r(ra,{name:"darkMode"}),t(ot),t(Ie);var sa=e(Ie,2);{var oa=d=>{var g=Ra(),P=e(a(g),4),C=a(P),B=a(C),T=a(B);Pe(T,()=>n(o).
|
|
28
|
+
.chat-app__container.svelte-12rj1z4 {width:100%;height:100%;background:var(--body-background);}.chat-page__messages.svelte-12rj1z4 {min-height:auto;padding-bottom:200px;}.context-menu.svelte-12rj1z4 {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__container.svelte-12rj1z4 {overflow-y:auto;}.chat-app__main.svelte-12rj1z4 {overflow-x:hidden;overscroll-behavior-x:none;background:transparent;touch-action:pan-y;}.card.svelte-12rj1z4 {padding:1rem;border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);color:var(--card-color);&:hover {background:var(--card-hover-background);color:var(--card-hover-color);}}.dialog-content.svelte-12rj1z4 {position:relative;top:0;left:0;transform:none;}.references__container.svelte-12rj1z4 {background-color:var(--aside-background);}.context-box__content.svelte-12rj1z4 {position:relative;}`};function Ot(b,c){Ee(c,!0),se(b,Na);let y=ne(c,"data",7),o=D(()=>v.t);Y(()=>{const i={lang:y().options.lang.value,forceTheme:y().options?.["force-theme"]?.value,apiUrl:y().options["api-url"].value,features:""};da(()=>va.init(i).catch(s=>{console.error("Failed to init chat logic",s)}))});const j=Ma;var x=Ua();Mt(i=>{var s=F(),m=L(s);{var q=k=>{var h=Ha(),u=L(h);W(u,17,()=>v.themeBase.fontURLs??[],V,($,Q)=>{var J=Aa();K(()=>R(J,"href",n(Q))),l($,J)});var S=e(u,2);ae(S,{id:"font-css",get css(){return v.themeBase.fontCSS}});var w=e(S,2);{let $=D(()=>qa(v.theme));ae(w,{id:"theme-css",get css(){return n($)}})}var f=e(w,2);ae(f,{id:"app-css",get css(){return ha}});var G=e(f,2);ae(G,{id:"custom-css",get css(){return v.themeBase.customCSS}}),l(k,h)};I(m,k=>{v.initialized&&k(q)})}l(i,s)});let M;var A=a(x);{var U=i=>{var s=Ga(),m=a(s);Dt(m,{}),t(s),l(i,s)};I(A,i=>{v.initialized&&i(U)})}var p=e(A,2),H=a(p),N=a(H);pa(N,(i,s)=>ka?.(i,s),()=>"portals");var Z=e(N,2);{var ee=i=>{var s=Oa();ga(2,s,()=>ba,()=>({duration:200,delay:300})),l(i,s)},oe=i=>{var s=Ja(),m=L(s),q=e(a(m),8),k=a(q);{var h=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.brand),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"brand",get key(){return E()},get value(){return O()}})}),l(d,g)};I(k,d=>{v.theme.colors?.brand&&d(h)})}t(q);var u=e(q,4),S=a(u);{var w=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.highlight),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"highlight",get key(){return E()},get value(){return O()}})}),l(d,g)};I(S,d=>{v.theme?.colors?.highlight&&d(w)})}t(u);var f=e(u,4),G=a(f);{var $=d=>{var g=F(),P=L(g);W(P,17,()=>Object.entries(v.theme.colors.grey),V,(C,B)=>{var T=D(()=>Te(n(B),2));let E=()=>n(T)[0],O=()=>n(T)[1];re(C,{name:"grey",get key(){return E()},get value(){return O()}})}),l(d,g)};I(G,d=>{v.theme?.colors?.grey&&d($)})}t(f),t(m);var Q=e(m,4),J=e(a(Q),8),Fe=a(J);r(Fe,{name:"avatar",class:"introduction__avatar"});var Rt=e(Fe,2);r(Rt,{name:"avatar",class:"message__bot-avatar"}),t(J);var Me=e(J,4);wa(Me,{onSubmit:()=>{}});var de=e(Me,2),Ae=a(de);Le(Ae,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{},index:0});var He=e(Ae,2);Le(He,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{},index:1});var Jt=e(He,2);Le(Jt,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{},index:2}),t(de);var ce=e(de,4),Ge=a(ce),Oe=a(Ge);Ce(Oe,{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 Re=e(Oe,2);Ce(Re,{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 Ut=e(Re,2);Ce(Ut,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!"},listItem:{title:"15 years of Liip, and what a journey it's been!"}},referenceIndex:{all:12,used:10}}}),t(Ge),t(ce);var ue=e(ce,2),Je=a(ue),ve=e(a(Je));Be(ve,"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"}}})),Be(ve,"data-used-index","1"),Be(ve,"data-all-index","3"),z(),t(Je),t(ue);var pe=e(ue,2),Ue=a(pe),Ne=a(Ue),Nt=e(a(Ne),2);r(Nt,{name:"externalLink",class:"reference__icon transition-colors"}),t(Ne),z(4),t(Ue),t(pe);var me=e(pe,4),Ze=a(me),$e=a(Ze);_a($e,{});var Qe=e($e,2);Dt(Qe,{});var We=e(Qe,2);{let d=D(()=>n(o).aboutThisChat||"");fa(We,{get content(){return n(d)}})}var Zt=e(We,2);ya(Zt,{onclick:()=>{}}),t(Ze),t(me);var he=e(me,4),ge=a(he),Ve=a(ge),$t=a(Ve);r($t,{name:"externalLink"}),z(2),t(Ve),t(ge);var be=e(ge,4),Ye=e(a(be),2),we=a(Ye),Qt=a(we);r(Qt,{name:"internalLink"}),z(2),t(we);var _e=e(we,2),Wt=a(_e);r(Wt,{name:"internalLink"}),z(2),t(_e);var fe=e(_e,2),Vt=a(fe);r(Vt,{name:"internalLink"}),z(2),t(fe);var Ke=e(fe,2),Yt=a(Ke);r(Yt,{name:"internalLink"}),z(2),t(Ke),t(Ye),t(be);var Xe=e(be,4),et=a(Xe),ye=a(et),Kt=a(ye);r(Kt,{name:"lightMode"}),z(2),t(ye);var tt=e(ye,4),Xt=a(tt);r(Xt,{name:"darkMode"}),z(2),t(tt),t(et),t(Xe),t(he);var at=e(he,4),it=e(a(at),2),te=a(it),nt=a(te);xa(nt,{classificationConfig:{impact:{label:"Impact",options:[{label:"Positive",value:1},{label:"Negative",value:2}]},quality:{label:"Quality",options:[{label:"Good",value:1},{label:"Bad",value:2}]}},impact:0,quality:0});var xe=e(nt,2),qe=a(xe),ea=a(qe,!0);t(qe);var ta=e(qe,2);t(xe);var rt=e(xe,2),ke=a(rt),aa=a(ke,!0);t(ke);var ia=e(ke,2);t(rt),t(te),t(it),t(at),z(4),t(Q);var Se=e(Q,2),na=e(a(Se),4);Ht(na),t(Se);var ze=e(Se,4);W(ze,21,()=>j,V,(d,g)=>{Sa(d,{get message(){return n(g)},onmessageupdate:()=>{},onbotmessageinit:()=>{}})}),t(ze);var Ie=e(ze,2),st=e(a(Ie),4);Gt(st);var ot=e(st,6),lt=a(ot);r(lt,{name:"predefinedQuestion"});var dt=e(lt,2);r(dt,{name:"edit"});var ct=e(dt,2);r(ct,{name:"newConversation"});var ut=e(ct,2);r(ut,{name:"voteUp"});var vt=e(ut,2);r(vt,{name:"voteDown"});var pt=e(vt,2);r(pt,{name:"retry"});var mt=e(pt,2);r(mt,{name:"message"});var ht=e(mt,2);r(ht,{name:"thread"});var gt=e(ht,2);r(gt,{name:"submit"});var bt=e(gt,2);r(bt,{name:"expand"});var wt=e(bt,2);r(wt,{name:"help"});var _t=e(wt,2);r(_t,{name:"attach"});var ft=e(_t,2);r(ft,{name:"record"});var yt=e(ft,2);r(yt,{name:"reward"});var xt=e(yt,2);r(xt,{name:"share"});var qt=e(xt,2);r(qt,{name:"audio"});var kt=e(qt,2);r(kt,{name:"copy"});var St=e(kt,2);r(St,{name:"dismiss"});var zt=e(St,2);r(zt,{name:"menu"});var It=e(zt,2);r(It,{name:"listUnordered"});var Tt=e(It,2);r(Tt,{name:"lightMode"});var ra=e(Tt,2);r(ra,{name:"darkMode"}),t(ot),t(Ie);var sa=e(Ie,2);{var oa=d=>{var g=Ra(),P=e(a(g),4),C=a(P),B=a(C),T=a(B);Pe(T,()=>n(o).popups[1].title),t(B);var E=e(B,2),O=e(a(E),2);r(O,{name:"dismiss"}),t(E),t(C);var Lt=e(C,2),la=a(Lt);Pe(la,()=>n(o).popups[1].content),t(Lt),t(P),t(g),l(d,g)};I(sa,d=>{n(o).popups&&n(o).popups?.length>0&&d(oa)})}K(()=>{R(te,"aria-label",n(o).feedbackFormTitle),je(ea,n(o).feedbackFormMessage),R(ta,"placeholder",n(o).feedbackFormMessagePlaceholder),je(aa,n(o).feedbackFormEmail),R(ia,"placeholder",n(o).feedbackFormEmailPlaceholder)}),ca("submit",te,async()=>{}),l(i,s)};I(Z,i=>{v.initialized?i(oe,!1):i(ee)})}t(H),t(p);var le=e(p,2);return t(x),K(i=>{M=At(x,"",M,i),R(le,"id",ma)},[()=>({"color-scheme":v.colorScheme})]),l(b,x),De({get data(){return y()},set data(i){y(i),ie()}})}X(Ot,{data:{}},[],[],!0);var Za=_('<iframe title="sidebar" id="sidebar" class="svelte-1h9zc1h"></iframe>'),$a=_('<div id="chat-wrapper" class="svelte-1h9zc1h"><div></div> <!> <div></div></div>'),Qa=_('<div id="preview" class="svelte-1h9zc1h"><!> <!></div>');const Wa={hash:"svelte-1h9zc1h",code:`html,
|
|
29
29
|
body {width:100%;height:100%;margin:0;padding:0;}#sidebar.svelte-1h9zc1h {width:500px;height:100%;border:none;}#preview.svelte-1h9zc1h {display:flex;align-items:center;justify-content:center;width:100%;height:100%;}#chat-wrapper.svelte-1h9zc1h {container-name:preview-container;
|
|
30
|
-
/* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function Va(b,c){Ee(c,!0),se(b,Wa);let y=La(c,["$$slots","$$events","$$legacy","$$host"]),o=D(()=>c.data);Y(()=>{window.onmessage=function(i){if(typeof i.data=="string"&&i.data.startsWith("liipgpt-url:")){const s=new URLSearchParams(i.data.replace("liipgpt-url:",""));Ca("?"+s.toString(),{replaceState:!0})}}});const j=i=>`/build/${i}/liipgpt-${i}.iife.js`,x=async i=>{i==="build"&&(await import(j("chat")),await import(j("button"))),i==="dev"&&(await Ct(()=>import("../chunks/
|
|
30
|
+
/* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function Va(b,c){Ee(c,!0),se(b,Wa);let y=La(c,["$$slots","$$events","$$legacy","$$host"]),o=D(()=>c.data);Y(()=>{window.onmessage=function(i){if(typeof i.data=="string"&&i.data.startsWith("liipgpt-url:")){const s=new URLSearchParams(i.data.replace("liipgpt-url:",""));Ca("?"+s.toString(),{replaceState:!0})}}});const j=i=>`/build/${i}/liipgpt-${i}.iife.js`,x=async i=>{i==="build"&&(await import(j("chat")),await import(j("button"))),i==="dev"&&(await Ct(()=>import("../chunks/mT2ZYCk2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),await Ct(()=>import("../chunks/BBUV8NAY.js"),__vite__mapDeps([14,1,2,3,13,6,7,5,8,9,12]),import.meta.url)),i==="server"&&(import(Ft(c.data.options,"chat")),import(Ft(c.data.options,"button")))};let M="server",A=D(()=>c.data.options?.["preview-mode"]?.value??M);Y(()=>{x(n(A))});const U=`./sidebar${Ba.url.search}`;let p=jt(void 0),H=jt(void 0);const N=(i,s)=>{const m=document.createElement("script"),q=document.createTextNode(s);m.appendChild(q),i.replaceChildren(m)};Y(()=>{n(p)&&N(n(p),n(o).options.CHAT_CONFIG_OVERRIDE.value||"")}),Y(()=>{n(H)&&N(n(H),n(o).options.onclosechat.value||"")});var Z=Qa();Mt(i=>{var s=F(),m=L(s);{var q=k=>{var h=F(),u=L(h);{var S=f=>{Pt.title="LiipGPT Configurator | Components"},w=f=>{Pt.title="LiipGPT Configurator"};I(u,f=>{n(o).options["show-components"].value?f(S):f(w,!1)},!0)}l(k,h)};I(m,k=>{k(q,!1)})}l(i,s)});var ee=a(Z);{var oe=i=>{var s=Za();K(()=>R(s,"src",U)),l(i,s)};I(ee,i=>{n(o).options["hide-sidebar"].value||i(oe)})}var le=e(ee,2);za(le,()=>n(o),i=>{var s=F(),m=L(s);{var q=h=>{var u=F(),S=L(u);ua(S,{onerror:w=>console.error("Rendering error of components",w)},w=>{Ot(w,Ta(()=>y))}),l(h,u)},k=h=>{var u=$a(),S=a(u);Bt(S,G=>Et(p,G),()=>n(p));var w=e(S,2);Pe(w,()=>Ia(n(o).options));var f=e(w,2);Bt(f,G=>Et(H,G),()=>n(H)),t(u),l(h,u)};I(m,h=>{n(o).options["show-components"].value?h(q):h(k,!1)})}l(i,s)}),t(Z),l(b,Z),De()}X(Va,{},[],[],!0);export{Va as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../chunks/NZTpNUN0.js";import{p as it,s as Ei,r as _i}from"../chunks/DePuinxN.js";import{R as ko,c as Tt,p as Gt,f as Se,s as De,e as ve,r as me,S as bo,t as Ue,G as Ne,P as Vi,g as ot,b as $e,d as Xt,v as nt,T as uo,N as fo,a as Zt,aG as Ni,aC as Oi,aH as Fi,H as po,aE as Wi}from"../chunks/Cx_YT9bD.js";import{E as ho,F as mo,s as He,G as go,e as yo,i as Ui,H as Di,J as Bi,n as Li,K as Mi,a as Ii,D as Ri}from"../chunks/
|
|
1
|
+
import"../chunks/NZTpNUN0.js";import{p as it,s as Ei,r as _i}from"../chunks/DePuinxN.js";import{R as ko,c as Tt,p as Gt,f as Se,s as De,e as ve,r as me,S as bo,t as Ue,G as Ne,P as Vi,g as ot,b as $e,d as Xt,v as nt,T as uo,N as fo,a as Zt,aG as Ni,aC as Oi,aH as Fi,H as po,aE as Wi}from"../chunks/Cx_YT9bD.js";import{E as ho,F as mo,s as He,G as go,e as yo,i as Ui,H as Di,J as Bi,n as Li,K as Mi,a as Ii,D as Ri}from"../chunks/Cm2wS9RB.js";import"../chunks/f-az8jJM.js";import{b as Hi,i as rt}from"../chunks/B0YFyw9m.js";import{g as qi}from"../chunks/B1-B4mtg.js";import{p as Pi}from"../chunks/C-ITotyQ.js";var vo={},wo;function Yi(){return wo||(wo=1,(()=>{var O="4.1.5",M=92,D=47,_=42,re=34,be=39,I=58,ie=59,J=10,X=32,ne=9,P=123,Z=125,G=40,ge=41,we=91,ye=93,de=45,xe=64,qe=33;function fe(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let r=[],o=[],t=[],i=null,c=null,s="",u="",l;for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);if(m===M)s+=e.slice(p,p+2),p+=1;else if(m===D&&e.charCodeAt(p+1)===_){let h=p;for(let w=p+2;w<e.length;w++)if(l=e.charCodeAt(w),l===M)w+=1;else if(l===_&&e.charCodeAt(w+1)===D){p=w+1;break}let v=e.slice(h,p+1);v.charCodeAt(2)===qe&&o.push(sr(v.slice(2,-2)))}else if(m===be||m===re){let h=p;for(let v=p+1;v<e.length;v++)if(l=e.charCodeAt(v),l===M)v+=1;else if(l===m){p=v;break}else{if(l===ie&&e.charCodeAt(v+1)===J)throw new Error(`Unterminated string: ${e.slice(h,v+1)+String.fromCharCode(m)}`);if(l===J)throw new Error(`Unterminated string: ${e.slice(h,v)+String.fromCharCode(m)}`)}s+=e.slice(h,p+1)}else{if((m===X||m===J||m===ne)&&(l=e.charCodeAt(p+1))&&(l===X||l===J||l===ne))continue;if(m===J){if(s.length===0)continue;l=s.charCodeAt(s.length-1),l!==X&&l!==J&&l!==ne&&(s+=" ")}else if(m===de&&e.charCodeAt(p+1)===de&&s.length===0){let h="",v=p,w=-1;for(let b=p+2;b<e.length;b++)if(l=e.charCodeAt(b),l===M)b+=1;else if(l===D&&e.charCodeAt(b+1)===_){for(let A=b+2;A<e.length;A++)if(l=e.charCodeAt(A),l===M)A+=1;else if(l===_&&e.charCodeAt(A+1)===D){b=A+1;break}}else if(w===-1&&l===I)w=s.length+b-v;else if(l===ie&&h.length===0){s+=e.slice(v,b),p=b;break}else if(l===G)h+=")";else if(l===we)h+="]";else if(l===P)h+="}";else if((l===Z||e.length-1===b)&&h.length===0){p=b-1,s+=e.slice(v,b);break}else(l===ge||l===ye||l===Z)&&h.length>0&&e[b]===h[h.length-1]&&(h=h.slice(0,-1));let k=Oe(s,w);if(!k)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(k):r.push(k),s=""}else if(m===ie&&s.charCodeAt(0)===xe)c=Ke(s),i?i.nodes.push(c):r.push(c),s="",c=null;else if(m===ie&&u[u.length-1]!==")"){let h=Oe(s);if(!h)throw s.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${s.trim()}\``);i?i.nodes.push(h):r.push(h),s=""}else if(m===P&&u[u.length-1]!==")")u+="}",c=ae(s.trim()),i&&i.nodes.push(c),t.push(i),i=c,s="",c=null;else if(m===Z&&u[u.length-1]!==")"){if(u==="")throw new Error("Missing opening {");if(u=u.slice(0,-1),s.length>0)if(s.charCodeAt(0)===xe)c=Ke(s),i?i.nodes.push(c):r.push(c),s="",c=null;else{let v=s.indexOf(":");if(i){let w=Oe(s,v);if(!w)throw new Error(`Invalid declaration: \`${s.trim()}\``);i.nodes.push(w)}}let h=t.pop()??null;h===null&&i&&r.push(i),i=h,s="",c=null}else if(m===G)u+=")",s+="(";else if(m===ge){if(u[u.length-1]!==")")throw new Error("Missing opening (");u=u.slice(0,-1),s+=")"}else{if(s.length===0&&(m===X||m===J||m===ne))continue;s+=String.fromCharCode(m)}}}if(s.charCodeAt(0)===xe&&r.push(Ke(s)),u.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return o.length>0?o.concat(r):r}function Ke(e,r=[]){for(let o=5;o<e.length;o++){let t=e.charCodeAt(o);if(t===X||t===G){let i=e.slice(0,o).trim(),c=e.slice(o).trim();return R(i,c,r)}}return R(e.trim(),"",r)}function Oe(e,r=e.indexOf(":")){if(r===-1)return null;let o=e.indexOf("!important",r+1);return n(e.slice(0,r).trim(),e.slice(r+1,o===-1?e.length:o).trim(),o!==-1)}function je(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),o=r.length,t=-1,i,c="",s=r.charCodeAt(0);if(o===1&&s===45)return"\\"+r;for(;++t<o;){if(i=r.charCodeAt(t),i===0){c+="�";continue}if(i>=1&&i<=31||i===127||t===0&&i>=48&&i<=57||t===1&&i>=48&&i<=57&&s===45){c+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){c+=r.charAt(t);continue}c+="\\"+r.charAt(t)}return c}function pe(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var Ae=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function st(e,r){return(Ae.get(r)??[]).some(o=>e===o||e.startsWith(`${o}-`))}var Ct=class{constructor(e=new Map,r=new Set([])){this.values=e,this.keyframes=r}prefix=null;add(e,r,o=0){if(e.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${e}\``);e==="--*"?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(o&4){let t=this.values.get(e);if(t&&!(t.options&4))return}r==="initial"?this.values.delete(e):this.values.set(e,{value:r,options:o})}keysInNamespaces(e){let r=[];for(let o of e){let t=`${o}-`;for(let i of this.values.keys())i.startsWith(t)&&i.indexOf("--",2)===-1&&(st(i,o)||r.push(i.slice(t.length)))}return r}get(e){for(let r of e){let o=this.values.get(r);if(o)return o.value}return null}hasDefault(e){return(this.getOptions(e)&4)===4}getOptions(e){return e=pe(this.#r(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#r(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,r){let o=Ae.get(e)??[];e:for(let t of this.values.keys())if(t.startsWith(e)){if(r!==0&&(this.getOptions(t)&r)!==r)continue;for(let i of o)if(t.startsWith(i))continue e;this.values.delete(t)}}#e(e,r){for(let o of r){let t=e!==null?`${o}-${e}`:o;if(!this.values.has(t))if(e!==null&&e.includes(".")){if(t=`${o}-${e.replaceAll(".","_")}`,!this.values.has(t))continue}else continue;if(!st(t,o))return t}return null}#t(e){let r=this.values.get(e);if(!r)return null;let o=null;return r.options&2&&(o=r.value),`var(${je(this.prefixKey(e))}${o?`, ${o}`:""})`}markUsedVariable(e){let r=pe(this.#r(e)),o=this.values.get(r);if(!o)return!1;let t=o.options&16;return o.options|=16,!t}resolve(e,r,o=0){let t=this.#e(e,r);if(!t)return null;let i=this.values.get(t);return(o|i.options)&1?i.value:this.#t(t)}resolveValue(e,r){let o=this.#e(e,r);return o?this.values.get(o).value:null}resolveWith(e,r,o=[]){let t=this.#e(e,r);if(!t)return null;let i={};for(let s of o){let u=`${t}${s}`,l=this.values.get(u);l&&(l.options&1?i[s]=l.value:i[s]=this.#t(u))}let c=this.values.get(t);return c.options&1?[c.value,i]:[this.#t(t),i]}namespace(e){let r=new Map,o=`${e}-`;for(let[t,i]of this.values)t===e?r.set(null,i.value):t.startsWith(`${o}-`)?r.set(t.slice(e.length),i.value):t.startsWith(o)&&r.set(t.slice(o.length),i.value);return r}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},le=class extends Map{constructor(e){super(),this.factory=e}get(e){let r=super.get(e);return r===void 0&&(r=this.factory(e,this),this.set(e,r)),r}};function Ce(e){return{kind:"word",value:e}}function Q(e,r){return{kind:"function",value:e,nodes:r}}function Pe(e){return{kind:"separator",value:e}}function ke(e,r,o=null){for(let t=0;t<e.length;t++){let i=e[t],c=!1,s=0,u=r(i,{parent:o,replaceWith(l){c||(c=!0,Array.isArray(l)?l.length===0?(e.splice(t,1),s=0):l.length===1?(e[t]=l[0],s=1):(e.splice(t,1,...l),s=l.length):e[t]=l)}})??0;if(c){u===0?t--:t+=s-1;continue}if(u===2||u!==1&&i.kind==="function"&&ke(i.nodes,r,i)===2)return 2}}function ee(e){let r="";for(let o of e)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+ee(o.nodes)+")"}return r}var Fe=92,St=41,Xe=58,Qt=44,zo=34,er=61,tr=62,rr=60,or=10,To=40,jo=39,ar=47,ir=32,nr=9;function oe(e){e=e.replaceAll(`\r
|
|
4
4
|
`,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1764240466903"}
|