@molin.ai/shop-ai 0.2.2 → 0.2.3
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.
|
@@ -621,7 +621,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
621
621
|
</div>
|
|
622
622
|
</div>
|
|
623
623
|
</div>
|
|
624
|
-
`}};qt=new WeakSet,le=function(){switch(this.widgetId){case"meetion1":return{title:"Meetion AI",logoSvg:Tg,status:"Online",inputPlaceholder:"Scrie un mesaj...",color:"#E9550E",limitations:{title:"Limit\u0103ri",items:["AI-ul poate s\u0103 r\u0103spund\u0103 cu informa\u021Bii gre\u0219ite."]},examples:{title:"Exemple",items:["C\xE2t cost\u0103 un scaun ergonomic?","\xCEn c\xE2t timp ajung produsele?","Cum pot returna o comand\u0103?"]}};case"layher1":return{title:"Layher AI",logoSvg:Mg,status:"El\xE9rhet\u0151",inputPlaceholder:"\xCDrj nek\xFCnk...",color:"#F5C443",limitations:{title:"Korl\xE1toz\xE1sok",items:["Az AI kital\xE1lhat val\xF3tlan \xE1ll\xEDt\xE1sokat, ez\xE9rt nem v\xE1llalunk felel\u0151ss\xE9get a v\xE1laszok pontoss\xE1g\xE1\xE9rt vagy megb\xEDzhat\xF3s\xE1g\xE1\xE9rt."]},examples:{title:"P\xE9ld\xE1k",items:["
|
|
624
|
+
`}};qt=new WeakSet,le=function(){switch(this.widgetId){case"meetion1":return{title:"Meetion AI",logoSvg:Tg,status:"Online",inputPlaceholder:"Scrie un mesaj...",color:"#E9550E",limitations:{title:"Limit\u0103ri",items:["AI-ul poate s\u0103 r\u0103spund\u0103 cu informa\u021Bii gre\u0219ite."]},examples:{title:"Exemple",items:["C\xE2t cost\u0103 un scaun ergonomic?","\xCEn c\xE2t timp ajung produsele?","Cum pot returna o comand\u0103?"]}};case"layher1":return{title:"Layher AI",logoSvg:Mg,status:"El\xE9rhet\u0151",inputPlaceholder:"\xCDrj nek\xFCnk...",color:"#F5C443",limitations:{title:"Korl\xE1toz\xE1sok",items:["Az AI kital\xE1lhat val\xF3tlan \xE1ll\xEDt\xE1sokat, ez\xE9rt nem v\xE1llalunk felel\u0151ss\xE9get a v\xE1laszok pontoss\xE1g\xE1\xE9rt vagy megb\xEDzhat\xF3s\xE1g\xE1\xE9rt."]},examples:{title:"P\xE9ld\xE1k",items:["6,35 m\xE9ter magas gurul\xF3\xE1llv\xE1nyt keresek","Milyen kieg\xE9sz\xEDt\u0151k kaphat\xF3k?","Hol tal\xE1lhat\xF3k \xFCzletek?"]}};default:return{title:"HUFBAU AI",logoSvg:Cg,status:"El\xE9rhet\u0151",inputPlaceholder:"\xCDrj nek\xFCnk...",color:"#F39200",limitations:{title:"Korl\xE1toz\xE1sok",items:["Az AI kital\xE1lhat val\xF3tlan \xE1ll\xEDt\xE1sokat, ez\xE9rt nem v\xE1llalunk felel\u0151ss\xE9get a v\xE1laszok pontoss\xE1g\xE1\xE9rt vagy megb\xEDzhat\xF3s\xE1g\xE1\xE9rt."]},examples:{title:"P\xE9ld\xE1k",items:["Milyen gipszkartonokat forgalmaznak?","Mennyibe ker\xFCl a zs\xE1kos beton?","Hol tal\xE1lhat\xF3k \xFCzletek?"]}}}},$e=new WeakMap,ke=new WeakMap,fo=new WeakSet,Qu=function(r){let i=r.target;i&&i instanceof HTMLAnchorElement&&i.tagName==="A"&&Oe("ShopAssistant: user clicked link",{widgetId:this.widgetId,url:i.href})},mo=new WeakSet,tf=function(r){$(this,$e)?.sendUserInput(r),Oe("ShopAssistant: user sent input",{widgetId:this.widgetId,text:r,example:!0})},go=new WeakSet,ef=function(){ft(this,ke,!$(this,ke)),this.requestUpdate(),Oe("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"bubble-toggle",state:$(this,ke)?"open":"close"})},yo=new WeakSet,rf=function(){ft(this,ke,!1),this.requestUpdate(),Oe("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"top-right-close-button",state:$(this,ke)?"open":"close"})},vo=new WeakSet,nf=function(r){let i=r.detail.value;$(this,$e)?.sendUserInput(i),Oe("ShopAssistant: user sent input",{widgetId:this.widgetId,text:i,example:!1})},bo=new WeakSet,sf=function(r){$(this,$e)?.sendUserCancel(),Oe("ShopAssistant: user canceled streaming",{widgetId:this.widgetId})},X(uo,"properties",{widgetId:{type:String,attribute:"widget"},demo:{type:Boolean,attribute:"demo"}});customElements.define("molin-shop-ai",uo);function Fg(t){return t.replace(/[^A-Za-z0-9_-]/gi,"")}function Dg({widgetId:t}={widgetId:""}){if(!t)throw new Error("widgetId is required");t=Fg(t);let e=`<molin-shop-ai widget="${t}"></molin-shop-ai>`;document.body.insertAdjacentHTML("beforeend",e)}window.__INIT_MOLIN_SHOP_AI=Dg;
|
|
625
625
|
/*! Bundled license information:
|
|
626
626
|
|
|
627
627
|
@lit/reactive-element/css-tag.js:
|