System.register(["./p-3c39d395.system.js"],function(e){"use strict";var t,n,r,u;return{setters:[function(e){t=e.r;n=e.h;r=e.H;u=e.g}],execute:function(){var l=e("bce_element_matrix",function(){function e(e){var n=this;t(this,e);this.handleInput=function(e){e.cancelBubble=true;var t=e.target;var r=t.value.toString().split(","),u=r[0],l=r[1];var i=n.value.slice();i.splice(parseInt(u,10),1,parseInt(l));n.value=i;n.el.dispatchEvent(new Event("input",{bubbles:true}))}}e.prototype.componentDidLoad=function(){this.value=this.value?this.value:Array(this.template.rows.length).fill(null)};e.prototype.render=function(){var e=this;if(!this.template)return null;return n(r,null,n("p",null,this.template.question),n("div",{class:"tl"},this.template.columns.map(function(e,t){return n("label",null,e.text)})),n("div",{class:"sl"},this.template.rows.map(function(e,t){return n("label",null,e.text)})),n("div",{class:"rb"},this.template.rows.map(function(t,r){return n("bce-input",{value:e.value[r],validation:e.template.required?"required":"",onInput:e.handleInput,type:"radio"},e.template.columns.map(function(t,u){return n("bce-option",{checked:e.value[r]===u?true:false,value:r+","+u})}))})))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return"bce-element-matrix{display:grid;grid-template:\"q q\" \".. tl\" auto \"sl rb\" auto/auto auto}bce-element-matrix>p{font-weight:500;grid-area:q;text-align:center}\@media screen and (min-width:1024px){bce-element-matrix>p{text-align:left}}bce-element-matrix>div.tl{position:relative;grid-area:tl;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}bce-element-matrix>div.sl{position:relative;height:100%;grid-area:sl;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}bce-element-matrix>div.sl label{line-height:28px;margin:20px 0 0;height:32px}bce-element-matrix>div.rb{grid-area:rb}bce-element-matrix>div.rb bce-input>[data-input]{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}"},enumerable:true,configurable:true});return e}())}}});