var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r["throw"](e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,g as getElement}from"./index-08b73e9e.js";import{A as App}from"./App-364e27cc.js";import"./Token-ba2c5d5c.js";import"./Item-f4cbd6f4.js";import{C as Connection}from"./index-945f930d.js";import"./Credentials-b84c0c5f.js";import"./index-a0a71287.js";import"./_commonjsHelpers-9943807e.js";import"./index-1f953d81.js";import"./TextDecoder-357ac2ce.js";var ComponentDemo=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){Connection.baseUrl="https://api.payfunc.com/";Connection.key="";return[2]}))}))};e.prototype.render=function(){var e=[{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,vat:50,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:e,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)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();export{ComponentDemo as component_demo};