@liip/liipgpt 3.3.2 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/button/liipgpt-button.iife.js +100 -61
  2. package/chat/liipgpt-chat.iife.js +102 -66
  3. package/config/index.cjs +13289 -3693
  4. package/config/index.d.ts +5246 -26814
  5. package/config/index.js +13253 -3657
  6. package/configurator/_app/env.js +1 -1
  7. package/configurator/_app/immutable/chunks/6gGOJNBB.js +1 -0
  8. package/configurator/_app/immutable/chunks/B9KqQVWK.js +1 -0
  9. package/configurator/_app/immutable/chunks/BR4Ri1mV.js +15 -0
  10. package/configurator/_app/immutable/chunks/BXCiGO5D.js +1 -0
  11. package/configurator/_app/immutable/chunks/BXvq-tJR.js +1 -0
  12. package/configurator/_app/immutable/chunks/Bg7q39r6.js +1 -0
  13. package/configurator/_app/immutable/chunks/{CUA2mQrz.js → CR5-hwU3.js} +1 -1
  14. package/configurator/_app/immutable/chunks/CfJtR48A.js +2 -0
  15. package/configurator/_app/immutable/chunks/DDdNR6B9.js +1 -0
  16. package/configurator/_app/immutable/chunks/DP18hDNz.js +324 -0
  17. package/configurator/_app/immutable/chunks/DZ0jooU7.js +1 -0
  18. package/configurator/_app/immutable/chunks/DoVxcdSh.js +143 -0
  19. package/configurator/_app/immutable/chunks/DsnmJJEf.js +1 -0
  20. package/configurator/_app/immutable/chunks/NTlCU5wx.js +113 -0
  21. package/configurator/_app/immutable/chunks/hrZ0qwUL.js +1 -0
  22. package/configurator/_app/immutable/entry/app.DX1BO32c.js +2 -0
  23. package/configurator/_app/immutable/entry/start.DU4iEglC.js +1 -0
  24. package/configurator/_app/immutable/nodes/{0.B1_BHoHM.js → 0.DFZ7OBkw.js} +3 -3
  25. package/configurator/_app/immutable/nodes/1.RVsOXI4d.js +1 -0
  26. package/configurator/_app/immutable/nodes/2.gxyeht7h.js +31 -0
  27. package/configurator/_app/immutable/nodes/3.BbSVwn6I.js +954 -0
  28. package/configurator/_app/version.json +1 -1
  29. package/configurator/index.html +12 -12
  30. package/configurator/sidebar.html +12 -12
  31. package/index.cjs +16249 -6028
  32. package/index.d.ts +6952 -70037
  33. package/index.js +16249 -6028
  34. package/package.json +4 -4
  35. package/configurator/_app/immutable/chunks/BHyoBcMB.js +0 -15
  36. package/configurator/_app/immutable/chunks/Bwlnp1Fv.js +0 -3
  37. package/configurator/_app/immutable/chunks/C8ORMuNm.js +0 -286
  38. package/configurator/_app/immutable/chunks/Cg1M8nhR.js +0 -1
  39. package/configurator/_app/immutable/chunks/CjlIFGQR.js +0 -1
  40. package/configurator/_app/immutable/chunks/DEfNJr1d.js +0 -1
  41. package/configurator/_app/immutable/chunks/DShclvIF.js +0 -116
  42. package/configurator/_app/immutable/chunks/Dzs3iOAP.js +0 -1
  43. package/configurator/_app/immutable/chunks/KwlzJn94.js +0 -1
  44. package/configurator/_app/immutable/chunks/NZTpNUN0.js +0 -1
  45. package/configurator/_app/immutable/chunks/PaGpozZ3.js +0 -1
  46. package/configurator/_app/immutable/chunks/UUVzZ2eQ.js +0 -1
  47. package/configurator/_app/immutable/chunks/bzMFxNOM.js +0 -143
  48. package/configurator/_app/immutable/chunks/tg4KZpKp.js +0 -1
  49. package/configurator/_app/immutable/entry/app.wS03Lw9v.js +0 -2
  50. package/configurator/_app/immutable/entry/start.DC6usZVj.js +0 -1
  51. package/configurator/_app/immutable/nodes/1.Qf-3txMY.js +0 -1
  52. package/configurator/_app/immutable/nodes/2.QF2vvVAB.js +0 -31
  53. package/configurator/_app/immutable/nodes/3.y9o-F-NC.js +0 -897
