'use strict';

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

const index = require('./index-140bcbcd.js');
const App = require('./App-0b3e3f31.js');
require('./Token-8c5ba5d9.js');
require('./Item-00ce8c24.js');
const index$1 = require('./index-ac98852d.js');
require('./Credentials-8e4749ab.js');
require('./index-d3079b93.js');
require('./_commonjsHelpers-537d719a.js');
require('./index-09251373.js');
require('./TextDecoder-753156f3.js');

const ComponentDemo = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  async componentWillLoad() {
    index$1.Connection.baseUrl = "https://api.payfunc.com/";
    index$1.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 (index.h(App.App, { label: "Component Demo" }, index.h("ig-user-menu", { slot: "nav-end", "user-name": "Test User AB" }), index.h("smoothly-room", { path: "item", label: "Items" }, index.h("ig-items-display", { items: items, currency: "SEK" }), index.h("ig-items-display", { items: 1337.4222, currency: "SEK" })), index.h("smoothly-room", { label: "Orders", path: "order" }, index.h("ig-orders", { orders: this.orders })), index.h("smoothly-room", { path: "onboard", label: "Onboard" }, index.h("onboard-demo", null))));
  }
  get element() { return index.getElement(this); }
};

exports.component_demo = ComponentDemo;
