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,o,s,a;return{setters:[function(t){e=t.r;i=t.h;n=t.g},function(t){o=t.B},function(t){s=t.l},function(t){a=t.E}],execute:function(){var r=t("bce_element_checkbox_template",function(){function t(t){var i=this;e(this,t);this.metadata={};this.optionIcon=o.ICON_MAP["checkbox"];this.question="";this.required=false;this.options=[];this.other=false;this.orientation="vertical";this.answer=[];this.labelQuestion="Formulate your question";this.labelRequired="Required";this.labelOCAddButton="Add";this.labelOCRemoveButton="Delete";this.labelOCOther="Other";this.labelOCImage="Image";this.labelOrientation="Oriëntation";this.labelOrientationH="Horizontal";this.labelOrientationV="Vertical";this.placeholderOptions="Option";this._link=s(this,this.handleInput);this._question=this._link("question");this._required=this._link("required");this._options=this._link("options");this._orientation=this._link("orientation");this.handleOther=function(t){var e=t.target;if(!e)return;i.other=t.detail;i.value=i.updateValue({options:e.value,other:t.detail});i.el.dispatchEvent(new Event("input",{bubbles:true}))}}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,other:this.other,orientation:this.orientation,answer:this.answer,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=Object.assign({icon:this.optionIcon,labelOCAddButton:this.labelOCAddButton,labelOCRemoveButton:this.labelOCRemoveButton,labelOCOther:this.labelOCOther,labelOCImage:this.labelOCImage,other:this.other,onOther:this.handleOther,allowOther:true},this._options);return i(a,{question:this._question,required:this._required},i("bce-option-creator",Object.assign({},t)),i("bce-input",Object.assign({type:"radio",value:this.orientation},this._orientation),i("bce-option",{value:"horizontal"},this.labelOrientationH),i("bce-option",{value:"vertical"},this.labelOrientationV)))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:true,configurable:true});return t}())}}});