@liip/liipgpt 3.7.2 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/button/liipgpt-button.iife.js +5 -5
  2. package/chat/liipgpt-chat.iife.js +21 -21
  3. package/configurator/_app/env.js +1 -1
  4. package/configurator/_app/immutable/chunks/-qY1__IK.js +2 -0
  5. package/configurator/_app/immutable/chunks/B08O5lEA.js +1 -0
  6. package/configurator/_app/immutable/chunks/BDm2oSnh.js +1 -0
  7. package/configurator/_app/immutable/chunks/BUUeJ3PL.js +1 -0
  8. package/configurator/_app/immutable/chunks/{avE7hvHO.js → BaBjK23B.js} +8 -8
  9. package/configurator/_app/immutable/chunks/{CDcDq_nT.js → C27tVb5g.js} +1 -1
  10. package/configurator/_app/immutable/chunks/{DQAAUn6o.js → CAaK3aFg.js} +2 -2
  11. package/configurator/_app/immutable/chunks/{Dmocya4I.js → CEu7mztv.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{C0FfTxd-.js → CIPNu9Fk.js} +1 -1
  13. package/configurator/_app/immutable/chunks/{Dd3J6rMu.js → Cn5qx8al.js} +1 -1
  14. package/configurator/_app/immutable/chunks/De77gmQ_.js +61 -0
  15. package/configurator/_app/immutable/chunks/DhVTVaBo.js +1 -0
  16. package/configurator/_app/immutable/chunks/{6Ewy7c9P.js → DwRGsUyQ.js} +2 -2
  17. package/configurator/_app/immutable/chunks/{BW_ztSPa.js → Shyv85t-.js} +1 -1
  18. package/configurator/_app/immutable/chunks/{YzbOslOR.js → aHwC0Rur.js} +1 -1
  19. package/configurator/_app/immutable/chunks/lPpx1Xpm.js +1 -0
  20. package/configurator/_app/immutable/entry/{app.B8izU9R5.js → app.JJhipW03.js} +2 -2
  21. package/configurator/_app/immutable/entry/start.B7bIbuwB.js +1 -0
  22. package/configurator/_app/immutable/nodes/{0.Bwh23jyQ.js → 0.W5jK_-Qc.js} +3 -3
  23. package/configurator/_app/immutable/nodes/{1.DrhvSqxT.js → 1.CMVOiYFy.js} +1 -1
  24. package/configurator/_app/immutable/nodes/{2.BqWwJ31T.js → 2.BBOc1se8.js} +7 -7
  25. package/configurator/_app/immutable/nodes/{3.Cw8xxIEf.js → 3.CtA9ME8X.js} +2 -2
  26. package/configurator/_app/version.json +1 -1
  27. package/configurator/index.html +6 -6
  28. package/configurator/sidebar.html +6 -6
  29. package/index.cjs +2 -0
  30. package/index.d.ts +4 -0
  31. package/index.js +2 -0
  32. package/package.json +1 -1
  33. package/search-summary/liipgpt-search-summary.iife.js +10 -10
  34. package/configurator/_app/immutable/chunks/Bb3IJ5WU.js +0 -1
  35. package/configurator/_app/immutable/chunks/C63PhGMI.js +0 -2
  36. package/configurator/_app/immutable/chunks/CV9yj59d.js +0 -61
  37. package/configurator/_app/immutable/chunks/D1EjYV4X.js +0 -1
  38. package/configurator/_app/immutable/chunks/D6xJ2-qj.js +0 -1
  39. package/configurator/_app/immutable/chunks/DRgXMAej.js +0 -1
  40. package/configurator/_app/immutable/chunks/DyMgZ9Xo.js +0 -1
  41. package/configurator/_app/immutable/entry/start.D9PbhF5f.js +0 -1
@@ -1,4 +1,4 @@
1
- import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/rEsbAd0y.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/C0FfTxd-.js";import{l as d,n as f,o as p,t as m}from"../chunks/avE7hvHO.js";import"../chunks/CZzAbm1q.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";var h=async e=>await(await e(`https://liipgpt.dev.cluster.liipgpt.ch/configurator/api/all-org-names`)).json(),g=[`baselcitygpt`],_=async e=>{let t=await h(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>g.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.dev.cluster.liipgpt.ch/${e}`,prod:`https://${e}.prod.cluster.liipgpt.ch/${e}`}]);return Object.fromEntries(n)},v=`/**
1
+ import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/rEsbAd0y.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CIPNu9Fk.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/BaBjK23B.js";import"../chunks/CZzAbm1q.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";var g=async e=>await(await e(`https://liipgpt.dev.cluster.liipgpt.ch/configurator/api/all-org-names`)).json(),_=[`baselcitygpt`],v=async e=>{let t=await g(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>_.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.dev.cluster.liipgpt.ch/${e}`,prod:`https://${e}.prod.cluster.liipgpt.ch/${e}`}]);return Object.fromEntries(n)},y=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -190,7 +190,7 @@ const CHAT_CONFIG_OVERRIDE = {
190
190
  };
191
191
 
192
192
  window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
193
- `,y=`<div
193
+ `,b=`<div
194
194
  style="
195
195
  display: flex;
196
196
  flex-direction: column;
@@ -228,4 +228,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
228
228
  </g>
229
229
  </svg>
230
230
  </div>
231
- `,b={"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:d,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"hide-predefined-questions":{type:`boolean`,value:!1,description:`When set, the widget skips loading predefined questions so the start-page shows logo + welcome + input only (no question buttons). Per-instance only (no backend config equivalent); leaves autofire on other embeds untouched.`},"additional-start-parameters":{type:`string`,value:`{"availableTopicIds":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"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.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"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:y,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.`},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:v,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:f,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"max-height":{type:`string`,value:``,description:`Optional cap on the widget's total height. No cap unless set. Use a pixel number (e.g. 560) or any CSS height value (e.g. 70svh). When the expanded answer is taller than this, the content scrolls instead of growing.`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`},"chat-url":{type:`string`,value:`?embed-tab=chat`,description:`Relative URL of the full chat page (same-origin only — absolute or protocol-relative URLs are ignored). When set, shows a follow-up question input after the answer streams; submitting appends ?follow-up-q=<question>#cID=<conversation-id> to it and redirects. Defaults to this configurator's own chat tab for easy testing. Clear to disable the follow-up input.`}},x=async e=>{let t=await _(e),n=b;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},S=e({load:()=>E,prerender:()=>!0,ssr:()=>!1}),C=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},w,T=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},E=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await x(t),i=C(n,T(e.searchParams)),a=!!(w&&w[`api-org`].value!==i[`api-org`].value),o=!!(w&&w[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!w||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return w=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function D(e,s){a(s,!0);let u=c(s,`children`,7);var d={get children(){return u()},set children(e){u(e),i()}},f=o();return n(l(f),u),t(e,f),r(d)}s(D,{children:{}},[],[],{mode:`open`});export{D as component,S as universal};
231
+ `,x={"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:h,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"hide-predefined-questions":{type:`boolean`,value:!1,description:`When set, the widget skips loading predefined questions so the start-page shows logo + welcome + input only (no question buttons). Per-instance only (no backend config equivalent); leaves autofire on other embeds untouched.`},"additional-start-parameters":{type:`string`,value:`{"availableTopicIds":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"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.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"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:b,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.`},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:y,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},cache:{type:`boolean`,value:!0,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical questions, so tweaking options here does not regenerate an answer every time. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"chat-cache":{type:`boolean`,value:!1,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical first questions, so you do not wait for a fresh answer on every reload. Only the first question of a conversation is cached. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"search-summary-question":{type:`string`,required:!0,value:f,description:"The question the search summary answers. In a real integration this is the visitor's search term, so the embed code uses a placeholder. The URL `q` param overrides this for quick testing."},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:d,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"max-height":{type:`string`,value:``,description:`Optional cap on the widget's total height. No cap unless set. Use a pixel number (e.g. 560) or any CSS height value (e.g. 70svh). When the expanded answer is taller than this, the content scrolls instead of growing.`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`},"chat-url":{type:`string`,value:`?embed-tab=chat`,description:`Relative URL of the full chat page (same-origin only — absolute or protocol-relative URLs are ignored). When set, shows a follow-up question input after the answer streams; submitting appends ?follow-up-q=<question>#cID=<conversation-id> to it and redirects. Defaults to this configurator's own chat tab for easy testing. Clear to disable the follow-up input.`}},S=async e=>{let t=await v(e),n=x;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},C=e({load:()=>D,prerender:()=>!0,ssr:()=>!1}),w=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},T,E=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},D=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await S(t),i=w(n,E(e.searchParams)),a=!!(T&&T[`api-org`].value!==i[`api-org`].value),o=!!(T&&T[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!T||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return T=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function O(e,s){a(s,!0);let u=c(s,`children`,7);var d={get children(){return u()},set children(e){u(e),i()}},f=o();return n(l(f),u),t(e,f),r(d)}s(O,{children:{}},[],[],{mode:`open`});export{O as component,C as universal};
@@ -1 +1 @@
1
- import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/rEsbAd0y.js";import"../chunks/Bb3IJ5WU.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/CPPDi2Fg.js";import{t as f}from"../chunks/BW_ztSPa.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};
1
+ import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/rEsbAd0y.js";import"../chunks/BDm2oSnh.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/CPPDi2Fg.js";import{t as f}from"../chunks/Shyv85t-.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DyMgZ9Xo.js","../chunks/DQAAUn6o.js","../chunks/DjVmpym-.js","../chunks/CV9yj59d.js","../chunks/rEsbAd0y.js","../chunks/CibALFW0.js","../chunks/DKyUMEyV.js","../chunks/D1EjYV4X.js","../chunks/D6xJ2-qj.js","../chunks/Dmocya4I.js","../chunks/CZzAbm1q.js","../chunks/CqCdl07t.js","../chunks/6Ewy7c9P.js","../chunks/Dd3J6rMu.js","../chunks/CFKVnMbq.js","../chunks/CPPDi2Fg.js","../chunks/Bo0U8J3e.js","../chunks/BiTRwaVm.js","../chunks/CDcDq_nT.js","../chunks/C63PhGMI.js","../chunks/tFLMI64R.js"])))=>i.map(i=>d[i]);
2
- import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,K as l,Lt as u,Mt as d,N as f,Rt as p,St as m,T as h,Tt as g,U as _,V as v,Wt as y,X as b,Y as x,b as S,bt as C,c as w,dt as T,ht as E,i as D,j as O,k,kt as A,lt as j,mt as M,o as N,ot as P,qt as F,rt as ee,s as I,u as L,v as R,vt as z,xt as B,z as te}from"../chunks/rEsbAd0y.js";import{t as V}from"../chunks/Bb3IJ5WU.js";import"../chunks/Bo0U8J3e.js";import{t as H}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";import{a as U,c as W,r as ne,s as re}from"../chunks/avE7hvHO.js";import"../chunks/CZzAbm1q.js";import"../chunks/Dmocya4I.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";import"../chunks/CPPDi2Fg.js";import{t as ie}from"../chunks/BW_ztSPa.js";import{t as G}from"../chunks/YzbOslOR.js";import{n as K,t as q}from"../chunks/CV9yj59d.js";import"../chunks/D1EjYV4X.js";import{n as J,r as Y}from"../chunks/D6xJ2-qj.js";import{B as ae,H as oe,U as X,V as se,W as ce,_ as le,a as ue,c as de,f as fe,i as pe,l as me,n as he,o as ge,p as _e,r as ve,s as ye,t as be}from"../chunks/DQAAUn6o.js";var Z=b(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),xe={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;
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/lPpx1Xpm.js","../chunks/CAaK3aFg.js","../chunks/DjVmpym-.js","../chunks/De77gmQ_.js","../chunks/rEsbAd0y.js","../chunks/CibALFW0.js","../chunks/DKyUMEyV.js","../chunks/B08O5lEA.js","../chunks/DhVTVaBo.js","../chunks/CEu7mztv.js","../chunks/CZzAbm1q.js","../chunks/CqCdl07t.js","../chunks/DwRGsUyQ.js","../chunks/Cn5qx8al.js","../chunks/CFKVnMbq.js","../chunks/CPPDi2Fg.js","../chunks/Bo0U8J3e.js","../chunks/BiTRwaVm.js","../chunks/C27tVb5g.js","../chunks/-qY1__IK.js","../chunks/tFLMI64R.js"])))=>i.map(i=>d[i]);
2
+ import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,K as l,Lt as u,Mt as d,N as f,Rt as p,St as m,T as h,Tt as g,U as _,V as v,Wt as y,X as b,Y as x,b as ee,bt as S,c as te,dt as C,ht as w,i as T,j as E,k as D,kt as O,lt as k,mt as A,o as j,ot as M,qt as N,rt as ne,s as P,u as F,v as I,vt as L,xt as R,z as re}from"../chunks/rEsbAd0y.js";import{t as z}from"../chunks/BDm2oSnh.js";import"../chunks/Bo0U8J3e.js";import{t as B}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";import{c as V,i as H,l as U,o as W}from"../chunks/BaBjK23B.js";import"../chunks/CZzAbm1q.js";import"../chunks/CEu7mztv.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";import"../chunks/CPPDi2Fg.js";import{t as ie}from"../chunks/Shyv85t-.js";import{t as G}from"../chunks/aHwC0Rur.js";import{n as K,t as q}from"../chunks/De77gmQ_.js";import"../chunks/B08O5lEA.js";import{n as J,r as Y}from"../chunks/DhVTVaBo.js";import{B as ae,H as oe,U as X,V as se,W as ce,_ as le,a as ue,c as de,f as fe,i as pe,l as me,n as he,o as ge,p as _e,r as ve,s as ye,t as be}from"../chunks/CAaK3aFg.js";var Z=b(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),xe={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
3
 
