"use strict";(self.webpackChunkvt_ui_main=self.webpackChunkvt_ui_main||[]).push([[64098,87960,67173],{32674:(t,e,o)=>{o(9891);var r=o(48704),i=o(16645),s=o(72970),l=o(45241),n=o(95688),a=o(71012),c=o(21302);let d,b,h,p,u,m,g,f,v,y=t=>t;function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var r,i,s,l,n=[],a=!0,c=!1;try{if(s=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;a=!1}else for(;!(a=(r=s.call(o)).done)&&(n.push(r.value),n.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{if(!a&&null!=o.return&&(l=o.return(),Object(l)!==l))return}finally{if(c)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?k(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o=0;n--)(i=t[n])&&(l=(s<3?i(l):s>3?i(e,o,l):i(e,o))||l);return s>3&&l&&Object.defineProperty(e,o,l),l};const $={url:"Url",file:"File",ip_address:"IP Address",domain:"Domain",collection:"Collection"};let R=class extends a.D{constructor(){super(...arguments),this.relatedFromList=[],this.header=!1}static get styles(){return(0,r.unsafeCSS)(c.A)}get countRelatedFrom(){return this.totalRelatedFrom||this.relatedFromList.length}render(){return(0,r.html)(d||(d=y`
${0}
`),this.header?"header":"",this.renderRelatedFrom())}renderRelatedFromNames(){const t={};return this.relatedFromList.forEach((e=>{const o=e.type;t[o]=t[o]||[],t[o].push(e)})),(0,r.html)(b||(b=y`${0}${0}`),this.countRelatedFrom>this.relatedFromList.length?(0,r.html)(h||(h=y`
Showing first ${0} entities
`),this.relatedFromList.length):"",Object.entries(t).map((t=>{let e=w(t,2),o=e[0],i=e[1];return(0,r.html)(p||(p=y`
${0}
${0}
`),$[o],null==i?void 0:i.map((t=>(0,r.html)(u||(u=y`
${0}
`),this.getRelatedName(t)))))})))}getRelatedName(t){var e,o;switch(t.type){case"collection":return null==t||null===(e=t.attributes)||void 0===e?void 0:e.name;case"url":return null==t||null===(o=t.context_attributes)||void 0===o?void 0:o.url;default:return t.id}}renderRelatedFrom(){const t=this.relatedFromList[0];return(0,r.html)(m||(m=y` ${0} ${0} `),this.countRelatedFrom&&this.countRelatedFrom<=1?(0,r.html)(g||(g=y`
${0}
`),n.Z8.getRedirectUrl(t.type,t.id),this.getRelatedName(t),l.KK.showTooltip,this.getRelatedName(t)):(0,r.html)(f||(f=y``)),this.countRelatedFrom&&this.countRelatedFrom>1?this.renderRelatedFromList():"")}renderRelatedFromList(){return(0,r.html)(v||(v=y`
+${0} ${0} Sources ${0}
`),this.countRelatedFrom,s.globeIcon,this.renderRelatedFromNames())}};x([(0,i.property)({type:Array})],R.prototype,"relatedFromList",void 0),x([(0,i.property)({type:Number})],R.prototype,"totalRelatedFrom",void 0),x([(0,i.property)({type:Boolean})],R.prototype,"header",void 0),R=x([(0,i.customElement)("vt-ui-related-from")],R)},92747:(t,e,o)=>{o.d(e,{F$:()=>n,hN:()=>s,q_:()=>l});var r=o(95688),i=o(44052);const s={"software-toolkit":"The IoCs contained in this collection are software Open Source, commercial or cybercrime tool that can be used for good and bad purposes. See the term Software by Mitre ATT&CK.",partner:"This collection has been created by trusted users and organizations",private:"This collection is not publicly available, only the users and groups with whom it is explicitly shared will be able to see it"};var l;!function(t){t.softwareToolkit="software-toolkit"}(l||(l={}));class n{static formatTags(t){return t.map((t=>{var e;return{name:t,href:null!==(e=i.NU.currentUser)&&void 0!==e&&e.vtiAccess?r.Z8.getSearchUrl({entity:"collection",tag:t}):void 0,tooltip:s[t]}}))}}},72970:(t,e,o)=>{o.r(e),o.d(e,{globeIcon:()=>r.globeIcon});var r=o(15323)},87960:(t,e,o)=>{o.r(e);var r=o(22894),i=o(56870),s=(o(9891),o(48704)),l=o(16645),n=o(62832),a=o(92747),c=o(15323),d=o(96987),b=o(45241),h=o(95688),p=o(59350),u=o(38544);let m,g,f,v,y,w,k,x,$,R,S=t=>t;var _=function(t,e,o,r){var i,s=arguments.length,l=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,r);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(l=(s<3?i(l):s>3?i(e,o,l):i(e,o))||l);return s>3&&l&&Object.defineProperty(e,o,l),l};const C=[{key:"files_count",name:"Files"},{key:"urls_count",name:"URLs"},{key:"domains_count",name:"Domains"},{key:"ip_addresses_count",name:"IPs"},{key:"references_count",name:"References"}];let A=(m=class extends s.LitElement{render(){var t,e,o,r,i,l,n,a,u,m,x,$,R,_,A,F,T,O,L,I;const j=null===(t=this.order)||void 0===t?void 0:t.startsWith("creation_day");return(0,s.html)(g||(g=S`
${0} ${0}
${0} ${0} ${0} by ${0}
${0} ${0} ${0} ${0}
${0}
`),h.Z8.getRedirectUrl("collection",null===(e=this.collection)||void 0===e?void 0:e.id),this.requestReportOpening,null!==(o=this.collection)&&void 0!==o&&null!==(o=o.top_icon_md5)&&void 0!==o&&o.length?(0,s.html)(f||(f=S` ${0} `),null===(r=this.collection)||void 0===r?void 0:r.top_icon_md5.slice(0,3).map((t=>(0,s.html)(v||(v=S` `),t)))):(0,s.html)(y||(y=S` ${0} `),c.collectionIcon),null!==(i=this.collection)&&void 0!==i&&i.subscription_preferences?(0,s.html)(w||(w=S` Following ${0} `),c.bellFilledIcon):s.nothing,p.q_.isOwnedCollectionUser(null===(l=this.collection)||void 0===l||null===(l=l.owner)||void 0===l?void 0:l.id)?(0,s.html)(k||(k=S` `),p.q_.getOwnedCollectionSummary(null===(n=this.collection)||void 0===n||null===(n=n.owner)||void 0===n?void 0:n.id),b.KK.showTooltip,h.Z8.getRedirectUrl("threatLandscape",`collections?filter=owner:${null===(a=this.collection)||void 0===a||null===(a=a.owner)||void 0===a?void 0:a.id}`),!1,null===(u=this.collection)||void 0===u||null===(u=u.owner)||void 0===u?void 0:u.id):s.nothing,h.Z8.getRedirectUrl("collection",null===(m=this.collection)||void 0===m?void 0:m.id),this.requestReportOpening,null===(x=this.collection)||void 0===x?void 0:x.name,j?"Created":"Updated",j?null===($=this.collection)||void 0===$?void 0:$.creation_date:null===(R=this.collection)||void 0===R?void 0:R.last_modification_date,j?d.w9.getReportsDateFormat(null===(_=this.collection)||void 0===_?void 0:_.creation_date):d.w9.getReportsDateFormat(null===(A=this.collection)||void 0===A?void 0:A.last_modification_date),b.KK.showTooltip,h.Z8.getRedirectUrl("user",null===(F=this.collection)||void 0===F||null===(F=F.owner)||void 0===F?void 0:F.id),(()=>this.dispatchEvent(new CustomEvent("user-details-requested"))),null===(T=this.collection)||void 0===T||null===(T=T.owner)||void 0===T?void 0:T.id,null!==(O=this.collection)&&void 0!==O&&O.private?this.getTag("private",!0):s.nothing,this.isTrusted()?this.getTag("partner"):s.nothing,this.renderTags(null===(L=this.collection)||void 0===L?void 0:L.tags),null===(I=this.collection)||void 0===I?void 0:I.description,C.map((t=>{if(this.collection)return this.renderStat(this.collection[t.key],t.name)})))}isTrusted(){var t;return"Partner"===(null===(t=this.collection)||void 0===t?void 0:t.origin)}renderStat(t,e){return t?(0,s.html)(x||(x=S`
${0}: ${0}
`),e,d.w9.humanizeCount(t||0)):s.nothing}requestReportOpening(t){this.collection&&(t.stopPropagation(),t.preventDefault(),r.h4.collector.collect(i.JU.COLLECTION_CARD,i._B.SELECT_COLLECTION),b.KK.showInDrawer(this,"collection",this.collection.id))}getTag(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,s.html)($||($=S` ${0} `),(0,n.classMap)({badge:!0,"rounded-pill":!0,"bg-info-alt":!e,"text-info-alt":!e,"bg-warning-alt":e,"text-warning-alt":e}),a.hN[t],b.KK.showTooltip,t)}renderTags(t){const e=["software-toolkit"],o=null==t?void 0:t.filter((t=>e.includes(t)));if(null!=o&&o.length)return(0,s.html)(R||(R=S` ${0} `),null==o?void 0:o.map((t=>this.getTag(t))))}},m.styles=(0,s.unsafeCSS)(u.A),m);_([(0,l.property)({type:Object})],A.prototype,"collection",void 0),_([(0,l.property)()],A.prototype,"order",void 0),A=_([(0,l.customElement)("collection-row-summary")],A),e.default=A},64098:(t,e,o)=>{o.r(e),o.d(e,{InsightsCollectionTable:()=>w});var r=o(48704),i=o(16645),s=(o(32674),o(15323)),l=o(45241),n=o(20354),a=(o(87960),o(45694));o(26928);let c,d,b,h,p,u,m,g,f,v=t=>t;var y=function(t,e,o,r){var i,s=arguments.length,l=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,r);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(l=(s<3?i(l):s>3?i(e,o,l):i(e,o))||l);return s>3&&l&&Object.defineProperty(e,o,l),l};let w=(c=class extends r.LitElement{constructor(){super(...arguments),this.data=[],this.selection=(0,n.Ll)(this),this.selectable=!1,this.headless=!1,this.loading=!1}setSelectedAll(t){this.selection.setSelectedAll(t)}render(){var t,e;return(0,r.html)(d||(d=v` ${0} ${0} ${0}
`),this.headless?r.nothing:(0,r.html)(b||(b=v`
${0} Summary
${0} Activity `),this.selectable?(0,r.html)(h||(h=v` `),this.selection.isAllSelected,!this.selection.isAllSelected&&!this.selection.isAllUnselected,l.KK.showTooltip,this.selection.selectAllCheckboxClicked,this.selection.invertSelection,this.selection.isAllUnselected,s.arrowRightArrowLeftIcon):r.nothing,this.showSourceColumn(this.data)?(0,r.html)(p||(p=v` Overlapping IoCs `)):r.nothing),!this.loading||null!==(t=this.data)&&void 0!==t&&t.length?r.nothing:[...new Array(5)].map((()=>(0,r.html)(u||(u=v` `)))),null===(e=this.data)||void 0===e?void 0:e.map((t=>{var e,o;return(0,r.html)(m||(m=v`
${0}
${0} `),this.selectable?(0,r.html)(g||(g=v` `),t.id,this.selection.singleSelectCheckboxClicked,this.selection.isSelected(t.id)):r.nothing,this.order,t,this.showSourceColumn(this.data)?(0,r.html)(f||(f=v` `),null===(e=t.context_attributes)||void 0===e?void 0:e.count,null===(o=t.context_attributes)||void 0===o?void 0:o.related_from):r.nothing,null==t?void 0:t.recent_activity_summary,150,50,"Lookups and submissions of IoCs tied to this collection",l.KK.showTooltip)})))}showSourceColumn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some((t=>{var e;return null===(e=t.context_attributes)||void 0===e||null===(e=e.related_from)||void 0===e?void 0:e.length}))}},c.styles=(0,r.unsafeCSS)(a.A),c);y([(0,i.property)({type:Array})],w.prototype,"data",void 0),y([(0,i.property)({type:Boolean})],w.prototype,"selectable",void 0),y([(0,i.property)({type:Boolean})],w.prototype,"headless",void 0),y([(0,i.property)()],w.prototype,"order",void 0),y([(0,i.property)({type:Boolean})],w.prototype,"loading",void 0),w=y([(0,i.customElement)("insights-collection-table")],w)},21302:(t,e,o)=>{var r=o(89547),i=o.n(r),s=o(38532),l=o.n(s)()(i());l.push([t.id,'/*!\n * Bootstrap v5.3.2 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */:root{--bs-blue: #0b4dda;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #000000;--bs-red: #c52420;--bs-orange: #e57300;--bs-yellow: #fce967;--bs-green: #39ac4c;--bs-teal: #20c997;--bs-cyan: #287bb5;--bs-black: #000;--bs-white: #fff;--bs-gray: #666666;--bs-gray-dark: #333333;--bs-gray-100: #f9f9f9;--bs-gray-200: #f2f2f2;--bs-gray-300: #e6e6e6;--bs-gray-400: #cccccc;--bs-gray-500: #b3b3b3;--bs-gray-600: #666666;--bs-gray-700: #4d4d4d;--bs-gray-800: #333333;--bs-gray-900: #1a1a1a;--bs-primary: #0b4dda;--bs-success: #39ac4c;--bs-info: #007be6;--bs-warning: #e57300;--bs-danger: #c52420;--bs-primary-rgb: 11, 77, 218;--bs-success-rgb: 57, 172, 76;--bs-info-rgb: 0, 123, 230;--bs-warning-rgb: 229, 115, 0;--bs-danger-rgb: 197, 36, 32;--bs-primary-text-emphasis: #062b79;--bs-secondary-text-emphasis: #292929;--bs-success-text-emphasis: #20602a;--bs-info-text-emphasis: #004480;--bs-warning-text-emphasis: #804000;--bs-danger-text-emphasis: #6d1412;--bs-light-text-emphasis: #4d4d4d;--bs-dark-text-emphasis: #4d4d4d;--bs-primary-bg-subtle: #cfddfc;--bs-secondary-bg-subtle: #e0e0e0;--bs-success-bg-subtle: #ecf9ee;--bs-info-bg-subtle: #e5f3ff;--bs-warning-bg-subtle: #fff2e5;--bs-danger-bg-subtle: #fae1e0;--bs-light-bg-subtle: #fcfcfc;--bs-dark-bg-subtle: #cccccc;--bs-primary-border-subtle: #9db8f0;--bs-secondary-border-subtle: #c2c2c2;--bs-success-border-subtle: #b0deb7;--bs-info-border-subtle: #99caf5;--bs-warning-border-subtle: #f5c799;--bs-danger-border-subtle: #e8a7a6;--bs-light-border-subtle: #f2f2f2;--bs-dark-border-subtle: #b3b3b3;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: "Source Sans Pro", Roboto, RobotoDraft, Helvetica, Arial, sans-serif;--bs-font-monospace: "Source Code Pro", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #20242c;--bs-body-color-rgb: 32, 36, 44;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: #363c49;--bs-secondary-color-rgb: 54, 60, 73;--bs-secondary-bg: #f9fafb;--bs-secondary-bg-rgb: 249, 250, 251;--bs-tertiary-color: #626c84;--bs-tertiary-color-rgb: 98, 108, 132;--bs-tertiary-bg: #eceef4;--bs-tertiary-bg-rgb: 236, 238, 244;--bs-heading-color: inherit;--bs-link-color: #20242c;--bs-link-color-rgb: 32, 36, 44;--bs-link-decoration: none;--bs-link-hover-color: #0b4dda;--bs-link-hover-color-rgb: 11, 77, 218;--bs-code-color: #000000;--bs-highlight-color: #20242c;--bs-highlight-bg: #fefbe1;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #e5e9f0;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(11, 77, 218, 0.25);--bs-form-valid-color: #39ac4c;--bs-form-valid-border-color: #39ac4c;--bs-form-invalid-color: #c52420;--bs-form-invalid-border-color: #c52420}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}a{color:rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));text-decoration:none}a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}svg{vertical-align:middle}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}[role=button]{cursor:pointer}button,[type=button]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}:root{--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}@keyframes spinner-border{to{transform:rotate(360deg)}}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}@keyframes placeholder-glow{50%{opacity:.01}}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.d-inline-block{display:inline-block !important}.d-block{display:block !important}.d-flex{display:flex !important}.position-relative{position:relative !important}.w-100{width:100% !important}.mw-100{max-width:100% !important}.justify-content-center{justify-content:center !important}.mb-2{margin-bottom:.5rem !important}.px-2{padding-right:.5rem !important;padding-left:.5rem !important}.gap-2{gap:.5rem !important}.fs-5{font-size:1.25rem !important}.fw-bold{font-weight:600 !important}.text-center{text-align:center !important}html{scrollbar-color:var(--bs-input-border-color) var(--bs-tertiary-bg)}:host{display:block;position:relative}.source{--vt-icon-img-size: 19px;max-width:var(--vt-related-from-width, 120px);min-width:var(--vt-related-from-width, 120px)}.source.header::before{content:"Source";position:absolute;top:calc(-100% - 20px);left:0;right:0;border-radius:0px 0px 10px 10px;background:var(--bs-secondary-bg);font-size:11px;padding:2px 0;text-align:center}',""]),e.A=l},38544:(t,e,o)=>{var r=o(89547),i=o.n(r),s=o(38532),l=o.n(s),n=o(88869),a=l()(i());a.i(n.A),a.push([t.id,":host{display:block;min-width:0}.icons{visibility:var(--vt-x);max-width:6.5rem;min-width:6.5rem}.icons .img-thumbnail{width:3rem;height:3rem;font-size:3rem}.icons img:not(:first-child){margin-left:-2rem}vt-ui-avatar{--vt-ui-avatar-size: 1em}",""]),e.A=a},45694:(t,e,o)=>{var r=o(89547),i=o.n(r),s=o(38532),l=o.n(s),n=o(88869),a=l()(i());a.i(n.A),a.push([t.id,":host([hidden]){display:none}table{border-collapse:separate;border-spacing:0}th{position:sticky;z-index:0;top:var(--insights-collection-table-sticky-top, 0);--bs-table-bg: var(--bs-body-bg)}",""]),e.A=a}}]); //# sourceMappingURL=64098.3377bd9636d2bbe06657.js.map