(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{OVm5:function(t,e,r){"use strict";r.r(e);var n=r("Y8XJ"),a=r("85lN");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function v(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,o=Object.create(i.prototype),s=new D(n||[]);return a(o,"_invoke",{value:k(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=v;var p="suspendedStart",d="executing",y="completed",m={};function _(){}function g(){}function w(){}var x={};f(x,l,(function(){return this}));var C=Object.getPrototypeOf,b=C&&C(C(T([])));b&&b!==r&&n.call(b,l)&&(x=b);var S=w.prototype=_.prototype=Object.create(x);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(a,o,s,l){var c=h(t[a],t,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==i(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return o=o?o.then(a,a):a()}})}function k(e,r,n){var a=p;return function(i,o){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var l=j(s,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var c=h(e,r,n);if("normal"===c.type){if(a=n.done?y:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=y,n.method="throw",n.arg=c.arg)}}}function j(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=h(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function s(t,e,r,n,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,a)}function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r\n \n \n ".concat(e,"\n \n \n ").concat(t,"\n \n ")),a.document.close(),a.focus(),a.print(),a.close()},load:(u=o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.get(a.a.showTestResult(this.$route.params.testResult));case 2:(e=t.sent)&&200==e.status&&(this.data=e.data.data);case 4:case"end":return t.stop()}}),t,this)})),f=function(){var t=this,e=arguments;return new Promise((function(r,n){var a=u.apply(t,e);function i(t){s(a,r,n,i,o,"next",t)}function o(t){s(a,r,n,i,o,"throw",t)}i(void 0)}))},function(){return f.apply(this,arguments)})},created:function(){this.load()}},h=r("KHd+"),p=Object(h.a)(v,(function(){var t=this,e=t._self._c;return e("v-container",{attrs:{"grid-list-xs":""}},[e("material-card",{attrs:{color:"black",title:"Show Test Result",id:"printMe"}},[e("v-layout",{staticClass:"px-5 my-3",attrs:{"align-left":"","justify-left":"",wrap:""}},[e("h3",{staticClass:"ml-3"},[t._v("Common Info")]),t._v(" "),e("v-flex",{attrs:{xs12:""}},[e("hr",{staticClass:"v-divider theme--light"})]),t._v(" "),e("v-layout",{staticClass:"ml-4",attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md6:"",sm6:""}},[e("div",{},[e("span",{staticClass:"title"},[t._v(t._s(t.data.device_label||"AutoclaveID")+" :")]),t._v(" "),e("span",{staticClass:"headline SCCD-font ml-2",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.device_id))])])]),t._v(" "),e("v-flex",{attrs:{xs12:"",md6:"",sm6:""}},[e("div",{},[e("span",{staticClass:"title"},[t._v("Result :")]),t._v(" "),e("v-icon",{staticClass:"green--text ml-2 caption"},[t._v("fas fa-check")]),t._v(" "),e("span",{staticClass:"headline SCCD-font ml-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.result))])],1)]),t._v(" "),e("v-flex",{attrs:{xs12:"",md6:"",sm6:""}},[e("div",{},[e("span",{staticClass:"title"},[t._v("verify :")]),t._v(" "),e("v-icon",{staticClass:"pink--text ml-2 caption"},[t._v("fas fa-times")]),t._v(" "),e("span",{staticClass:"headline SCCD-font ml-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.verified))])],1)]),t._v(" "),e("v-flex",{attrs:{xs12:"",md6:"",sm6:""}},[e("div",{},[e("span",{staticClass:"title"},[t._v("Register User :")]),t._v(" "),e("span",{staticClass:"headline SCCD-font ml-2",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.user.name))])])]),t._v(" "),e("v-flex",{attrs:{xs12:"",md6:"",sm6:""}},[e("div",{},[e("span",{staticClass:"title"},[t._v("Date :")]),t._v(" "),e("span",{staticClass:"headline SCCD-font ml-2",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.created_at))])])]),t._v(" "),e("v-flex",{attrs:{xs12:"",md6:"",sm6:""}},[e("div",{},[e("span",{staticClass:"title"},[t._v("Medical Center :")]),t._v(" "),e("span",{staticClass:"headline SCCD-font ml-2",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.user.medical_center.name))])])])],1)],1),t._v(" "),e("v-layout",{staticClass:"px-5 my-3",attrs:{"align-left":"","justify-left":"",wrap:""}},[e("h3",{staticClass:"ml-3"},[t._v("Special Info")]),t._v(" "),e("v-flex",{attrs:{xs12:""}},[e("hr",{staticClass:"v-divider theme--light"})]),t._v(" "),e("v-layout",{staticClass:"ml-4",attrs:{row:"",wrap:""}},[t.data.inputs?t._l(t.data.inputs,(function(r,n){return e("v-flex",{key:n,attrs:{xs12:"",md6:"",sm6:""}},[e("span",{staticClass:"title"},[t._v(t._s(n)+" :")]),t._v(" "),e("span",{staticClass:"headline SCCD-font ml-2",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(r))])])})):t._e(),t._v(" "),t.data.options?t._l(t.data.options,(function(r,n){return e("v-flex",{key:n,attrs:{xs12:"",md6:"",sm6:""}},[e("span",{staticClass:"title"},[t._v(t._s(n)+" :")]),t._v(" "),t._l(r,(function(r,n){return e("span",{key:n,staticClass:"headline SCCD-font ml-2",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(r)+",")])}))],2)})):t._e(),t._v(" "),t.data.children?t._l(t.data.children,(function(r,n){return e("v-flex",{key:n,attrs:{xs12:"",md6:"",sm6:""}},[e("h3",{staticClass:"ml-3"},[t._v(t._s(n))]),t._v(" "),t._l(r,(function(r,n){return e("div",{key:n},[e("div",{staticClass:"ml-4"},[e("span",{staticClass:"title"},[t._v(t._s(n)+" :")]),t._v(" "),Array.isArray(r)?t._l(r,(function(r,n){return e("span",{key:n,staticClass:"headline SCCD-font ml-2",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(r)+",")])})):[e("span",{staticClass:"headline SCCD-font ml-2"},[t._v(t._s(r))])]],2)])}))],2)})):t._e()],2)],1),t._v(" "),e("v-layout",{staticClass:"px-5 my-3",attrs:{"align-left":"","justify-left":"",wrap:""}},[e("h3",{staticClass:"ml-3"},[t._v("Image")]),t._v(" "),e("v-flex",{attrs:{xs12:""}},[e("hr",{staticClass:"v-divider theme--light"})]),t._v(" "),e("v-layout",{staticClass:"ml-4",attrs:{row:"",wrap:""}})],1)],1),t._v(" "),e("material-card",[e("v-layout",{attrs:{row:"",wrap:"","align-center":"","justify-center":""}},[e("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[e("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Gray",on:{click:t.print}},[e("v-icon",{staticClass:"black--text mr-2 caption"},[t._v("fas fa-print")]),t._v(" "),e("span",{staticClass:"black--text"},[t._v("Print")])],1)],1)],1)],1)],1)}),[],!1,null,null,null);e.default=p.exports}}]);