System.register(["./p-3c39d395.system.js"],function(t){"use strict";var e,n,r,u;return{setters:[function(t){e=t.r;n=t.h;r=t.H;u=t.g}],execute:function(){var l=t("bce_element_matrix",function(){function t(t){var n=this;e(this,t);this.handleInput=function(t){t.cancelBubble=true;var e=t.target;var r=e.value.toString().split(","),u=r[0],l=r[1];var i=n.value.slice();i.splice(parseInt(u,10),1,l);n.value=i;n.el.dispatchEvent(new Event("input",{bubbles:true}))}}t.prototype.componentDidLoad=function(){this.value=Array(this.template.rows.length).fill(null)};t.prototype.render=function(){var t=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(t,e){return n("label",null,t.text)})),n("div",{class:"sl"},this.template.rows.map(function(t,e){return n("label",null,t.text)})),n("div",{class:"rb"},this.template.rows.map(function(e,r){return n("bce-input",{validation:t.template.required?"required":"",onInput:t.handleInput,type:"radio"},t.template.columns.map(function(t,e){return n("bce-option",{value:r+","+e})}))})))};Object.defineProperty(t.prototype,"el",{get:function(){return u(this)},enumerable:true,configurable:true});Object.defineProperty(t,"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 t}())}}});