!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]}}(window,function(){return function(e){function t(t){for(var n,s,c=t[0],i=t[1],u=t[2],d=0,p=[];d<c.length;d++)s=c[d],Object.prototype.hasOwnProperty.call(o,s)&&o[s]&&p.push(o[s][0]),o[s]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);p.length;)p.shift()();
return a.push.apply(a,u||[]),r()}function r(){for(var e,t=0;t<a.length;t++){for(var r=a[t],n=!0,c=1;c<r.length;c++){var i=r[c];0!==o[i]&&(n=!1)}n&&(a.splice(t--,1),e=s(s.s=r[0]))}return e}var n={},o={2:0},a=[];function s(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=n,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,
Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,
t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var c=window.webpackJsonp=window.webpackJsonp||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var l=i;return a.push([289,0]),r()}({289:function(e,t,r){r.r(t);r(48),r(49),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(2),r(4),r(3),r(5),r(265),r(266);var n,o=r(81),a=(r(37),r(38),r(14),r(23),r(27),r(7),r(8),r(9),r(17)),s=(r(18),r(96),r(172),r(72),r(70)),c=r(291),i=r(29),u=r(25);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})(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})(e,t)}function h(e){var t=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}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){return!t||"object"!==
l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g,m,v,S,_,w,O=Object(c.a)(s,[JSON.parse('{"en_US":{"search_selected_product_label":"{:selectedProductName} Help"}}')],!1),T=Object(a.f)({id:"l5T2NFn3",block:'{"symbols":[],"statements":[[2,"\\n    "],[2,"\\n\\n    "],[11,"button"],[16,0,[31,[[32,0,["buttonClasses"]]]]],[24,4,"button"],[4,[38,0],["click",[32,0,["selectProduct"]]],null],[12],[2,"\\n      "],[1,[30,[36,1],["search_selected_product_label"],[["selectedProductName"],[[32,0,["args","model","productNameShort"]]]]]],[2,"\\n    "],[13],[2,"\\n"]],"hasEval":false,"upvars":["on","t"]}',
meta:{scope:function(){return{on:u.b,t:O}}}},(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}}),t&&f(e,t)}(a,e);var t,r,n,o=h(a);function a(){return d(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"isSelected",get:function(){return this.args.model===this.args.selectedProduct}},{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),n&&p(t,n),a}(i.a),g=n.prototype,m="selectProduct",v=[u.a],S=Object.getOwnPropertyDescriptor(n.prototype,"selectProduct"),_=n.prototype,w={},Object.keys(S).forEach(function(e){w[e]=S[e]}),w.enumerable=!!w.enumerable,
w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=v.slice().reverse().reduce(function(e,t){return t(g,m,e)||e},w),_&&void 0!==w.initializer&&(w.value=w.initializer?w.initializer.call(_):void 0,w.initializer=void 0),void 0===w.initializer&&(Object.defineProperty(g,m,w),w=null),n));function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?
"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function k(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 j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=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}}();return function(){var r,n=E(e);if(t){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=
Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C,R=Object(c.a)(s,[JSON.parse('{"en_US":{"a11y_header_search_product_selector_aria_label":"Dropdown menu that you can use to select other LinkedIn products to search for help within.","search_selected_product_label":"{:selectedProductName} Help"}}')],!1),U=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}}),t&&j(e,t)}(a,e);var t,r,n,o=x(a);function a(){return P(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"menuDivId",get:function(){return this.args.searchId+"-product-selector__menu"}},{key:"menuDivClasses",get:function(){return"site-search-product-selector__menu dropdown__menu"}},{key:"buttonAriaControls",get:function(){return this.args.searchId+"-product-selector__menu"}}])&&k(t.prototype,r),n&&k(t,
n),a}(i.a);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})(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function B(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 L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t=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}}();return function(){var r,n=M(e);if(t){var o=M(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return A(this,
r)}}function A(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object(a.f)({id:"36OdQF4J",block:'{"symbols":["product"],"statements":[[2,"\\n    "],[2,"\\n    "],[2,"\\n\\n    "],[10,"div"],[14,0,"site-search-product-selector dropdown__container"],[12],[2,"\\n      "],[10,"button"],[14,0,"site-search-product-selector__trigger dropdown__trigger"],[15,"aria-controls",[31,[[32,0,["buttonAriaControls"]]]]],[14,"aria-expanded","false"],[15,"aria-label",[31,[[30,[36,0],["a11y_header_search_product_selector_aria_label"],null]]]],[14,"data-test-id","product-selector-dropdown"],[14,4,"button"],[12],[2,"\\n"],[2,"        "],[10,"span"],[14,0,"t-16 t-black--light t-bold dropdown__trigger-label"],[12],[2,"\\n          "],[1,[30,[36,0],["search_selected_product_label"],[["selectedProductName"],[[32,0,["args","selectedProduct","productNameShort"]]]]]],[2,"\\n        "],[13],[2,"\\n        "],[10,"li-icon"],[14,0,"svg-icon site-search-product-selector__trigger-button-caret"],[14,"size","small"],[14,"tabindex","-1"],[14,"aria-hidden","true"],[14,4,"caret-filled-down-icon"],[12],[13],[2,"\\n      "],[13],[2,"\\n      "],[10,"div"],[15,1,[31,[[32,0,["menuDivId"]]]]],[15,0,[31,[[32,0,["menuDivClasses"]]]]],[14,"tabindex","-1"],[14,"aria-hidden","true"],[12],[2,"\\n"],[6,[37,1],[[32,0,["args","productList"]]],null,[["default"],[{"statements":[[2,"          "],[8,"ProductSelectorItem",[],[["@handleSelectProduct","@model","@selectedProduct"],[[32,0,["args","handleSelectProduct"]],[32,1],[32,0,["args","selectedProduct"]]]],null],[2,"\\n"]],"parameters":[1]}]]],[2,"      "],[13],[2,"\\n    "],[13],[2,"\\n  "]],"hasEval":false,"upvars":["t","each"]}',
meta:{scope:function(){return{ProductSelectorItem:T,t:R}}}},U);var K=Object(a.f)({id:"INNpJxn+",block:'{"symbols":[],"statements":[[2,"\\n    "],[10,"li"],[15,1,[32,0,["itemId"]]],[12],[2,"\\n      "],[11,"button"],[16,0,[31,[[32,0,["buttonClass"]]]]],[4,[38,0],["mousedown",[32,0,["selectSuggestedSearchTerm"]]],null],[12],[2,"\\n        "],[10,"li-icon"],[14,0,"svg-icon suggested-search-term__icon"],[14,"size","small"],[14,"tabindex","-1"],[14,4,"search-icon"],[12],[13],[2,"\\n        "],[1,[32,0,["args","suggestedSearchTerm"]]],[2,"\\n      "],[13],[2,"\\n    "],[13],[2,"\\n  "]],"hasEval":false,"upvars":["on"]}',
meta:{scope:function(){return{on:u.b}}}},(function(e,t,r,n,o){var a={};Object.keys(n).forEach(function(e){a[e]=n[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((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}}),t&&L(e,t)}(a,e);var t,r,n,o=q(a);function a(){return N(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"selectSuggestedSearchTerm",value:function(e){this.args.handleSelectSuggestedSearchTerm(e,this.args.suggestedSearchTerm)}},{key:"buttonClass",get:function(){var e="suggested-search-term";return this.args.termIndex===this.args.focusedIndex&&
(e+=" suggested-search-term--focused"),e}},{key:"itemId",get:function(){return"suggested-search-term-id-".concat(this.args.termIndex)}}])&&B(t.prototype,r),n&&B(t,n),a}(i.a)).prototype,"selectSuggestedSearchTerm",[u.a],Object.getOwnPropertyDescriptor(C.prototype,"selectSuggestedSearchTerm"),C.prototype),C));function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?
"symbol":typeof e})(e)}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function J(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 Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=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}}();return function(){var r,n=W(e);if(t){var o=W(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return V(this,r)}}function V(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=
Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X,Y,Z,$,ee,te,re,ne,oe,ae,se=Object(c.a)(s,[JSON.parse('{"en_US":{"typeahead-footer-button-text":"See all results"}}')],!1),ce=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}}),t&&Q(e,t)}(a,e);var t,r,n,o=H(a);function a(){return F(this,
a),o.apply(this,arguments)}return t=a,(r=[{key:"buttonClass",get:function(){return this.args.focusedIndex===this.args.suggestedSearchTerms.length?"typeahead__button--focused":""}}])&&J(t.prototype,r),n&&J(t,n),a}(i.a);function ie(e,t){var r=null;return function(){var n=this;null!==r&&clearTimeout(r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];r=setTimeout.apply(void 0,[e.bind(n),t].concat(a))}}function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?
function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(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 de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function pe(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 fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function he(e){var t=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}}();return function(){var r,n=ge(e);if(t){var o=ge(this).constructor;
r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ye(this,r)}}function ye(e,t){return!t||"object"!==ue(t)&&"function"!=typeof t?be(e):t}function be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function me(e,t,r,n,o){var a={};return Object.keys(n).forEach(function(e){a[e]=n[e]}),a.enumerable=
!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object(a.f)({id:"svejfT8A",block:'{"symbols":["suggestedSearchTerm","termIndex"],"statements":[[2,"\\n  "],[2,"\\n\\n"],[6,[37,3],[[32,0,["args","suggestedSearchTerms"]]],null,[["default"],[{"statements":[[2,"    "],[10,"ul"],[14,0,"typeahead"],[15,"aria-labelledby",[31,[[32,0,["args","labelId"]]]]],[14,"role","listbox"],[15,1,[31,[[32,0,["args","listBoxId"]]]]],[12],[2,"\\n      "],[10,"li"],[12],[2,"\\n        "],[10,"ul"],[14,0,"typeahead__results-group"],[12],[2,"\\n\\n"],[6,[37,1],[[32,0,["args","suggestedSearchTerms"]]],null,[["default"],[{"statements":[[2,"            "],[8,"SuggestedSearchTerm",[],[["@suggestedSearchTerm","@handleSelectSuggestedSearchTerm","@focusedIndex","@termIndex"],[[32,1],[32,0,["args","handleSelectSuggestedSearchTerm"]],[32,0,["args","focusedIndex"]],[32,2]]],null],[2,"\\n"]],"parameters":[1,2]}]]],[2,"        "],[13],[2,"\\n      "],[13],[2,"\\n"],[6,[37,2],[[32,0,["args","isSubmitDisabled"]]],null,[["default"],[{"statements":[[2,"      "],[10,"li"],[12],[2,"\\n        "],[10,"button"],[15,0,[31,["typeahead__button ",[32,0,["buttonClass"]]," artdeco-button--default artdeco-button--standard artdeco-button--tertiary artdeco-button--full t-14 t-bold"]]],[14,4,"submit"],[12],[2,"\\n          "],[1,[30,[36,0],["typeahead-footer-button-text"],null]],[2,"\\n        "],[13],[2,"\\n      "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"    "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"  "]],"hasEval":false,"upvars":["t","each","unless","if"]}',
meta:{scope:function(){return{SuggestedSearchTerm:K,t:se}}}},ce);var ve=Object(c.a)(s,[JSON.parse('{"en_US":{"site_search_a11y_label":"What\u2019s your question?","site_search_placeholder_text":"How can we help?","cancel_button_a11y_text":"Clear your search query","search_button_a11y_text":"Submit your question","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),Se=Object(a.f)({id:"oeURMrfB",block:'{"symbols":[],"statements":[[2,"\\n    "],[2,"\\n    "],[2,"\\n    "],[2,"\\n    "],[2,"\\n    "],[2,"\\n\\n    "],[10,"form"],[15,0,[31,[[32,0,["formClasses"]]]]],[14,3,"main-search"],[14,"role","search"],[15,"action",[31,[[32,0,["actionUrl"]]]]],[14,"autocomplete","off"],[12],[2,"\\n      "],[8,"ProductSelector",[],[["@classes","@displayDevice","@handleSelectProduct","@productList","@searchId","@selectedProduct"],[[32,0,["args","classes"]],[32,0,["args","displayDevice"]],[32,0,["handleSelectProduct"]],[32,0,["args","productList"]],[32,0,["args","searchId"]],[32,0,["selectedProduct"]]]],null],[2,"\\n      "],[10,"label"],[14,0,"site-search__label"],[15,"for",[31,[[32,0,["searchInputId"]]]]],[15,1,[31,[[32,0,["labelId"]]]]],[12],[2,"\\n        "],[1,[30,[36,0],["site_search_a11y_label"],null]],[2,"\\n      "],[13],[2,"\\n      "],[10,"div"],[14,0,"site-search__input-button-and-popover-wrapper"],[12],[2,"\\n        "],[10,"div"],[14,0,"site-search__input-and-button-wrapper"],[14,"role","combobox"],[15,"aria-expanded",[31,[[32,0,["isTypeaheadDisplayed"]]]]],[15,"aria-owns",[31,[[32,0,["listBoxId"]]]]],[14,"aria-haspopup","listbox"],[15,1,[31,[[32,0,["comboBoxId"]]]]],[12],[2,"\\n"],[2,"          "],[10,"div"],[15,1,[31,[[32,0,["liveRegionId"]]]]],[14,"aria-live","polite"],[14,"role","status"],[14,0,"visually-hidden"],[12],[2,"\\n            "],[1,[30,[36,0],["aria_active_message"],[["suggestionType"],[[32,0,["ariaActiveMessage"]]]]]],[2,"\\n          "],[13],[2,"\\n          "],[10,"div"],[14,0,"site-search__input-wrapper"],[12],[2,"\\n            "],[11,"input"],[16,2,[31,[[32,0,["query"]]]]],[16,1,[31,[[32,0,["searchInputId"]]]]],[16,"data-test-id",[31,[[32,0,["searchInputId"]]]]],[24,0,"site-search__input t-16 t-black"],[24,3,"query"],[16,"placeholder",[31,[[30,[36,0],["site_search_placeholder_text"],null]]]],[24,"maxlength","255"],[16,"aria-activedescendant",[31,[[32,0,["activeDescendantId"]]]]],[24,"role","combobox"],[24,"aria-autocomplete","list"],[16,"aria-controls",[31,[[32,0,["listBoxId"]]]]],[24,4,"text"],[4,[38,1],["input",[32,0,["handleInputInteraction"]]],null],[4,[38,1],["focus",[32,0,["handleFocus"]]],null],[4,[38,1],["keydown",[32,0,["handleInputKeydown"]]],null],[4,[38,1],["blur",[32,0,["handleBlur"]]],null],[12],[13],[2,"\\n            "],[11,"button"],[16,0,[31,[[32,0,["cancelIconClasses"]]]]],[24,4,"reset"],[4,[38,1],["click",[32,0,["clearInput"]]],null],[12],[2,"\\n              "],[10,"li-icon"],[14,0,"svg-icon"],[14,"size","small"],[14,"tabindex","-1"],[14,4,"cancel-icon"],[12],[13],[2,"\\n              "],[10,"span"],[14,0,"visually-hidden"],[12],[2,"\\n                "],[1,[30,[36,0],["cancel_button_a11y_text"],null]],[2,"\\n              "],[13],[2,"\\n            "],[13],[2,"\\n          "],[13],[2,"\\n          "],[10,"button"],[14,0,"site-search__submit"],[15,"data-test-id",[31,[[32,0,["searchIdSearchButton"]]]]],[15,"disabled",[32,0,["isSubmitDisabled"]]],[14,4,"submit"],[12],[2,"\\n            "],[10,"li-icon"],[14,0,"svg-icon"],[14,"size","small"],[14,"tabindex","-1"],[14,4,"search-icon"],[12],[13],[2,"\\n            "],[10,"span"],[14,0,"visually-hidden"],[12],[2,"\\n              "],[1,[30,[36,0],["search_button_a11y_text"],null]],[2,"\\n            "],[13],[2,"\\n          "],[13],[2,"\\n        "],[13],[2,"\\n"],[6,[37,2],[[32,0,["isTypeaheadDisplayed"]]],null,[["default"],[{"statements":[[2,"          "],[8,"Typeahead",[],[["@ariaLabelledBy","@focusedIndex","@handleSelectSuggestedSearchTerm","@listBoxId","@suggestedSearchTerms","@isSubmitDisabled"],[[32,0,["labelId"]],[32,0,["focusedIndex"]],[32,0,["handleSelectSuggestedSearchTerm"]],[32,0,["listBoxId"]],[32,0,["suggestedSearchTerms"]],[32,0,["isSubmitDisabled"]]]],null],[2,"\\n"]],"parameters":[]}]]],[2,"      "],[13],[2,"\\n    "],[13],[2,"\\n  "]],"hasEval":false,"upvars":["t","on","if"]}',
meta:{scope:function(){return{on:u.b,ProductSelector:U,Typeahead:ce,t:ve}}}},(ae=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}}),t&&fe(e,t)}(a,e);var t,r,n,o=he(a);function a(){var e;return de(this,a),le(e=o.apply(this,arguments),"abortController",Y,be(e)),le(e,"query",Z,be(e)),le(e,"selectedProduct",$,be(e)),le(e,"isSubmitDisabled",
ee,be(e)),e.defaultSuggestedSearchTerms=[],le(e,"suggestedSearchTerms",te,be(e)),le(e,"focusedIndex",re,be(e)),le(e,"isTypeaheadDisplayed",ne,be(e)),le(e,"ariaActiveMessage",oe,be(e)),e.fetchSuggestedSearchTerms=ie(e.fetchSuggestedSearchTerms,200),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?"DEFAULT":"SUGGESTED",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?"DEFAULT":"SUGGESTED",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":this.handleKeyboardDown(t);break;case "Up":case "ArrowUp":e.preventDefault(),this.handleKeyboardUp(t);break;case "Esc":case "Escape":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){e.relatedTarget||this.hideSuggestedSearchTerms()}},{key:"hideSuggestedSearchTerms",value:function(){this.isTypeaheadDisplayed=!1,this.focusedIndex=-1}},{key:"handleSelectProduct",value:function(e){this.selectedProduct=e,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:"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";return this.args.style&&(e+=" ".concat("site-search--").concat(this.args.style)),this.args.classes&&(e+=" ".concat("site-search--").concat(this.args.classes)),this.args.searchId&&(e+=" ".concat("site-search--").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:"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}}])&&
pe(t.prototype,r),n&&pe(t,n),a}(i.a),Y=me((X=ae).prototype,"abortController",[i.b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=me(X.prototype,"query",[i.b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.searchQuery}}),$=me(X.prototype,"selectedProduct",[i.b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.selectedProduct}}),ee=me(X.prototype,"isSubmitDisabled",[i.b],{configurable:!0,enumerable:!0,
writable:!0,initializer:function(){return!0}}),te=me(X.prototype,"suggestedSearchTerms",[i.b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),re=me(X.prototype,"focusedIndex",[i.b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),ne=me(X.prototype,"isTypeaheadDisplayed",[i.b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oe=me(X.prototype,"ariaActiveMessage",[i.b],{configurable:!0,enumerable:!0,writable:!0,
initializer:function(){return"No suggestions found"}}),me(X.prototype,"handleInputEmpty",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"handleInputEmpty"),X.prototype),me(X.prototype,"handleSelectSuggestedSearchTerm",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"handleSelectSuggestedSearchTerm"),X.prototype),me(X.prototype,"submitForm",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"submitForm"),X.prototype),me(X.prototype,"handleFocus",[u.a],Object.getOwnPropertyDescriptor(X.prototype,
"handleFocus"),X.prototype),me(X.prototype,"handleInputInteraction",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"handleInputInteraction"),X.prototype),me(X.prototype,"handleInputKeydown",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"handleInputKeydown"),X.prototype),me(X.prototype,"handleKeyboardUp",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"handleKeyboardUp"),X.prototype),me(X.prototype,"handleKeyboardDown",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"handleKeyboardDown"),
X.prototype),me(X.prototype,"handleBlur",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"handleBlur"),X.prototype),me(X.prototype,"hideSuggestedSearchTerms",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"hideSuggestedSearchTerms"),X.prototype),me(X.prototype,"handleSelectProduct",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"handleSelectProduct"),X.prototype),me(X.prototype,"setAriaLiveMessage",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"setAriaLiveMessage"),X.prototype),me(X.prototype,
"clearInput",[u.a],Object.getOwnPropertyDescriptor(X.prototype,"clearInput"),X.prototype),X)),_e=document,we=window.__HC.ENV.GLOBAL,Oe=new Map;Oe.set("locale",window.play.getPageContextValue("locale"));var Te=window.play.getPageContextValue("csrfToken"),Ie=decodeURIComponent(function(e){return e?e.replaceAll("+"," "):""}(window.__HC.ENV.URL.PARAMS.query)),Pe={displayDevice:"desktop",productList:we.productLinks,searchId:"desktop-hero",searchQuery:Ie,selectedProduct:xe(),csrfToken:Te},ke={displayDevice:"desktop",
productList:we.productLinks,searchId:"desktop-nav",searchQuery:Ie,selectedProduct:xe(),csrfToken:Te},je={play:Oe};function xe(){return we.productLinks.find(function(e){return e.productKey===we.hc_product})}function De(e,t){e.textContent="",Object(o.b)(Se,{element:e,args:t,services:je})}function Ee(e,t,r){var n=setInterval(function(){var o=_e.querySelector(e);null!==o&&(t(o,r),clearInterval(n))},100);setTimeout(function(){return clearInterval(n)},2E4)}Ee(".hero-search__search-form",De,Pe),"hc_home"!==
we.pageKey&&Ee(".desktop-nav__search",De,ke)}})});