You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
67 KiB
JavaScript
2 lines
67 KiB
JavaScript
webpackJsonp([1],{168:function(e,n,t){"use strict";(function(e){var o=t(17),i=t(223),a=t(26),r=t(228);o.default.use(i.a);var s=new i.a({hashbang:!1,mode:"history",base:e,saveScrollPosition:!0,routes:r.a,scrollBehavior:function(e,n,t){return e.meta.fromHistory=null!==t,t||{x:0,y:0}}});s.beforeEach(function(e,n,t){e.meta&&e.meta.requiresAuth?a.a.state.isLoggedIn()?e.meta.requiresRole&&-1===e.meta.requiresRole.indexOf(a.a.getters.role)&&e.meta.requiresProp&&a.a.getters[e.meta.requiresProp.name]!==e.meta.requiresProp.value?t(Error("Unauthorized")):t():t({name:"login"}):t()}),n.a=s}).call(n,"/")},170:function(e,n,t){"use strict";var o=t(171),i=t.n(o),a=t(172),r=t.n(a),s=t(23),c=t(6),d=t(270),l=t(273);n.a={name:"Login",mixins:[c.a],components:{loading:d.a,modal:l.a},data:function(){return{email:"",emailRules:[function(e){return!!e||"Email is required"},function(e){return/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(e)||"Email must be valid"}],password:"",passwordRules:[function(e){return!!e||"Password is required"}],valid:!1,loggingIn:!1,error:null,passwordHidden:!0}},methods:{onLogin:function(){this.loggingIn=!0;var e=this;s.a.getToken(this.email,this.password).then(function(n){return e.$store.dispatch("login",n),console.log("logged in"),s.a.getUser()}).then(function(n){return e.$store.dispatch("setClaims",n),e.loggingIn=!1,s.a.getTechnician(n.sub)}).then(function(n){n&&n.success&&(e.$store.commit("technicianId",n.technician.id),e.$store.commit("technicianType",n.technician.type)),e.$router.push("/dashboard")}).catch(function(n){e.loggingIn=!1,e.error=n.message||n})}},created:function(){var e=this;return r()(i.a.mark(function n(){return i.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:try{e.$store.state.isLoggedIn()&&e.$router.push("/dashboard")}catch(e){console.log("catch login.created error : "+e.message||e)}case 1:case"end":return n.stop()}},n,e)}))()}}},187:function(e,n,t){"use strict";n.a={name:"loading"}},188:function(e,n,t){"use strict";n.a={name:"modal"}},189:function(e,n,t){"use strict";var o=t(23),i=t(6);n.a={mixins:[i.a],mounted:function(){var e=this,n=this;this.$store.state.maintenanceStatuses&&0!==this.$store.state.maintenanceStatuses.length||o.a.getMaintenanceStatuses().then(function(e){n.$store.commit("cacheMaintenanceStatuses",e)}).catch(function(e){n.toast("error",e)}),this.$store.state.maintenancePriorities&&0!==this.$store.state.maintenancePriorities.length?this.priorities=this.$store.state.maintenancePriorities:o.a.getMaintenancePriorities().then(function(e){n.$store.commit("cacheMaintenancePriorities",e)}).catch(function(e){n.toast("error",e)}),this.$store.state.commonholds&&0!==this.$store.state.commonholds.length||o.a.getCommonholds().then(function(t){n.$store.commit("cacheCommonholds",t),e.commonholds=t}).catch(function(e){n.toast("error",e)}),this.$store.state.managers&&0!==this.$store.state.managers.length||o.a.getManagers().then(function(e){n.$store.commit("cacheManagers",e)}).catch(function(e){n.toast("error",e)})}}},190:function(e,n,t){"use strict";var o=t(16),i=t.n(o),a=t(8),r=t(6),s=t(191);n.a={mixins:[r.a],data:function(){return{intervention:{},documents:[],images:[],currentStatus:0,dialog:!1,pendingInterventions:0}},props:{id:{type:String,required:!0},context:{type:String,required:!1}},components:{"contact-list":s.a},mounted:function(){this.fetch(this.id)},methods:{fetch:function(e){var n=this;a.a.getIntervention(e).then(function(e){e.createdOn=Date.parse(e.createdOn)||e.createdOn,n.intervention=e,n.currentStatus=n.intervention.statusId}).catch(function(e){n.toast("error",e)}),a.a.getInterventionDocuments(e).then(function(e){n.documents=e?i()(e).map(function(n){var t=e[n];return t.id=n,t}):[]}).catch(function(e){n.toast("error",e)}),a.a.getInterventionImages(e).then(function(e){n.images=e?i()(e).map(function(n){var t=e[n];return t.id=n,t}):[]}).catch(function(e){n.toast("error",e)})},isActiveStatus:function(e){switch(this.intervention.statusId){case 2:return 3===e;case 3:return 4===e||5===e;case 4:return 3===e||5===e;default:return!1}},getDate:function(e){var n=new Date(e),t=n.getMonth()+1;t<10&&(t="0"+t);var o=n.getDate();return o<10&&(o="0"+o),n.getFullYear()+"-"+t+"-"+o},newReport:function(){var e=this;a.a.createReport(this.intervention.id).then(function(n){e.toast("success","Intervenção iniciada"),e.intervention.statusId=3,e.intervention.currentReportId=n.id,n.pendingInterventions&&n.pendingInterventions>0&&(e.pendingInterventions=n.pendingInterventions,e.dialog=!0)}).catch(function(n){e.toast("error",n)})},execute:function(e){this.$router.push("/interventions/"+this.intervention.id+"/reports/"+this.intervention.currentReportId+"/"+e)},downloadDocument:function(e,n){var t=this;a.a.getInterventionDocument(e,n).then(function(e){if(e){var n=window.URL.createObjectURL(new Blob([e.stream])),t=document.createElement("a");t.href=n,t.setAttribute("download",e.name),document.body.appendChild(t),t.click()}}).catch(function(e){t.toast("error",e)})},downloadImage:function(e,n){var t=this;a.a.getInterventionImage(e,n).then(function(e){if(e){var n=window.URL.createObjectURL(new Blob([e.stream])),t=document.createElement("a");t.href=n,t.setAttribute("download",e.name),document.body.appendChild(t),t.click()}}).catch(function(e){t.toast("error",e)})}},computed:{readOnly:function(){return"edit"!==this.context}}}},191:function(e,n,t){"use strict";function o(e){t(282)}var i=t(192),a=t(283),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-6eb59034",null);n.a=c.exports},192:function(e,n,t){"use strict";n.a={props:["label","value"],computed:{items:function(){return this.value?JSON.parse(this.value).map(function(e){var n=e.PhoneNumber.split("\r\n");return{id:e.Id,name:e.Name,numbers:n}}):[]}}}},193:function(e,n,t){"use strict";var o=t(8),i=t(6),a=t(194);n.a={mixins:[i.a],components:{"gci-navigation":a.a},data:function(){return{interventions:[],priorityFilter:null}},mounted:function(){var e=this,n=this;o.a.getInterventions().then(function(n){e.interventions=n.filter(function(e){var n=e.statusId>1&&e.statusId<5;return n&&(e.createdOn=Date.parse(e.createdOn)||e.createdOn,e.currentReportStartDate=Date.parse(e.currentReportStartDate)||e.currentReportStartDate),n})}).catch(function(e){n.toast("error",e)})},methods:{getColor:function(e){if("number"==typeof e&&this.$store.state.maintenancePriorities&&(e=this.$store.state.maintenancePriorities.find(function(n){return n.id===e})),e&&e.options&&""!==e.options){return JSON.parse(e.options).color||"black"}return"white"},getStatus:function(e){if(this.$store.state.maintenanceStatuses){var n=this.$store.state.maintenanceStatuses.find(function(n){return n.id===e});if(n)return n.name}return e},getCommonholdName:function(e){var n=this.$store.state.commonholds&&this.$store.state.commonholds.find(function(n){return n.id===e});return n&&n.name||e||""},filter:function(e){e&&0!==e.id?this.priorityFilter=e:this.priorityFilter=null},select:function(e){1===this.technicianType?this.$router.push({name:"intervention_edit_external",params:{id:String(e)}}):this.$router.push({name:"intervention_edit",params:{id:String(e),context:"edit"}})}},computed:{priorityFilterList:function(){var e=this.$store.state.maintenancePriorities&&this.$store.state.maintenancePriorities.slice(0);return e&&!e.find(function(e){return 0===e.id})&&e.unshift({id:0,name:"-- Todas --"}),e},filteredData:function(){var e=this;return this.priorityFilter?this.interventions.filter(function(n){return n.priorityId===e.priorityFilter.id}):this.interventions}}}},194:function(e,n,t){"use strict";function o(e){t(287)}var i=t(195),a=t(288),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-3bf2ec23",null);n.a=c.exports},195:function(e,n,t){"use strict";n.a={data:function(){return{drawer:!1}},props:["technicianType"],methods:{toggleVariant:function(){this.$store.commit("drawer",!this.mini)},logout:function(){console.log("logout called."),this.$store.dispatch("logout"),this.$router.push("/")}},computed:{userName:function(){return this.$store.getters.userName||"Técnico"},mini:function(){return this.$store.state.drawer}}}},196:function(e,n,t){"use strict";var o=t(27),i=t.n(o),a=t(8),r=t(6),s=t(194);n.a={mixins:[r.a],components:{"gci-navigation":s.a},data:function(){return{currentCommonhold:null,search:"",totalItems:0,items:[],loading:!1,pagination:{sortBy:"id",descending:"+"},headers:[{text:"Pedido",value:"id"},{text:"Estado",value:"statusId"},{text:"Data Inicio",value:"dateStart"},{text:"Data Fim",value:"dateEnd"}]}},created:function(){if(this.$route.meta.fromHistory){var e=this.$store.state.currentScreenCache||{};e&&(this.currentCommonhold=e.currentCommonhold,this.search=e.search,this.totalItems=e.totalItems,this.items=e.items,this.pagination=e.pagination)}},methods:{getColor:function(e){return e%2==0?"white":"lightgrey"},select:function(e){this.$router.push({name:"intervention_read",params:{id:String(e),context:"read"}})},fetch:function(){var e=this;return new i.a(function(n,t){if(e.currentCommonhold&&!e.loading){e.loading=!0;var o=e,i=e.pagination,r=i.sortBy,s=i.descending,c=i.page,d=i.rowsPerPage;a.a.findInterventions(e.currentCommonhold,c,d,s+r,e.search,e.includePending).then(function(t){var i=t.items,a=t.totalItems;setTimeout(function(){o.loading=!1,o.items=i,o.totalItems=a,e.$store.commit("cacheScreen",{currentCommonhold:o.currentCommonhold,search:o.search,totalItems:o.totalItems,items:o.items,pagination:o.pagination}),n()},1e3)}).catch(function(e){o.toast("error",e)})}else n()})}},computed:{commonholds:function(){return this.$store.state.commonholds}}}},197:function(e,n,t){"use strict";var o=t(16),i=t.n(o),a=t(9),r=t.n(a),s=t(200),c=t.n(s),d=t(206),l=t.n(d),u=t(208),p=(t.n(u),t(209)),m=(t.n(p),t(8)),g=t(6),C=t(210),I=t(211),h=t(353);n.a={mixins:[g.a,C.a,I.a],data:function(){return{timeStart:null,timeEnd:null,duration:null,observations:"",fullSweep:!1,materials:[],unlistedMaterials:[],report:{},startPicker:!1,endPicker:!1,durationPicker:!1,materialList:!1,canSaveDocuments:!0,canSaveImages:!0,documentUploader:r()({restrictions:{maxFileSize:15e6,maxNumberOfFiles:5,minNumberOfFiles:1,allowedFileTypes:["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/zip","application/x-7z-compressed"]}}),imageUploader:r()({restrictions:{maxFileSize:15e6,maxNumberOfFiles:5,minNumberOfFiles:1,allowedFileTypes:["image/*"]}})}},props:{interventionid:{type:String,required:!0},reportid:{type:String,required:!0},context:{type:String,required:!0}},components:{"material-list":h.a},mounted:function(){var e=this;this.imageUploader.use(c.a,{inline:!1,showProgressDetails:!0,hideUploadButton:!0,closeModalOnClickOutside:!0,trigger:"#triggerImage",note:"Images only, 15Mb or less"}).use(l.a,{target:c.a}),this.documentUploader.use(c.a,{inline:!1,showProgressDetails:!0,hideUploadButton:!0,closeModalOnClickOutside:!0,trigger:"#triggerDocument",note:"PDF, MS Word, zip or 7z, 15Mb or less"}),this.imageUploader.on("file-added",function(n){e.canSaveImage=!1}),this.documentUploader.on("file-added",function(n){e.canSaveDocument=!1}),this.imageUploader.on("complete",function(n){e.canSaveImage=!0}),this.documentUploader.on("complete",function(n){e.canSaveDocument=!0}),this.fetch(this.interventionid,this.reportid)},beforeDestroy:function(){this.imageUploader.close(),this.documentUploader.close()},methods:{fetch:function(e,n){var t=this;m.a.getInterventionReport(e,n).then(function(e){t.report=e;var n=t.roundDate(new Date(e.dateStart));t.report.estimatedDateStart=n,t.timeStart=t.addZero(n.getHours()||0)+":"+t.addZero(n.getMinutes()||0);var o=t.roundDate(new Date);t.timeEnd=t.addZero(o.getHours()||0)+":"+t.addZero(o.getMinutes()||0);var i=Math.floor(o-n);t.duration=t.formatTime(i),t.materials=e.materials||[],t.unlistedMaterials=e.unlistedMaterials||[]}).catch(function(e){t.toast("error",e)})},addZero:function(e){return e<10&&(e="0"+e),e},scrollToBottom:function(){this.scrollTo(document.body.scrollHeight||document.documentElement.scrollHeight)},scrollTo:function(e){this.$nextTick(function(){window.scrollTo(0,e)})},onMaterialAdded:function(e){var n=this.materials.find(function(n){return n.id===e.id});n?n.quantity++:(e.materialId=e.id,e.id=0,e.quantity=1,this.materials.unshift(e)),this.onMaterialListClose()},onMaterialListClose:function(){this.materialList=!1},addUnlistedMaterial:function(){this.unlistedMaterials.push({name:"",quantity:1,unitcost:1}),this.scrollToBottom()},removeMaterial:function(e){this.materials.splice(e,1)},removeUnlistedMaterial:function(e){this.unlistedMaterials.splice(e,1)},submit:function(){var e=this;if(this.$refs.form.validate()){var n=this.roundDate(new Date),t=this.imageUploader.getState(),o=this.documentUploader.getState(),a=t&&i()(t.files).map(function(e){return t.files[e]}),r=o&&i()(o.files).map(function(e){return o.files[e]}),s={id:this.report.id,interventionId:this.report.interventionId,materials:this.materials,unlistedMaterials:this.unlistedMaterials,observations:this.observations,dateStart:this.timeStart,dateEnd:this.timeEnd,duration:this.formatTimeString(this.duration)||0,estimatedDateStart:this.addZero(this.report.estimatedDateStart.getHours()||0)+":"+this.addZero(this.report.estimatedDateStart.getMinutes()||0),estimatedDateEnd:this.addZero(n.getHours()||0)+":"+this.addZero(n.getMinutes()||0),estimatedDuration:Math.floor((n-this.report.estimatedDateStart||0)/6e4),fullSweep:this.fullSweep,documents:r,images:a};m.a.updateReport(s,this.context).then(function(n){e.toast("success","4"===e.context?"Intervenção suspensa":"Intervenção finalizada"),e.imageUploader.reset(),e.documentUploader.reset(),e.$router.push("/dashboard")}).catch(function(n){e.toast("error",n)})}}},computed:{allowMaterials:function(){return this.isAdmin||this.isInternalTechnician}}}},208:function(e,n){},209:function(e,n){},210:function(e,n,t){"use strict";n.a={methods:{formatTime:function(e){if(e<=0)return"00:00";var n=parseInt(e/6e4%60)||0,t=parseInt(e/36e4%24)||0;return this.addZero(t)+":"+this.addZero(n)},formatTimeString:function(e){var n=this.duration.split(":"),t=parseInt(n[1]);return 60*parseInt(n[0])+t},roundDate:function(e){return new Date(6e4*Math.round(e.getTime()/6e4))}}}},211:function(e,n,t){"use strict";n.a={data:function(){return{rules:{required:function(e){return!!e||"Valor obrigatório."},positiveNumber:function(e){return!!e&&Number(e)&&Number(e)>0||"Número deve ser positivo."}}}}}},212:function(e,n,t){"use strict";var o=t(355),i=t(6);n.a={mixins:[i.a],data:function(){return{filter:"",materials:[]}},mounted:function(){this.fetch()},methods:{fetch:function(e,n){var t=this;o.a.getMaterials().then(function(e){t.materials=e}).catch(function(e){t.toast("error",e)})},selected:function(e){this.$emit("selected",e)},close:function(){this.$emit("close")}},computed:{filteredData:function(){var e=this;return this.filter?this.materials.filter(function(n){return n&&n.name&&-1!==n.name.toUpperCase().indexOf(e.filter.toUpperCase())}):this.materials}}}},213:function(e,n,t){"use strict";var o=t(8),i=t(6);n.a={mixins:[i.a],data:function(){return{intervention:{createdOn:new Date,priorityId:2,statusId:2,initialObservations:"",fullSweep:!1,contacts:"",documents:""}}},methods:{submit:function(){var e=this;this.intervention.createdBy=this.userId,this.intervention.technicianId=this.technicianId,this.intervention.createdOn=this.intervention.createdOn||new Date,this.$refs.form.validate()&&o.a.createIntervention(this.intervention).then(function(n){e.toast("success","Intervenção criada"),e.$router.push({name:"intervention_edit",params:{id:String(n),context:"edit"}})}).catch(function(n){e.toast("error",n)})}}}},214:function(e,n,t){"use strict";var o=t(16),i=t.n(o),a=t(8),r=t(6),s=t(191);n.a={mixins:[r.a],data:function(){return{intervention:{},documents:[],images:[],currentStatus:0,dialog:!1,pendingInterventions:0}},props:{id:{type:String,required:!0}},components:{"contact-list":s.a},mounted:function(){this.fetch(this.id)},methods:{fetch:function(e){var n=this;a.a.getIntervention(e).then(function(e){e.createdOn=Date.parse(e.createdOn)||e.createdOn,n.intervention=e,n.currentStatus=n.intervention.statusId}).catch(function(e){n.toast("error",e)}),a.a.getInterventionDocuments(e).then(function(e){n.documents=e?i()(e).map(function(n){var t=e[n];return t.id=n,t}):[]}).catch(function(e){n.toast("error",e)}),a.a.getInterventionImages(e).then(function(e){n.images=e?i()(e).map(function(n){var t=e[n];return t.id=n,t}):[]}).catch(function(e){n.toast("error",e)})},getDate:function(e){var n=new Date(e),t=n.getMonth()+1;t<10&&(t="0"+t);var o=n.getDate();return o<10&&(o="0"+o),n.getFullYear()+"-"+t+"-"+o},close:function(){this.$router.push({name:"interventionreport_external",params:{id:String(this.intervention.id)}})},downloadDocument:function(e,n){var t=this;a.a.getInterventionDocument(e,n).then(function(e){if(e){var n=window.URL.createObjectURL(new Blob([e.stream])),t=document.createElement("a");t.href=n,t.setAttribute("download",e.name),document.body.appendChild(t),t.click()}}).catch(function(e){t.toast("error",e)})},downloadImage:function(e,n){var t=this;a.a.getInterventionImage(e,n).then(function(e){if(e){var n=window.URL.createObjectURL(new Blob([e.stream])),t=document.createElement("a");t.href=n,t.setAttribute("download",e.name),document.body.appendChild(t),t.click()}}).catch(function(e){t.toast("error",e)})}}}},215:function(e,n,t){"use strict";var o=t(16),i=t.n(o),a=t(9),r=t.n(a),s=t(200),c=t.n(s),d=t(206),l=t.n(d),u=t(208),p=(t.n(u),t(209)),m=(t.n(p),t(8)),g=t(6),C=t(210),I=t(211);n.a={mixins:[g.a,C.a,I.a],data:function(){return{duration:null,observations:"",materials:[],services:[],canSaveDocuments:!0,canSaveImages:!0,documentUploader:r()({restrictions:{maxFileSize:15e6,maxNumberOfFiles:5,minNumberOfFiles:1,allowedFileTypes:["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/zip","application/x-7z-compressed"]}}),imageUploader:r()({restrictions:{maxFileSize:15e6,maxNumberOfFiles:5,minNumberOfFiles:1,allowedFileTypes:["image/*"]}})}},props:{id:{type:String,required:!0}},mounted:function(){var e=this;this.imageUploader.use(c.a,{inline:!1,showProgressDetails:!0,hideUploadButton:!0,closeModalOnClickOutside:!0,trigger:"#triggerImage",note:"Images only, 15Mb or less"}).use(l.a,{target:c.a}),this.documentUploader.use(c.a,{inline:!1,showProgressDetails:!0,hideUploadButton:!0,closeModalOnClickOutside:!0,trigger:"#triggerDocument",note:"PDF, MS Word, zip or 7z, 15Mb or less"}),this.imageUploader.on("file-added",function(n){e.canSaveImage=!1}),this.documentUploader.on("file-added",function(n){e.canSaveDocument=!1}),this.imageUploader.on("complete",function(n){e.canSaveImage=!0}),this.documentUploader.on("complete",function(n){e.canSaveDocument=!0})},beforeDestroy:function(){this.imageUploader.close(),this.documentUploader.close()},methods:{scrollToBottom:function(){this.scrollTo(document.body.scrollHeight||document.documentElement.scrollHeight)},scrollTo:function(e){this.$nextTick(function(){window.scrollTo(0,e)})},addMaterial:function(){this.materials.push({description:"",value:1}),this.scrollToBottom()},addService:function(){this.services.push({description:"",value:1}),this.scrollToBottom()},removeMaterial:function(e){this.materials.splice(e,1)},removeServices:function(e){this.services.splice(e,1)},submit:function(){var e=this;if(this.$refs.form.validate()){var n=this.imageUploader.getState(),t=this.documentUploader.getState(),o=n&&(i()(n.files).map(function(e){return n.files[e]})||[]),a=t&&(i()(t.files).map(function(e){return t.files[e]})||[]);if(0===o.length||0===a.length)return void this.toast("error","Os serviços só serão validados pelo sistema após introduzir factura e imagens");var r={interventionId:this.id,materials:this.materials,services:this.services,observations:this.observations,dateStart:this.dateStart+" "+this.timeStart,documents:a,images:o};m.a.createExternalReport(r).then(function(n){e.toast("success","Intervenção finalizada"),e.imageUploader.reset(),e.documentUploader.reset(),e.$router.push("/dashboard")}).catch(function(n){e.toast("error",n)})}}}}},216:function(e,n,t){"use strict";var o=t(171),i=t.n(o),a=t(172),r=t.n(a);n.a={name:"app",data:function(){return{}},methods:{snackbar:function(){return this.$store.state.toast},login:function(){console.log("login called."),this.$router.push({name:"login"})}},created:function(){var e=this;return r()(i.a.mark(function n(){return i.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:try{e.$store.state.isLoggedIn()?(console.log("logged in"),"login"!==e.$route.name&&"landing"!==e.$route.name||e.$router.push({name:"dashboard"})):(console.log("not logged in"),e.login())}catch(e){console.log(e)}case 1:case"end":return n.stop()}},n,e)}))()},computed:{toast:{get:function(){return this.$store.state.toastVisible},set:function(e){this.$store.commit("toastVisible",e)}}}}},217:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),t.d(n,"app",function(){return C});var o=t(17),i=t(220),a=t.n(i),r=t(221),s=t.n(r),c=t(168),d=t(26),l=t(367),u=(t.n(l),t(368)),p=t(370),m=(t.n(p),t(371)),g=(t.n(m),t(372));t.n(g);t.d(n,"router",function(){return c.a}),t.d(n,"store",function(){return d.a}),o.default.use(a.a,{theme:{primary:"#98dd22",secondary:"#4CAF50",error:"#b71c1c"}}),o.default.use(s.a),o.default.config.productionTip=!1,Object(l.sync)(d.a,c.a);var C=new o.default({store:d.a,router:c.a,el:"#app",template:"<App/>",components:{App:u.a}})},222:function(e,n,t){function o(e){return t(i(e))}function i(e){var n=a[e];if(!(n+1))throw new Error("Cannot find module '"+e+"'.");return n}var a={"./af":41,"./af.js":41,"./ar":42,"./ar-dz":43,"./ar-dz.js":43,"./ar-kw":44,"./ar-kw.js":44,"./ar-ly":45,"./ar-ly.js":45,"./ar-ma":46,"./ar-ma.js":46,"./ar-sa":47,"./ar-sa.js":47,"./ar-tn":48,"./ar-tn.js":48,"./ar.js":42,"./az":49,"./az.js":49,"./be":50,"./be.js":50,"./bg":51,"./bg.js":51,"./bm":52,"./bm.js":52,"./bn":53,"./bn.js":53,"./bo":54,"./bo.js":54,"./br":55,"./br.js":55,"./bs":56,"./bs.js":56,"./ca":57,"./ca.js":57,"./cs":58,"./cs.js":58,"./cv":59,"./cv.js":59,"./cy":60,"./cy.js":60,"./da":61,"./da.js":61,"./de":62,"./de-at":63,"./de-at.js":63,"./de-ch":64,"./de-ch.js":64,"./de.js":62,"./dv":65,"./dv.js":65,"./el":66,"./el.js":66,"./en-SG":67,"./en-SG.js":67,"./en-au":68,"./en-au.js":68,"./en-ca":69,"./en-ca.js":69,"./en-gb":70,"./en-gb.js":70,"./en-ie":71,"./en-ie.js":71,"./en-il":72,"./en-il.js":72,"./en-nz":73,"./en-nz.js":73,"./eo":74,"./eo.js":74,"./es":75,"./es-do":76,"./es-do.js":76,"./es-us":77,"./es-us.js":77,"./es.js":75,"./et":78,"./et.js":78,"./eu":79,"./eu.js":79,"./fa":80,"./fa.js":80,"./fi":81,"./fi.js":81,"./fo":82,"./fo.js":82,"./fr":83,"./fr-ca":84,"./fr-ca.js":84,"./fr-ch":85,"./fr-ch.js":85,"./fr.js":83,"./fy":86,"./fy.js":86,"./ga":87,"./ga.js":87,"./gd":88,"./gd.js":88,"./gl":89,"./gl.js":89,"./gom-latn":90,"./gom-latn.js":90,"./gu":91,"./gu.js":91,"./he":92,"./he.js":92,"./hi":93,"./hi.js":93,"./hr":94,"./hr.js":94,"./hu":95,"./hu.js":95,"./hy-am":96,"./hy-am.js":96,"./id":97,"./id.js":97,"./is":98,"./is.js":98,"./it":99,"./it-ch":100,"./it-ch.js":100,"./it.js":99,"./ja":101,"./ja.js":101,"./jv":102,"./jv.js":102,"./ka":103,"./ka.js":103,"./kk":104,"./kk.js":104,"./km":105,"./km.js":105,"./kn":106,"./kn.js":106,"./ko":107,"./ko.js":107,"./ku":108,"./ku.js":108,"./ky":109,"./ky.js":109,"./lb":110,"./lb.js":110,"./lo":111,"./lo.js":111,"./lt":112,"./lt.js":112,"./lv":113,"./lv.js":113,"./me":114,"./me.js":114,"./mi":115,"./mi.js":115,"./mk":116,"./mk.js":116,"./ml":117,"./ml.js":117,"./mn":118,"./mn.js":118,"./mr":119,"./mr.js":119,"./ms":120,"./ms-my":121,"./ms-my.js":121,"./ms.js":120,"./mt":122,"./mt.js":122,"./my":123,"./my.js":123,"./nb":124,"./nb.js":124,"./ne":125,"./ne.js":125,"./nl":126,"./nl-be":127,"./nl-be.js":127,"./nl.js":126,"./nn":128,"./nn.js":128,"./pa-in":129,"./pa-in.js":129,"./pl":130,"./pl.js":130,"./pt":131,"./pt-br":132,"./pt-br.js":132,"./pt.js":131,"./ro":133,"./ro.js":133,"./ru":134,"./ru.js":134,"./sd":135,"./sd.js":135,"./se":136,"./se.js":136,"./si":137,"./si.js":137,"./sk":138,"./sk.js":138,"./sl":139,"./sl.js":139,"./sq":140,"./sq.js":140,"./sr":141,"./sr-cyrl":142,"./sr-cyrl.js":142,"./sr.js":141,"./ss":143,"./ss.js":143,"./sv":144,"./sv.js":144,"./sw":145,"./sw.js":145,"./ta":146,"./ta.js":146,"./te":147,"./te.js":147,"./tet":148,"./tet.js":148,"./tg":149,"./tg.js":149,"./th":150,"./th.js":150,"./tl-ph":151,"./tl-ph.js":151,"./tlh":152,"./tlh.js":152,"./tr":153,"./tr.js":153,"./tzl":154,"./tzl.js":154,"./tzm":155,"./tzm-latn":156,"./tzm-latn.js":156,"./tzm.js":155,"./ug-cn":157,"./ug-cn.js":157,"./uk":158,"./uk.js":158,"./ur":159,"./ur.js":159,"./uz":160,"./uz-latn":161,"./uz-latn.js":161,"./uz.js":160,"./vi":162,"./vi.js":162,"./x-pseudo":163,"./x-pseudo.js":163,"./yo":164,"./yo.js":164,"./zh-cn":165,"./zh-cn.js":165,"./zh-hk":166,"./zh-hk.js":166,"./zh-tw":167,"./zh-tw.js":167};o.keys=function(){return Object.keys(a)},o.resolve=i,e.exports=o,o.id=222},228:function(e,n,t){"use strict";t.d(n,"a",function(){return p});var o=t(229),i=t(277),a=t(280),r=t(285),s=t(290),c=t(293),d=t(358),l=t(361),u=t(364),p=[{path:"/",name:"login",component:o.a},{path:"",name:"dashboard",component:i.a,meta:{requiresAuth:!0},children:[{path:"/dashboard",name:"interventions_pending",component:r.a,meta:{requiresAuth:!0}},{path:"/interventions/history",name:"interventions_history",component:s.a,meta:{requiresAuth:!0}},{path:"/interventions/:id/details",name:"intervention_edit_external",component:l.a,props:!0,meta:{requiresAuth:!0,requiresRole:"Technician",requiresProp:{name:"technicianType",value:1}}},{path:"/interventions/:id/report",name:"interventionreport_external",component:u.a,props:!0,meta:{requiresAuth:!0,requiresRole:"Technician",requiresProp:{name:"technicianType",value:1}}},{path:"/interventions/create",name:"intervention_create",component:d.a,meta:{requiresAuth:!0,requiresRole:"Technician",requiresProp:{name:"technicianType",value:0}}},{path:"/interventions/:interventionid/reports/:reportid/:context",name:"interventionreport",component:c.a,props:!0,meta:{requiresAuth:!0,requiresRole:"Technician",requiresProp:{name:"technicianType",value:0}}},{path:"/interventions/:id/:context",name:"intervention_edit",component:a.a,props:!0,meta:{requiresAuth:!0,requiresRole:"Technician",requiresProp:{name:"technicianType",value:0}}},{path:"/interventions/:id",name:"intervention_read",component:a.a,props:!0,meta:{requiresAuth:!0,requiresRole:"Technician",requiresProp:{name:"technicianType",value:0}}}]}]},229:function(e,n,t){"use strict";function o(e){t(230)}var i=t(170),a=t(276),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-615e1b4e",null);n.a=c.exports},23:function(e,n,t){"use strict";function o(e,n){n=n||{},n.headers=n.headers||{};var t={};return c()(n).forEach(function(e){"params"!==e&&"response"!==e&&(t[e]=n[e])}),i||(i=window.localStorage.getItem("access_token")),t.headers.Authorization="Bearer "+i,new r.a(function(o,a){var r=new URL("https://denariu.net:5050"+e);n.params&&c()(n.params).forEach(function(e){return r.searchParams.append(e,n.params[e])}),window.fetch(r,t).then(function(e){if(!(e.status>=400))return n.response&&"blob"===n.response?(e.headers.forEach(function(e,n){console.log(n,e)}),e.blob().then(function(n){var t=e.headers.get("Content-Disposition");return{stream:n,name:t&&t.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/)[1]||""}}).catch(function(e){})):e.json().then(function(e){return e}).catch(function(e){});401===e.status&&(i=null,l.a.dispatch("logout"),d.a&&d.a.push({name:"login"})),e.text().then(function(n){console.log(n||e.statusText),a(n||e.statusText)})}).then(function(e){o(e)}).catch(function(e){a(e.message)})})}var i,a=t(27),r=t.n(a),s=t(16),c=t.n(s),d=t(168),l=t(26);n.a={call:o,getToken:function(e,n){var t={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=password&username="+e+"&password="+n+"&client_id=technicians&client_secret=91CECEA9-AED2-4881-AC45-7B5CF236AF7D"};return new r.a(function(e,n){window.fetch("https://denariu.net:5050/api/connect/token",t).then(function(e){return e.json()}).then(function(t){t.error?n(t.error_description):(i=t.access_token,e(i))}).catch(function(e){n(e)})})},getUser:function(){return o("/api/userinfo")},getTechnician:function(e){return o("/api/technicians/userid/"+e)},getManagers:function(){return o("/api/managers")},getMaintenanceStatuses:function(){return o("/api/maintenancestatuses")},getMaintenancePriorities:function(){return o("/api/maintenancepriorities")},getCommonholds:function(){return o("/api/commonholds")}}},230:function(e,n){},26:function(e,n,t){"use strict";var o=t(169),i=t.n(o),a=t(17),r=t(225),s=t(226),c=t.n(s);a.default.use(r.a);var d=new c.a({key:"vuex",storage:window.localStorage}),l={drawer:!1,user:{},toast:{},toastVisible:!1,maintenanceStatuses:[],maintenancePriorities:[],commonholds:[],managers:[],currentScreenCache:{},isLoggedIn:function(){return!!window.localStorage.getItem("access_token")}},u={drawer:function(e,n){e.drawer=n},toast:function(e,n){e.toast=n},toastVisible:function(e,n){e.toastVisible=n},userId:function(e,n){a.default.set(e.user,"id",n)},userName:function(e,n){a.default.set(e.user,"name",n)},userRole:function(e,n){a.default.set(e.user,"role",n)},technicianId:function(e,n){a.default.set(e.user,"technicianId",n)},technicianType:function(e,n){a.default.set(e.user,"technicianType",n)},cacheMaintenanceStatuses:function(e,n){e.maintenanceStatuses=n},cacheMaintenancePriorities:function(e,n){e.maintenancePriorities=n},cacheCommonholds:function(e,n){e.commonholds=n},cacheManagers:function(e,n){e.managers=n},cacheScreen:function(e,n){e.currentScreenCache=n}},p={login:function(e,n){window.localStorage.setItem("access_token",n)},logout:function(e){g.commit("toast",{}),g.commit("toastVisible",!1),g.commit("userId"),g.commit("userName"),g.commit("userRole"),g.commit("technicianId"),g.commit("technicianType"),g.commit("cacheMaintenanceStatuses"),g.commit("cacheMaintenancePriorities"),g.commit("cacheCommonholds"),g.commit("cacheManagers"),g.commit("cacheScreen"),window.localStorage.removeItem("access_token"),window.localStorage.removeItem("user_claims")},toast:function(e,n){e.commit("toast",n),e.commit("toastVisible",!0)},setClaims:function(e,n){e.commit("userId",n.sub||""),e.commit("userName",n.name||""),e.commit("userRole",n.roles[0]||""),e.commit("technicianId",n.kid||""),window.localStorage.setItem("user_claims",i()(n))}},m={role:function(e){return e.user&&e.user.role},userId:function(e){return e.user&&e.user.id},userName:function(e){return e.user&&e.user.name},technicianId:function(e){return e.user&&e.user.technicianId},technicianType:function(e){return e.user&&e.user.technicianType}},g=new r.a.Store({state:l,mutations:u,actions:p,getters:m,plugins:[d.plugin]});n.a=g},270:function(e,n,t){"use strict";function o(e){t(271)}var i=t(187),a=t(272),r=t(2),s=o,c=Object(r.a)(i.a,a.a,a.b,!1,s,"data-v-6905d10c",null);n.a=c.exports},271:function(e,n){},272:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"b",function(){return i});var o=function(){var e=this,n=e.$createElement;return(e._self._c||n)("div",{staticClass:"loader"})},i=[]},273:function(e,n,t){"use strict";function o(e){t(274)}var i=t(188),a=t(275),r=t(2),s=o,c=Object(r.a)(i.a,a.a,a.b,!1,s,"data-v-a40dab56",null);n.a=c.exports},274:function(e,n){},275:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"b",function(){return i});var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("transition",{attrs:{name:"modal"}},[t("div",{staticClass:"modal-mask"},[t("div",{staticClass:"modal-wrapper"},[t("div",{staticClass:"modal-container"},[t("div",{staticClass:"modal-header"},[e._t("header")],2),e._v(" "),t("div",{staticClass:"modal-body"},[e._t("body")],2),e._v(" "),t("div",{staticClass:"modal-footer"},[e._t("footer",[t("button",{staticClass:"modal-default-button",on:{click:function(n){e.$emit("close")}}},[e._v("OK")])])],2)])])])])},i=[]},276:function(e,n){throw new Error('Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\Login.vue:2:1\n 1| \n > 2| v-container(class="fill-height")\n-------^\n 3| v-layout(row align-items-center)\n 4| v-flex.form-container(text-xs-center align-center)\n 5| v-form(v-model="valid" lazy-validation)\n\nunexpected token "indent"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)')},277:function(e,n,t){"use strict";function o(e){t(278)}var i=t(189),a=t(279),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-ca29f2f2",null);n.a=c.exports},278:function(e,n){},279:function(e,n){throw new Error('Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\Dashboard.vue:2:1\n 1| \n > 2| v-flex\n-------^\n 3| transition(name="slide-fade" mode="out-in")\n 4| router-view\n 5| \n\nunexpected token "indent"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)')},280:function(e,n,t){"use strict";function o(e){t(281)}var i=t(190),a=t(284),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-4f6a8272",null);n.a=c.exports},281:function(e,n){},282:function(e,n){},283:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\contacts\\ContactList.vue:2:1\n 1| \r\n > 2| v-list(color='transparent')\r\n-------^\n 3| v-subheader {{ label || '' }}\r\n 4| v-list-group(v-for='item in items' :key='item.id' no-action)\r\n 5| v-list-tile(slot='activator')\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},284:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\interventions\\Intervention.vue:2:1\n 1| \r\n > 2| div\r\n-------^\n 3| //- Navigation needed?\r\n 4| v-toolbar(color='primary')\r\n 5| //- v-toolbar-side-icon\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},285:function(e,n,t){"use strict";function o(e){t(286)}var i=t(193),a=t(289),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-153f4491",null);n.a=c.exports},286:function(e,n){},287:function(e,n){},288:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\Navigation.vue:2:1\n 1| \r\n > 2| div\r\n-------^\n 3| v-toolbar(color='primary')\r\n 4| v-toolbar-side-icon(@click='drawer = !drawer')\r\n 5| slot(name='toolbar')\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},289:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\interventions\\InterventionPending.vue:2:1\n 1| \n > 2| div\n-------^\n 3| gci-navigation(:technicianType='technicianType')\n 4| template(slot='toolbar')\n 5| v-toolbar-title Intervenções ({{ filteredData.length }})\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},290:function(e,n,t){"use strict";function o(e){t(291)}var i=t(196),a=t(292),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-fec24e76",null);n.a=c.exports},291:function(e,n){},292:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\interventions\\InterventionHistory.vue:2:1\n 1| \r\n > 2| div\r\n-------^\n 3| gci-navigation(:technicianType='technicianType')\r\n 4| template(slot='toolbar')\r\n 5| v-toolbar-title Histórico de Intervenções\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},293:function(e,n,t){"use strict";function o(e){t(294)}var i=t(197),a=t(357),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-60a64141",null);n.a=c.exports},294:function(e,n){},353:function(e,n,t){"use strict";function o(e){t(354)}var i=t(212),a=t(356),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-432fffeb",null);n.a=c.exports},354:function(e,n){},355:function(e,n,t){"use strict";var o=t(23);n.a={getMaterials:function(){return o.a.call("/api/materials")}}},356:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\materials\\MaterialList.vue:2:1\n 1| \r\n > 2| v-layout(row)\r\n-------^\n 3| v-flex(xs12)\r\n 4| //- Navigation needed?\r\n 5| v-toolbar(color='primary')\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},357:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\interventions\\InterventionReport.vue:2:1\n 1| \r\n > 2| div\r\n-------^\n 3| div(v-show='!materialList')\r\n 4| //- Navigation needed?\r\n 5| v-toolbar(color='primary')\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},358:function(e,n,t){"use strict";function o(e){t(359)}var i=t(213),a=t(360),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-18356c34",null);n.a=c.exports},359:function(e,n){},360:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\interventions\\InterventionCreate.vue:2:1\n 1| \r\n > 2| div\r\n-------^\n 3| //- Navigation needed?\r\n 4| v-toolbar(color='primary')\r\n 5| //- v-toolbar-side-icon\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},361:function(e,n,t){"use strict";function o(e){t(362)}var i=t(214),a=t(363),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-c3b965a6",null);n.a=c.exports},362:function(e,n){},363:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\interventions\\InterventionExternal.vue:2:1\n 1| \r\n > 2| div\r\n-------^\n 3| //- Navigation needed?\r\n 4| v-toolbar(color='primary')\r\n 5| //- v-toolbar-side-icon\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},364:function(e,n,t){"use strict";function o(e){t(365)}var i=t(215),a=t(366),r=(t.n(a),t(2)),s=o,c=Object(r.a)(i.a,a.render,a.staticRenderFns,!1,s,"data-v-63a67b2e",null);n.a=c.exports},365:function(e,n){},366:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\interventions\\InterventionReportExternal.vue:2:1\n 1| \r\n > 2| div\r\n-------^\n 3| //- Navigation needed?\r\n 4| v-toolbar(color='primary')\r\n 5| //- v-toolbar-side-icon\r\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},368:function(e,n,t){"use strict";var o=t(216),i=t(369),a=(t.n(i),t(2)),r=Object(a.a)(o.a,i.render,i.staticRenderFns,!1,null,null,null);n.a=r.exports},369:function(e,n){throw new Error("Module build failed: Error: D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\src\\components\\App.vue:2:1\n 1| \n > 2| v-app\n-------^\n 3| v-snackbar(:timeout='3000'\n 4| :top='true'\n 5| :right='true'\n\nunexpected token \"indent\"\n at makeError (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-error\\index.js:32:13)\n at Parser.error (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:53:15)\n at Parser.parseExpr (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:264:14)\n at Parser.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:112:25)\n at parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-parser\\index.js:12:20)\n at Object.parse (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:125:22)\n at Function.loadString [as string] (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug-load\\index.js:45:21)\n at compileBody (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:86:18)\n at Object.exports.compile (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\pug\\lib\\index.js:242:16)\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:836:58\n at D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:144:5\n at Promise._execute (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\debuggability.js:303:9)\n at Promise._resolveFromExecutor (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:483:18)\n at new Promise (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\bluebird\\js\\release\\promise.js:79:10)\n at promisify (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:137:10)\n at Function.exports.pug.render (D:\\codigo\\GCI\\codigo\\GCI.Maintenance.ClientApp\\node_modules\\consolidate\\lib\\consolidate.js:821:10)")},370:function(e,n){},371:function(e,n){},372:function(e,n){},6:function(e,n,t){"use strict";n.a={created:function(){},mounted:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},methods:{toast:function(e,n){this.$store.dispatch("toast",{context:e,message:"error"===e?"Error: "+n:n})},goBack:function(){this.$router.go(-1)},managerName:function(e){return((this.$store.state.managers||[]).find(function(n){return n.id===e})||{}).name||""}},computed:{role:function(){var e=this.$store.getters.role;if(!e){var n=JSON.parse(window.localStorage.getItem("user_claims"));n&&this.$store.dispatch("setClaims",n),e=this.$store.getters.role}return e},technicianType:function(){return this.$store.getters.technicianType},technicianId:function(){return this.$store.getters.technicianId},isAdmin:function(){return"Admin"===this.role},isInternalTechnician:function(){return"Technician"===this.role&&0===this.technicianType},isExternalTechnician:function(){return"Technician"===this.role&&1===this.technicianType},userId:function(){var e=this.$store.getters.userId;if(!e){var n=JSON.parse(window.localStorage.getItem("user_claims"));n&&this.$store.dispatch("setClaims",n),e=this.$store.getters.userId}return e},userName:function(){var e=this.$store.getters.userName;if(!e){var n=JSON.parse(window.localStorage.getItem("user_claims"));n&&this.$store.dispatch("setClaims",n),e=this.$store.getters.userName}return e}}}},8:function(e,n,t){"use strict";var o=t(169),i=t.n(o),a=t(23);n.a={getInterventions:function(){return a.a.call("/api/interventions")},getInterventionDocuments:function(e){return a.a.call("/api/interventions/"+e+"/documents")},getInterventionImages:function(e){return a.a.call("/api/interventions/"+e+"/images")},findInterventions:function(e,n,t,o,i,r){var s={commonholdId:e,page:n,pageSize:t};return r&&(s.includePending=r),o&&(s.sort=o),i&&(s.search=i),a.a.call("/api/interventions/find",{method:"GET",headers:{"Content-Type":"application/json"},params:s})},getIntervention:function(e){return a.a.call("/api/interventions/"+e)},createIntervention:function(e){return a.a.call("/api/interventions/",{method:"POST",headers:{"Content-Type":"application/json"},body:i()(e)})},getInterventionDocument:function(e,n){return a.a.call("/api/interventions/"+e+"/documents/"+n,{response:"blob"})},getInterventionImage:function(e,n){return a.a.call("/api/interventions/"+e+"/images/"+n,{response:"blob"})},createReport:function(e){return a.a.call("/api/interventions/"+e+"/reports",{method:"POST",headers:{"Content-Type":"application/json"}})},createExternalReport:function(e){var n=new FormData;return e.images.forEach(function(e){n.append("images",e.data,e.name)}),e.documents.forEach(function(e){n.append("documents",e.data,e.name)}),delete e.images,delete e.documents,n.append("model",i()(e)),a.a.call("/api/interventions/"+e.interventionId+"/externalreports/",{method:"POST",headers:{Accept:"application/json"},body:n})},updateReport:function(e,n){var t=new FormData;return e.images.forEach(function(e){t.append("images",e.data,e.name)}),e.documents.forEach(function(e){t.append("documents",e.data,e.name)}),delete e.images,delete e.documents,t.append("model",i()(e)),a.a.call("/api/interventions/"+e.interventionId+"/reports/"+e.id+"/"+n,{method:"PUT",headers:{Accept:"application/json"},body:t})},getInterventionReport:function(e,n){return a.a.call("/api/interventions/"+e+"/reports/"+n)}}}},[217]);
|
|
//# sourceMappingURL=app.a9a15a7d14354bd9e916.js.map
|