System.register(["./p-3c39d395.system.js","./p-b36ae261.system.js","./p-efe1606a.system.js","./p-bb662040.system.js"],function(e){"use strict";var t,i,s,r,n,o;return{setters:[function(e){t=e.r;i=e.h;s=e.g},function(e){r=e.B},function(e){n=e.l},function(e){o=e.E}],execute:function(){var a=e("bce_element_sort_template",function(){function e(e){t(this,e);this.optionIcon=r.ICON_MAP[r.Type.Sort];this.question="";this.required=false;this.dual=false;this.options=[];this.feedbackCorrect="";this.feedbackIncorrect="";this.labelQuestion="Formulate your question";this.labelRequired="Required";this.labelOCAddButton="Add";this.labelOCRemoveButton="Delete";this.labelOCOther="Other";this.labelOCImage="Image";this.labelDual="Dual";this.labelFeedbackCorrect="Feedback correct";this.labelFeedbackIncorrect="Feedback incorrect";this.placeholderOptions="Option";this.placeholderFeedbackCorrect="Feedback on correct answer";this.placeholderFeedbackIncorrect="Feedback on incorrect answer";this._link=n(this,this.handleInput);this._question=this._link("question");this._required=this._link("required");this._dual=this._link("dual");this._options=this._link("options");this._feedbackCorrect=this._link("feedbackCorrect");this._feedbackIncorrect=this._link("feedbackIncorrect")}e.prototype.handleInput=function(e,t){var i;var s=t.target;if(!s)return;t.cancelBubble=true;this[e]=s.value;this.value=this.updateValue((i={},i[e]=s.value,i));this.el.dispatchEvent(new Event("input",{bubbles:true}))};e.prototype.updateValue=function(e){if(e===void 0){e={}}var t={question:this.question,required:this.required,dual:this.dual,options:this.options,feedbackCorrect:this.feedbackCorrect,feedbackIncorrect:this.feedbackIncorrect};return Object.assign({},t,e)};e.prototype.componentDidLoad=function(){this.value=this.updateValue();this.el.dispatchEvent(new Event("input",{bubbles:true}))};e.prototype.render=function(){var e=Object.assign({icon:this.optionIcon,labelOCAddButton:this.labelOCAddButton,labelOCRemoveButton:this.labelOCRemoveButton,labelOCOther:this.labelOCOther,labelOCImage:this.labelOCImage},this._options);return i(o,{question:this._question,required:this._required},i("bce-option-creator",Object.assign({},e)),i("bce-input",Object.assign({type:"switch"},this._dual)),i("bce-input",Object.assign({type:"textarea"},this._feedbackCorrect)),i("bce-input",Object.assign({type:"textarea"},this._feedbackIncorrect)))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:true,configurable:true});return e}())}}});