{"version":3,"sources":["webpack:///./src/views/whitelist-manage.vue","webpack:///src/views/whitelist-manage.vue","webpack:///./src/views/whitelist-manage.vue?21b2","webpack:///./src/views/whitelist-manage.vue?a1c1"],"names":["render","_vm","this","_c","_self","staticClass","attrs","_v","class","active","tabs","bulk","on","$event","switch_tab","file","export","export_url","_e","import_from_file","directives","name","rawName","value","type","expression","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","multiple","_l","types","t","key","domProps","_s","elements","composing","import_from_bulk","imported","length","errors","_m","e","element","message","type_tag_error","staticRenderFns","data","wrong_wh_file","jwt","props","methods","import_element","axios","timeout","headers","catch","enrich_types","then","Object","reader","JSON","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,iCAAiCJ,EAAG,KAAK,CAACE,YAAY,iBAAiB,CAACF,EAAG,KAAK,CAACE,YAAY,YAAY,CAACF,EAAG,IAAI,CAACK,MAAM,CAAEC,OAAQR,EAAIS,KAAKC,MAAOL,MAAM,CAAC,KAAO,KAAKM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,WAAW,WAAW,CAACb,EAAIM,GAAG,4BAA4BJ,EAAG,KAAK,CAACE,YAAY,YAAY,CAACF,EAAG,IAAI,CAACK,MAAM,CAAEC,OAAQR,EAAIS,KAAKK,MAAOT,MAAM,CAAC,KAAO,KAAKM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,WAAW,WAAW,CAACb,EAAIM,GAAG,wBAAwBJ,EAAG,KAAK,CAACE,YAAY,YAAY,CAACF,EAAG,IAAI,CAACK,MAAM,CAAEC,OAAQR,EAAIS,KAAKM,QA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,iBACAhD,MAAA,2BACAiD,OACA1C,gBAGA2C,SACAC,SACAd,4BACA,eACA,iBACA,eACA,6CACA,mCAEA,kBAEA,wBAGAe,6BACA,0BACAC,sDACAC,YACAC,SAAA,sBACA,SACA,cACA,2BACA,gBACA,2BAGAC,0BAGAC,wBACAJ,oCAAAC,YAAAC,SAAA,sBACAG,SACA,0CAEAF,0BAEApD,uBACA,eACA,iBAEAuD,mCAEA,aADA,QAOAlD,6BACA,eACA,iBAEA,0BACA,iBAEAmD,+CACAA,cACA,IACAC,0CACA,8CAEA,SACA,wBAIAD,iBAEA,sBACA,0BAAAN,cACAI,SACA,eACA,yBAGAF,2BAGAM,mBACA,yBACA,oBACA,4DC1L0V,I,YCOtVC,EAAY,eACd,EACAzE,EACAwD,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E","file":"js/chunk-2d215cd3.f0d8ba06.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 whitelisted elements\")]),_c('ul',{staticClass:\"tab tab-block\"},[_c('li',{staticClass:\"tab-item\"},[_c('a',{class:{ active: _vm.tabs.bulk },attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.switch_tab('bulk')}}},[_vm._v(\"Bulk elements import\")])]),_c('li',{staticClass:\"tab-item\"},[_c('a',{class:{ active: _vm.tabs.file },attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.switch_tab('file')}}},[_vm._v(\"Import from file\")])]),_c('li',{staticClass:\"tab-item\"},[_c('a',{class:{ active: _vm.tabs.export },attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.switch_tab('export')}}},[_vm._v(\"Export elements\")])])]),(_vm.tabs.export)?_c('div',[_c('iframe',{staticClass:\"frame-export\",attrs:{\"src\":_vm.export_url}})]):_vm._e(),(_vm.tabs.file)?_c('div',[_c('label',{staticClass:\"form-upload empty\",attrs:{\"for\":\"upload\"}},[_c('input',{staticClass:\"upload-field\",attrs:{\"type\":\"file\",\"id\":\"upload\"},on:{\"change\":_vm.import_from_file}}),_c('p',{staticClass:\"empty-title h5\"},[_vm._v(\"Drop or select a file to import.\")]),_c('p',{staticClass:\"empty-subtitle\"},[_vm._v(\"The file needs to be an whitelist file export from a SpyGuard instance.\")])])]):_vm._e(),(_vm.tabs.bulk)?_c('div',[_c('div',{staticClass:\"form-group\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.type),expression:\"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.type=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"\"}},[_vm._v(\"Elements Type\")]),_c('option',{attrs:{\"value\":\"unknown\"}},[_vm._v(\"Multiple (regex parsing)\")]),_vm._l((_vm.types),function(t){return _c('option',{key:t.type,domProps:{\"value\":t.type}},[_vm._v(\" \"+_vm._s(t.name)+\" \")])})],2)]),_c('div',{staticClass:\"form-group\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.elements),expression:\"elements\"}],staticClass:\"form-input\",attrs:{\"id\":\"input-example-3\",\"placeholder\":\"Paste the elements to be whitelisted here\",\"rows\":\"15\"},domProps:{\"value\":(_vm.elements)},on:{\"input\":function($event){if($event.target.composing)return;_vm.elements=$event.target.value}}})]),_c('div',{staticClass:\"form-group\"},[_c('button',{staticClass:\"btn-primary btn col-12\",on:{\"click\":function($event){return _vm.import_from_bulk()}}},[_vm._v(\"Whitelist elements\")])])]):_vm._e(),(_vm.imported.length>0)?_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"toast toast-success\"},[_vm._v(\" ✓ \"+_vm._s(_vm.imported.length)+\" IOC\"),(_vm.errors.length>1)?_c('span',[_vm._v(\"s\")]):_vm._e(),_vm._v(\" imported successfully. \")])]):_vm._e(),(_vm.errors.length>0)?_c('div',[_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"toast toast-error\"},[_vm._v(\" ✗ \"+_vm._s(_vm.errors.length)+\" IOC\"),(_vm.errors.length>1)?_c('span',[_vm._v(\"s\")]):_vm._e(),_vm._v(\" not imported, see details below. \")])]),_c('div',{staticClass:\"form-group\"},[_c('table',{staticClass:\"table table-striped table-hover\"},[_vm._m(0),_c('tbody',_vm._l((_vm.errors),function(e){return _c('tr',{key:e.element},[_c('td',[_vm._v(_vm._s(e.element))]),_c('td',[_vm._v(_vm._s(e.message))])])}),0)])])]):(_vm.type_tag_error==true)?_c('div',[_vm._m(1),_vm._m(2)]):_vm._e()])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"Element\")]),_c('th',[_vm._v(\"Importation error\")])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"toast toast-error\"},[_vm._v(\" ✗ IOC(s) not imported, see details below. \")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"empty\"},[_c('p',{staticClass:\"empty-title h5\"},[_vm._v(\"Please select a tag and a type.\")]),_c('p',{staticClass:\"empty-subtitle\"},[_vm._v(\"If different IOCs types, select \\\"Unknown (regex parsing)\\\".\")])])])\n}]\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n Manage whitelisted elements\r\n \r\n \r\n Bulk elements import\r\n \r\n \r\n Import from file\r\n \r\n \r\n Export elements\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Drop or select a file to import.\r\n The file needs to be an whitelist file export from a SpyGuard instance.\r\n \r\n \r\n \r\n \r\n \r\n Elements Type\r\n Multiple (regex parsing)\r\n \r\n {{ t.name }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Whitelist elements\r\n \r\n \r\n 0\">\r\n \r\n ✓ {{imported.length}} IOC1\">s imported successfully.\r\n \r\n \r\n 0\">\r\n \r\n \r\n ✗ {{errors.length}} IOC1\">s not imported, see details below.\r\n \r\n \r\n \r\n \r\n \r\n \r\n Element\r\n Importation error\r\n \r\n \r\n \r\n \r\n {{ e.element }}\r\n {{ e.message }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ✗ IOC(s) not imported, see details below.\r\n \r\n \r\n \r\n \r\n Please select a tag and a type.\r\n If different IOCs types, select \"Unknown (regex parsing)\".\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\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!./whitelist-manage.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!./whitelist-manage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./whitelist-manage.vue?vue&type=template&id=cb356830&\"\nimport script from \"./whitelist-manage.vue?vue&type=script&lang=js&\"\nexport * from \"./whitelist-manage.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":""}
Drop or select a file to import.
The file needs to be an whitelist file export from a SpyGuard instance.
Please select a tag and a type.
If different IOCs types, select \"Unknown (regex parsing)\".