4
4
  @media (min-width: 768px) {display:block;
5
- }}`};function Se(t,n){p(n,!1),e(t,xe);let r=N(n,`name`,12),i=N(n,`key`,12),a=N(n,`value`,12);var s={get name(){return r()},set name(e){r(e),d()},get key(){return i()},set key(e){i(e),d()},get value(){return a()},set value(e){a(e),d()}},f=Z(),g=C(f),_=m(g,2),v=C(_,!0);return o(_),o(f),M(()=>{R(f,`title`,`Color ${i()}: ${a()}`),h(g,`background-color: var(--color-${r()??``}-${i()??``});`),l(v,i())}),c(t,f),u(s)}D(Se,{name:{},key:{},value:{}},[],[],{mode:`open`});var Ce=b(`<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 we(e){c(e,Ce())}D(we,{},[],[],{mode:`open`});var Te=b(`<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
5
+ }}`};function Se(t,n){p(n,!1),e(t,xe);let r=j(n,`name`,12),i=j(n,`key`,12),a=j(n,`value`,12);var s={get name(){return r()},set name(e){r(e),d()},get key(){return i()},set key(e){i(e),d()},get value(){return a()},set value(e){a(e),d()}},f=Z(),g=S(f),_=m(g,2),v=S(_,!0);return o(_),o(f),A(()=>{I(f,`title`,`Color ${i()}: ${a()}`),h(g,`background-color: var(--color-${r()??``}-${i()??``});`),l(v,i())}),c(t,f),u(s)}T(Se,{name:{},key:{},value:{}},[],[],{mode:`open`});var Ce=b(`<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 we(e){c(e,Ce())}T(we,{},[],[],{mode:`open`});var Te=b(`<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
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
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
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
@@ -10,7 +10,7 @@ import{A as e,At as t,B as n,D as r,Dt as i,E as a,Gt as o,H as s,J as c,K as l,
10
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
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
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),Ee={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 De(t){e(t,Ee);var n=Te();y(30),c(t,n)}D(De,{},[],[],{mode:`open`});var Oe=[{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`,noFeedback:!1,message:{markdown:`Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind.
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),Ee={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 De(t){e(t,Ee);var n=Te();y(30),c(t,n)}T(De,{},[],[],{mode:`open`});var Oe=[{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`,noFeedback:!1,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
14
 
15
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
16
 
@@ -24,8 +24,8 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
24
24
  <p>Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen! </p>
25
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:{de:`Was ist deine Lieblings<b>frucht</b>?`,en:`What is your favorite <b>fruit</b>?`,fr:`Quel est ton <b>fruit</b> préféré ?`,it:`Qual è il tuo <b>frutto</b> preferito?`},placeholder:{de:`Frucht suchen`,en:`Search a fruit`,fr:`Rechercher un fruit`,it:`Cerca un frutto`},values:[{value:`mango`,label:{de:`Mango`,en:`Mango`,fr:`Mangue`,it:`Mango`}},{value:`watermelon`,label:{de:`Wassermelone`,en:`Watermelon`,fr:`Pastèque`,it:`Anguria`}},{value:`apple`,label:{de:`Apfel`,en:`Apple`,fr:`Pomme`,it:`Mela`}},{value:`pineapple`,label:{de:`Ananas`,en:`Pineapple`,fr:`Ananas`,it:`Ananas`}},{value:`orange`,label:{de:`Orange`,en:`Orange`,fr:`Orange`,it:`Arancia`}},{value:`grape`,label:{de:`Traube`,en:`Grape`,fr:`Raisin`,it:`Uva`}},{value:`strawberry`,label:{de:`Erdbeere`,en:`Strawberry`,fr:`Fraise`,it:`Fragola`}},{value:`banana`,label:{de:`Banane`,en:`Banana`,fr:`Banane`,it:`Banana`}},{value:`kiwi`,label:{de:`Kiwi`,en:`Kiwi`,fr:`Kiwi`,it:`Kiwi`}},{value:`peach`,label:{de:`Pfirsich`,en:`Peach`,fr:`Pêche`,it:`Pesca`}},{value:`cherry`,label:{de:`Kirsche`,en:`Cherry`,fr:`Cerise`,it:`Ciliegia`}},{value:`blueberry`,label:{de:`Heidelbeere`,en:`Blueberry`,fr:`Myrtille`,it:`Mirtillo`}},{value:`raspberry`,label:{de:`Himbeere`,en:`Raspberry`,fr:`Framboise`,it:`Lampone`}},{value:`blackberry`,label:{de:`Brombeere`,en:`Blackberry`,fr:`Mûre`,it:`Mora`}},{value:`plum`,label:{de:`Pflaume`,en:`Plum`,fr:`Prune`,it:`Prugna`}},{value:`apricot`,label:{de:`Aprikose`,en:`Apricot`,fr:`Abricot`,it:`Albicocca`}},{value:`pear`,label:{de:`Birne`,en:`Pear`,fr:`Poire`,it:`Pera`}},{value:`grapefruit`,label:{de:`Grapefruit`,en:`Grapefruit`,fr:`Pamplemousse`,it:`Pompelmo`}}],removeComponentAfterValueSelection:!0,selectorKey:`fruit`}},{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`}]}}],ke=b(`<link rel="stylesheet"/>`),Ae=b(`<!> <!> <!> <!> <!>`,1),je=b(`<div class="context-menu svelte-1vjvg2x"><!></div>`),Me=b(`<div class="chat-app__loader-container">Loading...</div>`),Ne=b(`<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>`),Pe=b(`<p>No popup at index 1 defined.</p>`),Fe=b(`<div class="container text-container" style="padding-bottom: 200px;"><hr/> <h2>Popups</h2> <!></div>`),Ie=b(`<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
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>JSON-LD Cards</h2></div> <div class="container" style="max-width: 560px; display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 2rem;"><!> <!> <!></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),Le=b(`<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>`),Re={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 Q(t,r){p(r,!0),e(t,Re);let i=N(r,`data`,7),a=A(()=>J.t);E(()=>{let e={lang:i().options.lang.value,forceTheme:i().options?.[`force-theme`]?.value,apiUrl:i().options[`api-url`].value,features:``};j(()=>Y.init(e).catch(e=>{console.error(`Failed to init chat logic`,e)}))});let s=Oe;var g={get data(){return i()},set data(e){i(e),d()}},b=Le();O(`1vjvg2x`,e=>{var t=x(),r=B(t),i=e=>{var t=Ae(),r=B(t);n(r,17,()=>J.themeBase.fontURLs??[],v,(e,t)=>{var n=ke();M(()=>R(n,`href`,P(t))),c(e,n)});var i=m(r,2);K(i,{id:`font-css`,get css(){return J.themeBase.fontCSS}});var a=m(i,2);{let e=A(()=>q(J.theme));K(a,{id:`theme-css`,get css(){return P(e)}})}var o=m(a,2);K(o,{id:`app-css`,get css(){return he}}),K(m(o,2),{id:`custom-css`,get css(){return J.themeBase.customCSS}}),c(e,t)};_(r,e=>{J.initialized&&e(i)}),c(e,t)});let w;var T=C(b),D=e=>{var t=je();ge(C(t),{}),o(t),c(e,t)};_(T,e=>{J.initialized&&e(D)});var I=m(T,2),L=C(I),z=C(L);k(z,(e,t)=>ce?.(e,t),()=>`portals`);var V=m(z,2),H=e=>{var t=Me();f(2,t,()=>be,()=>({duration:200,delay:300})),c(e,t)},U=e=>{var t=Ie(),r=B(t),i=m(C(r),8),u=C(i),d=e=>{var t=x();n(B(t),17,()=>Object.entries(J.theme.colors.brand),v,(e,t)=>{var n=A(()=>F(P(t),2));let r=()=>P(n)[0],i=()=>P(n)[1];Se(e,{name:`brand`,get key(){return r()},get value(){return i()}})}),c(e,t)};_(u,e=>{J.theme.colors?.brand&&e(d)}),o(i);var f=m(i,4),p=C(f),h=e=>{var t=x();n(B(t),17,()=>Object.entries(J.theme.colors.highlight),v,(e,t)=>{var n=A(()=>F(P(t),2));let r=()=>P(n)[0],i=()=>P(n)[1];Se(e,{name:`highlight`,get key(){return r()},get value(){return i()}})}),c(e,t)};_(p,e=>{J.theme?.colors?.highlight&&e(h)}),o(f);var g=m(f,4),b=C(g),w=e=>{var t=x();n(B(t),17,()=>Object.entries(J.theme.colors.grey),v,(e,t)=>{var n=A(()=>F(P(t),2));let r=()=>P(n)[0],i=()=>P(n)[1];Se(e,{name:`grey`,get key(){return r()},get value(){return i()}})}),c(e,t)};_(b,e=>{J.theme?.colors?.grey&&e(w)}),o(g),o(r);var T=m(r,4),E=m(C(T),8),D=C(E);X(D,{name:`avatar`,class:`introduction__avatar`}),X(m(D,2),{name:`avatar`,class:`message__bot-avatar`}),o(E);var O=m(E,4);me(O,{onSubmit:()=>{},avoidFocusOnMount:!0});var k=m(O,2),j=C(k);pe(j,{predefinedQuestion:{id:`preview-1`,label:`Question one`,question:``},onSubmit:()=>{},index:0});var N=m(j,2);pe(N,{predefinedQuestion:{id:`preview-2`,label:`Question two`,question:``},onSubmit:()=>{},index:1}),pe(m(N,2),{predefinedQuestion:{id:`preview-3`,label:`Question three`,question:``},onSubmit:()=>{},index:2}),o(k);var I=m(k,4),L=C(I),z=C(L);ve(z,{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 V=m(z,2);ve(V,{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}}}),ve(m(V,2),{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}}}),o(L),o(I);var H=m(I,2),U=C(H),W=m(C(U));S(W,`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`}}})),S(W,`data-used-index`,`1`),S(W,`data-all-index`,`3`),y(),o(U),o(H);var ne=m(H,2),re=C(ne),ie=C(re);X(m(C(ie),2),{name:`externalLink`,class:`reference__icon transition-colors`}),o(ie),y(4),o(re),o(ne);var G=m(ne,4),K=C(G),q=C(K);ue(q,{});var Y=m(q,2);ge(Y,{});var ce=m(Y,2);{let e=A(()=>P(a).aboutThisChat||``);ye(ce,{get content(){return P(e)}})}fe(m(ce,2),{onclick:()=>{}}),o(K),o(G);var he=m(G,4),_e=C(he),be=C(_e);X(C(be),{name:`externalLink`}),y(2),o(be),o(_e);var Z=m(_e,4),xe=m(C(Z),2),Ce=C(xe);X(C(Ce),{name:`internalLink`}),y(2),o(Ce);var Te=m(Ce,2);X(C(Te),{name:`internalLink`}),y(2),o(Te);var Ee=m(Te,2);X(C(Ee),{name:`internalLink`}),y(2),o(Ee);var Oe=m(Ee,2);X(C(Oe),{name:`internalLink`}),y(2),o(Oe),o(xe),o(Z);var ke=m(Z,4),Ae=C(ke),je=C(Ae);X(C(je),{name:`lightMode`}),y(2),o(je);var Me=m(je,4);X(C(Me),{name:`darkMode`}),y(2),o(Me),o(Ae),o(ke),o(he);var Le=m(he,4),Re=m(C(Le),2),Q=C(Re),ze=C(Q);de(ze,{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 Be=m(ze,2),Ve=C(Be),He=C(Ve,!0);o(Ve);var Ue=m(Ve,2);o(Be);var We=m(Be,2),$=C(We),Ge=C($,!0);o($);var Ke=m($,2);o(We),o(Q),o(Re),o(Le),y(4),o(T);var qe=m(T,2);we(m(C(qe),4),{}),o(qe);var Je=m(qe,4);n(Je,21,()=>s,v,(e,t,n)=>{le(e,{get message(){return P(t)},index:n,onmessageupdate:()=>{},onbotmessageinit:()=>{},onaskQuestion:()=>{}})}),o(Je);var Ye=m(Je,4),Xe=C(Ye);ae(Xe,{data:{title:`Rathaus Basel`,description:`Description Rathaus, optional`,address:`Marktplatz 9
28
- CH-4001 Basel`,phone:`+41 61 200 20 20`,email:`rathaus@bs.ch`,coords:{lat:47.5596,lng:7.5886},zoom:15,fallbackUrl:`https://www.openstreetmap.org/?mlat=47.5596&mlon=7.5886`}});var Ze=m(Xe,2);{let e=A(()=>({title:`Open Data Day`,description:`Mock Event reference for local JSON-LD display testing.`,date:new Date(`2026-07-12T18:30:00`).toISOString(),location:`Demo location`,ctaLabel:`Zum Event`,ctaUrl:`https://opendata.swiss`}));se(Ze,{get data(){return P(e)}})}oe(m(Ze,2),{data:{title:`Online service`,description:`Mock CTA reference for local JSON-LD display testing.`,label:`Mehr erfahren`,url:`https://www.bs.ch`}}),o(Ye);var Qe=m(Ye,2),$e=m(C(Qe),4);De($e,{});var et=m($e,6),tt=C(et);X(tt,{name:`predefinedQuestion`});var nt=m(tt,2);X(nt,{name:`edit`});var rt=m(nt,2);X(rt,{name:`newConversation`});var it=m(rt,2);X(it,{name:`voteUp`});var at=m(it,2);X(at,{name:`voteDown`});var ot=m(at,2);X(ot,{name:`retry`});var st=m(ot,2);X(st,{name:`message`});var ct=m(st,2);X(ct,{name:`thread`});var lt=m(ct,2);X(lt,{name:`submit`});var ut=m(lt,2);X(ut,{name:`expand`});var dt=m(ut,2);X(dt,{name:`help`});var ft=m(dt,2);X(ft,{name:`attach`});var pt=m(ft,2);X(pt,{name:`record`});var mt=m(pt,2);X(mt,{name:`reward`});var ht=m(mt,2);X(ht,{name:`share`});var gt=m(ht,2);X(gt,{name:`audio`});var _t=m(gt,2);X(_t,{name:`copy`});var vt=m(_t,2);X(vt,{name:`dismiss`});var yt=m(vt,2);X(yt,{name:`menu`});var bt=m(yt,2);X(bt,{name:`listUnordered`});var xt=m(bt,2);X(xt,{name:`lightMode`}),X(m(xt,2),{name:`darkMode`}),o(et),o(Qe);var St=m(Qe,2),Ct=e=>{var t=Fe(),n=m(C(t),4),r=e=>{var t=Ne(),n=C(t),r=C(n);te(r,()=>P(a).popups[1].title,!0),o(r);var i=m(r,2);X(m(C(i),2),{name:`dismiss`}),o(i),o(n);var s=m(n,2);te(s,()=>P(a).popups[1].content,!0),o(s),o(t),c(e,t)},i=e=>{c(e,Pe())};_(n,e=>{P(a).popups?.[1]?e(r):e(i,-1)}),o(t),c(e,t)};_(St,e=>{P(a).popups&&P(a).popups?.length>0&&e(Ct)}),M(()=>{R(Q,`aria-label`,P(a).feedbackFormTitle),l(He,P(a).feedbackFormMessage),R(Ue,`placeholder`,P(a).feedbackFormMessagePlaceholder),l(Ge,P(a).feedbackFormEmail),R(Ke,`placeholder`,P(a).feedbackFormEmailPlaceholder)}),ee(`submit`,Q,async()=>{}),c(e,t)};_(V,e=>{J.initialized?e(U,-1):e(H)}),o(L),o(I);var W=m(I,2);return o(b),M(()=>{w=h(b,``,w,{"color-scheme":J.colorScheme}),R(W,`id`,_e)}),c(t,b),u(g)}D(Q,{data:{}},[],[],{mode:`open`});var ze=b(`<iframe title="sidebar" id="sidebar" class="svelte-1uha8ag"></iframe>`),Be=b(`<div id="preview-form" style="font-family: system-ui, sans-serif; color: #1a1a1a; line-height: 1.6; padding: 0 1.5rem 2rem;" class="svelte-1uha8ag"><div style="border-bottom: 4px solid #888; padding: 0.75rem 0;"></div> <h1 style="font-size: 1.5rem; font-weight: 400; margin: 1.5rem 0 0.5rem;">Recht &amp; Justiz</h1> <div style="display: flex; gap: 1.5rem; border-bottom: 1px solid #ddd; margin-bottom: 1.5rem;"><span style="padding: 0.5rem 0; color: #666; cursor: pointer;">Übersicht</span> <span style="padding: 0.5rem 0; border-bottom: 2px solid #1a1a1a; font-weight: 600; cursor: pointer;">Beglaubigungen</span></div> <div style="display: flex; gap: 2.5rem; align-items: flex-start;"><div style="flex: 1; min-width: 0;"><h2 style="font-size: 1.75rem; font-weight: 700; margin: 0 0 1rem;">Notarielle Beglaubigung anmelden</h2> <p style="margin: 0 0 1rem; color: #444;">Los geht's. Sie können beim Bearbeiten Ihrer Anmeldung jederzeit pausieren oder einen Schritt
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>JSON-LD Cards</h2></div> <div class="container" style="max-width: 560px; display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 2rem;"><!> <!> <!></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),Le=b(`<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>`),Re={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 Q(t,r){p(r,!0),e(t,Re);let i=j(r,`data`,7),a=O(()=>J.t);w(()=>{let e={lang:i().options.lang.value,forceTheme:i().options?.[`force-theme`]?.value,apiUrl:i().options[`api-url`].value,features:``};k(()=>Y.init(e).catch(e=>{console.error(`Failed to init chat logic`,e)}))});let s=Oe;var g={get data(){return i()},set data(e){i(e),d()}},b=Le();E(`1vjvg2x`,e=>{var t=x(),r=R(t),i=e=>{var t=Ae(),r=R(t);n(r,17,()=>J.themeBase.fontURLs??[],v,(e,t)=>{var n=ke();A(()=>I(n,`href`,M(t))),c(e,n)});var i=m(r,2);K(i,{id:`font-css`,get css(){return J.themeBase.fontCSS}});var a=m(i,2);{let e=O(()=>q(J.theme));K(a,{id:`theme-css`,get css(){return M(e)}})}var o=m(a,2);K(o,{id:`app-css`,get css(){return he}}),K(m(o,2),{id:`custom-css`,get css(){return J.themeBase.customCSS}}),c(e,t)};_(r,e=>{J.initialized&&e(i)}),c(e,t)});let te;var C=S(b),T=e=>{var t=je();ge(S(t),{}),o(t),c(e,t)};_(C,e=>{J.initialized&&e(T)});var P=m(C,2),F=S(P),L=S(F);D(L,(e,t)=>ce?.(e,t),()=>`portals`);var z=m(L,2),B=e=>{var t=Me();f(2,t,()=>be,()=>({duration:200,delay:300})),c(e,t)},V=e=>{var t=Ie(),r=R(t),i=m(S(r),8),u=S(i),d=e=>{var t=x();n(R(t),17,()=>Object.entries(J.theme.colors.brand),v,(e,t)=>{var n=O(()=>N(M(t),2));let r=()=>M(n)[0],i=()=>M(n)[1];Se(e,{name:`brand`,get key(){return r()},get value(){return i()}})}),c(e,t)};_(u,e=>{J.theme.colors?.brand&&e(d)}),o(i);var f=m(i,4),p=S(f),h=e=>{var t=x();n(R(t),17,()=>Object.entries(J.theme.colors.highlight),v,(e,t)=>{var n=O(()=>N(M(t),2));let r=()=>M(n)[0],i=()=>M(n)[1];Se(e,{name:`highlight`,get key(){return r()},get value(){return i()}})}),c(e,t)};_(p,e=>{J.theme?.colors?.highlight&&e(h)}),o(f);var g=m(f,4),b=S(g),te=e=>{var t=x();n(R(t),17,()=>Object.entries(J.theme.colors.grey),v,(e,t)=>{var n=O(()=>N(M(t),2));let r=()=>M(n)[0],i=()=>M(n)[1];Se(e,{name:`grey`,get key(){return r()},get value(){return i()}})}),c(e,t)};_(b,e=>{J.theme?.colors?.grey&&e(te)}),o(g),o(r);var C=m(r,4),w=m(S(C),8),T=S(w);X(T,{name:`avatar`,class:`introduction__avatar`}),X(m(T,2),{name:`avatar`,class:`message__bot-avatar`}),o(w);var E=m(w,4);me(E,{onSubmit:()=>{},avoidFocusOnMount:!0});var D=m(E,2),k=S(D);pe(k,{predefinedQuestion:{id:`preview-1`,label:`Question one`,question:``},onSubmit:()=>{},index:0});var j=m(k,2);pe(j,{predefinedQuestion:{id:`preview-2`,label:`Question two`,question:``},onSubmit:()=>{},index:1}),pe(m(j,2),{predefinedQuestion:{id:`preview-3`,label:`Question three`,question:``},onSubmit:()=>{},index:2}),o(D);var P=m(D,4),F=S(P),L=S(F);ve(L,{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 z=m(L,2);ve(z,{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}}}),ve(m(z,2),{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}}}),o(F),o(P);var B=m(P,2),V=S(B),H=m(S(V));ee(H,`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`}}})),ee(H,`data-used-index`,`1`),ee(H,`data-all-index`,`3`),y(),o(V),o(B);var U=m(B,2),W=S(U),ie=S(W);X(m(S(ie),2),{name:`externalLink`,class:`reference__icon transition-colors`}),o(ie),y(4),o(W),o(U);var G=m(U,4),K=S(G),q=S(K);ue(q,{});var Y=m(q,2);ge(Y,{});var ce=m(Y,2);{let e=O(()=>M(a).aboutThisChat||``);ye(ce,{get content(){return M(e)}})}fe(m(ce,2),{onclick:()=>{}}),o(K),o(G);var he=m(G,4),_e=S(he),be=S(_e);X(S(be),{name:`externalLink`}),y(2),o(be),o(_e);var Z=m(_e,4),xe=m(S(Z),2),Ce=S(xe);X(S(Ce),{name:`internalLink`}),y(2),o(Ce);var Te=m(Ce,2);X(S(Te),{name:`internalLink`}),y(2),o(Te);var Ee=m(Te,2);X(S(Ee),{name:`internalLink`}),y(2),o(Ee);var Oe=m(Ee,2);X(S(Oe),{name:`internalLink`}),y(2),o(Oe),o(xe),o(Z);var ke=m(Z,4),Ae=S(ke),je=S(Ae);X(S(je),{name:`lightMode`}),y(2),o(je);var Me=m(je,4);X(S(Me),{name:`darkMode`}),y(2),o(Me),o(Ae),o(ke),o(he);var Le=m(he,4),Re=m(S(Le),2),Q=S(Re),ze=S(Q);de(ze,{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 Be=m(ze,2),Ve=S(Be),He=S(Ve,!0);o(Ve);var Ue=m(Ve,2);o(Be);var We=m(Be,2),$=S(We),Ge=S($,!0);o($);var Ke=m($,2);o(We),o(Q),o(Re),o(Le),y(4),o(C);var qe=m(C,2);we(m(S(qe),4),{}),o(qe);var Je=m(qe,4);n(Je,21,()=>s,v,(e,t,n)=>{le(e,{get message(){return M(t)},index:n,onmessageupdate:()=>{},onbotmessageinit:()=>{},onaskQuestion:()=>{}})}),o(Je);var Ye=m(Je,4),Xe=S(Ye);ae(Xe,{data:{title:`Rathaus Basel`,description:`Description Rathaus, optional`,address:`Marktplatz 9
28
+ CH-4001 Basel`,phone:`+41 61 200 20 20`,email:`rathaus@bs.ch`,coords:{lat:47.5596,lng:7.5886},zoom:15,fallbackUrl:`https://www.openstreetmap.org/?mlat=47.5596&mlon=7.5886`}});var Ze=m(Xe,2);{let e=O(()=>({title:`Open Data Day`,description:`Mock Event reference for local JSON-LD display testing.`,date:new Date(`2026-07-12T18:30:00`).toISOString(),location:`Demo location`,ctaLabel:`Zum Event`,ctaUrl:`https://opendata.swiss`}));se(Ze,{get data(){return M(e)}})}oe(m(Ze,2),{data:{title:`Online service`,description:`Mock CTA reference for local JSON-LD display testing.`,label:`Mehr erfahren`,url:`https://www.bs.ch`}}),o(Ye);var Qe=m(Ye,2),$e=m(S(Qe),4);De($e,{});var et=m($e,6),tt=S(et);X(tt,{name:`predefinedQuestion`});var nt=m(tt,2);X(nt,{name:`edit`});var rt=m(nt,2);X(rt,{name:`newConversation`});var it=m(rt,2);X(it,{name:`voteUp`});var at=m(it,2);X(at,{name:`voteDown`});var ot=m(at,2);X(ot,{name:`retry`});var st=m(ot,2);X(st,{name:`message`});var ct=m(st,2);X(ct,{name:`thread`});var lt=m(ct,2);X(lt,{name:`submit`});var ut=m(lt,2);X(ut,{name:`expand`});var dt=m(ut,2);X(dt,{name:`help`});var ft=m(dt,2);X(ft,{name:`attach`});var pt=m(ft,2);X(pt,{name:`record`});var mt=m(pt,2);X(mt,{name:`reward`});var ht=m(mt,2);X(ht,{name:`share`});var gt=m(ht,2);X(gt,{name:`audio`});var _t=m(gt,2);X(_t,{name:`copy`});var vt=m(_t,2);X(vt,{name:`dismiss`});var yt=m(vt,2);X(yt,{name:`menu`});var bt=m(yt,2);X(bt,{name:`listUnordered`});var xt=m(bt,2);X(xt,{name:`lightMode`}),X(m(xt,2),{name:`darkMode`}),o(et),o(Qe);var St=m(Qe,2),Ct=e=>{var t=Fe(),n=m(S(t),4),r=e=>{var t=Ne(),n=S(t),r=S(n);re(r,()=>M(a).popups[1].title,!0),o(r);var i=m(r,2);X(m(S(i),2),{name:`dismiss`}),o(i),o(n);var s=m(n,2);re(s,()=>M(a).popups[1].content,!0),o(s),o(t),c(e,t)},i=e=>{c(e,Pe())};_(n,e=>{M(a).popups?.[1]?e(r):e(i,-1)}),o(t),c(e,t)};_(St,e=>{M(a).popups&&M(a).popups?.length>0&&e(Ct)}),A(()=>{I(Q,`aria-label`,M(a).feedbackFormTitle),l(He,M(a).feedbackFormMessage),I(Ue,`placeholder`,M(a).feedbackFormMessagePlaceholder),l(Ge,M(a).feedbackFormEmail),I(Ke,`placeholder`,M(a).feedbackFormEmailPlaceholder)}),ne(`submit`,Q,async()=>{}),c(e,t)};_(z,e=>{J.initialized?e(V,-1):e(B)}),o(F),o(P);var H=m(P,2);return o(b),A(()=>{te=h(b,``,te,{"color-scheme":J.colorScheme}),I(H,`id`,_e)}),c(t,b),u(g)}T(Q,{data:{}},[],[],{mode:`open`});var ze=b(`<iframe title="sidebar" id="sidebar" class="svelte-1uha8ag"></iframe>`),Be=b(`<div id="preview-form" style="font-family: system-ui, sans-serif; color: #1a1a1a; line-height: 1.6; padding: 0 1.5rem 2rem;" class="svelte-1uha8ag"><div style="border-bottom: 4px solid #888; padding: 0.75rem 0;"></div> <h1 style="font-size: 1.5rem; font-weight: 400; margin: 1.5rem 0 0.5rem;">Recht &amp; Justiz</h1> <div style="display: flex; gap: 1.5rem; border-bottom: 1px solid #ddd; margin-bottom: 1.5rem;"><span style="padding: 0.5rem 0; color: #666; cursor: pointer;">Übersicht</span> <span style="padding: 0.5rem 0; border-bottom: 2px solid #1a1a1a; font-weight: 600; cursor: pointer;">Beglaubigungen</span></div> <div style="display: flex; gap: 2.5rem; align-items: flex-start;"><div style="flex: 1; min-width: 0;"><h2 style="font-size: 1.75rem; font-weight: 700; margin: 0 0 1rem;">Notarielle Beglaubigung anmelden</h2> <p style="margin: 0 0 1rem; color: #444;">Los geht's. Sie können beim Bearbeiten Ihrer Anmeldung jederzeit pausieren oder einen Schritt
29
29
  zurückgehen. In der blauen Infobox finden Sie Hinweise zu den Angaben und Dokumenten, die Sie
30
30
  bereithalten sollten.</p> <p style="margin: 0 0 2rem; color: #444;">Um eine Unterschrift oder ein Dokument beglaubigen zu lassen, müssen Sie die entsprechenden Unterlagen
31
31
  vor Ort beim Notariat vorlegen. Mit der digitalen Anmeldung beschleunigen Sie den Prozess: Das Formular
@@ -47,4 +47,4 @@ CH-4001 Basel`,phone:`+41 61 200 20 20`,email:`rathaus@bs.ch`,coords:{lat:47.559
47
47
 
48
48
  /* Keep widget hidden until the component marks itself ready (avoids barebone/unthemed flash) */liipgpt-search-summary .search-summary:not(.search-summary--ready) {opacity:0;}#chat-wrapper.has-bg-image.svelte-1uha8ag,
49
49
  #chat-wrapper.svelte-1uha8ag:has(#preview-form:where(.svelte-1uha8ag)) {
50
- /* 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;user-select:none;}`};function $(n,l){p(l,!0),e(n,We);let d=I(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=A(()=>l.data);E(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&V(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let h=e=>`/build/${e}/liipgpt-${e}.iife.js`,v=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),b=async e=>{e===`build`&&(await H(()=>import(h(`chat`)),[],import.meta.url),await H(()=>import(h(`button`)),[],import.meta.url),await H(()=>import(h(`search-summary`)),[],import.meta.url)),e===`dev`&&(await H(()=>import(`../chunks/DyMgZ9Xo.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),await H(()=>import(`../chunks/CDcDq_nT.js`),__vite__mapDeps([18,3,4,5,6,7,10,13,8,2,9,14,16,17]),import.meta.url),await H(()=>import(`../chunks/C63PhGMI.js`),__vite__mapDeps([19,2,3,4,5,6,7,11,14,16,20]),import.meta.url)),e===`server`&&(H(()=>import(U(l.data.options,`chat`)),[],import.meta.url),H(()=>import(U(l.data.options,`button`)),[],import.meta.url),H(()=>import(U(l.data.options,`search-summary`)),[],import.meta.url))},S=A(()=>l.data.options?.[`preview-mode`]?.value??`server`);E(()=>{b(P(S))});let D=`./sidebar${ie.url.search}`,k=i(void 0),j=i(void 0),N=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};E(()=>{P(k)&&N(P(k),P(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),E(()=>{P(j)&&P(f).embedTab===`chat`?N(P(j),P(f).options.onclosechat.value||``):P(j)&&P(j).replaceChildren()});let F=A(()=>P(f)&&P(f).options[`preview-components`].value),ee=A(()=>P(f).embedTab===`chat`),K=A(()=>P(f).embedTab===`search-summary`);E(()=>{if(!P(K)){W();return}let e=P(f).options[`use-chat-config`]?.value?``:P(f).options[`host-css`]?.value??``;e?re(e):W()});var q=Ue();O(`1uha8ag`,e=>{var t=x(),n=B(t),r=e=>{T(()=>{z.title=`LiipGPT Configurator | Components`})},i=e=>{T(()=>{z.title=`LiipGPT Configurator`})};_(n,e=>{P(f).options[`preview-components`].value?e(r,1):e(i,-1)}),c(e,t)});var J=C(q);let Y;var ae=C(J),oe=e=>{var t=ze();M(()=>R(t,`src`,D)),c(e,t)};_(ae,e=>{P(f).options[`hide-sidebar`].value||e(oe)}),o(J);var X=m(J,2),se=e=>{G(e,{mode:`show`})};_(X,e=>{P(f).options[`hide-sidebar`].value&&e(se)}),s(m(X,2),()=>P(f),e=>{var n=x(),r=B(n),i=e=>{var n=x();t(B(n),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,w(()=>d))}),c(e,n)},s=e=>{var t=He();let n;var r=C(t),i=e=>{var t=Be(),n=m(C(t),6),r=C(n),i=m(C(r),6),a=m(C(i),2),s=m(C(a),14),l=m(C(s),2),u=C(l);u.value=u.__value=``;var d=m(u);d.value=d.__value=`ch`;var f=m(d);f.value=f.__value=`de`;var p=m(f);p.value=p.__value=`at`,o(l),o(s);var h=m(s,12),g=m(C(h),2),_=C(g);_.value=_.__value=``;var v=m(_);v.value=v.__value=`a`;var b=m(v);b.value=b.__value=`b`;var x=m(b);x.value=x.__value=`c`,o(g),o(h),y(2),o(a),o(i),y(16),o(r),y(2),o(n),o(t),c(e,t)};_(r,e=>{P(ee)&&P(f).options.flyout.value&&P(f).options[`preview-form`].value&&e(i)});var s=m(r,2),l=e=>{var t=x(),n=B(t),r=e=>{var t=Ve();M(()=>R(t,`src`,P(f).options[`preview-background`].value)),c(e,t)},i=A(()=>v(P(f).options[`preview-background`].value));_(n,e=>{P(i)&&e(r)}),c(e,t)};_(s,e=>{P(ee)&&P(f).options.flyout.value&&P(f).options[`preview-background`].value&&e(l)});var u=m(s,2);L(u,e=>g(k,e),()=>P(k));var d=m(u,2);te(d,()=>ne(P(f).options,P(f).embedTab)),L(m(d,2),e=>g(j,e),()=>P(j)),o(t),M(e=>n=a(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":P(f).options.flyout.value&&P(f).options[`preview-background`].value&&v(P(f).options[`preview-background`].value),"search-summary-preview":P(K)})]),c(e,t)};_(r,e=>{P(F)?e(i):e(s,-1)}),c(e,n)}),o(q),M(()=>{a(q,1,r([{"components-preview":P(F)}]),`svelte-1uha8ag`),Y=a(J,1,`sidebar-slot svelte-1uha8ag`,null,Y,{"sidebar-slot--hidden":P(f).options[`hide-sidebar`].value})}),c(n,q),u()}D($,{},[],[],{mode:`open`});export{$ as component};
50
+ /* 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;user-select:none;}`};function $(n,l){p(l,!0),e(n,We);let d=P(l,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),f=O(()=>l.data);w(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&z(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let h=e=>`/build/${e}/liipgpt-${e}.iife.js`,v=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),b=async e=>{e===`build`&&(await B(()=>import(h(`chat`)),[],import.meta.url),await B(()=>import(h(`button`)),[],import.meta.url),await B(()=>import(h(`search-summary`)),[],import.meta.url)),e===`dev`&&(await B(()=>import(`../chunks/lPpx1Xpm.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),await B(()=>import(`../chunks/C27tVb5g.js`),__vite__mapDeps([18,3,4,5,6,7,10,13,8,2,9,14,16,17]),import.meta.url),await B(()=>import(`../chunks/-qY1__IK.js`),__vite__mapDeps([19,2,3,4,5,6,7,11,14,16,20]),import.meta.url)),e===`server`&&(B(()=>import(W(l.data.options,`chat`)),[],import.meta.url),B(()=>import(W(l.data.options,`button`)),[],import.meta.url),B(()=>import(W(l.data.options,`search-summary`)),[],import.meta.url))},ee=O(()=>l.data.options?.[`preview-mode`]?.value??`server`);w(()=>{b(M(ee))});let T=`./sidebar${ie.url.search}`,D=i(void 0),k=i(void 0),j=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};w(()=>{M(D)&&j(M(D),M(f).options.CHAT_CONFIG_OVERRIDE.value||``)}),w(()=>{M(k)&&M(f).embedTab===`chat`?j(M(k),M(f).options.onclosechat.value||``):M(k)&&M(k).replaceChildren()});let N=O(()=>M(f)&&M(f).options[`preview-components`].value),ne=O(()=>M(f).embedTab===`chat`),K=O(()=>M(f).embedTab===`search-summary`);w(()=>{if(!M(K)){U();return}let e=M(f).options[`use-chat-config`]?.value?``:M(f).options[`host-css`]?.value??``;e?V(e):U()});var q=Ue();E(`1uha8ag`,e=>{var t=x(),n=R(t),r=e=>{C(()=>{L.title=`LiipGPT Configurator | Components`})},i=e=>{C(()=>{L.title=`LiipGPT Configurator`})};_(n,e=>{M(f).options[`preview-components`].value?e(r,1):e(i,-1)}),c(e,t)});var J=S(q);let Y;var ae=S(J),oe=e=>{var t=ze();A(()=>I(t,`src`,T)),c(e,t)};_(ae,e=>{M(f).options[`hide-sidebar`].value||e(oe)}),o(J);var X=m(J,2),se=e=>{G(e,{mode:`show`})};_(X,e=>{M(f).options[`hide-sidebar`].value&&e(se)}),s(m(X,2),()=>M(f),e=>{var n=x(),r=R(n),i=e=>{var n=x();t(R(n),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,te(()=>d))}),c(e,n)},s=e=>{var t=He();let n;var r=S(t),i=e=>{var t=Be(),n=m(S(t),6),r=S(n),i=m(S(r),6),a=m(S(i),2),s=m(S(a),14),l=m(S(s),2),u=S(l);u.value=u.__value=``;var d=m(u);d.value=d.__value=`ch`;var f=m(d);f.value=f.__value=`de`;var p=m(f);p.value=p.__value=`at`,o(l),o(s);var h=m(s,12),g=m(S(h),2),_=S(g);_.value=_.__value=``;var v=m(_);v.value=v.__value=`a`;var b=m(v);b.value=b.__value=`b`;var x=m(b);x.value=x.__value=`c`,o(g),o(h),y(2),o(a),o(i),y(16),o(r),y(2),o(n),o(t),c(e,t)};_(r,e=>{M(ne)&&M(f).options.flyout.value&&M(f).options[`preview-form`].value&&e(i)});var s=m(r,2),l=e=>{var t=x(),n=R(t),r=e=>{var t=Ve();A(()=>I(t,`src`,M(f).options[`preview-background`].value)),c(e,t)},i=O(()=>v(M(f).options[`preview-background`].value));_(n,e=>{M(i)&&e(r)}),c(e,t)};_(s,e=>{M(ne)&&M(f).options.flyout.value&&M(f).options[`preview-background`].value&&e(l)});var u=m(s,2);F(u,e=>g(D,e),()=>M(D));var d=m(u,2);re(d,()=>H(M(f).options,M(f).embedTab,!1,!0)),F(m(d,2),e=>g(k,e),()=>M(k)),o(t),A(e=>n=a(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":M(f).options.flyout.value&&M(f).options[`preview-background`].value&&v(M(f).options[`preview-background`].value),"search-summary-preview":M(K)})]),c(e,t)};_(r,e=>{M(N)?e(i):e(s,-1)}),c(e,n)}),o(q),A(()=>{a(q,1,r([{"components-preview":M(N)}]),`svelte-1uha8ag`),Y=a(J,1,`sidebar-slot svelte-1uha8ag`,null,Y,{"sidebar-slot--hidden":M(f).options[`hide-sidebar`].value})}),c(n,q),u()}T($,{},[],[],{mode:`open`});export{$ as component};
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/rEsbAd0y.js";import"../chunks/Bb3IJ5WU.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/C0FfTxd-.js";import{i as se,r as ce}from"../chunks/avE7hvHO.js";import"../chunks/CZzAbm1q.js";import"../chunks/Dmocya4I.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";import"../chunks/CPPDi2Fg.js";import"../chunks/BW_ztSPa.js";import{n as le,r as ue,t as de}from"../chunks/YzbOslOR.js";import"../chunks/CV9yj59d.js";import"../chunks/D1EjYV4X.js";import"../chunks/D6xJ2-qj.js";import"../chunks/6Ewy7c9P.js";import"../chunks/DQAAUn6o.js";import"../chunks/Dd3J6rMu.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],D=[],O=[],k=null,A=null,j=``,M=``,N=0,P;for(let t=0;t<e.length;t++){let F=e.charCodeAt(t);if(!(F===u&&(P=e.charCodeAt(t+1),P===l)))if(F===n)j===``&&(N=t),j+=e.slice(t,t+2),t+=1;else if(F===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(P=e.charCodeAt(a),P===n)a+=1;else if(P===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));D.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(F===o||F===a){let n=ee(e,t,F,C);j+=e.slice(t,n+1),t=n}else{if((F===d||F===l||F===f)&&(P=e.charCodeAt(t+1))&&(P===d||P===l||P===f||P===u&&(P=e.charCodeAt(t+2))&&P==l))continue;if(F===l){if(j.length===0)continue;P=j.charCodeAt(j.length-1),P!==d&&P!==l&&P!==f&&(j+=` `)}else if(F===y&&e.charCodeAt(t+1)===y&&j.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(P=e.charCodeAt(f),P===n)f+=1;else if(P===o||P===a)f=ee(e,f,P,C);else if(P===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(P=e.charCodeAt(t),P===n)t+=1;else if(P===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&P===s)d=j.length+f-u;else if(P===c&&l.length===0){j+=e.slice(u,f),t=f;break}else if(P===h)l+=`)`;else if(P===_)l+=`]`;else if(P===p)l+=`}`;else if((P===m||e.length-1===f)&&l.length===0){t=f-1,j+=e.slice(u,f);break}else (P===g||P===v||P===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(j,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),k?k.nodes.push(f):E.push(f),j=``}else if(F===c&&j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else if(F===c&&M[M.length-1]!==`)`){let e=T(j);if(!e){if(j.length===0)continue;throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null)}C&&(e.src=[C,N,t],e.dst=[C,N,t]),k?k.nodes.push(e):E.push(e),j=``}else if(F===p&&M[M.length-1]!==`)`)M+=`}`,A=H(j.trim()),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k&&k.nodes.push(A),O.push(k),k=A,j=``,A=null;else if(F===m&&M[M.length-1]!==`)`){if(M===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(M=M.slice(0,-1),j.length>0)if(j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else{let e=j.indexOf(`:`);if(k){let n=T(j,e);if(!n)throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null);C&&(n.src=[C,N,t],n.dst=[C,N,t]),k.nodes.push(n)}}let e=O.pop()??null;e===null&&k&&E.push(k),k=e,j=``,A=null}else if(F===h)M+=`)`,j+=`(`;else if(F===g){if(M[M.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);M=M.slice(0,-1),j+=`)`}else{if(j.length===0&&(F===d||F===l||F===f))continue;j===``&&(N=t),j+=String.fromCharCode(F)}}}if(j.charCodeAt(0)===b){let t=w(j);C&&(t.src=[C,N,e.length],t.dst=[C,N,e.length]),E.push(t)}if(M.length>0&&k){if(k.kind===`rule`)throw new S(`Missing closing } at ${k.selector}`,k.src?[k.src[0],k.src[1],k.src[1]]:null);if(k.kind===`at-rule`)throw new S(`Missing closing } at ${k.name} ${k.params}`,k.src?[k.src[0],k.src[1],k.src[1]]:null)}return D.length>0?D.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function D(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var O=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`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function k(e,t){return(O.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var A=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(k(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=D(this.#e(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}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=O.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!k(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=D(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},j=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function M(e){return{kind:`word`,value:e}}function N(e,t){return{kind:`function`,value:e,nodes:t}}function P(e){return{kind:`separator`,value:e}}function F(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+F(n.nodes)+`)`}return t}var I=92,te=41,ne=58,re=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
1
+ import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/rEsbAd0y.js";import"../chunks/BDm2oSnh.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/CIPNu9Fk.js";import{a as se,i as ce}from"../chunks/BaBjK23B.js";import"../chunks/CZzAbm1q.js";import"../chunks/CEu7mztv.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";import"../chunks/CPPDi2Fg.js";import"../chunks/Shyv85t-.js";import{n as le,r as ue,t as de}from"../chunks/aHwC0Rur.js";import"../chunks/De77gmQ_.js";import"../chunks/B08O5lEA.js";import"../chunks/DhVTVaBo.js";import"../chunks/DwRGsUyQ.js";import"../chunks/CAaK3aFg.js";import"../chunks/Cn5qx8al.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],D=[],O=[],k=null,A=null,j=``,M=``,N=0,P;for(let t=0;t<e.length;t++){let F=e.charCodeAt(t);if(!(F===u&&(P=e.charCodeAt(t+1),P===l)))if(F===n)j===``&&(N=t),j+=e.slice(t,t+2),t+=1;else if(F===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(P=e.charCodeAt(a),P===n)a+=1;else if(P===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));D.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(F===o||F===a){let n=ee(e,t,F,C);j+=e.slice(t,n+1),t=n}else{if((F===d||F===l||F===f)&&(P=e.charCodeAt(t+1))&&(P===d||P===l||P===f||P===u&&(P=e.charCodeAt(t+2))&&P==l))continue;if(F===l){if(j.length===0)continue;P=j.charCodeAt(j.length-1),P!==d&&P!==l&&P!==f&&(j+=` `)}else if(F===y&&e.charCodeAt(t+1)===y&&j.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(P=e.charCodeAt(f),P===n)f+=1;else if(P===o||P===a)f=ee(e,f,P,C);else if(P===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(P=e.charCodeAt(t),P===n)t+=1;else if(P===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&P===s)d=j.length+f-u;else if(P===c&&l.length===0){j+=e.slice(u,f),t=f;break}else if(P===h)l+=`)`;else if(P===_)l+=`]`;else if(P===p)l+=`}`;else if((P===m||e.length-1===f)&&l.length===0){t=f-1,j+=e.slice(u,f);break}else (P===g||P===v||P===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(j,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),k?k.nodes.push(f):E.push(f),j=``}else if(F===c&&j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else if(F===c&&M[M.length-1]!==`)`){let e=T(j);if(!e){if(j.length===0)continue;throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null)}C&&(e.src=[C,N,t],e.dst=[C,N,t]),k?k.nodes.push(e):E.push(e),j=``}else if(F===p&&M[M.length-1]!==`)`)M+=`}`,A=H(j.trim()),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k&&k.nodes.push(A),O.push(k),k=A,j=``,A=null;else if(F===m&&M[M.length-1]!==`)`){if(M===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(M=M.slice(0,-1),j.length>0)if(j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else{let e=j.indexOf(`:`);if(k){let n=T(j,e);if(!n)throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null);C&&(n.src=[C,N,t],n.dst=[C,N,t]),k.nodes.push(n)}}let e=O.pop()??null;e===null&&k&&E.push(k),k=e,j=``,A=null}else if(F===h)M+=`)`,j+=`(`;else if(F===g){if(M[M.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);M=M.slice(0,-1),j+=`)`}else{if(j.length===0&&(F===d||F===l||F===f))continue;j===``&&(N=t),j+=String.fromCharCode(F)}}}if(j.charCodeAt(0)===b){let t=w(j);C&&(t.src=[C,N,e.length],t.dst=[C,N,e.length]),E.push(t)}if(M.length>0&&k){if(k.kind===`rule`)throw new S(`Missing closing } at ${k.selector}`,k.src?[k.src[0],k.src[1],k.src[1]]:null);if(k.kind===`at-rule`)throw new S(`Missing closing } at ${k.name} ${k.params}`,k.src?[k.src[0],k.src[1],k.src[1]]:null)}return D.length>0?D.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function D(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var O=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`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function k(e,t){return(O.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var A=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(k(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=D(this.#e(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}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=O.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!k(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=D(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},j=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function M(e){return{kind:`word`,value:e}}function N(e,t){return{kind:`function`,value:e,nodes:t}}function P(e){return{kind:`separator`,value:e}}function F(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+F(n.nodes)+`)`}return t}var I=92,te=41,ne=58,re=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case I:i+=e[o]+e[o+1],o++;break;case de:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=M(e[o]);r?r.nodes.push(n):t.push(n);break}case ne:case re:case ae:case oe:case se:case ce:case fe:case pe:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==ne&&a!==re&&a!==ae&&a!==oe&&a!==se&&a!==ce&&a!==fe&&a!==pe));s++);o=s-1;let c=P(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case ue:case ie:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===I)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case le:{let e=N(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case te:{let e=n.pop();if(i.length>0){let t=M(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(M(i)),t}var me=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(me||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function z(e,t){typeof t==`function`?he(e,t):he(e,t.enter,t.exit)}function he(e,t=()=>R.Continue,n=()=>R.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,o>=0){let n=a[o],s=t(n,i)??R.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o,l=a[c],u=n(l,i)??R.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function ge(e){let t=[];return z(L(e),e=>{if(!(e.kind!==`function`||e.value!==`var`))return z(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),R.Skip}),t}var _e=64;function B(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function V(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function H(e,t=[]){return e.charCodeAt(0)===_e?w(e,t):B(e,t)}function U(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function ve(e){return{kind:`comment`,value:e}}function ye(e,t){return{kind:`context`,context:e,nodes:t}}function W(e){return{kind:`at-root`,nodes:e}}function be(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function xe(e){return{depth:e.depth,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,`context`,{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,`parent`,{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function Se(e,t,n=3){let r=[],i=new Set,a=new j(()=>new Set),o=new j(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new j(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`))if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of ge(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value);if(e.property===`animation`)for(let t of Ee(e.value))c.add(t);n&2&&e.value.includes(`color-mix(`)&&!m.supportsColorMix&&!m.keyframes&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);let n={},r=new Set;for(let e of t){if(e.kind!==`declaration`)continue;let t=`${e.property}:${e.value}:${e.important}`;n[t]??=[],n[t].push(e)}for(let e in n)for(let t=0;t<n[e].length-1;++t)r.add(n[e][t]);if(r.size>0&&(t=t.filter(e=>!r.has(e))),t.length===0)return;e.selector===`&`?p.push(...t):p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=U(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Te(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Ee(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=we(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(!0);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=L(r.value),a=!1;if(z(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(z(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?L(o)[0]:null}while(i);return R.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?R.Replace(n):void 0}else if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:F(i)},s=H(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=H(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=H(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>!(e.kind===`comment`||e.kind===`at-rule`&&(e.name===`@charset`||e.name===`@import`))),n=V(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=H(`@layer properties`,[V(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return p}function Ce(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
4
4
  `,t){n+=s.length;let t=n;n+=e.property.length,n+=2,n+=e.value?.length??0,e.important&&(n+=11);let i=n;n+=2,e.dst=[r,t,i]}}else if(e.kind===`rule`){if(o+=`${s}${e.selector} {
@@ -945,7 +945,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
945
945
  `,utilities:`@tailwind utilities;
946
946
  `},ki=class{start(e){performance.mark(`${e} (start)`)}end(e,t){performance.mark(`${e} (end)`),performance.measure(e,{start:`${e} (start)`,end:`${e} (end)`,detail:t})}hit(e,t){performance.mark(e,{detail:t})}error(e){throw performance.mark(`(error)`,{detail:{error:`${e}`}}),e}},Ai=`text/tailwindcss`,ji,Mi=new Set,Ni=``,Pi=document.createElement(`style`),Fi=Promise.resolve(),Ii=1,$=new ki;async function Li(){$.start(`Create compiler`),$.start(`Reading Stylesheets`);let e=document.querySelectorAll(`style[type="${Ai}"]`),t=``;for(let n of e)Ui(n),t+=n.textContent+`
947
947
  `;if(t.includes(`@import`)||(t=`@import "tailwindcss";${t}`),$.end(`Reading Stylesheets`,{size:t.length,changed:Ni!==t}),Ni!==t){Ni=t,$.start(`Compile CSS`);try{ji=await Di(t,{base:`/`,loadStylesheet:Ri,loadModule:zi})}finally{$.end(`Compile CSS`),$.end(`Create compiler`)}Mi.clear()}}async function Ri(e,t){function n(){if(e===`tailwindcss`)return{path:`virtual:tailwindcss/index.css`,base:t,content:Oi.index};if(e===`tailwindcss/preflight`||e===`tailwindcss/preflight.css`||e===`./preflight.css`)return{path:`virtual:tailwindcss/preflight.css`,base:t,content:Oi.preflight};if(e===`tailwindcss/theme`||e===`tailwindcss/theme.css`||e===`./theme.css`)return{path:`virtual:tailwindcss/theme.css`,base:t,content:Oi.theme};if(e===`tailwindcss/utilities`||e===`tailwindcss/utilities.css`||e===`./utilities.css`)return{path:`virtual:tailwindcss/utilities.css`,base:t,content:Oi.utilities};throw Error(`The browser build does not support @import for "${e}"`)}try{let r=n();return $.hit(`Loaded stylesheet`,{id:e,base:t,size:r.content.length}),r}catch(n){throw $.hit(`Failed to load stylesheet`,{id:e,base:t,error:n.message??n}),n}}async function zi(){throw Error(`The browser build does not support plugins or config files.`)}async function Bi(e){if(!ji)return;let t=new Set;$.start(`Collect classes`);for(let e of document.querySelectorAll(`[class]`))for(let n of e.classList)Mi.has(n)||(Mi.add(n),t.add(n));$.end(`Collect classes`,{count:t.size}),!(t.size===0&&e===`incremental`)&&($.start(`Build utilities`),Pi.textContent=ji.build(Array.from(t)),$.end(`Build utilities`))}function Vi(e){async function t(){if(!ji&&e!==`full`)return;let t=Ii++;$.start(`Build #${t} (${e})`),e===`full`&&await Li(),$.start(`Build`),await Bi(e),$.end(`Build`),$.end(`Build #${t} (${e})`)}Fi=Fi.then(t).catch(e=>$.error(e))}var Hi=new MutationObserver(()=>Vi(`full`));function Ui(e){Hi.observe(e,{attributes:!0,attributeFilter:[`type`],characterData:!0,subtree:!0,childList:!0})}new MutationObserver(e=>{let t=0,n=0;for(let r of e){for(let e of r.addedNodes)e.nodeType===Node.ELEMENT_NODE&&e.tagName===`STYLE`&&e.getAttribute(`type`)===Ai&&(Ui(e),t++);for(let e of r.addedNodes)e.nodeType===1&&e!==Pi&&n++;r.type===`attributes`&&n++}if(t>0)return Vi(`full`);if(n>0)return Vi(`incremental`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`],childList:!0,subtree:!0}),Vi(`full`),document.head.append(Pi)})();var fe=`liipgpt-configurator-drawer-open`,pe=`liipgpt-configurator-drawer-order`,L=(e,t)=>{if(typeof localStorage>`u`)return t;try{let n=localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}},me=(e,t)=>{typeof localStorage>`u`||localStorage.setItem(e,JSON.stringify(t))},R=(e,t)=>L(fe,{})[e]?.[t]??!1,z=(e,t,n)=>{let r=L(fe,{}),i={...r[e],[t]:n};me(fe,{...r,[e]:i})},he=(e,t)=>{let n=L(pe,{})[e];if(!n?.length)return t;let r=new Set(t),i=n.filter(e=>r.has(e)),a=t.filter(e=>!i.includes(e));return[...i,...a]},ge=_(`<button type="button"> </button>`),_e=_(`<div class="flex rounded-lg shadow-xs" role="group" aria-label="Embed component"></div>`);function B(e,n){d(n,!0);let r=A(n,`embedTab`,7);var i={get embedTab(){return r()},set embedTab(e){r(e),u()}},f=_e();return t(f,21,()=>oe,e=>e.id,(e,t)=>{var n=ge(),i=x(n,!0);o(n),O(()=>{I(n,`aria-pressed`,r()===j(t).id),I(n,`tabindex`,r()===j(t).id?-1:void 0),a(n,1,`flex-1 px-3 py-2 text-sm font-medium border first:rounded-s-lg last:rounded-e-lg focus:ring-2 focus:ring-gray-500 focus:z-10
948
- ${r()===j(t).id?`pointer-events-none cursor-default text-gray-900 bg-gray-100 border-gray-200 dark:text-gray-100 dark:bg-gray-900 dark:border-gray-600`:`cursor-pointer text-gray-700 bg-white border-gray-200 hover:bg-gray-100 dark:text-gray-300 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700`}`),c(i,j(t).label)}),k(`click`,n,()=>le(`embed-tab`,j(t).id)),s(e,n)}),o(f),s(e,f),l(i)}P([`click`]),T(B,{embedTab:{}},[],[],{mode:`open`});var V=_(`<div class="flex items-center justify-center h-full"><div class="flex items-center gap-2 text-gray-500 dark:text-gray-400"><svg class="animate-spin h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> <span class="text-sm">Calculating integrity hash...</span></div></div>`),H=_(`<code class="text-sm text-gray-500 dark:text-gray-400 whitespace-break-spaces"> </code>`),U=_(`<div class="flex flex-col gap-1"><span class="text-sm font-medium text-gray-900 dark:text-gray-300">CODE</span> <div class="relative bg-white border border-gray-200 rounded-sm dark:bg-gray-700 p-4 h-64"><div class="overflow-x-auto h-full"><!> <div class="absolute top-2 end-2 bg-gray-50 dark:bg-gray-700"><button class="text-gray-900 dark:text-gray-400 m-0.5 bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-2.5 inline-flex items-center justify-center border-gray-200 border h-8 disabled:opacity-50 disabled:cursor-not-allowed"><span id="default-message"><span class="inline-flex items-center"><svg class="w-3 h-3 me-1.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 20"><path d="M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z"></path></svg> <span class="text-xs font-semibold">Copy code</span></span></span> <span id="success-message"><span class="inline-flex items-center"><svg class="w-3 h-3 text-blue-700 dark:text-blue-500 me-1.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 12"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5.917 5.724 10.5 15 1.5"></path></svg> <span class="text-xs font-semibold text-blue-700 dark:text-blue-500">Copied</span></span></span></button></div></div></div> <p class="text-sm text-gray-500 dark:text-gray-400"> </p></div>`);function ve(e,t){d(t,!0);let n=A(t,`code`,7),r=A(t,`loading`,7,!1),h=A(t,`embedTab`,7),g=D(()=>h()===`link-button`?`This is the code needed to embed the standalone fly-out button (link).`:h()===`search-summary`?`This is the code needed to embed the search summary widget.`:`This is the code needed to embed the regular chat component.`),_=i(!1),v=i(void 0);function y(){if(!j(v))return;let e=j(v).innerText;navigator.clipboard.writeText(e).then(()=>{p(_,!0),setTimeout(()=>{p(_,!1)},2e3)}).catch(e=>{console.error(`Failed to copy text:`,e)})}var b={get code(){return n()},set code(e){n(e),u()},get loading(){return r()},set loading(e=!1){r(e),u()},get embedTab(){return h()},set embedTab(e){h(e),u()}},S=U(),C=f(x(S),2),w=x(C),T=x(w),ee=e=>{s(e,V())},E=e=>{var t=H(),r=x(t,!0);o(t),F(t,e=>p(v,e),()=>j(v)),O(()=>c(r,n())),s(e,t)};m(T,e=>{r()?e(ee):e(E,-1)});var M=f(T,2),N=x(M),P=x(N);let I;var te=f(P,2);let ne;o(N),o(M),o(w),o(C);var re=f(C,2),ie=x(re,!0);return o(re),o(S),O(()=>{N.disabled=r(),I=a(P,1,``,null,I,{hidden:j(_)}),ne=a(te,1,``,null,ne,{hidden:!j(_)}),c(ie,j(g))}),k(`click`,N,y),s(e,S),l(b)}P([`click`]),T(ve,{code:{},loading:{},embedTab:{}},[],[],{mode:`open`});var ye=new Map;function W(e){var t=ye.get(e);t&&t.destroy()}function be(e){var t=ye.get(e);t&&t.update()}var xe=null;typeof window>`u`?((xe=function(e){return e}).destroy=function(e){return e},xe.update=function(e){return e}):((xe=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&e.nodeName===`TEXTAREA`&&!ye.has(e)){var t,n=null,r=window.getComputedStyle(e),i=(t=e.value,function(){o({testForHeightReduction:t===``||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),a=function(t){e.removeEventListener(`autosize:destroy`,a),e.removeEventListener(`autosize:update`,s),e.removeEventListener(`input`,i),window.removeEventListener(`resize`,s),Object.keys(t).forEach(function(n){return e.style[n]=t[n]}),ye.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener(`autosize:destroy`,a),e.addEventListener(`autosize:update`,s),e.addEventListener(`input`,i),window.addEventListener(`resize`,s),e.style.overflowX=`hidden`,e.style.wordWrap=`break-word`,ye.set(e,{destroy:a,update:s}),s()}function o(t){var i,a,s=t.restoreTextAlign,c=s===void 0?null:s,l=t.testForHeightReduction,u=l===void 0||l,d=r.overflowY;if(e.scrollHeight!==0&&(r.resize===`vertical`?e.style.resize=`none`:r.resize===`both`&&(e.style.resize=`horizontal`),u&&(i=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],n=e[1];t.style.scrollBehavior=`auto`,t.scrollTop=n,t.style.scrollBehavior=null})}}(e),e.style.height=``),a=r.boxSizing===`content-box`?e.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),r.maxHeight!==`none`&&a>parseFloat(r.maxHeight)?(r.overflowY===`hidden`&&(e.style.overflow=`scroll`),a=parseFloat(r.maxHeight)):r.overflowY!==`hidden`&&(e.style.overflow=`hidden`),e.style.height=a+`px`,c&&(e.style.textAlign=c),i&&i(),n!==a&&(e.dispatchEvent(new Event(`autosize:resized`,{bubbles:!0})),n=a),d!==r.overflow&&!c)){var f=r.textAlign;r.overflow===`hidden`&&(e.style.textAlign=f===`start`?`end`:`start`),o({restoreTextAlign:f,testForHeightReduction:!0})}}function s(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],W),e},xe.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],be),e});var Se=xe,Ce=e=>(Se(e),{destroy(){Se.destroy(e)}});Ce.update=Se.update,Ce.destroy=Se.destroy;var we=_(`<div class="flex items-center"><input type="checkbox" class="w-4 h-4 text-blue-600 bg-gray-50 border-gray-300 rounded-sm focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"/> <label class="ms-2 text-sm font-medium text-gray-900 dark:text-gray-300"> </label></div>`),Te=_(`<input type="checkbox" class="w-4 h-4 text-blue-600 bg-gray-50 border-gray-300 rounded-sm focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"/>`),Ee=_(`<option> </option>`),De=_(`<select class="my-2.5 ml-6 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"></select>`),Oe=_(`<textarea rows="8" class="option-textarea option-textarea--large block my-2.5 w-full p-2.5 text-sm text-gray-900 bg-white rounded-sm border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 svelte-fnac3m"></textarea>`),ke=_(`<textarea rows="2" class="option-textarea block my-2.5 w-full p-2.5 text-sm text-gray-900 bg-white rounded-sm border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"></textarea>`),Ae=_(`<div class="flex items-center"><!> <label class="ms-2 text-sm font-medium text-gray-900 dark:text-gray-300"> </label></div> <!>`,1),je=_(`<p class="text-sm text-gray-500 dark:text-gray-400 pl-6 text-pretty"> </p>`),Me=_(`<div class="flex flex-col pb-1"><!> <!></div>`),Ne={hash:`svelte-fnac3m`,code:`.option-textarea--large.svelte-fnac3m {box-sizing:border-box;field-sizing:content;overflow-y:auto;resize:vertical;}`};function Pe(r,i){d(i,!0),e(r,Ne);let a=A(i,`key`,7),p=A(i,`option`,7),g=A(i,`defaultOption`,7),_=A(i,`extraParams`,7),S=e=>{_()&&e!==void 0?ue({[a()]:e,..._()}):le(a(),e)},C=new Set([`CHAT_CONFIG_OVERRIDE`,`custom-loader`,`disclaimer-slot`,`buttons-slots`,`host-css`]),w=D(()=>C.has(a()));var T={get key(){return a()},set key(e){a(e),u()},get option(){return p()},set option(e){p(e),u()},get defaultOption(){return g()},set defaultOption(e){g(e),u()},get extraParams(){return _()},set extraParams(e){_(e),u()}},ee=Me(),M=x(ee),N=e=>{var t=we(),n=x(t);y(n);var r=f(n,2),i=x(r,!0);o(r),o(t),O(e=>{I(n,`id`,`input-${a()??``}`),ie(n,p().value),I(r,`for`,`input-${a()??``}`),c(i,e)},[()=>a().toUpperCase()]),k(`change`,n,e=>S(e.currentTarget.checked)),s(e,t)},P=e=>{var r=Ae(),i=re(r),l=x(i),u=e=>{var t=Te();y(t),O(()=>{I(t,`id`,`input-${a()??``}`),ie(t,p().value!==void 0)}),k(`change`,t,e=>S(e.currentTarget.checked?g().value:void 0)),s(e,t)};m(l,e=>{p().required||e(u)});var d=f(l,2),_=x(d,!0);o(d),o(i);var C=f(i,2),T=e=>{var r=v(),i=re(r),l=e=>{var r=De();t(r,21,()=>p().values,h,(e,t)=>{var n=Ee(),r=x(n,!0);o(n);var i={};O(()=>{c(r,j(t)),i!==(i=j(t))&&(n.value=(n.__value=j(t))??``)}),s(e,n)}),o(r);var i;n(r),O(()=>{I(r,`aria-label`,`Select ${a()}`),I(r,`name`,a()),i!==(i=p().value)&&(r.value=(r.__value=p().value)??``,te(r,p().value))}),k(`change`,r,e=>S(e.currentTarget.value)),s(e,r)},u=e=>{var t=Oe();b(t),O(()=>{ne(t,p().value),I(t,`aria-label`,a()),I(t,`id`,`input-${a()??``}`)}),k(`change`,t,e=>S(e.currentTarget.value)),s(e,t)},d=e=>{var t=ke();b(t),E(t,e=>Ce?.(e)),O(()=>{ne(t,p().value),I(t,`aria-label`,a()),I(t,`id`,`input-${a()??``}`)}),k(`change`,t,e=>S(e.currentTarget.value)),s(e,t)};m(i,e=>{`values`in p()?e(l):j(w)?e(u,1):e(d,-1)}),s(e,r)};m(C,e=>{(p().required||p().value!==void 0)&&e(T)}),O(e=>{I(d,`for`,`input-${a()??``}`),c(_,e)},[()=>a().toUpperCase()]),s(e,r)};m(M,e=>{p().type===`boolean`?e(N):p().type===`string`&&e(P,1)});var F=f(M,2),ae=e=>{var t=je(),n=x(t,!0);o(t),O(()=>c(n,p().description)),s(e,t)};return m(F,e=>{p().description&&e(ae)}),o(ee),s(r,ee),l(T)}P([`change`]),T(Pe,{key:{},option:{},defaultOption:{},extraParams:{}},[],[],{mode:`open`});var Fe=_(`<span class="option-group__active-dot svelte-blqg54" aria-hidden="true"></span> <span class="sr-only">(active)</span>`,1),Ie=_(`<details class="option-group overflow-hidden rounded-lg hover:shadow-xs border border-gray-200 bg-gray-100 dark:border-gray-600 dark:bg-gray-800"><summary class="flex cursor-pointer list-none items-center gap-2 px-4 py-3 text-sm font-semibold text-gray-900 dark:text-white [&amp;::-webkit-details-marker]:hidden"><span class="option-group__title min-w-0 flex-1 svelte-blqg54"> <!></span></summary> <div class="flex flex-col gap-4 px-4 py-6"><!> <!></div></details>`),G={hash:`svelte-blqg54`,code:`.option-group__title.svelte-blqg54 {display:inline-flex;align-items:center;gap:0.375rem;}.option-group__active-dot.svelte-blqg54 {flex-shrink:0;width:0.375rem;height:0.375rem;border-radius:50%;background-color:#2563eb;}`};function Le(n,r){d(r,!0),e(n,G);let i=A(r,`group`,7),a=A(r,`options`,7),p=A(r,`optionsDefinition`,7),h=A(r,`code`,7),_=A(r,`codeLoading`,7,!1),y=A(r,`embedTab`,7),b=A(r,`activeEmbedTab`,7),S=A(r,`isOpen`,7,!1),C=A(r,`onOpenChange`,7),w=D(()=>i().keys.filter(e=>e===`chat-class`&&b()!==`chat`||e===`force-theme`&&b()===`search-summary`&&!a()[`use-chat-config`]?.value||e===`host-css`&&a()[`use-chat-config`]?.value||e===`disclaimer-slot`&&(!a()[`opt-in`]?.value||a()[`use-chat-config`]?.value)||e===`buttons-slots`&&a()[`use-chat-config`]?.value?!1:e in p())),T=D(()=>j(w).length>0||h()!==void 0&&y()!==void 0),ee=D(()=>j(w).some(e=>{let t=a()[e];return t?t.type===`boolean`?t.value===!0:t.type===`string`&&!t.required?t.value!==void 0:!1:!1})),E=e=>{let t=e.currentTarget.open;C()?.(t)};var k={get group(){return i()},set group(e){i(e),u()},get options(){return a()},set options(e){a(e),u()},get optionsDefinition(){return p()},set optionsDefinition(e){p(e),u()},get code(){return h()},set code(e){h(e),u()},get codeLoading(){return _()},set codeLoading(e=!1){_(e),u()},get embedTab(){return y()},set embedTab(e){y(e),u()},get activeEmbedTab(){return b()},set activeEmbedTab(e){b(e),u()},get isOpen(){return S()},set isOpen(e=!1){S(e),u()},get onOpenChange(){return C()},set onOpenChange(e){C(e),u()}},N=v(),P=re(N),F=e=>{var n=Ie(),r=x(n),l=x(r),u=x(l),d=f(u),v=e=>{var t=Fe();g(2),s(e,t)};m(d,e=>{j(ee)&&e(v)}),o(l),o(r);var C=f(r,2),T=x(C),k=e=>{ve(e,{get code(){return h()},get loading(){return _()},get embedTab(){return y()}})};m(T,e=>{h()!==void 0&&y()!==void 0&&e(k)}),t(f(T,2),16,()=>j(w),e=>e,(e,t)=>{{let n=D(()=>t===`force-theme`&&b()===`search-summary`?{"use-chat-config":!0}:t===`host-css`&&b()===`search-summary`?{"buttons-slots":p()[`buttons-slots`].value}:void 0);Pe(e,{get key(){return t},get option(){return a()[t]},get defaultOption(){return p()[t]},get extraParams(){return j(n)}})}}),o(C),o(n),O(()=>{n.open=S(),c(u,`${i().label??``} `)}),M(`toggle`,n,E),s(e,n)};return m(P,e=>{j(T)&&e(F)}),s(n,N),l(k)}T(Le,{group:{},options:{},optionsDefinition:{},code:{},codeLoading:{},embedTab:{},activeEmbedTab:{},isOpen:{},onOpenChange:{}},[],[],{mode:`open`});var Re=_(`<button type="button"> </button>`),ze=_(`<div class="flex flex-col gap-1.5"><span class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">Styling approach</span> <div class="flex rounded-lg shadow-xs" role="group" aria-label="Styling approach"></div></div>`);function Be(e,n){d(n,!0);let r=A(n,`useChatConfig`,7),i=[{id:!1,label:`Host CSS`},{id:!0,label:`ChatConfig`}];var p={get useChatConfig(){return r()},set useChatConfig(e){r(e),u()}},m=ze(),h=f(x(m),2);return t(h,21,()=>i,e=>String(e.id),(e,t)=>{var n=Re(),i=x(n,!0);o(n),O(()=>{I(n,`aria-pressed`,r()===j(t).id),a(n,1,`flex-1 px-3 py-2 text-sm font-medium border first:rounded-s-lg last:rounded-e-lg focus:ring-2 focus:ring-gray-500 focus:z-10
948
+ ${r()===j(t).id?`pointer-events-none cursor-default text-gray-900 bg-gray-100 border-gray-200 dark:text-gray-100 dark:bg-gray-900 dark:border-gray-600`:`cursor-pointer text-gray-700 bg-white border-gray-200 hover:bg-gray-100 dark:text-gray-300 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700`}`),c(i,j(t).label)}),k(`click`,n,()=>le(`embed-tab`,j(t).id)),s(e,n)}),o(f),s(e,f),l(i)}P([`click`]),T(B,{embedTab:{}},[],[],{mode:`open`});var V=_(`<div class="flex items-center justify-center h-full"><div class="flex items-center gap-2 text-gray-500 dark:text-gray-400"><svg class="animate-spin h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> <span class="text-sm">Calculating integrity hash...</span></div></div>`),H=_(`<code class="text-sm text-gray-500 dark:text-gray-400 whitespace-break-spaces"> </code>`),U=_(`<div class="flex flex-col gap-1"><span class="text-sm font-medium text-gray-900 dark:text-gray-300">CODE</span> <div class="relative bg-white border border-gray-200 rounded-sm dark:bg-gray-700 p-4 h-64"><div class="overflow-x-auto h-full"><!> <div class="absolute top-2 end-2 bg-gray-50 dark:bg-gray-700"><button class="text-gray-900 dark:text-gray-400 m-0.5 bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-2.5 inline-flex items-center justify-center border-gray-200 border h-8 disabled:opacity-50 disabled:cursor-not-allowed"><span id="default-message"><span class="inline-flex items-center"><svg class="w-3 h-3 me-1.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 20"><path d="M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z"></path></svg> <span class="text-xs font-semibold">Copy code</span></span></span> <span id="success-message"><span class="inline-flex items-center"><svg class="w-3 h-3 text-blue-700 dark:text-blue-500 me-1.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 12"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5.917 5.724 10.5 15 1.5"></path></svg> <span class="text-xs font-semibold text-blue-700 dark:text-blue-500">Copied</span></span></span></button></div></div></div> <p class="text-sm text-gray-500 dark:text-gray-400"> </p></div>`);function ve(e,t){d(t,!0);let n=A(t,`code`,7),r=A(t,`loading`,7,!1),h=A(t,`embedTab`,7),g=D(()=>h()===`link-button`?`This is the code needed to embed the standalone fly-out button (link).`:h()===`search-summary`?`This is the code needed to embed the search summary widget.`:`This is the code needed to embed the regular chat component.`),_=i(!1),v=i(void 0);function y(){if(!j(v))return;let e=j(v).innerText;navigator.clipboard.writeText(e).then(()=>{p(_,!0),setTimeout(()=>{p(_,!1)},2e3)}).catch(e=>{console.error(`Failed to copy text:`,e)})}var b={get code(){return n()},set code(e){n(e),u()},get loading(){return r()},set loading(e=!1){r(e),u()},get embedTab(){return h()},set embedTab(e){h(e),u()}},S=U(),C=f(x(S),2),w=x(C),T=x(w),ee=e=>{s(e,V())},E=e=>{var t=H(),r=x(t,!0);o(t),F(t,e=>p(v,e),()=>j(v)),O(()=>c(r,n())),s(e,t)};m(T,e=>{r()?e(ee):e(E,-1)});var M=f(T,2),N=x(M),P=x(N);let I;var te=f(P,2);let ne;o(N),o(M),o(w),o(C);var re=f(C,2),ie=x(re,!0);return o(re),o(S),O(()=>{N.disabled=r(),I=a(P,1,``,null,I,{hidden:j(_)}),ne=a(te,1,``,null,ne,{hidden:!j(_)}),c(ie,j(g))}),k(`click`,N,y),s(e,S),l(b)}P([`click`]),T(ve,{code:{},loading:{},embedTab:{}},[],[],{mode:`open`});var ye=new Map;function W(e){var t=ye.get(e);t&&t.destroy()}function be(e){var t=ye.get(e);t&&t.update()}var xe=null;typeof window>`u`?((xe=function(e){return e}).destroy=function(e){return e},xe.update=function(e){return e}):((xe=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&e.nodeName===`TEXTAREA`&&!ye.has(e)){var t,n=null,r=window.getComputedStyle(e),i=(t=e.value,function(){o({testForHeightReduction:t===``||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),a=function(t){e.removeEventListener(`autosize:destroy`,a),e.removeEventListener(`autosize:update`,s),e.removeEventListener(`input`,i),window.removeEventListener(`resize`,s),Object.keys(t).forEach(function(n){return e.style[n]=t[n]}),ye.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener(`autosize:destroy`,a),e.addEventListener(`autosize:update`,s),e.addEventListener(`input`,i),window.addEventListener(`resize`,s),e.style.overflowX=`hidden`,e.style.wordWrap=`break-word`,ye.set(e,{destroy:a,update:s}),s()}function o(t){var i,a,s=t.restoreTextAlign,c=s===void 0?null:s,l=t.testForHeightReduction,u=l===void 0||l,d=r.overflowY;if(e.scrollHeight!==0&&(r.resize===`vertical`?e.style.resize=`none`:r.resize===`both`&&(e.style.resize=`horizontal`),u&&(i=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],n=e[1];t.style.scrollBehavior=`auto`,t.scrollTop=n,t.style.scrollBehavior=null})}}(e),e.style.height=``),a=r.boxSizing===`content-box`?e.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),r.maxHeight!==`none`&&a>parseFloat(r.maxHeight)?(r.overflowY===`hidden`&&(e.style.overflow=`scroll`),a=parseFloat(r.maxHeight)):r.overflowY!==`hidden`&&(e.style.overflow=`hidden`),e.style.height=a+`px`,c&&(e.style.textAlign=c),i&&i(),n!==a&&(e.dispatchEvent(new Event(`autosize:resized`,{bubbles:!0})),n=a),d!==r.overflow&&!c)){var f=r.textAlign;r.overflow===`hidden`&&(e.style.textAlign=f===`start`?`end`:`start`),o({restoreTextAlign:f,testForHeightReduction:!0})}}function s(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],W),e},xe.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],be),e});var Se=xe,Ce=e=>(Se(e),{destroy(){Se.destroy(e)}});Ce.update=Se.update,Ce.destroy=Se.destroy;var we=_(`<div class="flex items-center"><input type="checkbox" class="w-4 h-4 text-blue-600 bg-gray-50 border-gray-300 rounded-sm focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"/> <label class="ms-2 text-sm font-medium text-gray-900 dark:text-gray-300"> </label></div>`),Te=_(`<input type="checkbox" class="w-4 h-4 text-blue-600 bg-gray-50 border-gray-300 rounded-sm focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"/>`),Ee=_(`<option> </option>`),De=_(`<select class="my-2.5 ml-6 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"></select>`),Oe=_(`<textarea rows="8" class="option-textarea option-textarea--large block my-2.5 w-full p-2.5 text-sm text-gray-900 bg-white rounded-sm border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 svelte-fnac3m"></textarea>`),ke=_(`<textarea rows="2" class="option-textarea block my-2.5 w-full p-2.5 text-sm text-gray-900 bg-white rounded-sm border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"></textarea>`),Ae=_(`<div class="flex items-center"><!> <label class="ms-2 text-sm font-medium text-gray-900 dark:text-gray-300"> </label></div> <!>`,1),je=_(`<p class="text-sm text-gray-500 dark:text-gray-400 pl-6 text-pretty"> </p>`),Me=_(`<div class="flex flex-col pb-1"><!> <!></div>`),Ne={hash:`svelte-fnac3m`,code:`.option-textarea--large.svelte-fnac3m {box-sizing:border-box;field-sizing:content;overflow-y:auto;resize:vertical;}`};function Pe(r,i){d(i,!0),e(r,Ne);let a=A(i,`key`,7),p=A(i,`option`,7),g=A(i,`defaultOption`,7),_=A(i,`extraParams`,7),S=e=>{_()&&e!==void 0?ue({[a()]:e,..._()}):le(a(),e)},C=new Set([`CHAT_CONFIG_OVERRIDE`,`custom-loader`,`disclaimer-slot`,`buttons-slots`,`host-css`]),w=D(()=>C.has(a()));var T={get key(){return a()},set key(e){a(e),u()},get option(){return p()},set option(e){p(e),u()},get defaultOption(){return g()},set defaultOption(e){g(e),u()},get extraParams(){return _()},set extraParams(e){_(e),u()}},ee=Me(),M=x(ee),N=e=>{var t=we(),n=x(t);y(n);var r=f(n,2),i=x(r,!0);o(r),o(t),O(e=>{I(n,`id`,`input-${a()??``}`),ie(n,p().value),I(r,`for`,`input-${a()??``}`),c(i,e)},[()=>a().toUpperCase()]),k(`change`,n,e=>S(e.currentTarget.checked)),s(e,t)},P=e=>{var r=Ae(),i=re(r),l=x(i),u=e=>{var t=Te();y(t),O(()=>{I(t,`id`,`input-${a()??``}`),ie(t,p().value!==void 0)}),k(`change`,t,e=>S(e.currentTarget.checked?g().value:void 0)),s(e,t)};m(l,e=>{p().required||e(u)});var d=f(l,2),_=x(d,!0);o(d),o(i);var C=f(i,2),T=e=>{var r=v(),i=re(r),l=e=>{var r=De();t(r,21,()=>p().values,h,(e,t)=>{var n=Ee(),r=x(n,!0);o(n);var i={};O(()=>{c(r,j(t)),i!==(i=j(t))&&(n.value=(n.__value=j(t))??``)}),s(e,n)}),o(r);var i;n(r),O(()=>{I(r,`aria-label`,`Select ${a()}`),I(r,`name`,a()),i!==(i=p().value)&&(r.value=(r.__value=p().value)??``,te(r,p().value))}),k(`change`,r,e=>S(e.currentTarget.value)),s(e,r)},u=e=>{var t=Oe();b(t),O(()=>{ne(t,p().value),I(t,`aria-label`,a()),I(t,`id`,`input-${a()??``}`)}),k(`change`,t,e=>S(e.currentTarget.value)),s(e,t)},d=e=>{var t=ke();b(t),E(t,e=>Ce?.(e)),O(()=>{ne(t,p().value),I(t,`aria-label`,a()),I(t,`id`,`input-${a()??``}`)}),k(`change`,t,e=>S(e.currentTarget.value)),s(e,t)};m(i,e=>{`values`in p()?e(l):j(w)?e(u,1):e(d,-1)}),s(e,r)};m(C,e=>{(p().required||p().value!==void 0)&&e(T)}),O(e=>{I(d,`for`,`input-${a()??``}`),c(_,e)},[()=>a().toUpperCase()]),s(e,r)};m(M,e=>{p().type===`boolean`?e(N):p().type===`string`&&e(P,1)});var F=f(M,2),ae=e=>{var t=je(),n=x(t,!0);o(t),O(()=>c(n,p().description)),s(e,t)};return m(F,e=>{p().description&&e(ae)}),o(ee),s(r,ee),l(T)}P([`change`]),T(Pe,{key:{},option:{},defaultOption:{},extraParams:{}},[],[],{mode:`open`});var Fe=_(`<span class="option-group__active-dot svelte-blqg54" aria-hidden="true"></span> <span class="sr-only">(active)</span>`,1),Ie=_(`<details class="option-group overflow-hidden rounded-lg hover:shadow-xs border border-gray-200 bg-gray-100 dark:border-gray-600 dark:bg-gray-800"><summary class="flex cursor-pointer list-none items-center gap-2 px-4 py-3 text-sm font-semibold text-gray-900 dark:text-white [&amp;::-webkit-details-marker]:hidden"><span class="option-group__title min-w-0 flex-1 svelte-blqg54"> <!></span></summary> <div class="flex flex-col gap-4 px-4 py-6"><!> <!></div></details>`),G={hash:`svelte-blqg54`,code:`.option-group__title.svelte-blqg54 {display:inline-flex;align-items:center;gap:0.375rem;}.option-group__active-dot.svelte-blqg54 {flex-shrink:0;width:0.375rem;height:0.375rem;border-radius:50%;background-color:#2563eb;}`};function Le(n,r){d(r,!0),e(n,G);let i=A(r,`group`,7),a=A(r,`options`,7),p=A(r,`optionsDefinition`,7),h=A(r,`code`,7),_=A(r,`codeLoading`,7,!1),y=A(r,`embedTab`,7),b=A(r,`activeEmbedTab`,7),S=A(r,`isOpen`,7,!1),C=A(r,`onOpenChange`,7),w=D(()=>i().keys.filter(e=>e===`chat-class`&&b()!==`chat`||e===`force-theme`&&b()===`search-summary`&&!a()[`use-chat-config`]?.value||e===`host-css`&&a()[`use-chat-config`]?.value||e===`disclaimer-slot`&&(!a()[`opt-in`]?.value||a()[`use-chat-config`]?.value)||e===`buttons-slots`&&a()[`use-chat-config`]?.value?!1:e in p())),T=D(()=>j(w).length>0||h()!==void 0&&y()!==void 0),ee=D(()=>j(w).some(e=>{let t=a()[e];return t?e===`cache`?t.value!==!1:t.type===`boolean`?t.value===!0:t.type===`string`&&!t.required?t.value!==void 0:!1:!1})),E=e=>{let t=a()[e];return e===`cache`&&t?.type===`boolean`&&t.value===void 0?{...t,value:!0}:t},k=e=>{let t=e.currentTarget.open;C()?.(t)};var N={get group(){return i()},set group(e){i(e),u()},get options(){return a()},set options(e){a(e),u()},get optionsDefinition(){return p()},set optionsDefinition(e){p(e),u()},get code(){return h()},set code(e){h(e),u()},get codeLoading(){return _()},set codeLoading(e=!1){_(e),u()},get embedTab(){return y()},set embedTab(e){y(e),u()},get activeEmbedTab(){return b()},set activeEmbedTab(e){b(e),u()},get isOpen(){return S()},set isOpen(e=!1){S(e),u()},get onOpenChange(){return C()},set onOpenChange(e){C(e),u()}},P=v(),F=re(P),I=e=>{var n=Ie(),r=x(n),a=x(r),l=x(a),u=f(l),d=e=>{var t=Fe();g(2),s(e,t)};m(u,e=>{j(ee)&&e(d)}),o(a),o(r);var v=f(r,2),C=x(v),T=e=>{ve(e,{get code(){return h()},get loading(){return _()},get embedTab(){return y()}})};m(C,e=>{h()!==void 0&&y()!==void 0&&e(T)}),t(f(C,2),16,()=>j(w),e=>e,(e,t)=>{{let n=D(()=>E(t)),r=D(()=>t===`force-theme`&&b()===`search-summary`?{"use-chat-config":!0}:t===`host-css`&&b()===`search-summary`?{"buttons-slots":p()[`buttons-slots`].value}:void 0);Pe(e,{get key(){return t},get option(){return j(n)},get defaultOption(){return p()[t]},get extraParams(){return j(r)}})}}),o(v),o(n),O(()=>{n.open=S(),c(l,`${i().label??``} `)}),M(`toggle`,n,k),s(e,n)};return m(F,e=>{j(T)&&e(I)}),s(n,P),l(N)}T(Le,{group:{},options:{},optionsDefinition:{},code:{},codeLoading:{},embedTab:{},activeEmbedTab:{},isOpen:{},onOpenChange:{}},[],[],{mode:`open`});var Re=_(`<button type="button"> </button>`),ze=_(`<div class="flex flex-col gap-1.5"><span class="text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">Styling approach</span> <div class="flex rounded-lg shadow-xs" role="group" aria-label="Styling approach"></div></div>`);function Be(e,n){d(n,!0);let r=A(n,`useChatConfig`,7),i=[{id:!1,label:`Host CSS`},{id:!0,label:`ChatConfig`}];var p={get useChatConfig(){return r()},set useChatConfig(e){r(e),u()}},m=ze(),h=f(x(m),2);return t(h,21,()=>i,e=>String(e.id),(e,t)=>{var n=Re(),i=x(n,!0);o(n),O(()=>{I(n,`aria-pressed`,r()===j(t).id),a(n,1,`flex-1 px-3 py-2 text-sm font-medium border first:rounded-s-lg last:rounded-e-lg focus:ring-2 focus:ring-gray-500 focus:z-10
949
949
  ${r()===j(t).id?`text-gray-900 bg-gray-100 border-gray-300 dark:text-gray-100 dark:bg-gray-600 dark:border-gray-500`:`cursor-pointer text-gray-700 bg-white border-gray-200 hover:bg-gray-50 dark:text-gray-300 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700`}`),c(i,j(t).label)}),k(`click`,n,()=>le(`use-chat-config`,j(t).id)),s(e,n)}),o(h),o(m),s(e,m),l(p)}P([`click`]),T(Be,{useChatConfig:{}},[],[],{mode:`open`});var Ve=C(_(`<link href="https://cdn.jsdelivr.net/npm/flowbite@3.1.2/dist/flowbite.min.css" rel="stylesheet"/> <script src="https://cdn.jsdelivr.net/npm/flowbite@3.1.2/dist/flowbite.min.js"><\/script>`,1)),He=_(`<div id="sidebar" class="dark:bg-gray-900 flex h-screen w-full flex-col bg-gray-50 shadow-md" role="complementary" aria-label="Configuration options and code snippets"><div class="sidebar-scroll flex min-h-0 flex-1 flex-col overflow-y-auto svelte-14zt5hx"><div class="flex flex-col gap-4 p-6"><!> <!> <!></div></div> <div class="sidebar-footer shrink-0 px-6 pb-6 pt-2"><!></div></div>`),Ue={hash:`svelte-14zt5hx`,code:`
950
950
  /* For WebKit browsers (Chrome, Safari) */.sidebar-scroll.svelte-14zt5hx::-webkit-scrollbar {width:8px; /* width of the entire scrollbar */height:8px; /* height for horizontal scrollbar */}.sidebar-scroll.svelte-14zt5hx::-webkit-scrollbar-track {background:transparent;}.sidebar-scroll.svelte-14zt5hx::-webkit-scrollbar-thumb {visibility:hidden;border-radius:4px;background-color:rgba(0, 0, 0, 0.3);transition:background-color 0.2s;}.sidebar-scroll.svelte-14zt5hx:hover::-webkit-scrollbar-thumb,
951
951
  .sidebar-scroll.svelte-14zt5hx:active::-webkit-scrollbar-thumb,
@@ -1 +1 @@
1
- {"version":"1786005016055"}
1
+ {"version":"1786381130043"}
@@ -4,12 +4,12 @@
4
4
  <meta charset="utf-8" />
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <link href="./_app/immutable/entry/start.D9PbhF5f.js" rel="modulepreload">
8
- <link href="./_app/immutable/chunks/Bb3IJ5WU.js" rel="modulepreload">
7
+ <link href="./_app/immutable/entry/start.B7bIbuwB.js" rel="modulepreload">
8
+ <link href="./_app/immutable/chunks/BDm2oSnh.js" rel="modulepreload">
9
9
  <link href="./_app/immutable/chunks/rEsbAd0y.js" rel="modulepreload">
10
10
  <link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
11
11
  <link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
12
- <link href="./_app/immutable/entry/app.B8izU9R5.js" rel="modulepreload">
12
+ <link href="./_app/immutable/entry/app.JJhipW03.js" rel="modulepreload">
13
13
  <link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
14
14
  <link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
15
15
 
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_o6mesf = {
21
+ __sveltekit_1yru0b6 = {
22
22
  base: new URL(".", location).pathname.slice(0, -1),
23
23
  assets: "/configurator"
24
24
  };
@@ -26,8 +26,8 @@
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("./_app/immutable/entry/start.D9PbhF5f.js"),
30
- import("./_app/immutable/entry/app.B8izU9R5.js")
29
+ import("./_app/immutable/entry/start.B7bIbuwB.js"),
30
+ import("./_app/immutable/entry/app.JJhipW03.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
@@ -4,12 +4,12 @@
4
4
  <meta charset="utf-8" />
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <link href="./_app/immutable/entry/start.D9PbhF5f.js" rel="modulepreload">
8
- <link href="./_app/immutable/chunks/Bb3IJ5WU.js" rel="modulepreload">
7
+ <link href="./_app/immutable/entry/start.B7bIbuwB.js" rel="modulepreload">
8
+ <link href="./_app/immutable/chunks/BDm2oSnh.js" rel="modulepreload">
9
9
  <link href="./_app/immutable/chunks/rEsbAd0y.js" rel="modulepreload">
10
10
  <link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
11
11
  <link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
12
- <link href="./_app/immutable/entry/app.B8izU9R5.js" rel="modulepreload">
12
+ <link href="./_app/immutable/entry/app.JJhipW03.js" rel="modulepreload">
13
13
  <link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
14
14
  <link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
15
15
 
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_o6mesf = {
21
+ __sveltekit_1yru0b6 = {
22
22
  base: new URL(".", location).pathname.slice(0, -1),
23
23
  assets: "/configurator"
24
24
  };
@@ -26,8 +26,8 @@
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("./_app/immutable/entry/start.D9PbhF5f.js"),
30
- import("./_app/immutable/entry/app.B8izU9R5.js")
29
+ import("./_app/immutable/entry/start.B7bIbuwB.js"),
30
+ import("./_app/immutable/entry/app.JJhipW03.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
package/index.cjs CHANGED
@@ -21104,8 +21104,10 @@ class LiipGPTClientPrimitive {
21104
21104
  lang: options2.lang,
21105
21105
  feature: options2.features?.join(","),
21106
21106
  referrer: options2.referrer,
21107
+ source: options2.source,
21107
21108
  ...options2.selectorValues ?? {},
21108
21109
  ...options2.mode ? { mode: options2.mode } : {},
21110
+ ...options2.cache ? { cache: true } : {},
21109
21111
  ...options2.predefinedQuestionId ? { predefinedQuestionId: options2.predefinedQuestionId } : {},
21110
21112
  ...options2.switchQuestionId ? { switchQuestionId: options2.switchQuestionId } : {},
21111
21113
  chat: "true",
package/index.d.ts CHANGED
@@ -13501,8 +13501,12 @@ export type ChatOptions = {
13501
13501
  features?: string[];
13502
13502
  version?: string;
13503
13503
  referrer?: string;
13504
+ /** Entrypoint the chat was opened from, sent to the backend for tracking. */
13505
+ source?: string;
13504
13506
  /** Usage context sent to the backend (e.g. "search" for the search summary widget). */
13505
13507
  mode?: string;
13508
+ /** Ask the backend to cache/replay the answer (first question of a conversation only). */
13509
+ cache?: boolean;
13506
13510
  selectorValues?: Record<string, string | string[] | Record<string, unknown>>;
13507
13511
  predefinedQuestionId?: string;
13508
13512
  switchQuestionId?: string;
package/index.js CHANGED
@@ -21026,8 +21026,10 @@ class LiipGPTClientPrimitive {
21026
21026
  lang: options2.lang,
21027
21027
  feature: options2.features?.join(","),
21028
21028
  referrer: options2.referrer,
21029
+ source: options2.source,
21029
21030
  ...options2.selectorValues ?? {},
21030
21031
  ...options2.mode ? { mode: options2.mode } : {},
21032
+ ...options2.cache ? { cache: true } : {},
21031
21033
  ...options2.predefinedQuestionId ? { predefinedQuestionId: options2.predefinedQuestionId } : {},
21032
21034
  ...options2.switchQuestionId ? { switchQuestionId: options2.switchQuestionId } : {},
21033
21035
  chat: "true",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liip/liipgpt",
3
- "version": "3.7.2",
3
+ "version": "3.8.1",
4
4
  "description": "LiipGPT Chat and Library",
5
5
  "type": "module",
6
6
  "exports": {