1"use strict";(self["webpackChunkmy_ine_com"]=self["webpackChunkmy_ine_com"]||[]).push([[6179],{76107:function(e,t,n){n.r(t),n.d(t,{default:function(){return be}});var r=n(95976),l=n(10160),i=n(41203),o={key:3,class:"collection-detail__container"},a={class:"collection-detail__navigation"},c={class:"collection-detail__header"},s={class:"collection-detail__header-title"},u={class:"collection-detail__header-subtitle"},d={key:0,class:"collection-detail__header-subtitle-disclaimer"},f={class:"collection-detail__header-subtitle-details"},b={class:"collection-detail__header-subtitle-learning-area-wrapper"},h={class:"collection-detail__header-description"},p={class:"collection-detail__search"},v={class:"collection-detail__results-label"},g={key:0},y={class:"collection-detail__filter-pills"},k={key:0,class:"collection-detail__content"},m={class:"collection-detail__content-filters-mobile-header"},_={class:"collection-detail__content-labs-list-ul"},L={key:1,class:"collection-detail__content-labs-list-empty"};function S(e,t,n,S,C,w){var A=(0,r.g2)("LockIcon"),F=(0,r.g2)("ActionLoader"),O=(0,r.g2)("ArrowLeftIcon"),E=(0,r.g2)("router-link"),W=(0,r.g2)("PillBadge"),P=(0,r.g2)("SeparatorBorder"),j=(0,r.g2)("Difficulty"),M=(0,r.g2)("LearningAreaLabel"),x=(0,r.g2)("SearchInput"),I=(0,r.g2)("FilterTags"),D=(0,r.g2)("FilterIcon"),R=(0,r.g2)("ContentFilters"),B=(0,r.g2)("SkillDiveLabRow"),U=(0,r.g2)("FeaturedCollectionsSection");return(0,r.uX)(),(0,r.CE)("section",{class:(0,l.C4)(["collection-detail",!C.isLoading&&e.isVulnerabilityColl&&"collection-detail--vulnerabilities-bg-1"]),style:(0,l.Tr)({"padding-top":"".concat(w.totalCollapsedNavbarHeight+50,"px")})},[!C.isLoading&&w.isLockedContent?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"collection-detail__locked-badge",style:(0,l.Tr)({top:"".concat(w.totalCollapsedNavbarHeight,"px")})},[(0,r.bF)(A,{size:"16"}),(0,r.eW)(" "+(0,l.v_)(w.getCollectionLockedLabel())+" ",1),(0,r.Lk)("a",{class:(0,l.C4)(["collection-detail__locked-badge-link",C.isLoading&&"collection-detail__locked-badge-link--disabled"]),onClick:t[0]||(t[0]=function(){return w.getAccess&&w.getAccess.apply(w,arguments)})}," Get access ",2)],4)):(0,r.Q3)("",!0),!C.isLoading&&w.partiallyLockedContent?((0,r.uX)(),(0,r.CE)("div",{key:1,class:"collection-detail__locked-badge collection-detail__locked-badge-partial",style:(0,l.Tr)({top:"".concat(w.totalCollapsedNavbarHeight,"px")})},[(0,r.bF)(A,{size:"16"}),(0,r.Lk)("div",null,[t[6]||(t[6]=(0,r.eW)(" Unlock all labs! To access this complete collection, ",-1)),(0,r.Lk)("a",{class:(0,l.C4)(["collection-detail__locked-badge-link",C.isLoading&&"collection-detail__locked-badge-link--disabled"]),onClick:t[1]||(t[1]=function(){return w.getAccess&&w.getAccess.apply(w,arguments)})}," upgrade Skill Dive ",2),(0,r.eW)(" to include "+(0,l.v_)(w.getCollectionPartiallyLockedLabel()),1)])],4)):(0,r.Q3)("",!0),C.isLoading?((0,r.uX)(),(0,r.Wv)(F,{key:2,class:"collection-detail__loader"})):((0,r.uX)(),(0,r.CE)("div",o,[(0,r.Lk)("div",a,[(0,r.bF)(E,{to:{name:"skill-dive"},class:"collection-detail__navigation-back-link btn btn--tertiary btn--default-icon-color"},{default:(0,r.k6)(function(){return[(0,r.bF)(O,{class:"collection-detail__navigation-back-link-icon"}),t[7]||(t[7]=(0,r.Lk)("span",null,"Back to Skill Dive",-1))]}),_:1,__:[7]})]),(0,r.Lk)("div",c,[(0,r.Lk)("h1",s,(0,l.v_)(e.collection.name),1),(0,r.Lk)("div",u,[e.isVulnerabilityColl?((0,r.uX)(),(0,r.CE)("div",d," New content every month! ")):(0,r.Q3)("",!0),(0,r.bF)(W,{translucid:"",sober:"",class:"collection-detail__header-subtitle-labs"},{default:(0,r.k6)(function(){return[(0,r.Lk)("strong",null,(0,l.v_)("".concat(e.totalLabs," ")),1),t[8]||(t[8]=(0,r.eW)(" HANDS-ON LABS ",-1))]}),_:1,__:[8]}),(0,r.bF)(P,{vertical:"",height:"30px",class:"collection-detail__header-subtitle-separator--desktop-only"}),(0,r.Lk)("div",f,[(0,r.bF)(j,{class:"collection-detail__header-subtitle-difficulty",difficultyLevel:e.difficulty,alwaysVisible:""},null,8,["difficultyLevel"]),(0,r.Lk)("div",b,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.collectionLearningAreas,function(e){return(0,r.uX)(),(0,r.CE)("div",{key:"".concat(e,"-la"),class:"collection-detail__header-subtitle-learning-area-item"},[(0,r.bF)(P,{vertical:"",height:"30px",class:"collection-detail__header-subtitle-separator"}),(0,r.bF)(M,{learningArea:e,class:"collection-detail__header-subtitle-learning-area",showIcon:"",uppercase:""},null,8,["learningArea"])])}),128))])])]),(0,r.Lk)("div",h,(0,l.v_)(e.description),1)]),(0,r.Lk)("div",p,[(0,r.bF)(x,{sortingDropdown:"",sortingOptions:C.sortingOptions,sortingSelected:C.sortingSelected,filterLocally:!1,class:"collection-detail__search-input",onHandleSorting:w.updateSort},null,8,["sortingOptions","sortingSelected","onHandleSorting"])]),(0,r.Lk)("div",v,[(0,r.Lk)("span",null,(0,l.v_)(C.labsWorkerState.totalItems)+" results ",1),e.stateQuery?((0,r.uX)(),(0,r.CE)("span",g,'for "'+(0,l.v_)(e.stateQuery)+'"',1)):(0,r.Q3)("",!0)]),(0,r.Lk)("div",y,[(0,r.bF)(I,{currentRefinements:C.labsWorkerState.activeFilters,filterMap:e.filterMap,onRemoveFilter:w.updateFilterAndSearch,onClearFilters:w.clearFilters},null,8,["currentRefinements","filterMap","onRemoveFilter","onClearFilters"])]),C.labsWorkerState.items.length?((0,r.uX)(),(0,r.CE)("div",k,[e.isVulnerabilityColl?((0,r.uX)(),(0,r.CE)(r.FK,{key:0}
1,[(0,r.Lk)("button",{class:(0,l.C4)(["collection-detail__content-filters-btn btn btn--primary btn--icon btn--small btn--default-icon-color",[w.isContentFiltered&&"collection-detail__content-filters-btn--filtered"]]),onClick:t[2]||(t[2]=function(e){return C.isFiltersModalOpen=!0})},[(0,r.bF)(D,{size:"16"})],2),(0,r.Lk)("div",{class:(0,l.C4)(["collection-detail__content-filters-container",[C.isFiltersModalOpen&&"collection-detail__content-filters-container--modal-open"]])},[(0,r.Lk)("div",m,[(0,r.Lk)("button",{class:"collection-detail__content-filters-mobile-header__back-btn btn btn--tertiary btn--default-icon-color",onClick:t[3]||(t[3]=function(e){return C.isFiltersModalOpen=!1})},[(0,r.bF)(O,{size:"25",class:"collection-detail__content-filters-mobile-header__back-btn__icon"}),t[9]||(t[9]=(0,r.Lk)("span",null," Filter Results ",-1))]),(0,r.Lk)("button",{class:"collection-detail__content-filters-mobile-header__clear-btn btn btn--tertiary",onClick:t[4]||(t[4]=function(){return w.clearFilters&&w.clearFilters.apply(w,arguments)})},t[10]||(t[10]=[(0,r.Lk)("span",null," Clear filters ",-1)]))]),(0,r.bF)(R,{filters:C.labsWorkerState.filterCounts,filterMap:e.filterMap,currentRefinements:C.labsWorkerState.activeFilters,onUpdateFilters:w.updateFilterAndSearch},null,8,["filters","filterMap","currentRefinements","onUpdateFilters"])],2)],64)):(0,r.Q3)("",!0),(0,r.Lk)("ul",_,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(C.labsWorkerState.items,function(n){return(0,r.uX)(),(0,r.Wv)(B,{ref_for:!0,ref:"labRows",key:n.uuid,content:n,learningAreasAllowed:e.availableLearningAreas,isolatedContent:!1,onTagSelected:t[5]||(t[5]=function(e){var t=e.name;return w.updateFilterAndSearch({facet:"tags.name",value:t})})},null,8,["content","learningAreasAllowed"])}),128))])])):((0,r.uX)(),(0,r.CE)("div",L,t[11]||(t[11]=[(0,r.Lk)("img",{class:"collection-detail__content-labs-list-empty__img",src:i,alt:"NO RESULTS"},null,-1),(0,r.Lk)("h5",{class:"collection-detail__content-labs-list-empty__error"}," Oops! We couldn't find any results matching your search. ",-1),(0,r.Lk)("p",{class:"collection-detail__content-labs-list-empty__instruction"}," Please try searching for something else. ",-1)]))),C.relatedCollections.length?((0,r.uX)(),(0,r.Wv)(U,{key:2,class:"collection-detail__related-collections",featuredCollections:C.relatedCollections.slice(0,3)},null,8,["featuredCollections"])):(0,r.Q3)("",!0)]))],6)}var C=n(12040),w=n(51449),A=n(52059),F=n(32360),O=n(62233),E=n(13653),W=n(61354),P=n(84113),j=n(82929),M=n(90063),x=n(3118),I=n(9485),D=n.n(I),R=n(4471),B=n(16285),U=n(90293),N=n(85780),T=n(16232),Q=n.n(T),X=n(73307),z=n.n(X),H=n(58482),K=n(87448),V=n(3042);function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function G(e,t){return ee(e)||Y(e,t)||J(e,t)||q()}function q(){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 J(e,t){if(e){if("string"==typeof e)return Z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Y(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,i,o,a=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){s=!0,l=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw l}}return a}}function ee(e){if(Array.isArray(e))return e}function te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",l=n.toStringTag||"@@toStringTag";function i(n,r,l,i){var c=r&&r.prototype instanceof a?r:a,s=Object.create(c.prototype);return ne(s,"_invoke",function(n,r,l){var i,a,c,s=0,u=l||[],d=!1,f={p:0,n:0,v:e,a:b,f:b.bind(e,4),d:function(t,n){return i=t,a=0,c=e,f.n=n,o}};function b(n,r){for(a=n,c=r,t=0;!d&&s&&!l&&t<u.length;t++){var l,i=u[t],b=f.p,h=i[2];n>
13?(l=h===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=b&&((l=n<2&&b<i[1])?(a=0,f.v=r,f.n=i[1]):b<h&&(l=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,a=0))}if(l||n>1)return o;throw d=!0,r}return function(l,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&b(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?a<3?(a>1&&(f.n=-1),b(a,c)):f.n=c:f.v=c);try{if(s=2,i){if(a||(l="next"),t=i[l]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+l+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,a=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,l,i),!0),s}var o={};function a(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ne(t={},r,function(){return this}),t),d=s.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,ne(e,l,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,ne(d,"constructor",s),ne(s,"constructor",c),c.displayName="GeneratorFunction",ne(s,l,"GeneratorFunction"),ne(d),ne(d,l,"Generator"),ne(d,r,function(){return this}),ne(d,"toString",function(){return"[object Generator]"}),(te=function(){return{w:i,m:f}})()}function ne(e,t,n,r){var l=Object.defineProperty;try{l({},"",{})}catch(e){l=0}ne=function(e,t,n,r){function i(t,n){ne(e,t,function(e){return this._invoke(t,n,e)})}t?l?l(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ne(e,t,n,r)}function re(e,t,n,r,l,i,o){try{var a=e[i](o),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,l)}function le(e){return function(){var t=this,n=arguments;return new Promise(function(r,l){var i=e.apply(t,n);function o(e){re(i,r,l,o,a,"next",e)}function a(e){re(i,r,l,o,a,"throw",e)}o(void 0)})}}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach(function(t){ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ae(e,t,n){return(t=ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e){var t=se(e,"string");return"symbol"==$(t)?t:t+""}function se(e,t){if("object"!=$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ue={name:"CollectionDetail",components:{SkillDiveLabRow:F.A,PillBadge:E.A,Difficulty:O.A,FilterIcon:j.A,ArrowLeftIcon:W.A,LockIcon:P.A,LearningAreaLabel:R.A,SearchInput:M.A,ActionLoader:A.A,FeaturedCollectionsSection:U.A,SeparatorBorder:B.A,ContentFilters:N.A,FilterTags:K.A},mixins:[x.P3,x.Mh,x.L5],metaInfo:function(){var e,t=null===(e=this.collection)||void 0===e?void 0:e.name;return{title:t?"Explore ".concat(t," Collection"):"Explore All Collections",meta:[{vmid:"robots",name:"robots",content:"noindex"}]}}
1,data:function(){return{searchQuery:null,sortingSelected:0,relatedCollections:[],isLoading:!1,checkoutUrl:"https://".concat("checkout.ine.com"),skillDiveEngage:"https://".concat("engage.b.ine.com/B2B-Contact-Us.html"),unlockCollapsed:!1,labsWorker:null,labsWorkerState:{items:[],totalItems:0,activeFilters:{},filterCounts:[]},defaultSorting:{label:"Recommended",key:"recomended",value:"desc"},sortingOptions:[{label:"Recommended",key:"recomended",value:"desc"},{label:"Recently added",key:"published_date",value:"desc"},{label:"Name (A - Z)",key:"name",value:"asc"}],debouncedSearchQuery:null,throttleScroll:null,isFiltersModalOpen:!1}},computed:oe(oe(oe({},(0,w.aH)({stateQuery:function(e){return e.search.searchQuery},collection:function(e){return e.labExperience.currentCollection},algoliaKeys:function(e){return e.search.algoliaKeys},availablePasses:function(e){return e.auth.available_passes},isAuthenticated:function(e){return e.auth.isAuthenticated},filterMap:function(e){return e.search.filterMap}})),(0,w.L8)({isLabExperienceUser:"auth/isLabExperienceUser",isSkillDiveB2CUser:"auth/isSkillDiveB2CUser",isSkillDiveB2BUser:"auth/isSkillDiveB2BUser",isAccOwnerOrTeamManager:"auth/isAccOwnerOrTeamManager",isBusinessUser:"business/isBusinessUser",businessUser:"business/getBusinessUser",showSkillDive:"labExperience/showSkillDive"})),{},{isContentFiltered:function(){return Object.values(this.labsWorkerState.activeFilters).flat().length},lockedLearningAreas:function(){var e,t,n=this,r=null===(e=this.collection)||void 0===e||null===(t=e.learning_areas)||void 0===t?void 0:t.map(function(e){return e.name});return null===r||void 0===r?void 0:r.filter(function(e){return n.availableLearningAreas.findIndex(function(t){return t.name===e})<0})},isLockedContent:function(){return this.lockedContent(this.collection)},partiallyLockedContent:function(){var e,t,n,r=null===(e=this.collection.learning_areas)||void 0===e?void 0:e.length;return(null===(t=this.lockedLearningAreas)||void 0===t?void 0:t.length)>0&&(null===(n=this.lockedLearningAreas)||void 0===n?void 0:n.length)<r},totalCollapsedNavbarHeight:function(){var e=window.getComputedStyle(document.documentElement),t=this.extractNumbers(e.getPropertyValue("--navbar-height"));return this.isSkillDiveB2BUser||(t+=this.extractNumbers(e.getPropertyValue("--skill-dive-banner-height"))),t}}),watch:{stateQuery:{handler:function(e){this.debouncedSearchQuery&&this.debouncedSearchQuery(e)}}},created:function(){var e=this;return le(te().m(function t(){return te().w(function(t){while(1)switch(t.n){case 0:return t.n=1,e.getContent(e.$route.params.id);case 1:e.debouncedSearchQuery=Q()(function(t){e.postLabsWorkerMessage([{type:"search",payload:t},{type:"setPage",payload:1}])},300);case 2:return t.a(2)}},t)}))()},beforeMount:function(){var e=this;return le(te().m(function t(){return te().w(function(t){while(1)switch(t.n){case 0:e.showSkillDive||e.$router.push({name:"home"});case 1:return t.a(2)}},t)}))()},mounted:function(){window.addEventListener("scroll",this.handleScroll)},unmounted:function(){window.removeEventListener("scroll",this.handleScroll)},beforeUnmount:function(){var e=this.labsWorker,t=this.debouncedSearchQuery,n=this.throttleScroll;e&&this.labsWorker.terminate(),t&&t.cancel(),n&&window.removeEventListener("scroll",this.throttleScroll)},methods:oe(oe(oe(oe(oe({},(0,w.i0)("app",["setError"])),(0,w.i0)("labs",["getRunningLab"])),(0,w.i0)("labExperience",["getCollectionById","getVulnerabilitiesCollectionHydratated"])),(0,w.i0)({getAccessAction:"playlists/getAccessAction"})),{},{updateFilterAndSearch:function(e){this.postLabsWorkerMessage([{type:"toggleFilter",payload:{key:e.facet,value:e.value}},{type:"setPage",payload:1}])},handleLazyLoad:function(){var e=this;this.throttleScroll=z()(function(){var t=e.$refs.labRows||[],n=t.length?t[t.length-1].$el:null,r=e.labsWorkerState,l=r.items,i=r.totalItems,o=l.length<i;n&&(0,H.J9)(n)&&o&&e.postLabsWorkerMessage([{type:"loadMore"}])},100),window.addEventListener("scroll",this.throttleScroll)},getCollectionLockedLabel:function(){return this.isSkillDiveB2CUser?"This collection is part of the ".concat(this.collectionLearningAreaName," learning area."):"This collection is locked."},updateSort:function(e){this.sortingSelected=this.sortingOptions.findIndex(function(t){return t.key===e.key}),this.postLabsWorkerMessage([{type:"setSort",payload:e},{type:"setPage",payload:1}])},getCollectionPartiallyLockedLabel:function(){var e,t;return 1===(null===(e=this.lockedLearningAreas)||void 0===e?void 0:e.length)?"the ".concat(this.lockedLearningAreas[0]," Learning Area."):"".concat(null===(t=this.lockedLearningAreas)||void 0===t?void 0:t.join(", ")," Learning Areas.")},clearFilters:function(){this.postLabsWorkerMessage([{type:"clearFilters"},{type:"setPage",payload:1}])},getAccess:function(){var e=this;return le(te().m(function t(){var n;return te().w(function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getAccessAction({isSkillDiveContent:!0,onRedirect:function(t){return e.$router.push(t)},onExternalRedirect:function(e){window.location.href=e},onRequestAccess:function(){var t=le(te().m(function t(){return te().w(function(t){while(1)switch(t.n){case 0:if(!e.isBusinessUser||e.isAccOwnerOrTeamManager){t.n=2;break}if(e.isLoading){t.n=2;break}return e.isLoading=!0,t.n=1,e.requestAddonLicense("skill-dive");case 1:e.isLoading=!1;case 2:return t.a(2)}},t)}));function n(){return t.apply(this,arguments)}return n}()});case 1:n=t.v,null!==n&&void 0!==n&&n.action&&"none"!==n.action||e.setError("We could not process your access request. Please try again."),t.n=3;break;case 2:t.p=2,t.v,e.setError("We could not process your access request. Please try again.");case 3:return t.a(2)}},t,null,[[0,2]])}))()},updateLabsWorkerState:function(e){var t=e.data,n=t.type,r=t.message;
1if("error"!==n)t.filterCounts.forEach(function(e){var t=e.name,n=e.data;switch(t){case"year":e.data=n.sort(function(e,t){var n=G(e,1),r=n[0],l=G(t,1),i=l[0];return i-r});break;case"severity":e.data=["critical","high","medium","low"].reduce(function(e,t){var r=n.find(function(e){var n=G(e,1),r=n[0];return r===t});return r&&e.push(r),e},[]);break;case"classification":e.data=["cognitive","governance","healthcare","economic","communication","technical"].reduce(function(e,t){var r=n.find(function(e){var n=G(e,1),r=n[0];return r===t});return r&&e.push(r),e},[]);break}}),this.labsWorkerState=t;else{var l={response:{status:400,data:r}};(0,V.v)(l)}},toWorkerPayload:function(e){return JSON.parse(JSON.stringify((0,C.ux)(e)))},postLabsWorkerMessage:function(e){this.labsWorker&&this.labsWorker.postMessage(this.toWorkerPayload(e))},initializeWorker:function(){this.labsWorker=new Worker(new URL(n.p+n.u(9633),n.b)),this.labsWorker.onmessage=this.updateLabsWorkerState,this.isVulnerabilityColl&&(this.sortingOptions=[{label:"Recently added",key:"published_date",value:"desc"},{label:"Name (A - Z)",key:"name",value:"asc"},{label:"CVE year",key:"year",value:"desc"}]),this.postLabsWorkerMessage([{type:"init",payload:{items:this.labs,filterKeys:["severity","year","tags.name"],sourceSort:this.defaultSorting,searchKeys:["name","cve","description_html","tags.name"],itemsPerPage:20,useLazyLoad:!0,currentSort:this.sortingOptions[0]}}]),this.handleLazyLoad()},getContent:function(e){var t=this;return le(te().m(function n(){return te().w(function(n){while(1)switch(n.n){case 0:return n.n=1,t.fetchCollection(e);case 1:t.getLabsFromCollection(t.collection),t.initializeWorker(),t.collection.related_collections.length&&t.fetchRelatedCollections(),t.isAuthenticated&&t.getRunningLab();case 2:return n.a(2)}},n)}))()},fetchRelatedCollections:function(){var e=this;return le(te().m(function t(){var n,r,l,i,o,a,c,s,u,d;return te().w(function(t){while(1)switch(t.p=t.n){case 0:return n=e.algoliaKeys,r=n.appKey,l=n.appId,i=n.searchIndex,o=e.collection.related_collections,a=D()(l,r),c=a.initIndex(i),t.p=1,t.n=2,c.getObjects(o.map(function(e){return e.id}));case 2:s=t.v,u=s.results,e.relatedCollections=u,t.n=4;break;case 3:t.p=3,d=t.v,e.setError(d);case 4:return t.a(2)}},t,null,[[1,3]])}))()},fetchCollection:function(e){var t=this;return le(te().m(function n(){var r,l;return te().w(function(n){while(1)switch(n.p=n.n){case 0:return n.p=0,t.isLoading=!0,n.n=1,t.getCollectionById({id:e});case 1:if(r=n.v,r&&r.id){n.n=2;break}throw t.$router.push({name:"NotFound",params:{pathMatch:t.$route.path}}),new Error("NotFound");case 2:n.n=4;break;case 3:n.p=3,l=n.v,t.setError(l);case 4:return n.p=4,t.isLoading=!1,n.f(4);case 5:return n.a(2)}},n,null,[[0,3,4,5]])}))()},handleScroll:function(e){var t,n,r=document.querySelector(".collection-detail__locked-badge");(e.preventDefault(),window.scrollY>=20)?(this.unlockCollapsed=!0,null===r||void 0===r||null===(t=r.classList)||void 0===t||t.add("collection-detail__locked-badge--collapse")):(this.unlockCollapsed=!1,null===r||void 0===r||null===(n=r.classList)||void 0===n||n.remove("collection-detail__locked-badge--collapse"))},extractNumbers:function(e){var t=/\d+/;return Number(e.match(t))}})},de=n(1169);const fe=(0,de.A)(ue,[["render",S],["__scopeId","data-v-897971c2"]]);var be=fe}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.