(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9cf9"],{"8eb8":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pos-device-history-list"},[s("div",{staticClass:"pos-device-history--title"},[s("div",{staticClass:"uk-grid-small uk-flex-middle",attrs:{"uk-grid":""}},[s("h4",{staticClass:"uk-heading-line uk-width-expand"},[s("span",{domProps:{textContent:t._s(t.$t("deviceHistory.title"))}})]),s("button",{staticClass:"uk-icon uk-icon-link",attrs:{type:"button","uk-icon":"icon: close; ratio: 1.3"},on:{click:t.close}})])]),s("div",{staticClass:"pos-device-history--content"},t._l(t.history,(function(e){return s("aside",{staticClass:"pos-device-history-list-item"},[s("time",{staticClass:"pos-device-history-list-item--date"},[t._v(t._s(t._f("moment")(e.DATE_FROM,"DD.MM.YYYY"))+" ("+t._s(t._f("moment")(e.DATE_FROM,"from"))+")")]),s("div",{staticClass:"pos-device-history-list-item--body",class:e.WORK_TYPE,on:{click:function(s){return s.preventDefault(),t.showDetail(e)}}},[s("div",{staticClass:"pos-device-history-list-item--title",domProps:{textContent:t._s(e.WORK_NAME)}}),s("div",{staticClass:"pos-device-history-list-item--description",domProps:{innerHTML:t._s(e.WORK_DESCR)}})])])})),0)])},n=[],o=(s("96cf"),s("3b8d")),c=(s("ac6a"),s("01da")),a={name:"DeviceHistoryList",props:{serial:String},data:function(){return{replacements:[]}},computed:{history:function(){var t=[];return this.replacements.forEach((function(e){t.push({WORK_TYPE:"service",DATE_FROM:e.Date,WORK_NAME:"Замена картриджа",WORK_DESCR:'Произведена замена "'+e.Name+'" (слот '+e.Slot+")"})})),t}},mounted:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].getReplacementList(this.serial);case 2:e=t.sent,this.replacements=e.replacements;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{showDetail:function(t){},close:function(){this.$emit("close",!1)}}},r=a,l=s("2877"),u=Object(l["a"])(r,i,n,!1,null,null,null);e["default"]=u.exports}}]);