var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{u(r.next(e))}catch(t){i(t)}}function l(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):a(e.value).then(o,l)}u((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,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(o[0]===6&&n.label<i[1]){n.label=i[1];i=o;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(o);break}if(i[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(l){o=[6,l];a=0}finally{r=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-b152ce82.system.js","./p-0cf43fad.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.h},function(e){n=e.v;r=e.d}],execute:function(){var a=this;var i=e("g",(function(e,i){var o="";var l=function(e,n){var r=u();return[r.label!=undefined&&t("bce-label",{disabled:r.disabled,hasFocus:r.hasFocus,tooltip:r.tooltip,"data-hover":r.hover},r.label,t("slot",{name:"label"})),n,(o||r.info)&&t("small",null,o||r.info)]};var u=function(){return{el:e.el,disabled:e.disabled,hasFocus:e.hasFocus,hover:e.hover,label:e.label,tooltip:e.tooltip,validation:e.validation,info:e.info}};var s=function(){if(o)f();else h()};var c=function(){return v([])};var f=function(e){if(e===void 0){e=false}return __awaiter(a,void 0,void 0,(function(){var t,r,a,i,o;return __generator(this,(function(l){switch(l.label){case 0:t=u();if(!t.validation)return[2,v([])];r=t.label||"";a=t.name||"";i={label:r,name:a};return[4,n.validate(t.validation,t.el,i)];case 1:o=l.sent();return[2,v(o,e)]}}))}))};var v=function(e,t){if(t===void 0){t=false}o=e.length?e[0].message:"";if(!t&&i)i(o);return e};var h=r(f,1e3);return Object.assign(l,{getProps:u,handleInput:s,reset:c,validate:f})}))}}}));