{"version":3,"sources":["webpack:///./src/views/instance-watchers.vue","webpack:///src/views/instance-watchers.vue","webpack:///./src/views/instance-watchers.vue?9352","webpack:///./src/views/instance-watchers.vue?52d4"],"names":["render","_vm","this","_c","_self","staticClass","attrs","_v","class","active","tabs","addwatcher","on","$event","switch_tab","instances","directives","name","rawName","value","watcher","expression","ref","domProps","target","composing","$set","url","type","$$selectedVal","Array","prototype","filter","call","options","o","selected","map","val","_value","multiple","add_instance","added","_e","error","_s","length","_m","_l","i","key","id","toUpperCase","status","delete_instance","loading","staticRenderFns","data","jwt","props","methods","axios","instance","headers","setTimeout","catch","timeout","then","get_watchers_instances","Object","get_jwt","created","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,kBAAkBC,MAAM,CAAC,GAAK,YAAY,CAACH,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,KAAK,CAACE,YAAY,WAAW,CAACJ,EAAIM,GAAG,+BAA+BJ,EAAG,KAAK,CAACE,YAAY,iBAAiB,CAACF,EAAG,KAAK,CAACE,YAAY,YAAY,CAACF,EAAG,IAAI,CAACK,MAAM,CAAEC,OAAQR,EAAIS,KAAKC,YAAaL,MAAM,CAAC,KAAO,KAAKM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,WAAW,iBAAiB,CAACb,EAAIM,GAAG,mBAAmBJ,EAAG,KAAK,CAACE,YAAY,YAAY,CAACF,EAAG,IAAI,CAACK,MAAM,CAAEC,OAAQR,EAAIS,KAAKK,WAAYT,MAAM,CAAC,KAAO,KAAKM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,WAAW,gBAAgB,CAACb,EAAIM,GAAG,2BAA4BN,EAAIS,KAAKC,WAAYR,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,QAAQ,CAACE,YA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EAO,sCAAAK,YAAAH,SAAA,sBACAI,SACA,gBACA,oEAGAF,0BAEAG,yBAEA,gBACA,kBACAP,iCAAAK,YAAAH,SAAA,sBACAI,SACA,iBACA,+BAEA,kBAEAF,0BAEAnD,uBACAuD,mCACA,MACA,gBACA,+CAEA,mBAIAC,UACAT,0BAAAK,cACAC,SACA,eACA,yBAGAF,2BAGAM,mBACA,iBClK2V,I,YCOvVC,EAAY,eACd,EACAxE,EACAwD,GACA,EACA,KACA,KACA,MAIa,aAAAgB,E","file":"js/chunk-2d20faf8.c983e105.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"backend-content\",attrs:{\"id\":\"content\"}},[_c('div',{staticClass:\"column col-8 col-xs-12\"},[_c('h3',{staticClass:\"s-title\"},[_vm._v(\"Manage watchers instances\")]),_c('ul',{staticClass:\"tab tab-block\"},[_c('li',{staticClass:\"tab-item\"},[_c('a',{class:{ active: _vm.tabs.addwatcher },attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.switch_tab('addwatcher')}}},[_vm._v(\"Add watcher\")])]),_c('li',{staticClass:\"tab-item\"},[_c('a',{class:{ active: _vm.tabs.instances },attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.switch_tab('instances')}}},[_vm._v(\"Existing watchers\")])])]),(_vm.tabs.addwatcher)?_c('div',[_c('div',{staticClass:\"misp-form\"},[_c('label',{staticClass:\"misp-label\"},[_vm._v(\"Watcher name\")]),_c('span'),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.watcher.name),expression:\"watcher.name\"}],ref:\"watcher_name\",staticClass:\"form-input\",attrs:{\"type\":\"text\",\"placeholder\":\"My incredible watcher\",\"required\":\"\"},domProps:{\"value\":(_vm.watcher.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.watcher, \"name\", $event.target.value)}}}),_c('label',{staticClass:\"misp-label\"},[_vm._v(\"Watcher URL\")]),_c('span'),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.watcher.url),expression:\"watcher.url\"}],ref:\"watcher_url\",staticClass:\"form-input\",attrs:{\"type\":\"text\",\"placeholder\":\"https://url.of.my.watcher.com/watcher.json\",\"required\":\"\"},domProps:{\"value\":(_vm.watcher.url)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.watcher, \"url\", $event.target.value)}}}),_c('label',{staticClass:\"misp-label\"},[_vm._v(\"Watcher Type\")]),_c('span'),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.watcher.type),expression:\"watcher.type\"}],staticClass:\"form-select width-full\",attrs:{\"placeholder\":\"test\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.watcher, \"type\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"iocs\"}},[_vm._v(\"IOCs\")]),_c('option',{attrs:{\"value\":\"whitelist\"}},[_vm._v(\"Whitelist\")])])]),_c('button',{staticClass:\"btn-primary btn col-12\",on:{\"click\":function($event){return _vm.add_instance()}}},[_vm._v(\"Add watcher\")]),(_vm.added)?_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"toast toast-success\"},[_vm._v(\" ✓ Watcher added successfully. Redirecting to watchers in 2 seconds. \")])]):_vm._e(),(_vm.error)?_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"toast toast-error\"},[_vm._v(\" ✗ Watcher not added. \"+_vm._s(_vm.error)+\" \")])]):_vm._e()]):_vm._e(),(_vm.tabs.instances)?_c('div',{staticClass:\"form-group\"},[(_vm.instances.length)?_c('div',[_c('table',{staticClass:\"table table-striped table-hover\"},[_vm._m(0),_c('tbody',_vm._l((_vm.instances),function(i){return _c('tr',{key:i.id},[_c('td',[_vm._v(_vm._s(i.type.toUpperCase()))]),_c('td',[_vm._v(_vm._s(i.name))]),_c('td',[(i.status)?_c('span',{staticClass:\"instance-online\"},[_vm._v(\"✓ ONLINE\")]):_c('span',{staticClass:\"instance-offline\"},[_vm._v(\"⚠ OFFLINE\")])]),_c('td',[_c('button',{staticClass:\"btn btn-sm\",on:{\"click\":function($event){return _vm.delete_instance(i)}}},[_vm._v(\"Delete\")])])])}),0)])]):_c('div',[_c('div',{staticClass:\"empty\"},[(_vm.loading)?_c('div',[_vm._m(1),_c('p',{staticClass:\"empty-subtitle\"},[_vm._v(\"Testing and loading the watchers.\")])]):_c('div',[_c('p',{staticClass:\"empty-title h5\"},[_vm._v(\"No watcher found.\")]),_c('p',{staticClass:\"empty-subtitle\"},[_vm._v(\"Do not hesitate to add a watcher.\")])])])])]):_vm._e()])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"Type\")]),_c('th',[_vm._v(\"Name\")]),_c('th',[_vm._v(\"Status\")]),_c('th',[_vm._v(\"Action\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"empty-title h5\"},[_c('span',{staticClass:\"loading loading-lg\"})])\n}]\n\nexport { render, staticRenderFns }","\n \n \n Manage watchers instances\n \n \n Add watcher\n \n \n Existing watchers\n \n \n \n \n Watcher name\n \n Watcher URL\n \n Watcher Type\n \n IOCs\n Whitelist\n \n \n Add watcher\n \n \n ✓ Watcher added successfully. Redirecting to watchers in 2 seconds. \n \n \n \n \n ✗ Watcher not added. {{error}}\n \n \n \n \n \n \n \n \n Type\n Name\n Status\n Action\n \n \n \n \n {{ i.type.toUpperCase() }}\n {{ i.name }}\n \n ✓ ONLINE\n ⚠ OFFLINE\n \n Delete\n \n \n \n \n \n \n \n \n \n \n Testing and loading the watchers.\n \n \n No watcher found.\n Do not hesitate to add a watcher.\n \n \n \n \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!./instance-watchers.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!./instance-watchers.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./instance-watchers.vue?vue&type=template&id=aa45beee&\"\nimport script from \"./instance-watchers.vue?vue&type=script&lang=js&\"\nexport * from \"./instance-watchers.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":""}
\n \n
Testing and loading the watchers.
No watcher found.
Do not hesitate to add a watcher.