text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[3],{"02cd":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-page",{staticClass:"q-pa-sm"},[o("q-header",{class:e.darkMode?"":"bg-grey-1",style:e.darkMode?"background: var(--q-color-dark);":"",attrs:{elevated:""}},[o("q-toolbar",{staticClass:"q-gutter-x-sm",class:e.darkMode?"":"text-black"},[o("q-btn",{attrs:{"no-caps":"",flat:"",dense:"",icon:"arrow_back",label:"Return to Properties",to:"/Pipelines/"+this.pipelineUid+"/Properties"}}),o("q-separator",{attrs:{vertical:""}}),o("q-toolbar-title",{staticClass:"text-center",staticStyle:{opacity:".4"}},[e._v("Edit Deployment"),e.pipeline&&e.pipeline.name&&e.pipeline.name.length?o("span",[e._v(":  "+e._s(e.pipeline.name))]):e._e()])],1)],1),o("div",{staticClass:" q-gutter-y-sm"},[o("q-card",[o("q-card-section",{staticClass:"col q-ma-none q-pa-none"},[o("q-card-section",{staticClass:"text-h4"},[e._v("\n            Select a Suitable Open Collector\n        ")]),o("q-card-section",[o("q-table",{attrs:{data:e.tableData,columns:e.columns,"row-key":"uid",dense:"","no-data-label":"No Open Collector to display.",filter:e.searchFilter,loading:e.dataLoading||e.collectorLogSourcesLoading,"rows-per-page-label":"Open Collectors per page:",pagination:e.pagination},on:{"update:pagination":function(t){e.pagination=t}},scopedSlots:e._u([{key:"top",fn:function(){return[o("div",{staticClass:"full-width row wrap justify-between"},[o("div",{staticClass:"q-table__title"},[e._v("\n                  Available Open Collectors\n                ")]),o("div",{staticClass:"row q-gutter-md"},[o("div",{staticStyle:{width:"300px"}},[o("q-input",{attrs:{outlined:"",dense:"",debounce:"300",placeholder:"Search"},scopedSlots:e._u([{key:"append",fn:function(){return[e.searchFilter.length?o("q-btn",{attrs:{dense:"",flat:"",icon:"close"},on:{click:function(t){e.searchFilter=""}}}):e._e(),o("q-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchFilter,callback:function(t){e.searchFilter=t},expression:"searchFilter"}})],1),o("q-btn",{attrs:{dense:"",outline:"",icon:"refresh",loading:e.dataLoading},on:{click:function(t){return e.loadOpenCollectorsPipelinesAndLogSources()}}},[o("q-tooltip",{attrs:{"content-style":"font-size: 1em"}},[e._v("\n                      Reload the list of Pipelines.\n                    ")])],1)],1)])]},proxy:!0},{key:"body-cell-actions",fn:function(t){return[o("q-td",{attrs:{props:t}},[!t.row.deploymentStatus||!0!==t.row.deploymentStatus.ongoing&&!0!==t.row.deploymentStatus.completed?o("q-btn",{attrs:{flat:"",dense:"",icon:"add_circle_outline",disable:!t.row.suitable||!0===t.row.alreadyDeployed},on:{click:function(o){return e.selectOpenCollectorForDeployment(t.row)}}},[o("q-tooltip",{attrs:{"content-style":"font-size: 1em"}},[e._v("\n                    "+e._s(e.$t("Deploy"))+"\n                  ")])],1):o("q-btn",{attrs:{flat:"",dense:""}},[o("q-tooltip",{attrs:{"content-style":"font-size: 1em"}},[o("div",[o("div",{staticClass:"row justify-between q-my-sm q-mr-sm"},[o("div",{staticClass:"row items-center q-gutter-x-sm"},[o("q-icon",{attrs:{name:"list",color:"blue-3",size:"md"}}),o("div",{staticClass:"text-h6"},[e._v("Deployment Steps")])],1),o("div",{staticClass:"q-gutter-x-md"},[t.row&&t.row.deploymentStatus&&!0===t.row.deploymentStatus.error?o("q-icon",{attrs:{name:"warning",color:"orange",size:"md"}}):t.row&&t.row.deploymentStatus&&!0===t.row.deploymentStatus.completed?o("q-icon",{attrs:{name:"task_alt",color:"positive",size:"md"}}):e._e(),o("q-circular-progress",{attrs:{value:Math.round(e.deploymentProgressFor(t.row,"deploymentStatus").done),"show-value":"","font-size":e.deploymentProgressFor(t.row,"deploymentStatus").done<100?"0.5em":"0.4em",size:"2.8em",thickness:.2,color:e.darkMode?"blue-3":"blue-10","track-color":t.row&&t.row.deploymentStatus&&!0===t.row.deploymentStatus.error?e.darkMode?"red-10":"red":e.darkMode?"grey-9":"grey-3","center-color":t.row&&t.row.deploymentStatus&&!0===t.row.deploymentStatus.error?e.darkMode?"orange-10":"orange":void 0}})],1)]),o("q-separator"),o("div",{staticClass:"q-mb-sm"},e._l(t.row&&t.row.deploymentStatus&&t.row.deploymentStatus.steps&&t.row.deploymentStatus.steps.length?t.row.deploymentStatus.steps:[],(function(t,a){return o("q-item",{key:a,staticStyle:{"min-width":"30rem"},attrs:{dense:""}},[o("q-item-section",[o("q-item-label",[o("div",{staticClass:"row items-center no-wrap"},[o("q-icon",{class:"On-going"===t.status||"Error"===t.status?"":"invisible",attrs:{name:"arrow_right",size:"sm"}}),o("div",{staticClass:"force-long-text-wrap ellipsis-3-lines",class:"On-going"===t.status||"Error"===t.status?"text-bold":""},[e._v(e._s(t.name))])],1)])],1),o("q-item-section",{attrs:{side:""}},["Not started"===t.status?o("q-icon",{attrs:{name:"hourglass_empty",size:"sm",color:"grey"}}):"To skip"===t.status?o("q-icon",{attrs:{name:"redo",size:"sm",color:"grey"}}):"Pending"===t.status?o("q-icon",{attrs:{name:"hourglass_top",size:"sm",color:"grey-3"}}):"On-going"===t.status?o("q-spinner-dots",{attrs:{color:"blue-10",size:"2em"}}):"Completed"===t.status?o("q-icon",{attrs:{name:"task_alt",size:"sm",color:"positive"}}):"Skipped"===t.status?o("q-icon",{staticStyle:{opacity:".5"},attrs:{name:"redo",size:"sm",color:"green-4"}}):"Error"===t.status?o("q-icon",{attrs:{name:"error",size:"sm",color:"orange"}}):"Cancelled"===t.status?o("q-icon",{attrs:{name:"block",size:"sm",color:"grey"}}):e._e()],1)],1)})),1),t.row&&e.deploymentProgressFor(t.row,"deploymentStatus").errorAbsolute?o("div",[o("q-separator"),o("div",{staticClass:"row items-center col no-wrap"},[o("q-icon",{attrs:{name:"warning",color:"orange",size:"md"}}),o("q-separator",{staticClass:"q-mx-sm",attrs:{vertical:""}}),o("q-separator",{staticClass:"q-ml-none q-mr-sm",attrs:{vertical:"",color:"negative",size:"0.2rem"}}),o("div",{staticClass:"q-my-sm"},[t.row.deploymentStatus.errorMessage&&t.row.deploymentStatus.errorMessage.length?o("div",{staticClass:"text-bold text-orange"},[e._v("The last step failed with this error message:")]):o("div",{staticClass:"text-bold"},[e._v("The last step failed with no error message.")]),o("div",{staticClass:"force-long-text-wrap ellipsis-3-lines",staticStyle:{"max-width":"35rem"}},[e._v(e._s(t.row.deploymentStatus.errorMessage))])])],1)],1):e._e(),t.row&&e.deploymentProgressFor(t.row,"deploymentStatus").skippedAbsolute?o("div",[o("q-separator"),o("div",{staticClass:"row items-center col no-wrap"},[o("q-icon",{attrs:{name:"redo",color:"green-4",size:"md"}}),o("q-separator",{staticClass:"q-mx-sm",attrs:{vertical:""}}),o("div",{staticClass:"q-my-sm"},[e.deploymentProgressFor(t.row,"deploymentStatus").skippedAbsolute>1?o("div",{staticClass:"text-bold"},[e._v(e._s(Math.round(e.deploymentProgressFor(t.row,"deploymentStatus").skippedAbsolute))+" steps have been skipped.")]):o("div",{staticClass:"text-bold"},[e._v("One step has been skipped.")]),o("div",{},[e._v("This is fine. Steps are typically skipped if not necessary for a given deployment.")])])],1)],1):e._e()],1)]),o("q-circular-progress",{attrs:{value:Math.round(e.deploymentProgressFor(t.row,"deploymentStatus").done),"show-value":"","font-size":e.deploymentProgressFor(t.row,"deploymentStatus").done<100?"0.5em":"0.4em",size:"1.7em",thickness:.2,color:e.darkMode?"blue-3":"blue-10","track-color":t.row&&t.row.deploymentStatus&&!0===t.row.deploymentStatus.error?e.darkMode?"red-10":"red":e.darkMode?"grey-9":"grey-3","center-color":t.row&&t.row.deploymentStatus&&!0===t.row.deploymentStatus.error?e.darkMode?"orange-10":"orange":void 0}})],1),!t.row.unDeployStatus||!0!==t.row.unDeployStatus.ongoing&&!0!==t.row.unDeployStatus.completed?o("q-btn",{attrs:{flat:"",dense:"",icon:"remove_circle_outline",color:"negative",disable:!(!0===t.row.alreadyDeployed)},on:{click:function(o){return e.selectOpenCollectorForUndeploy(t.row)}}},[o("q-tooltip",{attrs:{"content-style":"font-size: 1em"}},[o("div",{staticClass:"text-bold q-mb-sm"},[e._v(e._s(e.$t("Un-deploy")))]),o("div",{staticClass:"q-mb-xs"},[e._v(e._s(e.$t("This Stream has already been deployed on this OpenCollector.")))]),o("div",[e._v(e._s(e.$t("This will remove the configuration from the Shipper on the OpenCollector, but will leave the OpenCollector's Pipeline and SIEM Log Source as they are.")))])])],1):o("q-btn",{attrs:{flat:"",dense:""}},[o("q-tooltip",{attrs:{"content-style":"font-size: 1em"}},[o("div",[o("div",{staticClass:"row justify-between q-my-sm q-mr-sm"},[o("div",{staticClass:"row items-center q-gutter-x-sm"},[o("q-icon",{attrs:{name:"list",color:"blue-3",size:"md"}}),o("div",{staticClass:"text-h6"},[e._v("Un-Deployment Steps")])],1),o("div",{staticClass:"q-gutter-x-md"},[t.row&&t.row.unDeployStatus&&!0===t.row.unDeployStatus.error?o("q-icon",{attrs:{name:"warning",color:"orange",size:"md"}}):t.row&&t.row.unDeployStatus&&!0===t.row.unDeployStatus.completed?o("q-icon",{attrs:{name:"task_alt",color:"positive",size:"md"}}):e._e(),o("q-circular-progress",{attrs:{value:Math.round(e.deploymentProgressFor(t.row,"unDeployStatus").done),"show-value":"","font-size":e.deploymentProgressFor(t.row,"unDeployStatus").done<100?"0.5em":"0.4em",size:"2.8em",thickness:.2,color:e.darkMode?"blue-3":"blue-10","track-color":t.row&&t.row.unDeployStatus&&!0===t.row.unDeployStatus.error?e.darkMode?"red-10":"red":e.darkMode?"grey-9":"grey-3","center-color":t.row&&t.row.unDeployStatus&&!0===t.row.unDeployStatus.error?e.darkMode?"orange-10":"orange":void 0}})],1)]),o("q-separator"),o("div",{staticClass:"q-mb-sm"},e._l(t.row&&t.row.unDeployStatus&&t.row.unDeployStatus.steps&&t.row.unDeployStatus.steps.length?t.row.unDeployStatus.steps:[],(function(t,a){return o("q-item",{key:a,staticStyle:{"min-width":"30rem"},attrs:{dense:""}},[o("q-item-section",[o("q-item-label",[o("div",{staticClass:"row items-center no-wrap"},[o("q-icon",{class:"On-going"===t.status||"Error"===t.status?"":"invisible",attrs:{name:"arrow_right",size:"sm"}}),o("div",{staticClass:"force-long-text-wrap ellipsis-3-lines",class:"On-going"===t.status||"Error"===t.status?"text-bold":""},[e._v(e._s(t.name))])],1)])],1),o("q-item-section",{attrs:{side:""}},["Not started"===t.status?o("q-icon",{attrs:{name:"hourglass_empty",size:"sm",color:"grey"}}):"To skip"===t.status?o("q-icon",{attrs:{name:"redo",size:"sm",color:"grey"}}):"Pending"===t.status?o("q-icon",{attrs:{name:"hourglass_top",size:"sm",color:"grey-3"}}):"On-going"===t.status?o("q-spinner-dots",{attrs:{color:"blue-10",size:"2em"}}):"Completed"===t.status?o("q-icon",{attrs:{name:"task_alt",size:"sm",color:"positive"}}):"Skipped"===t.status?o("q-icon",{staticStyle:{opacity:".5"},attrs:{name:"redo",size:"sm",color:"green-4"}}):"Error"===t.status?o("q-icon",{attrs:{name:"error",size:"sm",color:"orange"}}):"Cancelled"===t.status?o("q-icon",{attrs:{name:"block",size:"sm",color:"grey"}}):e._e()],1)],1)})),1),t.row&&e.deploymentProgressFor(t.row,"unDeployStatus").errorAbsolute?o("div",[o("q-separator"),o("div",{staticClass:"row items-center col no-wrap"},[o("q-icon",{attrs:{name:"warning",color:"orange",size:"md"}}),o("q-separator",{staticClass:"q-mx-sm",attrs:{vertical:""}}),o("q-separator",{staticClass:"q-ml-none q-mr-sm",attrs:{vertical:"",color:"negative",size:"0.2rem"}}),o("div",{staticClass:"q-my-sm"},[t.row.unDeployStatus.errorMessage&&t.row.unDeployStatus.errorMessage.length?o("div",{staticClass:"text-bold text-orange"},[e._v("The last step failed with this error message:")]):o("div",{staticClass:"text-bold"},[e._v("The last step failed with no error message.")]),o("div",{staticClass:"force-long-text-wrap ellipsis-3-lines",staticStyle:{"max-width":"35rem"}},[e._v(e._s(t.row.unDeployStatus.errorMessage))])])],1)],1):e._e(),t.row&&e.deploymentProgressFor(t.row,"unDeployStatus").skippedAbsolute?o("div",[o("q-separator"),o("div",{staticClass:"row items-center col no-wrap"},[o("q-icon",{attrs:{name:"redo",color:"green-4",size:"md"}}),o("q-separator",{staticClass:"q-mx-sm",attrs:{vertical:""}}),o("div",{staticClass:"q-my-sm"},[e.deploymentProgressFor(t.row,"unDeployStatus").skippedAbsolute>1?o("div",{staticClass:"text-bold"},[e._v(e._s(Math.round(e.deploymentProgressFor(t.row,"unDeployStatus").skippedAbsolute))+" steps have been skipped.")]):o("div",{staticClass:"text-bold"},[e._v("One step has been skipped.")]),o("div",{},[e._v("This is fine. Steps are typically skipped if not necessary for a given deployment.")])])],1)],1):e._e()],1)]),o("q-circular-progress",{attrs:{value:Math.round(e.deploymentProgressFor(t.row,"unDeployStatus").done),"show-value":"","font-size":e.deploymentProgressFor(t.row,"unDeployStatus").done<100?"0.5em":"0.4em",size:"1.7em",thickness:.2,color:e.darkMode?"blue-3":"blue-10","track-color":t.row&&t.row.unDeployStatus&&!0===t.row.unDeployStatus.error?e.darkMode?"red-10":"red":e.darkMode?"grey-9":"grey-3","center-color":t.row&&t.row.unDeployStatus&&!0===t.row.unDeployStatus.error?e.darkMode?"orange-10":"orange":void 0}})],1)],1)]}},{key:"body-cell-status",fn:function(t){return[o("q-td",{attrs:{props:t}},[!0===t.value?o("q-icon",{attrs:{name:"thumb_up",color:"green",size:"md"}}):!1===t.value?o("q-icon",{staticStyle:{opacity:".6"},attrs:{name:"thumb_down",color:"red",size:"md"}}):o("q-icon",{staticStyle:{opacity:".6"},attrs:{name:"thumb_down_off_alt",color:"orange",size:"md"}}),o("q-tooltip",{attrs:{"content-style":"font-size: 1em"}},[!0===t.value?o("span",[e._v("Suitable")]):!1===t.value?o("span",[e._v("Unsuitable")]):o("span",[e._v("Unknown. Likely unsuitable ("+e._s(t.value)+")")])])],1)]}},{key:"body-cell-installedShippers",fn:function(t){return[o("q-td",{attrs:{props:t}},[e._l(t.value,(function(t,a){return o("div",{key:a},[o("q-tooltip",{attrs:{"content-style":"font-size: 1em;"}},[e._v(e._s(t.name))]),o("q-avatar",{staticClass:"q-mr-xs",attrs:{square:"",size:"24px"}},[o("img",{attrs:{src:"/shippers/"+e.collectionShipperDetails(t.name).icon+".svg"}})]),o("q-badge",{attrs:{outline:"",color:"grey"}},[e._v("v"+e._s(t.version))])],1)})),!0!==t.row.hasNecessaryShipper?o("div",[o("q-tooltip",{attrs:{"content-style":"font-size: 1em;"}},[e._v("\n                    The necessary Shipper to collect this source is not installed on this collector."),o("br"),o("br"),e._v("\n                    Please go to the Collectors page to deploy this Shipper on this Collector."),o("br"),o("br"),o("q-icon",{staticClass:"q-mr-sm",attrs:{name:"info",size:"sm",color:"info"}}),o("span",{staticClass:"text-bold"},[e._v("Missing:")]),e._v(" "+e._s(e.pipeline&&e.pipeline.collectionConfig&&e.pipeline.collectionConfig.collectionShipper?e.pipeline.collectionConfig.collectionShipper:"N/A")),o("br"),o("img",{staticClass:"q-ml-lg",attrs:{src:"/shippers/"+e.collectionShipperDetails(e.pipeline&&e.pipeline.collectionConfig&&e.pipeline.collectionConfig.collectionShipper?e.pipeline.collectionConfig.collectionShipper:null).icon+".svg",width:"128px"}})],1),o("q-badge",{staticClass:"q-gutter-x-sm",attrs:{outline:"",color:"orange"}},[o("q-icon",{attrs:{name:"warning",size:"sm",color:"orange"}}),o("div",{staticClass:"icon-stack"},[o("img",{staticClass:"img-stack-75",attrs:{src:"/shippers/"+e.collectionShipperDetails(e.pipeline&&e.pipeline.collectionConfig&&e.pipeline.collectionConfig.collectionShipper?e.pipeline.collectionConfig.collectionShipper:null).icon+".svg"}}),o("img",{staticClass:"img-stack-100 img-stack-opacity-50",attrs:{src:"/shippers/_block_overlay.svg"}})])],1)],1):e._e()],2)]}}])})],1)],1)],1)],1),o("hr")],1)},s=[],r=o("ded3"),l=o.n(r),i=(o("13d5"),o("ac1f"),o("5319"),o("2f62")),n=o("31c4"),p=o("c1dc"),c=o("a87d"),d=o("16f1"),u={mixins:[n["a"],p["a"],c["a"],d["a"]],data(){return{pipelineUid:"",openCollectorUid:"",searchFilter:"",columns:[{name:"actions",align:"center",label:"Actions",field:"actions",sortable:!1},{name:"status",align:"center",label:"Suitable",field:"suitable",sortable:!0},{name:"openCollector",align:"center",label:"Open Collector",field:"openCollectorHost",sortable:!0},{name:"installedShippers",align:"center",label:"Installed Shippers",field:e=>e.openCollector?e.openCollector.installedShippers:void 0,sortable:!0},{name:"name",align:"center",label:"Log Source Name",field:"name",sortable:!0},{name:"msgSourceId",align:"center",label:"Log Source ID",field:"msgSourceId",sortable:!0},{name:"hostName",align:"center",label:"Log Source Host",field:"hostName",sortable:!0},{name:"hostId",align:"center",label:"Log Source Host ID",field:"hostId",sortable:!0}],pagination:{sortBy:"status",descending:!0,rowsPerPage:25},collectorLogSourcesLoading:!1,deploymentStatuses:[],unDeployStatuses:[],deploymentStepsNewLogSource:[{uid:"e745e0e6-60f6-4857-8afa-f8ea0663b6c3",name:"Create and drop Beat's configuration in right location",status:"Not started",apiEndpoint:"/oc/UpdateStreamConfigurationForBeat",apiParamNames:["openCollector","beat","stream"]},{uid:"d004f165-a028-4183-8e6d-f64534357c5d",name:"Import JQ Pipeline into Open Collector",status:"Not started",apiEndpoint:"/oc/ImportPipelineForBeat",apiParamNames:["openCollector","beat","stream"]},{uid:"b632b998-cd67-4571-a384-31faf0053d1a",name:"Create Log Source Type",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateLogSourceType",apiParamNames:["uid","name"]},{uid:"7e739d98-d427-4fac-9f63-392e8ccb4c94",name:"Create MPE Rule",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateMpeRule",apiParamNames:["uid","name"]},{uid:"04ff4e8c-de73-419a-a48b-944b01bca836",name:"Create MPE Sub-Rule(s)",status:"To skip",apiEndpoint:"/logrhythmCore/UpdateMpeSubRule",apiParamNames:["uid","SubRuleUid","SubRuleName","Tag1"],specialTag:["runForEachSubRule"]},{uid:"6fba3b49-580b-4ceb-b8be-374fc848fe63",name:"Create Processing Policy",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateProcessingPolicy",apiParamNames:["uid","name","MPEPolicy_Name"]},{uid:"dd1fae83-10af-40ea-bfe9-20ff668d5141",name:"Create Log Source (LS) Virtualisation",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateLogSourceVirtualisationTemplate",apiParamNames:[]},{uid:"857787cd-4ec5-4c06-b044-7aaf37de326f",name:"Create new LS Virtualisation Item and associate it to LS Virtualisation",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateLogSourceVirtualisationTemplateItem",apiParamNames:["uid","name"]},{uid:"5c0a3a9c-6d01-40e6-acb8-b0763a52bba3",name:"Add LS Virtualisation to Open Collector Log Source",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateOpenCollectorLogSourceWithLogSourceVirtualisation",apiParamNames:["uid","OpenCollectorMotherLogSourceID"]}],deploymentStepsExistingLogSource:[{uid:"d1038519-da8b-4580-91a6-8c34b3001327",name:"Update Beat configuration",status:"Not started",apiEndpoint:"/oc/UpdateStreamConfigurationForBeat",apiParamNames:["openCollector","beat","stream"]},{uid:"b0f41342-c758-4453-8381-9be346f25dfe",name:"Re-import JQ Pipeline into Open Collector",status:"Not started",apiEndpoint:"/oc/ImportPipelineForBeat",apiParamNames:["openCollector","beat","stream"]},{uid:"3d0ef0a5-0c65-4b62-a68a-e1422490ffef",name:"Modify MPE Sub-Rule(s)",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateMpeSubRule",apiParamNames:["uid","SubRuleUid","SubRuleName","Tag1","Tag2","Tag3","Tag4","Tag5"]},{uid:"32d0bf3c-9e09-4388-9a68-cec7c8b38529",name:"Modify Processing Policy",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateProcessingPolicy",apiParamNames:["uid","name","MPEPolicy_Name"]},{uid:"72e265cd-9d0d-469c-b1fd-8a319f3971b2",name:"Modify Log Source Virtualisation",status:"Not started",apiEndpoint:"/logrhythmCore/UpdateLogSourceVirtualisationTemplateItem",apiParamNames:["uid","name"]}],unDeploySteps:[{uid:"8276950b-c01b-423e-8ce0-1ed23af6efe4",name:"Delete Beat configuration for Stream",status:"Not started",apiEndpoint:"/oc/DeleteStreamConfigurationForBeat",apiParamNames:["openCollector","beat","stream"]}]}},computed:l()(l()(l()({},Object(i["d"])("mainStore",["openCollectorBeats","loggedInUser","collectionShippersOptions"])),Object(i["c"])("mainStore",["openCollectorLogSources"])),{},{pipeline(){const e=this.pipelines.find((e=>e.uid===this.pipelineUid));return e||{uid:"",name:"",status:"New",primaryOpenCollector:"",fieldsMapping:[],collectionConfig:{}}},deployments(){const e=[];return this.openCollectors.forEach((t=>{t.pipelines&&Array.isArray(t.pipelines)&&t.pipelines.forEach((o=>{o.uid===this.pipelineUid&&e.push({pipelineUid:o.uid,openCollector:t,enabled:o.enabled})}))})),e},tableData(){const e=[];this.openCollectorLogSources.forEach((t=>{let o=!1;this.openCollectors.forEach((a=>{if(t.hostIdentifiers&&Array.isArray(t.hostIdentifiers)&&a.hostname){const s=String(a.hostname).toLowerCase(),r=t.hostIdentifiers.filter((e=>e.value&&String(e.value).toLowerCase()===s));if(r.length){o=!0;const s=t.hostIdentifiers.reduce(((e,t)=>(t.value&&t.value.length&&e.push(t.value),e)),[]),r=this.hasNecessaryShipper(a);e.push({openCollector:a,openCollectorLogSource:t,pipelineUid:this.pipeline.uid,suitable:!!(o&r),openCollectorHost:a&&a.name&&a.hostname?a.name+" ("+a.hostname+")":null,name:t.name,msgSourceId:t.msgSourceID,hostName:t.hostName+" ("+s.join(" / ")+")",hostId:t.hostID,hasNecessaryShipper:r,deploymentStatus:this.deploymentStatuses.find((e=>e&&e.openCollectorUid&&a&&a.uid&&t&&t.msgSourceID&&e.msgSourceId===t.msgSourceID&&e.openCollectorUid===a.uid)),unDeployStatus:this.unDeployStatuses.find((e=>e&&e.openCollectorUid&&a&&a.uid&&t&&t.msgSourceID&&e.msgSourceId===t.msgSourceID&&e.openCollectorUid===a.uid)),alreadyDeployed:this.isAlreadyDeployed(a,this.pipeline.uid)})}}})),o||e.push({openCollector:null,openCollectorLogSource:t,pipelineUid:this.pipeline.uid,suitable:o,openCollectorHost:null,name:t.name,msgSourceId:t.msgSourceID,hostName:t.hostName,hostId:t.hostID,hasNecessaryShipper:!1})}));const t=e.reduce(((e,t)=>(t&&t.openCollector&&t.openCollector.uid&&t.openCollector.uid.length&&e.push(t.openCollector.uid),e)),[]);return this.openCollectors.forEach((o=>{t.includes(o.uid)||e.push({openCollector:o,openCollectorLogSource:null,pipelineUid:this.pipeline.uid,openCollectorHost:o&&o.name&&o.hostname?o.name+" ("+o.hostname+")":null,suitable:!1,hasNecessaryShipper:this.hasNecessaryShipper(o),alreadyDeployed:this.isAlreadyDeployed(o,this.pipeline.uid)})})),e},beatName(){return this.pipeline&&this.pipeline.collectionConfig&&this.pipeline.collectionConfig.collectionShipper?this.pipeline.collectionConfig.collectionShipper:""},beatConfigForStream(){const e=this.collectionShippersOptions.find((e=>e.value&&e.value===this.beatName));return this.pipeline&&this.pipeline.collectionConfig&&this.pipeline.collectionConfig.collectionShipper&&e?this.collectionConfigOutputFor(e.outputFormat,this.pipeline.collectionConfig):""}}),methods:l()(l()({},Object(i["b"])("mainStore",["getOpenCollectorLogSources","callDeploymentStepApi","upsertOpenCollector"])),{},{loadOpenCollectorLogSources(){this.getOpenCollectorLogSources({loadingVariableName:"collectorLogSourcesLoading",caller:this})},loadOpenCollectorsPipelinesAndLogSources(){this.loadOpenCollectorsAndPipelines(),this.loadOpenCollectorLogSources()},selectOpenCollectorForDeployment(e){const t=!0;this.kickOffDeployment(e,this.deploymentStepsNewLogSource,this.deploymentStatuses,t)},selectOpenCollectorForUndeploy(e){const t=!1;this.kickOffDeployment(e,this.unDeploySteps,this.unDeployStatuses,t)},kickOffDeployment(e,t,o,a){if(e&&e.openCollector&&e.openCollector.uid&&e.openCollector.uid.length&&e.msgSourceId){const s=o.find((t=>t.openCollectorUid===e.openCollector.uid&&t.msgSourceId===e.msgSourceId));s?(s.ongoing=!0,s.completed=!1,s.isDeployment=a,o=JSON.parse(JSON.stringify(o))):o.push({openCollectorUid:e.openCollector.uid,msgSourceId:e.msgSourceId,ongoing:!0,completed:!1,isDeployment:a,logs:[],steps:JSON.parse(JSON.stringify(t))}),setTimeout(this.runDeploymentStep,500,this,o,e,0)}},deploymentProgressFor(e,t){const o=e&&e[t]&&e[t].steps&&e[t].steps.length?e[t].steps.length:1,a=e&&e[t]&&e[t].steps&&e[t].steps.length?e[t].steps.filter((e=>e.status&&e.status.length&&"completed"===e.status.toLowerCase())).length:0,s=a/o*100,r=e&&e[t]&&e[t].steps&&e[t].steps.length?e[t].steps.filter((e=>e.status&&e.status.length&&"skipped"===e.status.toLowerCase())).length:0,l=r/o*100,i=e&&e[t]&&e[t].steps&&e[t].steps.length?e[t].steps.filter((e=>e.status&&e.status.length&&"error"===e.status.toLowerCase())).length:0,n=i/o*100;return{done:s+l,completed:s,skipped:l,error:n,completedAbsolute:a,skippedAbsolute:r,errorAbsolute:i}},hasNecessaryShipper(e){const t=this.pipeline&&this.pipeline.collectionConfig&&this.pipeline.collectionConfig.collectionShipper&&this.pipeline.collectionConfig.collectionShipper.length?this.pipeline.collectionConfig.collectionShipper.toLowerCase():null;return!!((e&&e.installedShippers&&Array.isArray(e.installedShippers)&&e.installedShippers.filter((e=>e.name&&e.name.toLowerCase()===t)).length)|this.openCollectorBeats.filter((e=>e.value&&e.value.toLowerCase()===t)).length)},runDeploymentStep(e,t,o,a){if(o&&o.openCollector&&o.openCollector.uid&&o.openCollector.uid.length&&o.msgSourceId){const s=t.find((e=>e.openCollectorUid===o.openCollector.uid&&e.msgSourceId===o.msgSourceId));if(s&&s.steps&&s.steps.length>a){const r=s.steps[a];let l=!1;if(l|=r.status&&"To skip"===r.status,l)r.status="Skipped",setTimeout(e.runDeploymentStep,150,e,t,o,a+1);else{r.status="On-going";const l=r.apiEndpoint&&r.apiEndpoint.length?r.apiEndpoint:"/test/doesNotExist/andShouldReturnAnError",i={uid:e&&e.pipeline&&e.pipeline.uid&&e.pipeline.uid.length?e.pipeline.uid:void 0,name:e&&e.pipeline&&e.pipeline.name&&e.pipeline.name.length?e.pipeline.name:void 0,MPEPolicy_Name:"LogRhythm Default",OpenCollectorMotherLogSourceID:s.msgSourceId,openCollector:{uid:s.openCollectorUid&&s.openCollectorUid.length?s.openCollectorUid:void 0},beat:{name:e.beatName,config:[this.beatConfigForStream]},stream:{uid:e&&e.pipeline&&e.pipeline.uid&&e.pipeline.uid.length?e.pipeline.uid:void 0,name:e&&e.pipeline&&e.pipeline.name&&e.pipeline.name.length?e.pipeline.name:void 0,sanitisedName:e&&e.pipeline&&e.pipeline.name&&e.pipeline.name.length?e.pipeline.name.replace(/[^a-zA-Z0-9_]/g,"_").toLowerCase():void 0,jqFilter:e&&e.pipeline&&e.pipeline.uid&&e.pipeline.uid.length&&e.pipeline.name&&e.pipeline.name.length&&e.beatName&&e.beatName.length&&e.loggedInUser&&e.loggedInUser.length?this.buildJqFilterFromParams(e.pipeline.uid,e.pipeline.name,e.beatName,e.loggedInUser):void 0,jqTransform:e&&e.pipeline&&e.pipeline.uid&&e.pipeline.uid.length&&e.pipeline.name&&e.pipeline.name.length&&e.beatName&&e.beatName.length&&e.loggedInUser&&e.loggedInUser.length?this.buildJqTransformFromParams(e.pipeline.uid,e.pipeline.name,e.beatName,e.loggedInUser,!1,e.pipeline.fieldsMapping||[]):void 0}},n=r.apiParamNames&&r.apiParamNames.length?r.apiParamNames.reduce(((e,t)=>(e[t]=i&&i[t]?i[t]:void 0,e)),{}):void 0;e.callDeploymentStepApi({apiUrl:l,caller:e,apiCallParams:n,dataLabel:`Step name: ${r.name}`,onSuccessCallBack:(s,l=r,i=o,n=a,p=e,c=t)=>{setTimeout((()=>{l.status="Completed",p.runDeploymentStep(p,c,i,n+1)}),100+Math.floor(600*Math.random()))},onErrorCallBack:(e,t=r,o=s)=>{t.status="Error",o.ongoing=!1,o.completed=!0,o.error=!0,o.errorMessage=e&&e.messageForLogAndPopup?e.messageForLogAndPopup:"",o.errorMessage+=e&&e.captionForLogAndPopup?` // ${e.captionForLogAndPopup}`:"",o&&o.steps&&Array.isArray(o.steps)&&o.steps.filter((e=>e.status&&("not started"===e.status.toLowerCase()||"to skip"===e.status.toLowerCase()))).forEach((e=>{e.status="Cancelled"}))},debug:!1})}}else s.ongoing=!1,s.completed=!0,console.log("🏁 We have run out of Steps. Job done."),!0===s.completed&&!0!==s.error&&(console.log("💾 Saving Deployment."),setTimeout((()=>{e.updateAndPersistDeployment(o,s.isDeployment)}),100+Math.floor(250*Math.random())))}},updateAndPersistDeployment(e,t=!0){if(e&&e.openCollector&&e.openCollector.uid&&e.openCollector.uid.length&&e.pipelineUid&&e.pipelineUid.length){const o=JSON.parse(JSON.stringify(this.openCollectors.find((t=>t.uid===e.openCollector.uid))));if(o&&o.uid&&o.uid.length){o.pipelines||(o.pipelines=[]);let a=!1;o.pipelines.filter((t=>t.uid===e.pipelineUid)).forEach((e=>{e.enabled=t,a=!0})),a||o.pipelines.push({enabled:t,uid:e.pipelineUid}),this.upsertOpenCollector({openCollector:o,pushToApi:!0,caller:this})}}},isAlreadyDeployed(e,t){return!!(e&&e.pipelines&&Array.isArray(e.pipelines)&&t&&t.length)&&!!(e.pipelines.filter((e=>!0===e.enabled&&e.uid===t)).length>0)}}),mounted(){0===this.openCollectorLogSources.length&&this.loadOpenCollectorLogSources(),this.$route.params.pipelineUid&&this.$route.params.pipelineUid.length&&this.pipelineUid!==this.$route.params.pipelineUid&&(this.pipelineUid=this.$route.params.pipelineUid),this.$route.params.openCollectorUid&&this.$route.params.openCollectorUid.length&&this.openCollectorUid!==this.$route.params.openCollectorUid&&(this.openCollectorUid=this.$route.params.openCollectorUid)}},m=u,g=(o("b906"),o("2877")),h=o("9989"),_=o("e359"),f=o("b498"),y=o("65c6"),S=o("9c40"),b=o("eb85"),C=o("6ac5"),v=o("f09f"),w=o("a370"),q=o("eaac"),E=o("27f9"),k=o("0016"),O=o("05c0"),P=o("db86"),D=o("58ea"),N=o("66e5"),L=o("4074"),Z=o("0170"),U=o("8380"),M=o("cb32"),A=o("58a81"),F=o("eebe"),I=o.n(F),z=Object(g["a"])(m,a,s,!1,null,"327e4466",null);t["default"]=z.exports;I()(z,"components",{QPage:h["a"],QHeader:_["a"],QColor:f["a"],QToolbar:y["a"],QBtn:S["a"],QSeparator:b["a"],QToolbarTitle:C["a"],QCard:v["a"],QCardSection:w["a"],QTable:q["a"],QInput:E["a"],QIcon:k["a"],QTooltip:O["a"],QTd:P["a"],QCircularProgress:D["a"],QItem:N["a"],QItemSection:L["a"],QItemLabel:Z["a"],QSpinnerDots:U["a"],QAvatar:M["a"],QBadge:A["a"]})},"16f1":function(e,t,o){"use strict";var a=o("ded3"),s=o.n(a),r=(o("ac1f"),o("5319"),o("2f62"));t["a"]={computed:s()({},Object(r["d"])("mainStore",["jqFilterTemplate","jqTransformTemplate"])),methods:{buildJqFilterFromParams(e,t,o,a){let s="";return s=this.jqFilterTemplate.replace(/{{EZ_generation_timestamp}}/g,(new Date).toISOString()).replace(/{{EZ_generation_user}}/g,a).replace(/{{EZ_stream_name_placeholder}}/g,t).replace(/{{EZ_stream_id_placeholder}}/g,e).replace(/{{EZ_compact_stream_name_placeholder}}/g,String(t).replace(/[^a-zA-Z0-9]/g,"_").toLowerCase()).replace(/{{EZ_beat_name_placeholder}}/g,o),s},buildJqTransformFromParams(e,t,o,a,s,r){let l="";l=this.jqTransformTemplate.replace(/{{EZ_generation_timestamp}}/g,(new Date).toISOString()).replace(/{{EZ_generation_user}}/g,a).replace(/{{EZ_stream_name_placeholder}}/g,t).replace(/{{EZ_stream_id_placeholder}}/g,e).replace(/{{EZ_compact_stream_name_placeholder}}/g,String(t).replace(/[^a-zA-Z0-9]/g,"_").toLowerCase()).replace(/{{EZ_beat_name_placeholder}}/g,o);let i=". | tojson",n=".input";s&&(i=".message",n=".message");const p=[],c=[],d='        "{{EZ_flatten_array_id}}": flatten_array({{EZ_message_root}}{{EZ_flatten_array_field_path}}),',u="    add_field(.{{EZ_flatten_array_name_placeholder}}{{EZ_flatten_array_field_doted_path_placeholder}}; .output.{{EZ_mdi_field_placeholder}}) |",m=[],g="    add_field(({{EZ_message_placeholder}}{{EZ_field_doted_path_placeholder}}{{EZ_date_parser_placeholder}}); .output.normal_msg_date) |",h=" | fromdate",_=[],f="    add_field({{EZ_message_placeholder}}{{EZ_field_doted_path_placeholder}}; .output.{{EZ_mdi_field_placeholder}}) |",y=[],S="    add_field({{EZ_message_placeholder}}{{EZ_field_doted_path_placeholder}}; .output.{{EZ_mdi_tag_placeholder}}) |",b=[];let C="";return s&&(C=".message | fromjson | "),r.forEach((e=>{e.modifiers&&e.modifiers.length&&e.modifiers.forEach((t=>{if("Fan out"===t){const t="flatten_array_"+e.name.replace(/[^a-zA-Z0-9]/g,"_");p.push(e.name),c.push(d.replace(/{{EZ_flatten_array_id}}/g,t).replace(/{{EZ_message_root}}/g,C).replace(/{{EZ_flatten_array_field_path}}/g,e.name))}else"Sub Rule selector"===t?b.push(S.replace(/{{EZ_message_placeholder}}/g,n).replace(/{{EZ_field_doted_path_placeholder}}/g,e.name).replace(/{{EZ_mdi_tag_placeholder}}/g,"tag1")):"Sub Rule qualifier 1"===t?b.push(S.replace(/{{EZ_message_placeholder}}/g,n).replace(/{{EZ_field_doted_path_placeholder}}/g,e.name).replace(/{{EZ_mdi_tag_placeholder}}/g,"tag2")):"Sub Rule qualifier 2"===t?b.push(S.replace(/{{EZ_message_placeholder}}/g,n).replace(/{{EZ_field_doted_path_placeholder}}/g,e.name).replace(/{{EZ_mdi_tag_placeholder}}/g,"tag3")):"Sub Rule qualifier 3"===t?b.push(S.replace(/{{EZ_message_placeholder}}/g,n).replace(/{{EZ_field_doted_path_placeholder}}/g,e.name).replace(/{{EZ_mdi_tag_placeholder}}/g,"tag4")):"Sub Rule qualifier 4"===t&&b.push(S.replace(/{{EZ_message_placeholder}}/g,n).replace(/{{EZ_field_doted_path_placeholder}}/g,e.name).replace(/{{EZ_mdi_tag_placeholder}}/g,"tag5"))}))})),r.forEach((e=>{let t=!1,o="";(e.mappedField&&e.mappedField.length||e.modifiers&&e.modifiers.length)&&p.forEach((a=>{e.name&&0===e.name.indexOf(a)&&a.length>o.length&&(o=a,t=!0)})),e.mappedField&&e.mappedField.length&&(t?m.push(u.replace(/{{EZ_flatten_array_name_placeholder}}/g,"flatten_array_"+o.replace(/[^a-zA-Z0-9]/g,"_")).replace(/{{EZ_flatten_array_field_doted_path_placeholder}}/g,e.name.replace(o,"").replace(/\[\d+\]/,"")).replace(/{{EZ_mdi_field_placeholder}}/g,e.mappedField)):y.push(f.replace(/{{EZ_message_placeholder}}/g,n).replace(/{{EZ_field_doted_path_placeholder}}/g,e.name).replace(/{{EZ_mdi_field_placeholder}}/g,e.mappedField))),e.modifiers&&e.modifiers.length&&e.modifiers.forEach((a=>{if("Timestamp selector - ISO8601 format"===a||"Timestamp selector - Unix Timestamp format"===a){let s="";"Timestamp selector - ISO8601 format"===a&&(s=h),t?_.push(g.replace(/{{EZ_message_placeholder}}/g,"flatten_array_"+o.replace(/[^a-zA-Z0-9]/g,"_")).replace(/{{EZ_field_doted_path_placeholder}}/g,e.name.replace(o,"").replace(/\[\d+\]/,"")).replace(/{{EZ_date_parser_placeholder}}/g,s)):_.push(g.replace(/{{EZ_message_placeholder}}/g,n).replace(/{{EZ_field_doted_path_placeholder}}/g,e.name).replace(/{{EZ_date_parser_placeholder}}/g,s))}}))})),l=l.replace(/{{EZ_flatten_array_placeholder}}/g,c.join("\n")).replace(/{{EZ_original_message_placeholder}}/g,i).replace(/{{EZ_timestamp__add_field_placeholder}}/g,_.join("\n")).replace(/{{EZ_flatten_array__add_field_placeholder}}/g,m.join("\n")).replace(/{{EZ_add_field_placeholder}}/g,y.join("\n")).replace(/{{EZ_sub_rules__add_field_placeholder}}/g,b.join("\n")),l}}}},"2fab":function(e,t,o){},"31c4":function(e,t,o){"use strict";var a=o("ded3"),s=o.n(a),r=o("2f62");t["a"]={data(){return{pipelinesLoading:!1,collectorsLoading:!1}},computed:s()(s()({},Object(r["c"])("mainStore",["openCollectors","pipelines"])),{},{dataLoading(){return this.collectorsLoading||this.pipelinesLoading}}),methods:s()(s()({},Object(r["b"])("mainStore",["getOpenCollectors","getPipelines"])),{},{loadOpenCollectors(){this.getOpenCollectors({loadingVariableName:"collectorsLoading",caller:this})},loadPipelines(){this.getPipelines({loadingVariableName:"pipelinesLoading",caller:this})},loadOpenCollectorsAndPipelines(){this.loadOpenCollectors(),this.loadPipelines()}}),mounted(){0===this.openCollectors.length&&this.loadOpenCollectors(),this.pipelines&&0===this.pipelines.length&&this.loadPipelines()}}},"5d0b":function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));var a=o("ded3"),s=o.n(a),r=(o("ddb0"),o("ac1f"),o("651e"));function l(e,t,o){if(e&&"object"===typeof e&&t&&Array.isArray(t)&&o&&"object"===typeof o)for(const[a,s]of Object.entries(e)){let e,r="",l="";const i=String(s).split("👉");i&&i.length>=2&&(r=i.shift(),l=i.join("👉"));const n=String(l).split("👈___default___");n&&n.length>=2&&(e=n.pop(),l=n.join("👈___default___"));const p=t.find((e=>e.tag===r));if(r=p&&p.transform&&p.transform.length?p.transform:"","🚫"===e&&(e=void 0),null!==e&&""!==e&&+e===+e&&(e=Number(e)),a&&a.length&&r&&r.length){const t={};Object.defineProperty(t,r,{enumerable:!0,value:{target:a,value:l,default:e}}),"delete"===r&&(delete t[r].value,delete t[r].default),o.push(t)}}}function i(e){try{const a=Object.assign({},e);let i=a.collectionMethod||"";if("syslog_udp"===i&&(i="syslog"),"syslog_tcp"===i&&(i="syslog"),void 0===a.request&&(a.request={}),void 0===a.request.transforms&&(a.request.transforms=[]),void 0===a.response&&(a.response={}),void 0===a.response.transforms&&(a.response.transforms=[]),void 0===a.response.pagination&&(a.response.pagination=[]),a.EZ__Auth_Basic__enable&&!0===a.EZ__Auth_Basic__enable){let e;try{e=btoa((a.EZ__Auth_Basic__username||"")+":"+(a.EZ__Auth_Basic__password||""))}catch(t){e=btoa(":")}a.request.transforms.push({set:{target:"header.Authorization",value:e}})}if(a["request.body"]&&a["request.body"].length)try{a["request.body"]=JSON.parse(a["request.body"])}catch(o){delete a["request.body"]}const n=[{tag:"___set___",transform:"set"},{tag:"___append___",transform:"append"},{tag:"___delete___",transform:"delete"}];if(l(a["request.transforms"],n,a.request.transforms),l(a["response.transforms"],n,a.response.transforms),l(a["response.pagination"],n,a.response.pagination),a.cursor){const e={};for(const[t,o]of Object.entries(a.cursor)){let a,s=o;const r=String(s).split("👈___default___");r&&r.length>=2&&(a=r.pop(),s=r.join("👈___default___")),"🚫"===a&&(a=void 0),null!==a&&""!==a&&+a===+a&&(a=Number(a));const l={};Object.defineProperty(l,t,{enumerable:!0,value:{value:s,default:a}}),Object.assign(e,l)}a.cursor=e}delete a.collectionShipper,delete a.collectionMethod,delete a.EZ__Auth_Basic__enable,delete a.EZ__Auth_Basic__username,delete a.EZ__Auth_Basic__password,delete a["request.transforms"],delete a["response.transforms"],delete a["response.pagination"],0===a.request.transforms.length&&delete a.request.transforms,0===a.response.transforms.length&&delete a.response.transforms,0===a.response.pagination.length&&delete a.response.pagination,0===Object.keys(a.request).length&&delete a.request,0===Object.keys(a.response).length&&delete a.response;const p=JSON.parse(JSON.stringify(a,((e,t)=>null===t?void 0:t))),c="log"===i||"syslog"===i||"httpjson"===i;return Object(r["dump"])(c?[s()({type:i},p)]:{[i]:p})}catch(a){return a}}},a87d:function(e,t,o){"use strict";t["a"]={computed:{darkMode:{get(){return this.$q.dark.isActive},set(e){this.$q.dark.set(e),localStorage.setItem("settings.darkMode",e)}}}}},b906:function(e,t,o){"use strict";o("2fab")},c1dc:function(e,t,o){"use strict";var a=o("ded3"),s=o.n(a),r=o("2f62"),l=o("5d0b");function i(e){try{const t=Object.assign({},e),o=t.collectionMethod||"";delete t.collectionShipper,delete t.collectionMethod;const a=JSON.parse(JSON.stringify(t,((e,t)=>null===t?void 0:t)));return JSON.stringify(s()({log_source_type:o},a),null,"  ")}catch(t){return t}}t["a"]={computed:s()({},Object(r["d"])("mainStore",["collectionShippersOptions","openCollectorBeats"])),methods:{collectionShipperDetails(e){const t={value:"unknown",label:"Unknown or not set",icon:"unknown",outputFormat:"json"};if(e&&e.length){const o=e.toLowerCase();return this.collectionShippersOptions.find((e=>e.value&&e.value.toLowerCase()===o))||this.collectionShippersOptions.find((e=>e.label&&e.label.toLowerCase()===o))||this.openCollectorBeats.find((e=>e.label&&e.label.toLowerCase()===o))||t}return t},collectionConfigOutputFor(e,t){return"yaml"===e||"yml"===e?Object(l["a"])(t):"json"===e?i(t):""}}}}}]);