{
  "version": 3,
  "sources": ["../app/client.css", "../app/copy.ts", "../app/shared/teaser-geometry.json", "../app/shared/tile-layout.ts", "../app/client.ts"],
  "sourcesContent": ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer utilities{.relative{position:relative}.static{position:static}.contents{display:contents}.resize{resize:both}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:host{background:0 0;box-sizing:border-box;display:block;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;max-width:100%;pointer-events:none;width:fit-content}.exp-root{align-items:center;background:0 0;border-radius:32px;box-sizing:border-box;color:#fff;display:flex;flex-direction:column;height:400px;margin:0;overflow:hidden;padding:16px;pointer-events:none;text-align:center;text-shadow:none;width:308px}:host([data-promotion=top]) .exp-root{height:598px;width:460px}.headline,.subline{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;margin:0;overflow:hidden;width:100%}.headline{font-size:22px;font-weight:700;line-height:26px}.subline{font-size:16px;font-weight:400;line-height:20px;margin-top:4px}:host([data-promotion=top]) .headline{font-size:34px;line-height:40px}:host([data-promotion=top]) .subline{font-size:24px;line-height:30px;margin-top:8px}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}", "/**\n * Headline and subline for the live overlay. server.ts repeats the same words\n * in the skeleton string; importing this module there would ship it inside the\n * 50 KB server bundle.\n */\nexport const copy = {\n  'de-DE': {\n    headline: 'Erlebnisse',\n    subline: 'Extra sparen bei Touren, Tickets und Erlebnissen',\n  },\n} as const;\n", "{\n  \"tile\": { \"width\": 308, \"height\": 400, \"radius\": 32 },\n  \"hero\": { \"width\": 460, \"height\": 598, \"radius\": 32 },\n  \"detect\": { \"desktopMinPx\": 769, \"heroSlotMinPx\": 400, \"heroSlotMaxPx\": 560 }\n}\n", "import geometry from './teaser-geometry.json';\n\n/** Tile-only. A classic teaser and a widget do not use these boxes. */\nexport const TILE_WIDTH = geometry.tile.width;\nexport const TILE_HEIGHT = geometry.tile.height;\nexport const HERO_WIDTH = geometry.hero.width;\nexport const HERO_HEIGHT = geometry.hero.height;\nexport const TILE_RADIUS = geometry.tile.radius;\n\nconst { desktopMinPx, heroSlotMinPx, heroSlotMaxPx } = geometry.detect;\n\n/**\n * The host does not say whether this tile is the large slot. The caller measures the\n * slot (the parent), never the element: `data-promotion` changes the element's own width.\n */\nexport const isHeroSlot = (viewportWidth: number, slotWidth: number): boolean => {\n  return viewportWidth >= desktopMinPx && slotWidth >= heroSlotMinPx && slotWidth < heroSlotMaxPx;\n};\n\nexport interface TileLayoutController {\n  sync: () => void;\n  disconnect: () => void;\n}\n\nconst slotWidthOf = (host: HTMLElement): number => {\n  const parent = host.assignedSlot?.parentElement ?? host.parentElement;\n\n  return parent ? parent.clientWidth : host.clientWidth;\n};\n\nconst syncPromotion = (host: HTMLElement) => {\n  if (isHeroSlot(window.innerWidth, slotWidthOf(host))) {\n    host.setAttribute('data-promotion', 'top');\n\n    return;\n  }\n\n  host.removeAttribute('data-promotion');\n};\n\n/**\n * Keeps `data-promotion` in step with the slot. `ResizeObserver` covers a row reflow that\n * does not resize the window. Image tiles must not dispatch `vanilla-home-teaser-snap`.\n */\nexport const attachTileLayout = (host: HTMLElement): TileLayoutController => {\n  let frame = 0;\n\n  const sync = () => {\n    cancelAnimationFrame(frame);\n    frame = requestAnimationFrame(() => {\n      frame = 0;\n      syncPromotion(host);\n    });\n  };\n\n  const breakpoint = window.matchMedia(`(min-width: ${desktopMinPx}px)`);\n  const slot = host.assignedSlot?.parentElement ?? host.parentElement;\n  const resizeObserver = new ResizeObserver(sync);\n  if (slot) {\n    resizeObserver.observe(slot);\n  }\n\n  window.addEventListener('resize', sync);\n  breakpoint.addEventListener('change', sync);\n  sync();\n\n  return {\n    sync,\n    disconnect() {\n      cancelAnimationFrame(frame);\n      window.removeEventListener('resize', sync);\n      breakpoint.removeEventListener('change', sync);\n      resizeObserver.disconnect();\n    },\n  };\n};\n", "import styles from './client.css';\nimport { copy } from './copy';\nimport { type TileLayoutController, attachTileLayout } from './shared/tile-layout';\n\n/**\n * Overlay only. The host paints the video and the click-through (`extraVars.href`).\n * A `<video>` child would be media fallback and would not paint while the clip plays.\n */\nclass BlackdealVideoTile extends HTMLElement {\n  private readonly root: ShadowRoot;\n  private layout: TileLayoutController | null = null;\n\n  constructor() {\n    super();\n    this.root = this.attachShadow({ mode: 'closed' });\n  }\n\n  /** Nothing to react to. The click-through is host-owned, not `vanilla-home-env`. */\n  static get observedAttributes() {\n    return [];\n  }\n\n  connectedCallback() {\n    this.render();\n    this.layout ??= attachTileLayout(this);\n  }\n\n  disconnectedCallback() {\n    this.layout?.disconnect();\n    this.layout = null;\n  }\n\n  private render() {\n    const text = copy['de-DE'];\n    this.root.innerHTML = `\n      <style>${styles}</style>\n      <div class=\"exp-root\">\n        <p class=\"headline\">${text.headline}</p>\n        <p class=\"subline\">${text.subline}</p>\n      </div>\n    `;\n  }\n}\n\ncustomElements.define(__COMPONENT_TAG__, BlackdealVideoTile);\n"],
  "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AiB,SAAUD,CAAI,EAC1CA,EAAK,EAEE,CACL,KAAAA,EACA,YAAa,CACX,qBAAqBD,CAAK,EAC1B,OAAO,oBAAoB,SAAUC,CAAI,EACzCC,EAAW,oBAAoB,SAAUD,CAAI,EAC7CG,EAAe,WAAW,CAC5B,CACF,CACF,ECnEA,IAAMC,EAAN,cAAiC,WAAY,CAI3C,aAAc,CACZ,MAAM,EAJRC,EAAA,KAAiB,QACjBA,EAAA,KAAQ,SAAsC,MAI5C,KAAK,KAAO,KAAK,aAAa,CAAE,KAAM,QAAS,CAAC,CAClD,CAGA,WAAW,oBAAqB,CAC9B,MAAO,CAAC,CACV,CAEA,mBAAoB,CAClB,KAAK,OAAO,EACZ,KAAK,SAAL,KAAK,OAAWC,EAAiB,IAAI,EACvC,CAEA,sBAAuB,CACrB,KAAK,QAAQ,WAAW,EACxB,KAAK,OAAS,IAChB,CAEQ,QAAS,CACf,IAAMC,EAAOC,EAAK,OAAO,EACzB,KAAK,KAAK,UAAY;AAAA,eACXC,CAAM;AAAA;AAAA,8BAESF,EAAK,QAAQ;AAAA,6BACdA,EAAK,OAAO;AAAA;AAAA,KAGvC,CACF,EAEA,eAAe,OAAO,8BAAmBH,CAAkB",
  "names": ["client_default", "copy", "teaser_geometry_default", "TILE_WIDTH", "teaser_geometry_default", "TILE_HEIGHT", "HERO_WIDTH", "HERO_HEIGHT", "TILE_RADIUS", "desktopMinPx", "heroSlotMinPx", "heroSlotMaxPx", "isHeroSlot", "viewportWidth", "slotWidth", "slotWidthOf", "host", "parent", "syncPromotion", "attachTileLayout", "frame", "sync", "breakpoint", "slot", "resizeObserver", "BlackdealVideoTile", "__publicField", "attachTileLayout", "text", "copy", "client_default"]
}
