{"version":3,"sources":["webpack:///./src/views/instance-misp.vue","webpack:///src/views/instance-misp.vue","webpack:///./src/views/instance-misp.vue?4ce4","webpack:///./src/views/instance-misp.vue?7ab0"],"names":["render","_vm","this","_c","_self","staticClass","attrs","_v","class","active","tabs","addmisp","on","$event","switch_tab","instances","directives","name","rawName","value","mispinst","expression","ref","domProps","target","composing","$set","url","key","startsWith","_e","staticStyle","ssl","Array","isArray","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","add_instance","added","error","_s","length","_m","_l","i","id","replace","apikey","connected","lastsync","delete_instance","loading","staticRenderFns","data","jwt","props","methods","axios","instance","headers","setTimeout","catch","timeout","then","get_misp_instances","e","Object","get_jwt","created","component"],"mappings":"yHAAA,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,2BAA2BJ,EAAG,KAAK,CAACE,YAAY,iBAAiB,CAACF,EAAG,KAAK,CAACE,YAAY,YAAY,CAACF,EAAG,IAAI,CAACK,MAAM,CAAEC,OAAQR,EAAIS,KAAKC,SAAUL,MAAM,CAAC,KAAO,KAAKM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,WAAW,cAAc,CAACb,EAAIM,GAAG,oBAAoBJ,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,4BAA6BN,EAAIS,KAAKC,QAASR,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,E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AH,SAAA,sBACAI,SACA,iBACA,8BACA,2BACA,kDACAE,oEAGA,kBAEAJ,0BAEAtD,uBAEA2D,mCACA,MACA,gBACA,2CAEA,mBAIAC,UACAV,0BAAAK,cACAC,SACA,eACA,yBAGAF,2BAGAO,mBACA,iBC3KuV,I,YCOnVC,EAAY,eACd,EACA5E,EACA2D,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E","file":"js/chunk-2d0c9378.fb16a6a2.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 MISP instances\")]),_c('ul',{staticClass:\"tab tab-block\"},[_c('li',{staticClass:\"tab-item\"},[_c('a',{class:{ active: _vm.tabs.addmisp },attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.switch_tab('addmisp')}}},[_vm._v(\"Add instance\")])]),_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 instances\")])])]),(_vm.tabs.addmisp)?_c('div',[_c('div',{staticClass:\"misp-form\"},[_c('label',{staticClass:\"misp-label\"},[_vm._v(\"Instance name\")]),_c('span'),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mispinst.name),expression:\"mispinst.name\"}],ref:\"misp_name\",staticClass:\"form-input\",attrs:{\"type\":\"text\",\"placeholder\":\"CYBERACME MISP\",\"required\":\"\"},domProps:{\"value\":(_vm.mispinst.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mispinst, \"name\", $event.target.value)}}}),_c('label',{staticClass:\"misp-label\"},[_vm._v(\"Instance URL\")]),_c('span'),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mispinst.url),expression:\"mispinst.url\"}],ref:\"misp_url\",staticClass:\"form-input\",attrs:{\"type\":\"text\",\"placeholder\":\"https://misp.cyberacme.com\",\"required\":\"\"},domProps:{\"value\":(_vm.mispinst.url)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mispinst, \"url\", $event.target.value)}}}),_c('label',{staticClass:\"misp-label\"},[_vm._v(\"Authentication key\")]),_c('span'),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mispinst.key),expression:\"mispinst.key\"}],ref:\"misp_key\",staticClass:\"form-input\",attrs:{\"type\":\"text\",\"placeholder\":\"OqHSMyAuth3ntic4t10nK3y0MyAuth3ntic4t10nK3y3iiH\",\"required\":\"\"},domProps:{\"value\":(_vm.mispinst.key)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mispinst, \"key\", $event.target.value)}}}),(_vm.mispinst.url.startsWith('https://'))?_c('label',{staticClass:\"misp-label\"},[_vm._v(\"Verify certificate? \")]):_vm._e(),(_vm.mispinst.url.startsWith('https://'))?_c('span'):_vm._e(),(_vm.mispinst.url.startsWith('https://'))?_c('div',{staticStyle:{\"flex\":\"50%\"}},[_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mispinst.ssl),expression:\"mispinst.ssl\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.mispinst.ssl)?_vm._i(_vm.mispinst.ssl,null)>-1:(_vm.mispinst.ssl)},on:{\"change\":function($event){var $$a=_vm.mispinst.ssl,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.mispinst, \"ssl\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.mispinst, \"ssl\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.mispinst, \"ssl\", $$c)}}}}),_c('i',{staticClass:\"form-icon\"})])]):_vm._e()]),_c('button',{staticClass:\"btn-primary btn col-12\",on:{\"click\":function($event){return _vm.add_instance()}}},[_vm._v(\"Add MISP instance\")]),(_vm.added)?_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"toast toast-success\"},[_vm._v(\" ✓ MISP instance added successfully. Redirecting to instances in 2 seconds. \")])]):_vm._e(),(_vm.error)?_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"toast toast-error\"},[_vm._v(\" ✗ MISP instance 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.name))]),_c('td',[_vm._v(_vm._s(i.url.replace('https://', '') .replace('http://', '')))]),_c('td',[_vm._v(_vm._s(i.apikey.slice(0,5))+\" [...] \"+_vm._s(i.apikey.slice(35,40)))]),_c('td',[(i.connected)?_c('span',{staticClass:\"instance-online tooltip\",attrs:{\"data-tooltip\":i.lastsync}},[_vm._v(\"✓ ONLINE\")]):_c('span',{staticClass:\"instance-offline tooltip\",attrs:{\"data-tooltip\":i.lastsync}},[_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 your MISP instances.\")])]):_c('div',[_c('p',{staticClass:\"empty-title h5\"},[_vm._v(\"No MISP instance found.\")]),_c('p',{staticClass:\"empty-subtitle\"},[_vm._v(\"Do not hesitate to add a MISP instance.\")])])])])]):_vm._e()])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"Name\")]),_c('th',[_vm._v(\"Server\")]),_c('th',[_vm._v(\"Authkey\")]),_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","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-misp.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-misp.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./instance-misp.vue?vue&type=template&id=63e790af&\"\nimport script from \"./instance-misp.vue?vue&type=script&lang=js&\"\nexport * from \"./instance-misp.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":""}