PageSourceSearch

https://my.ine.com/js/277.f2039930aac14b62.js

js ine.com collected 2026-10-01 10:45:37 UTC 92,604 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkmy_ine_com"]=self["webpackChunkmy_ine_com"]||[]).push([[277],{60456:function(e,t,n){n.r(t),n.d(t,{default:function(){return Gn}});var r=n(95976),i=n(10160),a=n(29746),o=n(41203),l={key:0,class:"search"},s={key:0,class:"search__container"},c={class:"search__section-container"},u={class:"search__input-wrapper",ref:"searchInputWrapper"},h={key:0,class:"search__suggestions-separator"},f={class:"search__filters-wrapper__mobile-header"},d={class:"search__results-wrapper"},p={class:"search__filter-tags-wrapper"},v={key:1,class:"search__no-results-wrapper"},m={key:1,class:"search__loading"};function g(e,t,n,g,y,S){var b=(0,r.g2)("SearchIcon"),A=(0,r.g2)("XIcon"),k=(0,r.g2)("SearchSuggestions"),_=(0,r.g2)("ArrowLeftIcon"),F=(0,r.g2)("ContentFilters"),w=(0,r.g2)("FilterTags"),I=(0,r.g2)("SearchResultFilters"),O=(0,r.g2)("ContentList"),L=(0,r.g2)("FilterIcon"),C=(0,r.g2)("LoadingSpinner"),E=(0,r.g2)("SearchLegacy");return(0,r.uX)(),(0,r.CE)("div",null,[e.hierarchicalSkillsEnabled?((0,r.uX)(),(0,r.CE)("section",l,[t[9]||(t[9]=(0,r.Lk)("h1",{class:"sr-only"},"Search",-1)),y.isInitialSearchLoading?((0,r.uX)(),(0,r.CE)("div",m,[(0,r.bF)(C,{size:"50"})])):((0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",c,[(0,r.Lk)("div",{class:(0,i.C4)(["search__section-wrapper",y.suggestionsOpened&&"search__section-wrapper--modal-open"])},[(0,r.Lk)("div",u,[(0,r.bF)(b,{class:"search__input-wrapper__search-icon",size:"24",role:"button",tabindex:"0",onClick:S.handleManualSearch},null,8,["onClick"]),(0,r.bo)((0,r.Lk)("input",{ref:"searchInput",class:"ine-input-ghost","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.searchQuery=t}),placeholder:"Search...",onKeydown:t[1]||(t[1]=(0,a.jR)((0,a.D$)(function(){return S.handleManualSearch&&S.handleManualSearch.apply(S,arguments)},["prevent"]),["enter"]))},null,544),[[a.Jo,e.searchQuery]]),(0,r.bo)((0,r.bF)(A,{class:"search__input-wrapper__x-icon",size:"16",onClick:S.clearSearchQuery},null,8,["onClick"]),[[a.aG,e.searchQuery]])],512),y.suggestionsOpened?((0,r.uX)(),(0,r.CE)("div",h)):(0,r.Q3)("",!0),e.searchSuggestionsEnabled?((0,r.uX)(),(0,r.Wv)(k,{key:1,class:"search__suggestions",query:e.searchQuery,"input-wrapper":e.$refs.searchInputWrapper,"input-element":e.$refs.searchInput,"submission-token":y.suggestionsSubmissionToken,onSelectHit:S.handleSuggestionHit,onSelectFacet:S.handleSuggestionFacet,onToggleOpen:t[2]||(t[2]=function(e){return y.suggestionsOpened=e}),onActiveSelectionChange:S.handleActiveSuggestionChange},null,8,["query","input-wrapper","input-element","submission-token","onSelectHit","onSelectFacet","onActiveSelectionChange"])):(0,r.Q3)("",!0)],2)]),(0,r.Lk)("div",{class:(0,i.C4)(["search__filters-wrapper",[y.isFiltersModalOpen&&"search__filters-wrapper--modal-open flat-scroll"]])},[(0,r.Lk)("div",f,[(0,r.Lk)("button",{class:"search__filters-wrapper__mobile-header__back-btn btn btn--tertiary btn--default-icon-color",onClick:t[3]||(t[3]=function(e){return y.isFiltersModalOpen=!1})},[(0,r.bF)(_,{size:"25",class:"search__filters-wrapper__mobile-header__back-btn__icon"}),t[6]||(t[6]=(0,r.Lk)("span",null," Filter Results ",-1))]),(0,r.Lk)("button",{class:"search__filters-wrapper__mobile-header__clear-btn btn btn--tertiary",onClick:t[4]||(t[4]=function(){return S.clearFilterAndSearch&&S.clearFilterAndSearch.apply(S,arguments)})},t[7]||(t[7]=[(0,r.Lk)("span",null," Clear filters ",-1)]))]),(0,r.bF)(F,{filters:S.asideFilters,currentRefinements:S.currentRefinements,isFreeTrialUser:e.isFreeTrialUser,onUpdateFilters:S.updateFiltersAndSearch},null,8,["filters","currentRefinements","isFreeTrialUser","onUpdateFilters"])],2),(0,r.Lk)("div",d,[(0,r.Lk)("div",p,[(0,r.bF)(w,{currentRefinements:S.currentRefinements,filterMap:e.filterMap,headerLayout:!0,onRemoveFilter:S.updateFiltersAndSearch,onClearFilters:S.clearFilterAndSearch},null,8,["currentRefinements","filterMap","onRemoveFilter","onClearFilters"])]),(0,r.bF)(I,{searchLabel:S.searchLabel,facets:S.currentFacetCounts,currentRefinements:S.currentRefinements,filterMap:e.filterMap,sortingOptions:y.sortingOptions,sortingSelected:y.sortingSelected,handleSortChange:S.handleSortChange,hasResults:Boolean(S.hits.length),searchFacetValues:S.searchFacetValues,onUpdateFilters:S.updateFiltersAndSearch,onRemoveFilter:S.updateFiltersAndSearch,onClearFacet:S.clearFacetFilters,onClearFilters:S.clearFilterAndSearch,onSkillHierarchyChange:S.applySkillHierarchyFilters},null,8,["searchLabel","facets","currentRefinements","filterMap","sortingOptions","sortingSelected","handleSortChange","hasResults","searchFacetValues","onUpdateFilters","onRemoveFilter","onClearFacet","onClearFilters","onSkillHierarchyChange"]),(0,r.Lk)("div",null,[S.hits.length?((0,r.uX)(),(0,r.Wv)(O,{key:0,items:S.hits,searchIndex:S.algoliaHelper,isFreeTrialUser:e.isFreeTrialUser,onElementRendered:S.handleRememberPosition,onSelectInstructor:S.handleInstructorFacetSelect,onSelectLearningArea:S.handleContentLearningAreaFacetSelect,onSelectSkill:S.handleContentSkillFacet},null,8,["items","searchIndex","isFreeTrialUser","onElementRendered","onSelectInstructor","onSelectLearningArea","onSelectSkill"])):((0,r.uX)(),(0,r.CE)("div",v,t[8]||(t[8]=[(0,r.Lk)("img",{class:"search__no-results-wrapper__img",src:o,alt:"NO RESULTS"},null,-1),(0,r.Lk)("h5",{class:"search__no-results-wrapper__error"}," Oops! We couldn't find any results matching your search. ",-1),(0,r.Lk)("p",{class:"search__no-results-wrapper__instruction"}," Please try searching for something else. ",-1)])))])]),(0,r.Lk)("button",{class:(0,i.C4)(["search__open-filters-btn",Object.values(S.currentRefinements).flat().length&&"search__open-filters-btn--filtered"]),onClick:t[5]||(t[5]=function(e){return y.isFiltersModalOpen=!0})},[(0,r.bF)(L,{size:"16"})],2)]))])):((0,r.uX)(),(0,r.Wv)(E,{key:1}))])}var y=n(51449),S=n(58482),b=n(85780),A=n(45788),k={class:"search-result-filters"},_={class:"search-result-filters__header"},F={class:"search-result-filters__results-count"},w={class:"search-result-filters__summary"};function I(e,t,n,a,o,l){var s=(0,r.g2)("DropdownMultiple"),c=(0,r.g2)("Dropdown");return(0,r.uX)(),(0,r.CE)("div",k,[(0,r.Lk)("div",_,[(0,r.Lk)("span",F,(0,i.v_)(n.searchLabel),1),(0,r.Lk)("div",w,[l.showSubdomainDropdown?((0,r.uX)(),(0,r.Wv)(s,{key:0,class:"search-result-filters__facet",item:l.subdomainFacetName,label:"Subdomain",options:l.subdomainOptions,selectedValues:o.selectedSubdomainsUI,searchable:"",loading:o.skillAreaLoading,onToggleItem:l.toggleSubdomain,onClearItem:l.clearSubdomains},null,8,["item","options","selectedValues","loading","onToggleItem","onClearItem"])):(0,r.Q3)("",!0),l.showSkillAreaDropdown?((0,r.uX)(),(0,r.Wv)(s,{key:1,class:"search-result-filters__facet",item:l.skillsFacetName,label:"Skill Area",options:l.filteredSkillAreaOptions,fallbackOptions:l.skillAreaOptions,selectedValues:l.selectedSkillAreaValues,searchable:"",loading:o.skillAreaLoading,remoteSearch:l.searchSkillAreas,remoteSearchDelay:o.skillAreaRemoteSearchDelay,onToggleItem:l.toggleSkillArea,onClearItem:l.clearSkillAreas},null,8,["item","options","fallbackOptions","selectedValues","loading","remoteSearch","remoteSearchDelay","onToggleItem","onClearItem"])):(0,r.Q3)("",!0),n.hasResults?((0,r.uX)(),(0,r.Wv)(c,{key:2,class:"search-result-filters__facet search-result-filters__facet--sort",options:n.sortingOptions,selectedOption:n.sortingSelected,handleSelection:n.handleSortChange},null,8,["options","selectedOption","handleSelection"])):(0,r.Q3)("",!0)])])])}var O={class:"dropdown-multiple__trigger-label"},L={key:0,class:"dropdown-multiple__search"},C={class:"dropdown-multiple__header"},E={class:"dropdown-multiple__header-title"},R={key:1,class:"dropdown-multiple__wrapper"},T={class:"dropdown-multiple__options flat-scroll"},j=["onClick","aria-selected"],x={class:"dropdown-multiple__option-content"},H={class:"dropdown-multiple__option-data"},P={class:"dropdown-multiple__option-label"},D={key:0,class:"dropdown-multiple__option-info"},N={key:0,class:"dropdown-multiple__empty"},M={key:2,class:"dropdown-multiple__loading"};function Q(e,t,n,o,l,s){var c=(0,r.g2)("ChevronDownIcon"),u=(0,r.g2)("SearchIcon"),h=(0,r.g2)("CheckBox"),f=(0,r.g2)("LoadingSmallSpinner");return(0,r.uX)(),(0,r.CE)("div",{ref:"dropdown",class:(0,i.C4)(["dropdown-multiple","vue-select",{"dropdown-multiple--open":l.isOpen,"vs--open":l.isOpen,"vs--disabled":s.isDisabled}])},[(0,r.Lk)("button",{class:(0,i.C4)(["vs__dropdown-toggle dropdown-multiple__trigger",{"dropdown-multiple__trigger--disabled":s.isDisabled}]),type:"button",onClick:t[0]||(t[0]=function(){return s.toggleDropdown&&s.toggleDropdown.apply(s,arguments)})},[(0,r.Lk)("span",O,(0,i.v_)(s.dropdownLabel),1),(0,r.bF)(c,{size:"24",class:(0,i.C4)(["dropdown-multiple__trigger-icon",{"dropdown-multiple__trigger-icon--open":l.isOpen}])},null,8,["class"])],2),(0,r.bF)(a.eB,{name:"fade"},{default:(0,r.k6)(function(){return[l.isOpen?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"dropdown-multiple__panel",role:"menu",onKeydown:t[5]||(t[5]=(0,a.jR
1)(function(){return s.closeDropdown&&s.closeDropdown.apply(s,arguments)},["esc"]))},[n.searchable?((0,r.uX)(),(0,r.CE)("div",L,[(0,r.bF)(u,{size:"16"}),(0,r.bo)((0,r.Lk)("input",{ref:"searchInput",class:"ine-input-ghost ine-input-ghost--sm","onUpdate:modelValue":t[1]||(t[1]=function(e){return l.searchTerm=e}),placeholder:"Search...",type:"text",onFocus:t[2]||(t[2]=function(){return s.handleSearchFocus&&s.handleSearchFocus.apply(s,arguments)}),onBlur:t[3]||(t[3]=function(){return s.handleSearchBlur&&s.handleSearchBlur.apply(s,arguments)})},null,544),[[a.Jo,l.searchTerm]])])):(0,r.Q3)("",!0),(0,r.Lk)("div",C,[(0,r.Lk)("span",E,(0,i.v_)(s.dropdownLabel),1),s.selectedCount?((0,r.uX)(),(0,r.CE)("button",{key:0,type:"button",class:"dropdown-multiple__clear-btn",onClick:t[4]||(t[4]=function(){return s.handleClear&&s.handleClear.apply(s,arguments)})}," Clear all ")):(0,r.Q3)("",!0)]),n.loading?((0,r.uX)(),(0,r.CE)("div",M,[(0,r.bF)(f)])):((0,r.uX)(),(0,r.CE)("div",R,[(0,r.Lk)("ul",T,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(s.filteredOptions,function(e){return(0,r.uX)(),(0,r.CE)("li",{key:e.value,class:(0,i.C4)(["dropdown-multiple__option vs__dropdown-option",{"dropdown-multiple__option--selected":s.isSelected(e.value),"dropdown-multiple__option--disabled":e.isDisabled}]),onClick:function(t){return s.handleToggle(e.value)},role:"option","aria-selected":s.isSelected(e.value)},[(0,r.Lk)("div",x,[((0,r.uX)(),(0,r.Wv)(h,{key:e.value,"is-selected":s.isSelected(e.value),disabled:e.isDisabled,size:"sm",onClickHandler:(0,a.D$)(function(t){return s.handleToggle(e.value)},["stop"])},null,8,["is-selected","disabled","onClickHandler"])),(0,r.Lk)("div",H,[(0,r.Lk)("span",P,(0,i.v_)(e.label),1),s.hasOptionInfo(e)?((0,r.uX)(),(0,r.CE)("span",D,(0,i.v_)(e.info),1)):(0,r.Q3)("",!0)])])],10,j)}),128))]),!s.filteredOptions.length||s.showNoResultsMessage?((0,r.uX)(),(0,r.CE)("div",N," No "+(0,i.v_)(n.label.toLowerCase())+" found. ",1)):(0,r.Q3)("",!0)]))],32)):(0,r.Q3)("",!0)]}),_:1})],2)}var V=n(16232),G=n.n(V),U=n(73187),z=n(19062),X=n(1296),$=n(77359),K=n(63367);function q(e,t){return Y(e)||W(e,t)||te(e,t)||B()}function B(){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 W(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Y(e){if(Array.isArray(e))return e}function Z(e){return Z="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},Z(e)}function J(e){return re(e)||ne(e)||te(e)||ee()}function ee(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function te(e,t){if(e){if("string"==typeof e)return ie(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)?ie(e,t):void 0}}function ne(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function re(e){if(Array.isArray(e))return ie(e)}function ie(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 ae(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?ae(Object(n),!0).forEach(function(t){le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function le(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){var t=ce(e,"string");return"symbol"==Z(t)?t:t+""}function ce(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ue=function(e){return e?e.toString().replace(/[_.]/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}):""},he={name:"DropdownMultiple",components:{CheckBox:X.A,ChevronDownIcon:U.D3,SearchIcon:U.WI,LoadingSmallSpinner:$.A,CheckboxTick:oe(oe({},z.A),{},{name:"CheckboxTick"})},props:{item:{type:String,required:!0},label:{type:String,required:!0},options:{type:[Array,Object],default:null},fallbackOptions:{type:[Array,Object],default:function(){return[]}},selectedValues:{type:Array,default:function(){return[]}},labelMap:{type:Object,default:function(){return{}}},icon:{type:String,default:""},single:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},remoteSearch:{type:Function,default:null},remoteSearchDelay:{type:Number,default:300},remoteSearchInitialFetch:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data:function(){return{isOpen:!1,searchTerm:"",internalSelectedValues:[],isSearchFocused:!1,debouncedRemoteSearch:null,remoteSearchFn:null}},computed:{selectedValuesSet:function(){return new Set(this.internalSelectedValues)},dropdownLabel:function(){return this.selectedCount?"".concat(this.selectedCount," ").concat(this.currentLabel):this.currentLabel},currentLabel:function(){return this.$pluralizeWord(this.label,this.selectedCount)},selectedCount:function(){return this.internalSelectedValues.length},isDisabled:function(){return!this.availableOptions.length},hasFilteredOptions:function(){return void 0!==this.options&&null!==this.options},normalizedFilteredOptions:function(){return this.hasFilteredOptions?this.normalizeOptions(this.options):[]},normalizedFallbackOptions:function(){return this.normalizeOptions(this.fallbackOptions)},availableOptions:function(){var e=this.hasFilteredOptions?this.normalizedFilteredOptions:this.normalizedFallbackOptions;return this.prioritizeSelected(e)},filteredOptions:function(){var e=this;if(this.debouncedRemoteSearch)return this.availableOptions;if(!this.searchable||!this.searchTerm)return this.availableOptions;var t=this.searchTerm.toLowerCase();return this.availableOptions.filter(function(n){return!!e.selectedValuesSet.has(n.value)||n.label.toLowerCase().includes(t)})},isHierarchicalSkillFacet:function(){return"string"===typeof this.item&&this.item.startsWith("skills_hierarchical")},hasSearchQuery:function(){return this.searchable&&!!this.searchTerm},nonSelectedSearchMatches:function(){var e=this;if(this.debouncedRemoteSearch)return this.searchTerm,this.availableOptions.filter(function(t){return!e.selectedValuesSet.has(t.value)});if(!this.searchable)return this.availableOptions.filter(function(t){return!e.selectedValuesSet.has(t.value)});if(!this.searchTerm)return this.availableOptions.filter(function(t){return!e.selectedValuesSet.has(t.value)});var t=this.searchTerm.toLowerCase();return this.availableOptions.filter(function(n){return!e.selectedValuesSet.has(n.value)&&n.label.toLowerCase().includes(t)})},showNoResultsMessage:function(){return this.debouncedRemoteSearch?!!this.searchTerm&&0===this.nonSelectedSearchMatches.length:!!this.hasSearchQuery&&0===this.nonSelectedSearchMatches.length}},watch:{selectedValues:{immediate:!0,handler:function(e){this.internalSelectedValues=Array.isArray(e)?J(e):[]}},searchTerm:function(e){this.triggerRemoteSearch(e)},isOpen:function(e){var t=this;e&&this.searchable?this.$nextTick(function(){var e;null===(e=t.$refs.searchInput)||void 0===e||e.focus()}):this.searchTerm="",e&&this.triggerRemoteSearch(this.searchTerm)},remoteSearch:{immediate:!0,handler:function(e){this.debouncedRemoteSearch&&this.debouncedRemoteSearch.cancel&&this.debouncedRemoteSearch.cancel(),"function"===typeof e?(this.remoteSearchFn=e,this.debouncedRemoteSearch=G()(function(t){e(t)},this.remoteSearchDelay)):(this.remoteSearchFn=null,this.debouncedRemoteSearch=null)}}},mounted:function(){document.addEventListener("click",this.handleOutsideClick),this.remoteSearchInitialFetch&&this.remoteSearchFn&&this.remoteSearchFn("")},beforeUnmount:function(){document.removeEventListener("click",this.handleOutsideClick),this.debouncedRemoteSearch&&this.debouncedRemoteSearch.cancel&&this.debouncedRemoteSearch.cancel()},methods:{normalizeOptions:function(e){var t=this;return e?Array.isArray(e)?e.map(function(e){var n,r,i;if(e&&"object"===Z(e)&&!Array.isArray(e)){var a,o,l,s,c,u,h,f,d=null!==(a=null!==(o=null!==(l=e.value)&&void 0!==l?l:e[0])&&void 0!==o?o:e.label)&&void 0!==a?a:null===e||void 0===e?void 0:e.key,p=null!==(s=null!==(c=null!==(u=null!==(h=e.count)&&void 0!==h?h:e[1])&&void 0!==u?u:e.items)&&void 0!==c?c:e.total)&&void 0!==s?s:0,v=void 0!==e.label?e.label:t.resolveLabel(d),m=void 0!==e.info?e.info:null!==(f=e[2])&&void 0!==f?f:null,g=void 0!==e.isDisabled?e.isDisabled:0===p;return oe(oe({},e),{},{value:d,count:p,label:v,info:m,isDisabled:g})}var y=Array.isArray(e)?e:[e,0];return{value:y[0],count:null!==(n=y[1])&&void 0!==n?n:0,label:t.resolveLabel(y[0]),info:null!==(r=y[2])&&void 0!==r?r:null,isDisabled:0===(null!==(i=y[1])&&void 0!==i?i:0)}}):"object"===Z(e)?Object.entries(e).map(function(e){var n=q(e,2),r=n[0],i=n[1];return{value:r,count:i,label:t.resolveLabel(r),isDisabled:0===i}}):[]:[]},prioritizeSelected:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e)||!e.length)return e;var t=new Set(this.internalSelectedValues);if(!t.size)return e;var n=[],r=[];return e.forEach(function(e){t.has(e.value)?n.push(e):r.push(e)}),[].concat(n,r)},resolveLabel:function(e){if(this.labelMap[e])return this.labelMap[e];if(this.isHierarchicalSkillFacet&&"string"===typeof e){var t=(0,K.zZ)(e);return t[t.length-1]||""}return ue(e)},handleClear:function(){this.selectedCount&&(this.$emit("clear-item",{item:this.item}),this.internalSelectedValues=[],this.closeDropdown())},triggerRemoteSearch:function(e){this.debouncedRemoteSearch&&this.debouncedRemoteSearch(e)},handleSearchFocus:function(){this.isSearchFocused=!0},handleSearchBlur:function(){this.isSearchFocused=!1},toggleDropdown:function(){this.isDisabled||(this.isOpen=!this.isOpen)},closeDropdown:function(){this.isOpen=!1},handleOutsideClick:function(e){var t=this.$refs.dropdown;t&&this.isOpen&&!t.contains(e.target)&&this.closeDropdown()},isSelected:function(e){return this.internalSelectedValues.includes(e)},hasOptionInfo:function(e){return e&&void 0!==e.info&&null!==e.info},handleToggle:function(e){var t=this.internalSelectedValues.includes(e);this.single?this.internalSelectedValues=t?[]:[e]:this.internalSelectedValues=t?this.internalSelectedValues.filter(function(t){return t!==e}):[].concat(J(this.internalSelectedValues),[e]),this.$emit("toggle-item",{item:this.item,value:e,single:this.single})}}},fe=n(1169);const de=(0,fe.A)(he,[["render",Q],["__scopeId","data-v-5526983c"]]);var pe=de,ve=n(95975),me=n(99340);function ge(e){return ge="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},ge(e)}function ye(){/*! 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",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Se(c,"_invoke",function(n,r,i){var a,l,s,c=0,u=i||[],h=!1,f={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return a=t,l=0,s=e,f.n=n,o}};function d(n,r){for(l=n,s=r,t=0;!h&&c&&!i&&t<u.length;t++){var i,a=u[t],d=f.p,p=a[2];n>3?(i=p===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=d&&((i=n<2&&d<a[1])?(l=0,f.v=r,f.n=a[1]):d<p&&(i=n<3||a[0]>r||r>p)&&(a[4]=n,a[5]=r,f.n=p,l=0))}if(i||n>1)return o;throw h=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&d(u,p),l=u,s=p;(t=l<2?e:s)||!h;){a||(l?l<3?(l>1&&(f.n=-1),d(l,s)):f.n=s:f.v=s);try{if(c=2,a){if(l||(i="next"),t=a[i]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);a=e}else if((t=(h=f.n<0)?s:n.call(r,f))!==o)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:h}}}(n,i,a),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Se(t={},r,function(){return this}),t),h=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Se(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return s.prototype=c,Se(h,"constructor",c),Se(c,"constructor",s),s.displayName="GeneratorFunction",Se(c,i,"GeneratorFunction"),Se(h),Se(h,i,"Generator"),Se(h,r,function(){return this}),Se(h,"toString",function(){return"[object Generator]"}),(ye=function(){return{w:a,m:f}})()}function Se(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Se=function(e,t,n,r){function a(t,n){Se(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Se(e,t,n,r)}function be(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function Ae(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){be(a,r,i,o,l,"next",e)}function l(e){be(a,r,i,o,l,"throw",e)}o(void 0)})}}function ke(e){return we(e)||Fe(e)||Le(e)||_e()}function _e(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function we(e){if(Array.isArray(e))return Ce(e)}function Ie(e,t){return Re(e)||Ee(e,t)||Le(e,t)||Oe()}function Oe(){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 Le(e,t){if(e){if("string"==typeof e)return Ce(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)?Ce(e,t):void 0}}function Ce(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 Ee(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Re(e){if(Array.isArray(e))return e}function Te(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 je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach(function(t){xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xe(e,t,n){return(t=He(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){var t=Pe(e,"string");return"symbol"==ge(t)?t:t+""}function Pe(e,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var De="learning_areas.name",Ne=100,Me={name:"SearchResultFilters",components:{DropdownMultiple:pe,Dropdown:ve.A},props:{searchLabel:{type:String,required:!0},facets:{type:Array,default:function(){return[]}},currentRefinements:{type:Object,required:!0},filterMap:{type:Object,required:!0},sortingOptions:{type:Array,required:!0},sortingSelected:{type:[String,Object],required:!0},handleSortChange:{type:Function,required:!0},hasResults:{type:Boolean,required:!0},searchFacetValues:{type:Function,default:null}},data:function(){return{skillFacetRowStore:new Map,skillAreaRemoteRows:[],skillAreaRemoteActive:!1,skillAreaLoading:!1,skillAreaRemoteSearchDelay:300,selectedSubdomainsUI:[],lastNonSkillSignature:""}},computed:je(je({},(0,y.L8)({hierarchicalSkillsEnabled:"featureFlags/hierarchicalSkillsEnabled"})),{},{skillsFacetName:function(){return me.A.ALGOLIA_FACETS.SKILLS_HIERARCHICAL},subdomainFacetName:function(){return"".concat(me.A.ALGOLIA_FACETS.SKILLS_HIERARCHICAL,"__subdomain")},selectedLearningAreas:function(){return(this.currentRefinements[De]||[]).map(function(e){var t,n;return null!==(t=null===e||void 0===e||null===(n=e.trim)||void 0===n?void 0:n.call(e))&&void 0!==t?t:e})},nonSkillRefinementsSignature:function(){var e=this,t=Object.entries(this.currentRefinements||{}).filter(function(t){var n=Ie(t,1),r=n[0];return r!==e.skillsFacetName}).map(function(e){var t=Ie(e,2),n=t[0],r=t[1],i=Array.isArray(r)?ke(r).map(function(e){var t,n;return null!==(t=null===e||void 0===e||null===(n=e.trim)||void 0===n?void 0:n.call(e))&&void 0!==t?t:e}
1).filter(Boolean).sort():[];return"".concat(n,":").concat(i.join(","))}).sort();return t.join("|")},selectedSkillFacetValues:function(){return this.currentRefinements[this.skillsFacetName]||[]},showSubdomainDropdown:function(){var e=this.hierarchicalSkillsEnabled&&this.selectedLearningAreas.length&&(this.selectedSubdomainsUI.length||this.subdomainOptions.length);return!!e},showSkillAreaDropdown:function(){var e=this.hierarchicalSkillsEnabled&&this.showSubdomainDropdown&&(this.selectedSkillAreaValues.length||this.selectedSkillFacetValues.length);return!!e},skillsFacet:function(){var e=this;return this.facets.find(function(t){return(null===t||void 0===t?void 0:t.name)===e.skillsFacetName})},allSkillFacetRows:function(){var e=this.selectedLearningAreas.map(function(e){var t,n;return null!==(t=null===e||void 0===e||null===(n=e.trim)||void 0===n?void 0:n.call(e))&&void 0!==t?t:e}).filter(Boolean);if(!e.length)return[];var t=new Set(e),n=[];return this.skillFacetRowStore.forEach(function(e){if(null!==e&&void 0!==e&&e.value){var r=(0,K.rP)(e.value),i=r.focus;i&&t.has(i)&&n.push(e)}}),n},skillRowMap:function(){return new Map(this.allSkillFacetRows.map(function(e){return[e.value,e]}))},subdomainOptions:function(){var e=new Set(this.selectedLearningAreas);if(!e.size)return[];var t=new Map;return this.allSkillFacetRows.forEach(function(n){var r,i=(0,K.rP)(n.value),a=i.focus,o=i.subdomain;if(a&&o&&e.has(a)){var l="".concat(a," > ").concat(o),s=t.get(l)||{value:l,label:o,info:"from ".concat(a),count:0,values:[]};s.count+=null!==(r=n.count)&&void 0!==r?r:0,s.values.includes(n.value)||s.values.push(n.value),t.set(l,s)}}),ke(t.values())},skillRowsForOptions:function(){var e=this,t=Array.isArray(this.skillAreaRemoteRows)?this.skillAreaRemoteRows:[];if(t.length){var n=ke(t);return this.selectedSkillFacetValues.forEach(function(t){if(!n.find(function(e){return e.value===t})){var r=e.skillRowMap.get(t);r&&n.push(r)}}),n}return this.allSkillFacetRows},skillAreaOptions:function(){var e=this,t=new Set(this.selectedLearningAreas);if(!t.size)return[];var n=0===this.selectedSubdomainsUI.length?null:new Set(this.selectedSubdomainsUI),r=new Map,i=this.skillRowsForOptions;return i.forEach(function(i){var a=(0,K.rP)(i.value),o=a.focus,l=a.subdomain,s=a.skillArea,c=a.skill;if(o&&l&&s&&t.has(o)){var u="".concat(o," > ").concat(l);if(!n||n.has(u)){var h="".concat(u," > ").concat(s),f=e.skillRowMap.has(h),d=r.get(h),p=d||{value:h,label:s,info:l?"from ".concat(l):"",count:0,values:[],leafValues:new Set};if(f){var v,m=e.skillRowMap.get(h);p.values=[h],p.count=null!==(v=m.count)&&void 0!==v?v:p.count,c&&c!==s&&p.leafValues.add(i.value)}else{var g;p.count+=null!==(g=i.count)&&void 0!==g?g:0,p.values.includes(i.value)||p.values.push(i.value)}r.set(h,p)}}}),ke(r.values()).map(function(e){return je(je({},e),{},{leafValues:ke(e.leafValues)})})},filteredSkillAreaOptions:function(){return this.skillAreaRemoteActive?this.createSkillAreaFilteredOptions(this.skillAreaRemoteRows,this.skillAreaOptions):null},selectedSkillAreaValues:function(){var e=new Set(this.selectedSkillFacetValues),t=function(e){return Array.isArray(e)?e:e instanceof Set?ke(e):[]};return this.skillAreaOptions.filter(function(n){var r;return!!n&&(!!e.has(n.value)||(!(null===(r=n.values)||void 0===r||!r.some(function(t){return e.has(t)}))||t(n.leafValues).some(function(t){return e.has(t)})))}).map(function(e){return e.value})}}),watch:{facets:{immediate:!0,deep:!0,handler:function(){this.initSkills(),this.syncSelections()}},currentRefinements:{immediate:!0,deep:!0,handler:function(){var e=this.nonSkillRefinementsSignature,t=e!==this.lastNonSkillSignature;t&&(this.lastNonSkillSignature=e),this.syncSelections(),this.emitSkillHierarchy()}}},methods:{normalizeFacetData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.map(function(e){var t,n;return"string"===typeof e?{value:e,count:0}:{value:e.value||e[0],count:null!==(t=null!==(n=e.count)&&void 0!==n?n:e[1])&&void 0!==t?t:0}}):Object.entries(e).map(function(e){var t=Ie(e,2),n=t[0],r=t[1];return{value:n,count:r}})},reset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";"skillArea"!==e&&"all"!==e||(this.skillAreaRemoteRows=null,this.skillAreaRemoteActive=!1,this.skillAreaLoading=!1)},initSkills:function(){var e,t=this,n=(null===(e=this.skillsFacet)||void 0===e?void 0:e.data)||[],r=this.normalizeFacetData(n);Array.isArray(r)&&r.forEach(function(e){var n=e||{},r=n.value;r&&t.skillFacetRowStore.set(r,e)})},createSkillAreaFilteredOptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.skillAreaOptions,n=new Map,r=Array.isArray(e)?e:[];return r.forEach(function(e){var r,i,a,o=(0,K.rP)(e.value),l=o.focus,s=o.subdomain,c=o.skillArea;if(l&&s&&c){var u="".concat(l," > ").concat(s," > ").concat(c),h=t.find(function(e){return e.value===u});n.set(u,h?je(je({},h),{},{count:null!==(r=null!==(i=e.count)&&void 0!==i?i:h.count)&&void 0!==r?r:0}):{value:u,label:c,info:s?"from ".concat(s):"",count:null!==(a=e.count)&&void 0!==a?a:0,values:[e.value],leafValues:[]})}}),ke(n.values())},buildGroups:function(){var e=this,t=new Set,n=new Set,r=new Set;
1return this.selectedSubdomainsUI.forEach(function(n){var r,i=e.subdomainOptions.find(function(e){return e.value===n});i&&(t.add(n),null===(r=i.values)||void 0===r||r.forEach(function(e){return t.add(e)}))}),this.selectedSkillAreaValues.forEach(function(t){var i,a,o=e.skillAreaOptions.find(function(e){return e.value===t});o&&(n.add(o.value),null===(i=o.values)||void 0===i||i.forEach(function(e){var t=(0,K.zZ)(e);t.length>=4?r.add(e):n.add(e)}),null===(a=o.leafValues)||void 0===a||a.forEach(function(e){return r.add(e)}))}),{subdomains:ke(t),skillAreas:ke(n),skills:ke(r)}},emitSkillHierarchy:function(){this.$emit("skill-hierarchy-change",this.buildGroups())},syncSelections:function(){var e=new Set(this.selectedLearningAreas),t=new Set(this.subdomainOptions.map(function(e){return e.value})),n=new Set;this.selectedSkillFacetValues.forEach(function(r){var i=(0,K.rP)(r),a=i.focus,o=i.subdomain;if(a&&o&&(!e.size||e.has(a))){var l="".concat(a," > ").concat(o);t.size&&!t.has(l)||n.add(l)}}),this.selectedSubdomainsUI=ke(n)},toggleSubdomain:function(e){var t=this,n=e.value,r=this.subdomainOptions.find(function(e){return e.value===n});if(r){var i=new Set(this.selectedSubdomainsUI),a=new Set(this.selectedSkillFacetValues),o=this.skillRowMap.has(n);if(i.has(n))i.delete(n),this.clearBySubdomain(n);else{i.add(n);var l=o?[n]:r.values;l.forEach(function(e){a.has(e)||t.$emit("update-filters",{facet:t.skillsFacetName,value:e})})}this.selectedSubdomainsUI=ke(i),this.reset("skillArea")}},clearBySubdomain:function(e){var t=this,n=(0,K.zZ)(e),r=Ie(n,2),i=r[0],a=r[1],o=this.selectedSkillFacetValues.filter(function(e){var t=(0,K.rP)(e);return t.focus===i&&t.subdomain===a}).reverse();o.forEach(function(e){return t.$emit("update-filters",{facet:t.skillsFacetName,value:e})})},clearBySkillArea:function(e){var t=this,n=(0,K.rP)(e);if(n.skillArea){var r=this.selectedSkillFacetValues.filter(function(e){var t=(0,K.rP)(e);return t.focus===n.focus&&t.subdomain===n.subdomain&&t.skillArea===n.skillArea}).reverse();r.forEach(function(e){return t.$emit("update-filters",{facet:t.skillsFacetName,value:e})})}},clearSubdomains:function(){var e=this;this.selectedSubdomainsUI.forEach(function(t){return e.clearBySubdomain(t)}),this.selectedSubdomainsUI=[],this.reset("skillArea")},toggleSkillArea:function(e){var t,n=this,r=e.value,i=this.skillAreaOptions.find(function(e){return e.value===r});if(i){var a=new Set(this.selectedSkillFacetValues),o=a.has(i.value)||(i.values||[]).some(function(e){return a.has(e)})||(i.leafValues||[]).some(function(e){return a.has(e)});if(this.clearBySkillArea(r),o)this.reset("skillArea");else{var l=this.skillRowMap.has(i.value)||(null===(t=this.skillAreaRemoteRows)||void 0===t?void 0:t.some(function(e){return e.value===i.value})),s=Array.isArray(i.leafValues)?i.leafValues:[];if(l)return s.forEach(function(e){a.has(e)&&n.$emit("update-filters",{facet:n.skillsFacetName,value:e})}),this.$emit("update-filters",{facet:this.skillsFacetName,value:i.value}),void this.reset("skillArea");var c=i.values.every(function(e){return a.has(e)});i.values.forEach(function(e){!c&&a.has(e)||n.$emit("update-filters",{facet:n.skillsFacetName,value:e})})}}},clearSkillAreas:function(){var e=this;this.selectedSkillAreaValues.forEach(function(t){return e.clearSkill(t)})},clearSkill:function(e){var t=this,n=this.skillAreaOptions.find(function(t){return t.value===e});n&&[].concat(ke(n.leafValues||[]),ke(n.values||[])).forEach(function(e){t.selectedSkillFacetValues.includes(e)&&t.$emit("update-filters",{facet:t.skillsFacetName,value:e})})},searchSkillAreas:function(e){var t=this;return Ae(ye().m(function n(){var r,i,a,o,l;return ye().w(function(n){while(1)switch(n.p=n.n){case 0:if(r="string"===typeof e?e.trim():"",r&&"function"===typeof t.searchFacetValues){n.n=1;break}return t.reset("skillArea"),n.a(2);case 1:return t.skillAreaLoading=!0,t.skillAreaRemoteActive=!0,n.p=2,n.n=3,t.searchFacetValues({facet:t.skillsFacetName,query:r,maxFacetHits:Ne});case 3:if(l=n.v,l){n.n=4;break}l=[];case 4:i=l,a=new Set(t.selectedLearningAreas),o=r.toLowerCase(),t.skillAreaRemoteRows=i.map(function(e){return je(je({},e),{},{parsed:(0,K.rP)(e.value)})}).filter(function(e){var t=e.parsed,n=t.focus,r=t.subdomain,i=t.skillArea;return!!(n&&r&&i)&&(!(a.size&&!a.has(n))&&i.toLowerCase().includes(o))}).map(function(e){var t;return{value:e.value,count:null!==(t=e.count)&&void 0!==t?t:0}}),n.n=6;break;case 5:n.p=5,n.v,t.skillAreaRemoteRows=[];case 6:return n.p=6,t.skillAreaLoading=!1,n.f(6);case 7:return n.a(2)}},n,null,[[2,5,6,7]])}))()}}};const Qe=(0,fe.A)(Me,[["render",I],["__scopeId","data-v-1050e962"]]);var Ve=Qe,Ge={key:0,ref:"panel",class:"search-suggestions flat-scroll",role:"listbox"},Ue={key:0,class:"search-suggestions__section-title"},ze={class:"search-suggestions__items"},Xe=["data-section-index","data-item-index","onMousedown","onMouseenter"],$e={class:"search-suggestions__item-content"},Ke=["innerHTML"],qe={key:0,class:"search-suggestions__item-subtitle"};function Be(e,t,n,o,l,s){return(0,r.uX)(),(0,r.Wv)(a.eB,{name:"fade"},{default:(0,r.k6)(function(){return[s.shouldRender?((0,r.uX)(),(0,r.CE)("div",Ge,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(s.normalizedSections,function(e,t){return(0,r.uX)(),(0,r.CE)("div",{key:e.key,class:"search-suggestions__section"}
1,[e.title?((0,r.uX)(),(0,r.CE)("p",Ue,(0,i.v_)(e.title),1)):(0,r.Q3)("",!0),(0,r.Lk)("ul",ze,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.items,function(n,o){return(0,r.uX)(),(0,r.CE)("li",{key:n.id,class:(0,i.C4)(["search-suggestions__item",s.isItemActive(t,o)&&"search-suggestions__item--active"]),role:"option",ref_for:!0,ref:"suggestionItems","data-section-index":t,"data-item-index":o,onMousedown:(0,a.D$)(function(t){return s.handleSelect(e,n,t)},["prevent"]),onMouseenter:function(e){return s.setActiveSuggestion(t,o)}},[(0,r.Lk)("div",$e,[(0,r.Lk)("span",{class:"search-suggestions__item-label",innerHTML:s.formatHighlightedLabel(n.label)},null,8,Ke),n.subtitle?((0,r.uX)(),(0,r.CE)("span",qe,(0,i.v_)(n.subtitle),1)):(0,r.Q3)("",!0)])],42,Xe)}),128))])])}),128))],512)):(0,r.Q3)("",!0)]}),_:1})}var We=n(3118);function Ye(e){return Ye="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},Ye(e)}function Ze(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ct(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function Je(e){return nt(e)||tt(e)||ct(e)||et()}function et(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function nt(e){if(Array.isArray(e))return ut(e)}function rt(){/*! 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",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return it(c,"_invoke",function(n,r,i){var a,l,s,c=0,u=i||[],h=!1,f={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return a=t,l=0,s=e,f.n=n,o}};function d(n,r){for(l=n,s=r,t=0;!h&&c&&!i&&t<u.length;t++){var i,a=u[t],d=f.p,p=a[2];n>3?(i=p===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=d&&((i=n<2&&d<a[1])?(l=0,f.v=r,f.n=a[1]):d<p&&(i=n<3||a[0]>r||r>p)&&(a[4]=n,a[5]=r,f.n=p,l=0))}if(i||n>1)return o;throw h=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&d(u,p),l=u,s=p;(t=l<2?e:s)||!h;){a||(l?l<3?(l>1&&(f.n=-1),d(l,s)):f.n=s:f.v=s);try{if(c=2,a){if(l||(i="next"),t=a[i]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);a=e}else if((t=(h=f.n<0)?s:n.call(r,f))!==o)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:h}}}(n,i,a),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(it(t={},r,function(){return this}),t),h=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,it(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return s.prototype=c,it(h,"constructor",c),it(c,"constructor",s),s.displayName="GeneratorFunction",it(c,i,"GeneratorFunction"),it(h),it(h,i,"Generator"),it(h,r,function(){return this}),it(h,"toString",function(){return"[object Generator]"}),(rt=function(){return{w:a,m:f}})()}function it(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}it=function(e,t,n,r){function a(t,n){it(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},it(e,t,n,r)}function at(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function ot(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){at(a,r,i,o,l,"next",e)}function l(e){at(a,r,i,o,l,"throw",e)}o(void 0)})}}function lt(e,t){return ft(e)||ht(e,t)||ct(e,t)||st()}
1function st(){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 ct(e,t){if(e){if("string"==typeof e)return ut(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)?ut(e,t):void 0}}function ut(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 ht(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function ft(e){if(Array.isArray(e))return e}function dt(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach(function(t){vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vt(e,t,n){return(t=mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e){var t=gt(e,"string");return"symbol"==Ye(t)?t:t+""}function gt(e,t){if("object"!=Ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var yt=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},St=me.A.SEARCH.SUGGESTIONS,bt=St.SKILLS_HIERARCHICAL,At=St.INSTRUCTORS,kt={DEFAULT_HIT_LIMIT:12,MIN_QUERY_LENGTH:2,search_items:{skills_hierarchical:{facet:bt,title:"Skills",hits:5,hitLimit:24},contents:{hits:5},instructors:{facet:At,title:"Instructor",hits:2}}},_t={name:"SearchSuggestions",mixins:[We.XR],emits:["select-hit","select-facet","active-selection-change","toggle-open"],props:{query:{type:String,default:""},inputWrapper:{type:[HTMLElement,Object],default:null},inputElement:{type:[HTMLElement,Object],default:null},debounceDelay:{type:Number,default:300},submissionToken:{type:Number,default:0}},data:function(){return{internalSections:[],requestId:0,debouncedLoader:null,currentConfig:{},localFacetConfigs:[],algoliaIndex:null,isOpen:!1,suppressNextQuery:!1,activeIndex:-1,activeSectionIndex:-1,activeItemIndex:-1}},computed:pt(pt(pt({},(0,y.aH)({filterMap:function(e){return e.search.filterMap}})),(0,y.L8)({hierarchicalSkillsEnabled:"featureFlags/hierarchicalSkillsEnabled"})),{},{normalizedSections:function(){return(this.internalSections||[]).map(function(e){return{key:e.key||e.type||e.title,title:e.title||"",type:e.type||"generic",facet:e.facet||null,items:(e.items||[]).map(function(t){return pt(pt({},t),{},{id:t.id||"".concat(e.key||e.type||"item","-").concat(t.value||t.label||t.objectID||Math.random())})})}})},hasSuggestions:function(){return this.normalizedSections.some(function(e){return e.items.length})},normalizedQuery:function(){return(this.query||"").trim()},highlightPattern:function(){var e=this.normalizedQuery;if(!e)return null;try{return new RegExp("(".concat(yt(e),")"),"ig")}catch(t){return null}},facetSettings:function(){var e=this;return(this.localFacetConfigs||[]).filter(function(t){return!e.isSkillFacet(t.facet)||e.hierarchicalSkillsEnabled}).map(function(t){return pt(pt({},t),{},{title:t.title||e.resolveFacetLabel(t.facet)||e.formatFacetName(t.facet),limit:"number"===typeof t.limit&&t.limit>0?t.limit:kt.DEFAULT_HIT_LIMIT})})},shouldRender:function(){return!!this.isOpen&&(!!this.hasSuggestions&&this.normalizedQuery.length>0)},exclusionFacetFilters:function(){return this.exclusionFilters.map(function(e){var t=e.facet,n=e.value;return["".concat(t,":-").concat(n)]})}}),watch:{query:{immediate:!0,handler:function(e,t){this.suppressNextQuery?this.suppressNextQuery=!1:e!==t&&this.handleQueryChange(e)}},isOpen:function(e){this.$emit("toggle-open",Boolean(e)),e||this.resetActiveSuggestion()},normalizedSections:function(){this.resetActiveSuggestion()},inputElement:{immediate:!0,handler:function(e,t){this.detachInputListeners(t),this.attachInputListeners(e)}},debounceDelay:function(){this.initializeDebouncedLoader(),this.refreshSuggestions()},algoliaKeys:{deep:!0,immediate:!0,handler:function(){this.initializeAlgoliaClient(),this.refreshSuggestions()}},submissionToken:function(){this.handleExternalSubmission()},activeIndex:function(){this.emitActiveSelectionState()}},mounted:function(){this.setCurrentConfig(),this.setLocalFacets(),this.initializeAlgoliaClient(),this.initializeDebouncedLoader(),document.addEventListener("click",this.handleOutsideClick)},beforeUnmount:function(){this.cancelLoader(),document.removeEventListener("click",this.handleOutsideClick),this.detachInputListeners(this.inputElement)},methods:{attachInputListeners:function(e){null!==e&&void 0!==e&&e.addEventListener&&(e.addEventListener("keydown",this.handleInputKeydown),e.addEventListener("focus",this.handleInputFocus))},detachInputListeners:function(e){null!==e&&void 0!==e&&e.removeEventListener&&(e.removeEventListener("keydown",this.handleInputKeydown),e.removeEventListener("focus",this.handleInputFocus))},handleInputFocus:function(){this.hasSuggestions&&(this.isOpen=!0)},setCurrentConfig:function(){var e={search_items:{}};
1Object.entries(kt.search_items).forEach(function(t){var n=lt(t,2),r=n[0],i=n[1];e.search_items[r]=pt(pt({},i),{},{currentHits:0,values:null})}),this.currentConfig=e.search_items},setLocalFacets:function(){this.localFacetConfigs=Object.values(kt.search_items).filter(function(e){return e.facet}).map(function(e){return{facet:e.facet||null,key:e.facet||null,title:e.title||"",limit:e.hits||null}})},initializeAlgoliaClient:function(){var e,t=null===(e=this.algoliaKeys)||void 0===e?void 0:e.searchIndex;t&&this.algoliaClient?this.algoliaIndex&&this.algoliaIndex.indexName===t||(this.algoliaIndex=this.algoliaClient.initIndex(t)):this.algoliaIndex=null},initializeDebouncedLoader:function(){var e=this;this.cancelLoader(),this.debouncedLoader=G()(function(t){return e.loadSuggestions(t)},this.debounceDelay)},cancelLoader:function(){this.debouncedLoader&&this.debouncedLoader.cancel&&this.debouncedLoader.cancel(),this.debouncedLoader=null},refreshSuggestions:function(){this.normalizedQuery?this.handleQueryChange(this.query):this.internalSections=[]},handleQueryChange:function(e){var t="string"===typeof e?e.trim():"";if(!t)return this.requestId+=1,this.internalSections=[],this.cancelLoader(),void(this.isOpen=!1);this.debouncedLoader||this.initializeDebouncedLoader(),this.debouncedLoader(t),this.hasSuggestions&&(this.isOpen=!0)},loadSuggestions:function(e){var t=this;return ot(rt().m(function n(){var r,i,a,o,l,s,c;return rt().w(function(n){while(1)switch(n.n){case 0:if(r=kt.MIN_QUERY_LENGTH,t.algoliaIndex&&!(e.length<r)){n.n=1;break}return t.internalSections=[],t.isOpen=!1,n.a(2);case 1:return i=++t.requestId,n.n=2,Promise.all([t.loadHitSuggestions(e,i),t.loadFacetSuggestions(e,i)]);case 2:if(a=n.v,o=lt(a,2),l=o[0],s=o[1],i===t.requestId){n.n=3;break}return n.a(2);case 3:c=t.mixSuggestions(l,s,e),c.length?(t.internalSections=[{key:"mixed",type:"mixed",title:"",items:c}],t.hasSuggestions&&(t.isOpen=!0)):(t.internalSections=[],t.isOpen=!1);case 4:return n.a(2)}},n)}))()},loadHitSuggestions:function(e,t){var n=this;return ot(rt().m(function r(){var i;return rt().w(function(r){while(1)switch(r.p=r.n){case 0:return r.p=0,r.n=1,n.algoliaIndex.search(e,{hitsPerPage:kt.DEFAULT_HIT_LIMIT,facetFilters:n.exclusionFacetFilters});case 1:if(i=r.v,t===n.requestId){r.n=2;break}return r.a(2,[]);case 2:return r.a(2,null===i||void 0===i?void 0:i.hits.map(function(e){return n.normalizeHitSuggestion(e)}).filter(Boolean));case 3:return r.p=3,r.v,r.a(2,[])}},r,null,[[0,3]])}))()},loadFacetSuggestions:function(e,t){var n=this;return ot(rt().m(function r(){var i,a;return rt().w(function(r){while(1)switch(r.n){case 0:return i=n.facetSettings.map(function(){var t=ot(rt().m(function t(r){var i,a,o,l;return rt().w(function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,i=n.isSkillFacet(r.facet),t.n=1,n.algoliaIndex.searchForFacetValues(r.facet,e,{facetFilters:n.exclusionFacetFilters,maxFacetHits:i?24:kt.DEFAULT_HIT_LIMIT});case 1:return a=t.v,o=(null===a||void 0===a?void 0:a.facetHits)||[],i&&(l=(e||"").toLowerCase(),o=o.filter(function(e){var t,n=(0,K.rP)(e.value||""),r=n.segments;if(!Array.isArray(r))return!1;var i=null===(t=r[3])||void 0===t?void 0:t.trim();return!(!i||!l)&&r.some(function(e){return(e||"").toLowerCase().includes(l)})})),t.a(2,{config:r,suggestions:o});case 2:return t.p=2,t.v,t.a(2,{config:r,suggestions:[]})}},t,null,[[0,2]])}));return function(e){return t.apply(this,arguments)}}()),r.n=1,Promise.all(i);case 1:if(a=r.v,t===n.requestId){r.n=2;break}return r.a(2,[]);case 2:return r.a(2,a.reduce(function(e,t){var r=t.config,i=t.suggestions,a=(i||[]).map(function(e){return n.normalizeFacetSuggestion(e,r)}).filter(Boolean).sort(function(e,t){var n,r;return(null!==(n=t.count)&&void 0!==n?n:0)-(null!==(r=e.count)&&void 0!==r?r:0)});if(!a.length)return e;var o=r.key||r.facet;return e[o]={key:o,title:r.title||"",items:a},e},{}))}},r)}))()},mixSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=(null!==n&&void 0!==n?n:"").trim().toLowerCase(),i=kt.search_items,a=Object.entries(i).map(function(n){var r,i=lt(n,2),a=i[0],o=i[1],l=o.facet?Je((null===(r=t[o.facet])||void 0===r?void 0:r.items)||[]):Je(e);return{key:a,title:o.title||a,queue:l,defaultLimit:o.hits}}),o=a.filter(function(e){return e.queue.length});if(!o.length)return[];var l,s=o.reduce(function(e,t){return e+t.queue.length},0),c=Math.min(kt.DEFAULT_HIT_LIMIT,s),u={},h=Ze(o);try{for(h.s();!(l=h.n()).done;){var f=l.value;u[f.key]=Math.min(f.defaultLimit,f.queue.length)}}catch(L){h.e(L)}finally{h.f()}var d=Object.values(u).reduce(function(e,t){return e+t},0),p=c-d;while(p>0){var v=o.filter(function(e){return e.queue.length>u[e.key]}).sort(function(e,t){return t.queue.length-e.queue.length});if(!v.length)break;var m,g=Ze(v);try{for(g.s();!(m=g.n()).done;){var y=m.value;if(p<=0)break;u[y.key]+=1,p-=1}}catch(L){g.e(L)}finally{g.f()}}var S=o.flatMap(function(e){return e.queue.splice(0,u[e.key])});if(!r)return S;var b,A=[],k=[],_=Ze(S);try{for(_.s();!(b=_.n()).done;){var F,w,I=b.value,O=(null!==(F=null!==(w=null===I||void 0===I?void 0:I.label)&&void 0!==w?w:null===I||void 0===I?void 0:I.value)&&void 0!==F?F:"").toString().toLowerCase();O.includes(r)?A.push(I):k.push(I)}}catch(L){_.e(L)}finally{_.f()}return A.concat(k)},formatFacetName:function(e){return e?e.toString().replace(/[_.]/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}):""},resolveFacetLabel:function(e){var t,n,r;return e&&((null===(t=this.filterMap)||void 0===t?void 0:t[e])||(null===(n=me.A.SEARCH)||void 0===n||null===(r=n.FILTER_MAP)||void 0===r?void 0:r[e]))||""},formatFacetValue:function(e){var t,n,r;return e?(null===(t=this.filterMap)||void 0===t?void 0:t[e])||(null===(n=me.A.SEARCH)||void 0===n||null===(r=n.FILTER_MAP)||void 0===r?void 0:r[e])||this.formatFacetName(e):""},normalizeHitSuggestion:function(e){if(!e)return null;var t=e.title||e.name||e.course_name||e.objectID||"";if(!t)return null;var n=e.content_type||e.type||e.contentType,r=n?this.formatFacetValue(n):"";return{id:"hit-".concat(e.objectID||t),label:t,subtitle:r,type:"hit",payload:e,query:t}},normalizeFacetSuggestion:function(e,t){if(null===e||void 0===e||!e.value)return null;var n="number"===typeof e.count?e.count:null;return{id:"".concat(t.key||t.facet,"-").concat(e.value),label:this.formatFacetValue(e.value),subtitle:t.title||"",value:e.value,count:n,meta:n&&n>0?"".concat(n," result").concat(1===n?"":"s"):null,facet:t.facet,type:"facet",single:Boolean(t.single)}},formatHighlightedLabel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return this.highlightPattern?t.replace(this.highlightPattern,'<mark style="background: var(--purple-pale-80);">$1</mark>'):t},handleSelect:function(e,t){t&&("facet"!==t.type?"hit"!==t.type||this.applyHitSelection(t):this.applyFacetSelection(t))},handleOutsideClick:function(e){if(this.isOpen){var t=this.$refs.panel;if(!t||!t.contains(e.target)){var n=this.inputWrapper;n&&n.contains(e.target)||(this.isOpen=!1)}}},handleInputKeydown:function(e){var t=e.key,n=["ArrowDown","ArrowUp","Enter","Escape"];if(n.includes(t))if(this.isOpen)switch(t){case"ArrowDown":e.preventDefault(),this.moveSelectionDown();break;case"ArrowUp":e.preventDefault(),this.moveSelectionUp();break;case"Enter":this.hasActiveSelection()&&(e.preventDefault(),this.selectActiveSuggestion());break;case"Escape":this.isOpen=!1,this.resetActiveSuggestion();break}else"ArrowDown"===t&&this.hasSuggestions&&(e.preventDefault(),this.hasSuggestions&&(this.isOpen=!0),this.moveSelectionDown())},applyFacetSelection:function(e){this.suppressNextQuery=!0,this.$emit("select-facet",{facet:e.facet,value:e.value,single:Boolean(e.single)}),this.resetSuggestions()},applyHitSelection:function(e){null!==e&&void 0!==e&&e.query?(this.suppressNextQuery=!0,this.$emit("select-hit",{query:e.query}),this.resetSuggestions()):this.resetSuggestions()},resolveHitLink:function(e){if(!e||!this.$buildContentLink)return null;var t=e.content_type||e.type;if(!t)return null;try{return this.$buildContentLink(t,e,e.parent)}catch(n){return null}},resetSuggestions:function(){this.internalSections=[],this.isOpen=!1},suppressNextQueryUpdate:function(){this.suppressNextQuery=!0,this.cancelLoader()},handleExternalSubmission:function(){this.suppressNextQueryUpdate(),this.resetSuggestions()},isItemActive:function(e,t){return this.activeSectionIndex===e&&this.activeItemIndex===t},getFlattenedSuggestions:function(){var e=[];return this.normalizedSections.forEach(function(t,n){t.items.forEac
1h(function(r,i){e.push({section:t,item:r,sIndex:n,iIndex:i})})}),e},moveSelectionDown:function(){if(this.isOpen){var e=this.getFlattenedSuggestions();e.length&&(this.activeIndex<e.length-1&&this.activeIndex++,this.applyActiveIndex())}},moveSelectionUp:function(){if(this.isOpen){var e=this.getFlattenedSuggestions();if(e.length&&-1!==this.activeIndex){if(0===this.activeIndex)return this.activeIndex=-1,void this.resetActiveSuggestion();this.activeIndex--,this.applyActiveIndex()}}},applyActiveIndex:function(){var e=this.getFlattenedSuggestions(),t=this.activeIndex>-1?e[this.activeIndex]:void 0;t?(this.activeSectionIndex=t.sIndex,this.activeItemIndex=t.iIndex,this.scrollActiveItemIntoView()):this.resetActiveSuggestion()},setActiveSuggestion:function(e,t){this.activeSectionIndex=e,this.activeItemIndex=t;var n=this.getFlattenedSuggestions(),r=n.findIndex(function(n){return n.sIndex===e&&n.iIndex===t});this.activeIndex=r,this.scrollActiveItemIntoView()},resetActiveSuggestion:function(){this.activeIndex=-1,this.activeSectionIndex=-1,this.activeItemIndex=-1},hasActiveSelection:function(){return this.activeIndex>-1},emitActiveSelectionState:function(){this.$emit("active-selection-change",this.hasActiveSelection())},selectActiveSuggestion:function(){if(this.hasActiveSelection()){var e=this.getFlattenedSuggestions(),t=e[this.activeIndex];t&&this.handleSelect(t.section,t.item)}},scrollActiveItemIntoView:function(){var e=this;if(this.isOpen){var t=this.$refs.suggestionItems;if(t){var n=function(t){return t.find(function(t){var n=Number(t.dataset.sectionIndex),r=Number(t.dataset.itemIndex);return n===e.activeSectionIndex&&r===e.activeItemIndex})},r=Array.isArray(t)?n(t):t;null!==r&&void 0!==r&&r.scrollIntoView&&r.scrollIntoView({block:"nearest"})}}},isSkillFacet:function(e){var t;return e===(null===(t=kt.search_items.skills_hierarchical)||void 0===t?void 0:t.facet)}}};const Ft=(0,fe.A)(_t,[["render",Be],["__scopeId","data-v-11bdf10d"]]);var wt=Ft,It=n(62658),Ot=n(15254),Lt=n(82929),Ct=n(61354),Et=n(33213),Rt=n(87448),Tt=n(60875),jt={class:"search"},xt={class:"search__section-container"},Ht={class:"search__input-wrapper",ref:"searchInputWrapper"},Pt={key:0,class:"search__suggestions-separator"},Dt={class:"search__total-results-wrapper"},Nt={class:"search__filter-tags-wrapper"},Mt={class:"search__filters-wrapper__mobile-header"},Qt={class:"search__sort-wrapper"},Vt={key:0,class:"search__results-wrapper"},Gt={key:1,class:"search__no-results-wrapper"};function Ut(e,t,n,l,s,c){var u=(0,r.g2)("SearchIcon"),h=(0,r.g2)("XIcon"),f=(0,r.g2)("SearchSuggestions"),d=(0,r.g2)("FilterTags"),p=(0,r.g2)("ArrowLeftIcon"),v=(0,r.g2)("ContentFilters"),m=(0,r.g2)("Dropdown"),g=(0,r.g2)("ContentList"),y=(0,r.g2)("FilterIcon");return(0,r.uX)(),(0,r.CE)("section",jt,[t[11]||(t[11]=(0,r.Lk)("h2",{class:"sr-only"},"Search",-1)),(0,r.Lk)("div",xt,[(0,r.Lk)("div",{class:(0,i.C4)(["search__section-wrapper",s.suggestionsOpened&&"search__section-wrapper--modal-open"])},[(0,r.Lk)("div",Ht,[(0,r.bF)(u,{class:"search__input-wrapper__search-icon",size:"24",role:"button",tabindex:"0",onClick:c.handleManualSearch},null,8,["onClick"]),(0,r.bo)((0,r.Lk)("input",{ref:"searchInput",class:"ine-input-ghost","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.searchQuery=t}),placeholder:"Search...",onKeydown:t[1]||(t[1]=(0,a.jR)((0,a.D$)(function(){return c.handleManualSearch&&c.handleManualSearch.apply(c,arguments)},["prevent"]),["enter"])),onInput:t[2]||(t[2]=function(t){return e.searchQuery=t.target.value})},null,544),[[a.Jo,e.searchQuery]]),(0,r.bo)((0,r.bF)(h,{class:"search__input-wrapper__x-icon",size:"16",onClick:c.clearSearchQuery},null,8,["onClick"]),[[a.aG,e.searchQuery]])],512),s.suggestionsOpened?((0,r.uX)(),(0,r.CE)("div",Pt)):(0,r.Q3)("",!0),e.searchSuggestionsEnabled?((0,r.uX)(),(0,r.Wv)(f,{key:1,class:"search__suggestions",query:e.searchQuery,"input-wrapper":e.$refs.searchInputWrapper,"input-element":e.$refs.searchInput,"submission-token":s.suggestionsSubmissionToken,onSelectHit:c.handleSuggestionHit,onSelectFacet:c.handleSuggestionFacet,onToggleOpen:t[3]||(t[3]=function(e){return s.suggestionsOpened=e})},null,8,["query","input-wrapper","input-element","submission-token","onSelectHit","onSelectFacet"])):(0,r.Q3)("",!0)],2)]),(0,r.Lk)("div",Dt,(0,i.v_)(c.searchLabel),1),(0,r.Lk)("div",Nt,[(0,r.bF)(d,{currentRefinements:c.currentRefinements,filterMap:e.filterMap,legacyLayout:!0,onRemoveFilter:c.updateFiltersAndSearch,onClearFilters:c.clearFilterAndSearch},null,8,["currentRefinements","filterMap","onRemoveFilter","onClearFilters"])]),(0,r.bo)((0,r.Lk)("div",{class:(0,i.C4)(["search__filters-wrapper",[s.isFiltersModalOpen&&"search__filters-wrapper--modal-open flat-scroll"]])},[(0,r.Lk)("div",Mt,[(0,r.Lk)("button",{class:"search__filters-wrapper__mobile-header__back-btn btn btn--tertiary btn--default-icon-color",onClick:t[4]||(t[4]=function(e){return s.isFiltersModalOpen=!1})},[(0,r.bF)(p,{size:"25",class:"search__filters-wrapper__mobile-header__back-btn__icon"}
1),t[7]||(t[7]=(0,r.Lk)("span",null," Filter Results ",-1))]),(0,r.Lk)("button",{class:"search__filters-wrapper__mobile-header__clear-btn btn btn--tertiary",onClick:t[5]||(t[5]=function(){return c.clearFilterAndSearch&&c.clearFilterAndSearch.apply(c,arguments)})},t[8]||(t[8]=[(0,r.Lk)("span",null," Clear filters ",-1)]))]),(0,r.bF)(v,{filters:c.asideFilters,filterMap:e.filterMap,currentRefinements:c.currentRefinements,isFreeTrialUser:e.isFreeTrialUser,onUpdateFilters:c.updateFiltersAndSearch},null,8,["filters","filterMap","currentRefinements","isFreeTrialUser","onUpdateFilters"])],2),[[a.aG,c.hits.length]]),(0,r.bo)((0,r.Lk)("div",Qt,[t[9]||(t[9]=(0,r.Lk)("span",{class:"search__sort-wrapper__label"},"Sort by:",-1)),(0,r.bF)(m,{options:s.sortingOptions,selectedOption:s.sortingSelected,handleSelection:c.handleSortChange},null,8,["options","selectedOption","handleSelection"])],512),[[a.aG,c.hits.length]]),c.hits.length?((0,r.uX)(),(0,r.CE)("div",Vt,[(0,r.bF)(g,{items:c.hits,searchIndex:c.algoliaHelper,isFreeTrialUser:e.isFreeTrialUser,onElementRendered:c.handleRememberPosition},null,8,["items","searchIndex","isFreeTrialUser","onElementRendered"])])):((0,r.uX)(),(0,r.CE)("div",Gt,t[10]||(t[10]=[(0,r.Lk)("img",{class:"search__no-results-wrapper__img",src:o,alt:"NO RESULTS"},null,-1),(0,r.Lk)("h5",{class:"search__no-results-wrapper__error"}," Oops! We couldn't find any results matching your search. ",-1),(0,r.Lk)("p",{class:"search__no-results-wrapper__instruction"}," Please try searching for something else. ",-1)]))),(0,r.bo)((0,r.Lk)("button",{class:(0,i.C4)(["search__open-filters-btn",Object.values(c.currentRefinements).flat().length&&"search__open-filters-btn--filtered"]),onClick:t[6]||(t[6]=function(e){return s.isFiltersModalOpen=!0})},[(0,r.bF)(y,{size:"16"})],2),[[a.aG,c.hits.length]])])}function zt(e){return zt="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},zt(e)}function Xt(){/*! 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",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return $t(c,"_invoke",function(n,r,i){var a,l,s,c=0,u=i||[],h=!1,f={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return a=t,l=0,s=e,f.n=n,o}};function d(n,r){for(l=n,s=r,t=0;!h&&c&&!i&&t<u.length;t++){var i,a=u[t],d=f.p,p=a[2];n>3?(i=p===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=d&&((i=n<2&&d<a[1])?(l=0,f.v=r,f.n=a[1]):d<p&&(i=n<3||a[0]>r||r>p)&&(a[4]=n,a[5]=r,f.n=p,l=0))}if(i||n>1)return o;throw h=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&d(u,p),l=u,s=p;(t=l<2?e:s)||!h;){a||(l?l<3?(l>1&&(f.n=-1),d(l,s)):f.n=s:f.v=s);try{if(c=2,a){if(l||(i="next"),t=a[i]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);a=e}else if((t=(h=f.n<0)?s:n.call(r,f))!==o)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:h}}}(n,i,a),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):($t(t={},r,function(){return this}),t),h=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$t(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return s.prototype=c,$t(h,"constructor",c),$t(c,"constructor",s),s.displayName="GeneratorFunction",$t(c,i,"GeneratorFunction"),$t(h),$t(h,i,"Generator"),$t(h,r,function(){return this}),$t(h,"toString",function(){return"[object Generator]"}),(Xt=function(){return{w:a,m:f}})()}function $t(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}$t=function(e,t,n,r){function a(t,n){$t(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},$t(e,t,n,r)}function Kt(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function qt(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){Kt(a,r,i,o,l,"next",e)}function l(e){Kt(a,r,i,o,l,"throw",e)}o(void 0)})}}function Bt(e,t){return en(e)||Jt(e,t)||Yt(e,t)||Wt()}
1function Wt(){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 Yt(e,t){if(e){if("string"==typeof e)return Zt(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)?Zt(e,t):void 0}}function Zt(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 Jt(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function en(e){if(Array.isArray(e))return e}function tn(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 nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach(function(t){rn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rn(e,t,n){return(t=an(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e){var t=on(e,"string");return"symbol"==zt(t)?t:t+""}function on(e,t){if("object"!=zt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ln={facet:me.A.ALGOLIA_FACETS.CONTENT_TYPE,value:"bootcamp"},sn={facet:me.A.ALGOLIA_FACETS.CONTENT_TYPE,value:"collection"},cn={facet:me.A.ALGOLIA_FACETS.IS_LAB_EXPERIENCE,value:"true"},un=[me.A.ALGOLIA_FACETS.HAS_LABS,me.A.ALGOLIA_FACETS.HAS_CC,me.A.ALGOLIA_FACETS.HAS_CERTIFICATIONS],hn="feature",fn="skill dive",dn={name:"Search",components:{ContentFilters:b.A,SearchIcon:U.WI,ArrowLeftIcon:U.A6,FilterIcon:U.YG,ContentList:A.A,XIcon:U.uv,FilterTags:Rt.A,Dropdown:ve.A,SearchSuggestions:wt},mixins:[We.XR,We.L5],metaInfo:function(){var e=(this.stateQuery||"").trim();return{title:e?'Search "'.concat(e,'"'):"Search All Content",meta:[{vmid:"robots",name:"robots",content:"noindex"}]}},data:function(){return{isFiltersModalOpen:!1,suggestionsOpened:!1,suggestionsSubmissionToken:0,searchStorage:(0,S.y6)(),sortingSelected:{label:"Recommended",value:"recommended"},sortingOptions:[{label:"Recommended",value:"recommended"},{label:"Name (A - Z)",value:"name"},{label:"CPE Credits",value:"cpe"}]}},computed:nn(nn(nn({},(0,y.aH)({algoliaKeys:function(e){return e.search.algoliaKeys},filterMap:function(e){return e.search.filterMap},stateQuery:function(e){return e.search.searchQuery},features:function(e){return e.search.features},skillDive:function(e){return e.search.skillDive},isAuthenticated:function(e){return e.auth.isAuthenticated}})),(0,y.L8)({isFreeTrialUser:"auth/isFreeTrialUser",showSkillDiveResults:"labExperience/showSkillDiveResults",searchSuggestionsEnabled:"featureFlags/searchSuggestionsEnabled",searchFacets:"search/facets"})),{},{asideFilters:function(){return this.currentFacetCounts.filter(function(e){return e.name!==me.A.ALGOLIA_FACETS.SKILLS_HIERARCHICAL})},exclusionFilters:function(){var e=[ln,sn];return this.showSkillDiveResults||e.push(cn),e},algoliaHelper:function(){return this.algoliaHelpers[this.algoliaKeys.searchIndex]},totalResults:function(){var e,t;return(null===(e=this.algoliaHelper)||void 0===e||null===(t=e.lastResults)||void 0===t?void 0:t.nbHits)||0},hits:function(){return this.getIndexHits(this.algoliaKeys.searchIndex)},labHits:function(){var e=me.A.CONTENT_TYPES.LAB;return this.hits.filter(function(t){return t.content_type===e})},searchLabel:function(){var e=this.searchSuggestionsEnabled?"":" for “".concat(this.searchQuery,"”"),t=this.searchQuery?e:"";return"".concat(this.totalResults," results ").concat(t)},currentRefinements:function(){var e=this,t=this.algoliaHelper.state.disjunctiveFacetsRefinements,n={};return Object.entries(t).forEach(function(t){var r=Bt(t,2),i=r[0],a=r[1];a.length&&(un.includes(i)?(n.feature=n.feature||[],n.feature.push(i)):e.skillDive.includes(i)?n[fn]=[me.A.ALGOLIA_FACETS.IS_LAB_EXPERIENCE]:n[i]=a)}),n},currentFacetCounts:function(){var e,t,n=(null===(e=this.algoliaHelper)||void 0===e||null===(t=e.lastResults)||void 0===t?void 0:t.disjunctiveFacets)||[],r={name:hn,data:{}},i={name:fn,data:{},single:!0,icon:Et},a=[];
1return n.forEach(function(e){switch(e.name){case me.A.ALGOLIA_FACETS.HAS_LABS:case me.A.ALGOLIA_FACETS.HAS_CC:case me.A.ALGOLIA_FACETS.HAS_CERTIFICATIONS:r.data[e.name]=e.data.true;break;case me.A.ALGOLIA_FACETS.IS_LAB_EXPERIENCE:i.data[e.name]=e.data.true;break;case me.A.ALGOLIA_FACETS.CONTENT_TYPE:var t=nn({},e);delete t.data.collection,delete t.data.bootcamp,a.push(t);break;default:a.push(e);break}}),Object.keys(r.data).length&&a.splice(1,0,r),this.showSkillDiveResults&&Object.keys(i.data).length&&a.splice(1,0,i),a}}),watch:{labHits:{handler:function(e){e.length&&this.updateLabStatuses({ids:e.map(function(e){var t=e.objectID;return t}).join(",")})}}},created:function(){var e=this;return qt(Xt().m(function t(){return Xt().w(function(t){while(1)switch(t.n){case 0:return t.n=1,e.createAlgoliaSearchInstance();case 1:e.handleAlgoliaLazyLoad(e.algoliaKeys.searchIndex);case 2:return t.a(2)}},t)}))()},beforeUnmount:function(){(0,S.KP)(this.page),window.removeEventListener("scroll",this.handleScroll)},methods:nn(nn({},(0,y.i0)("labs",["updateLabStatuses"])),{},{applyExcludeFilters:function(){var e=this;this.exclusionFilters.forEach(function(t){var n=t.facet,r=t.value;e.algoliaHelper.addFacetExclusion(n,r)})},syncInputValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.$refs.searchInput;if(t&&(t.value!==e&&(t.value=e),"function"===typeof t.setSelectionRange)){var n=e.length;try{t.setSelectionRange(n,n)}catch(r){return}}},handleRememberPosition:function(e){var t=this;e===this.searchStorage.searchTile&&setTimeout(function(){t.$scrollTo("#".concat(e),1e3,{container:"body",offset:-150}),(0,S.pJ)(),t.searchStorage=nn(nn({},t.searchStorage),{},{searchTile:""})},1e3)},clearSearchQuery:function(){this.searchQuery="",this.syncInputValue(""),this.$refs.searchInput.focus()},handleManualSearch:function(){var e;if(!this.hasActiveSuggestion){var t=(null===(e=this.searchQuery)||void 0===e?void 0:e.trim())||"";this.triggerSuggestionsSubmission(),this.runSearch(t)}},triggerSuggestionsSubmission:function(){this.suggestionsSubmissionToken+=1},handleSuggestionHit:function(e){var t=e.query,n=(t||"").trim();this.searchQuery=n,this.syncInputValue(n),this.runSearch(n)},handleSuggestionFacet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.facet,n=e.value,r=e.single,i=void 0!==n&&null!==n;t&&i&&(this.setQuery(""),this.runSearch(""),this.syncInputValue(""),this.updateFiltersAndSearch({facet:t,value:n,single:r}))},handleActiveSuggestionChange:function(e){this.hasActiveSuggestion=Boolean(e)},runSearch:function(e){var t;this.setQuery(e);var n=null===(t=this.algoliaKeys)||void 0===t?void 0:t.searchIndex;n&&this.handleAlgoliaSearchQuery(n,e)},updateFiltersAndSearch:function(e){var t=e.facet,n=e.value,r=this.algoliaKeys.searchIndex;switch(t){case hn:case fn:this.toggleAlgoliaFilterAnd(r,{facet:n,value:"true"});break;default:this.toggleAlgoliaFilterOr(r,{facet:t,value:n})}},handleSortChange:function(e){var t,n=this.algoliaKeys,r=n.searchIndex,i=n.searchIndexNameAsc,a=n.searchIndexCpeDesc;switch(e.value){case"recommended":t=r;break;case"name":t=i;break;case"cpe":t=a;break}this.algoliaHelper.setIndex(t),this.sortingSelected=e,this.algoliaHelper.search()},clearFilterAndSearch:function(){this.clearAlgoliaRefinements(this.algoliaKeys.searchIndex),this.applyExcludeFilters(),this.handleAlgoliaSearchQuery(this.algoliaKeys.searchIndex,this.stateQuery)},createAlgoliaSearchInstance:function(){var e=this;
1return qt(Xt().m(function t(){var n,r,i;return Xt().w(function(t){while(1)switch(t.n){case 0:return n=e.algoliaKeys.searchIndex,r={facets:e.exclusionFilters.map(function(e){var t=e.facet;return t}),disjunctiveFacets:e.searchFacets.CONTENT,hitsPerPage:20},i={useUrl:!0,useDebounceSearchQuery:!0},t.n=1,e.initializeAlgoliaSearch(n,r,i);case 1:e.applyExcludeFilters(),e.searchQuery&&e.algoliaHelper.setQuery(e.searchQuery),e.algoliaHelper.search();case 2:return t.a(2)}},t)}))()}})};const pn=(0,fe.A)(dn,[["render",Ut],["__scopeId","data-v-4fc2e856"]]);var vn=pn;function mn(e){return mn="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},mn(e)}function gn(){/*! 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",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return yn(c,"_invoke",function(n,r,i){var a,l,s,c=0,u=i||[],h=!1,f={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return a=t,l=0,s=e,f.n=n,o}};function d(n,r){for(l=n,s=r,t=0;!h&&c&&!i&&t<u.length;t++){var i,a=u[t],d=f.p,p=a[2];n>3?(i=p===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=d&&((i=n<2&&d<a[1])?(l=0,f.v=r,f.n=a[1]):d<p&&(i=n<3||a[0]>r||r>p)&&(a[4]=n,a[5]=r,f.n=p,l=0))}if(i||n>1)return o;throw h=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&d(u,p),l=u,s=p;(t=l<2?e:s)||!h;){a||(l?l<3?(l>1&&(f.n=-1),d(l,s)):f.n=s:f.v=s);try{if(c=2,a){if(l||(i="next"),t=a[i]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);a=e}else if((t=(h=f.n<0)?s:n.call(r,f))!==o)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:h}}}(n,i,a),!0),c}var o={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(yn(t={},r,function(){return this}),t),h=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yn(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return s.prototype=c,yn(h,"constructor",c),yn(c,"constructor",s),s.displayName="GeneratorFunction",yn(c,i,"GeneratorFunction"),yn(h),yn(h,i,"Generator"),yn(h,r,function(){return this}),yn(h,"toString",function(){return"[object Generator]"}),(gn=function(){return{w:a,m:f}})()}function yn(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}yn=function(e,t,n,r){function a(t,n){yn(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},yn(e,t,n,r)}function Sn(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function bn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){Sn(a,r,i,o,l,"next",e)}function l(e){Sn(a,r,i,o,l,"throw",e)}o(void 0)})}}function An(e){return Fn(e)||_n(e)||On(e)||kn()}function kn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Fn(e){if(Array.isArray(e))return Ln(e)}function wn(e,t){return En(e)||Cn(e,t)||On(e,t)||In()}function In(){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 On(e,t){if(e){if("string"==typeof e)return Ln(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)?Ln(e,t):void 0}}function Ln(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 Cn(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}
1finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function En(e){if(Array.isArray(e))return e}function Rn(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 Tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach(function(t){jn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jn(e,t,n){return(t=xn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xn(e){var t=Hn(e,"string");return"symbol"==mn(t)?t:t+""}function Hn(e,t){if("object"!=mn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Pn=[me.A.ALGOLIA_FACETS.HAS_LABS,me.A.ALGOLIA_FACETS.HAS_CC,me.A.ALGOLIA_FACETS.HAS_CERTIFICATIONS],Dn="feature",Nn="skill dive",Mn="learning_areas.name",Qn={name:"Search",components:{ContentFilters:b.A,SearchSuggestions:wt,SearchIcon:It.A,ArrowLeftIcon:Ct.A,FilterIcon:Lt.A,ContentList:A.A,XIcon:Ot.A,SearchResultFilters:Ve,FilterTags:Rt.A,LoadingSpinner:Tt.A,SearchLegacy:vn},mixins:[We.XR,We.L5],metaInfo:function(){var e=(this.stateQuery||"").trim();return{title:e?'Search "'.concat(e,'"'):"Search All Content",meta:[{vmid:"robots",name:"robots",content:"noindex"}]}},data:function(){return{isFiltersModalOpen:!1,suggestionsOpened:!1,hasActiveSuggestion:!1,suggestionsSubmissionToken:0,searchStorage:(0,S.y6)(),sortingSelected:{label:"Relevance",value:"recommended"},sortingOptions:[{label:"Relevance",value:"recommended"},{label:"Name (A - Z)",value:"name"},{label:"CPE Credits",value:"cpe"}],skillHierarchyFilterExpression:void 0,isInitialSearchLoading:!0}},computed:Tn(Tn(Tn({},(0,y.aH)({algoliaKeys:function(e){return e.search.algoliaKeys},filterMap:function(e){return e.search.filterMap},stateQuery:function(e){return e.search.searchQuery},features:function(e){return e.search.features},searchFacets:function(e){return e.search.facets},skillDive:function(e){return e.search.skillDive},isAuthenticated:function(e){return e.auth.isAuthenticated}})),(0,y.L8)({isFreeTrialUser:"auth/isFreeTrialUser",searchSuggestionsEnabled:"featureFlags/searchSuggestionsEnabled",hierarchicalSkillsEnabled:"featureFlags/hierarchicalSkillsEnabled",selectedRefinements:"search/selectedRefinements"})),{},{algoliaHelper:function(){return this.algoliaHelpers[this.algoliaKeys.searchIndex]},totalResults:function(){var e,t;return(null===(e=this.algoliaHelper)||void 0===e||null===(t=e.lastResults)||void 0===t?void 0:t.nbHits)||0},hits:function(){return this.getIndexHits(this.algoliaKeys.searchIndex)},labHits:function(){var e=me.A.CONTENT_TYPES.LAB;return this.hits.filter(function(t){return t.content_type===e})},searchLabel:function(){return"".concat(this.totalResults," ").concat(this.$pluralizeWord("result",this.totalResults))},currentRefinements:function(){var e=this,t={},n=this.selectedRefinements||{};return Object.entries(n).forEach(function(n){var r=wn(n,2),i=r[0],a=r[1];Array.isArray(a)&&a.length&&(Pn.includes(i)?(t.feature=t.feature||[],t.feature.push(i)):e.skillDive.includes(i)?t[Nn]=[me.A.ALGOLIA_FACETS.IS_LAB_EXPERIENCE]:t[i]=An(a))}),t},asideFilters:function(){return this.currentFacetCounts.filter(function(e){return e.name!==me.A.ALGOLIA_FACETS.SKILLS_HIERARCHICAL})},currentFacetCounts:function(){var e,t,n=(null===(e=this.algoliaHelper)||void 0===e||null===(t=e.lastResults)||void 0===t?void 0:t.disjunctiveFacets)||[],r={name:Dn,data:{}},i={name:Nn,data:{},single:!0,icon:Et},a=[];return n.forEach(function(e){switch(e.name){case me.A.ALGOLIA_FACETS.HAS_LABS:case me.A.ALGOLIA_FACETS.HAS_CC:case me.A.ALGOLIA_FACETS.HAS_CERTIFICATIONS:r.data[e.name]=e.data.true;break;case me.A.ALGOLIA_FACETS.IS_LAB_EXPERIENCE:i.data[e.name]=e.data.true;break;case me.A.ALGOLIA_FACETS.CONTENT_TYPE:var t=Tn({},e);delete t.data.collection,delete t.data.bootcamp,a.push(t);break;default:a.push(e);break}}),Object.keys(r.data).length&&a.splice(1,0,r),this.showSkillDiveResults&&Object.keys(i.data).length&&a.splice(1,0,i),a}}),watch:{labHits:{handler:function(e){e.length&&this.updateLabStatuses({ids:e.map(function(e){var t=e.objectID;return t}).join(",")})}}},created:function(){var e=this;return bn(gn().m(function t(){var n;return gn().w(function(t){while(1)switch(t.n){case 0:return t.n=1,e.createAlgoliaSearchInstance();case 1:n=function(){e.isInitialSearchLoading&&(e.isInitialSearchLoading=!1,e.algoliaHelper.removeListener("result",n),e.algoliaHelper.removeListener("error",n))},e.algoliaHelper.on("result",n),e.algoliaHelper.on("error",n),e.algoliaHelper.search(),e.handleAlgoliaLazyLoad(e.algoliaKeys.searchIndex);case 2:return t.a(2)}},t)}))()},beforeUnmount:function(){(0,S.KP)(this.page),window.removeEventListener("scroll",this.handleScroll),this.setRefinements({})},methods:Tn(Tn(Tn({},(0,y.i0)("labs",["updateLabStatuses"])),(0,y.i0)("search",["setRefinements"])),{},{syncInputValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.$refs.searchInput;if(t&&(t.value!==e&&(t.value=e),"function"===typeof t.setSelectionRange)){var n=e.length;try{t.setSelectionRange(n,n)}catch(r){return}}},clearSearchQuery:function(){var e=this;this.searchQuery="",this.syncInputValue(""),this.hasActiveSuggestion=!1,this.suggestionsOpened=!1,this.triggerSuggestionsSubmission(),this.runSearch(""),this.$nextTick(function(){var t;return null===(t=e.$refs.searchInput)||void 0===t?void 0:t.focus()})},handleRememberPosition:function(e){var t=this;e===this.searchStorage.searchTile&&setTimeout(function(){t.$scrollTo("#".concat(e),1e3,{container:"body",offset:-150}),(0,S.pJ)(),t.searchStorage=Tn(Tn({},t.searchStorage),{},{searchTile:""})},1e3)},runSearch:function(e){var t;this.setQuery(e);var n=null===(t=this.algoliaKeys)||void 0===t?void 0:t.searchIndex;n&&this.handleAlgoliaSearchQuery(n,e)},triggerSuggestionsSubmission:function(){this.suggestionsSubmissionToken+=1},handleManualSearch:function(){var e;if(!this.hasActiveSuggestion){var t=(null===(e=this.searchQuery)||void 0===e?void 0:e.trim())||"";this.triggerSuggestionsSubmission(),this.runSearch(t)}},handleSuggestionHit:function(e){var t=e.query,n=(t||"").trim();this.searchQuery=n,this.syncInputValue(n),this.runSearch(n)},handleSuggestionFacet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.facet,n=e.value,r=e.single,i=void 0!==n&&null!==n;t&&i&&(this.setQuery(""),this.runSearch(""),this.syncInputValue(""),this.updateFiltersAndSearch({facet:t,value:n,single:r}))},handleActiveSuggestionChange:function(e){this.hasActiveSuggestion=Boolean(e)},handleContentSkillFacet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.facet,n=e.value;t&&n&&this.updateFiltersAndSearch({facet:t,value:n})},resolveFacetSelectionValue:function(e){if("string"===typeof e)return e.trim();if(!e||"object"!==mn(e))return"";var t=[e.name,e.label,e.value],n=t.find(function(e){return"string"===typeof e&&e.trim().length});return n?n.trim():""},handleInstructorFacetSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.resolveFacetSelectionValue(e);t&&this.updateFiltersAndSearch({facet:me.A.SEARCH.SUGGESTIONS.INSTRUCTORS,value:t})},handleContentLearningAreaFacetSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.resolveFacetSelectionValue(e);t&&this.updateFiltersAndSearch({facet:me.A.SEARCH.SUGGESTIONS.LEARNING_AREAS,value:t})},updateFiltersAndSearch:function(e){var t=e.facet,n=e.value,r=e.single,i=e.ski
1pDependencies,a=void 0!==i&&i,o=this.algoliaKeys.searchIndex,l=this.algoliaHelper;if(l){if(a||t!==me.A.ALGOLIA_FACETS.SKILLS_HIERARCHICAL||this.ensureLearningAreaForSkill(n,l),r){var s,c,u=(null===(s=l.state)||void 0===s||null===(c=s.disjunctiveFacetsRefinements)||void 0===c?void 0:c[t])||[],h=u.includes(n);!h&&u.length&&(l.clearRefinements(t),this.applyExcludeFilters())}switch(t){case Dn:case Nn:this.toggleAlgoliaFilterAnd(o,{facet:n,value:"true"});break;case me.A.ALGOLIA_FACETS.SKILLS_HIERARCHICAL:this.toggleAlgoliaFilterOr(o,{facet:t,value:n},!0);break;default:this.toggleAlgoliaFilterOr(o,{facet:t,value:n})}this.syncSelectedRefinementsFromHelper()}},ensureLearningAreaForSkill:function(e,t){var n,r,i=(0,K.zZ)(e||""),a=wn(i,1),o=a[0];if(o){var l=t||this.algoliaHelper,s=(null===(n=l.state)||void 0===n||null===(r=n.disjunctiveFacetsRefinements)||void 0===r?void 0:r[Mn])||[];s.includes(o)||l.addDisjunctiveFacetRefinement(Mn,o)}},handleSortChange:function(e){var t,n=this.algoliaKeys,r=n.searchIndex,i=n.searchIndexNameAsc,a=n.searchIndexCpeDesc;switch(e.value){case"recommended":t=r;break;case"name":t=i;break;case"cpe":t=a;break}t||(t=r),this.algoliaHelper.setIndex(t),this.sortingSelected=e,this.algoliaHelper.search()},applySkillHierarchyFilters:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.subdomains,n=void 0===t?[]:t,r=e.skillAreas,i=void 0===r?[]:r,a=e.skills,o=void 0===a?[]:a,l=this.algoliaHelper;if(l){var s=function(e,t){if(!Array.isArray(e))return[];var n=e.filter(function(e){return"string"===typeof e&&e.trim().length}).map(function(e){return e.trim()}).filter(function(e){return"number"!==typeof t||(0,K.zZ)(e).length===t}),r=new Set(n);return An(r).sort(function(e,t){return e.localeCompare(t)})},c=function(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')},u=function(e){return Array.isArray(e)&&e.length?e.map(function(e){return"".concat(me.A.ALGOLIA_FACETS.SKILLS_HIERARCHICAL,':"').concat(c(e),'"')}).join(" OR "):""},h=[],f=u(s(n,2)),d=u(s(i,3)),p=u(s(o,4));f&&h.push("(".concat(f,")")),d&&h.push("(".concat(d,")")),p&&h.push("(".concat(p,")"));var v=h.length?h.join(" AND "):void 0;v!==this.skillHierarchyFilterExpression&&(this.skillHierarchyFilterExpression=v,l.setQueryParameter("filters",v),l.search())}},clearFacetFilters:function(e){var t=e.facet,n=this.algoliaHelper;n&&(n.clearRefinements(t),this.applyExcludeFilters(),this.syncSelectedRefinementsFromHelper(),t===me.A.ALGOLIA_FACETS.SKILLS_HIERARCHICAL&&(this.skillHierarchyFilterExpression=void 0,n.setQueryParameter("filters",void 0)),n.search())},clearFilterAndSearch:function(){this.clearAlgoliaRefinements(this.algoliaKeys.searchIndex),this.skillHierarchyFilterExpression=void 0,this.algoliaHelper.setQueryParameter("filters",void 0),this.applyExcludeFilters(),this.syncSelectedRefinementsFromHelper(),this.handleAlgoliaSearchQuery(this.algoliaKeys.searchIndex,this.stateQuery)},searchFacetValues:function(){var e=arguments,t=this;return bn(gn().m(function n(){var r,i,a,o,l,s,c,u,h;return gn().w(function(n){while(1)switch(n.p=n.n){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:{},i=r.facet,a=r.query,o=void 0===a?"":a,l=r.maxFacetHits,s=void 0===l?100:l,c=t.algoliaHelper,c&&i){n.n=1;break}return n.a(2,[]);case 1:return u="string"===typeof o?o.trim():"",n.p=2,n.n=3,c.searchForFacetValues(i,u,s);case 3:if(h=n.v,null!==h&&void 0!==h&&h.facetHits){n.n=4;break}return n.a(2,[]);case 4:return n.a(2,h.facetHits.filter(function(e){return!(null===e||void 0===e||!e.value)}).map(function(e){var t;return{value:e.value,count:null!==(t=e.count)&&void 0!==t?t:0}}));case 5:return n.p=5,n.v,n.a(2,[])}},n,null,[[2,5]])}))()},getHelperRefinementsSnapshot:function(){var e,t,n=this.algoliaHelper;if(!n)return{};var r={},i=function(e){Object.entries(e||{}).forEach(function(e){var t=wn(e,2),n=t[0],i=t[1];if(Array.isArray(i)){var a=i.filter(function(e){return void 0!==e&&null!==e&&"".concat(e).length}).map(function(e){return"".concat(e)});a.length&&(r[n]=a)}})};return i((null===(e=n.state)||void 0===e?void 0:e.disjunctiveFacetsRefinements)||{}),i((null===(t=n.state)||void 0===t?void 0:t.facetsRefinements)||{}),r}
1,syncSelectedRefinementsFromHelper:function(){var e=this.getHelperRefinementsSnapshot();this.setRefinements(e)},createAlgoliaSearchInstance:function(){var e=this;return bn(gn().m(function t(){var n,r,i;return gn().w(function(t){while(1)switch(t.n){case 0:return n=e.algoliaKeys.searchIndex,r={facets:e.exclusionFilters.map(function(e){var t=e.facet;return t}),disjunctiveFacets:e.searchFacets.CONTENT,hitsPerPage:20,maxValuesPerFacet:1e3},i={useUrl:!0,useDebounceSearchQuery:!0},t.n=1,e.initializeAlgoliaSearch(n,r,i);case 1:e.applyExcludeFilters(),e.syncSelectedRefinementsFromHelper(),e.searchQuery&&e.algoliaHelper.setQuery(e.searchQuery);case 2:return t.a(2)}},t)}))()}})};const Vn=(0,fe.A)(Qn,[["render",g],["__scopeId","data-v-773d1322"]]);var Gn=Vn}}]);

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.