System.register(["./p-3c39d395.system.js","./p-efe1606a.system.js","./p-36a750d0.system.js"],function(t){"use strict";var e,i,s,n,l;return{setters:[function(t){e=t.r;i=t.h;s=t.g},function(t){n=t.l},function(t){l=t.E}],execute:function(){var o=t("bce_element_matrix_template",function(){function t(t){e(this,t);this.metadata={};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")}t.prototype.handleInput=function(t,e){var i;var s=e.target;if(!s)return;e.cancelBubble=true;this[t]=s.value;this.value=this.updateValue((i={},i[t]=s.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,columns:this.columns,rows:this.rows,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},this._rows);var e=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({},t)),i("bce-option-creator",Object.assign({},e))),i("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:true,configurable:true});Object.defineProperty(t,"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 t}())}}});