{"version":3,"sources":["webpack:///./src/views/dashboard/content/totens/compras/index.vue","webpack:///src/views/dashboard/content/totens/compras/index.vue","webpack:///./src/views/dashboard/content/totens/compras/index.vue?d3f0","webpack:///./src/views/dashboard/content/totens/compras/index.vue?52c6","webpack:///./src/views/dashboard/content/totens/compras/index.vue?286c","webpack:///./src/constants/etapaCompra.js"],"names":["_c","_self","staticClass","on","attrs","_vm","_v","_s","getTotem","descricao","getComprasDeHoje","key","index","_f","compra","staticRenderFns","render","beforeMount","verificaExistenciaLocal","data","countFail","sucesso","listaCompras","filters","existeDados","valor","getDataPayload","val","moment","format","filtraEtapa","etapaName","methods","gotoLive","$router","push","$route","params","id","referencia","collection","db","totemID","q","query","where","orderBy","limit","snapshot","getDocs","forEach","item","proposed","totens","$store","getters","totemSearch","find","requestCompras","$root","infoModal","setTimeout","goBack","computed","filter","keep_alive","toDate","isSame","length","getCompras","component","TIPO_FOTO","QTDE_FOTO","SCAN_QR_CODE","UPLOAD","EDICAO","PAGAMENTO","PAGAMENTO_FALHOU","PAGAMENTO_SUCESSO","IMPRESSAO","AGRADECIMENTO","CONCLUIDO","EXPIROU","CANCELADA"],"mappings":"yIAA4CA,EAAOC,WAAS,MAAU,KAAgCC,UAAY,GAAa,OAAM,QAAS,WAA0M,kBAACA,YAAY,2DAA8FC,CAAE,EAAC,U,YAAS,8F,GAAiB,CAAmB,kBAAC,qBAA+GC,GAAK,OAAC,C,YAAQ,kF,MAAK,CAAc,UAAIC,MAAO,SAAiH,CAACA,EAAIC,GAAG,oBAAmB,EAAG,MAAM,CAAEJ,YAAY,uEAAsE,CAACF,EAAG,kBAAM,cAACE,YAAY,sEAAiD,CAACF,EAAG,MAAM,CAACE,YAAY,iDAAW,CAACF,EAAG,MAAM,CAAcE,YAAY,WAAqCE,GAAK,MAAC,W,YAAQ,qCAAI,OAAIC,KAAO,OAAuD,CAACL,EAAG,sBAAS,YAACE,YAAY,WAAiLC,CAAE,EAAC,U,YAAS,iL,GAAiB,CAAqB,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5B,QAAAC,KAAA,kCAGA4B,SAAA,CACArD,mBACA,YAAAY,aAAA0C,OAAAb,GACAvB,IAAAuB,EAAAc,WAAAC,UAAAC,OAAAvC,MAAA,QACAwC,QAEAC,aACA,YAAA/C,cAEAd,WACA,YAAA8C,OAAAC,QAAA,uBAAAE,KACAN,KAAAb,IAAA,KAAAF,OAAAC,OAAAC,OCtN0Y,I,wBCQtYgC,EAAY,eACd,EACA,EACAvD,GACA,EACA,KACA,WACA,MAIa,aAAAuD,E,6CCnBf,W,oCCAA,wCAeMvC,EAAY,CAChBwC,UAAW,eACXC,UAAW,qBACXC,aAAc,cACdC,OAAQ,SACRC,OAAQ,SACRC,UAAW,YACXC,iBAAkB,kBAClBC,kBAAmB,oBACnBC,UAAW,YACXC,cAAe,gBACfC,UAAW,YACXC,QAAS,UACTC,UAAW,c","file":"js/chunk-fcaf415a.46aa25a9.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.sucesso)?_c('div',{staticClass:\"text-center\"},[_c('v-icon',{staticClass:\"tw-animate-spin tw-text-pink-600\",attrs:{\"size\":\"50\"}},[_vm._v(\"mdi-loading\")])],1):_c('div',[_c('div',{staticClass:\"tw-px-9 tw-py-1 tw-items-center tw-justify-left tw-flex\"},[_c('button',{staticClass:\"tw-bg-transparent tw-rounded-full tw-fill-current tw-group tw-text-text-gray-700 tw-text-xl\",on:{\"click\":function($event){return _vm.goBack()}}},[_c('v-icon',{staticClass:\"tw-text-gray-700 tw-fill-current tw-stroke-current group-hover:tw-text-pink-700\",attrs:{\"size\":\"25\",\"color\":\"fill\"}},[_vm._v(\"mdi-arrow-left\")]),_c('div',{staticClass:\"tw-inline-block tw-text-gray-500 tw-font-light tw-text-base tw-ml-2\"},[_vm._v(\" VOLTAR \")])],1)]),_c('div',{staticClass:\"tw-w-5/6 tw-mx-auto tw-shadow-sm tw-mt-5 tw-rounded-md tw-bg-white\"},[_c('div',{staticClass:\"tw-flex tw-items-center tw-text-center tw-p-5\"},[_c('div',{staticClass:\"tw-px-8\"},[_c('div',[_c('v-icon',{staticClass:\"tw-text-gray-500 tw-stroke-current\",attrs:{\"size\":\"50\"}},[_vm._v(\"mdi-text-box\")])],1),_c('div',{staticClass:\"tw-mt-3\"},[_c('button',{staticClass:\"tw-px-3 tw-py-2 tw-mx-auto tw-font-bold tw-uppercase tw-rounded tw-text-white tw-bg-pink-600 hover:tw-bg-pink-700 tw-transition-colors tw-duration-300 tw-font-mono tw-text-xs\",on:{\"click\":function($event){return _vm.gotoLive()}}},[_vm._v(\" Live Totem \")])])]),_c('div',{staticClass:\"tw-text-left tw-justify-start tw-items-start tw-self-start\"},[_c('div',{staticClass:\"tw-font-bold tw-text-gray-600 tw-text-md\"},[_vm._v(\" \"+_vm._s(_vm.getTotem.nome)+\" \")]),_c('div',{staticClass:\"tw-font-normal tw-pt-2 tw-text-sm tw-text-gray-500\"},[_vm._v(\" \"+_vm._s(_vm.getTotem.descricao)+\" \")]),_c('div',{staticClass:\"tw-font-normal tw-text-sm tw-text-gray-500 tw-font-sans tw-mt-2\"},[_vm._v(\" Compras iniciadas hoje \"+_vm._s(_vm.getComprasDeHoje)+\" \")])])])]),_c('div',{staticClass:\"tw-py-5 tw-text-center sm:tw-text-right\"}),_c('div',{staticClass:\"tw-w-5/6 tw-mx-auto\"},[_c('div',{staticClass:\"tw-text-gray-900 tw-text-xl tw-font-normal tw-py-5\"},[_vm._v(\" Registro de compras \")]),_c('div',{staticClass:\"tw-rounded-md tw-bg-white tw-p-0 tw-shadow-md tw-mb-5\",attrs:{\"id\":\"list\"}},[_vm._m(0),_vm._l((_vm.getCompras),function(compra,index){return _c('div',{key:index,staticClass:\"item tw-overflow-x-auto\"},[_c('div',{staticClass:\"itemSection\"},[_c('div',{staticClass:\"tw-block sm:tw-hidden tw-p-1 tw-font-bold\"},[_vm._v(\" Data/Hora \")]),_c('div',{staticClass:\"tw-text-sm\"},[_vm._v(\" \"+_vm._s(_vm._f(\"getDataPayload\")(compra.keep_alive.toDate()))+\" \")])]),_c('div',{staticClass:\"itemSection\"},[_c('div',{staticClass:\"tw-block sm:tw-hidden tw-p-1 tw-font-bold\"},[_vm._v(\"Etapa\")]),_c('div',{staticClass:\"tw-text-sm\"},[_vm._v(_vm._s(_vm._f(\"filtraEtapa\")(compra.etapa)))])]),_c('div',{staticClass:\"itemSection\"},[_c('div',{staticClass:\"tw-block sm:tw-hidden tw-p-1 tw-font-bold\"},[_vm._v(\" Quantidade de Fotos \")]),_c('div',{staticClass:\"tw-text-sm\"},[_vm._v(_vm._s(compra.qtde_foto))])]),_c('div',{staticClass:\"itemSection\"},[_c('div',{staticClass:\"tw-block sm:tw-hidden tw-p-1 tw-font-bold\"},[_vm._v(\" Tipo de foto \")]),_c('div',{staticClass:\"tw-text-sm\"},[_vm._v(_vm._s(_vm._f(\"existeDados\")(compra.tipo_foto)))])]),_c('div',{staticClass:\"itemSection\"},[_c('div',{staticClass:\"tw-block sm:tw-hidden tw-p-1 tw-font-bold\"},[_vm._v(\"Valor\")]),_c('div',{staticClass:\"tw-text-sm\"},[_vm._v(_vm._s(_vm._f(\"currency\")(compra.valor)))])])])})],2)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"tw-text-xs tw-uppercase item tw-font-medium tw-tracking-wide tw-text-gray-600 tw-hidden sm:tw-grid tw-bg-white tw-rounded-t-md\"},[_c('div',{staticClass:\"tw-px-0\"},[_vm._v(\"Data / Hora\")]),_c('div',{staticClass:\"tw-px-0\"},[_vm._v(\"Etapa\")]),_c('div',{staticClass:\"tw-px-0\"},[_vm._v(\"Fotos\")]),_c('div',{staticClass:\"tw-px-0\"},[_vm._v(\"Tipo de Foto\")]),_c('div',{staticClass:\"tw-px-0\"},[_vm._v(\"Valor\")])])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=7c918b7a&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=7c918b7a&prod&lang=scss&scoped=true\"\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 \"7c918b7a\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=7c918b7a&prod&lang=scss&scoped=true\"","const etapa = {\n TIPO_FOTO: \"TIPO_FOTO\",\n QTDE_FOTO: \"QTDE_FOTO\",\n SCAN_QR_CODE: \"SCAN_QR_CODE\",\n UPLOAD: \"UPLOAD\",\n EDICAO: \"EDICAO\",\n PAGAMENTO: \"PAGAMENTO\",\n PAGAMENTO_FALHOU: \"PAGAMENTO_FALHOU\",\n PAGAMENTO_SUCESSO: \"PAGAMENTO_SUCESSO\",\n IMPRESSAO: \"IMPRESSAO\",\n AGRADECIMENTO: \"AGRADECIMENTO\",\n CONCLUIDO: \"CONCLUIDO\",\n EXPIROU: \"EXPIROU\",\n CANCELADA: \"CANCELADA\",\n};\nconst etapaName = {\n TIPO_FOTO: \"Tipo de Foto\",\n QTDE_FOTO: \"Quantidade de Foto\",\n SCAN_QR_CODE: \"Scan QRCODE\",\n UPLOAD: \"Upload\",\n EDICAO: \"Edição\",\n PAGAMENTO: \"Pagamento\",\n PAGAMENTO_FALHOU: \"Pagamento Falho\",\n PAGAMENTO_SUCESSO: \"Pagamento Sucesso\",\n IMPRESSAO: \"Impressão\",\n AGRADECIMENTO: \"Agradecimento\",\n CONCLUIDO: \"Concluído\",\n EXPIROU: \"Expirou\",\n CANCELADA: \"Cancelada\",\n};\nexport default etapa;\nexport { etapaName };\n"],"sourceRoot":""}