import { Component, Element, Event, h, Prop, State } from "@stencil/core";
import * as translation from "../../../translation";
export class IntergiroLogReference {
  componentWillLoad() {
    this.t = translation.create(this.element);
  }
  render() {
    return [
      h("section", null,
        h("smoothly-display", null, this.t("type")),
        h("smoothly-display", { onClick: () => this.referenceFiltered.emit(this.reference.type) }, this.t(this.reference.type))),
      this.reference.id && (h("section", null,
        h("smoothly-display", null, "ID"),
        h("smoothly-display", { onClick: () => this.referenceFiltered.emit(this.reference.id) }, this.reference.id))),
      this.reference.number && (h("section", null,
        h("smoothly-display", null, this.t("number")),
        h("smoothly-display", { onClick: () => this.referenceFiltered.emit(this.reference.number) }, this.reference.number))),
    ];
  }
  static get is() { return "ig-log-reference"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["style.css"]
  }; }
  static get styleUrls() { return {
    "$": ["style.css"]
  }; }
  static get properties() { return {
    "reference": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Log.Reference",
        "resolved": "Reference",
        "references": {
          "Log": {
            "location": "import",
            "path": "@payfunc/model-log"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
  static get states() { return {
    "t": {}
  }; }
  static get events() { return [{
      "method": "referenceFiltered",
      "name": "referenceFiltered",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      }
    }]; }
  static get elementRef() { return "element"; }
}
