{
  "version": 3,
  "sources": ["../app/layout-styles.ts", "../app/client.ts"],
  "sourcesContent": ["/**\n * Shared layout CSS for client widget and SSR skeleton.\n * Keep selectors identical (.widget / .title / .banner / \u2026) so LayoutCheck\n * outer boxes stay congruent across every viewport width.\n */\nexport const LAYOUT_STYLES = `\n.widget {\n  display: block;\n  width: 100%;\n  height: auto;\n  padding: 0;\n  margin: 0;\n  background: transparent;\n  overflow: visible;\n  font-family: inherit;\n  box-sizing: border-box;\n}\n.widget *,\n.widget *::before,\n.widget *::after {\n  box-sizing: border-box;\n}\n\n.title {\n  margin: 0 0 16px;\n  width: 100%;\n  font-size: 24px;\n  line-height: 28px;\n  font-weight: 700;\n  color: #181818;\n}\n\n.banner {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  width: 100%;\n  height: auto;\n  padding: 16px;\n  margin: 0 0 16px;\n  background: #022D94;\n  border-radius: 10px;\n  overflow: hidden;\n  min-width: 0;\n  text-decoration: none;\n  color: inherit;\n}\n\n.logo {\n  flex: 1 1 0;\n  width: 0;\n  min-width: 0;\n  max-width: 300px;\n  height: auto;\n  max-height: 169px;\n  aspect-ratio: 711 / 401;\n  display: block;\n  object-fit: contain;\n  object-position: left center;\n}\n\n.message {\n  display: flex;\n  flex-direction: column;\n  flex: 0 1 auto;\n  margin: 0;\n  width: max-content;\n  min-width: 0;\n  max-width: 100%;\n  color: #ffffff;\n  font-size: 16px;\n  line-height: 21px;\n  font-weight: 400;\n  text-align: left;\n  align-items: flex-start;\n}\n\n.message__line {\n  display: block;\n  white-space: nowrap;\n}\n\n.circles {\n  position: relative;\n  flex: 0 1 250px;\n  width: 250px;\n  min-width: 180px;\n  height: 130px;\n}\n\n.circle {\n  position: absolute;\n  border-radius: 50%;\n  object-fit: cover;\n  display: block;\n}\n\n.circle--kids {\n  width: 130px;\n  height: 130px;\n  top: 0;\n  left: 0;\n  z-index: 1;\n  object-position: 30% 40%;\n}\n\n.circle--plant {\n  width: 120px;\n  height: 120px;\n  left: 130px;\n  top: 5px;\n  z-index: 2;\n}\n\n.link {\n  display: block;\n  margin: 0;\n  font-size: 16px;\n  line-height: 21px;\n  color: #0563C1;\n  text-decoration: none;\n  text-align: left;\n}\n\n@media screen and (min-width: 769px) and (max-width: 907px) {\n  .circles {\n    flex: 0 0 200px;\n    width: 200px;\n    min-width: 200px;\n    height: 104px;\n  }\n  .circle--kids {\n    width: 104px;\n    height: 104px;\n  }\n  .circle--plant {\n    width: 96px;\n    height: 96px;\n    left: 104px;\n    top: 4px;\n  }\n}\n\n@media screen and (max-width: 768px) {\n  .title {\n    font-size: 18px;\n    line-height: 22px;\n  }\n  .banner {\n    flex-direction: column;\n    align-items: center;\n    justify-content: flex-start;\n    gap: 16px;\n    text-align: center;\n    padding: 20px 16px;\n    overflow: visible;\n  }\n  .logo {\n    order: 1;\n    flex: 0 1 auto;\n    width: min(260px, 100%);\n    max-width: 100%;\n    min-width: 0;\n    height: auto;\n    max-height: none;\n    aspect-ratio: 711 / 401;\n  }\n  .circles {\n    order: 2;\n    flex: 0 0 auto;\n    width: min(240px, 100%);\n    min-width: 0;\n    height: auto;\n    aspect-ratio: 240 / 130;\n  }\n  .circle--kids {\n    width: 54.167%;\n    height: auto;\n    aspect-ratio: 1;\n    top: 0;\n    left: 45.833%;\n    z-index: 1;\n  }\n  .circle--plant {\n    width: 45.833%;\n    height: auto;\n    aspect-ratio: 1;\n    left: 0;\n    top: 7.692%;\n    z-index: 2;\n  }\n  .message {\n    order: 3;\n    flex: 0 1 auto;\n    width: max-content;\n    max-width: 100%;\n    text-align: center;\n    align-items: center;\n    font-size: clamp(11px, 4.8vw, 16px);\n    line-height: 1.3125;\n  }\n}\n`.trim();\n", "import type { HomeClientComponentElement } from \"../.check24-home/types/client\";\nimport { LAYOUT_STYLES } from \"./layout-styles\";\n\nconst DEFAULT_LINK_HREF = \"https://spenden.check24.de/\";\n\nconst assetUrl = (filename: string): string =>\n  new URL(`./assets/${filename}`, import.meta.url).href;\n\nconst STYLES = `\n:host {\n  display: block;\n  width: 100%;\n  height: auto;\n  background: transparent;\n  font-family: inherit;\n  margin: 0;\n  box-sizing: border-box;\n}\n${LAYOUT_STYLES}\n\n.link:hover,\n.link:focus {\n  text-decoration: none;\n}\n\n@media (hover: hover) and (pointer: fine) {\n  .circle {\n    transition: transform 0.7s ease-in-out, filter 0.7s ease-in-out;\n  }\n  .banner:hover .circle {\n    transform: scale(1.04);\n    filter: brightness(1.05);\n  }\n}\n`;\n\nclass HotelCheck24HilftWidget\n  extends HTMLElement\n  implements HomeClientComponentElement\n{\n  static observedAttributes = [\n    \"product-slug\",\n    \"deviceoutput\",\n    \"language\",\n    \"platform\",\n    \"env\",\n    \"sso-env\",\n    \"href\",\n    \"link-href\",\n  ];\n\n  #shadow: ShadowRoot;\n  #rendered = false;\n\n  constructor() {\n    super();\n    this.#shadow = this.attachShadow({ mode: \"closed\" });\n  }\n\n  connectedCallback(): void {\n    this.#render();\n  }\n\n  attributeChangedCallback(\n    _name: string,\n    oldValue: string | null,\n    newValue: string | null\n  ): void {\n    if (!this.#rendered || oldValue === newValue) return;\n    this.#render();\n  }\n\n  #linkHref(): string {\n    return (\n      this.getAttribute(\"link-href\") ||\n      this.getAttribute(\"href\") ||\n      DEFAULT_LINK_HREF\n    );\n  }\n\n  #render(): void {\n    const logoSrc = assetUrl(\"logo-check24-hilft.png\");\n    const kidsSrc = assetUrl(\"circle-kids.jpg\");\n    const plantSrc = assetUrl(\"circle-plant.jpg\");\n    const href = this.#linkHref();\n\n    this.#shadow.innerHTML = `\n      <style>${STYLES}</style>\n      <div class=\"widget\">\n        <h2 class=\"title\">Smily-Punkte spenden und helfen</h2>\n        <a class=\"banner\" href=\"${href}\">\n          <img\n            class=\"logo\"\n            src=\"${logoSrc}\"\n            width=\"300\"\n            height=\"169\"\n            alt=\"10 Jahre CHECK24 hilft \u2013 Gemeinsam Gutes tun\"\n          />\n          <p class=\"message\">\n            <span class=\"message__line\">Vielen Dank f\u00FCr Ihre Punktespende</span>\n            <span class=\"message__line\">f\u00FCr einen guten Zweck.</span>\n          </p>\n          <div class=\"circles\" aria-hidden=\"true\">\n            <img class=\"circle circle--kids\" src=\"${kidsSrc}\" width=\"130\" height=\"130\" alt=\"\" />\n            <img class=\"circle circle--plant\" src=\"${plantSrc}\" width=\"120\" height=\"120\" alt=\"\" />\n          </div>\n        </a>\n        <a class=\"link\" href=\"${href}\">Jetzt spenden</a>\n      </div>\n    `;\n    this.#rendered = true;\n  }\n}\n\nif (!customElements.get(\"check24-lp-hilft\")) {\n  customElements.define(\"check24-lp-hilft\", HotelCheck24HilftWidget);\n}\n"],
  "mappings": "yXAKO,IAAMA,EAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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S,CACd,IAAMS,EAAUjB,EAAS,wBAAwB,EAC3CkB,EAAUlB,EAAS,iBAAiB,EACpCmB,EAAWnB,EAAS,kBAAkB,EACtCoB,EAAOR,EAAA,KAAKN,EAAAC,GAAL,WAEbS,EAAA,KAAKZ,GAAQ,UAAY;AAAA,eACdF,CAAM;AAAA;AAAA;AAAA,kCAGakB,CAAI;AAAA;AAAA;AAAA,mBAGnBH,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oDAU0BC,CAAO;AAAA,qDACNC,CAAQ;AAAA;AAAA;AAAA,gCAG7BC,CAAI;AAAA;AAAA,MAGhCT,EAAA,KAAKN,EAAY,GACnB,EA3EII,EAIG,mBAAqB,CAC1B,eACA,eACA,WACA,WACA,MACA,UACA,OACA,WACF,EAiEG,eAAe,IAAI,kBAAkB,GACxC,eAAe,OAAO,mBAAoBA,CAAuB",
  "names": ["LAYOUT_STYLES", "DEFAULT_LINK_HREF", "assetUrl", "filename", "STYLES", "LAYOUT_STYLES", "_shadow", "_rendered", "_HotelCheck24HilftWidget_instances", "linkHref_fn", "render_fn", "HotelCheck24HilftWidget", "__privateAdd", "__privateSet", "__privateMethod", "_name", "oldValue", "newValue", "__privateGet", "logoSrc", "kidsSrc", "plantSrc", "href"]
}