@@ -0,0 +1 @@
1
+ import{G as M,H as m,I as L,J as O,K as I,L as T,M as B,N as Y,O as j,P as K,k as P,D as N,Q as U,R as $,y as C,S as F,T as G,U as p,V as D,W as R,X as S,Y as Z,Z as q,_ as z,$ as H,a0 as J,j as Q,i as V,a1 as W,a2 as X}from"./CfJtR48A.js";class se{anchor;#t=new Map;#r=new Map;#e=new Map;#s=new Set;#n=!0;constructor(e,s=!0){this.anchor=e,this.#n=s}#i=e=>{if(this.#t.has(e)){var s=this.#t.get(e),t=this.#r.get(s);if(t)M(t),this.#s.delete(s);else{var n=this.#e.get(s);n&&(this.#r.set(s,n.effect),this.#e.delete(s),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),t=n.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===e)break;const f=this.#e.get(o);f&&(m(f.effect),this.#e.delete(o))}for(const[i,o]of this.#r){if(i===s||this.#s.has(i))continue;const f=()=>{if(Array.from(this.#t.values()).includes(i)){var c=document.createDocumentFragment();B(o,c),c.append(O()),this.#e.set(i,{effect:o,fragment:c})}else m(o);this.#s.delete(i),this.#r.delete(i)};this.#n||!t?(this.#s.add(i),L(o,f,!1)):f()}}};#f=e=>{this.#t.delete(e);const s=Array.from(this.#t.values());for(const[t,n]of this.#e)s.includes(t)||(m(n.effect),this.#e.delete(t))};ensure(e,s){var t=T,n=Y();if(s&&!this.#r.has(e)&&!this.#e.has(e))if(n){var i=document.createDocumentFragment(),o=O();i.append(o),this.#e.set(e,{effect:I(()=>s(o)),fragment:i})}else this.#r.set(e,I(()=>s(this.anchor)));if(this.#t.set(t,e),n){for(const[f,u]of this.#r)f===e?t.unskip_effect(u):t.skip_effect(u);for(const[f,u]of this.#e)f===e?t.unskip_effect(u.effect):t.skip_effect(u.effect);t.oncommit(this.#i),t.ondiscard(this.#f)}else j&&(this.anchor=K),this.#i(t)}}let g=!1;function k(r){var e=g;try{return g=!1,[r(),g]}finally{g=e}}const ee={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function ne(r,e,s){return new Proxy({props:r,exclude:e},ee)}const te={get(r,e){let s=r.props.length;for(;s--;){let t=r.props[s];if(p(t)&&(t=t()),typeof t=="object"&&t!==null&&e in t)return t[e]}},set(r,e,s){let t=r.props.length;for(;t--;){let n=r.props[t];p(n)&&(n=n());const i=S(n,e);if(i&&i.set)return i.set(s),!0}return!1},getOwnPropertyDescriptor(r,e){let s=r.props.length;for(;s--;){let t=r.props[s];if(p(t)&&(t=t()),typeof t=="object"&&t!==null&&e in t){const n=S(t,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(r,e){if(e===D||e===R)return!1;for(let s of r.props)if(p(s)&&(s=s()),s!=null&&e in s)return!0;return!1},ownKeys(r){const e=[];for(let s of r.props)if(p(s)&&(s=s()),!!s){for(const t in s)e.includes(t)||e.push(t);for(const t of Object.getOwnPropertySymbols(s))e.includes(t)||e.push(t)}return e}};function ie(...r){return new Proxy({props:r},te)}function fe(r,e,s,t){var n=!V||(s&W)!==0,i=(s&J)!==0,o=(s&X)!==0,f=t,u=!0,c=()=>(u&&(u=!1,f=o?Q(t):t),f),d;if(i){var x=D in r||R in r;d=S(r,e)?.set??(x&&e in r?a=>r[e]=a:void 0)}var h,w=!1;i?[h,w]=k(()=>r[e]):h=r[e],h===void 0&&t!==void 0&&(h=c(),d&&(n&&Z(),d(h)));var l;if(n?l=()=>{var a=r[e];return a===void 0?c():(u=!0,a)}:l=()=>{var a=r[e];return a!==void 0&&(f=void 0),a===void 0?f:a},n&&(s&q)===0)return l;if(d){var A=r.$$legacy;return(function(a,v){return arguments.length>0?((!n||!v||A||w)&&d(v?l():a),a):l()})}var b=!1,_=((s&z)!==0?C:G)(()=>(b=!1,l()));i&&P(_);var E=U;return(function(a,v){if(arguments.length>0){const y=v?P(_):n&&i?H(a):a;return N(_,y),b=!0,f!==void 0&&(f=y),a}return F&&b||(E.f&$)!==0?_.v:P(_)})}export{se as B,fe as p,ne as r,ie as s};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DFZ7OBkw.js","../chunks/DP18hDNz.js","../chunks/CfJtR48A.js","../chunks/hrZ0qwUL.js","../chunks/DsnmJJEf.js","../nodes/1.RVsOXI4d.js","../chunks/DDdNR6B9.js","../chunks/BXCiGO5D.js","../chunks/6gGOJNBB.js","../chunks/CR5-hwU3.js","../nodes/2.gxyeht7h.js","../chunks/Bg7q39r6.js","../chunks/NTlCU5wx.js","../nodes/3.BbSVwn6I.js","../chunks/DoVxcdSh.js","../chunks/DZ0jooU7.js"])))=>i.map(i=>d[i]);
2
+ import{i as x,c as y,b as D,_ as E}from"../chunks/Bg7q39r6.js";import{c as U,p as W,q as X,u as Y,k as m,D as R,a4 as Z,f as P,s as $,a as f,b as tt,C as j,d as C,m as u,z as k,e as et,r as rt,o as w,a5 as at,t as ot,g as st,a6 as nt}from"../chunks/CfJtR48A.js";import"../chunks/DsnmJJEf.js";import{o as it}from"../chunks/6gGOJNBB.js";import{p as d}from"../chunks/hrZ0qwUL.js";const vt={};var ct=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>'),mt=C("<!> <!>",1);function q(r,e){W(e,!0);let _=d(e,"stores",7),o=d(e,"page",7),s=d(e,"constructors",7),a=d(e,"components",23,()=>[]),l=d(e,"form",7),g=d(e,"data_0",7,null),b=d(e,"data_1",7,null);X(()=>_().page.set(o())),Y(()=>{_(),o(),s(),a(),l(),g(),b(),_().page.notify()});let O=j(!1),A=j(!1),I=j(null);it(()=>{const t=_().page.subscribe(()=>{m(O)&&(R(A,!0),Z().then(()=>{R(I,document.title||"untitled page",!0)}))});return R(O,!0),t});const M=w(()=>s()[1]);var S={get stores(){return _()},set stores(t){_(t),u()},get page(){return o()},set page(t){o(t),u()},get constructors(){return s()},set constructors(t){s(t),u()},get components(){return a()},set components(t=[]){a(t),u()},get form(){return l()},set form(t){l(t),u()},get data_0(){return g()},set data_0(t=null){g(t),u()},get data_1(){return b()},set data_1(t=null){b(t),u()}},L=mt(),T=P(L);{var B=t=>{const n=w(()=>s()[0]);var i=k(),v=P(i);y(v,()=>m(n),(c,p)=>{D(p(c,{get data(){return g()},get form(){return l()},get params(){return o().params},children:(h,dt)=>{var V=k(),J=P(V);y(J,()=>m(M),(K,N)=>{D(N(K,{get data(){return b()},get form(){return l()},get params(){return o().params}}),Q=>a()[1]=Q,()=>a()?.[1])}),f(h,V)},$$slots:{default:!0}}),h=>a()[0]=h,()=>a()?.[0])}),f(t,i)},F=t=>{const n=w(()=>s()[0]);var i=k(),v=P(i);y(v,()=>m(n),(c,p)=>{D(p(c,{get data(){return g()},get form(){return l()},get params(){return o().params}}),h=>a()[0]=h,()=>a()?.[0])}),f(t,i)};x(T,t=>{s()[1]?t(B):t(F,!1)})}var G=$(T,2);{var H=t=>{var n=ct(),i=et(n);{var v=c=>{var p=at();ot(()=>st(p,m(I))),f(c,p)};x(i,c=>{m(A)&&c(v)})}rt(n),f(t,n)};x(G,t=>{m(O)&&t(H)})}return f(r,L),tt(S)}U(q,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:"open"});const ht=nt(q),bt=[()=>E(()=>import("../nodes/0.DFZ7OBkw.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.RVsOXI4d.js"),__vite__mapDeps([5,4,6,2,7,8,9]),import.meta.url),()=>E(()=>import("../nodes/2.gxyeht7h.js"),__vite__mapDeps([10,11,2,3,4,12,1,8,7,6]),import.meta.url),()=>E(()=>import("../nodes/3.BbSVwn6I.js"),__vite__mapDeps([13,4,3,2,12,1,11,8,7,14,6,9,15]),import.meta.url)],Et=[],Pt={"/":[2],"/sidebar":[3]},z={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},ut=Object.fromEntries(Object.entries(z.transport).map(([r,e])=>[r,e.decode])),Ot=Object.fromEntries(Object.entries(z.transport).map(([r,e])=>[r,e.encode])),xt=!1,yt=(r,e)=>ut[r](e);export{yt as decode,ut as decoders,Pt as dictionary,Ot as encoders,xt as hash,z as hooks,vt as matchers,bt as nodes,ht as root,Et as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/BXCiGO5D.js";export{o as load_css,r as start};
@@ -1,4 +1,4 @@
1
- import{P as s}from"../chunks/C8ORMuNm.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/PaGpozZ3.js";import{p as g}from"../chunks/UUVzZ2eQ.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 t=await v().catch(e=>(console.error("Error fetching org names:",e),[]));t.push("liipgpt");const i=t.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=`/**
1
+ import{P as l,s as c}from"../chunks/DP18hDNz.js";import"../chunks/DsnmJJEf.js";import{c as p,p as u,z as d,f as h,a as f,b as g,m as v}from"../chunks/CfJtR48A.js";import{p as m}from"../chunks/hrZ0qwUL.js";const y=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),b=["baselcitygpt"],w=async()=>{const t=await y().catch(e=>(console.error("Error fetching org names:",e),[]));t.push("liipgpt");const i=t.map(e=>b.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)},C=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -114,7 +114,7 @@ const CHAT_CONFIG_OVERRIDE = {
114
114
  };
