import { Component, h, Host, Prop } from '@stencil/core';
import services from '../../configs/services';
import { DamgaApi } from '../../../damga/src/api/damga-api';
import { DasDamgaApi } from '../../api/das-damga-api';
export class DevingenProductRootDamga {
  render() {
    const { apiKimlik, product } = this;
    return (h(Host, { class: "d-flex flex-grow-1 flex-column" },
      h("damga-home", { apiEndpoint: services.damga, apiHeaders: {
          Authorization: apiKimlik.api.getDefaults().headers['Authorization'],
          'devingen-product-id': product._id,
        }, extraTabs: [
          {
            key: 'dashboard',
            label: 'Dashboard',
            render: () => h("damga-dashboard", { apiDamga: new DamgaApi(services.damga, {
                Authorization: apiKimlik.api.getDefaults().headers['Authorization'],
                'devingen-product-id': product._id,
              }, { productId: product._id }), apiServicesDamga: new DasDamgaApi(services.dasDamga, { Authorization: apiKimlik.api.getDefaults().headers['Authorization'] }, { productId: product._id }) })
          },
          // {
          //   key: 'logs',
          //   label: 'Logs',
          //   render: () => <damga-domain-logs
          //     apiDamga={
          //       new DamgaApi(
          //         services.damga,
          //         { Authorization: (apiKimlik as any).api.getDefaults().headers['Authorization'] },
          //         { productId: product._id },
          //       )
          //     }
          //     apiServicesDamga={
          //       new DasDamgaApi(
          //         services.dasDamga,
          //         { Authorization: (apiKimlik as any).api.getDefaults().headers['Authorization'] },
          //         { productId: product._id },
          //       )
          //     }
          //   />
          // },
        ] })));
  }
  static get is() { return "devingen-product-root-damga"; }
  static get properties() { return {
    "apiKimlik": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "KimlikApi",
        "resolved": "KimlikApi",
        "references": {
          "KimlikApi": {
            "location": "import",
            "path": "@dvn/kimlik/api/kimlik-api"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "product": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Product",
        "resolved": "Product",
        "references": {
          "Product": {
            "location": "import",
            "path": "../../models/product"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
}
