'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-7cdf1df1.js');
require('./BaseField-f50bb8f0.js');
require('./_commonjsHelpers-206db00d.js');
require('./kimlikApi-6a581864.js');
require('./data-transfer-field-025bce2f.js');
require('./filter-52876f3c.js');
const cookie = require('./cookie-8a49bf23.js');
const services = require('./services-895a8d1d.js');
const damgaApi = require('./damga-api-ea5e3386.js');

const DevingenProductRootDamga = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  componentWillLoad() {
    const jwt = new cookie.CookieStorage().getAll().jwt;
    const headers = {
      Authorization: jwt ? `Bearer ${new cookie.CookieStorage().getAll().jwt}` : undefined,
    };
    this.apiDamga = new damgaApi.DamgaApi(`${services.prod.damga}/${services.prod.base}`, headers);
  }
  render() {
    const { apiDamga, apiData, product, products, workspaceOwnerships } = this;
    return (index.h(index.Host, null, index.h("devingen-product-damga-domains", { apiDamga: apiDamga, apiData: apiData, product: product, products: products, workspaceOwnerships: workspaceOwnerships })));
  }
};

exports.devingen_product_root_damga = DevingenProductRootDamga;
