'use strict';

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

const index = require('./index-36b3af04.js');
const cookie = require('./cookie-370bc992.js');
const services = require('./services-895a8d1d.js');
const damgaApi = require('./damga-api-a007af55.js');
require('./kimlikApi-85c6d3ac.js');
require('./data-transfer-field-0ce05c1a.js');
require('./BaseField-d019ade6.js');
require('./filter-d5040f65.js');
require('./_commonjsHelpers-206db00d.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;
