wineater-bot 4.16.0 → 4.16.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.
@@ -3,5 +3,8 @@
3
3
  "allow": [
4
4
  "Bash(git remote *)"
5
5
  ]
6
- }
6
+ },
7
+ "disabledMcpjsonServers": [
8
+ "supabase"
9
+ ]
7
10
  }
@@ -10038,7 +10038,7 @@ function Gp(t, e) {
10038
10038
  });
10039
10039
  }
10040
10040
  q(() => {
10041
- Gt(h, 1, `wr-WineTile ${e.isAnimating ? "ww-slide-up" : ""}`, "svelte-yk3emv"), J(g, `${(e.wine.producer ? e.wine.producer : "") ?? ""} ${e.wine.title ?? ""}`);
10041
+ Gt(h, 1, `wr-WineTile ${e.isAnimating ? "ww-slide-up" : ""}`, "svelte-yk3emv"), J(g, e.wine.title);
10042
10042
  }), It("mouseenter", h, () => e.onTileEnter(e.wine)), It("mouseleave", h, () => e.onTileLeave(e.wine)), dn("click", h, (N) => e.onTileClick(N, e.wine)), M(t, l), Yt();
10043
10043
  }
10044
10044
  ri(["click"]);
@@ -193,7 +193,7 @@ ${JSON.stringify(o,null,2)}
193
193
  }
194
194
 
