"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(function(){return(self.webpackChunk=self.webpackChunk||[]).push([[131],{1529:(e,t,r)=>{function n(e,t){t&&e.focus()}r.d(t,{Z:()=>n})},4733:(e,t,r)=>{r.r(t),r(9877),r(9652),r(7295),r(3751),r(9642),r(9635),r(7283),r(9536),r(7211),r(2677),r(8411),r(9798),r(1854),r(9870),r(2208),r(2420),r(6995),r(2696),r(4436),r(623),r(6056),r(3081);var n,o=r(2576),i=(r(8830),r(166),r(1403),r(605),r(9894),r(8375),r(6451),r(9947),r(5143),r(8579),r(3175),r(2430),r(9081)),a=r(1786),c=r(9776),s=r(8817),u=r(61);function l(e){return l="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},l(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b,g,m,S,v,_,w=(0,c.Z)(a,[JSON.parse('{"en_US":{"search_selected_product_label":"{:selectedProductName} Help"}}')],!1),I=(0,i.mf)((0,i.Of)({id:"Q+6vtLe1",block:'[[[1,"\\n    "],[1,"\\n\\n    "],[11,"button"],[16,0,[29,[[30,0,["buttonClasses"]]]]],[16,1,[29,[[30,0,["elementId"]]]]],[24,"role","option"],[16,"aria-selected",[29,[[30,0,["isSelected"]]]]],[16,"tabindex",[29,[[30,0,["elementTabindex"]]]]],[24,"data-test-selector","productor-selector-item"],[24,4,"button"],[4,[32,0],["click",[30,0,["selectProduct"]]],null],[12],[1,"\\n      "],[1,[28,[32,1],["search_selected_product_label"],[["selectedProductName"],[[30,0,["args","model","productNameShort"]]]]]],[1,"\\n    "],[13],[1,"\\n"]],[],false,[]]',moduleName:"(unknown template module)",scope:function(){return[u.on,w]},isStrictMode:!0}),(n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(n);if(o){var r=y(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return h(this,e)});function a(){return d(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"isSelected",get:function(){return this.args.model===this.args.selectedProduct}},{key:"elementId",get:function(){return"product-select-item-".concat(this.args.model.productKey)}},{key:"elementTabindex",get:function(){return this.isSelected?"0":"-1"}},{key:"buttonClasses",get:function(){var e="site-search-product-selector__menu-item";return this.isSelected&&(e+=" site-search-product-selector__menu-item--selected"),e+" t-14 t-bold t-black--light t-14--open dropdown__menu-item"}},{key:"selectProduct",value:function(){this.args.handleSelectProduct(this.args.model)}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.ZP),b=n.prototype,g="selectProduct",m=[u.a],S=Object.getOwnPropertyDescriptor(n.prototype,"selectProduct"),v=n.prototype,_={},Object.keys(S).forEach((function(e){_[e]=S[e]})),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=m.slice().reverse().reduce((function(e,t){return t(b,g,e)||e}),_),v&&void 0!==_.initializer&&(_.value=_.initializer?_.initializer.call(v):void 0,_.initializer=void 0),void 0===_.initializer&&(Object.defineProperty(b,g,_),_=null),n));function O(e){return O="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},O(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function j(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var D=(0,c.Z)(a,[JSON.parse('{"en_US":{"a11y_header_search_product_selector_target_aria_label":"LinkedIn products to search, {:selectedProductName} Help","a11y_header_search_product_selector_aria_label":"LinkedIn products to search","search_selected_product_label":"{:selectedProductName} Help"}}')],!1),C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=x(n);if(o){var r=x(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return j(this,e)});function a(){return T(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"activeDescendantId",get:function(){return"product-select-item-".concat(this.args.selectedProduct.productKey)}},{key:"menuDivId",get:function(){return this.args.searchId+"-product-selector__menu"}},{key:"buttonAriaControls",get:function(){return this.args.searchId+"-product-selector__menu"}}])&&P(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.ZP);(0,i.mf)((0,i.Of)({id:"G+4WvL1T",block:'[[[1,"\\n    "],[1,"\\n    "],[1,"\\n    "],[1,"\\n\\n    "],[10,0],[14,0,"site-search-product-selector dropdown__container"],[14,"data-test-selector","product-selector-container"],[12],[1,"\\n      "],[10,"button"],[14,0,"site-search-product-selector__trigger dropdown__trigger"],[15,"aria-controls",[29,[[30,0,["buttonAriaControls"]]]]],[14,"aria-expanded","false"],[14,"aria-haspopup","listbox"],[15,"aria-label",[29,[[28,[32,0],["a11y_header_search_product_selector_target_aria_label"],[["selectedProductName"],[[30,1,["productNameShort"]]]]]]]],[14,"data-test-id","product-selector-dropdown"],[14,4,"button"],[12],[1,"\\n"],[1,"        "],[10,1],[14,0,"t-16 t-black--light t-bold dropdown__trigger-label"],[14,"data-test-selector","product-selector-label"],[12],[1,"\\n          "],[1,[28,[32,0],["search_selected_product_label"],[["selectedProductName"],[[30,1,["productNameShort"]]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,"li-icon"],[14,0,"svg-icon site-search-product-selector__trigger-button-caret"],[14,"size","small"],[14,"aria-hidden","true"],[14,4,"caret-filled-down-icon"],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[15,1,[29,[[30,0,["menuDivId"]]]]],[14,0,"site-search-product-selector__menu dropdown__menu"],[14,"role","listbox"],[14,"aria-hidden","true"],[15,"aria-activedescendant",[29,[[30,0,["activeDescendantId"]]]]],[15,"aria-label",[29,[[28,[32,0],["a11y_header_search_product_selector_aria_label"],null]]]],[14,"tabindex","-1"],[14,"data-test-selector","product-selector-menu"],[12],[1,"\\n"],[42,[30,2],null,[[[1,"          "],[8,[32,1],null,[["@handleSelectProduct","@model","@selectedProduct"],[[30,4],[30,3],[30,1]]],null],[1,"\\n"]],[3]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],["@selectedProduct","@productList","product","@handleSelectProduct"],false,["each"]]',moduleName:"(unknown template module)",scope:function(){return[D,I]},isStrictMode:!0}),C);var E,R=r(1529);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 N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B(e,t){return B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},B(e,t)}function K(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}var A,q=(0,i.mf)((0,i.Of)({id:"0/aChkSU",block:'[[[1,"\\n    "],[11,"li"],[16,0,[29,[[30,0,["buttonClass"]]]]],[16,1,[30,0,["itemId"]]],[24,"tabindex","-1"],[24,"role","option"],[16,"aria-selected",[29,[[30,0,["isFocused"]]]]],[24,"data-test-selector","suggested-search-term-list-item"],[4,[32,0],[[30,0,["isFocused"]]],null],[4,[32,1],["mousedown",[30,0,["selectSuggestedSearchTerm"]]],null],[4,[32,1],["blur",[30,1]],null],[12],[1,"\\n      "],[10,"li-icon"],[14,0,"svg-icon suggested-search-term__icon"],[14,"size","small"],[14,4,"search-icon"],[12],[13],[1,"\\n      "],[1,[30,2]],[1,"\\n    "],[13],[1,"\\n  "]],["@handleBlur","@suggestedSearchTerm"],false,[]]',moduleName:"(unknown template module)",scope:function(){return[R.Z,u.on]},isStrictMode:!0}),(E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=L(n);if(o){var r=L(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return K(this,e)});function a(){return N(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"selectSuggestedSearchTerm",value:function(e){this.args.handleSelectSuggestedSearchTerm(e,this.args.suggestedSearchTerm)}},{key:"isFocused",get:function(){return this.args.termIndex===this.args.focusedIndex}},{key:"buttonClass",get:function(){var e="suggested-search-term";return this.isFocused&&(e+=" suggested-search-term--focused"),e}},{key:"itemId",get:function(){return"suggested-search-term-id-".concat(this.args.termIndex)}}])&&U(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.ZP),function(e,t,r,n,o){var i={};Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null)}(E.prototype,"selectSuggestedSearchTerm",[u.a],Object.getOwnPropertyDescriptor(E.prototype,"selectSuggestedSearchTerm"),E.prototype),E));function F(e){return F="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},F(e)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Z(e,t){return Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Z(e,t)}function J(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}var H,V,W,Y,X,$,ee,te,re,ne,oe=(0,c.Z)(a,[JSON.parse('{"en_US":{"typeahead-footer-button-text":"See all results"}}')],!1),ie=(0,i.mf)((0,i.Of)({id:"W7JJgdoW",block:'[[[1,"\\n  "],[1,"\\n\\n"],[41,[30,1],[[[1,"    "],[11,"ul"],[16,0,[32,0]],[16,"aria-labelledby",[29,[[30,2]]]],[24,"role","listbox"],[24,"tabindex","-1"],[16,1,[29,[[30,3]]]],[24,"data-test-id","site-search-typeahead"],[4,[32,1],["keydown",[30,4]],null],[12],[1,"\\n"],[42,[30,1],null,[[[1,"        "],[8,[32,2],null,[["@suggestedSearchTerm","@handleBlur","@handleSelectSuggestedSearchTerm","@focusedIndex","@termIndex"],[[30,5],[30,7],[30,8],[30,9],[30,6]]],null],[1,"\\n"]],[5,6]],null],[41,[51,[30,10]],[[[1,"        "],[11,"li"],[16,1,[30,0,["submitParentId"]]],[24,"role","option"],[16,"aria-selected",[29,[[30,0,["isSubmitFocused"]]]]],[16,0,[29,["typeahead__button ",[30,0,["buttonClass"]]," artdeco-button artdeco-button--tertiary artdeco-button--full t-14 t-bold"]]],[24,"tabindex","-1"],[24,"data-test-selector","site-search-typeahead-list-item"],[24,4,"submit"],[4,[32,3],[[30,0,["isSubmitFocused"]]],null],[4,[32,1],["click",[30,11]],null],[12],[1,"\\n          "],[1,[28,[32,4],["typeahead-footer-button-text"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"  "]],["@suggestedSearchTerms","@ariaLabelledBy","@listBoxId","@handleKeydown","suggestedSearchTerm","termIndex","@handleBlur","@handleSelectSuggestedSearchTerm","@focusedIndex","@isSubmitDisabled","@handleSeeAll"],false,["if","each","unless"]]',moduleName:"(unknown template module)",scope:function(){return["typeahead",u.on,q,R.Z,oe]},isStrictMode:!0}),(A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Q(n);if(o){var r=Q(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return J(this,e)});function a(){return M(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"handleKeydown",value:function(e){"function"==typeof this.args.handleKeydown&&this.args.handleKeydown(e)}},{key:"isSubmitFocused",get:function(){return this.args.focusedIndex===this.args.suggestedSearchTerms.length}},{key:"submitTabindex",get:function(){return this.isSubmitFocused?"0":"-1"}},{key:"submitParentId",get:function(){return"submit-search-id-".concat(this.args.suggestedSearchTerms.length+1)}},{key:"buttonClass",get:function(){return this.isSubmitFocused?"typeahead__button--focused":""}}])&&G(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.ZP),function(e,t,r,n,o){var i={};Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null)}(A.prototype,"handleKeydown",[u.a],Object.getOwnPropertyDescriptor(A.prototype,"handleKeydown"),A.prototype),A));function ae(e,t){var r=null;return function(){var n=this;null!==r&&clearTimeout(r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r=setTimeout.apply(void 0,[e.bind(n),t].concat(i))}}function ce(e){return ce="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},ce(e)}function se(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function de(e,t){return de=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},de(e,t)}function pe(e,t){if(t&&("object"===ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fe(e)}function fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function be(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var ge=(0,c.Z)(a,[JSON.parse('{"en_US":{"site_search_a11y_label":"What’s your question?","site_search_placeholder_text":"How can we help?","cancel_button_a11y_text":"Clear search","search_button_a11y_text":"Submit search","aria_active_message":"{:suggestionType,map,ONE_SUGGESTION#One suggestion. Use up and down keys to navigate.|MULTIPLE_SUGGESTIONS#Multiple suggestions. Use up and down keys to navigate.|NO_SUGGESTIONS#No suggestions found.}"}}')],!1),me="DEFAULT",Se="SUGGESTED",ve="site-search__input-button-and-popover-wrapper",_e=(0,i.mf)((0,i.Of)({id:"je6wRzbY",block:'[[[1,"\\n    "],[1,"\\n    "],[1,"\\n    "],[1,"\\n    "],[1,"\\n    "],[1,"\\n\\n    "],[10,"form"],[15,0,[29,[[30,0,["formClasses"]]]]],[14,3,"main-search"],[14,"role","search"],[15,"action",[29,[[30,0,["actionUrl"]]]]],[14,"autocomplete","off"],[14,"data-test-id","site-search-form"],[12],[1,"\\n      "],[8,[32,0],null,[["@classes","@displayDevice","@handleSelectProduct","@productList","@searchId","@selectedProduct"],[[30,1],[30,2],[30,0,["handleSelectProduct"]],[30,3],[30,4],[30,0,["selectedProduct"]]]],null],[1,"\\n      "],[10,"label"],[14,0,"site-search__label"],[15,"for",[29,[[30,0,["searchInputId"]]]]],[15,1,[29,[[30,0,["labelId"]]]]],[14,"data-test-selector","site-search-label"],[12],[1,"\\n        "],[1,[28,[32,1],["site_search_a11y_label"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[15,0,[32,2]],[12],[1,"\\n        "],[10,0],[14,0,"site-search__input-and-button-wrapper"],[15,1,[29,[[30,0,["comboBoxId"]]]]],[12],[1,"\\n"],[1,"          "],[10,0],[15,1,[29,[[30,0,["liveRegionId"]]]]],[14,"aria-live","polite"],[14,"role","status"],[14,0,"visually-hidden"],[14,"data-test-selector","site-search-live-region"],[12],[1,"\\n            "],[1,[28,[32,1],["aria_active_message"],[["suggestionType"],[[30,0,["ariaActiveMessage"]]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"site-search__input-wrapper"],[12],[1,"\\n            "],[11,"input"],[16,2,[29,[[30,0,["query"]]]]],[16,1,[29,[[30,0,["searchInputId"]]]]],[16,"data-test-id",[29,[[30,0,["searchInputId"]]]]],[24,0,"site-search__input t-16 t-black"],[24,3,"query"],[16,"placeholder",[29,[[28,[32,1],["site_search_placeholder_text"],null]]]],[24,"maxlength","255"],[24,"role","combobox"],[16,"aria-expanded",[29,[[30,0,["isTypeaheadDisplayed"]]]]],[16,"aria-controls",[29,[[30,0,["listBoxId"]]]]],[24,"aria-haspopup","listbox"],[16,"aria-activedescendant",[29,[[30,0,["activeDescendantId"]]]]],[24,"aria-autocomplete","list"],[24,4,"text"],[4,[32,3],[[30,0,["focusInput"]]],null],[4,[32,4],["input",[30,0,["handleInputInteraction"]]],null],[4,[32,4],["focus",[30,0,["handleFocus"]]],null],[4,[32,4],["keydown",[30,0,["handleInputKeydown"]]],null],[4,[32,4],["blur",[30,0,["handleBlur"]]],null],[12],[13],[1,"\\n            "],[11,"button"],[16,0,[29,[[30,0,["cancelIconClasses"]]]]],[24,"data-test-selector","site-search-clear-button"],[24,4,"reset"],[4,[32,4],["click",[30,0,["clearInput"]]],null],[12],[1,"\\n              "],[10,"li-icon"],[14,0,"svg-icon"],[14,"size","small"],[14,4,"cancel-icon"],[12],[13],[1,"\\n              "],[10,1],[14,0,"visually-hidden"],[12],[1,"\\n                "],[1,[28,[32,1],["cancel_button_a11y_text"],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,"button"],[14,0,"site-search__submit"],[15,"data-test-id",[29,[[30,0,["searchButtonId"]]]]],[15,"disabled",[30,0,["isSubmitDisabled"]]],[14,4,"submit"],[12],[1,"\\n            "],[10,"li-icon"],[14,0,"svg-icon"],[14,"size","small"],[14,4,"search-icon"],[12],[13],[1,"\\n            "],[10,1],[14,0,"visually-hidden"],[12],[1,"\\n              "],[1,[28,[32,1],["search_button_a11y_text"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["isTypeaheadDisplayed"]],[[[1,"          "],[8,[32,5],null,[["@ariaLabelledBy","@focusedIndex","@handleBlur","@handleKeydown","@handleSeeAll","@handleSelectSuggestedSearchTerm","@listBoxId","@suggestedSearchTerms","@isSubmitDisabled"],[[30,0,["labelId"]],[30,0,["focusedIndex"]],[30,0,["handleBlur"]],[30,0,["handleInputKeydown"]],[30,0,["submitForm"]],[30,0,["handleSelectSuggestedSearchTerm"]],[30,0,["listBoxId"]],[30,0,["suggestedSearchTerms"]],[30,0,["isSubmitDisabled"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],["@classes","@displayDevice","@productList","@searchId"],false,["if"]]',moduleName:"(unknown template module)",scope:function(){return[C,ge,ve,R.Z,u.on,ie]},isStrictMode:!0}),(H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=he(n);if(o){var r=he(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return pe(this,e)});function a(){var e;return ue(this,a),se(fe(e=i.apply(this,arguments)),"abortController",V,fe(e)),se(fe(e),"query",W,fe(e)),se(fe(e),"selectedProduct",Y,fe(e)),se(fe(e),"isSubmitDisabled",X,fe(e)),ye(fe(e),"defaultSuggestedSearchTerms",[]),se(fe(e),"suggestedSearchTerms",$,fe(e)),se(fe(e),"focusedIndex",ee,fe(e)),se(fe(e),"isTypeaheadDisplayed",te,fe(e)),se(fe(e),"ariaActiveMessage",re,fe(e)),se(fe(e),"focusInput",ne,fe(e)),e.fetchSuggestedSearchTerms=ae(e.fetchSuggestedSearchTerms,200),e.args.searchQuery===e.query&&(e.isSubmitDisabled=!0),e}return t=a,(r=[{key:"fetchDefaultSuggestedSearchTerms",value:function(){var e=this,t="/help/".concat(window.encodeURIComponent(this.selectedProduct.productKey),"/api/suggestedSearch");this.performQuery(t,!1).then((function(t){var r=t.suggestedSearchTerms;e.defaultSuggestedSearchTerms=r,0!==e.suggestedSearchTerms.length&&""!==e.query||(e.suggestedSearchTerms=e.defaultSuggestedSearchTerms),e.trackPopoverImpressionEvent()}))}},{key:"fetchSuggestedSearchTerms",value:function(){var e=this,t="/help/".concat(window.encodeURIComponent(this.selectedProduct.productKey),"/api/suggestedSearch/").concat(window.encodeURIComponent(this.query));this.performQuery(t,!0).then((function(t){var r=t.suggestedSearchTerms;e.suggestedSearchTerms=r,e.focusedIndex=-1,e.isTypeaheadDisplayed=!0,e.setAriaLiveMessage(),e.trackPopoverImpressionEvent()}))}},{key:"performQuery",value:function(e,t){return t?(null!==this.abortController&&this.abortController.abort(),this.abortController=new AbortController,fetch(e,{signal:this.abortController.signal}).then((function(e){return e.json()}))):fetch(e).then((function(e){return e.json()}))}},{key:"trackPopoverImpressionEvent",value:function(){var e="/help/".concat(window.encodeURIComponent(this.selectedProduct.productKey),"/api/suggestedSearch/track/trackTypeaheadPopoverImpression"),t={termsType:""===this.query?me:Se,suggestedTerms:this.suggestedSearchTerms};fetch(e,{method:"POST",headers:{"Content-Type":"application/json","Csrf-Token":this.args.csrfToken},body:JSON.stringify(t)}).then((function(e){return e.json()}))}},{key:"trackInteractionEvent",value:function(e){var t="/help/".concat(window.encodeURIComponent(this.selectedProduct.productKey),"/api/suggestedSearch/track/trackTypeaheadInteraction"),r={termsType:""===this.query?me:Se,selectedTermListPosition:this.suggestedSearchTerms.indexOf(this.query)+1,terms:this.suggestedSearchTerms,selectInteractionType:"click"===e.type?"CLICK":"ENTER",query:this.query};fetch(t,{method:"POST",headers:{"Content-Type":"application/json","Csrf-Token":this.args.csrfToken},body:JSON.stringify(r)}).then((function(e){return e.json()}))}},{key:"handleInputEmpty",value:function(){this.suggestedSearchTerms=this.defaultSuggestedSearchTerms,this.isSubmitDisabled=!0,this.isTypeaheadDisplayed=!0,this.setAriaLiveMessage()}},{key:"handleSelectSuggestedSearchTerm",value:function(e,t){this.trackInteractionEvent(e),this.query=t;var r=e.target.closest(".site-search");setTimeout((function(){return r.submit()}),100)}},{key:"submitForm",value:function(e){e.target.closest(".site-search").submit()}},{key:"handleFocus",value:function(e){0===this.defaultSuggestedSearchTerms.length&&this.fetchDefaultSuggestedSearchTerms(),0===this.suggestedSearchTerms.length?this.handleInputInteraction(e):this.isTypeaheadDisplayed=!0}},{key:"handleInputInteraction",value:function(e){var t=e.target.value;this.query=t,this.isSubmitDisabled=0===t.trim().length,t?this.fetchSuggestedSearchTerms():this.handleInputEmpty()}},{key:"handleInputKeydown",value:function(e){var t=this.isSubmitDisabled?this.suggestedSearchTerms.length-1:this.suggestedSearchTerms.length;switch(e.key){case"Down":case"ArrowDown":e.preventDefault(),this.handleKeyboardDown(t);break;case"Up":case"ArrowUp":e.preventDefault(),this.handleKeyboardUp(t);break;case"Esc":case"Escape":this.applyInputFocus(this.hideSuggestedSearchTerms);break;case"Enter":this.focusedIndex>-1&&(this.focusedIndex===this.suggestedSearchTerms.length?this.submitForm(e):this.handleSelectSuggestedSearchTerm(e,this.suggestedSearchTerms[this.focusedIndex]))}}},{key:"handleKeyboardUp",value:function(e){this.suggestedSearchTerms&&(this.isTypeaheadDisplayed=!0,this.focusedIndex<=0?this.focusedIndex=e:this.focusedIndex-=1)}},{key:"handleKeyboardDown",value:function(e){this.isTypeaheadDisplayed=!0,this.suggestedSearchTerms.length>0?this.focusedIndex===e?this.focusedIndex=0:this.focusedIndex+=1:(this.suggestedSearchTerms=this.defaultSuggestedSearchTerms,this.suggestedSearchTerms.length>0&&(this.focusedIndex=0))}},{key:"handleBlur",value:function(e){(null===e.relatedTarget||null!==e.relatedTarget&&!this.isComboboxContainerDescendent(e.relatedTarget))&&this.hideSuggestedSearchTerms()}},{key:"hideSuggestedSearchTerms",value:function(){this.isTypeaheadDisplayed&&(this.isTypeaheadDisplayed=!1,this.focusedIndex=-1)}},{key:"handleSelectProduct",value:function(e){this.selectedProduct=e,this.isSubmitDisabled=!1,this.fetchDefaultSuggestedSearchTerms(),this.query&&this.fetchSuggestedSearchTerms()}},{key:"setAriaLiveMessage",value:function(){1===this.suggestedSearchTerms.length?this.ariaActiveMessage="ONE_SUGGESTION":this.suggestedSearchTerms.length>1?this.ariaActiveMessage="MULTIPLE_SUGGESTIONS":this.ariaActiveMessage="NO_SUGGESTIONS"}},{key:"clearInput",value:function(e){this.query="";var t=e.target.closest(".site-search__input-wrapper"),r=t&&t.querySelector(".site-search__input");r&&r.focus(),this.fetchDefaultSuggestedSearchTerms()}},{key:"applyInputFocus",value:function(e){var t=this;this.focusInput=!0,setTimeout((function(){t.focusInput=!1,e()}),1)}},{key:"isComboboxContainerDescendent",value:function(e){return null!==e.closest(".".concat(ve))}},{key:"actionUrl",get:function(){var e=window.encodeURIComponent(this.selectedProduct.productKey),t=window.encodeURIComponent(this.query);return"/help/".concat(e,"/answers/").concat(t)}},{key:"formClasses",get:function(){var e="site-search",t="site-search--";return this.args.style&&(e+=" ".concat(t).concat(this.args.style)),this.args.classes&&(e+=" ".concat(t).concat(this.args.classes)),this.args.searchId&&(e+=" ".concat(t).concat(this.args.searchId)),e}},{key:"cancelIconClasses",get:function(){var e="site-search__cancel-icon";return""===this.query&&(e+=" site-search__cancel-icon--hidden"),e}},{key:"searchInputId",get:function(){return this.args.searchId+"-search-query"}},{key:"searchButtonId",get:function(){return this.args.searchId+"-search-button"}},{key:"activeDescendantId",get:function(){return this.focusedIndex>-1?"suggested-search-term-id-"+this.focusedIndex:""}},{key:"labelId",get:function(){return"typeahead-label-"+this.args.searchId}},{key:"listBoxId",get:function(){return"typeahead-listbox-"+this.args.searchId}},{key:"comboBoxId",get:function(){return"typeahead-combobox-"+this.args.searchId}},{key:"liveRegionId",get:function(){return"typeahead-live-region-"+this.args.searchId}}])&&le(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.ZP),V=be(H.prototype,"abortController",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=be(H.prototype,"query",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.searchQuery}}),Y=be(H.prototype,"selectedProduct",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.selectedProduct}}),X=be(H.prototype,"isSubmitDisabled",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$=be(H.prototype,"suggestedSearchTerms",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ee=be(H.prototype,"focusedIndex",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),te=be(H.prototype,"isTypeaheadDisplayed",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),re=be(H.prototype,"ariaActiveMessage",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"No suggestions found"}}),ne=be(H.prototype,"focusInput",[s.bd],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),be(H.prototype,"handleInputEmpty",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleInputEmpty"),H.prototype),be(H.prototype,"handleSelectSuggestedSearchTerm",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleSelectSuggestedSearchTerm"),H.prototype),be(H.prototype,"submitForm",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"submitForm"),H.prototype),be(H.prototype,"handleFocus",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleFocus"),H.prototype),be(H.prototype,"handleInputInteraction",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleInputInteraction"),H.prototype),be(H.prototype,"handleInputKeydown",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleInputKeydown"),H.prototype),be(H.prototype,"handleKeyboardUp",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleKeyboardUp"),H.prototype),be(H.prototype,"handleKeyboardDown",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleKeyboardDown"),H.prototype),be(H.prototype,"handleBlur",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleBlur"),H.prototype),be(H.prototype,"hideSuggestedSearchTerms",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"hideSuggestedSearchTerms"),H.prototype),be(H.prototype,"handleSelectProduct",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"handleSelectProduct"),H.prototype),be(H.prototype,"setAriaLiveMessage",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"setAriaLiveMessage"),H.prototype),be(H.prototype,"clearInput",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"clearInput"),H.prototype),be(H.prototype,"applyInputFocus",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"applyInputFocus"),H.prototype),be(H.prototype,"isComboboxContainerDescendent",[u.a],Object.getOwnPropertyDescriptor(H.prototype,"isComboboxContainerDescendent"),H.prototype),H)),we=document,Ie=window.__HC.ENV.GLOBAL,Oe=new Map;Oe.set("locale",window.play.getPageContextValue("locale"));var Te=window.play.getPageContextValue("csrfToken"),Pe=decodeURIComponent(function(e){return e?e.replaceAll("+"," "):""}(window.__HC.ENV.URL.PARAMS.query)),ke={displayDevice:"desktop",productList:Ie.productLinks,searchId:"desktop-hero",searchQuery:Pe,selectedProduct:De(),csrfToken:Te},je={displayDevice:"desktop",productList:Ie.productLinks,searchId:"desktop-nav",searchQuery:Pe,selectedProduct:De(),csrfToken:Te},xe={play:Oe};function De(){return Ie.productLinks.find((function(e){return e.productKey===Ie.hc_product}))}function Ce(e,t){e.textContent="",(0,o.SO)(_e,{element:e,args:t,services:xe})}function Ee(e,t,r){var n=setInterval((function(){var o=we.querySelector(e);null!==o&&(t(o,r),clearInterval(n))}),100);setTimeout((function(){return clearInterval(n)}),2e4)}Ee(".hero-search__search-form",Ce,ke),"hc_home"!==Ie.pageKey&&Ee(".desktop-nav__search",Ce,je)}},e=>(4733,e(e.s=4733))])}));