var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function l(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(l,a)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(t){return u([e,t])}}function u(l){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=l[0]&2?i["return"]:l[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;if(i=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;i=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1];o=l;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(l);break}if(o[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(e){l=[6,e];i=0}finally{r=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-343b3b10.system.js"],(function(e){"use strict";var t,n,r,i,o;return{setters:[function(e){t=e.r;n=e.c;r=e.h;i=e.H;o=e.g}],execute:function(){var l="dvn-field-input-cell-single-choice{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%}";var a=e("dvn_field_input_cell_single_choice",function(){function e(e){t(this,e);this.cellFormCancel=n(this,"cellFormCancel",7);this.cellFormSubmit=n(this,"cellFormSubmit",7)}e.prototype.focus=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){(t=(e=this.el.querySelector("dvn-select"))===null||e===void 0?void 0:e.focusOnInput)===null||t===void 0?void 0:t.call(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,n=t.field,o=t.value;var l=n.options,a=l===void 0?[]:l;return r(i,null,r("dvn-select",{dataAdapter:n.dataAdapter,dataProvider:n.dataProvider,disabled:n.disabled,leaned:true,value:o,width:"100%",scale:"small",onClick:function(e){e.stopImmediatePropagation()},onBlur:function(t){t.stopImmediatePropagation();e.cellFormCancel.emit()},onChange:function(t){t.stopImmediatePropagation();e.cellFormSubmit.emit({value:t.detail});e.cellFormCancel.emit()}},a.map((function(e){return r("dvn-select-option",{value:e.value},e.label)}))))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());a.style=l}}}));