'use client'
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __decorateClass = (decorators, target, key, kind) => {
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = (kind ? decorator(target, key, result) : decorator(result)) || result;
  if (kind && result)
    __defProp(target, key, result);
  return result;
};

// src/releases/m2m-releases-link.ts
var m2m_releases_link_exports = {};
__export(m2m_releases_link_exports, {
  M2mReleaseLink: () => M2mReleaseLink
});
module.exports = __toCommonJS(m2m_releases_link_exports);
var import_lit = require("lit");
var import_decorators = require("lit/decorators.js");

// src/releases/t.ts
var t = "01HE43KV6SW3JX4EA86JWX5NMW";

// src/releases/m2m-releases-link.ts
var RELEASE_URL = "https://matsuri-releases-api.vercel.app/product";
var M2mReleaseLink = class extends import_lit.LitElement {
  constructor() {
    super(...arguments);
    this.product = "";
  }
  render() {
    return import_lit.html`<a
      href="${RELEASE_URL}/${this.product}?t=${t}"
      target="_blank"
      rel="noopener noreferrer"
      title="リリース情報"
    >
      <span></span>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        width="32px"
        height="32px"
        viewBox="0 0 24 24"
      >
        <path
          fill="currentColor"
          d="M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5zm6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"
        />
      </svg>
    </a>`;
  }
};
M2mReleaseLink.styles = import_lit.css`
    :host a {
      display: block;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      padding: 0px;
      color: rgba(0, 0, 0, 0.87);
      cursor: pointer;
      background-color: transparent;
      border: none;
      transition: background-color 0.2s ease 0s;
      appearance: none;
      &:hover {
        background-color: rgba(0, 0, 0, 0.05);
      }
    }
  `;
__decorateClass([
  (0, import_decorators.property)({ type: String, attribute: "product" })
], M2mReleaseLink.prototype, "product", 2);
M2mReleaseLink = __decorateClass([
  (0, import_decorators.customElement)("m2m-releases-link")
], M2mReleaseLink);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  M2mReleaseLink
});
//# sourceMappingURL=m2m-releases-link.js.map