System.register(["./p-3c39d395.system.js","./p-dac270b1.system.js","./p-efe1606a.system.js","./p-bb662040.system.js"],function(t){"use strict";var e,i,n,s,o,a;return{setters:[function(t){e=t.r;i=t.h;n=t.g},function(t){s=t.B},function(t){o=t.l},function(t){a=t.E}],execute:function(){var r=t("bce_element_icon_template",function(){function t(t){e(this,t);this.metadata={};this.optionIcon=s.ICON_MAP["icon"];this.question="";this.required=false;this.options=[{text:"fas:sad-tear",color:"#ef8b54"},{text:"fas:frown-open",color:"#f3ac4c"},{text:"fas:meh",color:"#f6d24c"},{text:"fas:grin",color:"#d7f18e"},{text:"fas:laugh",color:"#aad77e"}];this.labelQuestion="Formulate your question";this.labelRequired="Required";this.labelOCAddButton="Add";this.labelOCRemoveButton="Delete";this.labelOCOther="Other";this.labelOCImage="Image";this.placeholderOptions="Icon";this._link=o(this,this.handleInput);this._question=this._link("question");this._required=this._link("required");this._options=this._link("options")}t.prototype.handleInput=function(t,e){var i;var n=e.target;if(!n)return;e.cancelBubble=true;this[t]=n.value;this.value=this.updateValue((i={},i[t]=n.value,i));this.el.dispatchEvent(new Event("input",{bubbles:true}))};t.prototype.updateValue=function(t){if(t===void 0){t={}}var e={question:this.question,required:this.required,options:this.options,metadata:Object.assign({},this.metadata)};return Object.assign({},e,t)};t.prototype.componentDidLoad=function(){this.value=this.updateValue();this.el.dispatchEvent(new Event("input",{bubbles:true}))};t.prototype.render=function(){var t=this;var e=Object.assign({icon:this.options.map(function(e){return e.text||t.optionIcon}),labelOCAddButton:this.labelOCAddButton,labelOCRemoveButton:this.labelOCRemoveButton,labelOCOther:this.labelOCOther,labelOCImage:this.labelOCImage,allowImage:false,allowColor:true},this._options);return i(a,{question:this._question,required:this._required},i("bce-option-creator",Object.assign({},e)))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:true,configurable:true});return t}())}}});