'use strict';

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

const index = require('./index-df541290.js');

const styleCss = ".sc-smoothly-select-demo-h{display:block}[hidden].sc-smoothly-select-demo-h{display:none}button.sc-smoothly-select-demo:focus{outline:none}";

const SmoothlySelectDemo = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.currencies = ["SEK", "EUR"];
    this.currency = "SEK";
  }
  alertf() {
    var _a;
    console.log(this.quantityElement);
    alert((_a = this.quantityElement) === null || _a === void 0 ? void 0 : _a.value);
  }
  handleSelectionChanged(event) {
    console.log("selectionChanged", event.detail);
  }
  render() {
    return [
      index.h("smoothly-select", { identifier: "currency" }, this.currencies.map(option => this.currency == option ? (index.h("option", { value: option, selected: true }, option)) : (index.h("option", { value: option }, option)))),
      index.h("smoothly-select", { identifier: "language" }, index.h("optgroup", { label: "Nordic" }, index.h("option", { value: "sv" }, "Swedish"), index.h("option", { value: "da", selected: true }, "Danish"), index.h("option", { value: "no" }, "Norwegian")), index.h("optgroup", { label: "Other" }, index.h("option", { value: "en" }, "English"))),
      index.h("smoothly-select", { identifier: "quantity", ref: e => (this.quantityElement = e) }, index.h("option", { value: "1" }, "1"), index.h("option", { value: "2" }, "2"), index.h("option", { value: "3" }, "3")),
      index.h("button", { onClick: () => this.alertf() }, "press here"),
      index.h("smoothly-picker", { label: "filter", "empty-menu-label": "Sorry, we're out of options.", multiple: true, options: [
          { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
          { name: "Cat Stevens", value: "cat", aliases: ["moew"] },
          { name: "Noble Pig", value: "pig" },
          { name: "Turtle Wax", value: "turtle" },
          { name: "Spider Man", value: "spider" },
          { name: "Phoenix Order", value: "phoenix" },
          { name: "Horse Back", value: "horse" },
          { name: "Unicorn Horn", value: "unicorn" },
          { name: "Talking Parrot", value: "parrot" },
          { name: "Hidden Dragon", value: "dragon" },
          { name: "Scary Kraken", value: "kraken" },
        ] }),
      index.h("br", null),
      index.h("smoothly-picker", { label: "filter", multiple: false, "max-menu-height": "200px", options: [
          { name: "Dog", value: "dog", aliases: ["WOFF"], description: "Woof 🐶" },
          { name: "Cat", value: "cat", aliases: ["moew"] },
          { name: "Pig", value: "pig" },
          { name: "Turtle", value: "turtle" },
          { name: "Spider", value: "spider" },
          { name: "Phoenix", value: "phoenix" },
          { name: "Horse", value: "horse" },
          { name: "Unicorn", value: "unicorn" },
          { name: "Parrot", value: "parrot" },
          { name: "Dragon", value: "dragon" },
          { name: "Kraken", value: "kraken" },
        ] }),
    ];
  }
};
SmoothlySelectDemo.style = styleCss;

exports.smoothly_select_demo = SmoothlySelectDemo;