115
115
 
116
116
  window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
117
- `,w=`<div
117
+ `,O=`<div
118
118
  style="
119
119
  display: flex;
120
120
  flex-direction: column;
@@ -152,4 +152,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
152
152
  </g>
153
153
  </svg>
154
154
  </div>
155
- `,C={"api-org":{type:"string",values:[],value:"liipgpt",description:"Select the organization to to get the API URL"},"prod-api":{type:"boolean",value:!1,description:"Select to use the production API URL"},"api-url":{type:"string",required:!0,value:s,description:"URL of the API endpoint."},lang:{type:"string",values:["en","de","fr","it"],value:"en",description:"This property allows the parent page of the chat to control the chat language. This is useful if the parent page should drive the language selection."},flyout:{type:"boolean",value:!1,description:"If set the chat will be put in a default flyout container."},"flyout-style":{type:"string",value:"width: 400px; height: 600px;",description:"This is the style attribute of the flyout container. With this the flyout size and position can be customized."},"flyout-class":{type:"string",value:"custom-flyout-class",description:"This is the class attribute of the flyout container. With this the flyout size and position can be customized."},"loader-background":{type:"string",value:"linear-gradient(0deg, #1B181E 0%, #2A2440 90%)",description:"This is the background color of the loading spinner."},"loader-color":{type:"string",value:"#9C92EE",description:"This is the color of the loading spinner."},"custom-loader":{type:"string",value:w,description:"This is an example how you can provide a custom loading spinner when the chat is loading."},onclosechat:{type:"string",value:'document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));',description:"This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners."},cdn:{type:"boolean",value:!0,description:"When set, a fixed CDN URL will be used. Instead of providing the code from the backend."},CHAT_CONFIG_OVERRIDE:{type:"string",value:b,description:"This is only for demo purposes and should not be used in production. RELOAD the page to see the effects."},"show-components":{type:"boolean",value:!1,description:"Previews all the components for designing purposes."},"show-link-button":{type:"boolean",value:!1,description:"Previews the button as a link to an external page"},"hide-sidebar":{type:"boolean",value:!1,description:"Once hidden, you can display the sidebar again by removing the parameter from the URL"},"preview-background":{type:"string",value:"",description:"Enter an image URL (.png, .jpg, .webp) for a static background"}},k=async()=>{const t=await y();let i=C;return i["api-org"].values=Object.keys(t),{optionsDefinition:i,apiUrls:t}},O=!1,x=!0,E=(t,i)=>{const e=structuredClone(t);return Object.entries(t).forEach(([n,o])=>{const a=i.get(n);o.type==="boolean"&&(e[n].required=!0),a!==null?(o.type==="boolean"&&(e[n].value=a!=="false"),o.type==="string"&&(e[n].value=String(a))):o.required?e[n].value=t[n].value:e[n].value=void 0}),e},I=async({url:t})=>{const{optionsDefinition:i,apiUrls:e}=await k(),n=E(i,t.searchParams);if(n["api-org"].value){const o=e[n["api-org"].value];n["api-url"].value=n["prod-api"].value?o.prod:o.dev}return{optionsDefinition:i,options:n}},L=Object.freeze(Object.defineProperty({__proto__:null,load:I,prerender:x,ssr:O},Symbol.toStringTag,{value:"Module"}));function R(t,i){l(i,!0);let e=g(i,"children",7);var n=c(),o=u(n);return p(o,e),d(t,n),h({get children(){return e()},set children(a){e(a),f()}})}r(R,{children:{}},[],[],!0);export{R as component,L as universal};
155
+ `,k={"api-org":{type:"string",values:[],value:"liipgpt",description:"Select the organization to to get the API URL"},"prod-api":{type:"boolean",value:!1,description:"Select to use the production API URL"},"api-url":{type:"string",required:!0,value:l,description:"URL of the API endpoint."},lang:{type:"string",values:["en","de","fr","it"],value:"en",description:"This property allows the parent page of the chat to control the chat language. This is useful if the parent page should drive the language selection."},flyout:{type:"boolean",value:!1,description:"If set the chat will be put in a default flyout container."},"flyout-style":{type:"string",value:"width: 400px; height: 600px;",description:"This is the style attribute of the flyout container. With this the flyout size and position can be customized."},"flyout-class":{type:"string",value:"custom-flyout-class",description:"This is the class attribute of the flyout container. With this the flyout size and position can be customized."},"loader-background":{type:"string",value:"linear-gradient(0deg, #1B181E 0%, #2A2440 90%)",description:"This is the background color of the loading spinner."},"loader-color":{type:"string",value:"#9C92EE",description:"This is the color of the loading spinner."},"custom-loader":{type:"string",value:O,description:"This is an example how you can provide a custom loading spinner when the chat is loading."},onclosechat:{type:"string",value:'document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));',description:"This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners."},cdn:{type:"boolean",value:!0,description:"When set, a fixed CDN URL will be used. Instead of providing the code from the backend."},CHAT_CONFIG_OVERRIDE:{type:"string",value:C,description:"This is only for demo purposes and should not be used in production. RELOAD the page to see the effects."},"show-components":{type:"boolean",value:!1,description:"Previews all the components for designing purposes."},"show-link-button":{type:"boolean",value:!1,description:"Previews the button as a link to an external page"},"hide-sidebar":{type:"boolean",value:!1,description:"Once hidden, you can display the sidebar again by removing the parameter from the URL"},"preview-background":{type:"string",value:"",description:"Enter an image URL (.png, .jpg, .webp) for a static background"}},x=async()=>{const t=await w();let i=k;return i["api-org"].values=Object.keys(t),{optionsDefinition:i,apiUrls:t}},E=!1,I=!0,R=(t,i)=>{const e=structuredClone(t);return Object.entries(t).forEach(([n,o])=>{const a=i.get(n);o.type==="boolean"&&(e[n].required=!0),a!==null?(o.type==="boolean"&&(e[n].value=a!=="false"),o.type==="string"&&(e[n].value=String(a))):o.required?e[n].value=t[n].value:e[n].value=void 0}),e};let s;const T=async({url:t})=>{const{optionsDefinition:i,apiUrls:e}=await x(),n=R(i,t.searchParams);if(n["api-org"].value&&(!s||s["api-org"].value!==n["api-org"].value||s["prod-api"].value!==n["prod-api"].value)){const o=e[n["api-org"].value];n["api-url"].value=n["prod-api"].value?o.prod:o.dev}return s=n,{optionsDefinition:i,options:n}},U=Object.freeze(Object.defineProperty({__proto__:null,load:T,prerender:I,ssr:E},Symbol.toStringTag,{value:"Module"}));function P(t,i){u(i,!0);let e=m(i,"children",7);var n={get children(){return e()},set children(r){e(r),v()}},o=d(),a=h(o);return c(a,e),f(t,o),g(n)}p(P,{children:{}},[],[],{mode:"open"});export{P as component,U as universal};
@@ -0,0 +1 @@
1
+ import"../chunks/DsnmJJEf.js";import{p as r}from"../chunks/DDdNR6B9.js";import{c,p as h,f as l,t as _,a as u,b as v,d,s as g,e as s,r as o,g as p}from"../chunks/CfJtR48A.js";import{i as x}from"../chunks/CR5-hwU3.js";var b=d("<h1> </h1> <p> </p>",1);function E(m,i){h(i,!1),x();var a=b(),t=l(a),f=s(t,!0);o(t);var e=g(t,2),n=s(e,!0);o(e),_(()=>{p(f,r.status),p(n,r.error?.message)}),u(m,a),v()}c(E,{},[],[],{mode:"open"});export{E as component};
@@ -0,0 +1,31 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BXvq-tJR.js","../chunks/DsnmJJEf.js","../chunks/CfJtR48A.js","../chunks/hrZ0qwUL.js","../chunks/DoVxcdSh.js","../chunks/6gGOJNBB.js","../chunks/Bg7q39r6.js","../chunks/NTlCU5wx.js","../chunks/DP18hDNz.js","../chunks/BXCiGO5D.js","../chunks/DDdNR6B9.js","../chunks/CR5-hwU3.js","../chunks/DZ0jooU7.js","../chunks/BR4Ri1mV.js","../chunks/B9KqQVWK.js"])))=>i.map(i=>d[i]);
2
+ import{i as f,_ as Dt,b as Ft}from"../chunks/Bg7q39r6.js";import"../chunks/DsnmJJEf.js";import{c as ie,p as Re,s as e,t as H,a as r,b as Je,d as p,e as a,m as ue,r as t,g as Ge,E as z,u as ae,j as ha,z as G,f as T,k as i,at as ba,o as C,av as Fe,ag as Mt,aw as At,C as Ht,A as wa,D as Gt}from"../chunks/CfJtR48A.js";import{a as me,s as A,m as $t,n as fa,h as Ut,k as m,o as _a,e as ee,i as te,I as ve,p as ya,C as Ot,t as xa,q as ka,S as o,r as qa,P as Me,R as Ae,u as He,N as Sa,v as Ia,w as La,x as za,c as Ta,y as Ca,M as ja,A as Ba,b as Oe,z as Pa,D as Rt,E as Jt,F as Ea,G as Da}from"../chunks/NTlCU5wx.js";import{p as pe,s as Fa,r as Ma}from"../chunks/hrZ0qwUL.js";import{g as Aa}from"../chunks/BXCiGO5D.js";import{p as Ha}from"../chunks/DDdNR6B9.js";var Ga=p('<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>');const Oa={hash:"svelte-1inuijp",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-1inuijp {opacity:1;}}.swatch__color.svelte-1inuijp {aspect-ratio:1;width:100%;}.swatch__label.svelte-1inuijp {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
3
+
4
+ @media (min-width: 768px) {display:block;
5
+ }}`};function ge(w,v){Re(v,!1),me(w,Oa);let q=pe(v,"name",12),s=pe(v,"key",12),P=pe(v,"value",12);var Z={get name(){return q()},set name(h){q(h),ue()},get key(){return s()},set key(h){s(h),ue()},get value(){return P()},set value(h){P(h),ue()}},S=Ga(),O=a(S),R=e(O,2),V=a(R,!0);return t(R),t(S),H(()=>{A(S,"title",`Color ${s()}: ${P()}`),$t(O,`background-color: var(--color-${q()??""}-${s()??""});`),Ge(V,s())}),r(w,S),Je(Z)}ie(ge,{name:{},key:{},value:{}},[],[],{mode:"open"});var Ra=p('<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 Nt(w){var v=Ra();r(w,v)}ie(Nt,{},[],[],{mode:"open"});var Ja=p(`<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-4x0tmq">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
6
+ lacus.</p> <p class="text-xs svelte-4x0tmq">Text-xs: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
7
+ lacus.</p> <h2>Title h2</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
8
+ enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <h3>Title h3</h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
9
+ enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <h4>Title h4</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
10
+ enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <ul><li>Unordered List 1</li> <li>Unordered List 2</li> <li>Unordered List 3</li></ul> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
11
+ enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet sed sed enim in elit vulputate
12
+ finibus.</p> <table><tbody><tr><th>Name</th><th>Role</th><th>Location</th></tr><tr><td>Sarah Hilse</td><td>Software Developer</td><td>Zürich</td></tr><tr><td>Sarah Perrollaz</td><td>User Experience Designer</td><td>Bern</td></tr><tr><td>Sarah Bähler</td><td>User Experience Designer</td><td>Fribourg</td></tr></tbody></table> <ol><li>Ordered List 1</li> <li>Ordered List 2</li> <li>Ordered List 3</li></ol> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
13
+ enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet <a href="https://www.google.com">Check it on google</a> sed sed enim in elit vulputate finibus.</p>`,1);const $a={hash:"svelte-4x0tmq",code:".text-sm.svelte-4x0tmq {font-size:var(--base-font-size-sm);}.text-xs.svelte-4x0tmq {font-size:var(--base-font-size-xs);}"};function Zt(w){me(w,$a);var v=Ja();z(30),r(w,v)}ie(Zt,{},[],[],{mode:"open"});const Ua=[{type:"user",time:"2025-01-22T08:03:11.044Z",message:"Ok, let's inspect this dummy discussion"},{state:"done",errors:[],type:"bot",time:"2025-03-31T15:37:53.914Z",message:{markdown:`Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind.
14
+
15
+ Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über **End-to-End-Tests mit Jest und Puppeteer** von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert[^4].
16
+
17
+ Zusätzlich gibt es auch Inhalte über **Debugging von E-Mails auf einem Staging-Server**, die einfache Lösungen für Testumgebungen bieten[^3].
18
+
19
+ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen!
20
+
21
+ `,html:`<p>Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind. </p>
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="{&quot;url&quot;:&quot;https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks&quot;,&quot;considered&quot;:true,&quot;referencesIndex&quot;:{&quot;all&quot;:3,&quot;used&quot;:1},&quot;display&quot;:{&quot;card&quot;:{&quot;title&quot;:&quot;How to test your Gutenberg blocks with Jest and Puppeteer · Blog&quot;,&quot;description&quot;:&quot;This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.&quot;,&quot;badge&quot;:&quot;https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks&quot;},&quot;listItem&quot;:{&quot;title&quot;:&quot;How to test your Gutenberg blocks with Jest and Puppeteer · Blog&quot;,&quot;badge&quot;:&quot;www.liip.ch&quot;}}}" data-used-index="1" data-all-index="3"></liipgpt-reference-number>. </p>
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="{&quot;url&quot;:&quot;https://www.liip.ch/en/blog/debugging-email-on-staging-server&quot;,&quot;considered&quot;:true,&quot;referencesIndex&quot;:{&quot;all&quot;:2,&quot;used&quot;:2},&quot;display&quot;:{&quot;card&quot;:{&quot;title&quot;:&quot;Debugging Email on Staging Server · Blog&quot;,&quot;description&quot;:&quot;To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.&quot;,&quot;badge&quot;:&quot;https://www.liip.ch/en/blog/debugging-email-on-staging-server&quot;},&quot;listItem&quot;:{&quot;title&quot;:&quot;Debugging Email on Staging Server · Blog&quot;,&quot;badge&quot;:&quot;www.liip.ch&quot;}}}" data-used-index="2" data-all-index="2"></liipgpt-reference-number>. </p>
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",id:"f47ac10b-58cc-4372-a567-0e02b2c3d479",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",id:"a3b8f2c1-7d4e-4a9f-b6c2-8e1d5f3a2b7c",componentName:"buttons",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 Na=p('<link rel="stylesheet"/>'),Za=p("<!> <!> <!> <!> <!>",1),Qa=p('<div class="context-menu svelte-1vjvg2x"><!></div>'),Wa=p('<div class="chat-app__loader-container">Loading...</div>'),Va=p('<div class="dialog-content svelte-1vjvg2x"><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>'),Ya=p("<p>No popup at index 1 defined.</p>"),Ka=p('<div class="container text-container" style="padding-bottom: 200px;"><hr/> <h2>Popups</h2> <!></div>'),Xa=p(`<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-1vjvg2x"><!></div> <h3 class="h4">Highlight Colors (optional)</h3> <div class="color-swatches svelte-1vjvg2x"><!></div> <h3 class="h4">Grey Colors</h3> <div class="color-swatches svelte-1vjvg2x"><!></div></div> <div class="container text-container"><hr/> <h1>Abstractions</h1> <p>The following elements are not components, but abstractions only. Their properties are defined in the configuration
26
+ files and are applied to the components that need them.</p> <div class="card transition-colors svelte-1vjvg2x">Card</div></div> <div class="container text-container" style="padding-top: 100px;"><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-1vjvg2x"><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
+ 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-1vjvg2x"><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-1vjvg2x"><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" style="padding-bottom: var(--spacer-r-40)"><hr/> <h2>Notifications</h2> <!></div> <div class="container text-container"><hr/> <h2>Chat</h2></div> <div class="chat-page__messages svelte-1vjvg2x"></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; padding-bottom: var(--spacer-r-40)"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div></div> <!>`,3),ei=p('<main class="chat-app svelte-1vjvg2x"><!> <div class="chat-app__container"><div class="chat-app__main svelte-1vjvg2x"><div class="chat-app__portals"></div> <!></div></div> <div></div></main>');const ti={hash:"svelte-1vjvg2x",code:'.color-swatches.svelte-1vjvg2x {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-1vjvg2x {display:block;flex-grow:1;&::after {z-index:-1;position:fixed;top:0;left:0;width:100%;height:100%;background:var(--body-background);content:"";}}.chat-page__messages.svelte-1vjvg2x {min-height:auto;padding-bottom:200px;}.context-menu.svelte-1vjvg2x {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__main.svelte-1vjvg2x {overflow:visible;overscroll-behavior:auto;background:transparent;touch-action:auto;}.card.svelte-1vjvg2x {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-1vjvg2x {position:relative;top:0;left:0;transform:none;}.references__container.svelte-1vjvg2x {background-color:var(--aside-background);}.context-box__content.svelte-1vjvg2x {position:relative;}'};function Qt(w,v){Re(v,!0),me(w,ti);let q=pe(v,"data",7),s=C(()=>m.t);ae(()=>{const d={lang:q().options.lang.value,forceTheme:q().options?.["force-theme"]?.value,apiUrl:q().options["api-url"].value,features:""};ha(()=>fa.init(d).catch(n=>{console.error("Failed to init chat logic",n)}))});const P=Ua;var Z={get data(){return q()},set data(d){q(d),ue()}},S=ei();Ut("1vjvg2x",d=>{var n=G(),l=T(n);{var _=I=>{var E=Za(),u=T(E);ee(u,17,()=>m.themeBase.fontURLs??[],te,(D,F)=>{var M=Na();H(()=>A(M,"href",i(F))),r(D,M)});var y=e(u,2);ve(y,{id:"font-css",get css(){return m.themeBase.fontCSS}});var j=e(y,2);{let D=C(()=>Ta(m.theme));ve(j,{id:"theme-css",get css(){return i(D)}})}var x=e(j,2);ve(x,{id:"app-css",get css(){return ya}});var K=e(x,2);ve(K,{id:"custom-css",get css(){return m.themeBase.customCSS}}),r(I,E)};f(l,I=>{m.initialized&&I(_)})}r(d,n)});let O;var R=a(S);{var V=d=>{var n=Qa(),l=a(n);Ot(l,{}),t(n),r(d,n)};f(R,d=>{m.initialized&&d(V)})}var h=e(R,2),J=a(h),Y=a(J);_a(Y,(d,n)=>Ca?.(d,n),()=>"portals");var ne=e(Y,2);{var Q=d=>{var n=Wa();xa(2,n,()=>ka,()=>({duration:200,delay:300})),r(d,n)},se=d=>{var n=Xa(),l=T(n),_=e(a(l),8),I=a(_);{var E=c=>{var b=G(),$=T(b);ee($,17,()=>Object.entries(m.theme.colors.brand),te,(U,N)=>{var g=C(()=>Fe(i(N),2));let L=()=>i(g)[0],B=()=>i(g)[1];ge(U,{name:"brand",get key(){return L()},get value(){return B()}})}),r(c,b)};f(I,c=>{m.theme.colors?.brand&&c(E)})}t(_);var u=e(_,4),y=a(u);{var j=c=>{var b=G(),$=T(b);ee($,17,()=>Object.entries(m.theme.colors.highlight),te,(U,N)=>{var g=C(()=>Fe(i(N),2));let L=()=>i(g)[0],B=()=>i(g)[1];ge(U,{name:"highlight",get key(){return L()},get value(){return B()}})}),r(c,b)};f(y,c=>{m.theme?.colors?.highlight&&c(j)})}t(u);var x=e(u,4),K=a(x);{var D=c=>{var b=G(),$=T(b);ee($,17,()=>Object.entries(m.theme.colors.grey),te,(U,N)=>{var g=C(()=>Fe(i(N),2));let L=()=>i(g)[0],B=()=>i(g)[1];ge(U,{name:"grey",get key(){return L()},get value(){return B()}})}),r(c,b)};f(K,c=>{m.theme?.colors?.grey&&c(D)})}t(x),t(l);var F=e(l,4),M=e(a(F),8),k=a(M);o(k,{name:"avatar",class:"introduction__avatar"});var oe=e(k,2);o(oe,{name:"avatar",class:"message__bot-avatar"}),t(M);var re=e(M,4);qa(re,{onSubmit:()=>{},avoidFocusOnMount:!0});var X=e(re,2),le=a(X);Me(le,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{},index:0});var W=e(le,2);Me(W,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{},index:1});var de=e(W,2);Me(de,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{},index:2}),t(X);var be=e(X,4),$e=a(be),Ue=a($e);Ae(Ue,{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 Ne=e(Ue,2);Ae(Ne,{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 Wt=e(Ne,2);Ae(Wt,{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($e),t(be);var we=e(be,2),Ze=a(we),fe=e(a(Ze));He(fe,"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"}}})),He(fe,"data-used-index","1"),He(fe,"data-all-index","3"),z(),t(Ze),t(we);var _e=e(we,2),Qe=a(_e),We=a(Qe),Vt=e(a(We),2);o(Vt,{name:"externalLink",class:"reference__icon transition-colors"}),t(We),z(4),t(Qe),t(_e);var ye=e(_e,4),Ve=a(ye),Ye=a(Ve);Sa(Ye,{});var Ke=e(Ye,2);Ot(Ke,{});var Xe=e(Ke,2);{let c=C(()=>i(s).aboutThisChat||"");Ia(Xe,{get content(){return i(c)}})}var Yt=e(Xe,2);La(Yt,{onclick:()=>{}}),t(Ve),t(ye);var xe=e(ye,4),ke=a(xe),et=a(ke),Kt=a(et);o(Kt,{name:"externalLink"}),z(2),t(et),t(ke);var qe=e(ke,4),tt=e(a(qe),2),Se=a(tt),Xt=a(Se);o(Xt,{name:"internalLink"}),z(2),t(Se);var Ie=e(Se,2),ea=a(Ie);o(ea,{name:"internalLink"}),z(2),t(Ie);var Le=e(Ie,2),ta=a(Le);o(ta,{name:"internalLink"}),z(2),t(Le);var at=e(Le,2),aa=a(at);o(aa,{name:"internalLink"}),z(2),t(at),t(tt),t(qe);var it=e(qe,4),nt=a(it),ze=a(nt),ia=a(ze);o(ia,{name:"lightMode"}),z(2),t(ze);var st=e(ze,4),na=a(st);o(na,{name:"darkMode"}),z(2),t(st),t(nt),t(it),t(xe);var ot=e(xe,4),rt=e(a(ot),2),ce=a(rt),lt=a(ce);za(lt,{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 Te=e(lt,2),Ce=a(Te),sa=a(Ce,!0);t(Ce);var oa=e(Ce,2);t(Te);var dt=e(Te,2),je=a(dt),ra=a(je,!0);t(je);var la=e(je,2);t(dt),t(ce),t(rt),t(ot),z(4),t(F);var Be=e(F,2),da=e(a(Be),4);Nt(da),t(Be);var Pe=e(Be,4);ee(Pe,21,()=>P,te,(c,b)=>{ja(c,{get message(){return i(b)},onmessageupdate:()=>{},onbotmessageinit:()=>{},onaskQuestion:()=>{}})}),t(Pe);var Ee=e(Pe,2),ct=e(a(Ee),4);Zt(ct);var vt=e(ct,6),ut=a(vt);o(ut,{name:"predefinedQuestion"});var pt=e(ut,2);o(pt,{name:"edit"});var gt=e(pt,2);o(gt,{name:"newConversation"});var mt=e(gt,2);o(mt,{name:"voteUp"});var ht=e(mt,2);o(ht,{name:"voteDown"});var bt=e(ht,2);o(bt,{name:"retry"});var wt=e(bt,2);o(wt,{name:"message"});var ft=e(wt,2);o(ft,{name:"thread"});var _t=e(ft,2);o(_t,{name:"submit"});var yt=e(_t,2);o(yt,{name:"expand"});var xt=e(yt,2);o(xt,{name:"help"});var kt=e(xt,2);o(kt,{name:"attach"});var qt=e(kt,2);o(qt,{name:"record"});var St=e(qt,2);o(St,{name:"reward"});var It=e(St,2);o(It,{name:"share"});var Lt=e(It,2);o(Lt,{name:"audio"});var zt=e(Lt,2);o(zt,{name:"copy"});var Tt=e(zt,2);o(Tt,{name:"dismiss"});var Ct=e(Tt,2);o(Ct,{name:"menu"});var jt=e(Ct,2);o(jt,{name:"listUnordered"});var Bt=e(jt,2);o(Bt,{name:"lightMode"});var ca=e(Bt,2);o(ca,{name:"darkMode"}),t(vt),t(Ee);var va=e(Ee,2);{var ua=c=>{var b=Ka(),$=e(a(b),4);{var U=g=>{var L=Va(),B=a(L),De=a(B),pa=a(De);Oe(pa,()=>i(s).popups[1].title),t(De);var Pt=e(De,2),ga=e(a(Pt),2);o(ga,{name:"dismiss"}),t(Pt),t(B);var Et=e(B,2),ma=a(Et);Oe(ma,()=>i(s).popups[1].content),t(Et),t(L),r(g,L)},N=g=>{var L=Ya();r(g,L)};f($,g=>{i(s).popups?.[1]?g(U):g(N,!1)})}t(b),r(c,b)};f(va,c=>{i(s).popups&&i(s).popups?.length>0&&c(ua)})}H(()=>{A(ce,"aria-label",i(s).feedbackFormTitle),Ge(sa,i(s).feedbackFormMessage),A(oa,"placeholder",i(s).feedbackFormMessagePlaceholder),Ge(ra,i(s).feedbackFormEmail),A(la,"placeholder",i(s).feedbackFormEmailPlaceholder)}),ba("submit",ce,async()=>{}),r(d,n)};f(ne,d=>{m.initialized?d(se,!1):d(Q)})}t(J),t(h);var he=e(h,2);return t(S),H(()=>{O=$t(S,"",O,{"color-scheme":m.colorScheme}),A(he,"id",Ba)}),r(w,S),Je(Z)}ie(Qt,{data:{}},[],[],{mode:"open"});var ai=p('<iframe title="sidebar" id="sidebar" class="svelte-1uha8ag"></iframe>'),ii=p('<img class="preview-bg-image svelte-1uha8ag" alt="Preview background"/>'),ni=p('<div id="chat-wrapper"><!> <div></div> <!> <div></div></div>'),si=p('<div id="preview"><!> <!></div>');const oi={hash:"svelte-1uha8ag",code:`html,
28
+ body {width:100%;height:100%;margin:0;padding:0;}#sidebar.svelte-1uha8ag {flex-shrink:0;width:378px;height:100%;border:none;}#preview.svelte-1uha8ag {display:flex;align-items:flex-start;justify-content:flex-start;width:100%;height:100%;&.components-preview,
29
+ &:has(.has-bg-image:where(.svelte-1uha8ag)) {height:auto;& #sidebar:where(.svelte-1uha8ag) {position:sticky;top:0;height:100vh;}}}#chat-wrapper.svelte-1uha8ag {container-name:preview-container;
30
+ /* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}#chat-wrapper.svelte-1uha8ag liipgpt-chat {display:block;width:100%;height:100%;}#chat-wrapper.has-bg-image.svelte-1uha8ag {
31
+ /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;}`};function ri(w,v){Re(v,!0),me(w,oi);let q=Ma(v,["$$slots","$$events","$$legacy","$$host"]),s=C(()=>v.data);ae(()=>{window.onmessage=function(n){if(typeof n.data=="string"&&n.data.startsWith("liipgpt-url:")){const l=new URLSearchParams(n.data.replace("liipgpt-url:",""));Aa("?"+l.toString(),{replaceState:!0})}}});const P=n=>`/build/${n}/liipgpt-${n}.iife.js`,Z=n=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(n),S=async n=>{n==="build"&&(await import(P("chat")),await import(P("button"))),n==="dev"&&(await Dt(()=>import("../chunks/BXvq-tJR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),await Dt(()=>import("../chunks/B9KqQVWK.js"),__vite__mapDeps([14,1,2,3,13,8,6,7,5,9,12]),import.meta.url)),n==="server"&&(import(Rt(v.data.options,"chat")),import(Rt(v.data.options,"button")))};let O="server",R=C(()=>v.data.options?.["preview-mode"]?.value??O);ae(()=>{S(i(R))});const V=`./sidebar${Ha.url.search}`;let h=Ht(void 0),J=Ht(void 0);const Y=(n,l)=>{const _=document.createElement("script"),I=document.createTextNode(`{${l}}`);_.appendChild(I),n.replaceChildren(_)};ae(()=>{i(h)&&Y(i(h),i(s).options.CHAT_CONFIG_OVERRIDE.value||"")}),ae(()=>{i(J)&&Y(i(J),i(s).options.onclosechat.value||"")});const ne=C(()=>i(s)&&i(s).options["show-components"].value);var Q=si();Ut("1uha8ag",n=>{var l=G(),_=T(l);{var I=u=>{Mt(()=>{At.title="LiipGPT Configurator | Components"})},E=u=>{Mt(()=>{At.title="LiipGPT Configurator"})};f(_,u=>{i(s).options["show-components"].value?u(I,1):u(E,!1)})}r(n,l)});var se=a(Q);{var he=n=>{var l=ai();H(()=>A(l,"src",V)),r(n,l)};f(se,n=>{i(s).options["hide-sidebar"].value||n(he)})}var d=e(se,2);Pa(d,()=>i(s),n=>{var l=G(),_=T(l);{var I=u=>{var y=G(),j=T(y);wa(j,{onerror:x=>console.error("Rendering error of components",x)},x=>{Qt(x,Fa(()=>q))}),r(u,y)},E=u=>{var y=ni();let j;var x=a(y);{var K=k=>{var oe=G(),re=T(oe);{var X=W=>{var de=ii();H(()=>A(de,"src",i(s).options["preview-background"].value)),r(W,de)},le=C(()=>Z(i(s).options["preview-background"].value));f(re,W=>{i(le)&&W(X)})}r(k,oe)};f(x,k=>{i(s).options.flyout.value&&i(s).options["preview-background"].value&&k(K)})}var D=e(x,2);Ft(D,k=>Gt(h,k),()=>i(h));var F=e(D,2);Oe(F,()=>Ea(i(s).options));var M=e(F,2);Ft(M,k=>Gt(J,k),()=>i(J)),t(y),H(k=>j=Jt(y,1,"svelte-1uha8ag",null,j,k),[()=>({"has-bg-image":i(s).options.flyout.value&&i(s).options["preview-background"].value&&Z(i(s).options["preview-background"].value)})]),r(u,y)};f(_,u=>{i(ne)?u(I):u(E,!1)})}r(n,l)}),t(Q),H(()=>Jt(Q,1,Da([{"components-preview":i(ne)}]),"svelte-1uha8ag")),r(w,Q),Je()}ie(ri,{},[],[],{mode:"open"});export{ri as component};