{"version":3,"sources":["webpack:///./src/model/types/resource/TriggerEventType.js","webpack:///./src/views/modules/business/TypeSaleOrderStatus.vue?3ece","webpack:///src/views/modules/business/TypeSaleOrderStatus.vue","webpack:///./src/views/modules/business/TypeSaleOrderStatus.vue?4d49","webpack:///./src/views/modules/business/TypeSaleOrderStatus.vue"],"names":["type","CREATED","READ","UPDATED","DELETED","INITIATED","FINISHED","CHANGE_STATUS","list","value","text","typeList","FORM","STEP","STATUS","contains","typeInput","Type","listByType","itemType","filter","a","render","_vm","this","_h","$createElement","_c","_self","attrs","t","currentPage","pageTitle","userAuth","request","totalPages","totalElements","breadcrumb","on","getPage","scopedSlots","_u","key","fn","validation","singularTitle","name","_e","filteredDefault","filteredAdvanced","form","searchDefault","$event","clearSearch","proxy","checkViewListTableDefault","content","pageListIsLoaded","fields","ref","item","saleOrderStatusNumber","path","note","_v","_s","staticClass","style","color","typeOperation","_f","status","staticRenderFns","mixins","pageDefaultMixin","data","TriggerEventType","modalTrigger","modalTriggerName","modalTriggerOperationStatusTriggerId","methods","mountedPrepare","openModalTrigger","id","component"],"mappings":"0IAGMA,EAAO,CACTC,QAAS,EACTC,KAAM,EACNC,QAAS,EACTC,QAAS,EACTC,UAAW,EACXC,SAAU,EACVC,cAAe,GAGbC,EAAO,CACT,CACIC,MAAOT,EAAKC,QACZS,KAAM,WAEV,CACID,MAAOT,EAAKE,KACZQ,KAAM,OAGV,CACID,MAAOT,EAAKG,QACZO,KAAM,aAGV,CACID,MAAOT,EAAKI,QACZM,KAAM,WAGV,CACID,MAAOT,EAAKK,UACZK,KAAM,iBAGV,CACID,MAAOT,EAAKM,SACZI,KAAM,mBAEV,CACID,MAAOT,EAAKO,cACZG,KAAM,sBAMRC,EAAW,CACbC,KAAM,OACNC,KAAM,OACNC,OAAQ,UAGNC,EAAW,SAAUC,GACvB,OAAOC,OAAKF,SAASP,EAAMQ,IAGzBE,EAAa,SAAUC,GAEzB,OAAIA,IAAaR,EAASC,KACfJ,EAAKY,QAA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,MAAO,CAACjC,EAAG,yBAAyB,CAACE,MAAM,CAAC,YAAYN,EAAIQ,YAAY+B,KAAK,GAAKF,EAAKC,sBAAsB,SAAWtC,EAAIU,gBAAgB,MAAK,EAAM,cAAcN,EAAG,QAAQ,CAACE,MAAM,CAAC,QAAU,KAAK,CAACN,EAAIyC,GAAGzC,EAAI0C,GAAG1C,EAAIO,EAAE,wBAAwB,IAAI,IACpP0C,EAAkB,G,4DC4DtB,GACEC,OAAQ,CAACC,EAAX,aACE5B,KAAM,uBACN6B,KAHF,WAII,MAAO,CACLC,iBAAN,OACMd,KAAM,GACNJ,OAAQ,CACd,CAAQ,IAAR,QAAQ,MAAR,kBACA,CAAQ,IAAR,QAAQ,MAAR,OACA,CAAQ,IAAR,gBAAQ,MAAR,iBACA,CAAQ,IAAR,SAAQ,MAAR,UACA,CAAQ,IAAR,UAAQ,MAAR,KAIMmB,cAAc,EACdC,iBAAkB,GAClBC,qCAAsC,IAK1CC,QAAS,CAEPC,eAFJ,WAIMzD,KAAKa,WAAa,CACxB,CAAQ,KAAR,gBAAQ,GAAR,6BAII,iBATJ,WASA,oLAMI6C,iBAfJ,SAeA,KACM1D,KAAKqD,cAAe,EACpBrD,KAAKsD,iBAAmBhC,EACxBtB,KAAKuD,qCAAuCI,IAMhD,QA/CF,WA+CA,+JAEA,mBAFA,SAIA,gBAJA,uBAMA,qBANA,+CCtH2X,I,YCOvXC,EAAY,eACd,EACA9D,EACAkD,GACA,EACA,KACA,KACA,MAIa,aAAAY,E","file":"js/chunk-4358fd10.ecc58d32.js","sourcesContent":["import Type from \"@/model/types/Type\";\r\n\r\n\r\nconst type = {\r\n CREATED: 1,\r\n READ: 2,\r\n UPDATED: 3,\r\n DELETED: 4,\r\n INITIATED: 5,\r\n FINISHED: 6,\r\n CHANGE_STATUS: 7,\r\n}\r\n\r\nconst list = [\r\n {\r\n value: type.CREATED,\r\n text: \"Incluir\",\r\n },\r\n {\r\n value: type.READ,\r\n text: \"Ler\",\r\n\r\n },\r\n {\r\n value: type.UPDATED,\r\n text: \"Atualizar\",\r\n\r\n },\r\n {\r\n value: type.DELETED,\r\n text: \"Excluir\",\r\n\r\n },\r\n {\r\n value: type.INITIATED,\r\n text: \"Iniciar etapa\",\r\n\r\n },\r\n {\r\n value: type.FINISHED,\r\n text: \"Finalizar etapa\",\r\n },\r\n {\r\n value: type.CHANGE_STATUS,\r\n text: \"Mudança de Status\",\r\n\r\n }\r\n\r\n]\r\n\r\nconst typeList = {\r\n FORM: \"form\",\r\n STEP: \"step\",\r\n STATUS: \"status\",\r\n}\r\n\r\nconst contains = function (typeInput) {\r\n return Type.contains(list, typeInput)\r\n}\r\n\r\nconst listByType = function (itemType) {\r\n\r\n if (itemType === typeList.FORM) {\r\n return list.filter(a => a.value === type.CREATED || a.value === type.READ || a.value === type.UPDATED || a.value === type.DELETED)\r\n } else if (itemType === typeList.STEP) {\r\n return list.filter(a => a.value === type.INITIATED || a.value === type.CHANGE_STATUS)\r\n } else if (itemType === typeList.STATUS) {\r\n return list.filter(a => a.value === type.CHANGE_STATUS)\r\n }\r\n}\r\n\r\nexport default {\r\n type,\r\n list,\r\n contains,\r\n typeList,\r\n listByType,\r\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('t-page',[_c('t-page-list',{attrs:{\"title\":_vm.t('list-of') + _vm.currentPage.pageTitle,\"user-auth\":_vm.userAuth,\"total-pages\":_vm.request.totalPages,\"total-elements\":_vm.request.totalElements,\"breadcrumb\":_vm.breadcrumb},on:{\"getPage\":_vm.getPage},scopedSlots:_vm._u([{key:\"search\",fn:function(){return [(_vm.userAuth.validation.validationCreate)?_c('t-button',{attrs:{\"text\":_vm.t('insert') + ' ' + _vm.currentPage.singularTitle,\"to\":_vm.currentPage.name + '-form-new',\"primary\":\"\"}}):_vm._e(),_c('t-content-header-search-default',{attrs:{\"filtered-default\":_vm.filteredDefault,\"filtered-advanced\":_vm.filteredAdvanced,\"search-form\":_vm.form},on:{\"searchChange\":_vm.searchDefault,\"onClearSearch\":function($event){return _vm.clearSearch()}}})]},proxy:true}])},[(_vm.checkViewListTableDefault())?_c('b-table',{attrs:{\"hover\":\"\",\"items\":_vm.request.content,\"busy\":!_vm.pageListIsLoaded,\"fields\":_vm.fields},scopedSlots:_vm._u([{key:\"cell(first)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-list-link-primary',{attrs:{\"label\":item.name,\"userAuth\":_vm.userAuth,\"id\":item.saleOrderStatusNumber,\"path\":_vm.currentPage.path}}),(item.note !== '')?_c('small',[_c('br'),_vm._v(_vm._s(item.note))]):_vm._e()]}},{key:\"cell(color)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"mb-2 mr-2 badge badge-dot badge-dot-xl\",style:({'background-color': item.color})})]}},{key:\"cell(typeOperation)\",fn:function(ref){\nvar item = ref.item;\nreturn [(item.typeOperation === 1)?_c('div',{staticClass:\"mb-2 mr-2 badge badge-focus\"},[_vm._v(\"Comum\")]):(item.typeOperation === 2)?_c('div',{staticClass:\"mb-2 mr-2 badge badge-success\"},[_vm._v(\"Finalização com sucesso \")]):(item.typeOperation === 3)?_c('div',{staticClass:\"mb-2 mr-2 badge badge-danger\"},[_vm._v(\"Finalização com erro\")]):_vm._e()]}},{key:\"cell(status)\",fn:function(ref){\nvar item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"statusLabel\")(item.status))+\" \")]}},{key:\"cell(actions)\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('t-list-actions-default',{attrs:{\"form-path\":_vm.currentPage.path,\"id\":item.saleOrderStatusNumber,\"userAuth\":_vm.userAuth}})]}}],null,false,3922406983)}):_c('t-msg',{attrs:{\"warning\":\"\"}},[_vm._v(_vm._s(_vm.t('no-record-found')))])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TypeSaleOrderStatus.vue?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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TypeSaleOrderStatus.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TypeSaleOrderStatus.vue?vue&type=template&id=35f4e7c4&\"\nimport script from \"./TypeSaleOrderStatus.vue?vue&type=script&lang=js&\"\nexport * from \"./TypeSaleOrderStatus.vue?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"],"sourceRoot":""}