text: (window.webpackJsonp=window.webpackJsonp||[]).push([[191,40,50,86,189,190,195,200,201,202,203,205,206,207,208,209,210,211,400,442,443,444,445,450,451,452],{100:function(e,t,n){"use strict";function r(e){var t=e.feature,n=e.location;return t?t+":"+(null!=n?n:"none"):null}n.r(t),n.d(t,"createOrigin",(function(){return r}))},107:function(e,t,n){"use strict";function r(e,t){var n=t[0],r=t[1];return e>=n&&e<=r}n.r(t),n.d(t,"isInRange",(function(){return r}))},141:function(e,t,n){"use strict";n.r(t),n.d(t,"createFetchAndSaveActions",(function(){return i}));var r=n(97);function i(e){var t,n=e.fetch,i=e.onSuccess,s=e.onError,o=e.onCancel;function c(){null==t||t()}return{fetchAndSave:function(e,u){c(),e.commit("setStatus","loading");var a=Object(r.cancellablePromise)(n(e,u),(function(){!function(e){t=void 0,e.commit("setStatus","success"),null==o||o()}(e)})),l=a.promise,d=a.cancel;return t=d,l.then((function(t){return function(e,t){return Promise.resolve(i(e,t)).then((function(){e.commit("setStatus","success")}))}(e,t)})).catch((function(t){return function(e,t){t!==r.CancelSymbol&&(e.commit("setStatus","error"),null==s||s(t))}(e,t)}))},cancelPrevious:c}}},142:function(e,t,n){"use strict";function r(e,t){e.status=t}n.r(t),n.d(t,"setStatus",(function(){return r}))},289:function(e,t,n){"use strict";n.r(t),n.d(t,"NoElement",(function(){return r}));var r=n(3).default.extend({render:function(e){var t,n;return null!==(n=null===(t=this.$slots.default)||void 0===t?void 0:t[0])&&void 0!==n?n:e()}})},307:function(e,t,n){"use strict";n.r(t);var r=n(16),i=n.n(r),s=n(17),o=n.n(s),c=n(518).default,u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"x-dropdown",class:e.dropdownCSSClasses,on:{keydown:[e.updateSearchBuffer,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.highlightNextItem.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.highlightPreviousItem.apply(null,arguments))}]}},[n("button",{staticClass:"x-dropdown__toggle",attrs:{"aria-haspopup":"listbox","data-test":"dropdown-toggle"},on:{click:e.toggle,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),e.open.apply(null,arguments))}}},[e.$scopedSlots.toggle?e._t("toggle",(function(){return[e._v("\n      "+e._s(e.value)+"\n    ")]}),{isOpen:e.isOpen,item:e.value}):e._t("item",(function(){return[e._v(e._s(e.value))]}),{item:e.value})],2),e._v(" "),n(e.animation,{tag:"component"},[e.isOpen?n("ul",{staticClass:"x-dropdown__items-list",attrs:{"aria-expanded":e.isOpen.toString(),role:"listbox"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"end",void 0,t.key,void 0)?null:e.highlightLastItem.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"home",void 0,t.key,void 0)?null:e.highlightFirstItem.apply(null,arguments)}]}},e._l(e.items,(function(t,r){return n("li",{key:t.id||t,staticClass:"x-dropdown__list-item"},[n("button",{ref:"itemButtons",refInFor:!0,staticClass:"x-dropdown__item",class:e.itemsCSSClasses[r],attrs:{"aria-selected":(r===e.highlightedItemIndex).toString(),"aria-current":(t===e.value).toString(),"data-test":"dropdown-item",role:"option",tabindex:"-1"},on:{click:function(n){return e.emitSelectedItemChanged(t)}}},[e._t("item",(function(){return[e._v("\n            "+e._s(t)+"\n          ")]}),{isHighlighted:r===e.highlightedItemIndex,isSelected:t===e.value,item:t})],2)])})),0):e._e()])],1)};u._withStripped=!0;var a=function(e){e&&e("data-v-12a3cc4e_0",{source:".x-dropdown[data-v-12a3cc4e] {\n  position: relative;\n}\n.x-dropdown__items-list[data-v-12a3cc4e] {\n  z-index: 1;\n  list-style: none;\n  position: absolute;\n  padding: 0;\n  margin: 0;\n  top: calc(100% + var(--x-size-gap-dropdown-default, 0));\n}",map:void 0,media:void 0})},l=i()({render:u,staticRenderFns:[]},a,c,"data-v-12a3cc4e",!1,void 0,!1,o.a,void 0,void 0);t.default=l},397:function(e,t,n){"use strict";n.r(t),n.d(t,"cancelFetchAndSaveSearchResponseWire",(function(){return u})),n.d(t,"fetchAndSaveSearchResponseWire",(function(){return l})),n.d(t,"increasePageAppendingResults",(function(){return y})),n.d(t,"resetAppending",(function(){return _})),n.d(t,"resetSpellcheckQuery",(function(){return d})),n.d(t,"resetStateWire",(function(){return b})),n.d(t,"saveOriginWire",(function(){return a})),n.d(t,"searchWiring",(function(){return I})),n.d(t,"setPageSize",(function(){return O})),n.d(t,"setRelatedTags",(function(){return p})),n.d(t,"setSearchExtraParams",(function(){return S})),n.d(t,"setSearchPage",(function(){return v})),n.d(t,"setSearchQuery",(function(){return f})),n.d(t,"setSelectedFilters",(function(){return h})),n.d(t,"setSort",(function(){return g})),n.d(t,"setUrlParams",(function(){return m}));var r=n(35),i=n(50),s=Object(i.namespacedWireCommit)("search"),o=Object(i.namespacedWireDispatch)("search"),c=Object(i.namespacedWireDispatchWithoutPayload)("search"),u=c("cancelFetchAndSaveSearchResponse"),a=o("saveOrigin",(function(e){return e.metadata})),l=o("fetchAndSaveSearchResponse"),d=s("setSpellcheck",""),p=s("setRelatedTags"),f=s("setQuery"),h=s("setSelectedFilters"),g=s("setSort"),m=o("setUrlParams"),v=s("setPage"),S=s("setParams"),y=c("increasePageAppendingResults"),O=s("setPageSize"),_=s("setIsAppendResults",!1),b=o("resetState",(function(e){return{newRequest:e.eventPayload,oldRequest:e.metadata.oldValue}})),I=Object(r.createWiring)({UserAcceptedAQuery:{setSearchQuery:f,saveOriginWire:a},UserAcceptedSpellcheckQuery:{resetSpellcheckQuery:d},UserClearedQuery:{setSearchQuery:f,cancelFetchAndSaveSearchResponseWire:u},UserClickedASort:{setSort:g},UserPickedARelatedTag:{saveOriginWire:a},UserReachedResultsListEnd:{increasePageAppendingResults:y},SearchRequestChanged:{fetchAndSaveSearchResponseWire:l},SearchRequestUpdated:{resetStateWire:b},SelectedRelatedTagsChanged:{setRelatedTags:p},SelectedFiltersChanged:{setSelectedFilters:h},ResultsChanged:{resetAppending:_},SelectedSortProvided:{setSort:g},ExtraParamsChanged:{setSearchExtraParams:S},ParamsLoadedFromUrl:{setUrlParams:m,saveOriginWire:a}})},401:function(e,t,n){"use strict";n.r(t),n.d(t,"searchXStoreModule",(function(){return p}));var r=n(96),i=n(142),s=n(143),o=n(408),c=n(409),u=n(413),a=n(414),l=n(416),d=n(415),p={state:function(){return{query:"",params:{},results:[],partialResults:[],facets:[],relatedTags:[],banners:[],promoteds:[],selectedFilters:{},config:{pageSize:24},totalResults:0,spellcheckedQuery:"",status:"initial",sort:"",page:1,origin:null,isAppendResults:!1,redirections:[],queryTagging:{url:"",params:{}}}},getters:{request:n(410).request},mutations:{setQuery:function(e,t){e.query=t},setResults:function(e,t){e.results=t},appendResults:function(e,t){var n;(n=e.results).push.apply(n,t)},setPartialResults:function(e,t){e.partialResults=t},setFacets:function(e,t){e.facets=t},setRelatedTags:function(e,t){e.relatedTags=t},setSelectedFilters:function(e,t){e.selectedFilters=Object(r.groupItemsBy)(t,(function(e){return Object(s.c)(e)?e.facetId:"__unknown__"}))},setBanners:function(e,t){e.banners=t},setPromoteds:function(e,t){e.promoteds=t},setSpellcheck:function(e,t){e.spellcheckedQuery=t},setTotalResults:function(e,t){e.totalResults=t},setSort:function(e,t){e.sort=t},setPage:function(e,t){e.page=t},setPageSize:function(e,t){e.config.pageSize=t},setIsAppendResults:function(e,t){e.isAppendResults=t},setStatus:i.setStatus,setParams:function(e,t){e.params=t},setOrigin:function(e,t){void 0===t&&(t=null),e.origin=t},setRedirections:function(e,t){e.redirections=t},setQueryTagging:function(e,t){e.queryTagging=t}},actions:{cancelFetchAndSaveSearchResponse:o.cancelFetchAndSaveSearchResponse,fetchSearchResponse:c.fetchSearchResponse,fetchAndSaveSearchResponse:o.fetchAndSaveSearchResponse,increasePageAppendingResults:u.increasePageAppendingResults,resetState:a.resetState,setUrlParams:d.setUrlParams,saveOrigin:l.saveOrigin}}},403:function(e,t,n){"use strict";n.r(t),n.d(t,"searchXModule",(function(){return o}));var r=n(401),i=n(417),s=n(397),o={name:"search",storeModule:r.searchXStoreModule,storeEmitters:i.searchEmitters,wiring:s.searchWiring}},408:function(e,t,n){"use strict";n.r(t),n.d(t,"cancelFetchAndSaveSearchResponse",(function(){return a})),n.d(t,"fetchAndSaveSearchResponse",(function(){return u}));var r=n(1),i=n(141),s=Object(i.createFetchAndSaveActions)({fetch:function(e,t){var n=e.dispatch,i=e.state;return n("fetchSearchResponse",t?function(e,t){var n=e.page,i=Object(r.__rest)(e,["page"]),s=t.config.pageSize,o=t.origin,c=t.results,u=1===n?0:c.length;return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},i),o&&{origin:o}),{start:u,rows:s*n-u})}(t,i):null)},onSuccess:function(e,t){var n=e.commit,r=e.state,i=t.results,s=t.partialResults,o=t.facets,c=t.banners,u=t.promoteds,a=t.totalResults,l=t.spellcheck,d=t.redirections,p=t.queryTagging;r.isAppendResults?n("appendResults",i):(n("setResults",i),n("setBanners",c),n("setPromoteds",u),n("setRedirections",d)),n("setPartialResults",null!=s?s:[]),o&&n("setFacets",o),p&&n("setQueryTagging",p),n("setTotalResults",a),n("setSpellcheck",null!=l?l:"")}}),o=s.fetchAndSave,c=s.cancelPrevious;var u=o,a=c},409:function(e,t,n){"use strict";n.r(t),n.d(t,"fetchSearchResponse",(function(){return i}));var r=n(37),i=function(e,t){return t?r.XPlugin.adapter.search(t):{banners:[],facets:[],partialResults:[],promoteds:[],queryTagging:{params:{},url:""},redirections:[],results:[],spellcheck:"",totalResults:0}}},410:function(e,t,n){"use strict";n.r(t),n.d(t,"request",(function(){return i}));var r=n(1),i=function(e){var t=e.page,n=e.params,i=e.query,s=e.relatedTags,o=e.selectedFilters,c=e.sort;return i.trim()?Object(r.__assign)({query:i,relatedTags:s,sort:c,page:t,filters:o},n):null}},413:function(e,t,n){"use strict";n.r(t),n.d(t,"increasePageAppendingResults",(function(){return r}));var r=function(e){var t=e.commit,n=e.state,r=n.page+1;r>=1&&n.page*n.config.pageSize<n.totalResults&&(t("setPage",r),t("setIsAppendResults",!0))}},414:function(e,t,n){"use strict";n.r(t),n.d(t,"resetState",(function(){return s}));var r=n(96),i=n(13),s=function(e,t){var n=e.commit,s=e.state,o=t.newRequest,c=t.oldRequest,u=Object(i.getNewAndUpdatedKeys)(o,c);Object(r.isArrayEmpty)(u)||(u.includes("page")||n("setPage",1),u.includes("query")&&n("setSort",""),u.some((function(e){return e in s.params}))&&(n("setPage",1),n("setSort","")))}},415:function(e,t,n){"use strict";n.r(t),n.d(t,"setUrlParams",(function(){return r}));var r=function(e,t){var n=e.commit,r=t.query,i=t.page,s=t.sort;n("setQuery",r),n("setPage",i),n("setSort",s)}},416:function(e,t,n){"use strict";n.r(t),n.d(t,"saveOrigin",(function(){return i}));var r=n(100),i=function(e,t){(0,e.commit)("setOrigin",Object(r.createOrigin)(t))}},417:function(e,t,n){"use strict";n.r(t),n.d(t,"searchEmitters",(function(){return o}));var r=n(38),i=n(61),s=n(401),o=Object(i.createStoreEmitters)(s.searchXStoreModule,{FacetsChanged:{selector:function(e){return e.facets},filter:function(e,t){return 0!==e.length||0!==t.length}},PageChanged:function(e){return e.page},ResultsChanged:function(e){return e.results},SearchRequestChanged:function(e,t){return t.request},SearchRequestUpdated:{selector:function(e,t){return t.request},filter:function(e,t){return!!e&&!!t}},SearchTaggingChanged:{selector:function(e){return e.queryTagging},filter:function(e){var t=e.url;return!Object(r.isStringEmpty)(t)}},SpellcheckChanged:function(e){return e.spellcheckedQuery},SortChanged:function(e){return e.sort}})},516:function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(3),s=n(0),o=n(6),c=n(49),u=n(60),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"providedSelectedSort",{get:function(){return this.selectedSort},enumerable:!1,configurable:!0}),Object(r.__decorate)([Object(s.c)({required:!0})],t.prototype,"items",void 0),Object(r.__decorate)([Object(u.State)("search","sort")],t.prototype,"selectedSort",void 0),Object(r.__decorate)([Object(c.XEmit)("SelectedSortProvided")],t.prototype,"providedSelectedSort",null),t=Object(r.__decorate)([o.default],t)}(i.default);t.default=a},518:function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(3),s=n(0),o=n(23),c=n(98),u=n(107),a=n(289),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isOpen=!1,t.highlightedItemIndex=-1,t.searchBuffer="",t}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"dropdownCSSClasses",{get:function(){return{"x-dropdown--is-open":this.isOpen}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemsCSSClasses",{get:function(){var e=this;return this.items.map((function(t,n){return{"x-dropdown__item--is-selected":e.value===t,"x-dropdown__item--is-highlighted":e.highlightedItemIndex===n}}))},enumerable:!1,configurable:!0}),t.prototype.beforeDestroy=function(){this.removeDocumentCloseListeners()},t.prototype.open=function(){this.isOpen=!0},t.prototype.close=function(){this.isOpen=!1},t.prototype.toggle=function(){this.isOpen=!this.isOpen},t.prototype.emitSelectedItemChanged=function(e){this.$emit("change",e),this.close()},t.prototype.highlightNextItem=function(){this.open(),this.highlightedItemIndex=(this.highlightedItemIndex+1)%this.items.length},t.prototype.highlightPreviousItem=function(){this.open(),this.highlightedItemIndex=this.highlightedItemIndex>0?this.highlightedItemIndex-1:this.items.length-1},t.prototype.highlightFirstItem=function(){this.highlightedItemIndex=0},t.prototype.highlightLastItem=function(){this.highlightedItemIndex=this.items.length-1},t.prototype.updateSearchBuffer=function(e){if(/^\w$/.test(e.key)){var t=e.key;this.searchBuffer+=t,this.restartResetSearchTimeout()}},t.prototype.highlightMatchingItem=function(e){var t,n,r=this;if(e){var i=Object(c.normalizeString)(e),s=this.$refs.itemButtons.reduce((function(e,t,n){var r=t.textContent.replace(/[^\w]/g,"");return Object(c.normalizeString)(r).startsWith(i)&&e.push(n),e}),[]);this.highlightedItemIndex=null!==(n=null!==(t=s.find((function(e){return e>=r.highlightedItemIndex})))&&void 0!==t?t:s[0])&&void 0!==n?n:0}},t.prototype.resetSearch=function(){this.searchBuffer=""},t.prototype.updateSearchTimeout=function(e){this.restartResetSearchTimeout=Object(o.debounce)(this.resetSearch,e)},t.prototype.focusHighlightedItem=function(e){var t=this;this.$nextTick((function(){t.$refs.itemButtons&&Object(u.isInRange)(e,[0,t.items.length-1])&&t.$refs.itemButtons[t.highlightedItemIndex].focus()}))},t.prototype.updateHighlightedItem=function(e){this.highlightedItemIndex=e?null===this.value?0:this.items.indexOf(this.value):-1},t.prototype.syncCloseListeners=function(e){e?this.addDocumentCloseListeners():this.removeDocumentCloseListeners()},t.prototype.addDocumentCloseListeners=function(){document.addEventListener("mousedown",this.closeIfEventIsOutOfDropdown),document.addEventListener("touchstart",this.closeIfEventIsOutOfDropdown),document.addEventListener("focusin",this.closeIfEventIsOutOfDropdown)},t.prototype.removeDocumentCloseListeners=function(){document.removeEventListener("mousedown",this.closeIfEventIsOutOfDropdown),document.removeEventListener("touchstart",this.closeIfEventIsOutOfDropdown),document.removeEventListener("focusin",this.closeIfEventIsOutOfDropdown)},t.prototype.closeIfEventIsOutOfDropdown=function(e){this.$el.contains(e.target)||this.close()},Object(r.__decorate)([Object(s.c)({required:!0})],t.prototype,"items",void 0),Object(r.__decorate)([Object(s.c)({required:!0})],t.prototype,"value",void 0),Object(r.__decorate)([Object(s.c)({default:"NoElement"})],t.prototype,"animation",void 0),Object(r.__decorate)([Object(s.c)({default:1e3})],t.prototype,"searchTimeoutMs",void 0),Object(r.__decorate)([Object(s.h)("searchBuffer")],t.prototype,"highlightMatchingItem",null),Object(r.__decorate)([Object(s.h)("searchTimeoutMs",{immediate:!0})],t.prototype,"updateSearchTimeout",null),Object(r.__decorate)([Object(s.h)("highlightedItemIndex",{immediate:!0})],t.prototype,"focusHighlightedItem",null),Object(r.__decorate)([Object(s.h)("isOpen")],t.prototype,"updateHighlightedItem",null),Object(r.__decorate)([Object(s.h)("isOpen")],t.prototype,"syncCloseListeners",null),t=Object(r.__decorate)([Object(s.a)({components:{NoElement:a.NoElement},model:{event:"change"}})],t)}(i.default);t.default=l},753:function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(0),s=n(6),o=n(307),c=n(59),u=n(403),a=n(516),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.emitUserClickedASort=function(e){this.$x.emit("UserClickedASort",e,{target:this.$el}),this.$emit("change",e)},Object(r.__decorate)([Object(i.c)()],t.prototype,"animation",void 0),t=Object(r.__decorate)([Object(i.a)({mixins:[Object(c.xComponentMixin)(u.searchXModule)],components:{BaseDropdown:o.default},model:{event:"change"}})],t)}(Object(s.mixins)(a.default));t.default=l},96:function(e,t,n){"use strict";function r(e){return null==e||0===e.length}function i(e,t){return e.reduce((function(e,n){return t?e[n[t]]=n:"string"==typeof n&&(e[n]=n),e}),{})}function s(e,t){return e.reduce((function(e,n,r){var i=t(n,r);return e[i]||(e[i]=[]),e[i].push(n),e}),{})}function o(e,t,n){var r=function(e,i){return void 0===i&&(i=[]),e.reduce((function(e,i){return t(i)&&(e.push(i),r(i[n],e)),e}),i)};return r(e)}function c(e,t){return function e(n,r){return r?Array.isArray(r)?r.reduce(e,n):(n.push(r),e(n,r[t])):n}([],e)}function u(e){var t="function"==typeof e?e:function(t,n){return t[e]===n[e]};return function(e,n){return e.length!==n.length||e.some((function(e){return!n.find((function(n){return t(e,n)}))}))}}n.r(t),n.d(t,"arrayToObject",(function(){return i})),n.d(t,"createEmitterArrayFilter",(function(){return u})),n.d(t,"deepFilter",(function(){return o})),n.d(t,"deepFlat",(function(){return c})),n.d(t,"groupItemsBy",(function(){return s})),n.d(t,"isArrayEmpty",(function(){return r}))},97:function(e,t,n){"use strict";n.r(t),n.d(t,"CancelSymbol",(function(){return i})),n.d(t,"cancellablePromise",(function(){return s}));var r=n(36),i=Symbol("cancelled-promise");function s(e,t){var n=r.noOp,s=new Promise((function(e,r){n=function(e){r(i),null==t||t(e)}}));return{promise:Promise.race([e,s]),cancel:n}}},98:function(e,t,n){"use strict";n.r(t),n.d(t,"normalizeString",(function(){return i}));var r="function"==typeof String.prototype.normalize?function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}:function(e){return e};function i(e){var t;return e=null!==(t=null==e?void 0:e.trim().toLowerCase())&&void 0!==t?t:"",r(e)}}}]);