'use strict';

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

const index = require('./index-1ee80297.js');
const cookie = require('./cookie-c4d9848a.js');
const index$1 = require('./index-b2910095.js');
const services = require('./services-895a8d1d.js');
const damgaApi = require('./damga-api-9dc79d1b.js');
require('./kimlikApi-1cd43caf.js');
require('./data-transfer-field-0ce05c1a.js');
require('./BaseField-d019ade6.js');
require('./filter-d5040f65.js');
require('./_commonjsHelpers-206db00d.js');

let 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);
    this.apiSozluk = new index$1.SozlukApi();
  }
  render() {
    const { apiDamga, apiData, apiSozluk, product, products, workspaceOwnerships } = this;
    return (index.h(index.Host, null, index.h("devingen-product-damga-domains", { apiDamga: apiDamga, apiData: apiData, apiSozluk: apiSozluk, product: product, products: products, workspaceOwnerships: workspaceOwnerships })));
  }
};

exports.devingen_product_root_damga = DevingenProductRootDamga;
