import {
  __decorateClass,
  __privateAdd,
  __privateGet,
  __privateSet
} from "../../chunks/chunk.QU3DSPNU.js";
import { property } from "lit/decorators.js";
function withLinkProps(base) {
  var _rel;
  class LinkPropsMixin extends base {
    constructor() {
      super(...arguments);
      __privateAdd(this, _rel);
    }
    get rel() {
      if (__privateGet(this, _rel)) {
        return __privateGet(this, _rel);
      }
      return this.target === "_blank" ? "noreferrer noopener" : void 0;
    }
    set rel(value) {
      __privateSet(this, _rel, value);
    }
  }
  _rel = new WeakMap();
  __decorateClass([
    property()
  ], LinkPropsMixin.prototype, "href", 2);
  __decorateClass([
    property()
  ], LinkPropsMixin.prototype, "target", 2);
  __decorateClass([
    property()
  ], LinkPropsMixin.prototype, "rel", 1);
  __decorateClass([
    property({ type: String })
  ], LinkPropsMixin.prototype, "download", 2);
  __decorateClass([
    property()
  ], LinkPropsMixin.prototype, "ping", 2);
  return LinkPropsMixin;
}
export {
  withLinkProps
};
