System.register(["./p-3c39d395.system.js","./p-efe1606a.system.js","./p-bb662040.system.js"],function(e){"use strict";var t,i,s,n,l;return{setters:[function(e){t=e.r;i=e.h;s=e.g},function(e){n=e.l},function(e){l=e.E}],execute:function(){var o=e("bce_element_matrix_template",function(){function e(e){t(this,e);this.optionIcon="fas:columns";this.question="";this.required=false;this.columns=[];this.rows=[];this.labelQuestion="Formulate your question";this.labelRequired="Required";this.labelOCAddButton="Add";this.labelOCRemoveButton="Delete";this.labelOCOther="Other";this.labelOCImage="Image";this.labelRows="Rows";this.labelColumns="Columns";this.placeholderRows="Row";this.placeholderColumns="Column";this._link=n(this,this.handleInput);this._question=this._link("question");this._required=this._link("required");this._columns=this._link("columns");this._rows=this._link("rows")}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,columns:this.columns,rows:this.rows};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._rows);var t=Object.assign({icon:this.optionIcon,labelOCAddButton:this.labelOCAddButton,labelOCRemoveButton:this.labelOCRemoveButton,labelOCOther:this.labelOCOther,labelOCImage:this.labelOCImage},this._columns);return i(l,{question:this._question,required:this._required},i("div",null,i("bce-option-creator",Object.assign({},e)),i("bce-option-creator",Object.assign({},t))))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return"bce-element-matrix-template>div{position:relative;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap}bce-element-matrix-template>div>bce-option-creator{-ms-flex:1 1 auto;flex:1 1 auto}bce-element-matrix-template>div>bce-option-creator>:last-child{bottom:-27px}bce-element-matrix-template>div>bce-option-creator:first-child>[data-option]>bce-icon{-webkit-transform:rotate(-90deg) translateX(50%);transform:rotate(-90deg) translateX(50%)}\@media screen and (min-width:600px){bce-element-matrix-template>div{-ms-flex-align:start;align-items:flex-start;-ms-flex-flow:row nowrap;flex-flow:row nowrap}}"},enumerable:true,configurable:true});return e}())}}});