{
  "version": 3,
  "sources": ["/cdn/shop/t/26/assets/hh-viral.js?x=1795107988716"],
  "sourcesContent": ["// Productos \"de grupo\" con un dise\u00F1o elegido en una galer\u00EDa: chaqueta viral, chaquetas de f\u00FAtbol y Tapestry.\n// La configuraci\u00F3n (textos, colores, tallas, prendas) viene en <script data-hh=\"config\">; los dise\u00F1os, en <script data-hh=\"disenos\">\n// y las variantes del producto de Shopify en <script data-hh=\"variantes\">. El dise\u00F1o viaja como propiedad del pedido.\nimport { montarReco } from \"./hh-reco.js?v=1795207069187\";\nconst esc = (s) => String(s ?? \"\").replace(/[&<>\"']/g, (c) => ({ \"&\": \"&amp;\", \"<\": \"&lt;\", \">\": \"&gt;\", '\"': \"&quot;\", \"'\": \"&#39;\" }[c]));\nconst BOLSA = `<svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" aria-hidden=\"true\"><path d=\"M5 8h14l-1 12H6L5 8Z\"/><path d=\"M9 8V6a3 3 0 0 1 6 0v2\"/></svg>`;\nconst eur = (n) => Number(n).toFixed(2).replace(\".\", \",\") + \" \u20AC\";\n// Gu\u00EDa de tallas de las chaquetas virales (medidas en cm) y rangos de altura y peso de cada talla\nconst GUIA = {\n  tallas: [\"XS\", \"S\", \"M\", \"L\", \"XL\", \"XXL\"], altura: [160, 165, 170, 175, 180, 185], peso: [[42.5, 50], [50, 60], [60, 70], [70, 80], [80, 90], [90, 100]],\n  filas: [[\"Altura (cm)\", [\"160\", \"165\", \"170\", \"175\", \"180\", \"185\"]], [\"Peso (kg)\", [\"42-50\", \"50-60\", \"60-70\", \"70-80\", \"80-90\", \"90-100\"]], [\"Largo espalda\", [64, 66, 68, 70, 72, 74]], [\"Busto\", [116, 120, 124, 128, 132, 136]],\n          [\"Ancho hombros\", [52, 53.5, 55, 56.5, 58, 59.5]], [\"Largo manga\", [56, 57.5, 59, 60.5, 62, 63.5]]],\n};\nclass HHViral extends HTMLElement {\n  connectedCallback() {\n    if (this._listo) return; this._listo = true;\n    const leer = (k, def) => { try { return JSON.parse(this.querySelector(`script[data-hh=\"${k}\"]`)?.textContent || \"null\") ?? def; } catch { return def; } };\n    this.disenos = leer(\"disenos\", []); this.variantes = leer(\"variantes\", []); this.cfgTallas = leer(\"catalogo\", null);\n    this.c = Object.assign({ kicker: \"Chaquetas virales\", titulo: \"The Viral Chinese Jacket\", precio: 150, etiquetaDiseno: \"Extra grande en la espalda\", otro: false, recorte: false, colores: [], tallas: [\"S\", \"M\", \"L\", \"XL\", \"XXL\"], prendas: null, opciones: [\"Color\", \"Talla\"], notaColor: \"\", alt: \"Foto de ejemplo\" }, leer(\"config\", {}));\n    this.guia = this.getAttribute(\"guia\") || \"/pages/guia-de-tallas\";\n    this.animes = [...new Set(this.disenos.map((d) => d.anime))].sort((a, b) => a.localeCompare(b, \"es\"));\n    this.s = { diseno: null, otro: false, peticion: \"\", color: null, talla: null, prenda: null, anime: \"*\", lado: \"a\", foto: 0, busca: \"\" };\n    this.innerHTML = `<div class=\"hh-cfg\">\n        <div class=\"hh-cfg__vista\" data-r=\"vista\"></div>\n        <div class=\"hh-cfg__panel\" data-r=\"panel\"></div>\n      </div>`;\n    this.$ = (r) => this.querySelector(`[data-r=\"${r}\"]`);\n    this.addEventListener(\"click\", (e) => this.onClick(e));\n    this.addEventListener(\"input\", (e) => { if (e.target.matches(\"[data-busca]\")) { this.s.busca = e.target.value; const r = this.$(\"rejilla\"); if (r) r.innerHTML = this.htmlRejilla(); } else if (e.target.matches(\"[data-peticion]\")) { this.s.peticion = e.target.value; this.pintarEstado(); } });\n    this.pintarVista(); this.pintarPanel();\n    if (this.c.fuente === \"pequeno\") this.cargarTodos();\n  }\n\n  /** Bordado peque\u00F1o: se puede elegir cualquier dise\u00F1o de la web que admita un dibujo peque\u00F1o delante (se leen de la lista de dise\u00F1os). */\n  async cargarTodos() {\n    this.cargando = true; this.refrescarDiseno(); const todos = [];\n    try {\n      let url = \"/pages/hh-disenos?view=hh-disenos\";\n      for (let i = 0; url && i < 20; i++) { const j = await (await fetch(url)).json(); todos.push(...j.items); url = j.next || null; }\n      this.disenos = todos.filter((d) => d.tamanos === \"pg\" && d.coleccion === \"normales\" && d.imagen && !/swoosh|nike/i.test(`${d.id} ${d.nombre}`))   // sin marcas ni swoosh en el bordado peque\u00F1o\n        .map((d) => ({ id: d.id, nombre: d.nombre, anime: d.anime || \"Otros\", imagen: d.imagen, mini: d.imagen })).sort((a, b) => a.nombre.localeCompare(b.nombre, \"es\"));\n    } catch { this.errorCarga = true; }\n    this.cargando = false; this.refrescarDiseno();\n  }\n\n  elegido() { return this.disenos.find((d) => d.id === this.s.diseno) ?? null; }\n  /** Colores que se pueden elegir: los del dise\u00F1o (p. ej. cada equipo solo en el color de su chaqueta) o los generales. */\n  colores() {\n    const d = this.elegido();\n    if (d?.colores) return d.colores.split(\",\").map((x) => { const [n, h] = x.split(\":\"); return [n.trim(), (h || \"#888\").trim()]; });\n    return this.c.colores;\n  }\n  precio() {\n    const d = this.elegido(), p = this.c.prendas?.find((x) => x.nombre === this.s.prenda);\n    return d?.precio && (p || !this.c.prendas) ? Number(d.precio) : p ? Number(p.precio) : d?.precio ? Number(d.precio) : Number(this.c.precio);\n  }\n  valores() { // valor de cada opci\u00F3n del producto de Shopify, en su orden\n    const d = this.elegido(), m = { Color: this.s.color, Talla: this.s.talla, Equipo: d?.nombre, Prenda: this.s.prenda && d?.precio ? `${this.s.prenda} (${d.nombre})` : this.s.prenda };   // un dise\u00F1o con precio propio (Gohan y Cell) tiene sus propias variantes\n    return this.c.opciones.map((o) => m[o]);\n  }\n  variante(talla = this.s.talla) {\n    const v = this.valores(); const i = this.c.opciones.indexOf(\"Talla\"); v[i] = talla;\n    return this.variantes.find((x) => x.o.every((val, k) => val === v[k])) ?? null;\n  }\n  listo() { const s = this.s; return !!((this.c.sinDiseno || s.diseno || (s.otro && s.peticion.trim())) && s.color && s.talla && (!this.c.prendas || s.prenda)); }\n  falta() { const s = this.s; return !(this.c.sinDiseno || s.diseno || s.otro) ? \"diseno\" : (s.otro && !s.peticion.trim()) ? \"peticion\" : (this.c.prendas && !s.prenda) ? \"prenda\" : !s.color ? \"color\" : !s.talla ? \"talla\" : \"\"; }\n\n  pintarVista() {\n    const d = this.elegido(), v = this.$(\"vista\"), c = this.c;\n    if (c.fotosColor) {   // foto de la chaqueta del color elegido, sobre el taller (las fotos van ligadas al color por el texto alternativo)\n      const col = this.s.color || this.colores()[0]?.[0], f = c.fotosColor[col] || Object.values(c.fotosColor)[0];\n      v.classList.remove(\"is-recorte\"); v.classList.add(\"is-taller\");\n      // bordado peque\u00F1o: sobre el pecho, en el lado contrario al logo de la chaqueta (el logo est\u00E1 en el pecho izquierdo de quien la lleva; el bordado va en el derecho)\n      v.innerHTML = `<div class=\"hhv-marco\"><img class=\"hhv-foto hhv-foto--color\" src=\"${esc(f)}\" alt=\"${esc(c.titulo)} \u00B7 ${esc(col ?? \"\")}\">${d && c.fuente === \"pequeno\" ? `<img class=\"hhv-pecho\" src=\"${esc(d.imagen)}\" alt=\"${esc(d.nombre)}\">` : \"\"}</div><p class=\"hh-cfg__ejemplo\">${esc(this.s.color ? `${c.alt} \u00B7 ${this.s.color}` : c.alt)}</p>`;\n      return;\n    }\n    if (c.fotos?.length) {\n      const f = c.fotos[this.s.foto % c.fotos.length];\n      v.classList.remove(\"is-recorte\");\n      v.innerHTML = `<img class=\"hhv-fondo\" src=\"${esc(f)}\" alt=\"\"><img class=\"hhv-foto\" src=\"${esc(f)}\" alt=\"${esc(c.titulo)}\">${d ? `<span class=\"hhv-insignia\"><img src=\"${esc(d.imagen)}\" alt=\"${esc(d.nombre)}\"><em>${esc(d.nombre)}<small>Bordado peque\u00F1o en el pecho</small></em></span>` : \"\"}\n        ${c.fotos.length > 1 ? `<button type=\"button\" class=\"hh-girar\" data-accion=\"foto\"><span class=\"hh-girar__icono\" aria-hidden=\"true\">\u21BB</span>Otra foto (${(this.s.foto % c.fotos.length) + 1}/${c.fotos.length})</button>` : \"\"}<p class=\"hh-cfg__ejemplo\">${esc(c.alt)}</p>`;\n      return;\n    }\n    const recorte = c.recorte && !!d?.frente;\n    v.classList.toggle(\"is-recorte\", recorte);\n    if (d?.frente) {\n      const otra = this.s.lado === \"b\";\n      const url = otra ? d.frente : d.imagen;\n      const txt = recorte ? (otra ? \"Ver espalda\" : \"Ver frente\") : (otra ? \"Ver foto 1\" : \"Ver foto 2\");\n      v.innerHTML = `${recorte ? \"\" : `<img class=\"hhv-fondo\" src=\"${esc(url)}\" alt=\"\">`}<img class=\"hhv-foto\" src=\"${esc(url)}\" alt=\"${esc(c.titulo)} \u00B7 ${esc(d.nombre)}\">\n        <button type=\"button\" class=\"hh-girar\" data-accion=\"girar\"><span class=\"hh-girar__icono\" aria-hidden=\"true\">\u21BB</span>${txt}</button>${recorte ? \"\" : `<p class=\"hh-cfg__ejemplo\">${esc(c.alt)}</p>`}`;\n    } else if (d) v.innerHTML = `<img class=\"hhv-fondo\" src=\"${esc(d.imagen)}\" alt=\"\"><img class=\"hhv-foto\" src=\"${esc(d.imagen)}\" alt=\"${esc(c.titulo)} \u00B7 ${esc(d.nombre)}\"><p class=\"hh-cfg__ejemplo\">${esc(c.alt)}</p>`;\n    else if (this.s.otro) v.innerHTML = `<div class=\"hhv-vacio\"><b>Tu anime<br>en la espalda</b><span>Lo preparamos contigo por correo</span></div>`;\n    else v.innerHTML = `<div class=\"hhv-vacio\"><b>${esc(c.vacioTitulo || \"Elige tu dise\u00F1o\")}</b><span>${esc(c.vacioTexto || c.etiquetaDiseno)}</span></div>`;\n  }\n\n  htmlRejilla() {\n    const q = this.s.busca.trim().toLowerCase(), todos = this.disenos.filter((d) => !q || `${d.nombre} ${d.anime}`.toLowerCase().includes(q)), lista = todos.slice(0, 60);\n    return `${lista.map((d, i) => `\n        <button type=\"button\" style=\"--i:${i % 12}\" class=\"hh-diseno${this.s.diseno === d.id ? \" is-on\" : \"\"}\" data-diseno=\"${esc(d.id)}\">\n          <img src=\"${esc(d.mini)}\" alt=\"\" loading=\"lazy\"><span>${esc(d.nombre)}</span></button>`).join(\"\")}${todos.length > lista.length ? `<p class=\"hh-cfg__nota\">Mostrando ${lista.length} de ${todos.length}: escribe para buscar tu anime o personaje.</p>` : \"\"}${!todos.length ? `<p class=\"hh-cfg__nota\">No hay dise\u00F1os con ese nombre.</p>` : \"\"}`;\n  }\n\n  htmlDisenos() {\n    if (this.c.fuente === \"pequeno\") return this.cargando ? `<p class=\"hh-cfg__nota\">Cargando dise\u00F1os\u2026</p>` : this.errorCarga ? `<p class=\"hh-cfg__error\">No se han podido cargar los dise\u00F1os. Recarga la p\u00E1gina.</p>` : `<input class=\"hh-buscar\" data-busca type=\"text\" maxlength=\"60\" placeholder=\"Busca tu anime o personaje\" value=\"${esc(this.s.busca)}\" aria-label=\"Buscar dise\u00F1o\">\n      <div class=\"hh-disenos hh-disenos--galeria\" data-r=\"rejilla\">${this.htmlRejilla()}</div>`;\n    const lista = this.disenos.filter((d) => this.s.anime === \"*\" || d.anime === this.s.anime);\n    return `${this.animes.length > 1 ? `<div class=\"hhv-animes\">\n        <button type=\"button\" class=\"hh-chip${this.s.anime === \"*\" ? \" is-on\" : \"\"}\" data-anime=\"*\">Todos</button>\n        ${this.animes.map((a) => `<button type=\"button\" class=\"hh-chip${this.s.anime === a ? \" is-on\" : \"\"}\" data-anime=\"${esc(a)}\">${esc(a)}</button>`).join(\"\")}\n      </div>` : \"\"}\n      <div class=\"hh-disenos hh-disenos--galeria\">${lista.map((d, i) => `\n        <button type=\"button\" style=\"--i:${i}\" class=\"hh-diseno${this.s.diseno === d.id ? \" is-on\" : \"\"}\" data-diseno=\"${esc(d.id)}\">\n          <img src=\"${esc(d.mini)}\" alt=\"\" loading=\"lazy\"><span>${esc(d.nombre)}</span></button>`).join(\"\")}\n        ${this.c.otro ? `<button type=\"button\" style=\"--i:${lista.length}\" class=\"hh-diseno hhv-otro${this.s.otro ? \" is-on\" : \"\"}\" data-accion=\"otro\"><span class=\"hhv-otro__mas\" aria-hidden=\"true\">+</span><span>Otro</span></button>` : \"\"}</div>\n      ${this.c.otro ? `<div class=\"hhv-ranura\">\n        ${this.s.otro ? `<input class=\"hh-buscar\" data-peticion type=\"text\" maxlength=\"120\" placeholder=\"Anime y personaje (ej. Gojo, Jujutsu Kaisen)\" value=\"${esc(this.s.peticion)}\" aria-label=\"Anime y personaje que quieres\">\n          <aside class=\"hh-aviso-pers\" role=\"note\"><b>C\u00F3mo funciona</b><p>Si eliges tu propio anime, adaptamos el dise\u00F1o para ti. Una vez hecho el pedido, te escribiremos por correo para ense\u00F1\u00E1rtelo y confirmarlo antes de bordar.</p></aside>` : \"\"}\n      </div>` : \"\"}`;\n  }\n\n  htmlColor() {\n    const s = this.s, cs = this.colores(), d = this.elegido();\n    if (!d && !s.otro && this.c.colorDepende) return `<p class=\"hh-cfg__nota\">Elige primero ${esc(this.c.colorDepende)}.</p>`;\n    return `<div class=\"hh-colores\">${cs.map(([n, h], i) => `\n          <button type=\"button\" style=\"--i:${i}\" class=\"hh-color${s.color === n ? \" is-on\" : \"\"}\" data-color=\"${esc(n)}\" title=\"${esc(n)}\" aria-label=\"${esc(n)}\">\n            <span style=\"background:${h}\"></span>\n          </button>`).join(\"\")}<p class=\"hh-cfg__nota\" data-r=\"color-nombre\">${s.color ? esc(s.color) : \"&nbsp;\"}</p></div>\n        ${this.c.notaColor ? `<p class=\"hhv-nota\">${esc(this.c.notaColor)}</p>` : \"\"}`;\n  }\n\n  htmlTallas() {\n    return `<div class=\"hh-chips\">${this.c.tallas.map((t, i) => {\n      const hay = !this.variantes.length || !!this.variante(t);\n      return `<button type=\"button\" style=\"--i:${i}\" class=\"hh-chip hh-chip--talla${this.s.talla === t ? \" is-on\" : \"\"}\" data-talla=\"${t}\"${hay ? \"\" : \" disabled aria-disabled=\\\"true\\\" title=\\\"No disponible\\\"\"}>${t}</button>`;\n    }).join(\"\")}</div>\n        ${this.cfgTallas && this.guiaId() ? \"\" : `<p class=\"hh-cfg__nota\"><a href=\"${esc(this.guia)}${this.guiaId() ? `${this.guia.includes(\"?\") ? \"&\" : \"?\"}prenda=${encodeURIComponent(this.guiaId())}` : \"\"}\" target=\"_blank\" rel=\"noopener\" class=\"hh-enlace\">\u00BFQu\u00E9 talla me queda?</a></p>`}`;\n  }\n\n  /** Gu\u00EDa de tallas: recomendador con barras de altura y peso (el mismo que en las prendas del configurador) y, en las chaquetas, la tabla de medidas. */\n  htmlGuia() {\n    return `<div class=\"hhv-reco-sitio\" data-r=\"reco-sitio\"></div>\n      ${this.c.guiaChaqueta ? `<details class=\"hh-despl hhv-guia\">\n      <summary><span>Tabla de medidas</span><i aria-hidden=\"true\"></i></summary>\n      <div class=\"hhv-guia__cuerpo\">\n        <p class=\"hhv-nota\">Estas chaquetas salen peque\u00F1as: te recomendamos <b>una talla m\u00E1s</b> de la que usas normalmente.</p>\n        <div class=\"hhv-tabla\"><table><thead><tr><th>Talla</th>${GUIA.tallas.filter((t) => this.c.tallas.includes(t)).map((t) => `<th>${t}</th>`).join(\"\")}</tr></thead><tbody>\n          ${GUIA.filas.map(([n, vs]) => `<tr><th>${n}</th>${vs.filter((_, i) => this.c.tallas.includes(GUIA.tallas[i])).map((v) => `<td>${v}</td>`).join(\"\")}</tr>`).join(\"\")}</tbody></table></div>\n        <p class=\"hhv-nota\">Medidas en cm. Si est\u00E1s entre dos tallas, elige la mayor.</p>\n      </div></details>` : \"\"}`;\n  }\n\n  /** Clave de la tabla de tallas que corresponde a lo elegido (Tapestry: seg\u00FAn la prenda). */\n  guiaId() { return this.c.prendas?.find((p) => p.nombre === this.s.prenda)?.guia ?? this.c.prendas?.[0]?.guia ?? this.c.guiaId; }\n  montarReco() {\n    const sitio = this.$(\"reco-sitio\"); if (!sitio || !this.cfgTallas || !this.guiaId()) return;\n    this.reco = montarReco(sitio, {\n      cfg: this.cfgTallas, id: this.guiaId(), guiaUrl: this.guia,\n      tallaElegida: () => this.s.talla, disponibles: () => this.c.tallas,\n      usar: (t) => { if (!this.variantes.length || this.variante(t) || !this.s.color) { this.s.talla = t; this.$(\"talla\").innerHTML = this.htmlTallas(); this.pintarEstado(); } },\n    });\n  }\n  pintarPanel() {\n    const c = this.c; let n = 0; const num = () => String(++n).padStart(2, \"0\");\n    this.$(\"panel\").innerHTML = `\n      <p class=\"hh-cfg__coleccion\">${esc(c.kicker)}</p>\n      <h1 class=\"hh-cfg__titulo\">${esc(c.titulo)}</h1>\n      <p class=\"hh-cfg__precio\" data-r=\"precio\"></p>\n      ${c.sinDiseno ? \"\" : `<section class=\"hh-paso is-nuevo\" data-paso=\"diseno\"><h2><span class=\"hh-paso__n\">${num()}</span>${esc(c.nombreDiseno || \"Dise\u00F1o\")}<em>${esc(c.etiquetaDiseno)}</em></h2><div data-r=\"diseno\">${this.htmlDisenos()}</div></section>`}\n      ${c.prendas ? `<section class=\"hh-paso is-nuevo\" data-paso=\"prenda\"><h2><span class=\"hh-paso__n\">${num()}</span>Prenda</h2>\n        <div class=\"hh-chips\">${c.prendas.map((p, i) => `<button type=\"button\" style=\"--i:${i}\" class=\"hh-chip${this.s.prenda === p.nombre ? \" is-on\" : \"\"}\" data-prenda=\"${esc(p.nombre)}\">${esc(p.nombre)}</button>`).join(\"\")}</div></section>` : \"\"}\n      <section class=\"hh-paso is-nuevo\" data-paso=\"color\"><h2><span class=\"hh-paso__n\">${num()}</span>Color</h2><div data-r=\"color\">${this.htmlColor()}</div></section>\n      <section class=\"hh-paso is-nuevo\" data-paso=\"talla\"><h2><span class=\"hh-paso__n\">${num()}</span>Talla</h2><div data-r=\"talla\">${this.htmlTallas()}</div>${this.cfgTallas && (c.guiaId || c.prendas) ? this.htmlGuia() : \"\"}</section>\n      <p class=\"hh-cfg__error\" data-r=\"error\" role=\"alert\"></p>\n      <button type=\"button\" class=\"hh-boton\" data-accion=\"carrito\" data-r=\"boton\" aria-disabled=\"true\">${BOLSA}<span></span></button>\n      <p class=\"hhv-ok\" data-r=\"ok\" hidden></p>`;\n    this.pintarEstado(); this.montarReco();\n  }\n\n  pintarEstado() {\n    const b = this.$(\"boton\"); if (!b) return;\n    const listo = this.listo(), f = this.falta();\n    b.setAttribute(\"aria-disabled\", listo ? \"false\" : \"true\");\n    b.querySelector(\"span\").textContent = listo ? \"A\u00F1adir al carrito\" : ({ diseno: this.c.pideDiseno || \"Elige un dise\u00F1o\", peticion: \"Escribe tu anime\", prenda: \"Elige la prenda\", color: \"Elige el color\", talla: \"Elige la talla\" })[f];\n    const n = this.$(\"color-nombre\"); if (n) n.textContent = this.s.color ?? \"\u00A0\";\n    const pr = this.$(\"precio\"); if (pr) pr.innerHTML = (this.c.prendas && !this.s.prenda ? \"Desde \" : \"\") + eur(this.c.prendas && !this.s.prenda ? Math.min(...this.c.prendas.map((p) => Number(p.precio))) : this.precio()) + (this.c.tachado && !this.c.prendas ? ` <s class=\"hhv-tachado\">${eur(this.c.tachado)}</s>` : \"\") + (this.c.descuento ? `<small class=\"hh-precio__dto\">\u2212${this.c.descuento} % extra en el carrito \u00B7 compra m\u00EDnima 40 \u20AC</small>` : \"\");\n  }\n\n  /** Tras cambiar dise\u00F1o / prenda / color: se repintan colores y tallas y se descarta lo que ya no sirva. */\n  refrescarOpciones() {\n    const cs = this.colores().map((x) => x[0]);\n    if (this.s.color && !cs.includes(this.s.color)) this.s.color = null;\n    if (!this.s.color && cs.length === 1 && this.c.colorUnico) this.s.color = cs[0];   // un solo color posible: ya viene elegido\n    if (this.s.talla && this.variantes.length && !this.variante()) this.s.talla = null;\n    this.$(\"color\").innerHTML = this.htmlColor(); this.$(\"talla\").innerHTML = this.htmlTallas(); this.pintarEstado();\n  }\n\n  onClick(e) {\n    const t = e.target.closest(\"[data-anime],[data-diseno],[data-color],[data-talla],[data-prenda],[data-accion],[data-talla-reco]\"); if (!t) return;\n    const s = this.s;\n    if (t.dataset.tallaReco) { if (!this.variantes.length || this.variante(t.dataset.tallaReco) || !this.s.color) { s.talla = t.dataset.tallaReco; this.$(\"talla\").innerHTML = this.htmlTallas(); this.pintarEstado(); } return; }\n    if (t.dataset.anime !== undefined) { s.anime = t.dataset.anime; this.refrescarDiseno(); }\n    else if (t.dataset.diseno) { s.diseno = t.dataset.diseno; s.otro = false; s.lado = \"a\"; this.pintarVista(); this.refrescarDiseno(); this.refrescarOpciones(); if (matchMedia(\"(max-width: 899px)\").matches) this.$(\"vista\").scrollIntoView({ behavior: \"smooth\", block: \"center\" }); }\n    else if (t.dataset.accion === \"foto\") { s.foto++; this.pintarVista(); }\n    else if (t.dataset.accion === \"girar\") { s.lado = s.lado === \"b\" ? \"a\" : \"b\"; this.pintarVista(); }\n    else if (t.dataset.accion === \"otro\") { s.otro = !s.otro; if (s.otro) s.diseno = null; this.pintarVista(); this.refrescarDiseno(); this.refrescarOpciones(); this.querySelector(\"[data-peticion]\")?.focus(); }\n    else if (t.dataset.prenda) { s.prenda = t.dataset.prenda; this.querySelectorAll(\"[data-prenda]\").forEach((x) => x.classList.toggle(\"is-on\", x.dataset.prenda === s.prenda)); this.refrescarOpciones(); this.reco?.cambiar(this.guiaId()); }\n    else if (t.dataset.color) { s.color = t.dataset.color; this.querySelectorAll(\"[data-color]\").forEach((x) => x.classList.toggle(\"is-on\", x.dataset.color === s.color)); this.refrescarOpciones(); if (this.c.fotosColor) this.pintarVista(); }\n    else if (t.dataset.talla) { s.talla = t.dataset.talla; this.querySelectorAll(\"[data-talla]\").forEach((x) => x.classList.toggle(\"is-on\", x.dataset.talla === s.talla)); this.pintarEstado(); this.reco?.refrescar(); }\n    else if (t.dataset.accion === \"carrito\") this.anadir();\n  }\n\n  refrescarDiseno() { if (!this.$(\"diseno\")) return; this.$(\"diseno\").innerHTML = this.htmlDisenos(); this.pintarEstado(); }\n\n  async anadir() {\n    const err = this.$(\"error\"), b = this.$(\"boton\"), s = this.s;\n    err.textContent = \"\";\n    if (!this.listo()) {\n      b.classList.remove(\"is-vibra\"); void b.offsetWidth; b.classList.add(\"is-vibra\");\n      const f = this.falta(); this.querySelector(`[data-paso=\"${f === \"peticion\" ? \"diseno\" : f}\"]`)?.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\n      return;\n    }\n    const v = this.variante();\n    if (!v) { err.textContent = \"Esa combinaci\u00F3n no est\u00E1 disponible.\"; return; }\n    const d = this.elegido();\n    const propiedades = this.c.sinDiseno ? { ...(this.c.propiedad ? { [this.c.propiedad[0]]: this.c.propiedad[1] } : {}) } : s.otro\n      ? { \"Dise\u00F1o\": \"Otro dise\u00F1o (a elegir)\", \"Anime y personaje pedido\": s.peticion.trim(), \"Aviso\": \"Te escribiremos por correo para confirmar el dise\u00F1o antes de bordar\" }\n      : { \"Dise\u00F1o\": d.nombre, ...(d.anime ? { [this.c.nombreGrupo || \"Anime\"]: d.anime } : {}), ...(this.c.propiedad ? { [this.c.propiedad[0]]: this.c.propiedad[1] } : {}) };\n    // Foto para el carrito, el pedido y los correos: la chaqueta del color elegido (si hay fotos por color) o la foto del dise\u00F1o\n    const foto = (this.c.fotosColor && (this.c.fotosColor[s.color] || Object.values(this.c.fotosColor)[0])) || d?.frente || d?.imagen;\n    if (foto) propiedades._hh_imagen = new URL(foto, location.href).href;\n    b.disabled = true;\n    try {\n      const r = await fetch(\"/cart/add.js\", { method: \"POST\", headers: { \"Content-Type\": \"application/json\", Accept: \"application/json\" }, body: JSON.stringify({ items: [{ id: v.id, quantity: 1, properties: propiedades }] }) });\n      const j = await r.json(); if (!r.ok || j.status) throw new Error(j.description || j.message || \"No se ha podido a\u00F1adir al carrito\");\n      document.dispatchEvent(new CustomEvent(\"hh:carrito-actualizado\", { detail: j }));\n      document.dispatchEvent(new CustomEvent(\"hh:abrir-carrito\"));\n      const ok = this.$(\"ok\"); ok.hidden = false; ok.innerHTML = `\u2713 A\u00F1adida al carrito. <a href=\"/cart\">Ver carrito</a>`;\n    } catch (x) { err.textContent = x.message; } finally { b.disabled = false; }\n  }\n}\ncustomElements.define(\"hh-viral\", HHViral);\n\n\n"],
  "mappings": "AAGA,OAAS,eAAkB,+BAC3B,MAAM,IAAO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