import { r as registerInstance, h, g as getElement } from './index-07845439.js';
import './index-cd3eb450.js';
import { C as Connection } from './index-e20749b7.js';
import { A as App } from './App-15d9fce3.js';
import './index-f068b00b.js';
import './index-265fba1f.js';
import './index-b6cf748e.js';
import './_commonjsHelpers-8fe71198.js';
import './index-63517df5.js';

const ComponentDemo = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  async componentWillLoad() {
    Connection.baseUrl = "https://api.payfunc.com/";
    Connection.key = "";
  }
  render() {
    const items = [
      {
        number: "ts001-b",
        name: "Basic T-shirt, black",
        price: 119.6,
        vat: 29.9,
        quantity: 5,
      },
      {
        number: "ts001-w",
        name: "Basic T-shirt, white",
        price: 200.0,
        vat: 50.0,
        quantity: 10,
      },
    ];
    return (h(App, { label: "Component Demo" }, h("ig-user-menu", { slot: "nav-end", "user-name": "Test User AB" }), h("smoothly-room", { path: "item", label: "Items" }, h("ig-items-display", { items: items, currency: "SEK" }), h("ig-items-display", { items: 1337.4222, currency: "SEK" })), h("smoothly-room", { label: "Orders", path: "order" }, h("ig-orders", { orders: this.orders })), h("smoothly-room", { path: "onboard", label: "Onboard" }, h("onboard-demo", null))));
  }
  get element() { return getElement(this); }
};

export { ComponentDemo as component_demo };
