@liip/liipgpt 3.6.0 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/liipgpt-button.iife.js +31 -31
- package/chat/liipgpt-chat.iife.js +17 -17
- package/config/index.cjs +7 -1
- package/config/index.d.ts +14 -2
- package/config/index.js +7 -1
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{zUel1ZW0.js → BhtfdPmu.js} +6 -6
- package/configurator/_app/immutable/chunks/{CKDKLu5Y.js → BjD-MS84.js} +1 -1
- package/configurator/_app/immutable/chunks/{CnzkQxWo.js → BsL0-YLl.js} +1 -1
- package/configurator/_app/immutable/chunks/{Db3xJ3R_.js → C3C5ovFp.js} +1 -1
- package/configurator/_app/immutable/chunks/{CFfgUb3G.js → CI5X5-2i.js} +2 -2
- package/configurator/_app/immutable/chunks/CNPN3doH.js +1 -0
- package/configurator/_app/immutable/chunks/CZiOHSGl.js +1 -0
- package/configurator/_app/immutable/chunks/Cfhl-lQn.js +1 -0
- package/configurator/_app/immutable/chunks/D6Qx_EAy.js +29 -0
- package/configurator/_app/immutable/chunks/{BwV52vQs.js → DGMq4YTc.js} +1 -1
- package/configurator/_app/immutable/chunks/{qE7I_Q4N.js → DqWrDTiT.js} +1 -1
- package/configurator/_app/immutable/chunks/{BTwygYhA.js → DuT8PUr2.js} +1 -1
- package/configurator/_app/immutable/chunks/{EDJuo58-.js → GwQP32Cz.js} +3 -3
- package/configurator/_app/immutable/chunks/jnZHBu2H.js +143 -0
- package/configurator/_app/immutable/chunks/{CqPRQdP7.js → yuKWODQS.js} +2 -2
- package/configurator/_app/immutable/entry/{app.BS_BNglT.js → app.C0j_jYEe.js} +2 -2
- package/configurator/_app/immutable/entry/start.B1J-yqeo.js +1 -0
- package/configurator/_app/immutable/nodes/{0.D_2XXaJQ.js → 0.ieD1cNha.js} +2 -2
- package/configurator/_app/immutable/nodes/{1.BnWVDJCZ.js → 1.TURI2PFu.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.SUtdjb5A.js → 2.B2VHw2_C.js} +3 -3
- package/configurator/_app/immutable/nodes/{3.Bo3t-YCM.js → 3.CtLGhOnC.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +11 -4
- package/index.d.ts +29 -4
- package/index.js +11 -4
- package/package.json +1 -1
- package/search-summary/liipgpt-search-summary.iife.js +6 -6
- package/configurator/_app/immutable/chunks/B2vNY6lx.js +0 -143
- package/configurator/_app/immutable/chunks/BGwzfQ_H.js +0 -1
- package/configurator/_app/immutable/chunks/CX0dfddQ.js +0 -1
- package/configurator/_app/immutable/chunks/DFBUyDYh.js +0 -29
- package/configurator/_app/immutable/chunks/DUr69vGU.js +0 -1
- package/configurator/_app/immutable/entry/start.B8ApCMix.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/
|
|
2
|
-
import{A as e,B as t,E as n,Et as r,G as i,H as a,It as o,J as s,Kt as c,Lt as l,M as u,O as d,Ot as f,R as p,T as m,Ut as h,V as g,Wt as _,Y as v,_t as y,at as b,b as x,bt as S,c as C,ct as ee,i as w,jt as T,k as E,kt as D,mt as O,nt as k,o as A,pt as j,q as M,s as te,u as N,ut as P,v as F,w as I,wt as L,xt as R,yt as z,z as B}from"../chunks/C00ruT0L.js";import{t as V}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/Cfhl-lQn.js","../chunks/CI5X5-2i.js","../chunks/GwQP32Cz.js","../chunks/C00ruT0L.js","../chunks/CibALFW0.js","../chunks/MRyhzcyW.js","../chunks/CZiOHSGl.js","../chunks/CNPN3doH.js","../chunks/DjVmpym-.js","../chunks/D6Qx_EAy.js","../chunks/DV91TmsB.js","../chunks/CqCdl07t.js","../chunks/jnZHBu2H.js","../chunks/C3C5ovFp.js","../chunks/CFKVnMbq.js","../chunks/DVeOoWpz.js","../chunks/Bo0U8J3e.js","../chunks/BmUm-Ak4.js","../chunks/DuT8PUr2.js","../chunks/yuKWODQS.js","../chunks/tFLMI64R.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{A as e,B as t,E as n,Et as r,G as i,H as a,It as o,J as s,Kt as c,Lt as l,M as u,O as d,Ot as f,R as p,T as m,Ut as h,V as g,Wt as _,Y as v,_t as y,at as b,b as x,bt as S,c as C,ct as ee,i as w,jt as T,k as E,kt as D,mt as O,nt as k,o as A,pt as j,q as M,s as te,u as N,ut as P,v as F,w as I,wt as L,xt as R,yt as z,z as B}from"../chunks/C00ruT0L.js";import{t as V}from"../chunks/BjD-MS84.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 G,s as ne}from"../chunks/BhtfdPmu.js";import"../chunks/DV91TmsB.js";import"../chunks/D6Qx_EAy.js";import"../chunks/MRyhzcyW.js";import"../chunks/tFLMI64R.js";import"../chunks/DVeOoWpz.js";import{t as re}from"../chunks/DGMq4YTc.js";import{t as K}from"../chunks/DqWrDTiT.js";import{n as q,t as J}from"../chunks/GwQP32Cz.js";import"../chunks/CZiOHSGl.js";import{n as Y,r as X}from"../chunks/CNPN3doH.js";import{R as Z,a as ie,c as ae,d as oe,h as se,i as ce,l as le,n as ue,o as de,r as fe,s as pe,t as me,u as he,z as ge}from"../chunks/CI5X5-2i.js";var _e=v(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),ve={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
5
|
}}`};function ye(e,t){l(t,!1),E(e,ve);let n=A(t,`name`,12),r=A(t,`key`,12),a=A(t,`value`,12);var s={get name(){return n()},set name(e){n(e),T()},get key(){return r()},set key(e){r(e),T()},get value(){return a()},set value(e){a(e),T()}},c=_e(),u=z(c),d=R(u,2),f=z(d,!0);return _(d),_(c),j(()=>{F(c,`title`,`Color ${r()}: ${a()}`),I(u,`background-color: var(--color-${n()??``}-${r()??``});`),i(f,r())}),M(e,c),o(s)}w(ye,{name:{},key:{},value:{}},[],[],{mode:`open`});var be=v(`<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 xe(e){M(e,be())}w(xe,{},[],[],{mode:`open`});var Se=v(`<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
|
|
@@ -44,4 +44,4 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
|
|
|
44
44
|
/* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}#chat-wrapper.svelte-1uha8ag liipgpt-chat {display:block;width:100%;height:100%;}#chat-wrapper.svelte-1uha8ag liipgpt-button {display:inline-block;}#chat-wrapper.search-summary-preview.svelte-1uha8ag {
|
|
45
45
|
/* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;padding:1.5rem;}#chat-wrapper.search-summary-preview.svelte-1uha8ag liipgpt-search-summary {display:block;}#chat-wrapper.has-bg-image.svelte-1uha8ag,
|
|
46
46
|
#chat-wrapper.svelte-1uha8ag:has(#preview-form:where(.svelte-1uha8ag)) {
|
|
47
|
-
/* 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 $(t,i){l(i,!0),E(t,Ve);let c=te(i,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),u=f(()=>i.data);O(()=>{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 d=e=>`/build/${e}/liipgpt-${e}.iife.js`,v=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),x=async e=>{e===`build`&&(await H(()=>import(d(`chat`)),[],import.meta.url),await H(()=>import(d(`button`)),[],import.meta.url),await H(()=>import(d(`search-summary`)),[],import.meta.url)),e===`dev`&&(await H(()=>import(`../chunks/
|
|
47
|
+
/* 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 $(t,i){l(i,!0),E(t,Ve);let c=te(i,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),u=f(()=>i.data);O(()=>{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 d=e=>`/build/${e}/liipgpt-${e}.iife.js`,v=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),x=async e=>{e===`build`&&(await H(()=>import(d(`chat`)),[],import.meta.url),await H(()=>import(d(`button`)),[],import.meta.url),await H(()=>import(d(`search-summary`)),[],import.meta.url)),e===`dev`&&(await H(()=>import(`../chunks/Cfhl-lQn.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/DuT8PUr2.js`),__vite__mapDeps([18,2,3,4,5,6,10,13,7,8,9,14,16,17]),import.meta.url),await H(()=>import(`../chunks/yuKWODQS.js`),__vite__mapDeps([19,8,2,3,4,5,6,11,14,16,20]),import.meta.url)),e===`server`&&(H(()=>import(U(i.data.options,`chat`)),[],import.meta.url),H(()=>import(U(i.data.options,`button`)),[],import.meta.url),H(()=>import(U(i.data.options,`search-summary`)),[],import.meta.url))},ee=f(()=>i.data.options?.[`preview-mode`]?.value??`server`);O(()=>{x(b(ee))});let w=`./sidebar${re.url.search}`,T=r(void 0),k=r(void 0),A=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};O(()=>{b(T)&&A(b(T),b(u).options.CHAT_CONFIG_OVERRIDE.value||``)}),O(()=>{b(k)&&b(u).embedTab===`chat`?A(b(k),b(u).options.onclosechat.value||``):b(k)&&b(k).replaceChildren()});let I=f(()=>b(u)&&b(u).options[`preview-components`].value),B=f(()=>b(u).embedTab===`chat`),q=f(()=>b(u).embedTab===`search-summary`);O(()=>{if(!b(q)){W();return}let e=b(u).options[`use-chat-config`]?.value?``:b(u).options[`host-css`]?.value??``;e?ne(e):W()});var J=Be();e(`1uha8ag`,e=>{var t=s(),n=S(t),r=e=>{P(()=>{y.title=`LiipGPT Configurator | Components`})},i=e=>{P(()=>{y.title=`LiipGPT Configurator`})};a(n,e=>{b(u).options[`preview-components`].value?e(r,1):e(i,-1)}),M(e,t)});var Y=z(J);let X;var Z=z(Y),ie=e=>{var t=Ie();j(()=>F(t,`src`,w)),M(e,t)};a(Z,e=>{b(u).options[`hide-sidebar`].value||e(ie)}),_(Y);var ae=R(Y,2),oe=e=>{K(e,{mode:`show`})};a(ae,e=>{b(u).options[`hide-sidebar`].value&&e(oe)}),g(R(ae,2),()=>b(u),e=>{var t=s(),n=S(t),r=e=>{var t=s();D(S(t),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,C(()=>c))}),M(e,t)},i=e=>{var t=ze();let n;var r=z(t),i=e=>{var t=Le(),n=R(z(t),6),r=z(n),i=R(z(r),6),a=R(z(i),2),o=R(z(a),14),s=R(z(o),2),c=z(s);c.value=c.__value=``;var l=R(c);l.value=l.__value=`ch`;var u=R(l);u.value=u.__value=`de`;var d=R(u);d.value=d.__value=`at`,_(s),_(o);var f=R(o,12),p=R(z(f),2),m=z(p);m.value=m.__value=``;var g=R(m);g.value=g.__value=`a`;var v=R(g);v.value=v.__value=`b`;var y=R(v);y.value=y.__value=`c`,_(p),_(f),h(2),_(a),_(i),h(16),_(r),h(2),_(n),_(t),M(e,t)};a(r,e=>{b(B)&&b(u).options.flyout.value&&b(u).options[`preview-form`].value&&e(i)});var o=R(r,2),c=e=>{var t=s(),n=S(t),r=e=>{var t=Re();j(()=>F(t,`src`,b(u).options[`preview-background`].value)),M(e,t)},i=f(()=>v(b(u).options[`preview-background`].value));a(n,e=>{b(i)&&e(r)}),M(e,t)};a(o,e=>{b(B)&&b(u).options.flyout.value&&b(u).options[`preview-background`].value&&e(c)});var l=R(o,2);N(l,e=>L(T,e),()=>b(T));var d=R(l,2);p(d,()=>G(b(u).options,b(u).embedTab)),N(R(d,2),e=>L(k,e),()=>b(k)),_(t),j(e=>n=m(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":b(u).options.flyout.value&&b(u).options[`preview-background`].value&&v(b(u).options[`preview-background`].value),"search-summary-preview":b(q)})]),M(e,t)};a(n,e=>{b(I)?e(r):e(i,-1)}),M(e,t)}),_(J),j(()=>{m(J,1,n([{"components-preview":b(I)}]),`svelte-1uha8ag`),X=m(Y,1,`sidebar-slot svelte-1uha8ag`,null,X,{"sidebar-slot--hidden":b(u).options[`hide-sidebar`].value})}),M(t,J),o()}w($,{},[],[],{mode:`open`});export{$ as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,C as r,Et as i,G as a,H as o,It as s,J as c,Lt as l,O as u,Ot as d,S as f,St as p,T as m,Ut as h,Wt as g,Y as _,_ as v,at as y,bt as b,c as x,et as S,gt as C,i as w,jt as T,k as ee,mt as E,nt as te,o as D,pt as O,q as k,s as A,tt as j,u as M,v as N,wt as P,x as ne,xt as F,y as re,yt as I,z as ie}from"../chunks/C00ruT0L.js";import"../chunks/
|
|
1
|
+
import{$ as e,A as t,B as n,C as r,Et as i,G as a,H as o,It as s,J as c,Lt as l,O as u,Ot as d,S as f,St as p,T as m,Ut as h,Wt as g,Y as _,_ as v,at as y,bt as b,c as x,et as S,gt as C,i as w,jt as T,k as ee,mt as E,nt as te,o as D,pt as O,q as k,s as A,tt as j,u as M,v as N,wt as P,x as ne,xt as F,y as re,yt as I,z as ie}from"../chunks/C00ruT0L.js";import"../chunks/BjD-MS84.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/Ct405RO9.js";import{i as se,r as ce}from"../chunks/BhtfdPmu.js";import"../chunks/DV91TmsB.js";import"../chunks/D6Qx_EAy.js";import"../chunks/MRyhzcyW.js";import"../chunks/tFLMI64R.js";import"../chunks/DVeOoWpz.js";import"../chunks/DGMq4YTc.js";import{n as le,r as ue,t as de}from"../chunks/DqWrDTiT.js";import"../chunks/GwQP32Cz.js";import"../chunks/CZiOHSGl.js";import"../chunks/CNPN3doH.js";import"../chunks/jnZHBu2H.js";import"../chunks/CI5X5-2i.js";import"../chunks/C3C5ovFp.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=[],te=[],D=[],O=null,k=null,A=``,j=``,M=0,N;for(let t=0;t<e.length;t++){let P=e.charCodeAt(t);if(!(P===u&&(N=e.charCodeAt(t+1),N===l)))if(P===n)A===``&&(M=t),A+=e.slice(t,t+2),t+=1;else if(P===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(N=e.charCodeAt(a),N===n)a+=1;else if(N===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));te.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(P===o||P===a){let n=ee(e,t,P,C);A+=e.slice(t,n+1),t=n}else{if((P===d||P===l||P===f)&&(N=e.charCodeAt(t+1))&&(N===d||N===l||N===f||N===u&&(N=e.charCodeAt(t+2))&&N==l))continue;if(P===l){if(A.length===0)continue;N=A.charCodeAt(A.length-1),N!==d&&N!==l&&N!==f&&(A+=` `)}else if(P===y&&e.charCodeAt(t+1)===y&&A.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(N=e.charCodeAt(f),N===n)f+=1;else if(N===o||N===a)f=ee(e,f,N,C);else if(N===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(N=e.charCodeAt(t),N===n)t+=1;else if(N===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&N===s)d=A.length+f-u;else if(N===c&&l.length===0){A+=e.slice(u,f),t=f;break}else if(N===h)l+=`)`;else if(N===_)l+=`]`;else if(N===p)l+=`}`;else if((N===m||e.length-1===f)&&l.length===0){t=f-1,A+=e.slice(u,f);break}else (N===g||N===v||N===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(A,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]),O?O.nodes.push(f):E.push(f),A=``}else if(P===c&&A.charCodeAt(0)===b)k=w(A),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O?O.nodes.push(k):E.push(k),A=``,k=null;else if(P===c&&j[j.length-1]!==`)`){let e=T(A);if(!e){if(A.length===0)continue;throw new S(`Invalid declaration: \`${A.trim()}\``,C?[C,M,t]:null)}C&&(e.src=[C,M,t],e.dst=[C,M,t]),O?O.nodes.push(e):E.push(e),A=``}else if(P===p&&j[j.length-1]!==`)`)j+=`}`,k=H(A.trim()),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O&&O.nodes.push(k),D.push(O),O=k,A=``,k=null;else if(P===m&&j[j.length-1]!==`)`){if(j===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(j=j.slice(0,-1),A.length>0)if(A.charCodeAt(0)===b)k=w(A),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O?O.nodes.push(k):E.push(k),A=``,k=null;else{let e=A.indexOf(`:`);if(O){let n=T(A,e);if(!n)throw new S(`Invalid declaration: \`${A.trim()}\``,C?[C,M,t]:null);C&&(n.src=[C,M,t],n.dst=[C,M,t]),O.nodes.push(n)}}let e=D.pop()??null;e===null&&O&&E.push(O),O=e,A=``,k=null}else if(P===h)j+=`)`,A+=`(`;else if(P===g){if(j[j.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);j=j.slice(0,-1),A+=`)`}else{if(A.length===0&&(P===d||P===l||P===f))continue;A===``&&(M=t),A+=String.fromCharCode(P)}}}if(A.charCodeAt(0)===b){let t=w(A);C&&(t.src=[C,M,e.length],t.dst=[C,M,e.length]),E.push(t)}if(j.length>0&&O){if(O.kind===`rule`)throw new S(`Missing closing } at ${O.selector}`,O.src?[O.src[0],O.src[1],O.src[1]]:null);if(O.kind===`at-rule`)throw new S(`Missing closing } at ${O.name} ${O.params}`,O.src?[O.src[0],O.src[1],O.src[1]]:null)}return te.length>0?te.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 te(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 D=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 O(e,t){return(D.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var k=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&&(O(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=te(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=D.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(!O(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=te(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)}},A=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 j(e){return{kind:`word`,value:e}}function M(e,t){return{kind:`function`,value:e,nodes:t}}function N(e){return{kind:`separator`,value:e}}function P(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+P(n.nodes)+`)`}return t}var ne=92,F=41,re=58,I=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 ne:i+=e[o]+e[o+1],o++;break;case de:{if(i.length>0){let e=j(i);r?r.nodes.push(e):t.push(e),i=``}let n=j(e[o]);r?r.nodes.push(n):t.push(n);break}case re:case I:case ae:case oe:case se:case ce:case fe:case pe:{if(i.length>0){let e=j(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!==re&&a!==I&&a!==ae&&a!==oe&&a!==se&&a!==ce&&a!==fe&&a!==pe));s++);o=s-1;let c=N(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===ne)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case le:{let e=M(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case F:{let e=n.pop();if(i.length>0){let t=j(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(j(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 A(()=>new Set),o=new A(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new A(()=>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:P(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} {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1780479677645"}
|
package/configurator/index.html
CHANGED
|
@@ -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.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.B1J-yqeo.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/BjD-MS84.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/C00ruT0L.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.
|
|
12
|
+
<link href="./_app/immutable/entry/app.C0j_jYEe.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
|
-
|
|
21
|
+
__sveltekit_1usn2b4 = {
|
|
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.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.B1J-yqeo.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.C0j_jYEe.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.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.B1J-yqeo.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/BjD-MS84.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/C00ruT0L.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.
|
|
12
|
+
<link href="./_app/immutable/entry/app.C0j_jYEe.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
|
-
|
|
21
|
+
__sveltekit_1usn2b4 = {
|
|
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.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.B1J-yqeo.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.C0j_jYEe.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/index.cjs
CHANGED
|
@@ -19693,7 +19693,10 @@ var translationSchema = exports_external.object({
|
|
|
19693
19693
|
lightMode: exports_external.string(),
|
|
19694
19694
|
darkMode: exports_external.string(),
|
|
19695
19695
|
ariaMainNavigation: exports_external.string(),
|
|
19696
|
-
|
|
19696
|
+
ariaMainNavigationInfo: exports_external.string(),
|
|
19697
|
+
ariaMainNavigationLinks: exports_external.string(),
|
|
19698
|
+
ariaMainNavigationLanguageSwitch: exports_external.string(),
|
|
19699
|
+
ariaMainNavigationColorMode: exports_external.string(),
|
|
19697
19700
|
ariaGotoMainNavigation: exports_external.string(),
|
|
19698
19701
|
ariaAskQuestion: exports_external.string(),
|
|
19699
19702
|
ariaAskQuestionRegion: exports_external.string(),
|
|
@@ -19708,6 +19711,7 @@ var translationSchema = exports_external.object({
|
|
|
19708
19711
|
ariaQuestionSent: exports_external.string(),
|
|
19709
19712
|
ariaAnswerReady: exports_external.string(),
|
|
19710
19713
|
ariaAnswerFinished: exports_external.string(),
|
|
19714
|
+
ariaAnswerFinishedWithSelectedTopic: exports_external.string(),
|
|
19711
19715
|
ariaAskQuestionAgain: exports_external.string(),
|
|
19712
19716
|
ariaAnswerGood: exports_external.string(),
|
|
19713
19717
|
ariaAnswerBad: exports_external.string(),
|
|
@@ -19729,6 +19733,7 @@ var translationSchema = exports_external.object({
|
|
|
19729
19733
|
ariaAllSelected: exports_external.string(),
|
|
19730
19734
|
ariaAllUnselected: exports_external.string(),
|
|
19731
19735
|
ariaAllReseted: exports_external.string(),
|
|
19736
|
+
ariaChangeTopic: exports_external.string(),
|
|
19732
19737
|
popups: exports_external.array(popup).optional(),
|
|
19733
19738
|
termsAcceptButton: exports_external.string().optional(),
|
|
19734
19739
|
termsReadButton: exports_external.string().optional(),
|
|
@@ -19740,6 +19745,7 @@ var translationSchema = exports_external.object({
|
|
|
19740
19745
|
selectNone: exports_external.string(),
|
|
19741
19746
|
resetToDefaults: exports_external.string(),
|
|
19742
19747
|
messageTooLong: exports_external.string(),
|
|
19748
|
+
selectedTopic: exports_external.string(),
|
|
19743
19749
|
changeTopic: exports_external.string(),
|
|
19744
19750
|
searchSummaryExpand: exports_external.string(),
|
|
19745
19751
|
searchSummaryCollapse: exports_external.string(),
|
|
@@ -20343,7 +20349,7 @@ class ServerStorage {
|
|
|
20343
20349
|
var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
|
|
20344
20350
|
|
|
20345
20351
|
// src/lib/client/api/get-user-data.ts
|
|
20346
|
-
var getUserData = async (restClient) => {
|
|
20352
|
+
var getUserData = async (restClient, startParameters) => {
|
|
20347
20353
|
try {
|
|
20348
20354
|
const userId = agnosticStorage.getItem("liipgpt:uID") || agnosticStorage.getItem("uID");
|
|
20349
20355
|
const init = {
|
|
@@ -20354,7 +20360,8 @@ var getUserData = async (restClient) => {
|
|
|
20354
20360
|
},
|
|
20355
20361
|
body: JSON.stringify({
|
|
20356
20362
|
referrer: globalThis?.document?.referrer || null,
|
|
20357
|
-
uID: userId
|
|
20363
|
+
uID: userId,
|
|
20364
|
+
...startParameters ? { startParameters } : {}
|
|
20358
20365
|
})
|
|
20359
20366
|
};
|
|
20360
20367
|
const response = await restClient.fetchData("/login", userDataResponseSchema, {}, init).catch((e) => {
|
|
@@ -20993,7 +21000,7 @@ class LiipGPTClientPrimitive {
|
|
|
20993
21000
|
const restClient = new RestClient(restOptions);
|
|
20994
21001
|
this.internalData = {
|
|
20995
21002
|
restClient,
|
|
20996
|
-
metadata: getUserData(restClient),
|
|
21003
|
+
metadata: getUserData(restClient, options2.startParameters),
|
|
20997
21004
|
searchResponseMap: new Map,
|
|
20998
21005
|
chatResponseMap: new Map,
|
|
20999
21006
|
conversationMap: new Map
|
package/index.d.ts
CHANGED
|
@@ -5168,7 +5168,10 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
|
|
|
5168
5168
|
lightMode: z.ZodString;
|
|
5169
5169
|
darkMode: z.ZodString;
|
|
5170
5170
|
ariaMainNavigation: z.ZodString;
|
|
5171
|
-
|
|
5171
|
+
ariaMainNavigationInfo: z.ZodString;
|
|
5172
|
+
ariaMainNavigationLinks: z.ZodString;
|
|
5173
|
+
ariaMainNavigationLanguageSwitch: z.ZodString;
|
|
5174
|
+
ariaMainNavigationColorMode: z.ZodString;
|
|
5172
5175
|
ariaGotoMainNavigation: z.ZodString;
|
|
5173
5176
|
ariaAskQuestion: z.ZodString;
|
|
5174
5177
|
ariaAskQuestionRegion: z.ZodString;
|
|
@@ -5183,6 +5186,7 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
|
|
|
5183
5186
|
ariaQuestionSent: z.ZodString;
|
|
5184
5187
|
ariaAnswerReady: z.ZodString;
|
|
5185
5188
|
ariaAnswerFinished: z.ZodString;
|
|
5189
|
+
ariaAnswerFinishedWithSelectedTopic: z.ZodString;
|
|
5186
5190
|
ariaAskQuestionAgain: z.ZodString;
|
|
5187
5191
|
ariaAnswerGood: z.ZodString;
|
|
5188
5192
|
ariaAnswerBad: z.ZodString;
|
|
@@ -5204,6 +5208,7 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
|
|
|
5204
5208
|
ariaAllSelected: z.ZodString;
|
|
5205
5209
|
ariaAllUnselected: z.ZodString;
|
|
5206
5210
|
ariaAllReseted: z.ZodString;
|
|
5211
|
+
ariaChangeTopic: z.ZodString;
|
|
5207
5212
|
popups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5208
5213
|
hash: z.ZodString;
|
|
5209
5214
|
title: z.ZodString;
|
|
@@ -5233,6 +5238,7 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
|
|
|
5233
5238
|
selectNone: z.ZodString;
|
|
5234
5239
|
resetToDefaults: z.ZodString;
|
|
5235
5240
|
messageTooLong: z.ZodString;
|
|
5241
|
+
selectedTopic: z.ZodString;
|
|
5236
5242
|
changeTopic: z.ZodString;
|
|
5237
5243
|
searchSummaryExpand: z.ZodString;
|
|
5238
5244
|
searchSummaryCollapse: z.ZodString;
|
|
@@ -5981,7 +5987,10 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
5981
5987
|
lightMode: z.ZodOptional<z.ZodString>;
|
|
5982
5988
|
darkMode: z.ZodOptional<z.ZodString>;
|
|
5983
5989
|
ariaMainNavigation: z.ZodOptional<z.ZodString>;
|
|
5984
|
-
|
|
5990
|
+
ariaMainNavigationInfo: z.ZodOptional<z.ZodString>;
|
|
5991
|
+
ariaMainNavigationLinks: z.ZodOptional<z.ZodString>;
|
|
5992
|
+
ariaMainNavigationLanguageSwitch: z.ZodOptional<z.ZodString>;
|
|
5993
|
+
ariaMainNavigationColorMode: z.ZodOptional<z.ZodString>;
|
|
5985
5994
|
ariaGotoMainNavigation: z.ZodOptional<z.ZodString>;
|
|
5986
5995
|
ariaAskQuestion: z.ZodOptional<z.ZodString>;
|
|
5987
5996
|
ariaAskQuestionRegion: z.ZodOptional<z.ZodString>;
|
|
@@ -5996,6 +6005,7 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
5996
6005
|
ariaQuestionSent: z.ZodOptional<z.ZodString>;
|
|
5997
6006
|
ariaAnswerReady: z.ZodOptional<z.ZodString>;
|
|
5998
6007
|
ariaAnswerFinished: z.ZodOptional<z.ZodString>;
|
|
6008
|
+
ariaAnswerFinishedWithSelectedTopic: z.ZodOptional<z.ZodString>;
|
|
5999
6009
|
ariaAskQuestionAgain: z.ZodOptional<z.ZodString>;
|
|
6000
6010
|
ariaAnswerGood: z.ZodOptional<z.ZodString>;
|
|
6001
6011
|
ariaAnswerBad: z.ZodOptional<z.ZodString>;
|
|
@@ -6017,6 +6027,7 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
6017
6027
|
ariaAllSelected: z.ZodOptional<z.ZodString>;
|
|
6018
6028
|
ariaAllUnselected: z.ZodOptional<z.ZodString>;
|
|
6019
6029
|
ariaAllReseted: z.ZodOptional<z.ZodString>;
|
|
6030
|
+
ariaChangeTopic: z.ZodOptional<z.ZodString>;
|
|
6020
6031
|
popups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6021
6032
|
hash: z.ZodString;
|
|
6022
6033
|
title: z.ZodString;
|
|
@@ -6039,6 +6050,7 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
6039
6050
|
selectNone: z.ZodOptional<z.ZodString>;
|
|
6040
6051
|
resetToDefaults: z.ZodOptional<z.ZodString>;
|
|
6041
6052
|
messageTooLong: z.ZodOptional<z.ZodString>;
|
|
6053
|
+
selectedTopic: z.ZodOptional<z.ZodString>;
|
|
6042
6054
|
changeTopic: z.ZodOptional<z.ZodString>;
|
|
6043
6055
|
searchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
6044
6056
|
searchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
@@ -8562,7 +8574,10 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
8562
8574
|
lightMode: z.ZodOptional<z.ZodString>;
|
|
8563
8575
|
darkMode: z.ZodOptional<z.ZodString>;
|
|
8564
8576
|
ariaMainNavigation: z.ZodOptional<z.ZodString>;
|
|
8565
|
-
|
|
8577
|
+
ariaMainNavigationInfo: z.ZodOptional<z.ZodString>;
|
|
8578
|
+
ariaMainNavigationLinks: z.ZodOptional<z.ZodString>;
|
|
8579
|
+
ariaMainNavigationLanguageSwitch: z.ZodOptional<z.ZodString>;
|
|
8580
|
+
ariaMainNavigationColorMode: z.ZodOptional<z.ZodString>;
|
|
8566
8581
|
ariaGotoMainNavigation: z.ZodOptional<z.ZodString>;
|
|
8567
8582
|
ariaAskQuestion: z.ZodOptional<z.ZodString>;
|
|
8568
8583
|
ariaAskQuestionRegion: z.ZodOptional<z.ZodString>;
|
|
@@ -8577,6 +8592,7 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
8577
8592
|
ariaQuestionSent: z.ZodOptional<z.ZodString>;
|
|
8578
8593
|
ariaAnswerReady: z.ZodOptional<z.ZodString>;
|
|
8579
8594
|
ariaAnswerFinished: z.ZodOptional<z.ZodString>;
|
|
8595
|
+
ariaAnswerFinishedWithSelectedTopic: z.ZodOptional<z.ZodString>;
|
|
8580
8596
|
ariaAskQuestionAgain: z.ZodOptional<z.ZodString>;
|
|
8581
8597
|
ariaAnswerGood: z.ZodOptional<z.ZodString>;
|
|
8582
8598
|
ariaAnswerBad: z.ZodOptional<z.ZodString>;
|
|
@@ -8598,6 +8614,7 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
8598
8614
|
ariaAllSelected: z.ZodOptional<z.ZodString>;
|
|
8599
8615
|
ariaAllUnselected: z.ZodOptional<z.ZodString>;
|
|
8600
8616
|
ariaAllReseted: z.ZodOptional<z.ZodString>;
|
|
8617
|
+
ariaChangeTopic: z.ZodOptional<z.ZodString>;
|
|
8601
8618
|
popups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8602
8619
|
hash: z.ZodString;
|
|
8603
8620
|
title: z.ZodString;
|
|
@@ -8620,6 +8637,7 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
8620
8637
|
selectNone: z.ZodOptional<z.ZodString>;
|
|
8621
8638
|
resetToDefaults: z.ZodOptional<z.ZodString>;
|
|
8622
8639
|
messageTooLong: z.ZodOptional<z.ZodString>;
|
|
8640
|
+
selectedTopic: z.ZodOptional<z.ZodString>;
|
|
8623
8641
|
changeTopic: z.ZodOptional<z.ZodString>;
|
|
8624
8642
|
searchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
8625
8643
|
searchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
@@ -11143,7 +11161,10 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
11143
11161
|
lightMode: z.ZodOptional<z.ZodString>;
|
|
11144
11162
|
darkMode: z.ZodOptional<z.ZodString>;
|
|
11145
11163
|
ariaMainNavigation: z.ZodOptional<z.ZodString>;
|
|
11146
|
-
|
|
11164
|
+
ariaMainNavigationInfo: z.ZodOptional<z.ZodString>;
|
|
11165
|
+
ariaMainNavigationLinks: z.ZodOptional<z.ZodString>;
|
|
11166
|
+
ariaMainNavigationLanguageSwitch: z.ZodOptional<z.ZodString>;
|
|
11167
|
+
ariaMainNavigationColorMode: z.ZodOptional<z.ZodString>;
|
|
11147
11168
|
ariaGotoMainNavigation: z.ZodOptional<z.ZodString>;
|
|
11148
11169
|
ariaAskQuestion: z.ZodOptional<z.ZodString>;
|
|
11149
11170
|
ariaAskQuestionRegion: z.ZodOptional<z.ZodString>;
|
|
@@ -11158,6 +11179,7 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
11158
11179
|
ariaQuestionSent: z.ZodOptional<z.ZodString>;
|
|
11159
11180
|
ariaAnswerReady: z.ZodOptional<z.ZodString>;
|
|
11160
11181
|
ariaAnswerFinished: z.ZodOptional<z.ZodString>;
|
|
11182
|
+
ariaAnswerFinishedWithSelectedTopic: z.ZodOptional<z.ZodString>;
|
|
11161
11183
|
ariaAskQuestionAgain: z.ZodOptional<z.ZodString>;
|
|
11162
11184
|
ariaAnswerGood: z.ZodOptional<z.ZodString>;
|
|
11163
11185
|
ariaAnswerBad: z.ZodOptional<z.ZodString>;
|
|
@@ -11179,6 +11201,7 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
11179
11201
|
ariaAllSelected: z.ZodOptional<z.ZodString>;
|
|
11180
11202
|
ariaAllUnselected: z.ZodOptional<z.ZodString>;
|
|
11181
11203
|
ariaAllReseted: z.ZodOptional<z.ZodString>;
|
|
11204
|
+
ariaChangeTopic: z.ZodOptional<z.ZodString>;
|
|
11182
11205
|
popups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11183
11206
|
hash: z.ZodString;
|
|
11184
11207
|
title: z.ZodString;
|
|
@@ -11201,6 +11224,7 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
11201
11224
|
selectNone: z.ZodOptional<z.ZodString>;
|
|
11202
11225
|
resetToDefaults: z.ZodOptional<z.ZodString>;
|
|
11203
11226
|
messageTooLong: z.ZodOptional<z.ZodString>;
|
|
11227
|
+
selectedTopic: z.ZodOptional<z.ZodString>;
|
|
11204
11228
|
changeTopic: z.ZodOptional<z.ZodString>;
|
|
11205
11229
|
searchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
11206
11230
|
searchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
@@ -13089,6 +13113,7 @@ export type LiipGPTClientOptions = {
|
|
|
13089
13113
|
speechRecognitionApiKey?: string;
|
|
13090
13114
|
strict?: boolean;
|
|
13091
13115
|
EventSource?: Constructor$1<EventSource>;
|
|
13116
|
+
startParameters?: Record<string, unknown>;
|
|
13092
13117
|
};
|
|
13093
13118
|
export type Language = "en" | "de" | "fr" | "it";
|
|
13094
13119
|
export type ReferenceData = {
|
package/index.js
CHANGED
|
@@ -19618,7 +19618,10 @@ var translationSchema = exports_external.object({
|
|
|
19618
19618
|
lightMode: exports_external.string(),
|
|
19619
19619
|
darkMode: exports_external.string(),
|
|
19620
19620
|
ariaMainNavigation: exports_external.string(),
|
|
19621
|
-
|
|
19621
|
+
ariaMainNavigationInfo: exports_external.string(),
|
|
19622
|
+
ariaMainNavigationLinks: exports_external.string(),
|
|
19623
|
+
ariaMainNavigationLanguageSwitch: exports_external.string(),
|
|
19624
|
+
ariaMainNavigationColorMode: exports_external.string(),
|
|
19622
19625
|
ariaGotoMainNavigation: exports_external.string(),
|
|
19623
19626
|
ariaAskQuestion: exports_external.string(),
|
|
19624
19627
|
ariaAskQuestionRegion: exports_external.string(),
|
|
@@ -19633,6 +19636,7 @@ var translationSchema = exports_external.object({
|
|
|
19633
19636
|
ariaQuestionSent: exports_external.string(),
|
|
19634
19637
|
ariaAnswerReady: exports_external.string(),
|
|
19635
19638
|
ariaAnswerFinished: exports_external.string(),
|
|
19639
|
+
ariaAnswerFinishedWithSelectedTopic: exports_external.string(),
|
|
19636
19640
|
ariaAskQuestionAgain: exports_external.string(),
|
|
19637
19641
|
ariaAnswerGood: exports_external.string(),
|
|
19638
19642
|
ariaAnswerBad: exports_external.string(),
|
|
@@ -19654,6 +19658,7 @@ var translationSchema = exports_external.object({
|
|
|
19654
19658
|
ariaAllSelected: exports_external.string(),
|
|
19655
19659
|
ariaAllUnselected: exports_external.string(),
|
|
19656
19660
|
ariaAllReseted: exports_external.string(),
|
|
19661
|
+
ariaChangeTopic: exports_external.string(),
|
|
19657
19662
|
popups: exports_external.array(popup).optional(),
|
|
19658
19663
|
termsAcceptButton: exports_external.string().optional(),
|
|
19659
19664
|
termsReadButton: exports_external.string().optional(),
|
|
@@ -19665,6 +19670,7 @@ var translationSchema = exports_external.object({
|
|
|
19665
19670
|
selectNone: exports_external.string(),
|
|
19666
19671
|
resetToDefaults: exports_external.string(),
|
|
19667
19672
|
messageTooLong: exports_external.string(),
|
|
19673
|
+
selectedTopic: exports_external.string(),
|
|
19668
19674
|
changeTopic: exports_external.string(),
|
|
19669
19675
|
searchSummaryExpand: exports_external.string(),
|
|
19670
19676
|
searchSummaryCollapse: exports_external.string(),
|
|
@@ -20268,7 +20274,7 @@ class ServerStorage {
|
|
|
20268
20274
|
var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
|
|
20269
20275
|
|
|
20270
20276
|
// src/lib/client/api/get-user-data.ts
|
|
20271
|
-
var getUserData = async (restClient) => {
|
|
20277
|
+
var getUserData = async (restClient, startParameters) => {
|
|
20272
20278
|
try {
|
|
20273
20279
|
const userId = agnosticStorage.getItem("liipgpt:uID") || agnosticStorage.getItem("uID");
|
|
20274
20280
|
const init = {
|
|
@@ -20279,7 +20285,8 @@ var getUserData = async (restClient) => {
|
|
|
20279
20285
|
},
|
|
20280
20286
|
body: JSON.stringify({
|
|
20281
20287
|
referrer: globalThis?.document?.referrer || null,
|
|
20282
|
-
uID: userId
|
|
20288
|
+
uID: userId,
|
|
20289
|
+
...startParameters ? { startParameters } : {}
|
|
20283
20290
|
})
|
|
20284
20291
|
};
|
|
20285
20292
|
const response = await restClient.fetchData("/login", userDataResponseSchema, {}, init).catch((e) => {
|
|
@@ -20918,7 +20925,7 @@ class LiipGPTClientPrimitive {
|
|
|
20918
20925
|
const restClient = new RestClient(restOptions);
|
|
20919
20926
|
this.internalData = {
|
|
20920
20927
|
restClient,
|
|
20921
|
-
metadata: getUserData(restClient),
|
|
20928
|
+
metadata: getUserData(restClient, options2.startParameters),
|
|
20922
20929
|
searchResponseMap: new Map,
|
|
20923
20930
|
chatResponseMap: new Map,
|
|
20924
20931
|
conversationMap: new Map
|