import { r as registerInstance, h, g as getElement } from './index-aeac5cad.js';
import { A as App } from './App-418c0118.js';
import './_commonjsHelpers-91fffb88.js';
import './index-4920b0b3.js';
import './index-66cd4113.js';
import { C as Connection } from './index-ec2a4942.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("smoothly-trigger", { slot: "nav-end", type: "link", fill: "clear", name: "logout" }, h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium", fill: "clear", color: "light" })), h("smoothly-room", { path: "item", label: "Items" }, h("payfunc-items-display", { items: items, currency: "SEK" }), h("payfunc-items-display", { items: 1337.4222, currency: "SEK" })), h("smoothly-room", { label: "Orders", path: "order" }, h("payfunc-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 };
