(window.webpackJsonp=window.webpackJsonp||[]).push([[597],{1126:function(e,t,r){"use strict";r.r(t);r(6),r(5),r(12),r(8),r(13);var n=r(2),o=(r(136),r(7),r(4),r(78));function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}var l={props:{ensaios:{type:Array,default:function(){return[]},required:!0},ensaio:{type:Number,default:function(){return 0},required:!0},route:{type:Number,default:function(){return 0},required:!0},selecionarEnsaio:{type:Function,default:function(){return null},required:!0},spinner:{type:Boolean,default:function(){return null},required:!0}},data:function(){return{ensaiosAux:[]}},computed:function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({routeComputado:{get:function(){return this.route},set:function(e){this.$emit("update:route",e)}}},Object(o.c)({permissoesUser:"usuario/permissoes"})),methods:{lockDragging:function(){return!1},ensaiosUser:function(){var e=this;this.ensaiosAux=[];var t=["ligantes","misturaAsfaltica","solosAgregados","geral","concreto"][this.ensaio-1],r=this.ensaios[0][t];this.ensaiosAux=r.filter((function(t){return e.permissoesUser.some((function(e){return e.nome===t.permissao}))}))}}},d=l,f=r(42),component=Object(f.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-modal",{attrs:{id:"selecao",title:"Seleção de ensaio",size:"lg","hide-footer":"",centered:""},on:{shown:e.ensaiosUser}},[r("div",{staticClass:"animated fadeIn",on:{dragEnter:e.lockDragging,dragStart:e.lockDragging,dragOver:e.lockDragging,drop:e.lockDragging}},[r("b-overlay",{attrs:{variant:"white",show:e.spinner,rounded:"false"},scopedSlots:e._u([{key:"overlay",fn:function(){return[r("div",{staticClass:"text-center"},[r("b-spinner",{staticClass:"font-weight-bold",staticStyle:{width:"3rem",height:"3rem"},attrs:{variant:"primary"}}),e._v(" "),r("p",{staticClass:"font-weight-bold"},[e._v("Carregando...")])],1)]},proxy:!0}])},[e._v(" "),r("b-row",[r("b-col",{attrs:{cols:"12"}},[r("b-form-group",[r("b-form-select",{attrs:{"select-size":10},model:{value:e.routeComputado,callback:function(t){e.routeComputado=t},expression:"routeComputado"}},e._l(e.ensaiosAux,(function(t,n){return r("b-form-select-option",{key:n,attrs:{value:t.id}},[e._v("\n                "+e._s(t.descricao)+"\n              ")])})),1)],1)],1)],1)],1)],1),e._v(" "),r("div",{staticClass:"border-top"},[r("b-button",{staticClass:"my-2 rounded",attrs:{variant:"primary",size:"sm"},on:{click:e.selecionarEnsaio}},[r("fa-icon",{staticClass:"mr-1",attrs:{icon:"file"}}),e._v(" Selecionar\n    ")],1),e._v(" "),r("b-button",{staticClass:"my-2 rounded",attrs:{variant:"outline-primary",size:"sm"},on:{click:function(){return e.$bvModal.hide("selecao")}}},[r("fa-icon",{staticClass:"mr-1",attrs:{icon:"times"}}),e._v("Cancelar\n    ")],1)],1)])}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=a74826d-1.2.11.js.map