195
195
  @media screen and (max-width: 768px) {.wr-WineTile.svelte-yk3emv {flex:0 0 auto;scroll-snap-align:center;width:240px;text-align:center;}
196
- }`};function Cp(t,e){Ft(e,!0),Gt(t,Ip);let n=oe(()=>me.getAppLanguage());const s=(N,A)=>N[A]||N[A.charAt(0).toUpperCase()+A.slice(1)],i=(N,A)=>A.map(Z=>s(N,Z)).filter(Boolean).join(" • ");function r(N){var A;return Df(N,((A=me.getCurrency)==null?void 0:A.call(me))||"USD",v(n))}function o(N){return e.selectedWineId===N}function a(N){return!!(N.reason||N.shortDescription||N.tags)}function c(N,A){let Z=(N==null?void 0:N.tags)||A.tags;return Z?(Array.isArray(Z)&&(Z=Z.join(",")),typeof Z!="string"?[]:Z.split(",").map(le=>le.trim()).filter(Boolean)):[]}let u=re(!1);Bi(()=>{const N=()=>{C(u,window.innerWidth<=768)};return N(),window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}});var l=Ep(),h=xt(l),d=O(h),p=O(d);{var f=N=>{var A=wp();H(()=>{Re(A,"src",e.wine.image),Re(A,"alt",e.wine.title)}),M(N,A)};ae(p,N=>{e.wine.image&&N(f)})}var m=W(p,2);{var S=N=>{var A=bp(),Z=O(A);H(le=>Y(Z,le),[()=>r(e.wine.total)]),M(N,A)};ae(m,N=>{e.wine.total&&N(S)})}var x=W(m,2);{var T=N=>{var A=yp(),Z=O(A);H((le,ke)=>Y(Z,`${le??""}${ke??""}`),[()=>be({key:"byTheGlass",lang:v(n)}),()=>e.wine.glassPrice?` — ${r(e.wine.glassPrice)}`:""]),M(N,A)};ae(x,N=>{e.wine.byTheGlass&&N(T)})}var I=W(x,2),g=O(I),_=W(d,2);{var E=N=>{var A=Sp(),Z=O(A);H(le=>Y(Z,le),[()=>i(e.wine,["type","country","region","grape"])]),M(N,A)},b=oe(()=>i(e.wine,["type","country","region","grape"]));ae(_,N=>{v(b)&&N(E)})}var y=W(_,2),k=O(y),P=O(k);{var V=N=>{gs(N,{get href(){return e.wine.url},handleClick:()=>e.onBuyLinkClick(e.wine,e.index),className:"wr-WineTile-action wr-WineTile-action--link js-WineTileAction",target:"_blank",variant:"outlined",children:(A,Z)=>{var le=Nn();H(ke=>Y(le,ke),[()=>be({key:"wineDetails.buy",lang:v(n)})]),M(A,le)},$$slots:{default:!0}})},F=N=>{gs(N,{handleClick:()=>e.onBuyClick(e.wine,e.index),variant:"outlined",className:"wr-WineTile-action wr-WineTile-action--button js-WineTileAction",children:(A,Z)=>{var le=Nn();H(ke=>Y(le,ke),[()=>be({key:"moreInfo",lang:v(n)})]),M(A,le)},$$slots:{default:!0}})};ae(P,N=>{e.wine.url?N(V):N(F,!1)})}var Q=W(P,2);{var z=N=>{gs(N,{handleClick:()=>e.onSimilarClick(e.wine),variant:"text",className:"wr-WineTile-action wr-WineTile-action--similar js-WineTileAction",children:(A,Z)=>{var le=Nn();H(ke=>Y(le,ke),[()=>be({key:"similarWines",lang:v(n)})]),M(A,le)},$$slots:{default:!0}})};ae(Q,N=>{e.onSimilarClick&&N(z)})}var B=W(y,2);{var J=N=>{{let A=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.shortDescription)||e.wine.shortDescription}),Z=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.reason)||e.wine.reason}),le=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.pairingRecommendation)||e.wine.pairingRecommendation}),ke=oe(()=>c(e.translatedPopup,e.wine));Sl(N,{get title(){return e.wine.title},get shortDescription(){return v(A)},get reason(){return v(Z)},get pairing(){return v(le)},get tags(){return v(ke)},get onClose(){return e.onPopupClose},isMobile:!1})}},ee=oe(()=>o(e.wine.id)&&!v(u));ae(B,N=>{v(ee)&&N(J)})}var D=W(B,2);{var te=N=>{var A=xp(),Z=O(A);{var le=Ge=>{var De=_p(),R=O(De);H(()=>{var L,ne;return Y(R,((L=e.translatedPopup)==null?void 0:L.reason)||((ne=e.translatedPopup)==null?void 0:ne.shortDescription)||e.wine.reason||e.wine.shortDescription)}),M(Ge,De)};ae(Z,Ge=>{var De,R;((De=e.translatedPopup)!=null&&De.reason||(R=e.translatedPopup)!=null&&R.shortDescription||e.wine.reason||e.wine.shortDescription)&&Ge(le)})}var ke=W(Z,2);{var ue=Ge=>{var De=Tp();Dn(De,21,()=>c(e.translatedPopup,e.wine),Rn,(R,L)=>{var ne=kp(),Ot=O(ne);H(()=>Y(Ot,v(L))),M(R,ne)}),M(Ge,De)};ae(ke,Ge=>{var De,R;((De=e.translatedPopup)!=null&&De.tags||(R=e.translatedPopup)!=null&&R.Tags||e.wine.tags)&&Ge(ue)})}H(()=>Kt(A,1,`wr-WineTilePopup ${e.hoveredWineId===e.wine.id?"slide-in visible":""}`,"svelte-yk3emv")),M(N,A)},Ae=oe(()=>a(e.wine));ae(D,N=>{v(Ae)&&N(te)})}var _e=W(h,2);{var Mt=N=>{{let A=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.shortDescription)||e.wine.shortDescription}),Z=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.reason)||e.wine.reason}),le=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.pairingRecommendation)||e.wine.pairingRecommendation}),ke=oe(()=>c(e.translatedPopup,e.wine));Sl(N,{get title(){return e.wine.title},get shortDescription(){return v(A)},get reason(){return v(Z)},get pairing(){return v(le)},get tags(){return v(ke)},get onClose(){return e.onPopupClose},isMobile:!0})}},yt=oe(()=>o(e.wine.id)&&v(u));ae(_e,N=>{v(yt)&&N(Mt)})}H(()=>{Kt(h,1,`wr-WineTile ${e.isAnimating?"ww-slide-up":""}`,"svelte-yk3emv"),Y(g,`${(e.wine.producer?e.wine.producer:"")??""} ${e.wine.title??""}`)}),It("mouseenter",h,()=>e.onTileEnter(e.wine)),It("mouseleave",h,()=>e.onTileLeave(e.wine)),fn("click",h,N=>e.onTileClick(N,e.wine)),M(t,l),Wt()}Ds(["click"]);function Np(t){if(!t)return"";const e="custom-ui-config-style";if(document.getElementById(e))return;const n=document.createElement("style");return n.id=e,n.innerHTML=t,document.head.appendChild(n),e}var Rp=q('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'),Dp=q('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'),Ap=q('<div class="wr-App-showMore svelte-1n46o8q"><!></div>'),Mp=q('<div class="wr-App-placeholder svelte-1n46o8q"></div> <!>',1),Op=q('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!></div>');const Pp={hash:"svelte-1n46o8q",code:`
196
+ }`};function Cp(t,e){Ft(e,!0),Gt(t,Ip);let n=oe(()=>me.getAppLanguage());const s=(N,A)=>N[A]||N[A.charAt(0).toUpperCase()+A.slice(1)],i=(N,A)=>A.map(Z=>s(N,Z)).filter(Boolean).join(" • ");function r(N){var A;return Df(N,((A=me.getCurrency)==null?void 0:A.call(me))||"USD",v(n))}function o(N){return e.selectedWineId===N}function a(N){return!!(N.reason||N.shortDescription||N.tags)}function c(N,A){let Z=(N==null?void 0:N.tags)||A.tags;return Z?(Array.isArray(Z)&&(Z=Z.join(",")),typeof Z!="string"?[]:Z.split(",").map(le=>le.trim()).filter(Boolean)):[]}let u=re(!1);Bi(()=>{const N=()=>{C(u,window.innerWidth<=768)};return N(),window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}});var l=Ep(),h=xt(l),d=O(h),p=O(d);{var f=N=>{var A=wp();H(()=>{Re(A,"src",e.wine.image),Re(A,"alt",e.wine.title)}),M(N,A)};ae(p,N=>{e.wine.image&&N(f)})}var m=W(p,2);{var S=N=>{var A=bp(),Z=O(A);H(le=>Y(Z,le),[()=>r(e.wine.total)]),M(N,A)};ae(m,N=>{e.wine.total&&N(S)})}var x=W(m,2);{var T=N=>{var A=yp(),Z=O(A);H((le,ke)=>Y(Z,`${le??""}${ke??""}`),[()=>be({key:"byTheGlass",lang:v(n)}),()=>e.wine.glassPrice?` — ${r(e.wine.glassPrice)}`:""]),M(N,A)};ae(x,N=>{e.wine.byTheGlass&&N(T)})}var I=W(x,2),g=O(I),_=W(d,2);{var E=N=>{var A=Sp(),Z=O(A);H(le=>Y(Z,le),[()=>i(e.wine,["type","country","region","grape"])]),M(N,A)},b=oe(()=>i(e.wine,["type","country","region","grape"]));ae(_,N=>{v(b)&&N(E)})}var y=W(_,2),k=O(y),P=O(k);{var V=N=>{gs(N,{get href(){return e.wine.url},handleClick:()=>e.onBuyLinkClick(e.wine,e.index),className:"wr-WineTile-action wr-WineTile-action--link js-WineTileAction",target:"_blank",variant:"outlined",children:(A,Z)=>{var le=Nn();H(ke=>Y(le,ke),[()=>be({key:"wineDetails.buy",lang:v(n)})]),M(A,le)},$$slots:{default:!0}})},F=N=>{gs(N,{handleClick:()=>e.onBuyClick(e.wine,e.index),variant:"outlined",className:"wr-WineTile-action wr-WineTile-action--button js-WineTileAction",children:(A,Z)=>{var le=Nn();H(ke=>Y(le,ke),[()=>be({key:"moreInfo",lang:v(n)})]),M(A,le)},$$slots:{default:!0}})};ae(P,N=>{e.wine.url?N(V):N(F,!1)})}var Q=W(P,2);{var z=N=>{gs(N,{handleClick:()=>e.onSimilarClick(e.wine),variant:"text",className:"wr-WineTile-action wr-WineTile-action--similar js-WineTileAction",children:(A,Z)=>{var le=Nn();H(ke=>Y(le,ke),[()=>be({key:"similarWines",lang:v(n)})]),M(A,le)},$$slots:{default:!0}})};ae(Q,N=>{e.onSimilarClick&&N(z)})}var B=W(y,2);{var J=N=>{{let A=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.shortDescription)||e.wine.shortDescription}),Z=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.reason)||e.wine.reason}),le=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.pairingRecommendation)||e.wine.pairingRecommendation}),ke=oe(()=>c(e.translatedPopup,e.wine));Sl(N,{get title(){return e.wine.title},get shortDescription(){return v(A)},get reason(){return v(Z)},get pairing(){return v(le)},get tags(){return v(ke)},get onClose(){return e.onPopupClose},isMobile:!1})}},ee=oe(()=>o(e.wine.id)&&!v(u));ae(B,N=>{v(ee)&&N(J)})}var D=W(B,2);{var te=N=>{var A=xp(),Z=O(A);{var le=Ge=>{var De=_p(),R=O(De);H(()=>{var L,ne;return Y(R,((L=e.translatedPopup)==null?void 0:L.reason)||((ne=e.translatedPopup)==null?void 0:ne.shortDescription)||e.wine.reason||e.wine.shortDescription)}),M(Ge,De)};ae(Z,Ge=>{var De,R;((De=e.translatedPopup)!=null&&De.reason||(R=e.translatedPopup)!=null&&R.shortDescription||e.wine.reason||e.wine.shortDescription)&&Ge(le)})}var ke=W(Z,2);{var ue=Ge=>{var De=Tp();Dn(De,21,()=>c(e.translatedPopup,e.wine),Rn,(R,L)=>{var ne=kp(),Ot=O(ne);H(()=>Y(Ot,v(L))),M(R,ne)}),M(Ge,De)};ae(ke,Ge=>{var De,R;((De=e.translatedPopup)!=null&&De.tags||(R=e.translatedPopup)!=null&&R.Tags||e.wine.tags)&&Ge(ue)})}H(()=>Kt(A,1,`wr-WineTilePopup ${e.hoveredWineId===e.wine.id?"slide-in visible":""}`,"svelte-yk3emv")),M(N,A)},Ae=oe(()=>a(e.wine));ae(D,N=>{v(Ae)&&N(te)})}var _e=W(h,2);{var Mt=N=>{{let A=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.shortDescription)||e.wine.shortDescription}),Z=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.reason)||e.wine.reason}),le=oe(()=>{var ue;return((ue=e.translatedPopup)==null?void 0:ue.pairingRecommendation)||e.wine.pairingRecommendation}),ke=oe(()=>c(e.translatedPopup,e.wine));Sl(N,{get title(){return e.wine.title},get shortDescription(){return v(A)},get reason(){return v(Z)},get pairing(){return v(le)},get tags(){return v(ke)},get onClose(){return e.onPopupClose},isMobile:!0})}},yt=oe(()=>o(e.wine.id)&&v(u));ae(_e,N=>{v(yt)&&N(Mt)})}H(()=>{Kt(h,1,`wr-WineTile ${e.isAnimating?"ww-slide-up":""}`,"svelte-yk3emv"),Y(g,e.wine.title)}),It("mouseenter",h,()=>e.onTileEnter(e.wine)),It("mouseleave",h,()=>e.onTileLeave(e.wine)),fn("click",h,N=>e.onTileClick(N,e.wine)),M(t,l),Wt()}Ds(["click"]);function Np(t){if(!t)return"";const e="custom-ui-config-style";if(document.getElementById(e))return;const n=document.createElement("style");return n.id=e,n.innerHTML=t,document.head.appendChild(n),e}var Rp=q('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'),Dp=q('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'),Ap=q('<div class="wr-App-showMore svelte-1n46o8q"><!></div>'),Mp=q('<div class="wr-App-placeholder svelte-1n46o8q"></div> <!>',1),Op=q('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!></div>');const Pp={hash:"svelte-1n46o8q",code:`
197
197
  /* ===================== 1) CSS Variables ===================== */:root {--wineater-corp-color: #0044ff;
198
198
  /* --wr-brand-color is set dynamically from uiConfig.brandColor */--wr-brand-color: #7b2beb; /* fallback value */}
199
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wineater-bot",
3
- "version": "4.16.0",
3
+ "version": "4.16.1",
4
4
  "description": "",
5
5
  "main": "dist/wineater-chatbot.mjs",
6
6
  "module": "src/index.js",
@@ -109,7 +109,7 @@
109
109
  </div>
110
110
  {/if}
111
111
 
112
- <h3 class="wr-WineTile-title">{wine.producer ? wine.producer : ''} {wine.title}</h3>
112
+ <h3 class="wr-WineTile-title">{wine.title}</h3>
113
113
  </header>
114
114
 
115
115
  {#if joinParams(wine, ['type', 'country', 'region', 'grape'])}