wineater-bot 4.5.3 → 4.5.8

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.
@@ -8875,6 +8875,68 @@ const pf = ((Po = window == null ? void 0 : window.wineaterData) == null ? void
8875
8875
  noResultsMessage: "Іздеуіңізге сәйкес нәтиже табылмады. Басқа сұрау қолданып көріңіз.",
8876
8876
  ai_sommelier: "AI sommelier"
8877
8877
  }, kf = {
8878
+ lang: "pt",
8879
+ welcomeMessage: "O que você planeja comer? Descreva seu prato e eu recomendarei a harmonização perfeita.",
8880
+ noResultsFound: "Nenhum resultado encontrado.",
8881
+ somethingWentWrong: "Desculpe, algo deu errado.",
8882
+ chatButton1: "Encontre sua harmonização",
8883
+ chatButton2: "Harmonizar vinho agora",
8884
+ chatButton3: "Receber conselho de vinho",
8885
+ chatTitle: "Assistente de Harmonização de Vinhos 🍷",
8886
+ chatSubtitle: "Descreva sua refeição e receba uma recomendação em 30 segundos",
8887
+ inputPlaceholder: "ex., Salada de atum",
8888
+ sendButton: "Harmonizar",
8889
+ poweredBy: "Desenvolvido por",
8890
+ price: "Preço",
8891
+ region: "Região",
8892
+ type: "Tipo",
8893
+ reason: "Sugestão",
8894
+ moreInfo: "Mais informações",
8895
+ winePairingIntro: "Para este vinho, aqui estão algumas sugestões de pratos:",
8896
+ askForDinner: "O que você gostaria de jantar?",
8897
+ clearChatButton: "Limpar chat",
8898
+ widgetTitle: "ENCONTRE SEU VINHO PERFEITO",
8899
+ widgetSubtitle: "Compartilhe o que tiver em mente — sua refeição, humor, orçamento ou ocasião — e nosso sommelier de IA recomendará o vinho perfeito em segundos",
8900
+ searchPlaceholder: "Digite uma palavra-chave ou descrição",
8901
+ "wineDetails.reason": "Motivo",
8902
+ "wineDetails.price": "Preço",
8903
+ "wineDetails.region": "Região",
8904
+ "wineDetails.type": "Tipo",
8905
+ "wineDetails.moreInfo": "Mais informações",
8906
+ "wineDetails.code": "Código",
8907
+ "wineDetails.buy": "Comprar",
8908
+ searchButton: "Pesquisar",
8909
+ priceRange: "Faixa de preço",
8910
+ wineColor: "Cor do vinho",
8911
+ intensity: "Intensidade",
8912
+ red: "Tinto",
8913
+ white: "Branco",
8914
+ rose: "Rosé",
8915
+ light: "Leve",
8916
+ medium: "Médio",
8917
+ full: "Encorpado",
8918
+ barTitle: "Pratos do bar",
8919
+ barSubtitle: "Selecione os pratos abaixo e clique em 'Enviar'",
8920
+ barSendButton: "Enviar",
8921
+ barResetButton: "Resetar",
8922
+ barName: "Nome do bar",
8923
+ barNotesPlaceholder: "Adicione seus desejos aqui...",
8924
+ placeholderSuggestions: [
8925
+ "Vinho para massa",
8926
+ "Perfeito com peixe",
8927
+ "Recomendado para uma festa"
8928
+ ],
8929
+ headerLine1: "Compartilhe o que tiver em mente —",
8930
+ headerLine2: "— e receba recomendações do vinho perfeito em segundos",
8931
+ headerMeal: "refeição",
8932
+ headerMood: "humor",
8933
+ headerBudget: "orçamento",
8934
+ headerOccasion: "ocasião",
8935
+ headerOr: "ou",
8936
+ errorMessage: "Algo deu errado. Por favor, tente novamente mais tarde.",
8937
+ noResultsMessage: "Nenhum resultado encontrado para sua pesquisa. Por favor, tente uma consulta diferente.",
8938
+ ai_sommelier: "AI sommelier"
8939
+ }, Tf = {
8878
8940
  fr: gf,
8879
8941
  es: mf,
8880
8942
  en: vf,
@@ -8882,9 +8944,10 @@ const pf = ((Po = window == null ? void 0 : window.wineaterData) == null ? void
8882
8944
  de: bf,
8883
8945
  ukr: yf,
8884
8946
  ru: Sf,
8885
- kk: _f
8947
+ kk: _f,
8948
+ pt: kf
8886
8949
  };
8887
- function Tf(t) {
8950
+ function xf(t) {
8888
8951
  return {
8889
8952
  id: String(t.id),
8890
8953
  lang: t.lang,
@@ -8894,11 +8957,15 @@ function Tf(t) {
8894
8957
  title: t.title
8895
8958
  };
8896
8959
  }
8897
- const xf = {
8960
+ const Ef = {
8898
8961
  0: {
8899
8962
  logoUrl: null,
8900
8963
  brandColor: "#7B2BEB"
8901
8964
  },
8965
+ 29: {
8966
+ logoUrl: "https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/plou_logo.jpg",
8967
+ brandColor: "#e6c6bb"
8968
+ },
8902
8969
  25: {
8903
8970
  logoUrl: null,
8904
8971
  brandColor: "#000000",
@@ -8977,7 +9044,7 @@ const xf = {
8977
9044
  translations: {}
8978
9045
  }
8979
9046
  };
8980
- function Ef(t) {
9047
+ function If(t) {
8981
9048
  const e = {
8982
9049
  logoUrl: null,
8983
9050
  // Brand color is used for shop branding
@@ -8989,7 +9056,7 @@ function Ef(t) {
8989
9056
  @import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
8990
9057
  :root { --wineater-font-primary: 'Bricolage Grotesque', serif; }
8991
9058
  `
8992
- }, n = xf[t] || {};
9059
+ }, n = Ef[t] || {};
8993
9060
  return {
8994
9061
  ...e,
8995
9062
  ...n
@@ -9043,9 +9110,9 @@ const pe = {
9043
9110
  async initializeStore() {
9044
9111
  try {
9045
9112
  const t = await Yi.getStoreConfig();
9046
- ue.storeConfig = Tf(t), ue.currentLanguage = ue.storeConfig.lang;
9113
+ ue.storeConfig = xf(t), ue.currentLanguage = ue.storeConfig.lang;
9047
9114
  const e = this.getLanguageFromURL();
9048
- e && ue.storeConfig.available_languages.includes(e) ? this.setStoreLanguage(e) : this.setStoreLanguage(ue.storeConfig.lang), this.setUiConfig(Ef(ue.storeConfig.id)), ue.isConfigLoaded = !0;
9115
+ e && ue.storeConfig.available_languages.includes(e) ? this.setStoreLanguage(e) : this.setStoreLanguage(ue.storeConfig.lang), this.setUiConfig(If(ue.storeConfig.id)), ue.isConfigLoaded = !0;
9049
9116
  } catch (t) {
9050
9117
  console.error("Failed to initialize store:", t), ue.isConfigLoaded = !1;
9051
9118
  }
@@ -9059,7 +9126,7 @@ const pe = {
9059
9126
  setUiConfig(t) {
9060
9127
  ue.uiConfig = t;
9061
9128
  }
9062
- }, If = {
9129
+ }, Cf = {
9063
9130
  en: "en-US",
9064
9131
  de: "de-DE",
9065
9132
  fr: "fr-FR",
@@ -9071,9 +9138,9 @@ const pe = {
9071
9138
  kk: "kk-KZ",
9072
9139
  pt: "pt-PT"
9073
9140
  };
9074
- function Cf(t, e, n = "en") {
9141
+ function Nf(t, e, n = "en") {
9075
9142
  try {
9076
- return new Intl.NumberFormat(If[n] || "en-US", {
9143
+ return new Intl.NumberFormat(Cf[n] || "en-US", {
9077
9144
  style: "currency",
9078
9145
  currency: e,
9079
9146
  currencyDisplay: "narrowSymbol"
@@ -9083,14 +9150,14 @@ function Cf(t, e, n = "en") {
9083
9150
  }
9084
9151
  }
9085
9152
  function Ee({ key: t, lang: e }) {
9086
- const n = kf, s = pe.getUiConfig(), i = (s == null ? void 0 : s.translations) || {};
9153
+ const n = Tf, s = pe.getUiConfig(), i = (s == null ? void 0 : s.translations) || {};
9087
9154
  if (i[e] && i[e][t])
9088
9155
  return i[e][t];
9089
9156
  if (n[e] && n[e][t])
9090
9157
  return n[e][t];
9091
9158
  throw new Error(`Translation for key "${t}" not found in language "${e}".`);
9092
9159
  }
9093
- async function Nf({ sourceLang: t, targetLang: e, texts: n, apiKey: s }) {
9160
+ async function Rf({ sourceLang: t, targetLang: e, texts: n, apiKey: s }) {
9094
9161
  var u, l, h, d;
9095
9162
  if (!s || !t || !e || t === e) return n;
9096
9163
  const i = "https://api.openai.com/v1/chat/completions", r = {
@@ -9149,40 +9216,40 @@ ${JSON.stringify(o, null, 2)}
9149
9216
  }
9150
9217
  }
9151
9218
  Xl();
9152
- var Rf = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M10.036 4.96326H28.2826L34.3648 14.0865L19.1593 33.8537L3.95381 14.0865L10.036 4.96326Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.6388 4.96326L13.0771 14.0865L19.1593 33.8537L25.2415 14.0865L20.6799 4.96326" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.95381 14.0867H34.3648" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9153
- function Df(t, e) {
9219
+ var Df = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M10.036 4.96326H28.2826L34.3648 14.0865L19.1593 33.8537L3.95381 14.0865L10.036 4.96326Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.6388 4.96326L13.0771 14.0865L19.1593 33.8537L25.2415 14.0865L20.6799 4.96326" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.95381 14.0867H34.3648" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9220
+ function Of(t, e) {
9154
9221
  let n = We(e, "className", 8, ""), s = We(e, "size", 8, 20);
9155
- var i = Rf();
9222
+ var i = Df();
9156
9223
  J(() => {
9157
9224
  Ft(i, 0, Bn(n())), ke(i, "width", s()), ke(i, "height", s());
9158
9225
  }), P(t, i);
9159
9226
  }
9160
- var Of = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M29.533 21.4034C31.7986 19.1834 34.0946 16.5224 34.0946 13.0404C34.0946 10.8224 33.2135 8.69521 31.6451 7.12684C30.0768 5.55847 27.9496 4.67737 25.7316 4.67737C23.0554 4.67737 21.1699 5.43764 18.8891 7.71847C16.6083 5.43764 14.7228 4.67737 12.0467 4.67737C9.82865 4.67737 7.70148 5.55847 6.13311 7.12684C4.56474 8.69521 3.68364 10.8224 3.68364 13.0404C3.68364 16.5376 5.96446 19.1986 8.24528 21.4034L18.8891 32.0472L29.533 21.4034Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.8891 19.8829L17.3686 18.3623L20.4097 15.3212L15.848 10.7596L18.8891 7.71851" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9161
- function Af(t, e) {
9227
+ var Af = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M29.533 21.4034C31.7986 19.1834 34.0946 16.5224 34.0946 13.0404C34.0946 10.8224 33.2135 8.69521 31.6451 7.12684C30.0768 5.55847 27.9496 4.67737 25.7316 4.67737C23.0554 4.67737 21.1699 5.43764 18.8891 7.71847C16.6083 5.43764 14.7228 4.67737 12.0467 4.67737C9.82865 4.67737 7.70148 5.55847 6.13311 7.12684C4.56474 8.69521 3.68364 10.8224 3.68364 13.0404C3.68364 16.5376 5.96446 19.1986 8.24528 21.4034L18.8891 32.0472L29.533 21.4034Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.8891 19.8829L17.3686 18.3623L20.4097 15.3212L15.848 10.7596L18.8891 7.71851" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9228
+ function Mf(t, e) {
9162
9229
  let n = We(e, "className", 8, ""), s = We(e, "size", 8, 20);
9163
- var i = Of();
9230
+ var i = Af();
9164
9231
  J(() => {
9165
9232
  Ft(i, 0, Bn(n())), ke(i, "width", s()), ke(i, "height", s());
9166
9233
  }), P(t, i);
9167
9234
  }
9168
- var Mf = /* @__PURE__ */ Xs('<svg viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 17.655a3.801 3.801 0 1 0 0-7.602 3.801 3.801 0 0 0 0 7.602Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 3.97a9.884 9.884 0 0 0-9.458 6.995c-1.673 4.76-1.186 5.93-4.835 9.245a4.562 4.562 0 0 0 2.889 8.09c6.082 0 12.772-2.738 17.334-6.54a9.885 9.885 0 0 0-5.93-17.79Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="m28.693 10.053 3.33 6.842c.316.983.475 2.009.471 3.041a9.867 9.867 0 0 1-3.953 7.907c-4.562 3.801-11.252 6.538-17.334 6.538a4.562 4.562 0 0 1-4.075-2.524l-2.92-5.839"></path></svg>');
9235
+ var Pf = /* @__PURE__ */ Xs('<svg viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 17.655a3.801 3.801 0 1 0 0-7.602 3.801 3.801 0 0 0 0 7.602Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 3.97a9.884 9.884 0 0 0-9.458 6.995c-1.673 4.76-1.186 5.93-4.835 9.245a4.562 4.562 0 0 0 2.889 8.09c6.082 0 12.772-2.738 17.334-6.54a9.885 9.885 0 0 0-5.93-17.79Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="m28.693 10.053 3.33 6.842c.316.983.475 2.009.471 3.041a9.867 9.867 0 0 1-3.953 7.907c-4.562 3.801-11.252 6.538-17.334 6.538a4.562 4.562 0 0 1-4.075-2.524l-2.92-5.839"></path></svg>');
9169
9236
  function Do(t, e) {
9170
9237
  let n = We(e, "className", 8, ""), s = We(e, "size", 8, 20);
9171
- var i = Mf();
9238
+ var i = Pf();
9172
9239
  J(() => {
9173
9240
  Ft(i, 0, Bn(n())), ke(i, "width", s()), ke(i, "height", s());
9174
9241
  }), P(t, i);
9175
9242
  }
9176
- var Pf = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34" fill="none"><path d="M9.03846 17.0001C10.3456 12.1888 15.9077 8.65686 20.858 8.65686C25.8083 8.65686 29.2846 12.1888 30.5917 17.0001C29.2846 21.8252 25.8083 25.3432 20.858 25.3432C15.9077 25.3432 10.3456 21.8252 9.03846 17.0001Z" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M25.0296 17V17.6953" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2485 25.2457C20.4397 22.8774 19.4599 19.98 19.4599 16.9999C19.4599 14.0198 20.4397 11.1224 22.2485 8.75403" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.73372 15.1506C9.73372 11.4379 7.75916 8.6151 3.79615 7.96155C2.40562 10.0473 2.40562 14.9142 4.11597 17C2.39171 19.0858 2.39171 23.9527 3.79615 26.0385C7.75916 25.3849 9.73372 22.5621 9.73372 18.8494" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.545 10.4089C14.1834 8.48998 12.7512 6.20951 11.1243 4.48525H19.1893C19.8491 4.4828 20.4883 4.71502 20.9927 5.14042C21.497 5.56582 21.8337 6.15668 21.9426 6.80744L22.2624 8.75418" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2624 25.2459L21.9426 27.1926C21.8337 27.8434 21.497 28.4342 20.9927 28.8596C20.4883 29.285 19.8491 29.5172 19.1893 29.5148H13.2101C14.5573 27.9873 15.2948 26.0172 15.2819 23.9805" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9177
- function Lf(t, e) {
9243
+ var Lf = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34" fill="none"><path d="M9.03846 17.0001C10.3456 12.1888 15.9077 8.65686 20.858 8.65686C25.8083 8.65686 29.2846 12.1888 30.5917 17.0001C29.2846 21.8252 25.8083 25.3432 20.858 25.3432C15.9077 25.3432 10.3456 21.8252 9.03846 17.0001Z" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M25.0296 17V17.6953" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2485 25.2457C20.4397 22.8774 19.4599 19.98 19.4599 16.9999C19.4599 14.0198 20.4397 11.1224 22.2485 8.75403" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.73372 15.1506C9.73372 11.4379 7.75916 8.6151 3.79615 7.96155C2.40562 10.0473 2.40562 14.9142 4.11597 17C2.39171 19.0858 2.39171 23.9527 3.79615 26.0385C7.75916 25.3849 9.73372 22.5621 9.73372 18.8494" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.545 10.4089C14.1834 8.48998 12.7512 6.20951 11.1243 4.48525H19.1893C19.8491 4.4828 20.4883 4.71502 20.9927 5.14042C21.497 5.56582 21.8337 6.15668 21.9426 6.80744L22.2624 8.75418" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2624 25.2459L21.9426 27.1926C21.8337 27.8434 21.497 28.4342 20.9927 28.8596C20.4883 29.285 19.8491 29.5172 19.1893 29.5148H13.2101C14.5573 27.9873 15.2948 26.0172 15.2819 23.9805" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9244
+ function Bf(t, e) {
9178
9245
  let n = We(e, "className", 8, ""), s = We(e, "size", 8, 20);
9179
- var i = Pf();
9246
+ var i = Lf();
9180
9247
  J(() => {
9181
9248
  Ft(i, 0, Bn(n())), ke(i, "width", s()), ke(i, "height", s());
9182
9249
  }), P(t, i);
9183
9250
  }
9184
- var Bf = /* @__PURE__ */ K('<h1 class="wr-Header-title svelte-oiwvqb"> </h1>'), Ff = /* @__PURE__ */ K('<h1 class="wr-Header-title svelte-oiwvqb"> <span><!></span> <span class="wr-Header-label svelte-oiwvqb"> </span>, <!> <span class="wr-Header-label svelte-oiwvqb"> </span> <br/> <!> <span class="wr-Header-label svelte-oiwvqb"> </span> </h1>'), Wf = /* @__PURE__ */ K('<div class="wr-Header"><!></div>');
9185
- const zf = {
9251
+ var Ff = /* @__PURE__ */ K('<h1 class="wr-Header-title svelte-oiwvqb"> </h1>'), Wf = /* @__PURE__ */ K('<h1 class="wr-Header-title svelte-oiwvqb"> <span><!></span> <span class="wr-Header-label svelte-oiwvqb"> </span>, <!> <span class="wr-Header-label svelte-oiwvqb"> </span> <br/> <!> <span class="wr-Header-label svelte-oiwvqb"> </span> </h1>'), zf = /* @__PURE__ */ K('<div class="wr-Header"><!></div>');
9252
+ const jf = {
9186
9253
  hash: "svelte-oiwvqb",
9187
9254
  code: `.wr-Header-title.svelte-oiwvqb {font-weight:600;font-size:24px;margin:0 auto;line-height:1.3;color:#333;text-align:center;
9188
9255
 
@@ -9191,26 +9258,26 @@ const zf = {
9191
9258
  @media screen and (max-width: 768px) {.wr-Header-title.svelte-oiwvqb {display:none;}
9192
9259
  }`
9193
9260
  };
9194
- function jf(t, e) {
9261
+ function Uf(t, e) {
9195
9262
  var u;
9196
- zt(e, !0), Ut(t, zf);
9263
+ zt(e, !0), Ut(t, jf);
9197
9264
  let n = /* @__PURE__ */ re(() => pe.getAppLanguage());
9198
9265
  const s = ((u = window == null ? void 0 : window.wineaterData) == null ? void 0 : u.TITLE_TEXT) || null;
9199
9266
  let i = /* @__PURE__ */ oe(pt(Do));
9200
- var r = Wf(), o = A(r);
9267
+ var r = zf(), o = A(r);
9201
9268
  {
9202
9269
  var a = (l) => {
9203
- var h = Bf(), d = A(h);
9270
+ var h = Ff(), d = A(h);
9204
9271
  J(() => ne(d, s)), P(l, h);
9205
9272
  }, c = (l) => {
9206
- var h = Ff(), d = A(h), p = G(d), f = A(p);
9273
+ var h = Wf(), d = A(h), p = G(d), f = A(p);
9207
9274
  jc(f, () => w(i), (T, M) => {
9208
9275
  M(T, { className: "wr-Header-icon", size: "28" });
9209
9276
  });
9210
9277
  var m = G(p, 2), y = A(m), S = G(m, 2);
9211
- Af(S, { className: "wr-Header-icon", size: "28" });
9278
+ Mf(S, { className: "wr-Header-icon", size: "28" });
9212
9279
  var _ = G(S, 2), x = A(_), g = G(_, 3), b = G(g);
9213
- Df(b, { className: "wr-Header-icon", size: "28" });
9280
+ Of(b, { className: "wr-Header-icon", size: "28" });
9214
9281
  var E = G(b, 2), I = A(E), k = G(E);
9215
9282
  J(
9216
9283
  (T, M, V, j, Q, F) => {
@@ -9224,7 +9291,7 @@ function jf(t, e) {
9224
9291
  () => Ee({ key: "headerOccasion", lang: w(n) }),
9225
9292
  () => Ee({ key: "headerLine2", lang: w(n) })
9226
9293
  ]
9227
- ), on("mouseenter", p, () => D(i, Lf, !0)), on("mouseleave", p, () => D(i, Do, !0)), P(l, h);
9294
+ ), on("mouseenter", p, () => D(i, Bf, !0)), on("mouseleave", p, () => D(i, Do, !0)), P(l, h);
9228
9295
  };
9229
9296
  ce(o, (l) => {
9230
9297
  s ? l(a) : l(c, !1);
@@ -9232,27 +9299,27 @@ function jf(t, e) {
9232
9299
  }
9233
9300
  P(t, r), jt();
9234
9301
  }
9235
- var Uf = /* @__PURE__ */ K('<option class="wr-Footer-lang"> </option>'), Hf = /* @__PURE__ */ K('<select class="wr-Footer-dropdown svelte-1sr6y3t"></select>'), qf = /* @__PURE__ */ K('<footer class="wr-Footer svelte-1sr6y3t"><div class="wr-Footer-center svelte-1sr6y3t"><a href="https://wineater.com" class="wr-Footer-link svelte-1sr6y3t" target="_blank"><span class="wr-Footer-text"> </span> <img class="wr-Footer-logo svelte-1sr6y3t" alt="Wineater Logo"/> <span class="wr-Footer-text wr-Footer-text--sommelier svelte-1sr6y3t"> </span></a></div> <!></footer>');
9236
- const Vf = {
9302
+ var Hf = /* @__PURE__ */ K('<option class="wr-Footer-lang"> </option>'), qf = /* @__PURE__ */ K('<select class="wr-Footer-dropdown svelte-1sr6y3t"></select>'), Vf = /* @__PURE__ */ K('<footer class="wr-Footer svelte-1sr6y3t"><div class="wr-Footer-center svelte-1sr6y3t"><a href="https://wineater.com" class="wr-Footer-link svelte-1sr6y3t" target="_blank"><span class="wr-Footer-text"> </span> <img class="wr-Footer-logo svelte-1sr6y3t" alt="Wineater Logo"/> <span class="wr-Footer-text wr-Footer-text--sommelier svelte-1sr6y3t"> </span></a></div> <!></footer>');
9303
+ const Gf = {
9237
9304
  hash: "svelte-1sr6y3t",
9238
9305
  code: `.wr-Footer.svelte-1sr6y3t {position:relative;border-top:2px solid #f6f7fd;font-weight:200;padding:12px 24px;min-height:40px;}.wr-Footer-center.svelte-1sr6y3t {position:absolute;left:50%;transform:translateX(-50%);text-align:center;}.wr-Footer-dropdown.svelte-1sr6y3t {position:absolute;right:0px;top:50%;transform:translateY(-50%);padding:4px;border-radius:6px;border:2px solid var(--wr-brand-color);background-color:white;color:var(--wr-brand-color);font-weight:500;font-size:12px;cursor:pointer;transition:all 0.2s ease;}.wr-Footer-dropdown.svelte-1sr6y3t:hover {box-shadow:0 4px 8px rgba(123, 43, 235, 0.2);}.wr-Footer-link.svelte-1sr6y3t {text-decoration:none;display:flex;align-items:center;white-space:nowrap;gap:8px;color:#a8a8a8;font-size:12px;line-height:16px;transition:opacity 0.2s ease;}.wr-Footer-link.svelte-1sr6y3t:hover {opacity:0.8;}.wr-Footer-logo.svelte-1sr6y3t {height:16px;width:auto;color:#a8a8a8;}
9239
9306
 
9240
9307
  @media screen and (max-width: 768px) {.wr-Footer-text--sommelier.svelte-1sr6y3t {display:none;}
9241
9308
  }`
9242
9309
  };
9243
- function Gf(t, e) {
9244
- zt(e, !0), Ut(t, Vf);
9310
+ function Kf(t, e) {
9311
+ zt(e, !0), Ut(t, Gf);
9245
9312
  let n = We(e, "countryCode", 3, null), s = /* @__PURE__ */ re(() => pe.getAppLanguage()), i = /* @__PURE__ */ re(() => pe.getSupportedLanguages()), r = /* @__PURE__ */ re(() => pe.getStoreId());
9246
9313
  function o(S) {
9247
9314
  const x = S.target.value;
9248
9315
  rt(at.LANGUAGE_CHANGED, w(r), { from_language: w(s), to_language: x }), pe.setStoreLanguage(x);
9249
9316
  }
9250
- var a = qf(), c = A(a), u = A(c), l = A(u), h = A(l), d = G(l, 2), p = G(d, 2), f = A(p), m = G(c, 2);
9317
+ var a = Vf(), c = A(a), u = A(c), l = A(u), h = A(l), d = G(l, 2), p = G(d, 2), f = A(p), m = G(c, 2);
9251
9318
  {
9252
9319
  var y = (S) => {
9253
- var _ = Hf();
9320
+ var _ = qf();
9254
9321
  Zn(_, 21, () => w(i), Qn, (g, b) => {
9255
- var E = Uf(), I = A(E), k = {};
9322
+ var E = Hf(), I = A(E), k = {};
9256
9323
  J(
9257
9324
  (T) => {
9258
9325
  Kc(E, w(b) === w(s)), ne(I, T), k !== (k = w(b)) && (E.value = (E.__value = w(b)) ?? "");
@@ -9280,25 +9347,25 @@ function Gf(t, e) {
9280
9347
  ), P(t, a), jt();
9281
9348
  }
9282
9349
  Ks(["change"]);
9283
- var Kf = /* @__PURE__ */ K('<a rel="noopener noreferrer"><!></a>'), Xf = /* @__PURE__ */ K("<button><!></button>");
9284
- const Yf = {
9350
+ var Xf = /* @__PURE__ */ K('<a rel="noopener noreferrer"><!></a>'), Yf = /* @__PURE__ */ K("<button><!></button>");
9351
+ const Jf = {
9285
9352
  hash: "svelte-8cxv3l",
9286
9353
  code: `.wr-Action.svelte-8cxv3l {background:transparent;border:none;font-family:inherit;cursor:pointer;display:block;text-decoration:none;transition:background 0.2s,
9287
9354
  color 0.2s,
9288
9355
  box-shadow 0.2s;}.wr-Action.primary.svelte-8cxv3l {background:var(--wr-brand-color);color:#fff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;&:hover {opacity:0.8;}}.wr-Action.outlined.svelte-8cxv3l {background:transparent;color:var(--wr-brand-color);border:2px solid var(--wr-brand-color);border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;&:hover {box-shadow:0 4px 8px rgba(123, 43, 235, 0.25);background-color:var(--wr-brand-color);color:#fff;}}.wr-Action--uppercase.svelte-8cxv3l {text-transform:uppercase;}`
9289
9356
  };
9290
9357
  function Ji(t, e) {
9291
- zt(e, !0), Ut(t, Yf);
9358
+ zt(e, !0), Ut(t, Jf);
9292
9359
  let n = We(e, "type", 3, "button"), s = We(e, "variant", 3, "primary"), i = We(e, "target", 3, "_self"), r = pe.getUiConfig(), o = `wr-Action ${s()} ${e.className || ""} ${r.buttonUppercase ? "wr-Action--uppercase" : ""}`.trim();
9293
9360
  var a = lr(), c = qs(a);
9294
9361
  {
9295
9362
  var u = (h) => {
9296
- var d = Kf(), p = A(d);
9363
+ var d = Xf(), p = A(d);
9297
9364
  Wr(p, e, "default", {}), J(() => {
9298
9365
  Ft(d, 1, Bn(o), "svelte-8cxv3l"), ke(d, "href", e.href), ke(d, "id", e.id), ke(d, "target", i());
9299
9366
  }), P(h, d);
9300
9367
  }, l = (h) => {
9301
- var d = Xf(), p = A(d);
9368
+ var d = Yf(), p = A(d);
9302
9369
  Wr(p, e, "default", {}), J(() => {
9303
9370
  Ft(d, 1, Bn(o), "svelte-8cxv3l"), ke(d, "type", n()), ke(d, "id", e.id);
9304
9371
  }), yn("click", d, function(...f) {
@@ -9313,14 +9380,14 @@ function Ji(t, e) {
9313
9380
  P(t, a), jt();
9314
9381
  }
9315
9382
  Ks(["click"]);
9316
- var Jf = /* @__PURE__ */ K('<form class="wr-Search svelte-1wah7ro"><span class="wr-Search-icon svelte-1wah7ro"></span> <input class="wr-Search-input svelte-1wah7ro" type="text"/> <!></form>');
9317
- const Qf = {
9383
+ var Qf = /* @__PURE__ */ K('<form class="wr-Search svelte-1wah7ro"><span class="wr-Search-icon svelte-1wah7ro"></span> <input class="wr-Search-input svelte-1wah7ro" type="text"/> <!></form>');
9384
+ const Zf = {
9318
9385
  hash: "svelte-1wah7ro",
9319
9386
  code: `.wr-Search.svelte-1wah7ro {position:relative;margin:12px auto;padding:0 6px;display:flex;align-items:center;border:2px solid #d5d9ee;border-radius:10px;}.wr-Search-icon.svelte-1wah7ro {left:12px;width:24px;height:24px;flex:0 0 auto;background-image:url('https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media//search.svg?x=1');background-repeat:no-repeat;background-size:contain;z-index:2;}.wr-Search-input.svelte-1wah7ro {flex:1 1 0%;min-width:0;padding:12px;font-size:16px;border:none;border-radius:10px;outline:none;transition:border 0.2s ease;}.wr-Search-input.svelte-1wah7ro::placeholder {color:var(--wr-wineater-color);opacity:1;transition:color 0.3s ease,
9320
9387
  opacity 0.3s ease-in-out;}.wr-Search-input.svelte-1wah7ro:focus {border-color:var(--wr-brand-color);}.wr-Search-input.svelte-1wah7ro:focus::placeholder {opacity:0.5;}`
9321
9388
  };
9322
- function Zf(t, e) {
9323
- zt(e, !0), Ut(t, Qf);
9389
+ function $f(t, e) {
9390
+ zt(e, !0), Ut(t, Zf);
9324
9391
  let n = We(e, "searchQuery", 15), s, i = /* @__PURE__ */ oe(!1), r = /* @__PURE__ */ oe(0), o = /* @__PURE__ */ oe(0), a = /* @__PURE__ */ oe(!0), c = /* @__PURE__ */ oe(!1), u = /* @__PURE__ */ re(() => pe.getAppLanguage()), l = 0;
9325
9392
  function h() {
9326
9393
  return s;
@@ -9366,7 +9433,7 @@ function Zf(t, e) {
9366
9433
  s && e.initialized && !w(i) && !n().length && !w(c) && d(), n().length > 0 && w(c) && (D(c, !1), l++);
9367
9434
  }), cr(() => {
9368
9435
  });
9369
- var y = { getSearchElement: h }, S = Jf(), _ = G(A(S), 2);
9436
+ var y = { getSearchElement: h }, S = Qf(), _ = G(A(S), 2);
9370
9437
  Qc(_, (g) => s = g, () => s);
9371
9438
  var x = G(_, 2);
9372
9439
  return Ji(x, {
@@ -9385,8 +9452,8 @@ function Zf(t, e) {
9385
9452
  (b = e.onSubmit) == null || b.apply(this, g);
9386
9453
  }), on("focus", _, f), on("blur", _, m), Jc(_, n), P(t, S), jt(y);
9387
9454
  }
9388
- var $f = /* @__PURE__ */ K('<div class="wr-Loader svelte-li6gfl"><div class="wr-Loader-indicator svelte-li6gfl"><span class="svelte-li6gfl"></span> <span class="svelte-li6gfl"></span> <span class="svelte-li6gfl"></span></div></div>');
9389
- const ep = {
9455
+ var ep = /* @__PURE__ */ K('<div class="wr-Loader svelte-li6gfl"><div class="wr-Loader-indicator svelte-li6gfl"><span class="svelte-li6gfl"></span> <span class="svelte-li6gfl"></span> <span class="svelte-li6gfl"></span></div></div>');
9456
+ const tp = {
9390
9457
  hash: "svelte-li6gfl",
9391
9458
  code: `.wr-Loader.svelte-li6gfl {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:10000;text-align:center;}.wr-Loader-indicator.svelte-li6gfl {display:flex;justify-content:center;align-items:center;height:40px;visibility:visible;background-color:white;}.wr-Loader-indicator.svelte-li6gfl span:where(.svelte-li6gfl) {display:block;width:8px;height:8px;margin:0 3px;border-radius:50%;background:linear-gradient(90deg, var(--wr-brand-color), var(--wineater-corp-color));opacity:0.7;
9392
9459
  animation: svelte-li6gfl-typing 1s infinite;}
@@ -9403,26 +9470,26 @@ const ep = {
9403
9470
  }
9404
9471
  }.wr-Loader-indicator.svelte-li6gfl span:where(.svelte-li6gfl):nth-child(1) {animation-delay:0s;}.wr-Loader-indicator.svelte-li6gfl span:where(.svelte-li6gfl):nth-child(2) {animation-delay:0.15s;}.wr-Loader-indicator.svelte-li6gfl span:where(.svelte-li6gfl):nth-child(3) {animation-delay:0.3s;}`
9405
9472
  };
9406
- function tp(t) {
9407
- Ut(t, ep);
9408
- var e = $f();
9473
+ function np(t) {
9474
+ Ut(t, tp);
9475
+ var e = ep();
9409
9476
  P(t, e);
9410
9477
  }
9411
- var np = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), sp = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), ip = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), rp = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), op = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), ap = /* @__PURE__ */ K('<div class="wr-WinePopupMobile svelte-17gehox"><div class="wr-WinePopupMobile-overlay svelte-17gehox"></div> <div class="wr-WinePopupMobile-wrapper svelte-17gehox"><div class="wr-WinePopup js-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close js-WinePopupClose svelte-17gehox">&times;</button></div> <!> <!> <!></div></div></div>'), lp = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), cp = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), up = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), hp = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), dp = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), fp = /* @__PURE__ */ K('<div class="wr-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close svelte-17gehox">&times;</button></div> <!> <!> <!></div>');
9412
- const pp = {
9478
+ var sp = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), ip = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), rp = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), op = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), ap = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), lp = /* @__PURE__ */ K('<div class="wr-WinePopupMobile svelte-17gehox"><div class="wr-WinePopupMobile-overlay svelte-17gehox"></div> <div class="wr-WinePopupMobile-wrapper svelte-17gehox"><div class="wr-WinePopup js-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close js-WinePopupClose svelte-17gehox">&times;</button></div> <!> <!> <!></div></div></div>'), cp = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), up = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), hp = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), dp = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), fp = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), pp = /* @__PURE__ */ K('<div class="wr-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close svelte-17gehox">&times;</button></div> <!> <!> <!></div>');
9479
+ const gp = {
9413
9480
  hash: "svelte-17gehox",
9414
9481
  code: ".wr-WinePopup.svelte-17gehox {position:absolute;width:100%;background-color:white;padding:16px;border-radius:16px;box-shadow:0 6px 30px rgba(0, 0, 0, 0.2);text-align:left;font-size:14px;box-sizing:border-box;display:flex;flex-direction:column;}.wr-WinePopup-text.svelte-17gehox {margin:5px 0;}.wr-WinePopup-header.svelte-17gehox {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}.wr-WinePopup-title.svelte-17gehox {font-size:16px;font-weight:600;margin:0;flex:1;line-height:1.3;}.wr-WinePopup-close.svelte-17gehox {font-size:20px;font-weight:bold;cursor:pointer;color:#999;border:none;background:transparent;line-height:1;}.wr-WinePopup-close.svelte-17gehox:hover {color:#000;}.wr-WinePopup-desc.svelte-17gehox {margin-top:8px;}.wr-WinePopup-reason.svelte-17gehox {font-size:14px;font-weight:400;color:#333;margin-top:8px;}.wr-WinePopup-pairing.svelte-17gehox {margin-top:8px;}.wr-WinePopup-tags.svelte-17gehox {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;justify-content:center;}.wr-WinePopup-tag.svelte-17gehox {display:inline-block;padding:4px 8px;border-radius:12px;background-color:#f5f0ff;border:1px solid #ddd;font-size:13px;color:#333;text-transform:capitalize;}.wr-WinePopupMobile.svelte-17gehox {position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;}.wr-WinePopupMobile-overlay.svelte-17gehox {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);}.wr-WinePopupMobile-wrapper.svelte-17gehox {position:absolute;width:100%;height:100%;top:50%;left:50%;transform:translate(-50%, -50%);max-width:90%;max-height:80%;overflow-y:auto;background:transparent;}"
9415
9482
  };
9416
9483
  function Oo(t, e) {
9417
- zt(e, !0), Ut(t, pp);
9484
+ zt(e, !0), Ut(t, gp);
9418
9485
  const n = !!e.isMobile;
9419
9486
  var s = lr(), i = qs(s);
9420
9487
  {
9421
9488
  var r = (a) => {
9422
- var c = ap(), u = A(c), l = G(u, 2), h = A(l), d = A(h), p = A(d), f = A(p), m = G(p, 2), y = G(d, 2);
9489
+ var c = lp(), u = A(c), l = G(u, 2), h = A(l), d = A(h), p = A(d), f = A(p), m = G(p, 2), y = G(d, 2);
9423
9490
  {
9424
9491
  var S = (I) => {
9425
- var k = np(), T = A(k);
9492
+ var k = sp(), T = A(k);
9426
9493
  J(() => ne(T, e.shortDescription)), P(I, k);
9427
9494
  };
9428
9495
  ce(y, (I) => {
@@ -9432,10 +9499,10 @@ function Oo(t, e) {
9432
9499
  var _ = G(y, 2);
9433
9500
  {
9434
9501
  var x = (I) => {
9435
- var k = sp(), T = A(k);
9502
+ var k = ip(), T = A(k);
9436
9503
  J(() => ne(T, e.reason)), P(I, k);
9437
9504
  }, g = (I) => {
9438
- var k = ip(), T = A(k);
9505
+ var k = rp(), T = A(k);
9439
9506
  J(() => ne(T, e.pairing)), P(I, k);
9440
9507
  };
9441
9508
  ce(_, (I) => {
@@ -9445,9 +9512,9 @@ function Oo(t, e) {
9445
9512
  var b = G(_, 2);
9446
9513
  {
9447
9514
  var E = (I) => {
9448
- var k = op();
9515
+ var k = ap();
9449
9516
  Zn(k, 21, () => e.tags, Qn, (T, M) => {
9450
- var V = rp(), j = A(V);
9517
+ var V = op(), j = A(V);
9451
9518
  J(() => ne(j, w(M))), P(T, V);
9452
9519
  }), P(I, k);
9453
9520
  };
@@ -9463,10 +9530,10 @@ function Oo(t, e) {
9463
9530
  (k = e.onClose) == null || k.apply(this, I);
9464
9531
  }), P(a, c);
9465
9532
  }, o = (a) => {
9466
- var c = fp(), u = A(c), l = A(u), h = A(l), d = G(l, 2), p = G(u, 2);
9533
+ var c = pp(), u = A(c), l = A(u), h = A(l), d = G(l, 2), p = G(u, 2);
9467
9534
  {
9468
9535
  var f = (g) => {
9469
- var b = lp(), E = A(b);
9536
+ var b = cp(), E = A(b);
9470
9537
  J(() => ne(E, e.shortDescription)), P(g, b);
9471
9538
  };
9472
9539
  ce(p, (g) => {
@@ -9476,10 +9543,10 @@ function Oo(t, e) {
9476
9543
  var m = G(p, 2);
9477
9544
  {
9478
9545
  var y = (g) => {
9479
- var b = cp(), E = A(b);
9546
+ var b = up(), E = A(b);
9480
9547
  J(() => ne(E, e.reason)), P(g, b);
9481
9548
  }, S = (g) => {
9482
- var b = up(), E = A(b);
9549
+ var b = hp(), E = A(b);
9483
9550
  J(() => ne(E, e.pairing)), P(g, b);
9484
9551
  };
9485
9552
  ce(m, (g) => {
@@ -9489,9 +9556,9 @@ function Oo(t, e) {
9489
9556
  var _ = G(m, 2);
9490
9557
  {
9491
9558
  var x = (g) => {
9492
- var b = dp();
9559
+ var b = fp();
9493
9560
  Zn(b, 21, () => e.tags, Qn, (E, I) => {
9494
- var k = hp(), T = A(k);
9561
+ var k = dp(), T = A(k);
9495
9562
  J(() => ne(T, w(I))), P(E, k);
9496
9563
  }), P(g, b);
9497
9564
  };
@@ -9511,8 +9578,8 @@ function Oo(t, e) {
9511
9578
  P(t, s), jt();
9512
9579
  }
9513
9580
  Ks(["click"]);
9514
- var gp = /* @__PURE__ */ K('<img class="wr-WineTile-image svelte-yk3emv"/>'), mp = /* @__PURE__ */ K('<div class="wr-WineTile-price svelte-yk3emv"> </div>'), vp = /* @__PURE__ */ K('<div class="wr-WineTile-params svelte-yk3emv"> </div>'), wp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'), bp = /* @__PURE__ */ K('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'), yp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'), Sp = /* @__PURE__ */ K("<div><!> <!></div>"), _p = /* @__PURE__ */ K('<article><header class="wr-WineTile-header svelte-yk3emv"><!> <!> <h3 class="wr-WineTile-title svelte-yk3emv"> </h3></header> <!> <footer class="wr-WineTile-footer svelte-yk3emv"><div class="wr-WineTile-actions svelte-yk3emv"><!></div></footer> <!> <!></article> <!>', 1);
9515
- const kp = {
9581
+ var mp = /* @__PURE__ */ K('<img class="wr-WineTile-image svelte-yk3emv"/>'), vp = /* @__PURE__ */ K('<div class="wr-WineTile-price svelte-yk3emv"> </div>'), wp = /* @__PURE__ */ K('<div class="wr-WineTile-params svelte-yk3emv"> </div>'), bp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'), yp = /* @__PURE__ */ K('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'), Sp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'), _p = /* @__PURE__ */ K("<div><!> <!></div>"), kp = /* @__PURE__ */ K('<article><header class="wr-WineTile-header svelte-yk3emv"><!> <!> <h3 class="wr-WineTile-title svelte-yk3emv"> </h3></header> <!> <footer class="wr-WineTile-footer svelte-yk3emv"><div class="wr-WineTile-actions svelte-yk3emv"><!></div></footer> <!> <!></article> <!>', 1);
9582
+ const Tp = {
9516
9583
  hash: "svelte-yk3emv",
9517
9584
  code: `.wr-WineTile.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;text-align:center;box-sizing:border-box;padding:16px 8px;border-right:2px solid #f6f7fd;position:relative;transform:translateY(0);opacity:1;transition:transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1),
9518
9585
  opacity 180ms cubic-bezier(0.22, 0.61, 0.36, 1);will-change:transform, opacity;}.wr-WineTile.svelte-yk3emv:last-child {border-right:none;}.wr-WineTile.ww-slide-up.svelte-yk3emv {transform:translateY(-28px);opacity:0;}.wr-WineTile-header.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;}.wr-WineTile-image.svelte-yk3emv {height:200px;object-fit:contain;margin:0 auto 16px;display:block;}.wr-WineTile-title.svelte-yk3emv {font-size:15px;font-weight:500;margin:0 0 8px;min-height:3rem;line-height:1.2;text-align:center;color:#000;}.wr-WineTile-params.svelte-yk3emv {font-size:14px;color:#666;white-space:normal;text-align:center;}.wr-WineTile-footer.svelte-yk3emv {margin-top:auto;display:flex;align-items:center;gap:12px;justify-content:center;}.wr-WineTile-price.svelte-yk3emv {font-size:16px;font-weight:400;margin-bottom:8px;color:#333;}.wr-WineTile-actions.svelte-yk3emv {margin:16px auto 0;}
@@ -9534,13 +9601,13 @@ const kp = {
9534
9601
  @media screen and (max-width: 768px) {.wr-WineTile.svelte-yk3emv {flex:0 0 auto;scroll-snap-align:center;width:240px;text-align:center;}
9535
9602
  }`
9536
9603
  };
9537
- function Tp(t, e) {
9538
- zt(e, !0), Ut(t, kp);
9604
+ function xp(t, e) {
9605
+ zt(e, !0), Ut(t, Tp);
9539
9606
  let n = /* @__PURE__ */ re(() => pe.getAppLanguage());
9540
9607
  const s = (N, O) => N[O] || N[O.charAt(0).toUpperCase() + O.slice(1)], i = (N, O) => O.map((te) => s(N, te)).filter(Boolean).join(" • ");
9541
9608
  function r(N) {
9542
9609
  var O;
9543
- return Cf(N, ((O = pe.getCurrency) == null ? void 0 : O.call(pe)) || "USD", w(n));
9610
+ return Nf(N, ((O = pe.getCurrency) == null ? void 0 : O.call(pe)) || "USD", w(n));
9544
9611
  }
9545
9612
  function o(N) {
9546
9613
  return e.selectedWineId === N;
@@ -9561,10 +9628,10 @@ function Tp(t, e) {
9561
9628
  window.removeEventListener("resize", N);
9562
9629
  };
9563
9630
  });
9564
- var l = _p(), h = qs(l), d = A(h), p = A(d);
9631
+ var l = kp(), h = qs(l), d = A(h), p = A(d);
9565
9632
  {
9566
9633
  var f = (N) => {
9567
- var O = gp();
9634
+ var O = mp();
9568
9635
  J(() => {
9569
9636
  ke(O, "src", e.wine.image), ke(O, "alt", e.wine.title);
9570
9637
  }), P(N, O);
@@ -9576,7 +9643,7 @@ function Tp(t, e) {
9576
9643
  var m = G(p, 2);
9577
9644
  {
9578
9645
  var y = (N) => {
9579
- var O = mp(), te = A(O);
9646
+ var O = vp(), te = A(O);
9580
9647
  J((se) => ne(te, se), [() => r(e.wine.total)]), P(N, O);
9581
9648
  };
9582
9649
  ce(m, (N) => {
@@ -9586,7 +9653,7 @@ function Tp(t, e) {
9586
9653
  var S = G(m, 2), _ = A(S), x = G(d, 2);
9587
9654
  {
9588
9655
  var g = (N) => {
9589
- var O = vp(), te = A(O);
9656
+ var O = wp(), te = A(O);
9590
9657
  J((se) => ne(te, se), [
9591
9658
  () => i(e.wine, ["type", "country", "region", "grape"])
9592
9659
  ]), P(N, O);
@@ -9673,10 +9740,10 @@ function Tp(t, e) {
9673
9740
  var F = G(V, 2);
9674
9741
  {
9675
9742
  var L = (N) => {
9676
- var O = Sp(), te = A(O);
9743
+ var O = _p(), te = A(O);
9677
9744
  {
9678
9745
  var se = (B) => {
9679
- var ee = wp(), ve = A(ee);
9746
+ var ee = bp(), ve = A(ee);
9680
9747
  J(() => {
9681
9748
  var je, Ie;
9682
9749
  return ne(ve, ((je = e.translatedPopup) == null ? void 0 : je.reason) || ((Ie = e.translatedPopup) == null ? void 0 : Ie.shortDescription) || e.wine.reason || e.wine.shortDescription);
@@ -9690,9 +9757,9 @@ function Tp(t, e) {
9690
9757
  var ae = G(te, 2);
9691
9758
  {
9692
9759
  var C = (B) => {
9693
- var ee = yp();
9760
+ var ee = Sp();
9694
9761
  Zn(ee, 21, () => c(e.translatedPopup, e.wine), Qn, (ve, je) => {
9695
- var Ie = bp(), Ce = A(Ie);
9762
+ var Ie = yp(), Ce = A(Ie);
9696
9763
  J(() => ne(Ce, w(je))), P(ve, Ie);
9697
9764
  }), P(B, ee);
9698
9765
  };
@@ -9753,7 +9820,7 @@ function Tp(t, e) {
9753
9820
  }), on("mouseenter", h, () => e.onTileEnter(e.wine)), on("mouseleave", h, () => e.onTileLeave(e.wine)), yn("click", h, (N) => e.onTileClick(N, e.wine)), P(t, l), jt();
9754
9821
  }
9755
9822
  Ks(["click"]);
9756
- function xp(t) {
9823
+ function Ep(t) {
9757
9824
  if (!t)
9758
9825
  return "";
9759
9826
  const e = "custom-ui-config-style";
@@ -9761,8 +9828,8 @@ function xp(t) {
9761
9828
  const n = document.createElement("style");
9762
9829
  return n.id = e, n.innerHTML = t, document.head.appendChild(n), e;
9763
9830
  }
9764
- var Ep = /* @__PURE__ */ K('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'), Ip = /* @__PURE__ */ K('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'), Cp = /* @__PURE__ */ K('<div class="wr-App-placeholder svelte-1n46o8q"></div>'), Np = /* @__PURE__ */ K('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!></div>');
9765
- const Rp = {
9831
+ var Ip = /* @__PURE__ */ K('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'), Cp = /* @__PURE__ */ K('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'), Np = /* @__PURE__ */ K('<div class="wr-App-placeholder svelte-1n46o8q"></div>'), Rp = /* @__PURE__ */ K('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!></div>');
9832
+ const Dp = {
9766
9833
  hash: "svelte-1n46o8q",
9767
9834
  code: `
9768
9835
  /* ===================== 1) CSS Variables ===================== */:root {--wineater-corp-color: #0044ff;
@@ -9778,9 +9845,9 @@ const Rp = {
9778
9845
  @media screen and (max-width: 768px) {.wr-App.svelte-1n46o8q {flex-direction:column;padding:0px 16px;min-width:100vw;}.wr-App-placeholder.svelte-1n46o8q {display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 0;width:calc(100vw - 32px);min-width:calc(100vw - 32px);}
9779
9846
  }`
9780
9847
  };
9781
- function Dp(t, e) {
9848
+ function Op(t, e) {
9782
9849
  var te, se, ae;
9783
- zt(e, !0), Ut(t, Rp);
9850
+ zt(e, !0), Ut(t, Dp);
9784
9851
  function n() {
9785
9852
  var C;
9786
9853
  ur("chatbotToken", ((C = window.wineaterData) == null ? void 0 : C.CLIENT_TOKEN) || s, 365), Ia();
@@ -9814,7 +9881,7 @@ function Dp(t, e) {
9814
9881
  const Me = cs[le] || cs[le.toLowerCase()];
9815
9882
  return Me ? { key: le, text: Array.isArray(Me) ? Me.join(", ") : Me } : null;
9816
9883
  }).filter(Boolean);
9817
- return us.length === 0 ? {} : await Nf({
9884
+ return us.length === 0 ? {} : await Rf({
9818
9885
  sourceLang: w(S),
9819
9886
  targetLang: w(y),
9820
9887
  texts: Object.fromEntries(us.map((le) => [le.key, le.text])),
@@ -9911,17 +9978,17 @@ function Dp(t, e) {
9911
9978
  (C = w(b)) != null && C.brandColor && document.documentElement.style.setProperty("--wr-brand-color", w(b).brandColor), (B = w(b)) != null && B.wineaterColor && document.documentElement.style.setProperty("--wr-wineater-color", w(b).wineaterColor);
9912
9979
  }), cr(async () => {
9913
9980
  if (await pe.initializeStore(), !!w(g))
9914
- return D(b, pe.getUiConfig()), w(b).customCss && xp(w(b).customCss), await T(), rt(at.WIDGET_INITIALIZED, w(x)), D(a, !0), document.addEventListener("click", R), () => {
9981
+ return D(b, pe.getUiConfig()), w(b).customCss && Ep(w(b).customCss), await T(), rt(at.WIDGET_INITIALIZED, w(x)), D(a, !0), document.addEventListener("click", R), () => {
9915
9982
  document.removeEventListener("click", R);
9916
9983
  };
9917
9984
  });
9918
9985
  var Y = lr(), N = qs(Y);
9919
9986
  {
9920
9987
  var O = (C) => {
9921
- var B = Np(), ee = A(B);
9988
+ var B = Rp(), ee = A(B);
9922
9989
  {
9923
9990
  var ve = (le) => {
9924
- var Me = Ep(), jn = A(Me);
9991
+ var Me = Ip(), jn = A(Me);
9925
9992
  J(() => ke(jn, "src", w(b).logoUrl)), P(le, Me);
9926
9993
  };
9927
9994
  ce(ee, (le) => {
@@ -9929,9 +9996,9 @@ function Dp(t, e) {
9929
9996
  });
9930
9997
  }
9931
9998
  var je = G(ee, 2);
9932
- jf(je, {});
9999
+ Uf(je, {});
9933
10000
  var Ie = G(je, 2);
9934
- Zf(Ie, {
10001
+ $f(Ie, {
9935
10002
  onSubmit: V,
9936
10003
  get initialized() {
9937
10004
  return w(a);
@@ -9946,7 +10013,7 @@ function Dp(t, e) {
9946
10013
  var Ce = G(Ie, 2);
9947
10014
  {
9948
10015
  var zn = (le) => {
9949
- tp(le);
10016
+ np(le);
9950
10017
  };
9951
10018
  ce(Ce, (le) => {
9952
10019
  w(c) && le(zn);
@@ -9955,12 +10022,12 @@ function Dp(t, e) {
9955
10022
  var xt = G(Ce, 2), Ht = A(xt);
9956
10023
  {
9957
10024
  var cs = (le) => {
9958
- var Me = Ip(), jn = A(Me), ei = A(jn);
10025
+ var Me = Cp(), jn = A(Me), ei = A(jn);
9959
10026
  J(() => ne(ei, w(d))), P(le, Me);
9960
10027
  }, us = (le) => {
9961
- var Me = Cp();
10028
+ var Me = Np();
9962
10029
  Zn(Me, 21, () => w(u), Qn, (jn, ei, Er) => {
9963
- Tp(jn, {
10030
+ xp(jn, {
9964
10031
  get wine() {
9965
10032
  return w(ei);
9966
10033
  },
@@ -9990,7 +10057,7 @@ function Dp(t, e) {
9990
10057
  });
9991
10058
  }
9992
10059
  var xr = G(xt, 2);
9993
- Gf(xr, {
10060
+ Kf(xr, {
9994
10061
  get countryCode() {
9995
10062
  return o;
9996
10063
  }
@@ -10002,7 +10069,7 @@ function Dp(t, e) {
10002
10069
  }
10003
10070
  P(t, Y), jt();
10004
10071
  }
10005
- const Pp = Mc(Dp, { target: document.getElementById("wineater-widget-conteiner") });
10072
+ const Lp = Mc(Op, { target: document.getElementById("wineater-widget-conteiner") });
10006
10073
  export {
10007
- Pp as default
10074
+ Lp as default
10008
10075
  };