var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();System.register(["./p-5b6828db.system.js","./p-fa32c614.system.js","./p-58f2f536.system.js"],(function(t){"use strict";var e,n,i;return{setters:[function(t){e=t.h},function(t){n=t.r},function(t){i=t.B}],execute:function(){var o=function(){function t(t,e){this.label=t;this.value=e}return t}();t("b",o);var r=function(t){__extends(e,t);function e(e,n,i,o,r,s){if(r===void 0){r="checkbox"}var u=t.call(this,e,"multiple-choice")||this;u.title=n;u.description=o;u.options=i;u.inputType=r;u.placeholder=s;return u}e.prototype.showPreview=function(){this.preview=true;return this};e.prototype.getOptionOfValue=function(t){if(!this.optionsByValue){this.optionsByValue={};for(var e=0;e<this.options.length;e+=1){this.optionsByValue[this.options[e].value]=this.options[e]}}return this.optionsByValue[t]||{label:t,value:t}};return e}(i);t("M",r);r.type="multiple-choice";var s=function(t,n,i,o,r,s){return e("dvn-field-input-multiple-choice",{disabled:o,errors:i,field:t,onChange:function(e){return r(t,e.detail)},onBlur:function(){return s(t)},value:n})};n("multiple-choice",s);var u=function(){function t(t,e,n,i){this.label=t;this.value=e;this.tint=n;this.description=i}return t}();t("a",u);var p=function(t){__extends(e,t);function e(e,n,i,o,r,s){if(r===void 0){r="radioButton"}var u=t.call(this,e,"single-choice")||this;u.title=n;u.options=i;u.inputType=r;u.description=o;u.placeholder=s;return u}e.prototype.showPreview=function(){this.preview=true;return this};e.prototype.getOptionOfValue=function(t){if(!this.optionsByValue){this.optionsByValue={};for(var e=0;e<this.options.length;e+=1){this.optionsByValue[this.options[e].value]=this.options[e]}}return this.optionsByValue[t]||{label:t,value:t}};e.prototype.setOptions=function(t){this.options=t;return this};e.prototype.setDataProvider=function(t){this.dataProvider=t;return this};e.prototype.setDataAdapter=function(t){this.dataAdapter=t;return this};return e}(i);t("S",p);p.type="single-choice";var c=function(t,n,i,o,r,s){return e("dvn-field-input-single-choice",{disabled:o,errors:i,field:t,onChange:function(e){return r(t,e.detail)},onBlur:function(){return s(t)},value:n})};n("single-choice",c)}}}));