{"version":3,"sources":["webpack:///./src/components/Account/components/ContractorAccount/components/JobHistory/Index.vue?b043","webpack:///./src/components/Account/components/ContractorAccount/components/JobHistory/attrs/data.js","webpack:///./src/components/Account/components/ContractorAccount/components/JobHistory/attrs/methods.js","webpack:///./src/components/Account/components/ContractorAccount/components/JobHistory/attrs/mounted.js","webpack:///./src/components/Account/components/ContractorAccount/components/JobHistory/index.js","webpack:///./src/components/Account/components/ContractorAccount/components/JobHistory","webpack:///./src/components/Account/components/ContractorAccount/components/JobHistory/Index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_l","event","key","id","attrs","date","dateIndex","_s","_f","start","end","name","place","address","neighbourhood","city","state","isEventComplete","survey","includes","$vuetify","breakpoint","params","_e","staticRenderFns","events","loadEvents","self","api","getApiClient","$store","get","Date","then","result","data","catch","error","console","log","jobs","filter","job","status","length","methods","mounted","component","VBtn","VCol","VIcon","VList","VListItem","VRow"],"mappings":"6HAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,sDAAsD,CAACF,EAAG,KAAK,CAACE,YAAY,aAAa,CAACN,EAAIO,GAAG,uBAAuBP,EAAIQ,GAAIR,EAAU,QAAE,SAASS,GAAO,OAAOL,EAAG,MAAM,CAACM,IAAID,EAAME,GAAGL,YAAY,4CAA4C,CAACF,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACQ,MAAM,CAAC,KAAO,KAAK,GAAK,OAAO,CAACR,EAAG,SAAS,CAACE,YAAY,aAAaN,EAAIQ,GAAIC,EAAW,OAAE,SAASI,EAAKC,GAAW,OAAOV,EAAG,cAAc,CAACM,IAAII,GAAW,CAACV,EAAG,IAAI,CAACA,EAAG,SAAS,CAACE,YAAY,0CAA0CM,MAAM,CAAC,MAAQ,iBAAiBR,EAAG,OAAO,CAACE,YAAY,OAAO,CAACN,EAAIO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C,KAEbkC,EAAKD,cCCM,GACXf,KAAM,uBACNwB,OACAU,UACAC,WCRsU,I,yGCOtUC,EAAY,eACd,EACAxD,EACAiC,GACA,EACA,KACA,KACA,MAIa,aAAAuB,EAAiB,QAUhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,OAAA,KAAKC,QAAA,KAAMC,QAAA,KAAMC,YAAA,KAAUC,OAAA","file":"js/ContractorJobHistory.139a7d0e.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"box box__secondary box__lightestGray box__slimmest\"},[_c('h1',{staticClass:\"condensed\"},[_vm._v(\"Histórico de Jobs\")]),_vm._l((_vm.events),function(event){return _c('div',{key:event.id,staticClass:\"job-invite history-item contractor-theme\"},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"10\"}},[_c('v-list',{staticClass:\"job-dates\"},_vm._l((event.dates),function(date,dateIndex){return _c('v-list-item',{key:dateIndex},[_c('p',[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__calendar-check\",attrs:{\"color\":\"lighterGray\"}}),_c('span',{staticClass:\"day\"},[_vm._v(_vm._s(_vm._f(\"moment\")(date.start,'DD')))]),_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(date.start,'MMMM/Y'))+\" \"),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__clock\",attrs:{\"color\":\"lighterGray\"}}),_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(date.start,'HH:mm'))+\" às \"+_vm._s(_vm._f(\"moment\")(date.end,'HH:mm'))+\" \")],1)])}),1),_c('h2',[_vm._v(_vm._s(event.name))]),_c('p',{staticClass:\"event-place lightGray--text\"},[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__pin\",attrs:{\"color\":\"lightGray\"}}),_vm._v(\" \"+_vm._s(event.place)+\" | \"),(event.address)?_c('span',[_vm._v(_vm._s(event.address.neighbourhood)+\" - \"+_vm._s(event.address.city)+\", \"+_vm._s(event.address.state))]):_c('span',[_vm._v(\"Evento com realização remota\")])],1)],1),(_vm.isEventComplete(event))?_c('v-col',{attrs:{\"cols\":\"2\"}},[(! event.survey)?_c('div',{staticClass:\"job-survey-button\"},[_c('p',[_vm._v(\"Você ainda não avaliou os profissionais deste job\")]),_c('p',{staticClass:\"star-rating\"},[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__star-empty\",attrs:{\"color\":\"defaultGreen\"}}),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__star-empty\",attrs:{\"color\":\"defaultGreen\"}}),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__star-empty\",attrs:{\"color\":\"defaultGreen\"}}),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__star-empty\",attrs:{\"color\":\"defaultGreen\"}}),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__star-empty\",attrs:{\"color\":\"defaultGreen\"}})],1),_c('v-btn',{attrs:{\"color\":\"transparent\",\"depressed\":\"\",\"block\":\"\",\"to\":{\n name: 'ContractorEventSurvey',\n params: {\n id: event.id\n }\n }}},[_vm._v(\"Avaliar profissionais » \")])],1):_c('div',{staticClass:\"job-survey-button complete-survey-button\"},[(!['xs', 'sm'].includes(_vm.$vuetify.breakpoint.name))?_c('p',[_vm._v(\" Profissionais avaliados. Parabéns!\"),_c('br'),_vm._v(\" Você completou 100% da jornada do Job. \")]):_c('p',[_vm._v(\" Profissionais avaliados. Parabéns! \")]),_c('p',{staticClass:\"star-rating\"},[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__star-filled\",attrs:{\"color\":\"lightBlue\"}})],1),_c('v-btn',{attrs:{\"depressed\":\"\",\"block\":\"\",\"to\":{\n name: 'ContractorEventSurvey',\n params: {\n id: event.id\n }\n }}},[_vm._v(\"Ver detalhes » \")])],1)]):_vm._e()],1)],1)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function () {\n return {\n events: []\n }\n}\n","import getApiClient from '@/plugins/api-client'\n\nexport default {\n loadEvents() {\n const self = this,\n api = getApiClient(self.$store)\n\n api.get('/events', {\n params: {\n 'end[before]': new Date()\n }\n })\n .then(result => {\n self.events = result.data['hydra:member']\n })\n .catch(error => {\n console.log(error)\n })\n },\n\n isEventComplete(event) {\n return event.jobs.filter(job => {\n return job.status === 1\n }).length\n }\n}\n","export default function () {\n const self = this\n\n self.loadEvents()\n}\n","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'ContractorJobHistory',\n data,\n methods,\n mounted\n}\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=f43de328&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VIcon,VList,VListItem,VRow})\n"],"sourceRoot":""}