diff --git a/CHANGELOG.md b/CHANGELOG.md index cb28b471..39992302 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog ## Unreleased +### Change +- Upgrade Web Components version to v4.3.0 + ### Fix - Secure proxy endpoint diff --git a/src/Resources/public/ff-web-components/bundle.js b/src/Resources/public/ff-web-components/bundle.js index cbbde185..81c44dce 100644 --- a/src/Resources/public/ff-web-components/bundle.js +++ b/src/Resources/public/ff-web-components/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE */ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=112)}([function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var r=n(27),i=n.n(r),o=n(18),a=n.n(o),c=n(3),s=n.n(c),u=n(4),l=n.n(u),f=n(19),d=n.n(f),h=n(68),p=n.n(h),m=n(24),v=n.n(m),g=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===v()(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e){e.exports=JSON.parse('{"a":"4.2.8"}')},function(e,t,n){var r;n.r(t),n.d(t,"internal",(function(){return Oo})),n.d(t,"factfinder",(function(){return xo}));var o={};n.r(o),n.d(o,"compose",(function(){return j})),n.d(o,"pipe",(function(){return L})),n.d(o,"scanl",(function(){return I})),n.d(o,"isNullish",(function(){return A})),n.d(o,"fswitch",(function(){return T})),n.d(o,"escapeRegex",(function(){return M}));var c={};n.r(c),n.d(c,"encodeURIComponent",(function(){return N})),n.d(c,"decodeURIComponent",(function(){return D})),n.d(c,"fixedEncodeURIComponent",(function(){return F})),n.d(c,"fixedDecodeURIComponent",(function(){return B})),n.d(c,"percent20ToPlus",(function(){return V})),n.d(c,"uriPlusEncode",(function(){return U})),n.d(c,"encodeCategoryV4",(function(){return q})),n.d(c,"encodeAssociatedFieldName",(function(){return z})),n.d(c,"ngEncode",(function(){return W})),n.d(c,"ngCategoryPageEncode",(function(){return H})),n.d(c,"normalizeCategoryFilterEncoding",(function(){return K}));var u={};n.r(u),n.d(u,"isLogLevelActive",(function(){return $})),n.d(u,"trace",(function(){return Q})),n.d(u,"debug",(function(){return ee})),n.d(u,"info",(function(){return te})),n.d(u,"log",(function(){return ne})),n.d(u,"warn",(function(){return re})),n.d(u,"error",(function(){return ie})),n.d(u,"logMessage",(function(){return oe})),n.d(u,"emitDeprecationWarning",(function(){return ae}));var f={};n.r(f),n.d(f,"find",(function(){return se})),n.d(f,"flatMap",(function(){return ue})),n.d(f,"values",(function(){return le})),n.d(f,"includes",(function(){return fe}));var h={};n.r(h),n.d(h,"Versions",(function(){return de})),n.d(h,"supportedVersions",(function(){return he})),n.d(h,"atLeast",(function(){return pe})),n.d(h,"getApiString",(function(){return me})),n.d(h,"isSupported",(function(){return ve}));var m={};n.r(m),n.d(m,"pppConf",(function(){return ye}));var g={};n.r(g),n.d(g,"esPolyfills",(function(){return f})),n.d(g,"util",(function(){return o})),n.d(g,"Encoding",(function(){return c})),n.d(g,"NgApiVersions",(function(){return h})),n.d(g,"getFixedFilters",(function(){return Qe}));var y={};n.r(y),n.d(y,"addParam",(function(){return lt})),n.d(y,"deduplicate",(function(){return ft})),n.d(y,"HistoryEntry",(function(){return dt})),n.d(y,"getHistoryState",(function(){return ht})),n.d(y,"executeCallback",(function(){return pt})),n.d(y,"elementToString",(function(){return mt})),n.d(y,"stringToElement",(function(){return vt})),n.d(y,"isArray",(function(){return gt})),n.d(y,"isObject",(function(){return yt})),n.d(y,"isFunction",(function(){return bt})),n.d(y,"transitionEndEventName",(function(){return _t})),n.d(y,"setStyleProperty",(function(){return kt})),n.d(y,"concatFunctions",(function(){return wt})),n.d(y,"addEventListener",(function(){return Ct})),n.d(y,"cloneObject",(function(){return St})),n.d(y,"copyHTMLAttributes",(function(){return Pt})),n.d(y,"isCustomElement",(function(){return Ot})),n.d(y,"whichTransitionEvent",(function(){return xt})),n.d(y,"getParentElementByName",(function(){return Et})),n.d(y,"urlStringToDict",(function(){return Rt})),n.d(y,"getParameterString",(function(){return jt})),n.d(y,"parameterStringToDict",(function(){return Lt})),n.d(y,"keys",(function(){return It})),n.d(y,"sortStringArrayAlphabetically",(function(){return At})),n.d(y,"isFilterParameter",(function(){return Tt})),n.d(y,"dictToParameterString",(function(){return Mt})),n.d(y,"sortFilterValuesAlphabetically",(function(){return Nt})),n.d(y,"setUrlParameter",(function(){return Dt})),n.d(y,"getKeyByPattern",(function(){return Ft})),n.d(y,"mergeProperties",(function(){return Bt})),n.d(y,"getCurrentEndPathString",(function(){return Vt})),n.d(y,"fireCustomEvent",(function(){return Ut})),n.d(y,"replaceAt",(function(){return qt})),n.d(y,"removeAt",(function(){return zt})),n.d(y,"randomString",(function(){return Wt})),n.d(y,"isFFParameter",(function(){return Ht})),n.d(y,"searchParams",(function(){return Yt})),n.d(y,"localStorage",(function(){return Gt})),n.d(y,"removeChildNodes",(function(){return Xt})),n.d(y,"isOk",(function(){return Zt})),n.d(y,"getMetaElementKey",(function(){return Jt}));var b={};n.r(b),n.d(b,"encodeUrl",(function(){return $t})),n.d(b,"fixedEncodeURIComponent",(function(){return Qt})),n.d(b,"fixedDecodeURIComponent",(function(){return en})),n.d(b,"encodeDict",(function(){return tn})),n.d(b,"_canEncode",(function(){return nn})),n.d(b,"decodeUrl",(function(){return rn})),n.d(b,"decodeDict",(function(){return on}));var _={};n.r(_),n.d(_,"FFEvent",(function(){return fn})),n.d(_,"FilterEvent",(function(){return dn})),n.d(_,"BreadCrumbEvent",(function(){return hn})),n.d(_,"GlobalSearchParameter",(function(){return pn}));var k={};n.r(k),n.d(k,"sessionManager",(function(){return bn}));var w={};n.r(w),n.d(w,"startDispatching",(function(){return lr})),n.d(w,"setShouldDeferDispatches",(function(){return fr})),n.d(w,"invokeCallbacks",(function(){return dr})),n.d(w,"addCallback",(function(){return hr})),n.d(w,"removeCallback",(function(){return pr})),n.d(w,"subscribe",(function(){return mr})),n.d(w,"unsubscribe",(function(){return vr})),n.d(w,"dispatch",(function(){return yr})),n.d(w,"dispatchResultByTopic",(function(){return br})),n.d(w,"dispatchSearchResult",(function(){return _r})),n.d(w,"dispatchResult",(function(){return kr})),n.d(w,"dispatchRaw",(function(){return wr})),n.d(w,"dispatchResultInternal",(function(){return Cr})),n.d(w,"dispatchRecords",(function(){return Sr})),n.d(w,"dispatchBreadcrumbTrail",(function(){return Pr})),n.d(w,"dispatchSorting",(function(){return Or})),n.d(w,"dispatchProductsPerPage",(function(){return xr})),n.d(w,"dispatchPaging",(function(){return Er})),n.d(w,"dispatchPagingItems",(function(){return Rr})),n.d(w,"dispatchAsn",(function(){return jr})),n.d(w,"dispatchSingleWordSearch",(function(){return Lr})),n.d(w,"dispatchProductDetail",(function(){return Ir})),n.d(w,"dispatchCampaigns",(function(){return Ar})),n.d(w,"dispatchPageCampaigns",(function(){return Tr})),n.d(w,"dispatchProductCampaigns",(function(){return Mr})),n.d(w,"dispatchShoppingCartCampaign",(function(){return Nr})),n.d(w,"_doCampaingDispatch",(function(){return Dr})),n.d(w,"dispatchSuggest",(function(){return Fr})),n.d(w,"dispatchRecommendations",(function(){return Br})),n.d(w,"dispatchSimilarProducts",(function(){return Vr})),n.d(w,"dispatchPredictiveBasket",(function(){return Ur})),n.d(w,"dispatchCompare",(function(){return qr})),n.d(w,"dispatchTagCloud",(function(){return zr})),n.d(w,"dispatchQuery",(function(){return Wr})),n.d(w,"dispatchNavigationFrame",(function(){return Hr}));var C={};n.r(C),n.d(C,"getSearchParamString",(function(){return Yr})),n.d(C,"handleSeoSearch",(function(){return Gr})),n.d(C,"replaceHistoryState",(function(){return Zr})),n.d(C,"replaceDocumentLocation",(function(){return Jr})),n.d(C,"pushParameterToHistory",(function(){return $r})),n.d(C,"getBrowserURL",(function(){return ei})),n.d(C,"pushSeoToHistory",(function(){return ti})),n.d(C,"pushFilterUrlToHistory",(function(){return ni})),n.d(C,"extractCategoryPathFieldName",(function(){return ri})),n.d(C,"changeRecordPropertyName",(function(){return ii})),n.d(C,"getQueryFromSearchParams",(function(){return oi})),n.d(C,"addRenameRecordFields",(function(){return ai})),n.d(C,"removeRenameRecordFields",(function(){return ci})),n.d(C,"isNg",(function(){return si})),n.d(C,"isPriceField",(function(){return ui})),n.d(C,"trackingHelper",(function(){return li}));var S={};n.r(S),n.d(S,"addFFEvent",(function(){return qi})),n.d(S,"addFailCallback",(function(){return zi})),n.d(S,"removeFailCallback",(function(){return Wi})),n.d(S,"addBeforeHistoryPushCallback",(function(){return Hi})),n.d(S,"removeBeforeHistoryPushCallback",(function(){return Ki})),n.d(S,"addBeforeDispatchingCallback",(function(){return Yi})),n.d(S,"removeBeforeDispatchingCallback",(function(){return Gi})),n.d(S,"getCurrentResult",(function(){return Xi}));var P={};n.r(P),n.d(P,"click",(function(){return oo})),n.d(P,"cart",(function(){return ao})),n.d(P,"checkout",(function(){return co})),n.d(P,"login",(function(){return so})),n.d(P,"loginWithConfig",(function(){return uo})),n.d(P,"recommendationClick",(function(){return lo})),n.d(P,"searchFeedback",(function(){return fo})),n.d(P,"landingPageClick",(function(){return ho}));var O={};n.r(O),n.d(O,"Tracking12",(function(){return yo})),n.d(O,"trackingManager",(function(){return bo}));var x={};n.r(x),n.d(x,"sortboxConf",(function(){return _o}));var E={};n.r(E),n.d(E,"MultiAttributeParsing",(function(){return sn})),n.d(E,"ProductTeaserCampaignProcessor",(function(){return un})),n.d(E,"use",(function(){return So}));var R={};n.r(R),n.d(R,"response",(function(){return E}));var j=function(){for(var e=arguments.length,t=new Array(e),n=0;n=J[e]}function Q(e){if($("trace")){for(var t=arguments.length,n=new Array(1=e}},me=function(){var e=(0",") is not supported by this version of WebComponents. Choose one of [").concat(he.join(", "),"] for the NG API setting or try updating your WebComponents. https://github.com/FACT-Finder-Web-Components/ff-web-components/releases"));var n=e.url.replace(/\/*$/,"/"),r=me(t);return T(e).case_(Ie.isNavigation,(function(){return i("".concat(n,"rest/").concat(r,"/navigation/category/").concat(e.channel))})).case_(Ie.isSuggest,(function(){return i("".concat(n,"rest/").concat(r,"/suggest/").concat(e.channel))})).case_(Ie.isProductCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/product"))})).case_(Ie.isPageCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/page"))})).case_(Ie.isShoppingCartCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/shoppingcart"))})).case_(Ie.isSimilarProducts,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/similar"))})).case_(Ie.isRecommendation,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/recommendation"))})).case_(Ie.isCompare,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/compare"),Me.compare(e))})).case_(Ie.isGetRecords,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel),Me.getRecords(e),Ne.getRecords(e))})).case_(Ie.isTracking,(function(){return i("".concat(n,"rest/").concat(r,"/track/").concat(e.channel,"/").concat(e.event),"",Ne.tracking(e))})).case_(Ie.isPredBasket,(function(){return i("".concat(n,"rest/").concat(r,"/predictivebasket/").concat(e.channel))})).case_(Ie.isNavigationSort,(function(){return i("".concat(n,"rest/").concat(r,"/navigation/").concat(e.channel),"",Ne.navigationSort(e))})).case_(Ie.isNavigationSearch,(function(){return i("".concat(n,"rest/").concat(r,"/navigation/").concat(e.channel),"",Ne.navigationSearch(e))})).case_(Ie.isSort,(function(){return i("".concat(n,"rest/").concat(r,"/search/").concat(e.channel),"",Ne.sort(e))})).otherwise_((function(){return i("".concat(n,"rest/").concat(r,"/search/").concat(e.channel))}));function i(t){var n=1e.length))return e.substr(0,t)+e.substr(t+n)}function Wt(e){for(var t=1/g,"")),n.url&&e.channel&&e.version||(ie('Required search params are not available: [url(globalSearchParameter): "'.concat(n.url,'"], [url(event): "').concat(e.url,'"], [channel: "').concat(e.channel,'"], [version: "').concat(e.version,'"]')),re("At the time this event was emitted no configuration was available, See https://web-components.fact-finder.de/documentation/ready-events",e)),(t=e).type?-1e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}([].concat(L()(Object.getOwnPropertyNames(n)),L()("function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[])));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}catch(e){r.e(e)}finally{r.f()}}}},{key:"_attributeNameForProperty",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}},{key:"_valueHasChanged",value:function(e,t){return(2=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},function(e,t,n){"use strict";n.r(t),n.d(t,"RecordList",(function(){return S}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(45),v=n(1),g=n(13),y=n(9),b=n(32),_=n(41),k=n(51),w=n(5);var C='[data-container="infinite-scroll-placeholder"]',S=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).subscribe=!0,e.infiniteDebounceDelay=32,e.infiniteScrollMargin=0,e.infiniteScrollContainer="",e.restoreScrollPosition=!0,e.__isRecommendation=!1,e.__isLandingPage=!1,e.__campaign="",e.__pageId="",e._origHTML=e.innerHTML,e}return a()(n,[{key:"subscriptionKey",get:function(){return this._subscriptionKey}},{key:"connectedCallback",value:function(){var e,t=this;if(this._restoreScrollHandler=(e=this,function(t){var n=t.detail,r=n.records,i=n.scroll,o=n.previousViewedRecord;O(e,r).then((function(){var t=Object(g.d)(e.infiniteScrollContainer)||Object(g.c)(e.children[o-1]);t===window?window.scrollTo(i.scrollLeft,i.scrollTop):(t.scrollLeft=i.scrollLeft,t.scrollTop=i.scrollTop)}))}),this._scrollingHandler=this._scrollingHandler||function(e){return function(){var n;e.infiniteScrolling&&0<=(n=e.getBoundingClientRect()).left&&n.bottom+e.infiniteScrollMargin<=(window.innerHeight||document.documentElement.clientHeight)&&n.right+e.infiniteScrollMargin<=(window.innerWidth||document.documentElement.clientWidth)&&(e._loadNextPageDebouncerJob=Object(m.a)(e._loadNextPageDebouncerJob,t,e.infiniteDebounceDelay),e._loadNextPageDebouncerJob.run())};function t(){e.loadNextPage.call(e)}}(this),s()(p()(n.prototype),"connectedCallback",this).call(this),!0===this.subscribe&&(this._subscriptionKey=v.a.communication.ResultDispatcher.subscribe("records",this._recordsChangedFFEventHandler,this)),this._templateInfiniteScrollRecordPlaceholder=this._templateInfiniteScrollRecordPlaceholder||this.querySelector(C)||Object(g.a)('
'),this._templateInfiniteScrollRecordPlaceholder.parentNode&&this._templateInfiniteScrollRecordPlaceholder.parentNode.removeChild(this._templateInfiniteScrollRecordPlaceholder),this.ssr){if(!this._templateRecord){var r='template[data-role="record"]',i=this.querySelector(r);if(!i)throw Error("No SSR template with selector '".concat(r,"' could be found, but property ssr-rendered is set. Cannot properly initialize record list."));i.parentNode.removeChild(i);var o=document.importNode(i.content,!0);if(this._templateRecord=o.querySelector(b.Record.is),this._templateRecord.templateString=this._templateRecord.innerHTML,this.querySelectorAll(b.Record.is).forEach((function(e){e.templateString=t._templateRecord.innerHTML})),!this.templateInsertionInfo){var a=this.querySelector('[data-role="records-insertion-point"]');if(a)this.templateInsertionInfo={parentNode:a.parentNode,nextElementSibling:a};else{var c=this.querySelector(b.Record.is+":last-of-type");this.templateInsertionInfo=c?{parentNode:c.parentNode,nextElementSibling:c.nextElementSibling}:{parentNode:this,nextElementSibling:void 0}}}}}else this._templateRecord=this._templateRecord||this.querySelector(b.Record.is),this.templateInsertionInfo||(this.templateInsertionInfo=this._templateRecord?{parentNode:this._templateRecord.parentNode,nextElementSibling:this._templateRecord.nextElementSibling}:{parentNode:this,nextElementSibling:void 0}),!this._templateRecord.templateString&&this._templateRecord.innerHTML&&(this._templateRecord.templateString=this._templateRecord.innerHTML),this._templateRecord.parentNode.removeChild(this._templateRecord),this.records&&this.records.length||this.hideSelf()}},{key:"update",value:function(e){e.has("infiniteScrolling")&&this._infiniteScrollingChanged(this.infiniteScrolling,e.infiniteScrolling),e.has("records")&&this._recordsPropertyChanged(this.records),e.has("restoreScrollPosition")&&this._restoreScrollPositionChanged(this.restoreScrollPosition,e.restoreScrollPosition),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this.unsubscribe(),this._loadNextPageDebouncerJob&&this._loadNextPageDebouncerJob.cancel(),P(this._scrollingContainer,this._scrollingHandler),this._scrollingHandler=function(){},document.removeEventListener(k.a,this._restoreScrollHandler),s()(p()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"unsubscribe",value:function(){this._subscriptionKey&&(v.a.communication.ResultDispatcher.unsubscribe("records",this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"loadNextPage",value:function(){var e=v.a.communication.EventAggregator.currentSearchResult,t=function(e,t){if(t&&t.paging.nextLink&&!e._currentLoadingNextPage){var n=Math.ceil(e.querySelectorAll(b.Record.is).length/t.paging.resultsPerPage)+1,r=Math.max(n,t.paging.nextLink.number);return r>t.paging.pageCount?void 0:r}}(this,e);if(t&&!(t>this.infiniteMaxPages)&&(this._currentLoadingNextPage=t,this._currentLoadNextPageDispatchId=v.a.communication.EventAggregator.addFFEvent({type:"paging",number:this._currentLoadingNextPage,topics:function(){return["result","records"]}}),this.infiniteScrolling))for(var n=(this._currentLoadingNextPage-1)*e.paging.resultsPerPage,r=n;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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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,c=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n',""])),this._changePage,Object(b.e)(this._template,this.pagingItem||{}))}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._template||(this._template=Object(b.d)(this)?"{{caption}}":this.innerHTML)}},{key:"update",value:function(e){e.has("pagingItem")&&(this.pagingItem?(this.classList.remove("ffw-disabled"),this.showSelf(),!0===this.pagingItem.currentPage?this.classList.add("ffw-selected"):this.classList.remove("ffw-selected")):(this.classList.add("ffw-disabled"),this.hideSelf())),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"clone",value:function(){var e=this.cloneNode(!0);return e._template=this._template,e}},{key:"_changePage",value:function(e){this.pagingItem&&!this.pagingItem.currentPage&&"true"!==this.showOnly&&factfinder.communication.EventAggregator.addFFEvent({type:"paging",number:this.pagingItem.number})}}],[{key:"is",get:function(){return"ff-paging-item"}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},pagingItem:{type:Object,attribute:!1},showSelected:{type:Boolean,attribute:"show-selected",reflect:!0},showOnly:{type:b.b,attribute:"show-only",reflect:!0}}}}]),n}(b.a);window.customElements.define(_.is,_)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(13),y=n(53);var b=n(42),_=n(41),k=n(47),w=n(5),C=n(28);n.d(t,"isSameRecordData",(function(){return P})),n.d(t,"Record",(function(){return O}));var S=[function(e){return function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).searchLightDOM=!0,e.productImageIdentifier="[data-image]",e.productImageErrorIdentifier="[data-image-onerror]",e.redirectIdentifier="[data-redirect]",e.redirectTargetIdentifier="[data-redirect-target]",e.productAnchorIdentifier="[data-anchor]",e.recommendationIdentifier="[data-recommendation]",e.bindImmediate=!1,e.tracking=m.a.communication.Tracking,e}return a()(n,[{key:"ready",value:function(){s()(p()(n.prototype),"ready",this).call(this),this.bindImmediate&&(this.bindProductAnchors(),this.bindProductActions(),this.bindProductImage())}},{key:"bindProductActions",value:function(){this._bindProductRedirect()}},{key:"bindProductImage",value:function(){this.searchLightDOM&&this._bindProductImage(this)}},{key:"bindProductAnchors",value:function(){this.searchLightDOM&&this._bindProductAnchors(this)}},{key:"_bindProductImage",value:function(e){var t=this;e.querySelectorAll(this.productImageIdentifier).forEach((function(e){e.onerror||(e.onerror=t._bindOnError(e));var n=m.a.communication,r=n.fieldRoles?n.fieldRoles.imageUrl:"",i=e.getAttribute("data-image")||t.recordData.record[r]||t.recordData.record.ImageUrl;i?e.setAttribute("src",i):e.onerror()}))}},{key:"_bindOnError",value:function(e){var t=this;return function(){var n=e.getAttribute("data-image-onerror");e.onerror=null,n?e.setAttribute("src",n):m.a.common.Logger.debug("No image data for this record: ".concat(t.recordData.id))}}},{key:"_bindProductAnchors",value:function(e){e.querySelectorAll(this.productAnchorIdentifier).forEach((function(e){var t=e.getAttribute("data-anchor");t&&0!==t.length&&(e.setAttribute("href",t),e.removeAttribute("data-anchor"))}))}},{key:"_bindProductRedirect",value:function(){this.searchLightDOM&&this.bindRedirect(this)}},{key:"bindRedirect",value:function(e){var t=this;e&&e.querySelectorAll(this.redirectIdentifier).forEach((function(e){e.querySelectorAll("[data-track]").forEach((function(e){return e.attributes.removeNamedItem("data-track")})),t.registerClickListener(e)}))}},{key:"registerClickListener",value:function(e){var t=this,n=function(e){var n=e.ctrlKey||e.shiftKey||e.metaKey||e.altKey;return 0===e.button&&!n&&!t.disableOverwrite},r=function r(i){e.removeEventListener("mouseup",r),2!==i.button&&t._handleTrackingAndRedirect(i,n(i))};e.addEventListener("click",(function(e){n(e)&&e.preventDefault()})),e.addEventListener("mousedown",(function(t){e.addEventListener("mouseup",r),e.addEventListener("mouseleave",(function(){return e.removeEventListener("mouseup",r)}))}))}},{key:"_handleTrackingAndRedirect",value:function(e,t){var n=this;e.stopPropagation();var r=e.currentTarget,i=this.getRedirectTarget(r),o=this.getRedirectLocation(r);if(o){var a=function(){!0===t&&n.redirect(o,i)};if("_blank"===i){try{!0===this.__isRecommendation?this._trackRecommendationClick(this):!0===this.__isLandingPage?this._trackLandingPageClick(this):this._trackProductClick(this)}catch(e){console.log(e)}a()}else!0===this.__isRecommendation?this._trackRecommendationClick(this,void 0,a):!0===this.__isLandingPage?this._trackLandingPageClick(this,a):this._trackProductClick(this,void 0,a)}}},{key:"getRedirectLocation",value:function(e){var t=e.attributes.getNamedItem("data-redirect");if(t){var n=t.nodeValue;if(n&&0=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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n'.concat(e,"")})),e.queryHighlighted=!0}catch(e){this.error(e)}else this.warn("Search query is not defined or is an empty string. Suggest item highlighting skipped.")}},{key:"_clicked",value:function(){var e={type:this.type,suggestion:this.suggestion,element:this};if(this.dispatchEvent(new CustomEvent("item-clicked",{detail:e,bubbles:!0})),!0!==this.ffPreventDefault){var t=Object(R.b)()?w.a.communication.fieldRoles.deeplink:"deeplink";if(!this.openDeeplink(this.suggestion.attributes[t])){var n="productName"===this.type?this.getRecordEvent():(this,I(I({},w.a.common.decodeDict(w.a.common.urlStringToDict(this.suggestion.searchParams))),{},{queryFromSuggest:!0,userInput:w.a.communication.globalElementValues.currentFFSearchBoxValue,type:"search"}));Object(j.a)(n,this)}}else this.ffPreventDefault=!1}},{key:"getRecordEvent",value:function(){var e=parseFloat(w.a.communication.globalSearchParameter.version);isNaN(e)&&!Object(R.a)()&&(this.error("Could not parse float from FACT-Finder version string, using fallback article number search"),e=7.2);var t=Object(R.b)()?w.a.communication.fieldRoles.productNumber:"id",n=e<7.3?{type:"productDetail",id:this.suggestion.attributes.articleNr}:{type:"getRecords",recordId:[this.suggestion.attributes[t]]};return n.success=w.a.common.concatFunctions(n.success,this.recordSearchHandler.bind(this)),n}},{key:"recordSearchHandler",value:function(e){var t=e.searchResult?e.searchResult.records:e;t&&0".concat(i()(l()(n.prototype),"getHTML",this).call(this),"")}},{key:"getTemplateElement",value:function(){var e=i()(l()(n.prototype),"getTemplateElement",this).call(this),t=e.content,r=t.firstChild;return t.removeChild(r),Object(m.c)(t,r.firstChild),e}}]),n}(y)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h);var m=function(){return function(e){return function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"connectedCallback",value:function(){"function"==typeof s()(p()(n.prototype),"connectedCallback",this)&&s()(p()(n.prototype),"connectedCallback",this).call(this),this.hasAttribute("unresolved")&&this.removeAttribute("unresolved")}}]),n}(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h);function m(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var v=function(){var e=!(0'])),Object(k.a)(function(e){for(var t=1;t":">",'"':""","'":"'","/":"/","`":"`","=":"="},l=/\s*/,f=/\s+/,d=/\s*=/,h=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function m(e){this.string=e,this.tail=e,this.pos=0}function v(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function g(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},m.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var t,n,i,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var c,s,u,l=this,f=!1;l;){if(0"===a?c=this.renderPartial(o,t,n,i):"&"===a?c=this.unescapedValue(o,t):"name"===a?c=this.escapedValue(o,t):"text"===a&&(c=this.rawValue(o)),void 0!==c&&(s+=c);return s},g.prototype.renderSection=function(e,t,i,o){var a=this,c="",s=t.lookup(e[1]);if(s){if(n(s))for(var u=0,l=s.length;u"'`=\/]/g,(function(e){return u[e]}))},e.Scanner=m,e.Context=v,e.Writer=g,e},t&&"string"!=typeof t.nodeName?a(t):(i=[t],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o))},function(e,t,n){"use strict";n.r(t),n.d(t,"INTERNAL_TRACKING_PRICE_FIELD_NAME",(function(){return m})),n.d(t,"Tracking",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1),p=n(15);var m="__TRACKING_PRICE__",v=function(){return function(e){return function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).clickSelector="[data-track]",e.productClickSelector='[data-track="productClick"]',e.recommendationClickSelector='[data-track="recommendationClick"]',e.checkoutClickSelector='[data-track="checkoutClick"]',e.cartClickSelector='[data-track="cartClick"]',e.dataCountSelector="[data-track-count]",e.tracking=h.a.communication.Tracking,e.getTrackingProductId=h.a.communication.Util.trackingHelper.getTrackingProductId,e.getPrice=h.a.communication.Util.trackingHelper.getPrice,e.getMasterArticleNumber=h.a.communication.Util.trackingHelper.getMasterArticleNumber,e.getUserId=h.a.communication.Util.trackingHelper.getUserId,e.getTitle=h.a.communication.Util.trackingHelper.getTitle,e}return a()(n,[{key:"appendCount",value:function(e,t){e.count=t.count||"1";var n=t.querySelector(this.dataCountSelector);if(n){var r=n.getAttribute("data-track-count");e.count=n[r]||n.value||"1"}}},{key:"appendChannel",value:function(e,t){t.channel?e.channel=t.channel:e.channel=h.a.communication.globalSearchParameter.channel}},{key:"appendInstoreAds",value:function(e,t){"true"===t.record.__FFInstoreAds__&&(e.instoreAds="true")}},{key:"appendCampaign",value:function(e,t){t.record.__FFCampaign__&&(e.campaign=t.record.__FFCampaign__)}},{key:"appendUserId",value:function(e){var t=this.getUserId();null!=t&&(e.userId=t)}},{key:"appendTitle",value:function(e,t){var n=this.getTitle(t);null!=n&&(e.title=n)}},{key:"appendPageSize",value:function(e,t,n){var r=null;if(n&&n.resultsPerPageList)for(var i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}(this._attributeToPropertyMap);try{for(n.s();!(e=n.n()).done;){var r=i()(e.value,2),o=r[0];r[1],t.push(o)}}catch(e){n.e(e)}finally{n.f()}return t.concat("use-url-parameter")}},{key:"createProperties",value:function(){var e=this;this._attributeToPropertyMap=new Map;var t=function(t){var n=e.properties[t];e._attributeToPropertyMap.set(n.attribute||t,t),Object.defineProperty(e.prototype,t,{get:function(){return n.get&&"function"==typeof n.get?n.get.bind(this)():n.group?y.a.communication[n.group][n.name||t]:this["__".concat(t)]},set:function(e){n.set&&"function"==typeof n.set?n.set.bind(this)(e):n.group?y.a.communication[n.group][n.name||t]=e:this["__".concat(t)]=e},configurable:!0,enumerable:!0})};for(var n in this.properties)t(n);this._propsCreated=!0}}]),n}(Object(_.a)([Object(k.ElementLog)(),Object(w.a)(P)],HTMLElement));function x(e){return!/\S/.test(e)}window.customElements.define(O.is,O)},function(e,t,n){"use strict";function r(e){return(e.selectedElements[0]||e.elements[0]||e).associatedFieldName||e.name}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"SliderOneTouch",(function(){return E}));var r,i=n(18),o=n.n(i),a=n(27),c=n.n(a),s=n(8),u=n.n(s),l=n(4),f=n.n(l),d=n(3),h=n.n(d),p=n(2),m=n.n(p),v=n(6),g=n.n(v),y=n(7),b=n.n(y),_=n(0),k=n.n(_),w=n(10),C=n(59);function S(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 P(e){for(var t=1;t
'])),R(this),j(this),n,o,o,2*n,2*o,I(this),I(this),R(this),1.5*n,o,i,n,n,n,A(this,!0),A(this,!0),n,A(this,!1),A(this,!1),2*n)}},{key:"firstUpdated",value:function(){m()(k()(n.prototype),"firstUpdated",this).call(this),window.addEventListener("mouseup",M(this)),window.addEventListener("touchend",M(this))}},{key:"update",value:function(e){m()(k()(n.prototype),"update",this).call(this,e),["selectedMinValue","selectedMaxValue","absoluteMinValue","absoluteMaxValue"].some((function(t){return e.has(t)}))&&(function(e){e.selectedMaxValue=Math.min(e.absoluteMaxValue,e.selectedMaxValue),e.selectedMinValue=Math.max(e.absoluteMinValue,e.selectedMinValue),e.selectedMinValue===e.selectedMaxValue&&(e.selectedMinValue===e.absoluteMinValue&&(e.selectedMaxValue+=e.stepSize),e.selectedMaxValue===e.absoluteMaxValue&&(e.selectedMinValue-=e.stepSize)),N(e)}(this),L(this))}},{key:"updateData",value:function(e){m()(k()(n.prototype),"updateData",this).call(this,e),L(this)}}],[{key:"is",get:function(){return"ff-slider-one-touch"}},{key:"properties",get:function(){return{ratio:{type:Number}}}}]),n}(C.a);function R(e){return function(){e.querySelector(O.Triangle).classList.add(x.Active),L(e)}}function j(e){return function(){e._listener||(e.querySelector(O.Triangle).classList.remove(x.Active),L(e))}}function L(e){var t=e.querySelector(O.LeftButton),n=e.querySelector(O.RightButton),r=e.querySelector(O.Line),i=e.querySelector(O.SelectedRange),o=e.querySelector(O.Triangle),a=r.offsetWidth,c=r.offsetLeft,s=a-t.offsetWidth-n.offsetWidth,u=a+t.offsetWidth,l=e.absoluteMaxValue-e.absoluteMinValue,f=Math.round((e.selectedMinValue-e.absoluteMinValue)/l*s+c),d=Math.round((e.selectedMaxValue-e.absoluteMinValue)/l*s+u);t.style.left="".concat(f,"px"),i.style.left="".concat(f,"px"),n.style.left="".concat(d,"px"),i.style.right="".concat(2*a-d-n.offsetWidth,"px");var h=f+t.offsetWidth;if(o.classList.contains(x.Active)){var p=50-(d-h)/s*50;o.style.left="".concat(d,"px"),o.style.top="".concat(p,"%")}else o.style.left="".concat((d-h)/2+h,"px"),o.style.top="50%"}function I(e){return{handleEvent:function(t){var n=e.querySelector(O.LeftButton),r=e.querySelector(O.RightButton),i=e.querySelector(O.Line),o=e.querySelector(O.Triangle);o.classList.contains(x.Active)||R(e)(),M(e)(),o.classList.add(x.NoTransition);var a=i.offsetWidth-n.offsetWidth-r.offsetWidth,s=e.absoluteMaxValue-e.absoluteMinValue,u=function(e){return e/a*s},l=T(t),f=c()(l,2),d=f[0],h=f[1],p=e.selectedMaxValue,m=e.selectedMaxValue-e.selectedMinValue;e._listener=function(t){var n=T(t),r=c()(n,2),i=r[0],o=r[1],a=i-d,s=(o-h)/e.ratio,l=u(a),f=u(s),v=p+l,g=v-m,y=Math.max(0,v-e.absoluteMaxValue),b=Math.max(0,e.absoluteMinValue-g),_=0window.innerWidth&&(e=window.innerWidth),e},getHeight:function(){var e=this.getDocEl().clientHeight;return window.innerHeight&&e>window.innerHeight&&(e=window.innerHeight),e},getScrollX:function(){return"number"==typeof window.pageXOffset?window.pageXOffset:this.getDocEl().scrollLeft},getScrollY:function(){return"number"==typeof window.pageYOffset?window.pageYOffset:this.getDocEl().scrollTop},getAll:function(){return{width:this.getWidth(),height:this.getHeight(),scrollX:this.getScrollX(),scrollY:this.getScrollY()}}},r.Util=((o=r.Util||{}).$=function(e,t){return t?t.root?t.shadowRoot.querySelector(e):t.querySelector(e):e.nodeType?e:""!==e?window.ShadowDOMPolyfill||Element.prototype.createShadowRoot?document.querySelector("body /deep/ #"+e):document.getElementById(e):void 0},o.intersectContainer=function(e,t){var n=parseInt(e.style.left.replace("px",""),10),r=parseInt(e.style.left.replace("px",""))+e.offsetWidth,i=parseInt(t.style.left.replace("px",""),10),a=parseInt(t.style.left.replace("px",""),10)+t.offsetWidth;return o.intersectValues(n,r,i,a)},o.intersectValues=function(e,t,n,r){return e<=r&&n<=t||r<=e&&t<=n},o.getCurrentStyle=function(e,t){var n,r,i="";return window.getComputedStyle?i=window.getComputedStyle(e,null)[t]:e.currentStyle&&(i=e.currentStyle[t],!/^\d+(px)?$/i.test(i)&&/^\d/.test(i)&&(n=e.style.left,r=e.runtimeStyle.left,e.runtimeStyle.left=e.currentStyle.left,e.style.left=i||0,i=e.style.pixelLeft+"px",e.style.left=n,e.runtimeStyle.left=r)),i},o.contained=function(e,t){if(!e)return!1;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.hash=function(){return Math.floor(65536*(1+Math.random())).toString(32).substring(1)},o),r.Draggable=function(){var e=r.Util,t=r.Event,n=r.Viewport;function i(n,r,o,a){var c,s;if("string"==typeof n?c=e.$(n):"nodeType"in n?c=n:console.log("Cant process identifierer "+n),!c)throw new Error("new DYN_WEB.Draggable: No element with the specified id found.");this.id=n;var u=parseInt(e.getCurrentStyle(c,"left"),10),l=parseInt(e.getCurrentStyle(c,"top"),10);if(o&&(this.minX="number"==typeof o.minX?o.minX:void 0,this.maxX="number"==typeof o.maxX?o.maxX:void 0,this.minY="number"==typeof o.minY?o.minY:void 0,this.maxY="number"==typeof o.maxY?o.maxY:void 0,this.on_drag_start="function"==typeof o.on_drag_start?o.on_drag_start:this.on_drag_start,this.on_drag="function"==typeof o.on_drag?o.on_drag:this.on_drag,this.on_drag_end="function"==typeof o.on_drag_end?o.on_drag_end:this.on_drag_end),a?(u=this.maxX,this.slider2=e.$(n)):(u=isNaN(u)?0:u,this.slider1=e.$(n)),l=isNaN(l)?0:l,i.shiftTo(c,u,l),r){if(!(s=r.nodeType?r:e.$(r)))throw new Error("new DYN_WEB.Draggable: No element with the specified handleId found.");if(!e.contained(s,c))throw new Error("new DYN_WEB.Draggable: No element with id "+r+" found inside "+n+".")}else s=c;t.add(s,"mousedown",i.start.bind(this)),t.add(s,"touchstart",i.start.bind(this))}return i.prototype={on_drag_start:function(){},on_drag:function(){},on_drag_end:function(){}},i.zOrder=1e3,i.start=function(e){var r,o,a,c,s,u=0;e=t.DOMit(e);var l=t.getTarget(e);do{if(l.id===this.slider1.id){r=this.slider1;break}if(l.id===this.slider2.id){r=this.slider2;break}u++}while(u<10&&(l=l.parentNode));if(!r)throw new Error("Unable to find Draggable element onmousedown.");r.style.zIndex=i.zOrder++,o=e.clientX+n.getScrollX(),a=e.clientY+n.getScrollY(),c=parseInt(r.style.left,10)||0,s=parseInt(r.style.top,10)||0,this.dx=o-c,this.dy=a-s,this.downX=o,this.downY=a,this.on_drag_start(c,s),this.drag=i.drag.bind(this),this.end=i.end.bind(this),t.add(document,"mousemove",this.drag),t.add(document,"touchmove",this.drag),t.add(document,"mouseup",this.end),t.add(document,"touchend",this.end),e.preventDefault(),e.stopPropagation()},i.drag=function(e){e=t.DOMit(e);var r=this,o=this.id,a=e.clientX+n.getScrollX()-r.dx,c=e.clientY+n.getScrollY()-r.dy;a=void 0!==r.minX?Math.max(r.minX,a):a,a=void 0!==r.maxX?Math.min(r.maxX,a):a,c=void 0!==r.minY?Math.max(r.minY,c):c,c=void 0!==r.maxY?Math.min(r.maxY,c):c,("string"==typeof r.id?r.id===this.slider1.id:r.id.id===this.slider1.id)?(r.maxX=parseInt(this.slider2.style.left.replace("px",""),10),r.minX=0):("string"==typeof r.id?r.id===this.slider2.id:r.id.id===this.slider2.id)&&(r.minX=parseInt(this.slider1.style.left.replace("px",""),10),r.maxX=r.origMaxX),i.shiftTo(o,a,c),r.on_drag(a,c),e.preventDefault()},i.end=function(){var e,n,r=this.id;t.remove(document,"mousemove",this.drag),t.remove(document,"touchmove",this.drag),t.remove(document,"mouseup",this.end),t.remove(document,"touchend",this.end),r&&(e=parseInt(r.style.left,10),n=parseInt(r.style.top,10),this.on_drag_end(e,n))},i.setup=function(){for(var e,t=0,n=arguments.length;t
','
',"
"])),"slider1-".concat(this._UID),this._sliderContent1,"slider2-".concat(this._UID),this._sliderContent2)}},{key:"connectedCallback",value:function(){var e=this;function t(e){var t='
');return Object(S.a)(t)}p()(_()(n.prototype),"connectedCallback",this).call(this),this._sliderContent1=this.querySelector('[slot="slider1"]')||t("slider1"),this._sliderContent2=this.querySelector('[slot="slider2"]')||t("slider2"),this.resizeHandler=window.addEventListener("resize",(function(){return e.renderSlider()})),this.renderSliderKey||(this.renderSliderKey=setInterval((function(){return e.renderSlider()}),250))}},{key:"disconnectedCallback",value:function(){p()(_()(n.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this.resizeHandler),this.renderSliderKey&&(clearInterval(this.renderSliderKey),this.renderSliderKey=void 0)}},{key:"update",value:function(e){p()(_()(n.prototype),"update",this).call(this,e),e.has("selectedMinValue")&&this._selectedMinChanged(),e.has("selectedMaxValue")&&this._selectedMaxChanged(e.get("selectedMaxValue")),(e.has("absoluteMaxValue")||e.has("absoluteMinValue"))&&M(this)}},{key:"init",value:function(){var e,t,n,r;this._slider1=new L.Slider(this.querySelector(".ffw-slider1"),this,"h"),this._slider1.on_move=(e=this,function(t){return N(e,Math.floor(e._getCurrentValue(t)),e.selectedMaxValue,1)}),this._slider1.on_move_end=(t=this,function(e){t.selectedMinValue=t._getCurrentValue(e),D(t)}),this._slider2=new L.Slider(this.querySelector(".ffw-slider2"),this,"h",!0),this._slider2.on_move=(n=this,function(e){var t=(e=n._getCurrentValue(e))=this.selectedMaxValue&&(this.selectedMinValue=this.selectedMaxValue>this.absoluteMinValue?Math.ceil(this.selectedMaxValue)-1:this.absoluteMinValue),M(this),this.dispatchEvent(F(this.selectedMinValue,this.selectedMaxValue,1))}},{key:"_selectedMaxChanged",value:function(e){isNaN(this.selectedMaxValue)||this.selectedMaxValue>Math.ceil(this.absoluteMaxValue)?this.selectedMaxValue=Math.ceil(this.absoluteMaxValue)||e:this.selectedMaxValue<=this.selectedMinValue&&(this.selectedMaxValue=Math.floor(this.selectedMinValue)+1),M(this),this.dispatchEvent(F(this.selectedMinValue,this.selectedMaxValue,2))}}],[{key:"is",get:function(){return"ff-slider"}},{key:"properties",get:function(){return{submitOnRelease:{type:Boolean,attribute:"submit-on-release"}}}}]),n}(I.a);function M(e){e._forceUpdate&&(e._forceUpdate=!1,!e.isInitialized&&e.init(),e.renderSlider())}function N(e,t,n,r){e.dragging=!0,e.dispatchEvent(new CustomEvent("slider-moved",{detail:{selectedMinValue:t,selectedMaxValue:n,slider:r}}))}function D(e){e.dragging=!1,"false"!==e.getAttribute("submit-on-release")&&e.submit()}function F(e,t,n){return new CustomEvent("value-changed",{detail:{selectedMinValue:e,selectedMaxValue:t,slider:n}})}window.customElements.define(T.is,T);var B,V,U=n(50),q=n(28);function z(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}var W=["".concat(T.is,", ").concat(U.SliderOneTouch.is),"input[data-control='1']","input[data-control='2']"],H=Object(S.e)(B||(B=s()(['
']))),K=function(e){v()(n,e);var t=function(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 n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).disableInputFields=!1,e.submitOnInput=!1,e.unit=void 0,e.group=void 0,e.decimalPlaces=void 0,e.inputMin=void 0,e.inputMax=void 0,e.slider=void 0,e._submitDelay=500,e._content=void 0,e._isSubmitScheduled=!1,e._submitInputMinDebouncerJob=void 0,e._submitInputMaxDebouncerJob=void 0,e}return d()(n,[{key:"render",value:function(){return Object(k.b)(V||(V=s()(['
',"
"])),this._content)}},{key:"initDefaultTemplates",value:function(){var e;this._content||(e=Object(C.d)(this)?(this._content=Object(S.a)(H),this._content):(this._content=Array.from(this.childNodes),this),this.slider=e.querySelector(W[0]),this.inputMin=e.querySelector(W[1]),this.inputMax=e.querySelector(W[2]),function(e,t){var n=W.filter((function(e){return!t.querySelector(e)}));if(0!==n.length)throw Error("".concat(K.is,' does not have all required templates.\nYou must provide a template for each of the following selectors: "').concat(W.join('", "'),'".\nMissing templates are: "').concat(n.join('", "'),'".\nAlternatively, you may leave ').concat(K.is," empty. In this case, default templates will be used."))}(0,e),this.slider.addEventListener("slider-moved",this._valueChanged.bind(this)),this.slider.addEventListener("value-changed",this._valueChanged.bind(this)))}},{key:"update",value:function(e){e.has("group")&&this._groupChanged(),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){this._submitInputMinDebouncerJob&&this._submitInputMinDebouncerJob.cancel(),this._submitInputMaxDebouncerJob&&this._submitInputMaxDebouncerJob.cancel(),p()(_()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"init",value:function(){var e=this;this.inputMin.value=this.addUnit(this.slider.selectedMinValue),this.inputMax.value=this.addUnit(this.slider.selectedMaxValue),this.disableInputFields?this._disableFocusInput():this._initInputSubmit(),Promise.resolve().then((function(){return e.style.opacity="1"}))}},{key:"submit",value:function(){this._submitInputMax(),this._submitInputMin()}},{key:"_groupChanged",value:function(){var e=this;this.group&&setTimeout((function(){e._updateInput(e.inputMax,e.slider.selectedMaxValue),e._updateInput(e.inputMin,e.slider.selectedMinValue)}),1)}},{key:"_updateInput",value:function(e,t){if(e){this.slider&&void 0!==t&&(e.value=this.addUnit(t));for(var n=e.attributes,r=0;r','
'," ","
"])),(function(){return e.toggle(!0)}),Object(C.e)(this._groupCaptionTemplate,{group:this.group}),this.opened,this._sliderControl,this._removeFilterContainer):Object(k.b)(Y||(Y=s()(['
'])),this.opened)}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this.init()}},{key:"firstUpdated",value:function(e){p()(_()(n.prototype),"firstUpdated",this).call(this,e),this._wrapper=this.querySelector(this.selectorWrapper),this.opened?this.show():this._hide(this._wrapper,!1)}},{key:"init",value:function(){var e=this;this._initialized||(this._initialized=!0,this._rawOuterHtml=this.outerHTML,this._groupCaptionTemplate=this._initGroupCaption(),this._sliderControl=this.querySelector(K.is)||document.createElement(K.is),this._sliderControl.initDefaultTemplates(),this._updateSliderControls(),this._removeFilterContainer=this._initRemoveFilter(),this.updateComplete.then((function(){var t=e.querySelector("".concat(T.is,", ").concat(U.SliderOneTouch.is));Q(e,t),t.addEventListener("value-changed",(function(){Q(e,t)}))})))}},{key:"_initGroupCaption",value:function(){return this.querySelector(this.selectorGroupCaptionContainer)||Object(S.a)('
{{group.name}}
')}},{key:"_updateSliderControls",value:function(){var e=this;this.querySelectorAll(K.is).forEach((function(t){return t.group=e.group})),this._sliderControl&&(this._sliderControl.group=this.group)}},{key:"_hideGroup",value:function(){this.style.display="none",this.offsetHeight,this.style.opacity="0"}},{key:"update",value:function(e){e.has("group")&&this._asnGroupChanged(),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"_processAndRenderGroup",value:function(e){var t=this;this.forGroup=Object(J.a)(e);var r=e.elements[0];if("number"!=typeof r.absoluteMinValue||"number"!=typeof r.absoluteMaxValue)return this.warn("[".concat(n.is,"]: absoluteMinValue and absoluteMaxValue must be numbers but are:"),r.absoluteMinValue,r.absoluteMaxValue),void this._hideGroup();if(r.absoluteMinValue!==r.absoluteMaxValue){r.selectedMinValue=Math.max(r.absoluteMinValue,r.selectedMinValue),r.selectedMaxValue=Math.min(r.absoluteMaxValue,r.selectedMaxValue),this._updateSliderControls();try{Promise.resolve().then((function(){var n=t.querySelector("".concat(T.is,", ").concat(U.SliderOneTouch.is));n&&(n.unit=e.unit,n.updateComplete.then((function(){return n.updateData(r)})))})),this.style.display="",this.offsetHeight,function(e){if(!e||!e.elements[0])return!1;var t=e.elements[0],n=t.selectedMinValue,r=t.selectedMaxValue,i=t.absoluteMinValue;return r!==t.absoluteMaxValue||n!==i}(e)&&!0!==this.opened&&!this.disableAutoExpand&&this.updateComplete.then((function(){return t.show()})),this.dispatchEvent(new CustomEvent("records-updated",{bubbles:!0,composed:!0})),this.style.opacity="1",this.offsetHeight}catch(e){this.error(e)}}else this._hideGroup()}},{key:"_asnGroupChanged",value:function(){this.group?this._processAndRenderGroup(this.group):(this.group=w.a.communication.AsnGroup,this._hideGroup())}},{key:"_initRemoveFilter",value:function(){var e=this,t=this.querySelector(this.selectRemoveFilterContainer)||Object(S.a)('
Reset Filter
');return t.addEventListener("click",(function(){w.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:e.group.name,removeAll:!0})})),t}},{key:"toggle",value:function(e){var t=this;this.collapsible&&(this._wrapper&&this._wrapper.hasAttribute("opened")?this._toggle(this._wrapper,e,(function(){return t.opened=!1})):(this._toggle(this._wrapper,e),this.opened=!0))}},{key:"show",value:function(e){this.collapsible&&(this._show(this._wrapper,e),this.opened=!0)}},{key:"hide",value:function(e){var t=this;this.collapsible&&!1!==this.opened&&(!0!==e?(this._hide(this._wrapper,e),this.opened=!1):this._hide(this._wrapper,e,(function(){return t.opened=!1})))}},{key:"clone",value:function(){return Object(S.a)(this._rawOuterHtml)}}],[{key:"is",get:function(){return"ff-asn-group-slider"}},{key:"properties",get:function(){return{collapsible:{type:C.c},opened:{type:Boolean,reflect:!0},forGroup:{type:String,reflect:!0,attribute:"for-group"},filterStyle:{type:String,reflect:!0,attribute:"filter-style"},disableAutoExpand:{type:Boolean,reflect:!0,attribute:"disable-auto-expand"},group:{type:Object,attribute:!1}}}}]),n}(Object(P.a)([Object(X.ElementLog)(),Object(Z.CollapseElement)()],C.a));function Q(e,t){if(e._removeFilterContainer){var n=e._removeFilterContainer.style.display,r=t.selectedMinValue>t.absoluteMinValue||t.selectedMaxValue=this.absoluteMaxValue)m.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:t.group.name,removeAll:!0});else{if((n=this).selectedMinValue=Math.round(n.selectedMinValue/n.stepSize)*n.stepSize,n.selectedMaxValue=Math.round(n.selectedMaxValue/n.stepSize)*n.stepSize,Object(y.a)())o.filter=function(){var e=0r.left)&&i.push(t)}));var o=null,a=1/0,c=1/0;i.forEach((function(e){var t=e.getBoundingClientRect(),n=Math.abs(t.left-r.left),i=Math.abs(t.top-r.top);o?i.ffw-menu-items{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[layout=horizontal]>.ffw-menu-items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}ff-navigation .ffw-navigation-label{display:none}ff-navigation #navigation-menu{display:none;border-bottom:1px solid #000;cursor:pointer;padding:5px;background-color:#b9ecff;-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%}ff-navigation[mobile=true]>.ffw-navigation-label{display:block}ff-navigation[mobile=true]>#navigation-menu:checked+label+.ffw-menu-items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important}ff-navigation[mobile=true]>.ffw-menu-items{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[mobile=true]{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;width:100%}ff-navigation-item{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}ff-navigation-item .ffw-item-caption{width:100%}ff-navigation-item .ffw-container-hidden{display:none!important}ff-navigation-item .ffw-item-container{display:none;-webkit-transition:all .1s linear;transition:all .1s linear;-webkit-transition-delay:.3s;transition-delay:.3s;position:absolute;z-index:1;background-color:#fff}ff-navigation-item[direction=down][flyout=true]>.ffw-item-container{top:100%}ff-navigation-item[direction=down]>.ffw-item-container{top:100%;left:0}ff-navigation-item[flyout=false][selected]>.ffw-item-container{top:0;z-index:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false]>.ffw-item-container{display:none}ff-navigation-item[flyout=false][direction=down][selected]>.ffw-item-container{top:0}ff-navigation-item[flyout=false]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false][selected] .ffw-navigation-link{display:none!important;top:0}ff-navigation-item[flyout=false] .ffw-navigation-link{display:none!important}ff-navigation-item[flyout=true][direction=right]>.ffw-item-container{top:0;left:100%}ff-navigation-item[flyout=true][direction=left]>.ffw-item-container{top:0;right:100%}ff-navigation-item[flyout=true]:hover>.ffw-item-container:not(:empty){display:inline-block}ff-asn{outline:none;transition:opacity .6s;display:block}ff-asn[align=horizontal]{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}ff-asn-group{opacity:0;transition:opacity .4s;outline:none;display:block;min-width:180px;max-width:220px}ff-asn-group[align=horizontal] #wrapper{position:absolute;width:100%}ff-asn-group .ffw-asn-group-container{position:relative}ff-asn-group .ffw-wrapper{position:relative;transition-duration:.35s}ff-asn-group-element,ff-asn-group-slider{display:block;outline:none}ff-asn-group-slider{opacity:0;transition:opacity .4s;min-width:180px;max-width:220px}ff-asn[align=horizontal] ff-asn-group-slider .ffw-wrapper{position:absolute;width:100%}ff-asn-group-slider .ffw-container{position:relative}ff-asn-group-slider .ffw-wrapper{position:relative;transition-duration:.4s}ff-slider-control{display:block;opacity:0;transition:opacity .8s;padding:10px 0}ff-slider-control .ffw-sliderSection{margin-top:10px}ff-slider{height:5px;background-color:#336;margin:5px auto;display:block;opacity:0;transition:opacity .8s}ff-slider .ffw-sliderWrapper{min-width:1px}ff-slider [slot^=slider]{height:10px;width:10px;border:1px solid #000;cursor:pointer}ff-compare{display:block}ff-asn-remove-all-filter{display:inline-block}ff-breadcrumb-trail{display:inline}ff-breadcrumb-trail-item{transition:opacity .8s;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ff-search-feedback{position:absolute;top:20px}ff-search-feedback[align=left]{left:0}ff-search-feedback[align=right]{right:0}ff-search-feedback[align=left] .ffw-content{transform:translate(0)}ff-search-feedback[align=left] .ffw-caption{transform:translate(100%)}ff-search-feedback .ffw-noTransition{transition:0s!important}ff-search-feedback .ffw-caption{position:absolute;right:0;transition:transform .3s;cursor:pointer}ff-search-feedback .ffw-content{position:absolute;transition:transform .3s;transform:translate(100%);right:0;text-align:left}ff-search-feedback .ffw-transformZero{transform:translate(0)!important}ff-search-feedback .ffw-transformX{transform:translate(100%)!important}ff-tag-cloud{display:block;max-width:600px}ff-tag-cloud .ffw-tagCloudContainer{display:flex;justify-content:space-around;flex-wrap:wrap}ff-tag-cloud .ffw-tagCloudLink{padding:2px}ff-loading-spinner{display:block}ff-loading-spinner .ffw-path{stroke-dasharray:187;stroke-dashoffset:0;transform-origin:center;animation:ffw-spinner-dash 1.3s linear infinite}ff-loading-spinner .ffw-spinner{animation:ffw-spinner-rotation 1.3s linear infinite}@keyframes ffw-spinner-rotation{0%{transform:rotate(0deg)}to{transform:rotate(270deg)}}@keyframes ffw-spinner-dash{0%{stroke-dashoffset:187}50%{stroke-dashoffset:44.5;transform:rotate(135deg)}to{stroke-dashoffset:187;transform:rotate(450deg)}}ff-slider-one-touch{display:block;z-index:-1001;pointer-events:none}ff-slider-one-touch .ffw-slider-container{top:0;position:relative;pointer-events:none}ff-slider-one-touch .ffw-triangle{pointer-events:auto;user-select:none;position:absolute;z-index:1000;opacity:.5;cursor:pointer;touch-action:none;border-style:solid;border-color:transparent transparent #89bdff;top:50%;transition:top .2s ease-out,left .2s ease-out,transform .2s ease-out;transform:translate(-50%,-50%) scale(.25)}ff-slider-one-touch .ffw-triangle.ffw-active{transition:top .2s ease-in,left .2s ease-in,transform .2s ease-in;transform:translateX(-100%) scale(1)}ff-slider-one-touch .ffw-triangle.ffw-no-transition{transition:none}ff-slider-one-touch .ffw-line{pointer-events:auto;z-index:999;top:50%;position:absolute;height:1px;transform:translateY(-50%);background-color:#000;background-clip:padding-box;border-top:25px solid transparent;border-bottom:25px solid transparent}ff-slider-one-touch .ffw-selected-range{z-index:1000;top:50%;position:absolute;height:2px;transform:translateY(-50%);background-color:#003ccb}ff-slider-one-touch .ffw-slider-button{width:5px;height:5px;border:1px solid #000;position:absolute;top:50%;z-index:1003;pointer-events:auto;cursor:pointer;touch-action:none}ff-slider-one-touch .ffw-slider-button-left,ff-slider-one-touch .ffw-slider-button-right{transform:translateY(-50%)}.ffw-hidden{display:none!important}"},function(e,t,n){var r,i,o,a={},c=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=(o={},function(e,t){if("function"==typeof e)return e();if(void 0===o[e]){var n=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}o[e]=n}return o[e]}),u=null,l=0,f=[],d=n(76);function h(e,t){for(var n=0;n',""])),t?Object(P.renderPPPItem)(this.ffPPPTemplate,t):"",Object(b.a)({"ffw-ppp-dropdown-closed":!this.opened}),Object(_.a)([this.items,this.showSelected],(function(){return Object(k.a)(e.items,(function(e){return e.value}),(function(t){return"false"===e.showSelected&&t.selected?"":Object(P.renderPPPItem)(e.ffPPPTemplate,t)}))})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),!this.getAttribute("tabindex")&&this.setAttribute("tabindex","1"),this.ffPPPTemplate=Object(P.getTemplate)(this),this.addEventListener("click",this.toggle.bind(this)),this.addEventListener("blur",(e=this,function(){"true"===e.collapseOnblur&&setTimeout((function(){return e.hide()}),16)}))}},{key:"update",value:function(e){f()(g()(n.prototype),"update",this).call(this,e),e.has("items")&&function(e){if(0===e.items.length)return e.hideSelf();e.haveItemsBeenInitialised?e.hide():e.haveItemsBeenInitialised=!0,e.showSelf()}(this)}},{key:"firstUpdated",value:function(){this.dropdownContainer=this.getElementsByClassName("ffw-ppp-dropdown-container")[0]}},{key:"updated",value:function(e){e.has("items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}},{key:"show",value:function(){this.opened||this.dropdownContainer.__transitionActive__||(this.opened=!0,this._show(this.dropdownContainer,!0))}},{key:"hide",value:function(){var e=this;this.opened&&!this.dropdownContainer.__transitionActive__&&this._hide(this.dropdownContainer,!0,(function(){return e.opened=!1}))}},{key:"toggle",value:function(e){!1!==e&&this.opened?this.hide():this.show()}},{key:"_subscriptionCallback",value:function(e){this.items=e||[]}}],[{key:"is",get:function(){return"ff-products-per-page-dropdown"}},{key:"properties",get:function(){return{items:{type:Array,attribute:!1},opened:{type:Boolean,reflect:!0},showSelected:{type:String,attribute:"show-selected"},collapseOnblur:{type:String,attribute:"collapse-onblur"}}}}]),n}(Object(C.a)([Object(O.CollapseElement)(),Object(x.a)(x.b.ppp)],S.a));window.customElements.define(E.is,E)},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductsPerPageSelect",(function(){return C}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(23),_=n(5),k=n(9),w=n(11);var C=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).options=[],e.select=void 0,e.optionTemplate=void 0,e.subscriptionKey=void 0,e}return u()(n,[{key:"render",value:function(){var e=this;return Object(y.b)(r||(r=o()(['"])),S,Object(b.a)(this.options,(function(e){return e.value}),(function(t){return Object(_.e)(e.optionTemplate,t)})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.optionTemplate=(e=this.querySelector("[data-template]"))?(e.removeAttribute("data-template"),e.cloneNode(!0)):""}},{key:"firstUpdated",value:function(){this.select=this.querySelector("select")}},{key:"update",value:function(e){f()(g()(n.prototype),"update",this).call(this,e),e.has("options")&&(0===this.options.length?this.hideSelf():this.showSelf())}},{key:"updated",value:function(e){e.has("options")&&(this.select.selectedIndex=function(e){for(var t=0;t{{element.name}}':this.querySelector(D)?this._template=this.innerHTML.trim():(this.error("An error occurred: template HTML contains no elements marked as ".concat(D,".")),this.hideSelf())),this.addEventListener("click",B)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",B),g()(C()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"update",value:function(e){var t=this;this._selectedFilters&&0!==this._selectedFilters.length?this.showSelf():this.hideSelf(),e.has("blacklist")&&(this._blacklist=this.blacklist?this.blacklist.split(","):[]),e.has("whitelist")&&(this._whitelist=this.whitelist?this.whitelist.split(","):[]),e.has("order")&&!1===Object.keys(N).some((function(e){return N[e]===t.order}))&&(this.hideSelf(),this.error("Invalid 'order' value: '".concat(this.order,"'."))),this.blacklist&&this.whitelist&&(this.hideSelf(),this.error("'blacklist' and 'whitelist' are mutually exclusive, but both properties are set.")),(e.has("order")||e.has("blacklist")||e.has("whitelist"))&&(this._selectedFilters=U(this.order,this)),g()(C()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;g()(C()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"_subscriptionCallback",value:function(e){this._selectedFilters=V(this,this.order,this._userSelectionOrder,e)}}],[{key:"is",get:function(){return"ff-filter-cloud"}},{key:"properties",get:function(){return{order:{type:String},blacklist:{type:String},whitelist:{type:String},_selectedFilters:{type:Array,attribute:!1}}}}]),n}(Object(E.a)([Object(R.ElementLog)(),Object(j.a)(j.b.asn)],L.a));function B(e){var t=e.item;t&&P.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:t.group.name,filterName:t.element.name,clusterLevel:t.element.clusterLevel})}window.customElements.define(F.is,F);var V=function(e,t,n,r){var i=q(z(r)),o=n.filter((function(e){return W(i,e)})),a=i.filter((function(e){return!W(o,e)}));return e._factFinderOrder=i,e._userSelectionOrder=o.concat(a),U(t,e)},U=function(e,t){switch(e){case N.userSelection:return K(t._userSelectionOrder,t._blacklist,t._whitelist);case N.alphabetical:return K(t._factFinderOrder,t._blacklist,t._whitelist).sort((function(e,t){return e.element.name.localeCompare(t.element.name)}));default:return K(t._factFinderOrder,t._blacklist,t._whitelist)}},q=function(e){return e.reduce((function(e,t){return 0!==e.filter((function(e){return e.element.name===t.element.name&&e.group.name===t.group.name})).length?e:[].concat(u()(e),[t])}),[])},z=function(e){return e.reduce((function(e,t){return e.concat([].concat(u()(t.selectedElements),u()(t.elements.filter((function(e){return e.selected})))).map((function(e){return{group:t,element:e}})))}),[])},W=function(e,t){var n=t.element;return e.some((function(e){return e.element.name===n.name}))},H=function(e){return function(t){var n=Object(x.a)(e);return n.item=t,n.innerHTML=Object(O.a)(n.innerHTML,M(M({},t),{},{element:Object(I.a)(t.element,"name")})),n.addEventListener("click",(function(e){e.item=t})),n}},K=function(e,t,n){var r=P.b.getFixedFilters();return e.filter((function(e){var i=t.indexOf(e.group.name)<0,o=0===n.length||0<=n.indexOf(e.group.name),a=!e.element.implicitSelection,c=Object(A.a)(r)(e.element);return i&&o&&a&&c}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Recommendation",(function(){return k}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(5),y=n(17),b=n(14),_=n(35);var k=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).maxResults=4,e.subscribe=!0,e.usePerso=!1,e._topic="".concat(_.a.recommendation,":").concat(m.a.common.randomString(10)),e._subscriptionKey=void 0,e}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.subscribe&&!this._subscriptionKey&&(this._subscriptionKey=m.a.communication.ResultDispatcher.subscribe(this._topic,this._handleRecommendations,this));var e=this.querySelector(y.RecordList.is);e&&(e.setAttribute("subscribe","false"),e.__isRecommendation=!0)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(m.a.communication.ResultDispatcher.unsubscribe(this._topic,this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"update",value:function(e){e.has("recordId")&&this.getRecommendations(),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"getRecommendations",value:function(){if(this.recordId){var e={type:this._topic,id:this.recordId.split(","),maxResults:this.maxResults};this.usePerso&&(e.usePerso="true"),m.a.communication.EventAggregator.addFFEvent(e)}else this.debug("No record id for recommendations specified."),this.hideSelf()}},{key:"_handleRecommendations",value:function(e){var t=this;if(e&&0\n

unknown

\n \n {{{name}}}\n \n '),u=c.length-1;0<=u;u--){var l=c[u],f=l.getAttribute("data-container");(!f||n.indexOf(f)<0)&&l.parentNode.removeChild(l)}n.forEach((function(n){var r=t[n],i=o.querySelector("".concat(C.a.is,'[type="').concat(n,'"]'));if(!i){if(!e._showUnknownSuggestions)return;var a=Object(O.a)(s.outerHTML.replace(/\bunknown\b/g,n)),c=o.querySelector(e._unknownSuggestionsSectionId?"#".concat(e._unknownSuggestionsSectionId):"section");if(!c)return;c.appendChild(a),i=a.querySelector("".concat(C.a.is)),e._itemTemplates[n]=i.outerHTML}r.forEach((function(t){var r=Object(O.a)(e._itemTemplates[n]);r._template=r.innerHTML,r.type=n,r.suggestion=t,i.parentNode.insertBefore(r,i)})),i.parentNode.removeChild(i)}));var d=o.querySelectorAll("section");return Array.from(d).forEach((function(e){0===e.querySelectorAll(C.a.is).length&&e.setAttribute("hidden","")})),Object(b.g)(r||(r=a()(['
',"
"])),this.layout,Array.from(o.children).map((function(e){return Object(b.g)(i||(i=a()(["",""])),e)})))}},{key:"connectedCallback",value:function(){var e,t=this;d()(y()(n.prototype),"connectedCallback",this).call(this),this._initTemplates(),this._suggestSubscriptionKey=this._suggestSubscriptionKey||_.a.communication.ResultDispatcher.subscribe(P.a.suggest,(function(e,n){var r=_.a.communication.globalElementValues.currentFFSearchBoxValue;n&&n.query!==r||(t.suggestItems=e||[],t._originSearchbox=null==n?void 0:n.__searchbox)})),this._hideSuggestSubscriptionKey=this._hideSuggestSubscriptionKey||_.a.communication.ResultDispatcher.subscribe("suggest:hide",(function(){t.hideSelf(),t._originSearchbox=void 0})),this.addEventListener("item-clicked",this._itemClicked),this._globalClickListener=(e=this,function(t){var n;e.hideOnblur&&(e.contains(t.target)||null!==(n=e._originSearchbox)&&void 0!==n&&n.contains(t.target)||(e.hideSelf(),e._originSearchbox=void 0))}),document.addEventListener("click",this._globalClickListener)}},{key:"update",value:function(e){this.suggestItems&&0!==this.suggestItems.length?this.showSelf():this.hideSelf(),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;d()(y()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(C.a.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}},{key:"disconnectedCallback",value:function(){this.removeEventListener("item-clicked",this._itemClicked),document.removeEventListener("click",this._globalClickListener),this._suggestSubscriptionKey&&(_.a.communication.ResultDispatcher.unsubscribe(P.a.suggest,this._suggestSubscriptionKey),this._suggestSubscriptionKey=void 0),this._hideSuggestSubscriptionKey&&(_.a.communication.ResultDispatcher.unsubscribe("suggest:hide",this._hideSuggestSubscriptionKey),this._hideSuggestSubscriptionKey=void 0),d()(y()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"_itemClicked",value:function(e){this.hideSelf(),this.dispatchEvent(new CustomEvent("suggest-item-clicked",{detail:e.detail,bubbles:!0}))}},{key:"_initTemplates",value:function(){var e=this,t=document.createElement("div");t.innerHTML=this.innerHTML;for(var n=t.childNodes.length-1;0<=n;n--){var r=t.childNodes[n];("SECTION"!==r.nodeName||!r.querySelector(C.a.is)&&r.id!==this._unknownSuggestionsSectionId)&&r.parentNode.removeChild(r)}this._template=t.innerHTML,t.querySelectorAll(C.a.is).forEach((function(t){var n=t.getAttribute("type");n&&!e._itemTemplates[n]&&(e._itemTemplates[n]=t.outerHTML)}))}}],[{key:"is",get:function(){return"ff-suggest"}},{key:"properties",get:function(){return{layout:{type:String},suggestItems:{type:Array,attribute:!1},hideOnblur:{type:S.c,attribute:"hide-onblur"},_showUnknownSuggestions:{type:S.c,attribute:"show-unknown-suggestions"},_unknownSuggestionsSectionId:{type:String,attribute:"unknown-suggestions-section-id"}}}}]),n}(Object(k.a)([Object(w.ElementLog)()],S.a));window.customElements.define(E.is,E);var R=function(e){var t={};return e.forEach((function(e){t[e.type]=t[e.type]||[],t[e.type].push(e)})),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"SortBoxSelect",(function(){return C}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(1),_=n(5),k=n(9),w=n(11);var C=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this))._selectAttributes=[],e._itemTemplate=void 0,e.items=[],e}return u()(n,[{key:"render",value:function(){var e=this;return Object(y.b)(r||(r=o()(['"])),S,this.items.map((function(t){return Object(_.e)(e._itemTemplate,t)})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._selectAttributes=(e=this.querySelector("select"))?e.attributes:[],this._itemTemplate=this.querySelector("option")||""}},{key:"firstUpdated",value:function(){var e=this.querySelector("select");Array.prototype.forEach.call(this._selectAttributes,(function(t){var n=t.name,r=t.value;return e.setAttribute(n,r)}))}},{key:"updated",value:function(e){e.has("items")&&(0===this.items.length?this.hideSelf():(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(var t=0;t',""])),this.renderDropdownSelected(),Object(P.a)({"ffw-paging-dropdown-closed":!this.opened}),Object(O.a)([this.items,this.showSelected],(function(){return Object(x.a)(e.items?e.items.pageLinks:[],(function(e){return e.caption}),(function(t){return e.renderDropdownItem(t)}))})))}},{key:"renderDropdownSelected",value:function(){return this.items?this.renderLink(E.b.esPolyfills.find((function(e){return e.currentPage}))(this.items.pageLinks)):Object(C.b)(i||(i=s()([""])))}},{key:"renderDropdownItem",value:function(e){return!e.currentPage||this.showSelected?this.renderLink(e):Object(C.b)(o||(o=s()([""])))}},{key:"renderLink",value:function(e){var t=this._itemTemplate.clone();return t.pagingItem=e,t}},{key:"connectedCallback",value:function(){var e;v()(w()(n.prototype),"connectedCallback",this).call(this),this._itemTemplate||(this._itemTemplate=this.querySelector(L.a.is)||(e=document.createElement("div"),Object(S.i)(Object(C.b)(a||(a=s()(["{{caption}}"]))),e),e.firstElementChild)),this.getAttribute("tabindex")||this.setAttribute("tabindex","999"),this.hideSelf()}},{key:"update",value:function(e){e.has("items")&&this._itemsChanged(),v()(w()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;v()(w()(n.prototype),"updated",this).call(this),(e.has("items")||e.has("showSelected"))&&Promise.all(Array.from(this.querySelectorAll("".concat(L.a.is))).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"show",value:function(){var e=this.getDropdown();this.opened=!0,this._show(e,!0)}},{key:"hide",value:function(){var e=this,t=this.getDropdown();t&&this._hide(t,!0,(function(){e.opened=!1}))}},{key:"toggle",value:function(){(0',""])),w,t.map((function(t){return Object(_.e)(e._optionTemplate,t)})))}},{key:"connectedCallback",value:function(){var e=this;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf();var t=this.querySelector("select");this._selectAttributes=t?Array.from(t.attributes):[],this._optionTemplate=this.querySelector("option")||"",this._subscriptionKey=b.a.communication.ResultDispatcher.subscribe("paging",(function(t){return e.pagingData=t}))}},{key:"disconnectedCallback",value:function(){f()(g()(n.prototype),"disconnectedCallback",this).call(this),b.a.communication.ResultDispatcher.unsubscribe("paging",this._subscriptionKey)}},{key:"firstUpdated",value:function(){var e=this.querySelector("select");this._selectAttributes.forEach((function(t){var n=t.name,r=t.value;return e.setAttribute(n,r)}))}},{key:"updated",value:function(e){e.has("pagingData")&&(this.pagingData&&0!==this.pagingData.pageLinks.length?(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(var t=0;t',""])),Object(_.a)(this.tags,(function(t){return e._renderTag(t)})))}},{key:"connectedCallback",value:function(){d()(y()(n.prototype),"connectedCallback",this).call(this),Object(P.a)()?console.warn("".concat(n.is," is not supported by FACT-Finder version ").concat(k.a.communication.globalSearchParameter.version,".")):this.disableAuto||this.getTagCloud()}},{key:"_subscriptionCallback",value:function(e){this.tags=e}},{key:"update",value:function(e){e.has("wordCount")&&!this.disableAuto&&this.getTagCloud(),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;d()(y()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){return t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"disconnectedCallback",value:function(){d()(y()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(k.a.communication.ResultDispatcher.unsubscribe("tagCloud",this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"getTagCloud",value:function(){Object(P.a)()?console.warn("".concat(n.is," is not supported by FACT-Finder version ").concat(k.a.communication.globalSearchParameter.version,".")):k.a.communication.EventAggregator.addFFEvent({type:"tagCloud",wordCount:this.wordCount})}},{key:"_renderTag",value:function(e){var t={query:e.query,count:e.searchCount,params:k.a.common.decodeUrl(e.params)},n=this.minFontSize+Math.round((this.maxFontSize-this.minFontSize)*e.weight),r=R(j(1,this.gradientColorStart,this.gradientColorEnd),e.weight,this.gradientColorStart),o="font-size: ".concat(n).concat(this.unit,"; color: ").concat(r);return Object(b.b)(i||(i=a()(['',""])),o,t,this._handleClick,e.query)}},{key:"_handleClick",value:function(e){e.preventDefault();var t={entry:e.target.tagCloudEntry,element:this};if(this.dispatchEvent(new CustomEvent("entry-clicked",{bubbles:!0,composed:!0,detail:t})),!0!==this.ffPreventDefault){var n=k.a.common.urlStringToDict(e.target.tagCloudEntry.params);n.type="search",Object(O.a)(n,this)}else delete this.ffPreventDefault}}],[{key:"is",get:function(){return"ff-tag-cloud"}},{key:"properties",get:function(){return{minFontSize:{type:Number,attribute:"min-font-size"},maxFontSize:{type:Number,attribute:"max-font-size"},unit:{type:String},gradientColorStart:{type:String,attribute:"gradient-color-start"},gradientColorEnd:{type:String,attribute:"gradient-color-end"},wordCount:{type:Number,attribute:"word-count"},disableAuto:{type:Boolean,attribute:"disable-auto"},tags:{type:Array,attribute:!1}}}}]),n}(Object(C.a)([Object(S.a)(S.b.tagCloud)],w.a));window.customElements.define(x.is,x);var E=function(e){4===e.length&&(e=e.replace(/(\w)(\w)(\w)/gi,"$1$1$2$2$3$3"));var t=/(\w{2})(\w{2})(\w{2})/.exec(e);return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]},R=function(e,t,n){return E(n).map((function(n,r){var i=Math.round(n+e[r]*t);return Math.min(Math.max(i,0),255)})).reduce((function(e,t){return e+"0".concat(t.toString(16)).slice(-2)}),"#")},j=function(e,t,n){var r=E(t);return E(n).map((function(t,n){return(t-r[n])/e}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"SearchFeedback",(function(){return P}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(1),_=n(9),k=n(41),w=n(11),C=n(5);var S=Object.freeze({left:"left",right:"right"}),P=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).opened=!1,e.align=S.left,e.positive=!0,e.resetOnToggle=!1,e.resetOnSend=!1,e.dontShowOnResultChanged=!1,e._captionTemplate=void 0,e._contentTemplate=void 0,e}return u()(n,[{key:"_caption",get:function(){return this.querySelector(".ffw-caption")}},{key:"_content",get:function(){return this.querySelector(".ffw-content")}},{key:"_hidden",get:function(){return this.classList.contains("ffw-hidden")}},{key:"render",value:function(){return Object(y.b)(r||(r=o()(['
','
',"
"])),this._handleClick,this._captionTemplate,this._contentTemplate)}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this._captionTemplate||(this._captionTemplate=this.querySelector("[slot='caption']")),this._contentTemplate||(this._contentTemplate=this.querySelector("[slot='content']")),this.hideSelf()}},{key:"firstUpdated",value:function(e){var t=this;f()(g()(n.prototype),"firstUpdated",this).call(this,e);var r=function(e,n){var r=t.querySelector(e);r&&r.addEventListener("click",n.bind(t))};r("[data-toggle]",this._handleClick),r("[data-send]",this._handleSend),r("[data-positive]",(function(){return t.positive=!0})),r("[data-negative]",(function(){return t.positive=!1}))}},{key:"updated",value:function(e){if(f()(g()(n.prototype),"updated",this).call(this,e),e.has("opened")&&void 0!==e.get("opened")){if(this._hidden)this._removeTransitions();else{var t=this.align===S.right;this._content.classList[this.opened?"add":"remove"](t?"ffw-transformZero":"ffw-transformX"),this._caption.classList[this.opened?"add":"remove"](t?"ffw-transformX":"ffw-transformZero")}this.dispatchEvent(new CustomEvent("open-changed",{bubbles:!0,composed:!0,detail:{value:this.opened}}))}e.has("positive")&&void 0!==e.get("positive")&&this.dispatchEvent(new CustomEvent("positive-changed",{bubbles:!0,composed:!0,detail:{value:this.positive}}))}},{key:"_removeTransitions",value:function(){this._content.classList.remove("ffw-transformZero"),this._content.classList.remove("ffw-transformX"),this._caption.classList.remove("ffw-transformZero"),this._caption.classList.remove("ffw-transformX")}},{key:"_subscriptionCallback",value:function(e){!0!==this.dontShowOnResultChanged&&e&&this._hidden&&this.show(),this.opened=!1,this._removeTransitions(),this.reset()}},{key:"_handleClick",value:function(){this.opened=!this.opened,this._checkAndReset()}},{key:"_checkAndReset",value:function(){!this.opened&&this.resetOnToggle&&this.reset()}},{key:"_handleSend",value:function(){var e=this,t={query:b.a.communication.Util.getQueryFromSearchParams(),id:"none",type:"feedback",positive:this.positive,success:function(){e.resetOnSend&&e._resetAfterSend(),e.dispatchEvent(new CustomEvent("successful",{bubbles:!0,composed:!0}))},fail:function(){return e.dispatchEvent(new CustomEvent("failed",{bubbles:!0,composed:!0}))}},n=this.querySelector("[data-message]");n&&"string"==typeof n.value&&(t.message=n.value),b.a.communication.Tracking.searchFeedback(t)}},{key:"_resetAfterSend",value:function(){this.reset(),this.hide()}},{key:"hide",value:function(){this.hideSelf(),this.opened=!1}},{key:"show",value:function(){this.showSelf()}},{key:"reset",value:function(){this.positive=!0;var e=this.querySelector("[data-message]");e&&"string"==typeof e.value&&(e.value="")}}],[{key:"is",get:function(){return"ff-search-feedback"}},{key:"properties",get:function(){return{opened:{type:Boolean},align:{type:String},positive:{type:C.c},resetOnToggle:{type:Boolean,attribute:"reset-on-toggle"},resetOnSend:{type:Boolean,attribute:"reset-on-send"},dontShowOnResultChanged:{type:Boolean,attribute:"dont-show-on-result-changed"}}}}]),n}(Object(_.a)([Object(k.a)(),Object(w.a)(w.b.result)],C.a));window.customElements.define(P.is,P)},function(e,t,n){"use strict";n.r(t),n.d(t,"MultiAttributeParsing",(function(){return p}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1);var p=function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"srcProperty",get:function(){return m(this,"src-property")}},{key:"storeInProperty",get:function(){return m(this,"store-in-property")}},{key:"keepOriginalInProperty",get:function(){return m(this,"keep-original-in-property")}},{key:"entrySeparator",get:function(){return m(this,"entry-separator")}},{key:"keyValueSeparator",get:function(){return m(this,"key-value-separator")}},{key:"_once",value:function(){h.a.middleware.response.use(h.a.middleware.response.MultiAttributeParsing({srcProperty:this.srcProperty,storeInProperty:this.storeInProperty,keepOriginalInProperty:this.keepOriginalInProperty,entrySeparator:this.entrySeparator,keyValueSeparator:this.keyValueSeparator}))}}],[{key:"is",get:function(){return"ff-multi-attribute-parsing"}}]),n}(n(61).a);function m(e,t){var n=e.getAttribute(t);return"string"==typeof n?n:void 0}window.customElements.define(p.is,p)},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductTeaserCampaignProcessor",(function(){return p}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1);var p=function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"_once",value:function(){h.a.middleware.response.use(h.a.middleware.response.ProductTeaserCampaignProcessor())}}],[{key:"is",get:function(){return"ff-product-teaser-campaign-processor"}}]),n}(n(61).a);window.customElements.define(p.is,p)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(24),a=n.n(o),c=n(8),s=n.n(c),u=n(4),l=n.n(u),f=n(3),d=n.n(f),h=n(2),p=n.n(h),m=n(6),v=n.n(m),g=n(7),y=n.n(g),b=n(0),_=n.n(b),k=n(10),w=n(9),C=n(18),S=n.n(C),P=n(19),O=n.n(P),x=n(12),E=n(33),R=new WeakMap,j=Object(x.f)((function(e){return function(t){if(!(t instanceof x.b))throw new Error("cache can only be used in text bindings");var n=R.get(t);void 0===n&&(n=new WeakMap,R.set(t,n));var r=t.value;if(r instanceof E.a){if(e instanceof x.d&&r.template===t.options.templateFactory(e))return void t.setValue(e);var i=n.get(r.template);void 0===i&&(i={instance:r,nodes:document.createDocumentFragment()},n.set(r.template,i)),Object(x.j)(i.nodes,t.startNode.nextSibling,t.endNode)}if(e instanceof x.d){var o=t.options.templateFactory(e),a=n.get(o);void 0!==a&&(t.setValue(a.nodes),t.commit(),t.value=a.instance)}t.setValue(e)}})),L=n(1),I=n(5),A=n(13),T=n(27),M=n.n(T),N=n(21),D=n.n(N),F=n(55),B=n(42),V=n(14),U=n(30);function q(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 z(e){for(var t=1;t',""])),Object(I.e)(this._selectedTemplate,{element:Object(U.a)(e,"name"),group:this.group})):Object(k.b)(i||(i=s()(['
',"
"])),Object(I.e)(this._unselectedTemplate,{element:Object(U.a)(e,"name"),group:this.group}))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){this._rawOuterHtml=this.outerHTML,this._selectedTemplate=this.querySelector("[slot='selected']")||this._selectedTemplate,this._unselectedTemplate=this.querySelector("[slot='unselected']")||this._unselectedTemplate,this.addEventListener("click",this._clickListener)}},{key:"update",value:function(e){var t,r;e.has("element")&&((r=(t=this).element)?(t.selected=r.selected,t.implicit=r.implicitSelection,t.fixed=!!r.selected&&function(e){var t=L.a.communication.Util.extractCategoryPathFieldName();if(e.associatedFieldName!==t&&0!==e.associatedFieldName.indexOf(t+"/"))return!1;var n=L.a.common.fixedDecodeURIComponent;return L.b.getFixedFilters().map((function(e){return n(n(e.split("=")[1]))})).some((function(t){var r=t.split(":"),i=M()(r,2),o=i[0]+"ROOT/"+i[1],a=L.b.util.escapeRegex(n(e.associatedFieldName)+"/"+e.name);return new RegExp("^".concat(a,"(/|$)")).test(o)}))}(r),t.className=t.className.replace(/ ?\bclusterLevel\d+\b/g,"").trim(),r.clusterLevel&&t.classList.add("clusterLevel".concat(r.clusterLevel)),t.showSelf()):t.hideSelf()),p()(_()(n.prototype),"update",this).call(this)}},{key:"updated",value:function(e){p()(_()(n.prototype),"updated",this).call(this,e),Object(F.a)(this)}},{key:"clone",value:function(e,t){var r=this._rawOuterHtml?Object(A.a)(this._rawOuterHtml):document.createElement(n.is);return r.group=e,r.element=t,r._selectedTemplate=this._selectedTemplate,r._unselectedTemplate=this._unselectedTemplate,r}}],[{key:"is",get:function(){return"ff-asn-group-element"}},{key:"properties",get:function(){return{selected:{type:Boolean,reflect:!0},fixed:{type:Boolean,reflect:!0},implicit:{type:Boolean,reflect:!0},element:{type:Object,attribute:!1},group:{type:Object,attribute:!1}}}}]),n}(Object(w.a)([Object(V.ElementLog)(),Object(B.a)()],I.a));function H(e){return Object(A.a)('
{{element.name}}
'))}window.customElements.define(W.is,W);var K,Y,G,X,Z,J,$,Q=n(29),ee=n(49),te=n(58);function ne(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 re(e){for(var t=1;t
'])));this._filterSearchInput=this.querySelector("".concat(ie.FilterSearchFieldContainer," input"));var t,n,r,i={group:this.group};return Object(k.b)(Y||(Y=s()(['
','
'," "," ","
"])),(function(){return e.toggle(!0)}),Object(I.e)(this._groupCaptionTemplate,i),(function(t){return function(e,t){var n=t.composedPath(),r=n[0];if("INPUT"===r.nodeName&&n.slice(1).some((function(e){return e.getAttribute&&"filterSearch"===e.getAttribute("slot")}))){e.requestUpdate();var i=new RegExp(L.b.util.escapeRegex(r.value)||"$a","gi"),o=[].concat(O()(e.group.selectedElements),O()(e.group.elements)).reduce((function(e,t){i.lastIndex=0;var n=i.exec(t.name);if(null===n)return e;var r=t.name.replace(i,(function(e){return''.concat(e,"")}));return(0===n.index?e.headMatchedElements:e.otherMatchedElements).push(re(re({},t),{},{__HIGHLIGHTED_NAME__:r})),e}),{headMatchedElements:[],otherMatchedElements:[]}),a=o.headMatchedElements,c=o.otherMatchedElements;se(e._filterSearchContainer,e._asnGroupElementTemplate,e.group,[].concat(O()(a),O()(c)))}}(e,t)}),fe(function(e){if(!e.group)return!1;var t=e.group.elements.length+e.group.selectedElements.length;return!e.notSearchable&&t>=e.parentNode.searchableFrom}(this),Object(I.e)(this._filterSearchField,i)),j(this._filterSearchInput&&0r.detailedLinks,Object(k.b)(G||(G=s()([""," "," "," ",""])),t._detailedLinksContainer,fe(n,t._hiddenLinksContainer),fe(n&&!t.selectBox,t._showMoreContainer),fe(n&&!t.selectBox,t._showLessContainer)))),fe(function(e){if(!(t=e)||!t.selectedElements.some((function(e){return!0!==e.implicitSelection}))&&!t.elements.some((function(e){return e.selected&&!0!==e.implicitSelection})))return!1;var t,n=L.b.getFixedFilters();return 0===n.length||e.selectedElements.filter((function(e){return!0!==e.implicitSelection})).concat(e.elements.filter((function(e){return e.selected&&!0!==e.implicitSelection}))).some(Object(te.a)(n))}(this.group),this._removeFilterContainer))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){var e,t,n,r=this;this._initialized||(this._rawOuterHtml=this.outerHTML,this._asnGroupElementTemplate=this.querySelector(W.is)||document.createElement(W.is),this._groupCaptionTemplate=this.querySelector(ie.GroupCaptionContainer)||Object(A.a)('
{{group.name}}
'),this._detailedLinksContainer=this.querySelector(ie.DetailedLinksContainer)||Object(A.a)(Object(A.e)(Z||(Z=s()(['
'])))),this._hiddenLinksContainer=this.querySelector(ie.HiddenLinksContainer),this._filterSearchField=(e=this.querySelector(ie.FilterSearchFieldContainer))?e.cloneNode(!0):Object(A.a)('
'),function(e){if(null===e._filterSearchField.querySelector("input"))throw new Error(" not found in filterSearch template")}(this),this._filterSearchContainer=Object(A.a)('
'),this._hiddenLinksContainer&&!this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer.style.height="0",this._hiddenLinksContainer.style.overflow="hidden"),this._initShowMore(),this._initShowLess(),this._initHiddenLinksContainer(),this._removeFilterContainer=(t=function(){return r.group||{}},(n=this.querySelector(ie.RemoveFilterContainer)||Object(A.a)('
Reset Filter
')).addEventListener("click",(function(){oe.addFFEvent({type:"filter",groupName:t().name,removeAll:!0})})),n),this.selectBox&&(this._selectBoxOptionTemplate=this._hiddenLinksContainer.querySelector(ie.SelectBoxOptionTemplate)||Object(A.a)("")),this.style.display="none",this._initialized=!0)}},{key:"update",value:function(e){var t,r,i,o;e.has("group")&&(this._filterSearchInput&&(this._filterSearchInput.value="",this._filterSearchInput.dispatchEvent(new Event("input"))),this.group?(this._detailedElements=this.group.selectedElements.concat(this.group.elements.slice(0,this.group.detailedLinks)),this._hiddenElements=this.group.elements.slice(this.group.detailedLinks),this._detailedLinksContainer=(t=this._detailedLinksContainer,r=this.group,i=this._asnGroupElementTemplate,o=this._detailedElements,se(t.querySelector(ie.DetailedLinksContent),i,r,o),t),this._hiddenLinksContainer&&(this.selectBox?this._hiddenLinksContainer=ue(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer=ce(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements))),(this.opened||le(this.group)&&!this.disableAutoExpand)&&this.show(!1),this.style.display="",this.style.opacity="1"):(this.style.display="none",this.style.opacity="0")),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"firstUpdated",value:function(e){var t=this;this._wrapper=this.querySelector(ie.ToggleWrapper),this.opened||e.has("group")&&le(this.group)&&!this.disableAutoExpand?this.show(!1):this._hide(this._wrapper,!1,(function(){return t.opened=!1})),!1===this.opened&&!0!==this.disableAutoExpand&&le(this.group)&&this.show(!1)}},{key:"updated",value:function(e){e.has("group")&&(this.forGroup&&"all"!==this.forGroup||(this.forGroup=Object(ee.a)(this.group)),this.filterStyle||(this.filterStyle=this.group.filterStyle)),this.group?this.showSelf():this.hideSelf()}},{key:"show",value:function(e){this._wrapper&&(this._show(this._wrapper,e),this._wrapper.setAttribute("opened",""),this.opened=!0)}},{key:"hide",value:function(e){var t=this;this.opened&&this.collapsible&&this._wrapper&&(this._hide(this._wrapper,e,(function(){return t.opened=!1})),this._wrapper.removeAttribute("opened"))}},{key:"toggle",value:function(e){this.opened?this.hide(e):this.show(e)}},{key:"showDetailedLinksContainer",value:function(e){this._show(this._detailedLinksContainer,e)}},{key:"hideDetailedLinksContainer",value:function(e){this._hide(this._detailedLinksContainer,e)}},{key:"toggleDetailedLinksContainer",value:function(e){this._detailedLinksContainer.hasAttribute("opened")?this.hideDetailedLinksContainer(e):this.showDetailedLinksContainer(e)}},{key:"showHiddenLinksContainer",value:function(e){var t=this;this._hiddenLinksContainer=this.selectBox?ue(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):ce(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements),this._showMoreContainer&&(this._showMoreContainer.style.display="none"),this._showLessContainer&&(this._showLessContainer.style.display=""),setTimeout((function(){t._showChecked(t._hiddenLinksContainer,e),t._hiddenLinksContainer.setAttribute("opened","")}))}},{key:"hideHiddenLinksContainer",value:function(e){this._showMoreContainer&&(this._showMoreContainer.style.display=""),this._showLessContainer&&(this._showLessContainer.style.display="none"),this._hideChecked(this._hiddenLinksContainer,e,(function(){}))}},{key:"toggleHiddenLinksContainer",value:function(e){this._hiddenLinksContainer.hasAttribute("opened")?this.hideHiddenLinksContainer(e):this.showHiddenLinksContainer(e)}},{key:"clone",value:function(){return Object(A.a)(this._rawOuterHtml)}},{key:"_initShowMore",value:function(){var e=this;this._showMoreContainer=this.querySelector(ie.ShowMoreContainer)||Object(A.a)('
Show More
'),this.selectBox?this._hide(this._showMoreContainer):this._show(this._showMoreContainer),this._showMoreContainer.addEventListener("click",(function(){return e.showHiddenLinksContainer(!0)}))}},{key:"_initShowLess",value:function(){var e=this;this.selectBox&&this._hideChecked(this._showMoreContainer),this._showLessContainer=this.querySelector(ie.ShowLessContainer)||Object(A.a)('
Show Less
'),this._showLessContainer.style.display="none",this._showLessContainer.addEventListener("click",(function(){return e.hideHiddenLinksContainer(!0)}))}},{key:"_initHiddenLinksContainer",value:function(){if(this.selectBox)this._hiddenLinksContainer?"SELECT"!==this._hiddenLinksContainer.tagName?(this.warn("Provided template for select box is not a select element. Using default template."),this._hiddenLinksContainer=n()):0===this._hiddenLinksContainer.querySelectorAll(ie.SelectBoxPlaceholderOption).length&&this._hiddenLinksContainer.insertBefore(Object(A.a)(""),this._hiddenLinksContainer.firstElementChild):this._hiddenLinksContainer=n(),this._selectBoxPlaceholderOption=this._hiddenLinksContainer.querySelector(ie.SelectBoxPlaceholderOption),this._hiddenLinksContainer.addEventListener("change",(t=this,function(){var e=t._hiddenLinksContainer.options[t._hiddenLinksContainer.selectedIndex].data;e&&oe.addFFEvent({type:"filter",groupName:t.group.name,filterName:e.__ORIG_NAME__||e.name,clusterLevel:e.clusterLevel})})),this._show(this._hiddenLinksContainer);else{if(!this._hiddenLinksContainer){var e=Object(A.e)(X||(X=s()(['
'])));this._hiddenLinksContainer=Object(A.a)(e)}this._hiddenLinksContainer.hasAttribute("opened")?this._show(this._hiddenLinksContainer):this._hide(this._hiddenLinksContainer)}var t;function n(){return Object(A.a)('"))}}}],[{key:"is",get:function(){return"ff-asn-group"}},{key:"properties",get:function(){return{collapsible:{type:I.c},opened:{type:Boolean,reflect:!0},forGroup:{type:String,attribute:"for-group",reflect:!0},filterStyle:{type:String,attribute:"filter-style",reflect:!0},disableAutoExpand:{type:Boolean,attribute:"disable-auto-expand",reflect:!0},group:{type:Object,attribute:!1},selectBox:{type:I.c,attribute:"select-box"},notSearchable:{type:Boolean,attribute:"not-searchable"}}}}]),n}(Object(w.a)([Object(V.ElementLog)(),Object(Q.CollapseElement)()],I.a));function ce(e,t,n,r){return se(e.querySelector(ie.HiddenLinksContent),t,n,r),e}function se(e,t,n,r){Object(x.i)(Object(k.b)(J||(J=s()(["",""])),r.map((function(e){return t.clone(n,e)}))),e)}function ue(e,t,n,r,i){var o=i.map((function(e){return Object(I.e)(n,{group:r,element:e})}));return Object(x.i)(Object(k.b)($||($=s()(["",""])),[Object(I.e)(t)].concat(O()(o))),e),e.selectedIndex=0,e.querySelectorAll(ie.SelectBoxOptionTemplate).forEach((function(e,t){var n=i[t];e.value=n.name,e.data=n})),e}function le(e){return e&&(e.selectedElements.length||e.elements.some((function(e){return e.selected})))}function fe(e,t){return e?t:void 0}window.customElements.define(ae.is,ae);var de,he,pe=n(52),me=n(11);n.d(t,"Asn",(function(){return ge}));var ve=Object.freeze({vertical:"vertical",horizontal:"horizontal"}),ge=function(e){v()(n,e);var t=function(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 n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).align=ve.vertical,e.asnGroups=[],e.subscribe=!0,e.topic=void 0,e._templates=void 0,e._searchableFrom=1/0,e}return d()(n,[{key:"render",value:function(){var e=this;return Object(k.b)(he||(he=s()(["",""])),(this.asnGroups||[]).map((function(t){var n=e._getGroupTemplate(t);return n.group=t,Object(k.b)(de||(de=s()(["",""])),n)})))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._initTemplates()}},{key:"update",value:function(e){var t=this;e.has("topic")&&"string"!=typeof this.topic&&void 0!==this.topic&&(this.error('Attribute "topic" must be either undefined or a string but was: '.concat(a()(this.topic),". Subscription cancelled.")),this.subscribe=!1,this.topic=void 0),this.updateComplete.then((function(){var e=t.querySelectorAll("".concat(ae.is,",").concat(pe.a.is));Promise.all(Array.from(e).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"searchableFrom",get:function(){return this._searchableFrom},set:function(e){"number"!=typeof e||isNaN(e)||e<1?this.warn("searchableFrom was expected to be a valid positive number, but was [".concat(e,"] instead")):this._searchableFrom=e}},{key:"_getGroupTemplate",value:function(e){var t=Object(ee.a)(e),n=this._templates[t];if(!n){var r=e.filterStyle?e.filterStyle.toUpperCase():"";this._templates[r]&&(n=this._templates[r].clone(),this._templates[t]=n)}return n||(n=this._templates.all.clone(),this._templates[t]=n),n}},{key:"_initTemplates",value:function(){var e=this;if(!this._templates)try{if(this._templates={},this.querySelectorAll("".concat(ae.is,",").concat(pe.a.is)).forEach((function(t){try{var n=t.getAttribute("for-group"),r=t.getAttribute("filter-style");n&&"all"!==n.toLowerCase()?e._templates[n]=t:r?e._templates[r]=t:"FF-ASN-GROUP-SLIDER"===t.tagName?e._templates.SLIDER=t:e._templates.all||(e._templates.all=t)}catch(t){e.error(t)}})),!this._templates.all){var t=document.createElement(ae.is);t.setAttribute("opened",void 0),t._init(),this._templates.all=t}if(!this._templates.SLIDER){var n=document.createElement(pe.a.is);n.setAttribute("filter-style","SLIDER"),n.setAttribute("opened",void 0),n.init(),this._templates.SLIDER=n}}catch(t){this.error(t)}}},{key:"_subscriptionCallback",value:function(e){this.asnGroups=e.filter((function(e){return e.selectedElements.length||e.elements.length}))}}],[{key:"is",get:function(){return"ff-asn"}},{key:"properties",get:function(){return{align:{type:String,reflect:!0},asnGroups:{type:Array,attribute:!1},searchableFrom:{type:Number,attribute:"searchable-from"},subscribe:{type:I.c},topic:{type:String}}}}]),n}(Object(w.a)([Object(V.ElementLog)(),Object(me.a)(me.b.asn)],I.a));window.customElements.define(ge.is,ge)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(5),g=n(13);var y=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){return Object(v.e)(this._template,this.answer)}},{key:"connectedCallback",value:function(){var e;s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._template=Object(v.d)(this)?"":this.innerHTML,this.addEventListener("click",(e=this,function(t){m.a.communication.EventAggregator.addFFEvent({type:"advisor",answer:e.answer})}))}},{key:"updated",value:function(e){e.has("answer")&&(this.answer?this.showSelf():this.hideSelf())}}],[{key:"is",get:function(){return"ff-campaign-advisor-answer"}},{key:"properties",get:function(){return{answer:{type:Object,attribute:!1}}}}]),n}(v.a);window.customElements.define(y.is,y);var b=n(28);var _=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._renderQuestion=function(e){var t=Object(g.f)(e.querySelector(y.is)||document.createElement(y.is),e),n=e.querySelector("[data-question]");n||(n=Object(g.a)("
{{text}}
"),e.insertBefore(n,e.firstChild));var r=n.innerHTML;return function(i){n.innerHTML=Object(b.a)(r,i),t(e.querySelectorAll(y.is),i.answers,(function(e,t){e.answer=t}))}}(this)}},{key:"update",value:function(e){e.has("question")&&(this.question?(this.showSelf(),this._renderQuestion(this.question)):this.hideSelf()),s()(p()(n.prototype),"update",this).call(this,e)}}],[{key:"is",get:function(){return"ff-campaign-advisor-question"}},{key:"properties",get:function(){return{question:{type:Object,attribute:!1}}}}]),n}(v.a);window.customElements.define(_.is,_),n.d(t,"CampaignAdvisor",(function(){return k}));var k=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).name="",e.not=void 0,e.subscriptionKey=void 0,e._renderCampaign=void 0,e}return a()(n,[{key:"connectedCallback",value:function(){var e,t;s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._renderCampaign=(e=this,t=Object(g.f)(e.querySelector(_.is)||document.createElement(_.is),e),function(n){return t(e.querySelectorAll(_.is),n.activeQuestions,(function(e,t){e.question=t}))})}},{key:"update",value:function(e){var t,r=this;e.has("name")&&function(e,t,n){e.subscriptionKey&&m.a.communication.ResultDispatcher.unsubscribe(w(n),e.subscriptionKey),e.subscriptionKey=m.a.communication.ResultDispatcher.subscribe(w(t),(function(t){e.campaignData=t}))}(this,this.name,e.get("name")),e.has("campaignData")&&(!this.campaignData||0===this.campaignData.activeQuestions.length||this.not&&this.not.split(",").some((function(e){return e.trim()===r.campaignData.name}))?this.hideSelf():(this.showSelf(),this._renderCampaign(this.campaignData),(t=this,Promise.all(Array.from(t.querySelectorAll(_.is)).map((function(e){return e.updateComplete}))).then((function(){return Promise.all(Array.from(t.querySelectorAll(y.is)).map((function(e){return e.updateComplete})))}))).then((function(){return r.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))})))),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),m.a.communication.ResultDispatcher.unsubscribe(w(this.name),this.subscriptionKey)}}],[{key:"is",get:function(){return"ff-campaign-advisor"}},{key:"properties",get:function(){return{name:{type:String,reflect:!0},not:{type:String},campaignData:{type:Object,attribute:!1}}}}]),n}(v.a);function w(e){return e&&e.trim()?["campaign:advisor:".concat(e)]:["campaign:advisor"]}window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(3),a=n.n(o),c=n(4),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(26),v=n.n(m),g=(n(73),n(1)),y=n(54);n.d(t,"factfinder",(function(){return g.a})),r=g.a,i=setTimeout((function(){r.common.Logger.log("Warning: The WebComponentsReady event didn't fire within 10 seconds, which indicates a very slow page load.")}),1e4),Object(y.a)().then((function(){clearTimeout(i),r.communication.ResultDispatcher.startDispatching()})),g.a.elements={ElementLogBehavior:n(14).ElementLog(),CollapseElementBehavior:n(29).CollapseElement(),TrackingBehavior:n(47).Tracking()},WebComponents.waitFor((function(){return new Promise((function(e){n(48),n(67),n(83),n(32),n(17),n(111),n(84),n(85),n(86),n(87),n(88),n(89),n(44),n(90),n(91),n(92),n(110),n(93),n(94),n(113),n(95),n(96),n(97),n(98),window.customElements.define("ff-onfocus-suggest",function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return s()(this,n),e=t.call(this),g.a.common.Logger.error("ff-onfocus-suggest: This component is currently not available. It will be reimplemented in a future version."),e}return a()(n)}(v()(HTMLElement))),n(114),n(99),n(115),n(100),n(116),n(101),n(102),n(103),n(104),n(117),n(105),n(106),n(118),n(107),n(50),n(60),n(108),n(109),n(119),e()}))}))},function(e,t,n){"use strict";n.r(t);var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(5),_=n(1),k=n(30);var w={dataTemplate:"{{text}}",attributes:{}},C=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).templates={},e.addEventListener("click",(function(){_.a.communication.EventAggregator.addFFEvent({type:"bct",value:e.breadCrumbTrailItem.value})})),e}return u()(n,[{key:"template",get:function(){return this.templates[this.type]||this.templates[P.default]||w}},{key:"render",value:function(){return Object(b.e)(this.template.dataTemplate,Object(k.a)(this.breadCrumbTrailItem,"text"))}},{key:"firstUpdated",value:function(e){var t=this;f()(g()(n.prototype),"firstUpdated",this).call(this,e),Object.keys(this.template.attributes).forEach((function(e){return t.setAttribute(e,t.template.attributes[e])}))}},{key:"update",value:function(e){e.has("breadCrumbTrailItem")&&this.breadCrumbTrailItem&&(this.type=P.hasOwnProperty(this.breadCrumbTrailItem.type)?this.breadCrumbTrailItem.type:void 0),f()(g()(n.prototype),"update",this).call(this,e)}}],[{key:"is",get:function(){return"ff-breadcrumb-trail-item"}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},breadCrumbTrailItem:{type:Object,attribute:"bread-crumb-trail-item"}}}}]),n}(b.a);window.customElements.define(C.is,C);var S,P=Object.freeze({search:"search",filter:"filter",all:"all",advisor:"advisor",default:"search"}),O=n(9),x=n(14),E=n(11);n.d(t,"BreadcrumbTrail",(function(){return R}));var R=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).templates={},e.separatorTemplate=void 0,e.breadCrumbTrailItems=[],e.showAsteriskQuery=!1,e}return u()(n,[{key:"render",value:function(){for(var e,t,n=[],i=(this.breadCrumbTrailItems||[]).length,a=0;a'])),e,t))),a ")}},{key:"update",value:function(e){var t=this;e.has("breadCrumbTrailItems")&&(this.breadCrumbTrailItems&&0!==this.breadCrumbTrailItems.length?this.showSelf():this.hideSelf(),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(C.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"_subscriptionCallback",value:function(e){this.breadCrumbTrailItems=e}}],[{key:"is",get:function(){return"ff-breadcrumb-trail"}},{key:"properties",get:function(){return{breadCrumbTrailItems:{type:Array,attribute:"bread-crumb-trail-items"},showAsteriskQuery:{type:b.c,attribute:"show-asterisk-query"}}}}]),n}(Object(O.a)([Object(x.ElementLog)(),Object(E.a)(E.b.bct)],b.a));window.customElements.define(R.is,R)},function(e,t,n){"use strict";n.r(t);var r=n(18),i=n.n(r),o=n(8),a=n.n(o),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(2),d=n.n(f),h=n(6),p=n.n(h),m=n(7),v=n.n(m),g=n(0),y=n.n(g),b=n(5),_=n(10),k=n(9),w=n(21),C=n.n(w),S=n(1);var P=Object.freeze({Selected:"ffw-selected",ShowSelected:"ffw-showSelected"}),O=function(e){p()(n,e);var t=function(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 n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).sortItem={},e._template=Object(b.d)(C()(e))?"{{description}}":e.innerHTML,e.addEventListener("click",function(){this._isClickable&&S.a.communication.EventAggregator.addFFEvent({type:"sort",name:this.sortItem.name,order:this.sortItem.order})}.bind(C()(e))),e}return l()(n,[{key:"render",value:function(){return Object(b.e)(this._template,this.sortItem)}},{key:"update",value:function(e){e.has("sortItem")&&this._sortItemChanged(this.sortItem),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"clone",value:function(){var e=this.cloneNode(!0);return e._template=this._template,e}},{key:"_sortItemChanged",value:function(e,t){this.style.display=e?(this._isClickable=!e.selected,e.selected?this.classList.add(P.Selected):this.classList.remove(P.Selected),e.showSelected?this.classList.add(P.ShowSelected):this.classList.remove(P.ShowSelected),"block"):"none"}}],[{key:"is",get:function(){return"ff-sortbox-item"}},{key:"properties",get:function(){return{sortItem:{type:Object},key:{type:String}}}}]),n}(b.a);window.customElements.define(O.is,O);var x,E=n(29),R=n(11);function j(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 L(e){for(var t=1;t
'])),A.SelectedContainer,A.DropdownContainer,this.opened?"":A.DropdownClosed)}},{key:"connectedCallback",value:function(){d()(y()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){if(!this._initialized){this.tabindex=this.getAttribute("tabindex"),this.tabindex||this.setAttribute("tabindex","1");var e,t,n,r=this.querySelector(I.DefaultSortItemCssSelector);r?(this._defaultSortItemTemplate=r,this.removeChild(r)):this._defaultSortItemTemplate=document.createElement(O.is),this._sortBoxItemTemplateInfos=(e=this._sortBoxItemTemplateInfos,t=this.querySelectorAll(O.is),n="null.desc",t.forEach((function(t){var r=t.getAttribute("key");!r||r===n&&e.hasOwnProperty(n)||(e["ff.relevance"===r?n:r]=N(t))})),e),this._initialized=!0}}},{key:"firstUpdated",value:function(e){var t,r,i;d()(y()(n.prototype),"firstUpdated",this).call(this,e),this.hideSelf(),this.addEventListener("click",this.toggle.bind(this)),this.addEventListener("blur",(t=this,function(){t.collapseOnblur&&setTimeout((function(){return t.hide()}),150)})),i=M(r=this),r.opened?(r.opened=!0,r._show(i,!1)):r._hide(i,!1,(function(){r.opened=!1}))}},{key:"update",value:function(e){(e.has("items")||e.has("showSelected"))&&function(e){var t=1',""])),(this.element.__TARGET_URL__||{}).url,k.b.Encoding.decodeURIComponent(this.element.name))}}],[{key:"is",get:function(){return"ff-nav-element"}},{key:"properties",get:function(){return{element:{attribute:!1,type:Object}}}}]),n}(w.a);window.customElements.define(S.is,S);var P,O,x,E,R,j=n(9),L=n(11),I=n(15);n.d(t,"HeaderNavigation",(function(){return T}));var A=k.a.communication.EventAggregator,T=function(e){m()(n,e);var t=function(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 n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e,r;return c()(this,n),(e=t.call(this)).elements=[],e.groupCount=10,e.groupSize=4,e.hideEmptyGroups=!0,e.fetchInitial=!0,e.mouseenterDelay=600,e.mouseleaveDelay=200,e._key=k.a.common.randomString(10),e._slottedElements={},e._selectedElement={},e._showBody=!1,e._shouldShowBody=!1,e.addEventListener(C.NavSearch,(r=f()(e),function(e){var t=e.detail;r._showBody=!1;var n=t.searchParams.split("?")[1],i=k.a.common.decodeDict(k.a.common.parameterStringToDict(n));i.type="navigation-search",setTimeout((function(){Object(I.a)()&&(k.a.communication.globalCommunicationParameter.categoryPage="filter=".concat(k.b.Encoding.ngCategoryPageEncode(i.filter[0]))),A.addFFEvent(i)}),0)})),e}return u()(n,[{key:"render",value:function(){var e,t,n,r=this;return Object(_.b)(P||(P=o()(['
',"
","
"])),M,D,this.elements.map((function(e){return Object(_.b)(O||(O=o()(['
'])),e,N)})),this._showBody?Object(_.b)(x||(x=o()(['
','
','
','
','
',"
"])),this._selectedElement&&this._slottedElements["container-top-".concat(this._selectedElement.name)],this._selectedElement&&this._slottedElements["container-left-".concat(this._selectedElement.name)],(e=this.hideEmptyGroups,t=this.groupCount,n=this._selectedElement.groups,n?!0===e?n.filter((function(e){var t=0===e.links.length;return t&&k.a.common.Logger.log("[".concat(T.is,"]: The group '").concat(e.name,"' has no 3rd layer children and will not be shown. If you wish to display it nevertheless, set 'hide-empty-groups=\"false\"'")),!t})).slice(0,t):n.slice(0,t):[]).map((function(e){return Object(_.b)(E||(E=o()(['
'," ","
"])),e,(t=r,n=e.links,n.slice(0,t.groupSize)).map((function(e){return Object(_.b)(R||(R=o()([''])),e)})),r._slottedElements[e.name]);var t,n})),this._selectedElement&&this._slottedElements["container-right-".concat(this._selectedElement.name)],this._selectedElement&&this._slottedElements["container-bottom-".concat(this._selectedElement.name)]):void 0)}},{key:"connectedCallback",value:function(){var e=this;h()(b()(n.prototype),"connectedCallback",this).call(this),this.querySelectorAll("[slot]").forEach((function(t){return e._slottedElements[t.getAttribute("slot")]=t})),this.fetchInitial&&this.fetch()}},{key:"updated",value:function(e){var t=this;h()(b()(n.prototype),"updated",this).call(this,e),e.has("elements")&&setTimeout((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}),0)}},{key:"fetch",value:function(){var e={type:L.b.navigation,firstFetch:3,fetchSize:1,maxFetch:3,fetchTime:10,key:this._key};setTimeout((function(){return A.addFFEvent(e)}),0)}},{key:"_subscriptionCallback",value:function(e){var t,n;t=this,(n=e[0]).forEach((function(e){var n=k.a.common.getMetaElementKey(e),r=A.navigationResult[t._key][n];e.groups=r.subelements,e.groups.forEach((function(e){var n=k.a.common.getMetaElementKey(e),r=A.navigationResult[t._key][n];e.links=r.subelements}))})),t.elements=n}}],[{key:"is",get:function(){return"ff-header-navigation"}},{key:"properties",get:function(){return{elements:{attribute:!1,type:Array},groupCount:{attribute:"group-count",type:Number},groupSize:{attribute:"group-size",type:Number},hideEmptyGroups:{attribute:"hide-empty-groups",type:w.c},fetchInitial:{attribute:"fetch-initial",type:w.c},mouseenterDelay:{attribute:"mouseenter-delay",type:Number},mouseleaveDelay:{attribute:"mouseleave-delay",type:Number},_selectedElement:{attribute:!1,type:Object},_showBody:{attribute:!1,type:Boolean}}}}]),n}(Object(j.a)([Object(L.a)(L.b.navigation)],w.a));function M(e){var t=this;e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!0,this._showBody||setTimeout((function(){!0===t._shouldShowBody&&(t._showBody=!0)}),this.mouseenterDelay))}function N(e){this._selectedElement=e.currentTarget.element}function D(e){var t=this;e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!1,this._showBody&&setTimeout((function(){!1===t._shouldShowBody&&(t._showBody=!1)}),this.mouseleaveDelay))}window.customElements.define(T.is,T)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(8),a=n.n(o),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(2),d=n.n(f),h=n(6),p=n.n(h),m=n(7),v=n.n(m),g=n(0),y=n.n(g),b=n(10),_=n(23),k=n(1),w=n(5),C=n(30),S=n(15);var P=Object.freeze({down:"down",right:"right",left:"left",default:"right"}),O={dataTemplate:"
{{name}}
",attributes:{direction:P.default}},x=function(e){p()(n,e);var t=function(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 n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).clusterLevel=0,e.type="default",e.direction=P.default,e.hasSubelements=!1,e.flyout="true",e.selected=!1,e.element=void 0,e._templates={default:O},e}return l()(n,[{key:"childrenUpdateComplete",get:function(){var e=this;return new Promise((function(t){e.updateComplete.then((function(){var r=e.querySelectorAll("".concat(n.is,'[cluster-level="').concat(e.clusterLevel+1,'"]'));0===r.length?t():Promise.all(Array.from(r).map((function(e){return e.childrenUpdateComplete}))).then(t)}))}))}},{key:"_template",get:function(){return this._templates&&this._templates[this.type||"default"]||O}},{key:"render",value:function(){var e=this,t=this.element&&this.element.__SUB_ELEMENTS__;return Object(b.b)(r||(r=a()(['
','
',"
"])),this.onHovered,Object(w.e)(this._template.dataTemplate,Object(C.a)(this.element,"name")),Object(_.a)(t||[],(function(t){return R(function(e,t){var n="default";e._templates&&e._templates["layer".concat(t.clusterLevel)]&&(n="layer".concat(t.clusterLevel));var r=E(t),i=e._templates&&e._templates.parent;r&&i&&(n="parent");var o=e._templates&&e._templates[n]&&e._templates[n].attributes.direction||P.default;return{element:t,type:n,templates:e._templates,flyout:e.flyout,direction:o,_key:e._key}}(e,t))})))}},{key:"update",value:function(e){e.has("element")&&this._elementChanged(),e.has("flyout")&&this._flyoutChanged(this.flyout),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"firstUpdated",value:function(e){var t=this;d()(y()(n.prototype),"firstUpdated",this).call(this,e),Object.keys(this._template.attributes).forEach((function(e){return t.setAttribute(e,t._template.attributes[e])})),this._initLink()}},{key:"updated",value:function(e){if(d()(y()(n.prototype),"updated",this).call(this,e),e.has("hasSubelements")){if(!this.link)return;this.hasSubelements?this.link.classList.remove("ffw-navigation-link"):this.link.classList.add("ffw-navigation-link")}}},{key:"connectedCallback",value:function(){var e=this;d()(y()(n.prototype),"connectedCallback",this).call(this),this.addEventListener("click",(function(t){return e._clicked(t)}))}},{key:"_initLink",value:function(){var e=this;this.link=this.querySelector("[data-search]"),this.link&&this.link.addEventListener("click",(function(t){e.search(),t.stopPropagation(),t.cancelBubble=!0}))}},{key:"_elementChanged",value:function(){this.element?(this.clusterLevel=this.element.clusterLevel,this._subelementsUpdated()):this.clusterLevel=void 0}},{key:"_subelementsUpdated",value:function(){this.hasSubelements=E(this.element)}},{key:"_clicked",value:function(e){"false"===this.flyout&&(this.hasSubelements?(this.selected=!this.selected,this.link&&(!0===this.selected?this.link.classList.add("ffw-navigation-link"):this.link.classList.remove("ffw-navigation-link"))):this.link&&this.link.classList.add("ffw-navigation-link")),"true"!==this.flyout&&this.hasSubelements&&!this.alwaysSearchOnclick||this.search(),e.stopPropagation(),e.cancelBubble=!0}},{key:"_flyoutChanged",value:function(e){"true"===e&&(this.selected=!1)}},{key:"search",value:function(){var e=this.element.searchParams,t=k.a.common.decodeDict(k.a.common.parameterStringToDict(e.split("?")[1]));t.type="navigation-search";var n=this.parentElement;n.classList.add("ffw-container-hidden"),Promise.resolve().then((function(){Object(S.a)()&&(k.a.communication.globalCommunicationParameter.categoryPage="filter=".concat(k.b.Encoding.ngCategoryPageEncode(t.filter[0]))),k.a.communication.EventAggregator.addFFEvent(t)})),setTimeout((function(){return n.classList.remove("ffw-container-hidden")}),1e3)}},{key:"onHovered",value:function(){if(0!==this.clusterLevel)if(this.direction===P.right){var e=window.innerWidth-this.getBoundingClientRect().left;this.direction=e<500?P.left:this.direction}else if(this.direction===P.left){var t=this.getBoundingClientRect().left,n=this.getBoundingClientRect().width;this.direction=t<=n?P.right:this.direction}}}],[{key:"is",get:function(){return"ff-navigation-item"}},{key:"properties",get:function(){return{element:{type:Object,attribute:!1},direction:{type:String,reflect:!0},clusterLevel:{type:Number,reflect:!0,attribute:"cluster-level"},type:{type:String},hasSubelements:{type:Boolean,attribute:"has-subelements",reflect:!0},alwaysSearchOnclick:{type:Boolean,attribute:"always-search-onclick"},flyout:{type:String,reflect:!0},selected:{type:Boolean,reflect:!0}}}}]),n}(w.a);function E(e){return e.__SUB_ELEMENTS__&&0'])),e.element,e.direction,e.type,e.flyout,e.templates,e._key,e.selected)}window.customElements.define(x.is,x);var j,L=n(9),I=n(14),A=n(11);n.d(t,"Navigation",(function(){return M}));var T=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),M=function(e){p()(n,e);var t=function(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 n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this))._templates={},e._navigationDataInitialized=!1,e._menuTemplate=void 0,e._key=k.a.common.randomString(10),e.navigationData=[],e.layout=T.horizontal,e.flyout="true",e.mobile="false",e.fetchInitial="true",e.firstFetch=2,e.fetchSize=1,e.maxFetch=10,e.fetchTime=100,e.subscribe=!0,e}return l()(n,[{key:"render",value:function(){var e=this;return Object(b.b)(j||(j=a()(['
',"
"])),this._menuTemplate,Object(_.a)(this.navigationData,(function(t){return R(e._getHeaderNavigationItem(t))})))}},{key:"connectedCallback",value:function(){var e=this;if(d()(y()(n.prototype),"connectedCallback",this).call(this),0===Object.keys(this._templates).length&&this.querySelectorAll(x.is).forEach((function(t){var n;e._templates[t.type||"default"]||(e._templates[t.type||"default"]=!(n=t)||Object(w.d)(n)?O:{dataTemplate:n.innerHTML,attributes:Array.prototype.reduce.call(n.attributes,(function(e,t){var n=t.name,r=t.value;return"unresolved"!==n&&(e[n]=r),e}),{})})})),!this._menuTemplate){var t=this.querySelector('[slot="menu"]');t&&(this._menuTemplate=t.innerHTML)}"false"!==this.fetchInitial&&this.fetch()}},{key:"fetch",value:function(){var e={type:"navigation",firstFetch:this.firstFetch,fetchSize:this.fetchSize,maxFetch:this.maxFetch,fetchTime:this.fetchTime,key:this._key};setTimeout((function(){return k.a.communication.EventAggregator.addFFEvent(e)}))}},{key:"update",value:function(e){var t=this;e.has("layout")&&this.layout&&this.updateLayout(),e.has("flyout")&&this._flyoutChanged(this.flyout),e.has("mobile")&&this._mobileChanged(this.mobile),e.has("navigationData")&&this.updateComplete.then((function(){t.updateLayout(),Promise.all(Array.from(t.querySelectorAll("".concat(x.is,'[cluster-level="0"]'))).map((function(e){return e.childrenUpdateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"_subscriptionCallback",value:function(e){this._navigationDataInitialized||(e&&e[0]?this.navigationData=e[0]:this.warn("Navigation has no results."),this._navigationDataInitialized=!0),this.querySelectorAll(x.is).forEach((function(e){return e._subelementsUpdated()}))}},{key:"updateLayout",value:function(){var e=this;try{this.navigationData.forEach((function(t){t.direction=e.layout===T.horizontal?P.down:t.template.attributes.direction||P.default})),this.querySelectorAll("".concat(x.is,':not([cluster-level="0"])')).forEach((function(e){e.direction=e._template.attributes.direction||P.default}))}catch(e){this.warn("Failed to change layout",e)}}},{key:"_flyoutChanged",value:function(e){e&&this.querySelectorAll(x.is).forEach((function(t){return t.flyout=e}))}},{key:"_mobileChanged",value:function(e){"true"===e&&(this.flyout="false")}},{key:"_getHeaderNavigationItem",value:function(e){var t=(this._templates.header||this._templates.default).attributes.direction||P.default;return{type:"header",templates:this._templates,direction:this.layout===T.horizontal?P.down:t,element:e,flyout:this.flyout,_key:this._key}}}],[{key:"is",get:function(){return"ff-navigation"}},{key:"properties",get:function(){return{navigationData:{type:Array,attribute:!1},layout:{type:String,reflect:!0},flyout:{type:String,reflect:!0},mobile:{type:String,reflect:!0},fetchInitial:{type:String,attribute:"fetch-initial"},firstFetch:{type:Number,attribute:"first-fetch"},fetchSize:{type:Number,attribute:"fetch-size"},maxFetch:{type:Number,attribute:"max-fetch"},fetchTime:{type:Number,attribute:"fetch-time"},subscribe:{type:w.c}}}}]),n}(Object(L.a)([Object(I.ElementLog)(),Object(A.a)(A.b.navigation)],w.a));window.customElements.define(M.is,M)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1),p=n(9),m=n(26);var v=function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"recordId",get:function(){return this.getAttribute("record-id")},set:function(e){return this.setAttribute("record-id",e)}},{key:"count",get:function(){return this.getAttribute("count")},set:function(e){this.setAttribute("count",e)}},{key:"price",get:function(){return this.getAttribute("price")},set:function(e){this.setAttribute("price",e)}},{key:"channel",get:function(){return this.getAttribute("channel")},set:function(e){this.setAttribute("channel",e)}},{key:"connectedCallback",value:function(){this.count||(this.count="1")}}],[{key:"is",get:function(){return"ff-checkout-tracking-item"}}]),n}(n.n(m)()(HTMLElement));window.customElements.define(v.is,v);var g=n(47),y=n(14),b=n(15);n.d(t,"CheckoutTracking",(function(){return _}));var _=function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"disableAutoTracking",get:function(){return this.hasAttribute("disable-auto-tracking")}},{key:"connectedCallback",value:function(){!0!==this.disableAutoTracking&&this.trackCheckoutItems()}},{key:"trackCheckoutItems",value:function(){!function(e,t){if(0!==Object.keys(t).length)7.3<=parseFloat(h.a.communication.globalSearchParameter.version)||Object(b.a)()?Object.keys(t).map((function(e){return{type:"getRecords",recordId:t[e],channel:e,topics:function(){return["checkout-tracking"]}}})).forEach((function(t){e.dispatchEvent(new CustomEvent("before-get-records",{detail:t,bubbles:!0})),t.success=h.a.common.concatFunctions(t.success,(function(t){t.forEach((function(t){var n=e.querySelector("[record-id='".concat(t.id,"']"));n&&t.record&&(t.record[g.INTERNAL_TRACKING_PRICE_FIELD_NAME]=n.price),e._trackCheckoutClick(n,t)}))})),h.a.communication.EventAggregator.addFFEvent(t)})):e.warn("Your FACT-Finder version does not support . Requires version 7.3 or ng")}(this,Array.prototype.reduce.call(this.querySelectorAll(v.is),(function(e,t){var n=t.channel||h.a.communication.globalSearchParameter.channel;return e[n]=e[n]||[],e[n].push(t.recordId.trim()),e}),{}))}}],[{key:"is",get:function(){return"ff-checkout-tracking"}}]),n}(Object(p.a)([Object(y.ElementLog)(),Object(g.Tracking)()],HTMLElement));window.customElements.define(_.is,_)},function(e,t,n){"use strict";n.r(t);var r,i=n(19),o=n.n(i),a=n(8),c=n.n(a),s=n(4),u=n.n(s),l=n(3),f=n.n(l),d=n(2),h=n.n(d),p=n(6),m=n.n(p),v=n(7),g=n.n(v),y=n(0),b=n.n(y),_=n(12),k=n(21),w=n.n(k),C=n(17),S=n(9),P=n(14),O=n(1),x=n(5),E=n(28);var R="[data-search='singleWord']",j={dataTemplate:'
\n

{{word}} ({{recordCount}})

\n \n \n \n
{{record.Title}}
\n
\n
\n
',attributes:{}},L=function(e){m()(n,e);var t=function(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 n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e;return u()(this,n),(e=t.call(this))._template=void 0,e._handleSingleSearchClick=I(w()(e)),e}return f()(n,[{key:"render",value:function(){return Object(_.g)(this._template?[this._template.dataTemplate]:[])}},{key:"firstUpdated",value:function(e){var t=this;h()(b()(n.prototype),"firstUpdated",this).call(this,e),this._template&&Object.keys(this._template.attributes).forEach((function(e){return t.setAttribute(e,t._template.attributes[e])}))}},{key:"updated",value:function(e){h()(b()(n.prototype),"updated",this).call(this,e),e.has("word")&&A(this,this.word)}},{key:"connectedCallback",value:function(){h()(b()(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector(C.RecordList.is);e?(e.setAttribute("subscribe","false"),e.innerHTML=e._origHTML):Object(x.d)(this)||this.warn("".concat(C.RecordList.is," not found. Data will not be displayed."))}}],[{key:"is",get:function(){return"ff-single-word-search-record"}},{key:"properties",get:function(){return{_template:{type:Object,attribute:!1},word:{type:Object,attribute:!1}}}}]),n}(Object(S.a)([Object(P.ElementLog)()],x.a)),I=function(e){return function(){try{var t=O.a.common.getParameterString(e.word.searchParams),n=O.a.common.parameterStringToDict(t);n.type="search",O.a.communication.EventAggregator.addFFEvent(n)}catch(t){e.error(t)}}},A=function(e,t){if(e.hideSelf(),t){var n=e.querySelector(R);n&&(n.innerHTML=Object(E.a)(n.innerHTML,t));var r=e.querySelector(C.RecordList.is);r?r.records=t.previewRecords:e.warn("".concat(C.RecordList.is," not found. Data will not be displayed.")),T(e,e._handleSingleSearchClick),M(e,e._handleSingleSearchClick),e.showSelf()}},T=function(e,t){e.querySelectorAll(R).forEach((function(e){return e.removeEventListener("click",t)}))},M=function(e,t){e.querySelectorAll(R).forEach((function(e){return e.addEventListener("click",t)}))};window.customElements.define(L.is,L);var N,D,F=n(23),B=n(11);n.d(t,"SingleWordSearch",(function(){return V}));var V=function(e){m()(n,e);var t=function(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 n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e;return u()(this,n),(e=t.call(this))._headerTemplate=void 0,e._singleWordRecordTemplate=void 0,e._footerTemplate=void 0,e.words=[],e}return f()(n,[{key:"render",value:function(){var e=this;return!this.words||0'])),n,i);var n,i})),Object(x.e)(this._footerTemplate))}},{key:"updated",value:function(e){var t=this;h()(b()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(L.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}},{key:"connectedCallback",value:function(){h()(b()(n.prototype),"connectedCallback",this).call(this);var e,t=this.querySelector(L.is),r=U(t),i=q(t);this._headerTemplate=this._headerTemplate||z(r),this._singleWordRecordTemplate=this._singleWordRecordTemplate||(!(e=t)||Object(x.d)(e)?j:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,(function(e,t){var n=t.name,r=t.value;return e[n]=r,e}),{})}),this._footerTemplate=this._footerTemplate||z(i)}},{key:"_subscriptionCallback",value:function(e){this.words=e||[]}}],[{key:"is",get:function(){return"ff-single-word-search"}},{key:"properties",get:function(){return{words:{type:Array}}}}]),n}(Object(S.a)([Object(B.a)(B.b.singleWordSearch)],x.a)),U=function(e){if(!e)return[];var t=o()(e.parentNode.childNodes);return t.slice(0,t.indexOf(e))},q=function(e){if(!e)return[];var t=o()(e.parentNode.childNodes);return t.slice(t.indexOf(e)+1)},z=function(e){var t=document.createElement("div");return e.forEach((function(e){return t.appendChild(e)})),t.innerHTML};window.customElements.define(V.is,V)},function(e,t,n){"use strict";n.r(t);var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(43),_=n(12),k=new WeakMap,w=Object(_.f)((function(e){return function(t){if(!(t instanceof _.a)||t instanceof _.c||"style"!==t.committer.name||1'])),Object(b.a)({"ffw-hidden":!this.isActive}),w({stroke:this.strokeColor}))}},{key:"update",value:function(e){e.has("manual")&&(this.manual?this._subscriptionKey&&(C.a.communication.EventAggregator.removeBeforeDispatchingCallback(this._subscriptionKey),this._subscriptionKey=void 0):function(e){e._subscriptionKey||(e._subscriptionKey=C.a.communication.EventAggregator.addBeforeDispatchingCallback((function(t){-1!==["search","filter","sort","clearFilter","advisor"].indexOf(t.type)&&(e.show(),t.always=C.a.common.concatFunctions((function(){return e.hide()}),t.always))})))}(this)),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"show",value:function(){this.isActive=!0}},{key:"hide",value:function(){this.isActive=!1}}],[{key:"is",get:function(){return"ff-loading-spinner"}},{key:"properties",get:function(){return{isActive:{type:Boolean,reflect:!0,attribute:"is-active"},strokeColor:{type:String,attribute:"stroke-color"},manual:{type:Boolean,reflect:!0}}}}]),n}(S.a);window.customElements.define(P.is,P)}]); +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=112)}([function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var r=n(27),i=n.n(r),o=n(18),a=n.n(o),c=n(3),s=n.n(c),u=n(4),l=n.n(u),f=n(19),d=n.n(f),h=n(68),p=n.n(h),m=n(24),v=n.n(m),g=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===v()(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e){e.exports=JSON.parse('{"a":"4.3.0"}')},function(e,t,n){var r;n.r(t),n.d(t,"internal",(function(){return Lo})),n.d(t,"factfinder",(function(){return Io}));var o={};n.r(o),n.d(o,"compose",(function(){return I})),n.d(o,"pipe",(function(){return A})),n.d(o,"scanl",(function(){return T})),n.d(o,"isNullish",(function(){return M})),n.d(o,"fswitch",(function(){return N})),n.d(o,"escapeRegex",(function(){return D}));var c={};n.r(c),n.d(c,"encodeURIComponent",(function(){return F})),n.d(c,"decodeURIComponent",(function(){return B})),n.d(c,"fixedEncodeURIComponent",(function(){return V})),n.d(c,"fixedDecodeURIComponent",(function(){return U})),n.d(c,"percent20ToPlus",(function(){return q})),n.d(c,"uriPlusEncode",(function(){return z})),n.d(c,"encodeCategoryV4",(function(){return W})),n.d(c,"encodeAssociatedFieldName",(function(){return H})),n.d(c,"ngEncode",(function(){return K})),n.d(c,"ngCategoryPageEncode",(function(){return Y})),n.d(c,"normalizeCategoryFilterEncoding",(function(){return G}));var u={};n.r(u),n.d(u,"isLogLevelActive",(function(){return ee})),n.d(u,"trace",(function(){return te})),n.d(u,"debug",(function(){return ne})),n.d(u,"info",(function(){return re})),n.d(u,"log",(function(){return ie})),n.d(u,"warn",(function(){return oe})),n.d(u,"error",(function(){return ae})),n.d(u,"logMessage",(function(){return ce})),n.d(u,"emitDeprecationWarning",(function(){return se}));var f={};n.r(f),n.d(f,"find",(function(){return le})),n.d(f,"flatMap",(function(){return fe})),n.d(f,"values",(function(){return de})),n.d(f,"includes",(function(){return he}));var h={};n.r(h),n.d(h,"Versions",(function(){return pe})),n.d(h,"supportedVersions",(function(){return me})),n.d(h,"atLeast",(function(){return ve})),n.d(h,"getApiString",(function(){return ge})),n.d(h,"isSupported",(function(){return ye}));var m={};n.r(m),n.d(m,"pppConf",(function(){return _e}));var g={};n.r(g),n.d(g,"esPolyfills",(function(){return f})),n.d(g,"util",(function(){return o})),n.d(g,"Encoding",(function(){return c})),n.d(g,"NgApiVersions",(function(){return h})),n.d(g,"getFixedFilters",(function(){return tt}));var y={};n.r(y),n.d(y,"addParam",(function(){return dt})),n.d(y,"deduplicate",(function(){return ht})),n.d(y,"HistoryEntry",(function(){return pt})),n.d(y,"getHistoryState",(function(){return mt})),n.d(y,"executeCallback",(function(){return vt})),n.d(y,"elementToString",(function(){return gt})),n.d(y,"stringToElement",(function(){return yt})),n.d(y,"isArray",(function(){return bt})),n.d(y,"isObject",(function(){return _t})),n.d(y,"isFunction",(function(){return kt})),n.d(y,"transitionEndEventName",(function(){return wt})),n.d(y,"setStyleProperty",(function(){return Ct})),n.d(y,"concatFunctions",(function(){return St})),n.d(y,"addEventListener",(function(){return Pt})),n.d(y,"cloneObject",(function(){return Ot})),n.d(y,"copyHTMLAttributes",(function(){return xt})),n.d(y,"isCustomElement",(function(){return Et})),n.d(y,"whichTransitionEvent",(function(){return Rt})),n.d(y,"getParentElementByName",(function(){return jt})),n.d(y,"urlStringToDict",(function(){return Lt})),n.d(y,"getParameterString",(function(){return It})),n.d(y,"parameterStringToDict",(function(){return At})),n.d(y,"keys",(function(){return Tt})),n.d(y,"sortStringArrayAlphabetically",(function(){return Mt})),n.d(y,"isFilterParameter",(function(){return Nt})),n.d(y,"dictToParameterString",(function(){return Dt})),n.d(y,"sortFilterValuesAlphabetically",(function(){return Ft})),n.d(y,"setUrlParameter",(function(){return Bt})),n.d(y,"getKeyByPattern",(function(){return Vt})),n.d(y,"mergeProperties",(function(){return Ut})),n.d(y,"getCurrentEndPathString",(function(){return qt})),n.d(y,"fireCustomEvent",(function(){return zt})),n.d(y,"replaceAt",(function(){return Wt})),n.d(y,"removeAt",(function(){return Ht})),n.d(y,"randomString",(function(){return Kt})),n.d(y,"isFFParameter",(function(){return Yt})),n.d(y,"searchParams",(function(){return Xt})),n.d(y,"localStorage",(function(){return Zt})),n.d(y,"removeChildNodes",(function(){return Jt})),n.d(y,"isOk",(function(){return $t})),n.d(y,"getMetaElementKey",(function(){return Qt}));var b={};n.r(b),n.d(b,"encodeUrl",(function(){return en})),n.d(b,"fixedEncodeURIComponent",(function(){return tn})),n.d(b,"fixedDecodeURIComponent",(function(){return nn})),n.d(b,"encodeDict",(function(){return rn})),n.d(b,"_canEncode",(function(){return on})),n.d(b,"decodeUrl",(function(){return an})),n.d(b,"decodeDict",(function(){return cn}));var _={};n.r(_),n.d(_,"FFEvent",(function(){return hn})),n.d(_,"FilterEvent",(function(){return pn})),n.d(_,"BreadCrumbEvent",(function(){return mn})),n.d(_,"GlobalSearchParameter",(function(){return vn}));var k={};n.r(k),n.d(k,"sessionManager",(function(){return kn}));var w={};n.r(w),n.d(w,"startDispatching",(function(){return hr})),n.d(w,"setShouldDeferDispatches",(function(){return pr})),n.d(w,"invokeCallbacks",(function(){return mr})),n.d(w,"addCallback",(function(){return vr})),n.d(w,"removeCallback",(function(){return gr})),n.d(w,"subscribe",(function(){return yr})),n.d(w,"unsubscribe",(function(){return br})),n.d(w,"dispatch",(function(){return kr})),n.d(w,"dispatchResultByTopic",(function(){return wr})),n.d(w,"dispatchSearchResult",(function(){return Cr})),n.d(w,"dispatchResult",(function(){return Sr})),n.d(w,"dispatchRaw",(function(){return Pr})),n.d(w,"dispatchSSR",(function(){return Or})),n.d(w,"dispatchResultInternal",(function(){return Er})),n.d(w,"dispatchRecords",(function(){return Rr})),n.d(w,"dispatchBreadcrumbTrail",(function(){return jr})),n.d(w,"dispatchSorting",(function(){return Lr})),n.d(w,"dispatchProductsPerPage",(function(){return Ir})),n.d(w,"dispatchPaging",(function(){return Ar})),n.d(w,"dispatchPagingItems",(function(){return Tr})),n.d(w,"dispatchAsn",(function(){return Mr})),n.d(w,"dispatchSingleWordSearch",(function(){return Nr})),n.d(w,"dispatchProductDetail",(function(){return Dr})),n.d(w,"dispatchCampaigns",(function(){return Fr})),n.d(w,"dispatchPageCampaigns",(function(){return Br})),n.d(w,"dispatchProductCampaigns",(function(){return Vr})),n.d(w,"dispatchShoppingCartCampaign",(function(){return Ur})),n.d(w,"_doCampaingDispatch",(function(){return qr})),n.d(w,"dispatchSuggest",(function(){return zr})),n.d(w,"dispatchRecommendations",(function(){return Wr})),n.d(w,"dispatchSimilarProducts",(function(){return Hr})),n.d(w,"dispatchPredictiveBasket",(function(){return Kr})),n.d(w,"dispatchCompare",(function(){return Yr})),n.d(w,"dispatchTagCloud",(function(){return Gr})),n.d(w,"dispatchQuery",(function(){return Xr})),n.d(w,"dispatchNavigationFrame",(function(){return Zr}));var C={};n.r(C),n.d(C,"getSearchParamString",(function(){return $r})),n.d(C,"handleSeoSearch",(function(){return Qr})),n.d(C,"replaceHistoryState",(function(){return ti})),n.d(C,"replaceDocumentLocation",(function(){return ni})),n.d(C,"pushParameterToHistory",(function(){return ri})),n.d(C,"getBrowserURL",(function(){return oi})),n.d(C,"pushSeoToHistory",(function(){return ai})),n.d(C,"pushFilterUrlToHistory",(function(){return ci})),n.d(C,"extractCategoryPathFieldName",(function(){return si})),n.d(C,"changeRecordPropertyName",(function(){return ui})),n.d(C,"getQueryFromSearchParams",(function(){return li})),n.d(C,"addRenameRecordFields",(function(){return fi})),n.d(C,"removeRenameRecordFields",(function(){return di})),n.d(C,"isNg",(function(){return hi})),n.d(C,"isPriceField",(function(){return pi})),n.d(C,"trackingHelper",(function(){return mi}));var S={};n.r(S),n.d(S,"addFFEvent",(function(){return Yi})),n.d(S,"addFailCallback",(function(){return Gi})),n.d(S,"removeFailCallback",(function(){return Xi})),n.d(S,"addBeforeHistoryPushCallback",(function(){return Zi})),n.d(S,"removeBeforeHistoryPushCallback",(function(){return Ji})),n.d(S,"addBeforeDispatchingCallback",(function(){return $i})),n.d(S,"removeBeforeDispatchingCallback",(function(){return Qi})),n.d(S,"getCurrentResult",(function(){return eo}));var P={};n.r(P),n.d(P,"click",(function(){return lo})),n.d(P,"cart",(function(){return fo})),n.d(P,"checkout",(function(){return ho})),n.d(P,"login",(function(){return po})),n.d(P,"loginWithConfig",(function(){return mo})),n.d(P,"recommendationClick",(function(){return vo})),n.d(P,"searchFeedback",(function(){return go})),n.d(P,"landingPageClick",(function(){return yo}));var O={};n.r(O),n.d(O,"Tracking12",(function(){return Co})),n.d(O,"trackingManager",(function(){return So}));var x={};n.r(x),n.d(x,"sortboxConf",(function(){return Po}));var E={};n.r(E),n.d(E,"MultiAttributeParsing",(function(){return ln})),n.d(E,"ProductTeaserCampaignProcessor",(function(){return fn})),n.d(E,"use",(function(){return Ro}));var R={};n.r(R),n.d(R,"response",(function(){return E}));var j,L,I=function(){for(var e=arguments.length,t=new Array(e),n=0;n=Q[e]}function te(e){if(ee("trace")){for(var t=arguments.length,n=new Array(1=e}},ge=function(){var e=(0",") is not supported by this version of WebComponents. Choose one of [").concat(me.join(", "),"] for the NG API setting or try updating your WebComponents. https://github.com/FACT-Finder-Web-Components/ff-web-components/releases"));var n=e.url.replace(/\/*$/,"/"),r=ge(t);return N(e).case_(Te.isNavigation,(function(){return i("".concat(n,"rest/").concat(r,"/navigation/category/").concat(e.channel))})).case_(Te.isSuggest,(function(){return i("".concat(n,"rest/").concat(r,"/suggest/").concat(e.channel))})).case_(Te.isProductCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/product"))})).case_(Te.isPageCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/page"))})).case_(Te.isShoppingCartCampaign,(function(){return i("".concat(n,"rest/").concat(r,"/campaign/").concat(e.channel,"/shoppingcart"))})).case_(Te.isSimilarProducts,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/similar"))})).case_(Te.isRecommendation,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/recommendation"))})).case_(Te.isCompare,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel,"/compare"),De.compare(e))})).case_(Te.isGetRecords,(function(){return i("".concat(n,"rest/").concat(r,"/records/").concat(e.channel),De.getRecords(e),Fe.getRecords(e))})).case_(Te.isTracking,(function(){return i("".concat(n,"rest/").concat(r,"/track/").concat(e.channel,"/").concat(e.event),"",Fe.tracking(e))})).case_(Te.isPredBasket,(function(){return i("".concat(n,"rest/").concat(r,"/predictivebasket/").concat(e.channel))})).case_(Te.isNavigationSort,(function(){return i("".concat(n,"rest/").concat(r,"/navigation/").concat(e.channel),"",Fe.navigationSort(e))})).case_(Te.isNavigationSearch,(function(){return i("".concat(n,"rest/").concat(r,"/navigation/").concat(e.channel),"",Fe.navigationSearch(e))})).case_(Te.isSort,(function(){return i("".concat(n,"rest/").concat(r,"/search/").concat(e.channel),"",Fe.sort(e))})).otherwise_((function(){return i("".concat(n,"rest/").concat(r,"/search/").concat(e.channel))}));function i(t){var n=1e.length))return e.substr(0,t)+e.substr(t+n)}function Kt(e){for(var t=1/g,"")),n.url&&e.channel&&e.version||(ae('Required search params are not available: [url(globalSearchParameter): "'.concat(n.url,'"], [url(event): "').concat(e.url,'"], [channel: "').concat(e.channel,'"], [version: "').concat(e.version,'"]')),oe("At the time this event was emitted no configuration was available, See https://web-components.fact-finder.de/documentation/ready-events",e)),(t=e).type?-1e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}([].concat(L()(Object.getOwnPropertyNames(n)),L()("function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[])));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}catch(e){r.e(e)}finally{r.f()}}}},{key:"_attributeNameForProperty",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}},{key:"_valueHasChanged",value:function(e,t){return(2=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},function(e,t,n){"use strict";n.r(t),n.d(t,"RecordList",(function(){return S}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(45),v=n(1),g=n(13),y=n(9),b=n(32),_=n(41),k=n(51),w=n(5);var C='[data-container="infinite-scroll-placeholder"]',S=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).subscribe=!0,e.infiniteDebounceDelay=32,e.infiniteScrollMargin=0,e.infiniteScrollContainer="",e.restoreScrollPosition=!0,e.__isRecommendation=!1,e.__isLandingPage=!1,e.__campaign="",e.__pageId="",e._origHTML=e.innerHTML,e}return a()(n,[{key:"subscriptionKey",get:function(){return this._subscriptionKey}},{key:"connectedCallback",value:function(){var e,t=this;if(this._restoreScrollHandler=(e=this,function(t){var n=t.detail,r=n.records,i=n.scroll,o=n.previousViewedRecord;O(e,r).then((function(){var t=Object(g.d)(e.infiniteScrollContainer)||Object(g.c)(e.children[o-1]);t===window?window.scrollTo(i.scrollLeft,i.scrollTop):(t.scrollLeft=i.scrollLeft,t.scrollTop=i.scrollTop)}))}),this._scrollingHandler=this._scrollingHandler||function(e){return function(){var n;e.infiniteScrolling&&0<=(n=e.getBoundingClientRect()).left&&n.bottom+e.infiniteScrollMargin<=(window.innerHeight||document.documentElement.clientHeight)&&n.right+e.infiniteScrollMargin<=(window.innerWidth||document.documentElement.clientWidth)&&(e._loadNextPageDebouncerJob=Object(m.a)(e._loadNextPageDebouncerJob,t,e.infiniteDebounceDelay),e._loadNextPageDebouncerJob.run())};function t(){e.loadNextPage.call(e)}}(this),s()(p()(n.prototype),"connectedCallback",this).call(this),!0===this.subscribe&&(this._subscriptionKey=v.a.communication.ResultDispatcher.subscribe("records",this._recordsChangedFFEventHandler,this)),this._templateInfiniteScrollRecordPlaceholder=this._templateInfiniteScrollRecordPlaceholder||this.querySelector(C)||Object(g.a)('
'),this._templateInfiniteScrollRecordPlaceholder.parentNode&&this._templateInfiniteScrollRecordPlaceholder.parentNode.removeChild(this._templateInfiniteScrollRecordPlaceholder),this.ssr){if(!this._templateRecord){var r='template[data-role="record"]',i=this.querySelector(r);if(!i)throw Error("No SSR template with selector '".concat(r,"' could be found, but property ssr-rendered is set. Cannot properly initialize record list."));i.parentNode.removeChild(i);var o=document.importNode(i.content,!0);if(this._templateRecord=o.querySelector(b.Record.is),this._templateRecord.templateString=this._templateRecord.innerHTML,this.querySelectorAll(b.Record.is).forEach((function(e){e.templateString=t._templateRecord.innerHTML})),!this.templateInsertionInfo){var a=this.querySelector('[data-role="records-insertion-point"]');if(a)this.templateInsertionInfo={parentNode:a.parentNode,nextElementSibling:a};else{var c=this.querySelector(b.Record.is+":last-of-type");this.templateInsertionInfo=c?{parentNode:c.parentNode,nextElementSibling:c.nextElementSibling}:{parentNode:this,nextElementSibling:void 0}}}}}else this._templateRecord=this._templateRecord||this.querySelector(b.Record.is),this.templateInsertionInfo||(this.templateInsertionInfo=this._templateRecord?{parentNode:this._templateRecord.parentNode,nextElementSibling:this._templateRecord.nextElementSibling}:{parentNode:this,nextElementSibling:void 0}),!this._templateRecord.templateString&&this._templateRecord.innerHTML&&(this._templateRecord.templateString=this._templateRecord.innerHTML),this._templateRecord.parentNode.removeChild(this._templateRecord),this.records&&this.records.length||this.hideSelf()}},{key:"update",value:function(e){e.has("infiniteScrolling")&&this._infiniteScrollingChanged(this.infiniteScrolling,e.infiniteScrolling),e.has("records")&&this._recordsPropertyChanged(this.records),e.has("restoreScrollPosition")&&this._restoreScrollPositionChanged(this.restoreScrollPosition,e.restoreScrollPosition),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this.unsubscribe(),this._loadNextPageDebouncerJob&&this._loadNextPageDebouncerJob.cancel(),P(this._scrollingContainer,this._scrollingHandler),this._scrollingHandler=function(){},document.removeEventListener(k.a,this._restoreScrollHandler),s()(p()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"unsubscribe",value:function(){this._subscriptionKey&&(v.a.communication.ResultDispatcher.unsubscribe("records",this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"loadNextPage",value:function(){var e=v.a.communication.EventAggregator.currentSearchResult,t=function(e,t){if(t&&t.paging.nextLink&&!e._currentLoadingNextPage){var n=Math.ceil(e.querySelectorAll(b.Record.is).length/t.paging.resultsPerPage)+1,r=Math.max(n,t.paging.nextLink.number);return r>t.paging.pageCount?void 0:r}}(this,e);if(t&&!(t>this.infiniteMaxPages)&&(this._currentLoadingNextPage=t,this._currentLoadNextPageDispatchId=v.a.communication.EventAggregator.addFFEvent({type:"paging",number:this._currentLoadingNextPage,topics:function(){return["result","records"]}}),this.infiniteScrolling))for(var n=(this._currentLoadingNextPage-1)*e.paging.resultsPerPage,r=n;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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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,c=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n',""])),this._changePage,Object(b.e)(this._template,this.pagingItem||{}))}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._template||(this._template=Object(b.d)(this)?"{{caption}}":this.innerHTML)}},{key:"update",value:function(e){e.has("pagingItem")&&(this.pagingItem?(this.classList.remove("ffw-disabled"),this.showSelf(),!0===this.pagingItem.currentPage?this.classList.add("ffw-selected"):this.classList.remove("ffw-selected")):(this.classList.add("ffw-disabled"),this.hideSelf())),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"clone",value:function(){var e=this.cloneNode(!0);return e._template=this._template,e}},{key:"_changePage",value:function(e){this.pagingItem&&!this.pagingItem.currentPage&&"true"!==this.showOnly&&factfinder.communication.EventAggregator.addFFEvent({type:"paging",number:this.pagingItem.number})}}],[{key:"is",get:function(){return"ff-paging-item"}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},pagingItem:{type:Object,attribute:!1},showSelected:{type:Boolean,attribute:"show-selected",reflect:!0},showOnly:{type:b.b,attribute:"show-only",reflect:!0}}}}]),n}(b.a);window.customElements.define(_.is,_)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(13),y=n(53);var b=n(42),_=n(41),k=n(47),w=n(5),C=n(28);n.d(t,"isSameRecordData",(function(){return P})),n.d(t,"Record",(function(){return O}));var S=[function(e){return function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).searchLightDOM=!0,e.productImageIdentifier="[data-image]",e.productImageErrorIdentifier="[data-image-onerror]",e.redirectIdentifier="[data-redirect]",e.redirectTargetIdentifier="[data-redirect-target]",e.productAnchorIdentifier="[data-anchor]",e.recommendationIdentifier="[data-recommendation]",e.bindImmediate=!1,e.tracking=m.a.communication.Tracking,e}return a()(n,[{key:"ready",value:function(){s()(p()(n.prototype),"ready",this).call(this),this.bindImmediate&&(this.bindProductAnchors(),this.bindProductActions(),this.bindProductImage())}},{key:"bindProductActions",value:function(){this._bindProductRedirect()}},{key:"bindProductImage",value:function(){this.searchLightDOM&&this._bindProductImage(this)}},{key:"bindProductAnchors",value:function(){this.searchLightDOM&&this._bindProductAnchors(this)}},{key:"_bindProductImage",value:function(e){var t=this;e.querySelectorAll(this.productImageIdentifier).forEach((function(e){e.onerror||(e.onerror=t._bindOnError(e));var n=m.a.communication,r=n.fieldRoles?n.fieldRoles.imageUrl:"",i=e.getAttribute("data-image")||t.recordData.record[r]||t.recordData.record.ImageUrl;i?e.setAttribute("src",i):e.onerror()}))}},{key:"_bindOnError",value:function(e){var t=this;return function(){var n=e.getAttribute("data-image-onerror");e.onerror=null,n?e.setAttribute("src",n):m.a.common.Logger.debug("No image data for this record: ".concat(t.recordData.id))}}},{key:"_bindProductAnchors",value:function(e){e.querySelectorAll(this.productAnchorIdentifier).forEach((function(e){var t=e.getAttribute("data-anchor");t&&0!==t.length&&(e.setAttribute("href",t),e.removeAttribute("data-anchor"))}))}},{key:"_bindProductRedirect",value:function(){this.searchLightDOM&&this.bindRedirect(this)}},{key:"bindRedirect",value:function(e){var t=this;e&&e.querySelectorAll(this.redirectIdentifier).forEach((function(e){e.querySelectorAll("[data-track]").forEach((function(e){return e.attributes.removeNamedItem("data-track")})),t.registerClickListener(e)}))}},{key:"registerClickListener",value:function(e){var t=this,n=function(e){var n=e.ctrlKey||e.shiftKey||e.metaKey||e.altKey;return 0===e.button&&!n&&!t.disableOverwrite},r=function r(i){e.removeEventListener("mouseup",r),2!==i.button&&t._handleTrackingAndRedirect(i,n(i))};e.addEventListener("click",(function(e){n(e)&&e.preventDefault()})),e.addEventListener("mousedown",(function(t){e.addEventListener("mouseup",r),e.addEventListener("mouseleave",(function(){return e.removeEventListener("mouseup",r)}))}))}},{key:"_handleTrackingAndRedirect",value:function(e,t){var n=this;e.stopPropagation();var r=e.currentTarget,i=this.getRedirectTarget(r),o=this.getRedirectLocation(r);if(o){var a=function(){!0===t&&n.redirect(o,i)};if("_blank"===i){try{!0===this.__isRecommendation?this._trackRecommendationClick(this):!0===this.__isLandingPage?this._trackLandingPageClick(this):this._trackProductClick(this)}catch(e){console.log(e)}a()}else!0===this.__isRecommendation?this._trackRecommendationClick(this,void 0,a):!0===this.__isLandingPage?this._trackLandingPageClick(this,a):this._trackProductClick(this,void 0,a)}}},{key:"getRedirectLocation",value:function(e){var t=e.attributes.getNamedItem("data-redirect");if(t){var n=t.nodeValue;if(n&&0=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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n'.concat(e,"")})),e.queryHighlighted=!0}catch(e){this.error(e)}else this.warn("Search query is not defined or is an empty string. Suggest item highlighting skipped.")}},{key:"_clicked",value:function(){var e={type:this.type,suggestion:this.suggestion,element:this};if(this.dispatchEvent(new CustomEvent("item-clicked",{detail:e,bubbles:!0})),!0!==this.ffPreventDefault){var t=Object(R.b)()?w.a.communication.fieldRoles.deeplink:"deeplink";if(!this.openDeeplink(this.suggestion.attributes[t])){var n="productName"===this.type?this.getRecordEvent():(this,I(I({},w.a.common.decodeDict(w.a.common.urlStringToDict(this.suggestion.searchParams))),{},{queryFromSuggest:!0,userInput:w.a.communication.globalElementValues.currentFFSearchBoxValue,type:"search"}));Object(j.a)(n,this)}}else this.ffPreventDefault=!1}},{key:"getRecordEvent",value:function(){var e=parseFloat(w.a.communication.globalSearchParameter.version);isNaN(e)&&!Object(R.a)()&&(this.error("Could not parse float from FACT-Finder version string, using fallback article number search"),e=7.2);var t=Object(R.b)()?w.a.communication.fieldRoles.productNumber:"id",n=e<7.3?{type:"productDetail",id:this.suggestion.attributes.articleNr}:{type:"getRecords",recordId:[this.suggestion.attributes[t]]};return n.success=w.a.common.concatFunctions(n.success,this.recordSearchHandler.bind(this)),n}},{key:"recordSearchHandler",value:function(e){var t=e.searchResult?e.searchResult.records:e;t&&0".concat(i()(l()(n.prototype),"getHTML",this).call(this),"")}},{key:"getTemplateElement",value:function(){var e=i()(l()(n.prototype),"getTemplateElement",this).call(this),t=e.content,r=t.firstChild;return t.removeChild(r),Object(m.c)(t,r.firstChild),e}}]),n}(y)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h);var m=function(){return function(e){return function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"connectedCallback",value:function(){"function"==typeof s()(p()(n.prototype),"connectedCallback",this)&&s()(p()(n.prototype),"connectedCallback",this).call(this),this.hasAttribute("unresolved")&&this.removeAttribute("unresolved")}}]),n}(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h);function m(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var v=function(){var e=!(0'])),Object(k.a)(function(e){for(var t=1;t":">",'"':""","'":"'","/":"/","`":"`","=":"="},l=/\s*/,f=/\s+/,d=/\s*=/,h=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function m(e){this.string=e,this.tail=e,this.pos=0}function v(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function g(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},m.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var t,n,i,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var c,s,u,l=this,f=!1;l;){if(0"===a?c=this.renderPartial(o,t,n,i):"&"===a?c=this.unescapedValue(o,t):"name"===a?c=this.escapedValue(o,t):"text"===a&&(c=this.rawValue(o)),void 0!==c&&(s+=c);return s},g.prototype.renderSection=function(e,t,i,o){var a=this,c="",s=t.lookup(e[1]);if(s){if(n(s))for(var u=0,l=s.length;u"'`=\/]/g,(function(e){return u[e]}))},e.Scanner=m,e.Context=v,e.Writer=g,e},t&&"string"!=typeof t.nodeName?a(t):(i=[t],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o))},function(e,t,n){"use strict";n.r(t),n.d(t,"INTERNAL_TRACKING_PRICE_FIELD_NAME",(function(){return m})),n.d(t,"Tracking",(function(){return v}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1),p=n(15);var m="__TRACKING_PRICE__",v=function(){return function(e){return function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).clickSelector="[data-track]",e.productClickSelector='[data-track="productClick"]',e.recommendationClickSelector='[data-track="recommendationClick"]',e.checkoutClickSelector='[data-track="checkoutClick"]',e.cartClickSelector='[data-track="cartClick"]',e.dataCountSelector="[data-track-count]",e.tracking=h.a.communication.Tracking,e.getTrackingProductId=h.a.communication.Util.trackingHelper.getTrackingProductId,e.getPrice=h.a.communication.Util.trackingHelper.getPrice,e.getMasterArticleNumber=h.a.communication.Util.trackingHelper.getMasterArticleNumber,e.getUserId=h.a.communication.Util.trackingHelper.getUserId,e.getTitle=h.a.communication.Util.trackingHelper.getTitle,e}return a()(n,[{key:"appendCount",value:function(e,t){e.count=t.count||"1";var n=t.querySelector(this.dataCountSelector);if(n){var r=n.getAttribute("data-track-count");e.count=n[r]||n.value||"1"}}},{key:"appendChannel",value:function(e,t){t.channel?e.channel=t.channel:e.channel=h.a.communication.globalSearchParameter.channel}},{key:"appendInstoreAds",value:function(e,t){"true"===t.record.__FFInstoreAds__&&(e.instoreAds="true")}},{key:"appendCampaign",value:function(e,t){t.record.__FFCampaign__&&(e.campaign=t.record.__FFCampaign__)}},{key:"appendUserId",value:function(e){var t=this.getUserId();null!=t&&(e.userId=t)}},{key:"appendTitle",value:function(e,t){var n=this.getTitle(t);null!=n&&(e.title=n)}},{key:"appendPageSize",value:function(e,t,n){var r=null;if(n&&n.resultsPerPageList)for(var i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}(this._attributeToPropertyMap);try{for(n.s();!(e=n.n()).done;){var r=i()(e.value,2),o=r[0];r[1],t.push(o)}}catch(e){n.e(e)}finally{n.f()}return t.concat("use-url-parameter")}},{key:"createProperties",value:function(){var e=this;this._attributeToPropertyMap=new Map;var t=function(t){var n=e.properties[t];e._attributeToPropertyMap.set(n.attribute||t,t),Object.defineProperty(e.prototype,t,{get:function(){return n.get&&"function"==typeof n.get?n.get.bind(this)():n.group?y.a.communication[n.group][n.name||t]:this["__".concat(t)]},set:function(e){n.set&&"function"==typeof n.set?n.set.bind(this)(e):n.group?y.a.communication[n.group][n.name||t]=e:this["__".concat(t)]=e},configurable:!0,enumerable:!0})};for(var n in this.properties)t(n);this._propsCreated=!0}}]),n}(Object(_.a)([Object(k.ElementLog)(),Object(w.a)(P)],HTMLElement));function x(e){return!/\S/.test(e)}window.customElements.define(O.is,O)},function(e,t,n){"use strict";function r(e){return(e.selectedElements[0]||e.elements[0]||e).associatedFieldName||e.name}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"SliderOneTouch",(function(){return E}));var r,i=n(18),o=n.n(i),a=n(27),c=n.n(a),s=n(8),u=n.n(s),l=n(4),f=n.n(l),d=n(3),h=n.n(d),p=n(2),m=n.n(p),v=n(6),g=n.n(v),y=n(7),b=n.n(y),_=n(0),k=n.n(_),w=n(10),C=n(59);function S(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 P(e){for(var t=1;t
'])),R(this),j(this),n,o,o,2*n,2*o,I(this),I(this),R(this),1.5*n,o,i,n,n,n,A(this,!0),A(this,!0),n,A(this,!1),A(this,!1),2*n)}},{key:"firstUpdated",value:function(){m()(k()(n.prototype),"firstUpdated",this).call(this),window.addEventListener("mouseup",M(this)),window.addEventListener("touchend",M(this))}},{key:"update",value:function(e){m()(k()(n.prototype),"update",this).call(this,e),["selectedMinValue","selectedMaxValue","absoluteMinValue","absoluteMaxValue"].some((function(t){return e.has(t)}))&&(function(e){e.selectedMaxValue=Math.min(e.absoluteMaxValue,e.selectedMaxValue),e.selectedMinValue=Math.max(e.absoluteMinValue,e.selectedMinValue),e.selectedMinValue===e.selectedMaxValue&&(e.selectedMinValue===e.absoluteMinValue&&(e.selectedMaxValue+=e.stepSize),e.selectedMaxValue===e.absoluteMaxValue&&(e.selectedMinValue-=e.stepSize)),N(e)}(this),L(this))}},{key:"updateData",value:function(e){m()(k()(n.prototype),"updateData",this).call(this,e),L(this)}}],[{key:"is",get:function(){return"ff-slider-one-touch"}},{key:"properties",get:function(){return{ratio:{type:Number}}}}]),n}(C.a);function R(e){return function(){e.querySelector(O.Triangle).classList.add(x.Active),L(e)}}function j(e){return function(){e._listener||(e.querySelector(O.Triangle).classList.remove(x.Active),L(e))}}function L(e){var t=e.querySelector(O.LeftButton),n=e.querySelector(O.RightButton),r=e.querySelector(O.Line),i=e.querySelector(O.SelectedRange),o=e.querySelector(O.Triangle),a=r.offsetWidth,c=r.offsetLeft,s=a-t.offsetWidth-n.offsetWidth,u=a+t.offsetWidth,l=e.absoluteMaxValue-e.absoluteMinValue,f=Math.round((e.selectedMinValue-e.absoluteMinValue)/l*s+c),d=Math.round((e.selectedMaxValue-e.absoluteMinValue)/l*s+u);t.style.left="".concat(f,"px"),i.style.left="".concat(f,"px"),n.style.left="".concat(d,"px"),i.style.right="".concat(2*a-d-n.offsetWidth,"px");var h=f+t.offsetWidth;if(o.classList.contains(x.Active)){var p=50-(d-h)/s*50;o.style.left="".concat(d,"px"),o.style.top="".concat(p,"%")}else o.style.left="".concat((d-h)/2+h,"px"),o.style.top="50%"}function I(e){return{handleEvent:function(t){var n=e.querySelector(O.LeftButton),r=e.querySelector(O.RightButton),i=e.querySelector(O.Line),o=e.querySelector(O.Triangle);o.classList.contains(x.Active)||R(e)(),M(e)(),o.classList.add(x.NoTransition);var a=i.offsetWidth-n.offsetWidth-r.offsetWidth,s=e.absoluteMaxValue-e.absoluteMinValue,u=function(e){return e/a*s},l=T(t),f=c()(l,2),d=f[0],h=f[1],p=e.selectedMaxValue,m=e.selectedMaxValue-e.selectedMinValue;e._listener=function(t){var n=T(t),r=c()(n,2),i=r[0],o=r[1],a=i-d,s=(o-h)/e.ratio,l=u(a),f=u(s),v=p+l,g=v-m,y=Math.max(0,v-e.absoluteMaxValue),b=Math.max(0,e.absoluteMinValue-g),_=0window.innerWidth&&(e=window.innerWidth),e},getHeight:function(){var e=this.getDocEl().clientHeight;return window.innerHeight&&e>window.innerHeight&&(e=window.innerHeight),e},getScrollX:function(){return"number"==typeof window.pageXOffset?window.pageXOffset:this.getDocEl().scrollLeft},getScrollY:function(){return"number"==typeof window.pageYOffset?window.pageYOffset:this.getDocEl().scrollTop},getAll:function(){return{width:this.getWidth(),height:this.getHeight(),scrollX:this.getScrollX(),scrollY:this.getScrollY()}}},r.Util=((o=r.Util||{}).$=function(e,t){return t?t.root?t.shadowRoot.querySelector(e):t.querySelector(e):e.nodeType?e:""!==e?window.ShadowDOMPolyfill||Element.prototype.createShadowRoot?document.querySelector("body /deep/ #"+e):document.getElementById(e):void 0},o.intersectContainer=function(e,t){var n=parseInt(e.style.left.replace("px",""),10),r=parseInt(e.style.left.replace("px",""))+e.offsetWidth,i=parseInt(t.style.left.replace("px",""),10),a=parseInt(t.style.left.replace("px",""),10)+t.offsetWidth;return o.intersectValues(n,r,i,a)},o.intersectValues=function(e,t,n,r){return e<=r&&n<=t||r<=e&&t<=n},o.getCurrentStyle=function(e,t){var n,r,i="";return window.getComputedStyle?i=window.getComputedStyle(e,null)[t]:e.currentStyle&&(i=e.currentStyle[t],!/^\d+(px)?$/i.test(i)&&/^\d/.test(i)&&(n=e.style.left,r=e.runtimeStyle.left,e.runtimeStyle.left=e.currentStyle.left,e.style.left=i||0,i=e.style.pixelLeft+"px",e.style.left=n,e.runtimeStyle.left=r)),i},o.contained=function(e,t){if(!e)return!1;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.hash=function(){return Math.floor(65536*(1+Math.random())).toString(32).substring(1)},o),r.Draggable=function(){var e=r.Util,t=r.Event,n=r.Viewport;function i(n,r,o,a){var c,s;if("string"==typeof n?c=e.$(n):"nodeType"in n?c=n:console.log("Cant process identifierer "+n),!c)throw new Error("new DYN_WEB.Draggable: No element with the specified id found.");this.id=n;var u=parseInt(e.getCurrentStyle(c,"left"),10),l=parseInt(e.getCurrentStyle(c,"top"),10);if(o&&(this.minX="number"==typeof o.minX?o.minX:void 0,this.maxX="number"==typeof o.maxX?o.maxX:void 0,this.minY="number"==typeof o.minY?o.minY:void 0,this.maxY="number"==typeof o.maxY?o.maxY:void 0,this.on_drag_start="function"==typeof o.on_drag_start?o.on_drag_start:this.on_drag_start,this.on_drag="function"==typeof o.on_drag?o.on_drag:this.on_drag,this.on_drag_end="function"==typeof o.on_drag_end?o.on_drag_end:this.on_drag_end),a?(u=this.maxX,this.slider2=e.$(n)):(u=isNaN(u)?0:u,this.slider1=e.$(n)),l=isNaN(l)?0:l,i.shiftTo(c,u,l),r){if(!(s=r.nodeType?r:e.$(r)))throw new Error("new DYN_WEB.Draggable: No element with the specified handleId found.");if(!e.contained(s,c))throw new Error("new DYN_WEB.Draggable: No element with id "+r+" found inside "+n+".")}else s=c;t.add(s,"mousedown",i.start.bind(this)),t.add(s,"touchstart",i.start.bind(this))}return i.prototype={on_drag_start:function(){},on_drag:function(){},on_drag_end:function(){}},i.zOrder=1e3,i.start=function(e){var r,o,a,c,s,u=0;e=t.DOMit(e);var l=t.getTarget(e);do{if(l.id===this.slider1.id){r=this.slider1;break}if(l.id===this.slider2.id){r=this.slider2;break}u++}while(u<10&&(l=l.parentNode));if(!r)throw new Error("Unable to find Draggable element onmousedown.");r.style.zIndex=i.zOrder++,o=e.clientX+n.getScrollX(),a=e.clientY+n.getScrollY(),c=parseInt(r.style.left,10)||0,s=parseInt(r.style.top,10)||0,this.dx=o-c,this.dy=a-s,this.downX=o,this.downY=a,this.on_drag_start(c,s),this.drag=i.drag.bind(this),this.end=i.end.bind(this),t.add(document,"mousemove",this.drag),t.add(document,"touchmove",this.drag),t.add(document,"mouseup",this.end),t.add(document,"touchend",this.end),e.preventDefault(),e.stopPropagation()},i.drag=function(e){e=t.DOMit(e);var r=this,o=this.id,a=e.clientX+n.getScrollX()-r.dx,c=e.clientY+n.getScrollY()-r.dy;a=void 0!==r.minX?Math.max(r.minX,a):a,a=void 0!==r.maxX?Math.min(r.maxX,a):a,c=void 0!==r.minY?Math.max(r.minY,c):c,c=void 0!==r.maxY?Math.min(r.maxY,c):c,("string"==typeof r.id?r.id===this.slider1.id:r.id.id===this.slider1.id)?(r.maxX=parseInt(this.slider2.style.left.replace("px",""),10),r.minX=0):("string"==typeof r.id?r.id===this.slider2.id:r.id.id===this.slider2.id)&&(r.minX=parseInt(this.slider1.style.left.replace("px",""),10),r.maxX=r.origMaxX),i.shiftTo(o,a,c),r.on_drag(a,c),e.preventDefault()},i.end=function(){var e,n,r=this.id;t.remove(document,"mousemove",this.drag),t.remove(document,"touchmove",this.drag),t.remove(document,"mouseup",this.end),t.remove(document,"touchend",this.end),r&&(e=parseInt(r.style.left,10),n=parseInt(r.style.top,10),this.on_drag_end(e,n))},i.setup=function(){for(var e,t=0,n=arguments.length;t
','
',"
"])),"slider1-".concat(this._UID),this._sliderContent1,"slider2-".concat(this._UID),this._sliderContent2)}},{key:"connectedCallback",value:function(){var e=this;function t(e){var t='
');return Object(S.a)(t)}p()(_()(n.prototype),"connectedCallback",this).call(this),this._sliderContent1=this.querySelector('[slot="slider1"]')||t("slider1"),this._sliderContent2=this.querySelector('[slot="slider2"]')||t("slider2"),this.resizeHandler=window.addEventListener("resize",(function(){return e.renderSlider()})),this.renderSliderKey||(this.renderSliderKey=setInterval((function(){return e.renderSlider()}),250))}},{key:"disconnectedCallback",value:function(){p()(_()(n.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this.resizeHandler),this.renderSliderKey&&(clearInterval(this.renderSliderKey),this.renderSliderKey=void 0)}},{key:"update",value:function(e){p()(_()(n.prototype),"update",this).call(this,e),e.has("selectedMinValue")&&this._selectedMinChanged(),e.has("selectedMaxValue")&&this._selectedMaxChanged(e.get("selectedMaxValue")),(e.has("absoluteMaxValue")||e.has("absoluteMinValue"))&&M(this)}},{key:"init",value:function(){var e,t,n,r;this._slider1=new L.Slider(this.querySelector(".ffw-slider1"),this,"h"),this._slider1.on_move=(e=this,function(t){return N(e,Math.floor(e._getCurrentValue(t)),e.selectedMaxValue,1)}),this._slider1.on_move_end=(t=this,function(e){t.selectedMinValue=t._getCurrentValue(e),D(t)}),this._slider2=new L.Slider(this.querySelector(".ffw-slider2"),this,"h",!0),this._slider2.on_move=(n=this,function(e){var t=(e=n._getCurrentValue(e))=this.selectedMaxValue&&(this.selectedMinValue=this.selectedMaxValue>this.absoluteMinValue?Math.ceil(this.selectedMaxValue)-1:this.absoluteMinValue),M(this),this.dispatchEvent(F(this.selectedMinValue,this.selectedMaxValue,1))}},{key:"_selectedMaxChanged",value:function(e){isNaN(this.selectedMaxValue)||this.selectedMaxValue>Math.ceil(this.absoluteMaxValue)?this.selectedMaxValue=Math.ceil(this.absoluteMaxValue)||e:this.selectedMaxValue<=this.selectedMinValue&&(this.selectedMaxValue=Math.floor(this.selectedMinValue)+1),M(this),this.dispatchEvent(F(this.selectedMinValue,this.selectedMaxValue,2))}}],[{key:"is",get:function(){return"ff-slider"}},{key:"properties",get:function(){return{submitOnRelease:{type:Boolean,attribute:"submit-on-release"}}}}]),n}(I.a);function M(e){e._forceUpdate&&(e._forceUpdate=!1,!e.isInitialized&&e.init(),e.renderSlider())}function N(e,t,n,r){e.dragging=!0,e.dispatchEvent(new CustomEvent("slider-moved",{detail:{selectedMinValue:t,selectedMaxValue:n,slider:r}}))}function D(e){e.dragging=!1,"false"!==e.getAttribute("submit-on-release")&&e.submit()}function F(e,t,n){return new CustomEvent("value-changed",{detail:{selectedMinValue:e,selectedMaxValue:t,slider:n}})}window.customElements.define(T.is,T);var B,V,U=n(50),q=n(28);function z(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}var W=["".concat(T.is,", ").concat(U.SliderOneTouch.is),"input[data-control='1']","input[data-control='2']"],H=Object(S.e)(B||(B=s()(['
']))),K=function(e){v()(n,e);var t=function(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 n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).disableInputFields=!1,e.submitOnInput=!1,e.unit=void 0,e.group=void 0,e.decimalPlaces=void 0,e.inputMin=void 0,e.inputMax=void 0,e.slider=void 0,e._submitDelay=500,e._content=void 0,e._isSubmitScheduled=!1,e._submitInputMinDebouncerJob=void 0,e._submitInputMaxDebouncerJob=void 0,e}return d()(n,[{key:"render",value:function(){return Object(k.b)(V||(V=s()(['
',"
"])),this._content)}},{key:"initDefaultTemplates",value:function(){var e;this._content||(e=Object(C.d)(this)?(this._content=Object(S.a)(H),this._content):(this._content=Array.from(this.childNodes),this),this.slider=e.querySelector(W[0]),this.inputMin=e.querySelector(W[1]),this.inputMax=e.querySelector(W[2]),function(e,t){var n=W.filter((function(e){return!t.querySelector(e)}));if(0!==n.length)throw Error("".concat(K.is,' does not have all required templates.\nYou must provide a template for each of the following selectors: "').concat(W.join('", "'),'".\nMissing templates are: "').concat(n.join('", "'),'".\nAlternatively, you may leave ').concat(K.is," empty. In this case, default templates will be used."))}(0,e),this.slider.addEventListener("slider-moved",this._valueChanged.bind(this)),this.slider.addEventListener("value-changed",this._valueChanged.bind(this)))}},{key:"update",value:function(e){e.has("group")&&this._groupChanged(),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){this._submitInputMinDebouncerJob&&this._submitInputMinDebouncerJob.cancel(),this._submitInputMaxDebouncerJob&&this._submitInputMaxDebouncerJob.cancel(),p()(_()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"init",value:function(){var e=this;this.inputMin.value=this.addUnit(this.slider.selectedMinValue),this.inputMax.value=this.addUnit(this.slider.selectedMaxValue),this.disableInputFields?this._disableFocusInput():this._initInputSubmit(),Promise.resolve().then((function(){return e.style.opacity="1"}))}},{key:"submit",value:function(){this._submitInputMax(),this._submitInputMin()}},{key:"_groupChanged",value:function(){var e=this;this.group&&setTimeout((function(){e._updateInput(e.inputMax,e.slider.selectedMaxValue),e._updateInput(e.inputMin,e.slider.selectedMinValue)}),1)}},{key:"_updateInput",value:function(e,t){if(e){this.slider&&void 0!==t&&(e.value=this.addUnit(t));for(var n=e.attributes,r=0;r','
'," ","
"])),(function(){return e.toggle(!0)}),Object(C.e)(this._groupCaptionTemplate,{group:this.group}),this.opened,this._sliderControl,this._removeFilterContainer):Object(k.b)(Y||(Y=s()(['
'])),this.opened)}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this.init()}},{key:"firstUpdated",value:function(e){p()(_()(n.prototype),"firstUpdated",this).call(this,e),this._wrapper=this.querySelector(this.selectorWrapper),this.opened?this.show():this._hide(this._wrapper,!1)}},{key:"init",value:function(){var e=this;this._initialized||(this._initialized=!0,this._rawOuterHtml=this.outerHTML,this._groupCaptionTemplate=this._initGroupCaption(),this._sliderControl=this.querySelector(K.is)||document.createElement(K.is),this._sliderControl.initDefaultTemplates(),this._updateSliderControls(),this._removeFilterContainer=this._initRemoveFilter(),this.updateComplete.then((function(){var t=e.querySelector("".concat(T.is,", ").concat(U.SliderOneTouch.is));Q(e,t),t.addEventListener("value-changed",(function(){Q(e,t)}))})))}},{key:"_initGroupCaption",value:function(){return this.querySelector(this.selectorGroupCaptionContainer)||Object(S.a)('
{{group.name}}
')}},{key:"_updateSliderControls",value:function(){var e=this;this.querySelectorAll(K.is).forEach((function(t){return t.group=e.group})),this._sliderControl&&(this._sliderControl.group=this.group)}},{key:"_hideGroup",value:function(){this.style.display="none",this.offsetHeight,this.style.opacity="0"}},{key:"update",value:function(e){e.has("group")&&this._asnGroupChanged(),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"_processAndRenderGroup",value:function(e){var t=this;this.forGroup=Object(J.a)(e);var r=e.elements[0];if("number"!=typeof r.absoluteMinValue||"number"!=typeof r.absoluteMaxValue)return this.warn("[".concat(n.is,"]: absoluteMinValue and absoluteMaxValue must be numbers but are:"),r.absoluteMinValue,r.absoluteMaxValue),void this._hideGroup();if(r.absoluteMinValue!==r.absoluteMaxValue){r.selectedMinValue=Math.max(r.absoluteMinValue,r.selectedMinValue),r.selectedMaxValue=Math.min(r.absoluteMaxValue,r.selectedMaxValue),this._updateSliderControls();try{Promise.resolve().then((function(){var n=t.querySelector("".concat(T.is,", ").concat(U.SliderOneTouch.is));n&&(n.unit=e.unit,n.updateComplete.then((function(){return n.updateData(r)})))})),this.style.display="",this.offsetHeight,function(e){if(!e||!e.elements[0])return!1;var t=e.elements[0],n=t.selectedMinValue,r=t.selectedMaxValue,i=t.absoluteMinValue;return r!==t.absoluteMaxValue||n!==i}(e)&&!0!==this.opened&&!this.disableAutoExpand&&this.updateComplete.then((function(){return t.show()})),this.dispatchEvent(new CustomEvent("records-updated",{bubbles:!0,composed:!0})),this.style.opacity="1",this.offsetHeight}catch(e){this.error(e)}}else this._hideGroup()}},{key:"_asnGroupChanged",value:function(){this.group?this._processAndRenderGroup(this.group):(this.group=w.a.communication.AsnGroup,this._hideGroup())}},{key:"_initRemoveFilter",value:function(){var e=this,t=this.querySelector(this.selectRemoveFilterContainer)||Object(S.a)('
Reset Filter
');return t.addEventListener("click",(function(){w.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:e.group.name,removeAll:!0})})),t}},{key:"toggle",value:function(e){var t=this;this.collapsible&&(this._wrapper&&this._wrapper.hasAttribute("opened")?this._toggle(this._wrapper,e,(function(){return t.opened=!1})):(this._toggle(this._wrapper,e),this.opened=!0))}},{key:"show",value:function(e){this.collapsible&&(this._show(this._wrapper,e),this.opened=!0)}},{key:"hide",value:function(e){var t=this;this.collapsible&&!1!==this.opened&&(!0!==e?(this._hide(this._wrapper,e),this.opened=!1):this._hide(this._wrapper,e,(function(){return t.opened=!1})))}},{key:"clone",value:function(){return Object(S.a)(this._rawOuterHtml)}}],[{key:"is",get:function(){return"ff-asn-group-slider"}},{key:"properties",get:function(){return{collapsible:{type:C.c},opened:{type:Boolean,reflect:!0},forGroup:{type:String,reflect:!0,attribute:"for-group"},filterStyle:{type:String,reflect:!0,attribute:"filter-style"},disableAutoExpand:{type:Boolean,reflect:!0,attribute:"disable-auto-expand"},group:{type:Object,attribute:!1}}}}]),n}(Object(P.a)([Object(X.ElementLog)(),Object(Z.CollapseElement)()],C.a));function Q(e,t){if(e._removeFilterContainer){var n=e._removeFilterContainer.style.display,r=t.selectedMinValue>t.absoluteMinValue||t.selectedMaxValue=this.absoluteMaxValue)m.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:t.group.name,removeAll:!0});else{if((n=this).selectedMinValue=Math.round(n.selectedMinValue/n.stepSize)*n.stepSize,n.selectedMaxValue=Math.round(n.selectedMaxValue/n.stepSize)*n.stepSize,Object(y.a)())o.filter=function(){var e=0r.left)&&i.push(t)}));var o=null,a=1/0,c=1/0;i.forEach((function(e){var t=e.getBoundingClientRect(),n=Math.abs(t.left-r.left),i=Math.abs(t.top-r.top);o?i.ffw-menu-items{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[layout=horizontal]>.ffw-menu-items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}ff-navigation .ffw-navigation-label{display:none}ff-navigation #navigation-menu{display:none;border-bottom:1px solid #000;cursor:pointer;padding:5px;background-color:#b9ecff;-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%}ff-navigation[mobile=true]>.ffw-navigation-label{display:block}ff-navigation[mobile=true]>#navigation-menu:checked+label+.ffw-menu-items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important}ff-navigation[mobile=true]>.ffw-menu-items{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation[mobile=true]{-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;width:100%}ff-navigation-item{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}ff-navigation-item .ffw-item-caption{width:100%}ff-navigation-item .ffw-container-hidden{display:none!important}ff-navigation-item .ffw-item-container{display:none;-webkit-transition:all .1s linear;transition:all .1s linear;-webkit-transition-delay:.3s;transition-delay:.3s;position:absolute;z-index:1;background-color:#fff}ff-navigation-item[direction=down][flyout=true]>.ffw-item-container{top:100%}ff-navigation-item[direction=down]>.ffw-item-container{top:100%;left:0}ff-navigation-item[flyout=false][selected]>.ffw-item-container{top:0;z-index:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false]>.ffw-item-container{display:none}ff-navigation-item[flyout=false][direction=down][selected]>.ffw-item-container{top:0}ff-navigation-item[flyout=false]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}ff-navigation-item[flyout=false][selected] .ffw-navigation-link{display:none!important;top:0}ff-navigation-item[flyout=false] .ffw-navigation-link{display:none!important}ff-navigation-item[flyout=true][direction=right]>.ffw-item-container{top:0;left:100%}ff-navigation-item[flyout=true][direction=left]>.ffw-item-container{top:0;right:100%}ff-navigation-item[flyout=true]:hover>.ffw-item-container:not(:empty){display:inline-block}ff-asn{outline:none;transition:opacity .6s;display:block}ff-asn[align=horizontal]{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}ff-asn-group{opacity:0;transition:opacity .4s;outline:none;display:block;min-width:180px;max-width:220px}ff-asn-group[align=horizontal] #wrapper{position:absolute;width:100%}ff-asn-group .ffw-asn-group-container{position:relative}ff-asn-group .ffw-wrapper{position:relative;transition-duration:.35s}ff-asn-group-element,ff-asn-group-slider{display:block;outline:none}ff-asn-group-slider{opacity:0;transition:opacity .4s;min-width:180px;max-width:220px}ff-asn[align=horizontal] ff-asn-group-slider .ffw-wrapper{position:absolute;width:100%}ff-asn-group-slider .ffw-container{position:relative}ff-asn-group-slider .ffw-wrapper{position:relative;transition-duration:.4s}ff-slider-control{display:block;opacity:0;transition:opacity .8s;padding:10px 0}ff-slider-control .ffw-sliderSection{margin-top:10px}ff-slider{height:5px;background-color:#336;margin:5px auto;display:block;opacity:0;transition:opacity .8s}ff-slider .ffw-sliderWrapper{min-width:1px}ff-slider [slot^=slider]{height:10px;width:10px;border:1px solid #000;cursor:pointer}ff-compare{display:block}ff-asn-remove-all-filter{display:inline-block}ff-breadcrumb-trail{display:inline}ff-breadcrumb-trail-item{transition:opacity .8s;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ff-search-feedback{position:absolute;top:20px}ff-search-feedback[align=left]{left:0}ff-search-feedback[align=right]{right:0}ff-search-feedback[align=left] .ffw-content{transform:translate(0)}ff-search-feedback[align=left] .ffw-caption{transform:translate(100%)}ff-search-feedback .ffw-noTransition{transition:0s!important}ff-search-feedback .ffw-caption{position:absolute;right:0;transition:transform .3s;cursor:pointer}ff-search-feedback .ffw-content{position:absolute;transition:transform .3s;transform:translate(100%);right:0;text-align:left}ff-search-feedback .ffw-transformZero{transform:translate(0)!important}ff-search-feedback .ffw-transformX{transform:translate(100%)!important}ff-tag-cloud{display:block;max-width:600px}ff-tag-cloud .ffw-tagCloudContainer{display:flex;justify-content:space-around;flex-wrap:wrap}ff-tag-cloud .ffw-tagCloudLink{padding:2px}ff-loading-spinner{display:block}ff-loading-spinner .ffw-path{stroke-dasharray:187;stroke-dashoffset:0;transform-origin:center;animation:ffw-spinner-dash 1.3s linear infinite}ff-loading-spinner .ffw-spinner{animation:ffw-spinner-rotation 1.3s linear infinite}@keyframes ffw-spinner-rotation{0%{transform:rotate(0deg)}to{transform:rotate(270deg)}}@keyframes ffw-spinner-dash{0%{stroke-dashoffset:187}50%{stroke-dashoffset:44.5;transform:rotate(135deg)}to{stroke-dashoffset:187;transform:rotate(450deg)}}ff-slider-one-touch{display:block;z-index:-1001;pointer-events:none}ff-slider-one-touch .ffw-slider-container{top:0;position:relative;pointer-events:none}ff-slider-one-touch .ffw-triangle{pointer-events:auto;user-select:none;position:absolute;z-index:1000;opacity:.5;cursor:pointer;touch-action:none;border-style:solid;border-color:transparent transparent #89bdff;top:50%;transition:top .2s ease-out,left .2s ease-out,transform .2s ease-out;transform:translate(-50%,-50%) scale(.25)}ff-slider-one-touch .ffw-triangle.ffw-active{transition:top .2s ease-in,left .2s ease-in,transform .2s ease-in;transform:translateX(-100%) scale(1)}ff-slider-one-touch .ffw-triangle.ffw-no-transition{transition:none}ff-slider-one-touch .ffw-line{pointer-events:auto;z-index:999;top:50%;position:absolute;height:1px;transform:translateY(-50%);background-color:#000;background-clip:padding-box;border-top:25px solid transparent;border-bottom:25px solid transparent}ff-slider-one-touch .ffw-selected-range{z-index:1000;top:50%;position:absolute;height:2px;transform:translateY(-50%);background-color:#003ccb}ff-slider-one-touch .ffw-slider-button{width:5px;height:5px;border:1px solid #000;position:absolute;top:50%;z-index:1003;pointer-events:auto;cursor:pointer;touch-action:none}ff-slider-one-touch .ffw-slider-button-left,ff-slider-one-touch .ffw-slider-button-right{transform:translateY(-50%)}.ffw-hidden{display:none!important}"},function(e,t,n){var r,i,o,a={},c=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=(o={},function(e,t){if("function"==typeof e)return e();if(void 0===o[e]){var n=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}o[e]=n}return o[e]}),u=null,l=0,f=[],d=n(76);function h(e,t){for(var n=0;n',""])),t?Object(P.renderPPPItem)(this.ffPPPTemplate,t):"",Object(b.a)({"ffw-ppp-dropdown-closed":!this.opened}),Object(_.a)([this.items,this.showSelected],(function(){return Object(k.a)(e.items,(function(e){return e.value}),(function(t){return"false"===e.showSelected&&t.selected?"":Object(P.renderPPPItem)(e.ffPPPTemplate,t)}))})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),!this.getAttribute("tabindex")&&this.setAttribute("tabindex","1"),this.ffPPPTemplate=Object(P.getTemplate)(this),this.addEventListener("click",this.toggle.bind(this)),this.addEventListener("blur",(e=this,function(){"true"===e.collapseOnblur&&setTimeout((function(){return e.hide()}),16)}))}},{key:"update",value:function(e){f()(g()(n.prototype),"update",this).call(this,e),e.has("items")&&function(e){if(0===e.items.length)return e.hideSelf();e.haveItemsBeenInitialised?e.hide():e.haveItemsBeenInitialised=!0,e.showSelf()}(this)}},{key:"firstUpdated",value:function(){this.dropdownContainer=this.getElementsByClassName("ffw-ppp-dropdown-container")[0]}},{key:"updated",value:function(e){e.has("items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}},{key:"show",value:function(){this.opened||this.dropdownContainer.__transitionActive__||(this.opened=!0,this._show(this.dropdownContainer,!0))}},{key:"hide",value:function(){var e=this;this.opened&&!this.dropdownContainer.__transitionActive__&&this._hide(this.dropdownContainer,!0,(function(){return e.opened=!1}))}},{key:"toggle",value:function(e){!1!==e&&this.opened?this.hide():this.show()}},{key:"_subscriptionCallback",value:function(e){this.items=e||[]}}],[{key:"is",get:function(){return"ff-products-per-page-dropdown"}},{key:"properties",get:function(){return{items:{type:Array,attribute:!1},opened:{type:Boolean,reflect:!0},showSelected:{type:String,attribute:"show-selected"},collapseOnblur:{type:String,attribute:"collapse-onblur"}}}}]),n}(Object(C.a)([Object(O.CollapseElement)(),Object(x.a)(x.b.ppp)],S.a));window.customElements.define(E.is,E)},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductsPerPageSelect",(function(){return C}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(23),_=n(5),k=n(9),w=n(11);var C=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).options=[],e.select=void 0,e.optionTemplate=void 0,e.subscriptionKey=void 0,e}return u()(n,[{key:"render",value:function(){var e=this;return Object(y.b)(r||(r=o()(['"])),S,Object(b.a)(this.options,(function(e){return e.value}),(function(t){return Object(_.e)(e.optionTemplate,t)})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.optionTemplate=(e=this.querySelector("[data-template]"))?(e.removeAttribute("data-template"),e.cloneNode(!0)):""}},{key:"firstUpdated",value:function(){this.select=this.querySelector("select")}},{key:"update",value:function(e){f()(g()(n.prototype),"update",this).call(this,e),e.has("options")&&(0===this.options.length?this.hideSelf():this.showSelf())}},{key:"updated",value:function(e){e.has("options")&&(this.select.selectedIndex=function(e){for(var t=0;t{{element.name}}':this.querySelector(D)?this._template=this.innerHTML.trim():(this.error("An error occurred: template HTML contains no elements marked as ".concat(D,".")),this.hideSelf())),this.addEventListener("click",B)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",B),g()(C()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"update",value:function(e){var t=this;this._selectedFilters&&0!==this._selectedFilters.length?this.showSelf():this.hideSelf(),e.has("blacklist")&&(this._blacklist=this.blacklist?this.blacklist.split(","):[]),e.has("whitelist")&&(this._whitelist=this.whitelist?this.whitelist.split(","):[]),e.has("order")&&!1===Object.keys(N).some((function(e){return N[e]===t.order}))&&(this.hideSelf(),this.error("Invalid 'order' value: '".concat(this.order,"'."))),this.blacklist&&this.whitelist&&(this.hideSelf(),this.error("'blacklist' and 'whitelist' are mutually exclusive, but both properties are set.")),(e.has("order")||e.has("blacklist")||e.has("whitelist"))&&(this._selectedFilters=U(this.order,this)),g()(C()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;g()(C()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"_subscriptionCallback",value:function(e){this._selectedFilters=V(this,this.order,this._userSelectionOrder,e)}}],[{key:"is",get:function(){return"ff-filter-cloud"}},{key:"properties",get:function(){return{order:{type:String},blacklist:{type:String},whitelist:{type:String},_selectedFilters:{type:Array,attribute:!1}}}}]),n}(Object(E.a)([Object(R.ElementLog)(),Object(j.a)(j.b.asn)],L.a));function B(e){var t=e.item;t&&P.a.communication.EventAggregator.addFFEvent({type:"filter",groupName:t.group.name,filterName:t.element.name,clusterLevel:t.element.clusterLevel})}window.customElements.define(F.is,F);var V=function(e,t,n,r){var i=q(z(r)),o=n.filter((function(e){return W(i,e)})),a=i.filter((function(e){return!W(o,e)}));return e._factFinderOrder=i,e._userSelectionOrder=o.concat(a),U(t,e)},U=function(e,t){switch(e){case N.userSelection:return K(t._userSelectionOrder,t._blacklist,t._whitelist);case N.alphabetical:return K(t._factFinderOrder,t._blacklist,t._whitelist).sort((function(e,t){return e.element.name.localeCompare(t.element.name)}));default:return K(t._factFinderOrder,t._blacklist,t._whitelist)}},q=function(e){return e.reduce((function(e,t){return 0!==e.filter((function(e){return e.element.name===t.element.name&&e.group.name===t.group.name})).length?e:[].concat(u()(e),[t])}),[])},z=function(e){return e.reduce((function(e,t){return e.concat([].concat(u()(t.selectedElements),u()(t.elements.filter((function(e){return e.selected})))).map((function(e){return{group:t,element:e}})))}),[])},W=function(e,t){var n=t.element;return e.some((function(e){return e.element.name===n.name}))},H=function(e){return function(t){var n=Object(x.a)(e);return n.item=t,n.innerHTML=Object(O.a)(n.innerHTML,M(M({},t),{},{element:Object(I.a)(t.element,"name")})),n.addEventListener("click",(function(e){e.item=t})),n}},K=function(e,t,n){var r=P.b.getFixedFilters();return e.filter((function(e){var i=t.indexOf(e.group.name)<0,o=0===n.length||0<=n.indexOf(e.group.name),a=!e.element.implicitSelection,c=Object(A.a)(r)(e.element);return i&&o&&a&&c}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Recommendation",(function(){return k}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(9),g=n(5),y=n(17),b=n(14),_=n(35);var k=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).maxResults=4,e.subscribe=!0,e.usePerso=!1,e._topic="".concat(_.a.recommendation,":").concat(m.a.common.randomString(10)),e._subscriptionKey=void 0,e}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this.subscribe&&!this._subscriptionKey&&(this._subscriptionKey=m.a.communication.ResultDispatcher.subscribe(this._topic,this._handleRecommendations,this));var e=this.querySelector(y.RecordList.is);e&&(e.setAttribute("subscribe","false"),e.__isRecommendation=!0)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(m.a.communication.ResultDispatcher.unsubscribe(this._topic,this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"update",value:function(e){e.has("recordId")&&this.getRecommendations(),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"getRecommendations",value:function(){if(this.recordId){var e={type:this._topic,id:this.recordId.split(","),maxResults:this.maxResults};this.usePerso&&(e.usePerso="true"),m.a.communication.EventAggregator.addFFEvent(e)}else this.debug("No record id for recommendations specified."),this.hideSelf()}},{key:"_handleRecommendations",value:function(e){var t=this;if(e&&0\n

unknown

\n \n {{{name}}}\n \n '),u=c.length-1;0<=u;u--){var l=c[u],f=l.getAttribute("data-container");(!f||n.indexOf(f)<0)&&l.parentNode.removeChild(l)}n.forEach((function(n){var r=t[n],i=o.querySelector("".concat(C.a.is,'[type="').concat(n,'"]'));if(!i){if(!e._showUnknownSuggestions)return;var a=Object(O.a)(s.outerHTML.replace(/\bunknown\b/g,n)),c=o.querySelector(e._unknownSuggestionsSectionId?"#".concat(e._unknownSuggestionsSectionId):"section");if(!c)return;c.appendChild(a),i=a.querySelector("".concat(C.a.is)),e._itemTemplates[n]=i.outerHTML}r.forEach((function(t){var r=Object(O.a)(e._itemTemplates[n]);r._template=r.innerHTML,r.type=n,r.suggestion=t,i.parentNode.insertBefore(r,i)})),i.parentNode.removeChild(i)}));var d=o.querySelectorAll("section");return Array.from(d).forEach((function(e){0===e.querySelectorAll(C.a.is).length&&e.setAttribute("hidden","")})),Object(b.g)(r||(r=a()(['
',"
"])),this.layout,Array.from(o.children).map((function(e){return Object(b.g)(i||(i=a()(["",""])),e)})))}},{key:"connectedCallback",value:function(){var e,t=this;d()(y()(n.prototype),"connectedCallback",this).call(this),this._initTemplates(),this._suggestSubscriptionKey=this._suggestSubscriptionKey||_.a.communication.ResultDispatcher.subscribe(P.a.suggest,(function(e,n){var r=_.a.communication.globalElementValues.currentFFSearchBoxValue;n&&n.query!==r||(t.suggestItems=e||[],t._originSearchbox=null==n?void 0:n.__searchbox)})),this._hideSuggestSubscriptionKey=this._hideSuggestSubscriptionKey||_.a.communication.ResultDispatcher.subscribe("suggest:hide",(function(){t.hideSelf(),t._originSearchbox=void 0})),this.addEventListener("item-clicked",this._itemClicked),this._globalClickListener=(e=this,function(t){var n;e.hideOnblur&&(e.contains(t.target)||null!==(n=e._originSearchbox)&&void 0!==n&&n.contains(t.target)||(e.hideSelf(),e._originSearchbox=void 0))}),document.addEventListener("click",this._globalClickListener)}},{key:"update",value:function(e){this.suggestItems&&0!==this.suggestItems.length?this.showSelf():this.hideSelf(),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;d()(y()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(C.a.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}},{key:"disconnectedCallback",value:function(){this.removeEventListener("item-clicked",this._itemClicked),document.removeEventListener("click",this._globalClickListener),this._suggestSubscriptionKey&&(_.a.communication.ResultDispatcher.unsubscribe(P.a.suggest,this._suggestSubscriptionKey),this._suggestSubscriptionKey=void 0),this._hideSuggestSubscriptionKey&&(_.a.communication.ResultDispatcher.unsubscribe("suggest:hide",this._hideSuggestSubscriptionKey),this._hideSuggestSubscriptionKey=void 0),d()(y()(n.prototype),"disconnectedCallback",this).call(this)}},{key:"_itemClicked",value:function(e){this.hideSelf(),this.dispatchEvent(new CustomEvent("suggest-item-clicked",{detail:e.detail,bubbles:!0}))}},{key:"_initTemplates",value:function(){var e=this,t=document.createElement("div");t.innerHTML=this.innerHTML;for(var n=t.childNodes.length-1;0<=n;n--){var r=t.childNodes[n];("SECTION"!==r.nodeName||!r.querySelector(C.a.is)&&r.id!==this._unknownSuggestionsSectionId)&&r.parentNode.removeChild(r)}this._template=t.innerHTML,t.querySelectorAll(C.a.is).forEach((function(t){var n=t.getAttribute("type");n&&!e._itemTemplates[n]&&(e._itemTemplates[n]=t.outerHTML)}))}}],[{key:"is",get:function(){return"ff-suggest"}},{key:"properties",get:function(){return{layout:{type:String},suggestItems:{type:Array,attribute:!1},hideOnblur:{type:S.c,attribute:"hide-onblur"},_showUnknownSuggestions:{type:S.c,attribute:"show-unknown-suggestions"},_unknownSuggestionsSectionId:{type:String,attribute:"unknown-suggestions-section-id"}}}}]),n}(Object(k.a)([Object(w.ElementLog)()],S.a));window.customElements.define(E.is,E);var R=function(e){var t={};return e.forEach((function(e){t[e.type]=t[e.type]||[],t[e.type].push(e)})),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"SortBoxSelect",(function(){return C}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(1),_=n(5),k=n(9),w=n(11);var C=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this))._selectAttributes=[],e._itemTemplate=void 0,e.items=[],e}return u()(n,[{key:"render",value:function(){var e=this;return Object(y.b)(r||(r=o()(['"])),S,this.items.map((function(t){return Object(_.e)(e._itemTemplate,t)})))}},{key:"connectedCallback",value:function(){var e;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._selectAttributes=(e=this.querySelector("select"))?e.attributes:[],this._itemTemplate=this.querySelector("option")||""}},{key:"firstUpdated",value:function(){var e=this.querySelector("select");Array.prototype.forEach.call(this._selectAttributes,(function(t){var n=t.name,r=t.value;return e.setAttribute(n,r)}))}},{key:"updated",value:function(e){e.has("items")&&(0===this.items.length?this.hideSelf():(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(var t=0;t',""])),this.renderDropdownSelected(),Object(P.a)({"ffw-paging-dropdown-closed":!this.opened}),Object(O.a)([this.items,this.showSelected],(function(){return Object(x.a)(e.items?e.items.pageLinks:[],(function(e){return e.caption}),(function(t){return e.renderDropdownItem(t)}))})))}},{key:"renderDropdownSelected",value:function(){return this.items?this.renderLink(E.b.esPolyfills.find((function(e){return e.currentPage}))(this.items.pageLinks)):Object(C.b)(i||(i=s()([""])))}},{key:"renderDropdownItem",value:function(e){return!e.currentPage||this.showSelected?this.renderLink(e):Object(C.b)(o||(o=s()([""])))}},{key:"renderLink",value:function(e){var t=this._itemTemplate.clone();return t.pagingItem=e,t}},{key:"connectedCallback",value:function(){var e;v()(w()(n.prototype),"connectedCallback",this).call(this),this._itemTemplate||(this._itemTemplate=this.querySelector(L.a.is)||(e=document.createElement("div"),Object(S.i)(Object(C.b)(a||(a=s()(["{{caption}}"]))),e),e.firstElementChild)),this.getAttribute("tabindex")||this.setAttribute("tabindex","999"),this.hideSelf()}},{key:"update",value:function(e){e.has("items")&&this._itemsChanged(),v()(w()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;v()(w()(n.prototype),"updated",this).call(this),(e.has("items")||e.has("showSelected"))&&Promise.all(Array.from(this.querySelectorAll("".concat(L.a.is))).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"show",value:function(){var e=this.getDropdown();this.opened=!0,this._show(e,!0)}},{key:"hide",value:function(){var e=this,t=this.getDropdown();t&&this._hide(t,!0,(function(){e.opened=!1}))}},{key:"toggle",value:function(){(0',""])),w,t.map((function(t){return Object(_.e)(e._optionTemplate,t)})))}},{key:"connectedCallback",value:function(){var e=this;f()(g()(n.prototype),"connectedCallback",this).call(this),this.hideSelf();var t=this.querySelector("select");this._selectAttributes=t?Array.from(t.attributes):[],this._optionTemplate=this.querySelector("option")||"",this._subscriptionKey=b.a.communication.ResultDispatcher.subscribe("paging",(function(t){return e.pagingData=t}))}},{key:"disconnectedCallback",value:function(){f()(g()(n.prototype),"disconnectedCallback",this).call(this),b.a.communication.ResultDispatcher.unsubscribe("paging",this._subscriptionKey)}},{key:"firstUpdated",value:function(){var e=this.querySelector("select");this._selectAttributes.forEach((function(t){var n=t.name,r=t.value;return e.setAttribute(n,r)}))}},{key:"updated",value:function(e){e.has("pagingData")&&(this.pagingData&&0!==this.pagingData.pageLinks.length?(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(var t=0;t',""])),Object(_.a)(this.tags,(function(t){return e._renderTag(t)})))}},{key:"connectedCallback",value:function(){d()(y()(n.prototype),"connectedCallback",this).call(this),Object(P.a)()?console.warn("".concat(n.is," is not supported by FACT-Finder version ").concat(k.a.communication.globalSearchParameter.version,".")):this.disableAuto||this.getTagCloud()}},{key:"_subscriptionCallback",value:function(e){this.tags=e}},{key:"update",value:function(e){e.has("wordCount")&&!this.disableAuto&&this.getTagCloud(),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"updated",value:function(e){var t=this;d()(y()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){return t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}},{key:"disconnectedCallback",value:function(){d()(y()(n.prototype),"disconnectedCallback",this).call(this),this._subscriptionKey&&(k.a.communication.ResultDispatcher.unsubscribe("tagCloud",this._subscriptionKey),this._subscriptionKey=void 0)}},{key:"getTagCloud",value:function(){Object(P.a)()?console.warn("".concat(n.is," is not supported by FACT-Finder version ").concat(k.a.communication.globalSearchParameter.version,".")):k.a.communication.EventAggregator.addFFEvent({type:"tagCloud",wordCount:this.wordCount})}},{key:"_renderTag",value:function(e){var t={query:e.query,count:e.searchCount,params:k.a.common.decodeUrl(e.params)},n=this.minFontSize+Math.round((this.maxFontSize-this.minFontSize)*e.weight),r=R(j(1,this.gradientColorStart,this.gradientColorEnd),e.weight,this.gradientColorStart),o="font-size: ".concat(n).concat(this.unit,"; color: ").concat(r);return Object(b.b)(i||(i=a()(['',""])),o,t,this._handleClick,e.query)}},{key:"_handleClick",value:function(e){e.preventDefault();var t={entry:e.target.tagCloudEntry,element:this};if(this.dispatchEvent(new CustomEvent("entry-clicked",{bubbles:!0,composed:!0,detail:t})),!0!==this.ffPreventDefault){var n=k.a.common.urlStringToDict(e.target.tagCloudEntry.params);n.type="search",Object(O.a)(n,this)}else delete this.ffPreventDefault}}],[{key:"is",get:function(){return"ff-tag-cloud"}},{key:"properties",get:function(){return{minFontSize:{type:Number,attribute:"min-font-size"},maxFontSize:{type:Number,attribute:"max-font-size"},unit:{type:String},gradientColorStart:{type:String,attribute:"gradient-color-start"},gradientColorEnd:{type:String,attribute:"gradient-color-end"},wordCount:{type:Number,attribute:"word-count"},disableAuto:{type:Boolean,attribute:"disable-auto"},tags:{type:Array,attribute:!1}}}}]),n}(Object(C.a)([Object(S.a)(S.b.tagCloud)],w.a));window.customElements.define(x.is,x);var E=function(e){4===e.length&&(e=e.replace(/(\w)(\w)(\w)/gi,"$1$1$2$2$3$3"));var t=/(\w{2})(\w{2})(\w{2})/.exec(e);return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]},R=function(e,t,n){return E(n).map((function(n,r){var i=Math.round(n+e[r]*t);return Math.min(Math.max(i,0),255)})).reduce((function(e,t){return e+"0".concat(t.toString(16)).slice(-2)}),"#")},j=function(e,t,n){var r=E(t);return E(n).map((function(t,n){return(t-r[n])/e}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"SearchFeedback",(function(){return P}));var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(1),_=n(9),k=n(41),w=n(11),C=n(5);var S=Object.freeze({left:"left",right:"right"}),P=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).opened=!1,e.align=S.left,e.positive=!0,e.resetOnToggle=!1,e.resetOnSend=!1,e.dontShowOnResultChanged=!1,e._captionTemplate=void 0,e._contentTemplate=void 0,e}return u()(n,[{key:"_caption",get:function(){return this.querySelector(".ffw-caption")}},{key:"_content",get:function(){return this.querySelector(".ffw-content")}},{key:"_hidden",get:function(){return this.classList.contains("ffw-hidden")}},{key:"render",value:function(){return Object(y.b)(r||(r=o()(['
','
',"
"])),this._handleClick,this._captionTemplate,this._contentTemplate)}},{key:"connectedCallback",value:function(){f()(g()(n.prototype),"connectedCallback",this).call(this),this._captionTemplate||(this._captionTemplate=this.querySelector("[slot='caption']")),this._contentTemplate||(this._contentTemplate=this.querySelector("[slot='content']")),this.hideSelf()}},{key:"firstUpdated",value:function(e){var t=this;f()(g()(n.prototype),"firstUpdated",this).call(this,e);var r=function(e,n){var r=t.querySelector(e);r&&r.addEventListener("click",n.bind(t))};r("[data-toggle]",this._handleClick),r("[data-send]",this._handleSend),r("[data-positive]",(function(){return t.positive=!0})),r("[data-negative]",(function(){return t.positive=!1}))}},{key:"updated",value:function(e){if(f()(g()(n.prototype),"updated",this).call(this,e),e.has("opened")&&void 0!==e.get("opened")){if(this._hidden)this._removeTransitions();else{var t=this.align===S.right;this._content.classList[this.opened?"add":"remove"](t?"ffw-transformZero":"ffw-transformX"),this._caption.classList[this.opened?"add":"remove"](t?"ffw-transformX":"ffw-transformZero")}this.dispatchEvent(new CustomEvent("open-changed",{bubbles:!0,composed:!0,detail:{value:this.opened}}))}e.has("positive")&&void 0!==e.get("positive")&&this.dispatchEvent(new CustomEvent("positive-changed",{bubbles:!0,composed:!0,detail:{value:this.positive}}))}},{key:"_removeTransitions",value:function(){this._content.classList.remove("ffw-transformZero"),this._content.classList.remove("ffw-transformX"),this._caption.classList.remove("ffw-transformZero"),this._caption.classList.remove("ffw-transformX")}},{key:"_subscriptionCallback",value:function(e){!0!==this.dontShowOnResultChanged&&e&&this._hidden&&this.show(),this.opened=!1,this._removeTransitions(),this.reset()}},{key:"_handleClick",value:function(){this.opened=!this.opened,this._checkAndReset()}},{key:"_checkAndReset",value:function(){!this.opened&&this.resetOnToggle&&this.reset()}},{key:"_handleSend",value:function(){var e=this,t={query:b.a.communication.Util.getQueryFromSearchParams(),id:"none",type:"feedback",positive:this.positive,success:function(){e.resetOnSend&&e._resetAfterSend(),e.dispatchEvent(new CustomEvent("successful",{bubbles:!0,composed:!0}))},fail:function(){return e.dispatchEvent(new CustomEvent("failed",{bubbles:!0,composed:!0}))}},n=this.querySelector("[data-message]");n&&"string"==typeof n.value&&(t.message=n.value),b.a.communication.Tracking.searchFeedback(t)}},{key:"_resetAfterSend",value:function(){this.reset(),this.hide()}},{key:"hide",value:function(){this.hideSelf(),this.opened=!1}},{key:"show",value:function(){this.showSelf()}},{key:"reset",value:function(){this.positive=!0;var e=this.querySelector("[data-message]");e&&"string"==typeof e.value&&(e.value="")}}],[{key:"is",get:function(){return"ff-search-feedback"}},{key:"properties",get:function(){return{opened:{type:Boolean},align:{type:String},positive:{type:C.c},resetOnToggle:{type:Boolean,attribute:"reset-on-toggle"},resetOnSend:{type:Boolean,attribute:"reset-on-send"},dontShowOnResultChanged:{type:Boolean,attribute:"dont-show-on-result-changed"}}}}]),n}(Object(_.a)([Object(k.a)(),Object(w.a)(w.b.result)],C.a));window.customElements.define(P.is,P)},function(e,t,n){"use strict";n.r(t),n.d(t,"MultiAttributeParsing",(function(){return p}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1);var p=function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"srcProperty",get:function(){return m(this,"src-property")}},{key:"storeInProperty",get:function(){return m(this,"store-in-property")}},{key:"keepOriginalInProperty",get:function(){return m(this,"keep-original-in-property")}},{key:"entrySeparator",get:function(){return m(this,"entry-separator")}},{key:"keyValueSeparator",get:function(){return m(this,"key-value-separator")}},{key:"_once",value:function(){h.a.middleware.response.use(h.a.middleware.response.MultiAttributeParsing({srcProperty:this.srcProperty,storeInProperty:this.storeInProperty,keepOriginalInProperty:this.keepOriginalInProperty,entrySeparator:this.entrySeparator,keyValueSeparator:this.keyValueSeparator}))}}],[{key:"is",get:function(){return"ff-multi-attribute-parsing"}}]),n}(n(61).a);function m(e,t){var n=e.getAttribute(t);return"string"==typeof n?n:void 0}window.customElements.define(p.is,p)},function(e,t,n){"use strict";n.r(t),n.d(t,"ProductTeaserCampaignProcessor",(function(){return p}));var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1);var p=function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"_once",value:function(){h.a.middleware.response.use(h.a.middleware.response.ProductTeaserCampaignProcessor())}}],[{key:"is",get:function(){return"ff-product-teaser-campaign-processor"}}]),n}(n(61).a);window.customElements.define(p.is,p)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(24),a=n.n(o),c=n(8),s=n.n(c),u=n(4),l=n.n(u),f=n(3),d=n.n(f),h=n(2),p=n.n(h),m=n(6),v=n.n(m),g=n(7),y=n.n(g),b=n(0),_=n.n(b),k=n(10),w=n(9),C=n(18),S=n.n(C),P=n(19),O=n.n(P),x=n(12),E=n(33),R=new WeakMap,j=Object(x.f)((function(e){return function(t){if(!(t instanceof x.b))throw new Error("cache can only be used in text bindings");var n=R.get(t);void 0===n&&(n=new WeakMap,R.set(t,n));var r=t.value;if(r instanceof E.a){if(e instanceof x.d&&r.template===t.options.templateFactory(e))return void t.setValue(e);var i=n.get(r.template);void 0===i&&(i={instance:r,nodes:document.createDocumentFragment()},n.set(r.template,i)),Object(x.j)(i.nodes,t.startNode.nextSibling,t.endNode)}if(e instanceof x.d){var o=t.options.templateFactory(e),a=n.get(o);void 0!==a&&(t.setValue(a.nodes),t.commit(),t.value=a.instance)}t.setValue(e)}})),L=n(1),I=n(5),A=n(13),T=n(27),M=n.n(T),N=n(21),D=n.n(N),F=n(55),B=n(42),V=n(14),U=n(30);function q(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 z(e){for(var t=1;t',""])),Object(I.e)(this._selectedTemplate,{element:Object(U.a)(e,"name"),group:this.group})):Object(k.b)(i||(i=s()(['
',"
"])),Object(I.e)(this._unselectedTemplate,{element:Object(U.a)(e,"name"),group:this.group}))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){this._rawOuterHtml=this.outerHTML,this._selectedTemplate=this.querySelector("[slot='selected']")||this._selectedTemplate,this._unselectedTemplate=this.querySelector("[slot='unselected']")||this._unselectedTemplate,this.addEventListener("click",this._clickListener)}},{key:"update",value:function(e){var t,r;e.has("element")&&((r=(t=this).element)?(t.selected=r.selected,t.implicit=r.implicitSelection,t.fixed=!!r.selected&&function(e){var t=L.a.communication.Util.extractCategoryPathFieldName();if(e.associatedFieldName!==t&&0!==e.associatedFieldName.indexOf(t+"/"))return!1;var n=L.a.common.fixedDecodeURIComponent;return L.b.getFixedFilters().map((function(e){return n(n(e.split("=")[1]))})).some((function(t){var r=t.split(":"),i=M()(r,2),o=i[0]+"ROOT/"+i[1],a=L.b.util.escapeRegex(n(e.associatedFieldName)+"/"+e.name);return new RegExp("^".concat(a,"(/|$)")).test(o)}))}(r),t.className=t.className.replace(/ ?\bclusterLevel\d+\b/g,"").trim(),r.clusterLevel&&t.classList.add("clusterLevel".concat(r.clusterLevel)),t.showSelf()):t.hideSelf()),p()(_()(n.prototype),"update",this).call(this)}},{key:"updated",value:function(e){p()(_()(n.prototype),"updated",this).call(this,e),Object(F.a)(this)}},{key:"clone",value:function(e,t){var r=this._rawOuterHtml?Object(A.a)(this._rawOuterHtml):document.createElement(n.is);return r.group=e,r.element=t,r._selectedTemplate=this._selectedTemplate,r._unselectedTemplate=this._unselectedTemplate,r}}],[{key:"is",get:function(){return"ff-asn-group-element"}},{key:"properties",get:function(){return{selected:{type:Boolean,reflect:!0},fixed:{type:Boolean,reflect:!0},implicit:{type:Boolean,reflect:!0},element:{type:Object,attribute:!1},group:{type:Object,attribute:!1}}}}]),n}(Object(w.a)([Object(V.ElementLog)(),Object(B.a)()],I.a));function H(e){return Object(A.a)('
{{element.name}}
'))}window.customElements.define(W.is,W);var K,Y,G,X,Z,J,$,Q=n(29),ee=n(49),te=n(58);function ne(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 re(e){for(var t=1;t
'])));this._filterSearchInput=this.querySelector("".concat(ie.FilterSearchFieldContainer," input"));var t,n,r,i={group:this.group};return Object(k.b)(Y||(Y=s()(['
','
'," "," ","
"])),(function(){return e.toggle(!0)}),Object(I.e)(this._groupCaptionTemplate,i),(function(t){return function(e,t){var n=t.composedPath(),r=n[0];if("INPUT"===r.nodeName&&n.slice(1).some((function(e){return e.getAttribute&&"filterSearch"===e.getAttribute("slot")}))){e.requestUpdate();var i=new RegExp(L.b.util.escapeRegex(r.value)||"$a","gi"),o=[].concat(O()(e.group.selectedElements),O()(e.group.elements)).reduce((function(e,t){i.lastIndex=0;var n=i.exec(t.name);if(null===n)return e;var r=t.name.replace(i,(function(e){return''.concat(e,"")}));return(0===n.index?e.headMatchedElements:e.otherMatchedElements).push(re(re({},t),{},{__HIGHLIGHTED_NAME__:r})),e}),{headMatchedElements:[],otherMatchedElements:[]}),a=o.headMatchedElements,c=o.otherMatchedElements;se(e._filterSearchContainer,e._asnGroupElementTemplate,e.group,[].concat(O()(a),O()(c)))}}(e,t)}),fe(function(e){if(!e.group)return!1;var t=e.group.elements.length+e.group.selectedElements.length;return!e.notSearchable&&t>=e.parentNode.searchableFrom}(this),Object(I.e)(this._filterSearchField,i)),j(this._filterSearchInput&&0r.detailedLinks,Object(k.b)(G||(G=s()([""," "," "," ",""])),t._detailedLinksContainer,fe(n,t._hiddenLinksContainer),fe(n&&!t.selectBox,t._showMoreContainer),fe(n&&!t.selectBox,t._showLessContainer)))),fe(function(e){if(!(t=e)||!t.selectedElements.some((function(e){return!0!==e.implicitSelection}))&&!t.elements.some((function(e){return e.selected&&!0!==e.implicitSelection})))return!1;var t,n=L.b.getFixedFilters();return 0===n.length||e.selectedElements.filter((function(e){return!0!==e.implicitSelection})).concat(e.elements.filter((function(e){return e.selected&&!0!==e.implicitSelection}))).some(Object(te.a)(n))}(this.group),this._removeFilterContainer))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){var e,t,n,r=this;this._initialized||(this._rawOuterHtml=this.outerHTML,this._asnGroupElementTemplate=this.querySelector(W.is)||document.createElement(W.is),this._groupCaptionTemplate=this.querySelector(ie.GroupCaptionContainer)||Object(A.a)('
{{group.name}}
'),this._detailedLinksContainer=this.querySelector(ie.DetailedLinksContainer)||Object(A.a)(Object(A.e)(Z||(Z=s()(['
'])))),this._hiddenLinksContainer=this.querySelector(ie.HiddenLinksContainer),this._filterSearchField=(e=this.querySelector(ie.FilterSearchFieldContainer))?e.cloneNode(!0):Object(A.a)('
'),function(e){if(null===e._filterSearchField.querySelector("input"))throw new Error(" not found in filterSearch template")}(this),this._filterSearchContainer=Object(A.a)('
'),this._hiddenLinksContainer&&!this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer.style.height="0",this._hiddenLinksContainer.style.overflow="hidden"),this._initShowMore(),this._initShowLess(),this._initHiddenLinksContainer(),this._removeFilterContainer=(t=function(){return r.group||{}},(n=this.querySelector(ie.RemoveFilterContainer)||Object(A.a)('
Reset Filter
')).addEventListener("click",(function(){oe.addFFEvent({type:"filter",groupName:t().name,removeAll:!0})})),n),this.selectBox&&(this._selectBoxOptionTemplate=this._hiddenLinksContainer.querySelector(ie.SelectBoxOptionTemplate)||Object(A.a)("")),this.style.display="none",this._initialized=!0)}},{key:"update",value:function(e){var t,r,i,o;e.has("group")&&(this._filterSearchInput&&(this._filterSearchInput.value="",this._filterSearchInput.dispatchEvent(new Event("input"))),this.group?(this._detailedElements=this.group.selectedElements.concat(this.group.elements.slice(0,this.group.detailedLinks)),this._hiddenElements=this.group.elements.slice(this.group.detailedLinks),this._detailedLinksContainer=(t=this._detailedLinksContainer,r=this.group,i=this._asnGroupElementTemplate,o=this._detailedElements,se(t.querySelector(ie.DetailedLinksContent),i,r,o),t),this._hiddenLinksContainer&&(this.selectBox?this._hiddenLinksContainer=ue(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer=ce(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements))),(this.opened||le(this.group)&&!this.disableAutoExpand)&&this.show(!1),this.style.display="",this.style.opacity="1"):(this.style.display="none",this.style.opacity="0")),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"firstUpdated",value:function(e){var t=this;this._wrapper=this.querySelector(ie.ToggleWrapper),this.opened||e.has("group")&&le(this.group)&&!this.disableAutoExpand?this.show(!1):this._hide(this._wrapper,!1,(function(){return t.opened=!1})),!1===this.opened&&!0!==this.disableAutoExpand&&le(this.group)&&this.show(!1)}},{key:"updated",value:function(e){e.has("group")&&(this.forGroup&&"all"!==this.forGroup||(this.forGroup=Object(ee.a)(this.group)),this.filterStyle||(this.filterStyle=this.group.filterStyle)),this.group?this.showSelf():this.hideSelf()}},{key:"show",value:function(e){this._wrapper&&(this._show(this._wrapper,e),this._wrapper.setAttribute("opened",""),this.opened=!0)}},{key:"hide",value:function(e){var t=this;this.opened&&this.collapsible&&this._wrapper&&(this._hide(this._wrapper,e,(function(){return t.opened=!1})),this._wrapper.removeAttribute("opened"))}},{key:"toggle",value:function(e){this.opened?this.hide(e):this.show(e)}},{key:"showDetailedLinksContainer",value:function(e){this._show(this._detailedLinksContainer,e)}},{key:"hideDetailedLinksContainer",value:function(e){this._hide(this._detailedLinksContainer,e)}},{key:"toggleDetailedLinksContainer",value:function(e){this._detailedLinksContainer.hasAttribute("opened")?this.hideDetailedLinksContainer(e):this.showDetailedLinksContainer(e)}},{key:"showHiddenLinksContainer",value:function(e){var t=this;this._hiddenLinksContainer=this.selectBox?ue(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):ce(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements),this._showMoreContainer&&(this._showMoreContainer.style.display="none"),this._showLessContainer&&(this._showLessContainer.style.display=""),setTimeout((function(){t._showChecked(t._hiddenLinksContainer,e),t._hiddenLinksContainer.setAttribute("opened","")}))}},{key:"hideHiddenLinksContainer",value:function(e){this._showMoreContainer&&(this._showMoreContainer.style.display=""),this._showLessContainer&&(this._showLessContainer.style.display="none"),this._hideChecked(this._hiddenLinksContainer,e,(function(){}))}},{key:"toggleHiddenLinksContainer",value:function(e){this._hiddenLinksContainer.hasAttribute("opened")?this.hideHiddenLinksContainer(e):this.showHiddenLinksContainer(e)}},{key:"clone",value:function(){return Object(A.a)(this._rawOuterHtml)}},{key:"_initShowMore",value:function(){var e=this;this._showMoreContainer=this.querySelector(ie.ShowMoreContainer)||Object(A.a)('
Show More
'),this.selectBox?this._hide(this._showMoreContainer):this._show(this._showMoreContainer),this._showMoreContainer.addEventListener("click",(function(){return e.showHiddenLinksContainer(!0)}))}},{key:"_initShowLess",value:function(){var e=this;this.selectBox&&this._hideChecked(this._showMoreContainer),this._showLessContainer=this.querySelector(ie.ShowLessContainer)||Object(A.a)('
Show Less
'),this._showLessContainer.style.display="none",this._showLessContainer.addEventListener("click",(function(){return e.hideHiddenLinksContainer(!0)}))}},{key:"_initHiddenLinksContainer",value:function(){if(this.selectBox)this._hiddenLinksContainer?"SELECT"!==this._hiddenLinksContainer.tagName?(this.warn("Provided template for select box is not a select element. Using default template."),this._hiddenLinksContainer=n()):0===this._hiddenLinksContainer.querySelectorAll(ie.SelectBoxPlaceholderOption).length&&this._hiddenLinksContainer.insertBefore(Object(A.a)(""),this._hiddenLinksContainer.firstElementChild):this._hiddenLinksContainer=n(),this._selectBoxPlaceholderOption=this._hiddenLinksContainer.querySelector(ie.SelectBoxPlaceholderOption),this._hiddenLinksContainer.addEventListener("change",(t=this,function(){var e=t._hiddenLinksContainer.options[t._hiddenLinksContainer.selectedIndex].data;e&&oe.addFFEvent({type:"filter",groupName:t.group.name,filterName:e.__ORIG_NAME__||e.name,clusterLevel:e.clusterLevel})})),this._show(this._hiddenLinksContainer);else{if(!this._hiddenLinksContainer){var e=Object(A.e)(X||(X=s()(['
'])));this._hiddenLinksContainer=Object(A.a)(e)}this._hiddenLinksContainer.hasAttribute("opened")?this._show(this._hiddenLinksContainer):this._hide(this._hiddenLinksContainer)}var t;function n(){return Object(A.a)('"))}}}],[{key:"is",get:function(){return"ff-asn-group"}},{key:"properties",get:function(){return{collapsible:{type:I.c},opened:{type:Boolean,reflect:!0},forGroup:{type:String,attribute:"for-group",reflect:!0},filterStyle:{type:String,attribute:"filter-style",reflect:!0},disableAutoExpand:{type:Boolean,attribute:"disable-auto-expand",reflect:!0},group:{type:Object,attribute:!1},selectBox:{type:I.c,attribute:"select-box"},notSearchable:{type:Boolean,attribute:"not-searchable"}}}}]),n}(Object(w.a)([Object(V.ElementLog)(),Object(Q.CollapseElement)()],I.a));function ce(e,t,n,r){return se(e.querySelector(ie.HiddenLinksContent),t,n,r),e}function se(e,t,n,r){Object(x.i)(Object(k.b)(J||(J=s()(["",""])),r.map((function(e){return t.clone(n,e)}))),e)}function ue(e,t,n,r,i){var o=i.map((function(e){return Object(I.e)(n,{group:r,element:e})}));return Object(x.i)(Object(k.b)($||($=s()(["",""])),[Object(I.e)(t)].concat(O()(o))),e),e.selectedIndex=0,e.querySelectorAll(ie.SelectBoxOptionTemplate).forEach((function(e,t){var n=i[t];e.value=n.name,e.data=n})),e}function le(e){return e&&(e.selectedElements.length||e.elements.some((function(e){return e.selected})))}function fe(e,t){return e?t:void 0}window.customElements.define(ae.is,ae);var de,he,pe=n(52),me=n(11);n.d(t,"Asn",(function(){return ge}));var ve=Object.freeze({vertical:"vertical",horizontal:"horizontal"}),ge=function(e){v()(n,e);var t=function(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 n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}(n);function n(){var e;return l()(this,n),(e=t.call(this)).align=ve.vertical,e.asnGroups=[],e.subscribe=!0,e.topic=void 0,e._templates=void 0,e._searchableFrom=1/0,e}return d()(n,[{key:"render",value:function(){var e=this;return Object(k.b)(he||(he=s()(["",""])),(this.asnGroups||[]).map((function(t){var n=e._getGroupTemplate(t);return n.group=t,Object(k.b)(de||(de=s()(["",""])),n)})))}},{key:"connectedCallback",value:function(){p()(_()(n.prototype),"connectedCallback",this).call(this),this._initTemplates()}},{key:"update",value:function(e){var t=this;e.has("topic")&&"string"!=typeof this.topic&&void 0!==this.topic&&(this.error('Attribute "topic" must be either undefined or a string but was: '.concat(a()(this.topic),". Subscription cancelled.")),this.subscribe=!1,this.topic=void 0),this.updateComplete.then((function(){var e=t.querySelectorAll("".concat(ae.is,",").concat(pe.a.is));Promise.all(Array.from(e).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),p()(_()(n.prototype),"update",this).call(this,e)}},{key:"searchableFrom",get:function(){return this._searchableFrom},set:function(e){"number"!=typeof e||isNaN(e)||e<1?this.warn("searchableFrom was expected to be a valid positive number, but was [".concat(e,"] instead")):this._searchableFrom=e}},{key:"_getGroupTemplate",value:function(e){var t=Object(ee.a)(e),n=this._templates[t];if(!n){var r=e.filterStyle?e.filterStyle.toUpperCase():"";this._templates[r]&&(n=this._templates[r].clone(),this._templates[t]=n)}return n||(n=this._templates.all.clone(),this._templates[t]=n),n}},{key:"_initTemplates",value:function(){var e=this;if(!this._templates)try{if(this._templates={},this.querySelectorAll("".concat(ae.is,",").concat(pe.a.is)).forEach((function(t){try{var n=t.getAttribute("for-group"),r=t.getAttribute("filter-style");n&&"all"!==n.toLowerCase()?e._templates[n]=t:r?e._templates[r]=t:"FF-ASN-GROUP-SLIDER"===t.tagName?e._templates.SLIDER=t:e._templates.all||(e._templates.all=t)}catch(t){e.error(t)}})),!this._templates.all){var t=document.createElement(ae.is);t.setAttribute("opened",void 0),t._init(),this._templates.all=t}if(!this._templates.SLIDER){var n=document.createElement(pe.a.is);n.setAttribute("filter-style","SLIDER"),n.setAttribute("opened",void 0),n.init(),this._templates.SLIDER=n}}catch(t){this.error(t)}}},{key:"_subscriptionCallback",value:function(e){this.asnGroups=e.filter((function(e){return e.selectedElements.length||e.elements.length}))}}],[{key:"is",get:function(){return"ff-asn"}},{key:"properties",get:function(){return{align:{type:String,reflect:!0},asnGroups:{type:Array,attribute:!1},searchableFrom:{type:Number,attribute:"searchable-from"},subscribe:{type:I.c},topic:{type:String}}}}]),n}(Object(w.a)([Object(V.ElementLog)(),Object(me.a)(me.b.asn)],I.a));window.customElements.define(ge.is,ge)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(2),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(1),v=n(5),g=n(13);var y=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){return Object(v.e)(this._template,this.answer)}},{key:"connectedCallback",value:function(){var e;s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._template=Object(v.d)(this)?"":this.innerHTML,this.addEventListener("click",(e=this,function(t){m.a.communication.EventAggregator.addFFEvent({type:"advisor",answer:e.answer})}))}},{key:"updated",value:function(e){e.has("answer")&&(this.answer?this.showSelf():this.hideSelf())}}],[{key:"is",get:function(){return"ff-campaign-advisor-answer"}},{key:"properties",get:function(){return{answer:{type:Object,attribute:!1}}}}]),n}(v.a);window.customElements.define(y.is,y);var b=n(28);var _=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"connectedCallback",value:function(){s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._renderQuestion=function(e){var t=Object(g.f)(e.querySelector(y.is)||document.createElement(y.is),e),n=e.querySelector("[data-question]");n||(n=Object(g.a)("
{{text}}
"),e.insertBefore(n,e.firstChild));var r=n.innerHTML;return function(i){n.innerHTML=Object(b.a)(r,i),t(e.querySelectorAll(y.is),i.answers,(function(e,t){e.answer=t}))}}(this)}},{key:"update",value:function(e){e.has("question")&&(this.question?(this.showSelf(),this._renderQuestion(this.question)):this.hideSelf()),s()(p()(n.prototype),"update",this).call(this,e)}}],[{key:"is",get:function(){return"ff-campaign-advisor-question"}},{key:"properties",get:function(){return{question:{type:Object,attribute:!1}}}}]),n}(v.a);window.customElements.define(_.is,_),n.d(t,"CampaignAdvisor",(function(){return k}));var k=function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return i()(this,n),(e=t.call(this)).name="",e.not=void 0,e.subscriptionKey=void 0,e._renderCampaign=void 0,e}return a()(n,[{key:"connectedCallback",value:function(){var e,t;s()(p()(n.prototype),"connectedCallback",this).call(this),this.hideSelf(),this._renderCampaign=(e=this,t=Object(g.f)(e.querySelector(_.is)||document.createElement(_.is),e),function(n){return t(e.querySelectorAll(_.is),n.activeQuestions,(function(e,t){e.question=t}))})}},{key:"update",value:function(e){var t,r=this;e.has("name")&&function(e,t,n){e.subscriptionKey&&m.a.communication.ResultDispatcher.unsubscribe(w(n),e.subscriptionKey),e.subscriptionKey=m.a.communication.ResultDispatcher.subscribe(w(t),(function(t){e.campaignData=t}))}(this,this.name,e.get("name")),e.has("campaignData")&&(!this.campaignData||0===this.campaignData.activeQuestions.length||this.not&&this.not.split(",").some((function(e){return e.trim()===r.campaignData.name}))?this.hideSelf():(this.showSelf(),this._renderCampaign(this.campaignData),(t=this,Promise.all(Array.from(t.querySelectorAll(_.is)).map((function(e){return e.updateComplete}))).then((function(){return Promise.all(Array.from(t.querySelectorAll(y.is)).map((function(e){return e.updateComplete})))}))).then((function(){return r.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))})))),s()(p()(n.prototype),"update",this).call(this,e)}},{key:"disconnectedCallback",value:function(){s()(p()(n.prototype),"disconnectedCallback",this).call(this),m.a.communication.ResultDispatcher.unsubscribe(w(this.name),this.subscriptionKey)}}],[{key:"is",get:function(){return"ff-campaign-advisor"}},{key:"properties",get:function(){return{name:{type:String,reflect:!0},not:{type:String},campaignData:{type:Object,attribute:!1}}}}]),n}(v.a);function w(e){return e&&e.trim()?["campaign:advisor:".concat(e)]:["campaign:advisor"]}window.customElements.define(k.is,k)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(3),a=n.n(o),c=n(4),s=n.n(c),u=n(6),l=n.n(u),f=n(7),d=n.n(f),h=n(0),p=n.n(h),m=n(26),v=n.n(m),g=(n(73),n(1)),y=n(54);n.d(t,"factfinder",(function(){return g.a})),r=g.a,i=setTimeout((function(){r.common.Logger.log("Warning: The WebComponentsReady event didn't fire within 10 seconds, which indicates a very slow page load.")}),1e4),Object(y.a)().then((function(){clearTimeout(i),r.communication.ResultDispatcher.startDispatching()})),g.a.elements={ElementLogBehavior:n(14).ElementLog(),CollapseElementBehavior:n(29).CollapseElement(),TrackingBehavior:n(47).Tracking()},WebComponents.waitFor((function(){return new Promise((function(e){n(48),n(67),n(83),n(32),n(17),n(111),n(84),n(85),n(86),n(87),n(88),n(89),n(44),n(90),n(91),n(92),n(110),n(93),n(94),n(113),n(95),n(96),n(97),n(98),window.customElements.define("ff-onfocus-suggest",function(e){l()(n,e);var t=function(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 n,r=p()(e);if(t){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}(n);function n(){var e;return s()(this,n),e=t.call(this),g.a.common.Logger.error("ff-onfocus-suggest: This component is currently not available. It will be reimplemented in a future version."),e}return a()(n)}(v()(HTMLElement))),n(114),n(99),n(115),n(100),n(116),n(101),n(102),n(103),n(104),n(117),n(105),n(106),n(118),n(107),n(50),n(60),n(108),n(109),n(119),e()}))}))},function(e,t,n){"use strict";n.r(t);var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(5),_=n(1),k=n(30);var w={dataTemplate:"{{text}}",attributes:{}},C=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).templates={},e.addEventListener("click",(function(){_.a.communication.EventAggregator.addFFEvent({type:"bct",value:e.breadCrumbTrailItem.value})})),e}return u()(n,[{key:"template",get:function(){return this.templates[this.type]||this.templates[P.default]||w}},{key:"render",value:function(){return Object(b.e)(this.template.dataTemplate,Object(k.a)(this.breadCrumbTrailItem,"text"))}},{key:"firstUpdated",value:function(e){var t=this;f()(g()(n.prototype),"firstUpdated",this).call(this,e),Object.keys(this.template.attributes).forEach((function(e){return t.setAttribute(e,t.template.attributes[e])}))}},{key:"update",value:function(e){e.has("breadCrumbTrailItem")&&this.breadCrumbTrailItem&&(this.type=P.hasOwnProperty(this.breadCrumbTrailItem.type)?this.breadCrumbTrailItem.type:void 0),f()(g()(n.prototype),"update",this).call(this,e)}}],[{key:"is",get:function(){return"ff-breadcrumb-trail-item"}},{key:"properties",get:function(){return{type:{type:String,reflect:!0},breadCrumbTrailItem:{type:Object,attribute:"bread-crumb-trail-item"}}}}]),n}(b.a);window.customElements.define(C.is,C);var S,P=Object.freeze({search:"search",filter:"filter",all:"all",advisor:"advisor",default:"search"}),O=n(9),x=n(14),E=n(11);n.d(t,"BreadcrumbTrail",(function(){return R}));var R=function(e){h()(n,e);var t=function(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 n,r=g()(e);if(t){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}(n);function n(){var e;return c()(this,n),(e=t.call(this)).templates={},e.separatorTemplate=void 0,e.breadCrumbTrailItems=[],e.showAsteriskQuery=!1,e}return u()(n,[{key:"render",value:function(){for(var e,t,n=[],i=(this.breadCrumbTrailItems||[]).length,a=0;a'])),e,t))),a ")}},{key:"update",value:function(e){var t=this;e.has("breadCrumbTrailItems")&&(this.breadCrumbTrailItems&&0!==this.breadCrumbTrailItems.length?this.showSelf():this.hideSelf(),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(C.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"_subscriptionCallback",value:function(e){this.breadCrumbTrailItems=e}}],[{key:"is",get:function(){return"ff-breadcrumb-trail"}},{key:"properties",get:function(){return{breadCrumbTrailItems:{type:Array,attribute:"bread-crumb-trail-items"},showAsteriskQuery:{type:b.c,attribute:"show-asterisk-query"}}}}]),n}(Object(O.a)([Object(x.ElementLog)(),Object(E.a)(E.b.bct)],b.a));window.customElements.define(R.is,R)},function(e,t,n){"use strict";n.r(t);var r=n(18),i=n.n(r),o=n(8),a=n.n(o),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(2),d=n.n(f),h=n(6),p=n.n(h),m=n(7),v=n.n(m),g=n(0),y=n.n(g),b=n(5),_=n(10),k=n(9),w=n(21),C=n.n(w),S=n(1);var P=Object.freeze({Selected:"ffw-selected",ShowSelected:"ffw-showSelected"}),O=function(e){p()(n,e);var t=function(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 n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).sortItem={},e._template=Object(b.d)(C()(e))?"{{description}}":e.innerHTML,e.addEventListener("click",function(){this._isClickable&&S.a.communication.EventAggregator.addFFEvent({type:"sort",name:this.sortItem.name,order:this.sortItem.order})}.bind(C()(e))),e}return l()(n,[{key:"render",value:function(){return Object(b.e)(this._template,this.sortItem)}},{key:"update",value:function(e){e.has("sortItem")&&this._sortItemChanged(this.sortItem),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"clone",value:function(){var e=this.cloneNode(!0);return e._template=this._template,e}},{key:"_sortItemChanged",value:function(e,t){this.style.display=e?(this._isClickable=!e.selected,e.selected?this.classList.add(P.Selected):this.classList.remove(P.Selected),e.showSelected?this.classList.add(P.ShowSelected):this.classList.remove(P.ShowSelected),"block"):"none"}}],[{key:"is",get:function(){return"ff-sortbox-item"}},{key:"properties",get:function(){return{sortItem:{type:Object},key:{type:String}}}}]),n}(b.a);window.customElements.define(O.is,O);var x,E=n(29),R=n(11);function j(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 L(e){for(var t=1;t
'])),A.SelectedContainer,A.DropdownContainer,this.opened?"":A.DropdownClosed)}},{key:"connectedCallback",value:function(){d()(y()(n.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_init",value:function(){if(!this._initialized){this.tabindex=this.getAttribute("tabindex"),this.tabindex||this.setAttribute("tabindex","1");var e,t,n,r=this.querySelector(I.DefaultSortItemCssSelector);r?(this._defaultSortItemTemplate=r,this.removeChild(r)):this._defaultSortItemTemplate=document.createElement(O.is),this._sortBoxItemTemplateInfos=(e=this._sortBoxItemTemplateInfos,t=this.querySelectorAll(O.is),n="null.desc",t.forEach((function(t){var r=t.getAttribute("key");!r||r===n&&e.hasOwnProperty(n)||(e["ff.relevance"===r?n:r]=N(t))})),e),this._initialized=!0}}},{key:"firstUpdated",value:function(e){var t,r,i;d()(y()(n.prototype),"firstUpdated",this).call(this,e),this.hideSelf(),this.addEventListener("click",this.toggle.bind(this)),this.addEventListener("blur",(t=this,function(){t.collapseOnblur&&setTimeout((function(){return t.hide()}),150)})),i=M(r=this),r.opened?(r.opened=!0,r._show(i,!1)):r._hide(i,!1,(function(){r.opened=!1}))}},{key:"update",value:function(e){(e.has("items")||e.has("showSelected"))&&function(e){var t=1',""])),(this.element.__TARGET_URL__||{}).url,k.b.Encoding.decodeURIComponent(this.element.name))}}],[{key:"is",get:function(){return"ff-nav-element"}},{key:"properties",get:function(){return{element:{attribute:!1,type:Object}}}}]),n}(w.a);window.customElements.define(S.is,S);var P,O,x,E,R,j=n(9),L=n(11),I=n(15);n.d(t,"HeaderNavigation",(function(){return T}));var A=k.a.communication.EventAggregator,T=function(e){m()(n,e);var t=function(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 n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e,r;return c()(this,n),(e=t.call(this)).elements=[],e.groupCount=10,e.groupSize=4,e.hideEmptyGroups=!0,e.fetchInitial=!0,e.mouseenterDelay=600,e.mouseleaveDelay=200,e._key=k.a.common.randomString(10),e._slottedElements={},e._selectedElement={},e._showBody=!1,e._shouldShowBody=!1,e.addEventListener(C.NavSearch,(r=f()(e),function(e){var t=e.detail;r._showBody=!1;var n=t.searchParams.split("?")[1],i=k.a.common.decodeDict(k.a.common.parameterStringToDict(n));i.type="navigation-search",setTimeout((function(){Object(I.a)()&&(k.a.communication.globalCommunicationParameter.categoryPage="filter=".concat(k.b.Encoding.ngCategoryPageEncode(i.filter[0]))),A.addFFEvent(i)}),0)})),e}return u()(n,[{key:"render",value:function(){var e,t,n,r=this;return Object(_.b)(P||(P=o()(['
',"
","
"])),M,D,this.elements.map((function(e){return Object(_.b)(O||(O=o()(['
'])),e,N)})),this._showBody?Object(_.b)(x||(x=o()(['
','
','
','
','
',"
"])),this._selectedElement&&this._slottedElements["container-top-".concat(this._selectedElement.name)],this._selectedElement&&this._slottedElements["container-left-".concat(this._selectedElement.name)],(e=this.hideEmptyGroups,t=this.groupCount,n=this._selectedElement.groups,n?!0===e?n.filter((function(e){var t=0===e.links.length;return t&&k.a.common.Logger.log("[".concat(T.is,"]: The group '").concat(e.name,"' has no 3rd layer children and will not be shown. If you wish to display it nevertheless, set 'hide-empty-groups=\"false\"'")),!t})).slice(0,t):n.slice(0,t):[]).map((function(e){return Object(_.b)(E||(E=o()(['
'," ","
"])),e,(t=r,n=e.links,n.slice(0,t.groupSize)).map((function(e){return Object(_.b)(R||(R=o()([''])),e)})),r._slottedElements[e.name]);var t,n})),this._selectedElement&&this._slottedElements["container-right-".concat(this._selectedElement.name)],this._selectedElement&&this._slottedElements["container-bottom-".concat(this._selectedElement.name)]):void 0)}},{key:"connectedCallback",value:function(){var e=this;h()(b()(n.prototype),"connectedCallback",this).call(this),this.querySelectorAll("[slot]").forEach((function(t){return e._slottedElements[t.getAttribute("slot")]=t})),this.fetchInitial&&this.fetch()}},{key:"updated",value:function(e){var t=this;h()(b()(n.prototype),"updated",this).call(this,e),e.has("elements")&&setTimeout((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}),0)}},{key:"fetch",value:function(){var e={type:L.b.navigation,firstFetch:3,fetchSize:1,maxFetch:3,fetchTime:10,key:this._key};setTimeout((function(){return A.addFFEvent(e)}),0)}},{key:"_subscriptionCallback",value:function(e){var t,n;t=this,(n=e[0]).forEach((function(e){var n=k.a.common.getMetaElementKey(e),r=A.navigationResult[t._key][n];e.groups=r.subelements,e.groups.forEach((function(e){var n=k.a.common.getMetaElementKey(e),r=A.navigationResult[t._key][n];e.links=r.subelements}))})),t.elements=n}}],[{key:"is",get:function(){return"ff-header-navigation"}},{key:"properties",get:function(){return{elements:{attribute:!1,type:Array},groupCount:{attribute:"group-count",type:Number},groupSize:{attribute:"group-size",type:Number},hideEmptyGroups:{attribute:"hide-empty-groups",type:w.c},fetchInitial:{attribute:"fetch-initial",type:w.c},mouseenterDelay:{attribute:"mouseenter-delay",type:Number},mouseleaveDelay:{attribute:"mouseleave-delay",type:Number},_selectedElement:{attribute:!1,type:Object},_showBody:{attribute:!1,type:Boolean}}}}]),n}(Object(j.a)([Object(L.a)(L.b.navigation)],w.a));function M(e){var t=this;e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!0,this._showBody||setTimeout((function(){!0===t._shouldShowBody&&(t._showBody=!0)}),this.mouseenterDelay))}function N(e){this._selectedElement=e.currentTarget.element}function D(e){var t=this;e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!1,this._showBody&&setTimeout((function(){!1===t._shouldShowBody&&(t._showBody=!1)}),this.mouseleaveDelay))}window.customElements.define(T.is,T)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(8),a=n.n(o),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(2),d=n.n(f),h=n(6),p=n.n(h),m=n(7),v=n.n(m),g=n(0),y=n.n(g),b=n(10),_=n(23),k=n(1),w=n(5),C=n(30),S=n(15);var P=Object.freeze({down:"down",right:"right",left:"left",default:"right"}),O={dataTemplate:"
{{name}}
",attributes:{direction:P.default}},x=function(e){p()(n,e);var t=function(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 n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this)).clusterLevel=0,e.type="default",e.direction=P.default,e.hasSubelements=!1,e.flyout="true",e.selected=!1,e.element=void 0,e._templates={default:O},e}return l()(n,[{key:"childrenUpdateComplete",get:function(){var e=this;return new Promise((function(t){e.updateComplete.then((function(){var r=e.querySelectorAll("".concat(n.is,'[cluster-level="').concat(e.clusterLevel+1,'"]'));0===r.length?t():Promise.all(Array.from(r).map((function(e){return e.childrenUpdateComplete}))).then(t)}))}))}},{key:"_template",get:function(){return this._templates&&this._templates[this.type||"default"]||O}},{key:"render",value:function(){var e=this,t=this.element&&this.element.__SUB_ELEMENTS__;return Object(b.b)(r||(r=a()(['
','
',"
"])),this.onHovered,Object(w.e)(this._template.dataTemplate,Object(C.a)(this.element,"name")),Object(_.a)(t||[],(function(t){return R(function(e,t){var n="default";e._templates&&e._templates["layer".concat(t.clusterLevel)]&&(n="layer".concat(t.clusterLevel));var r=E(t),i=e._templates&&e._templates.parent;r&&i&&(n="parent");var o=e._templates&&e._templates[n]&&e._templates[n].attributes.direction||P.default;return{element:t,type:n,templates:e._templates,flyout:e.flyout,direction:o,_key:e._key}}(e,t))})))}},{key:"update",value:function(e){e.has("element")&&this._elementChanged(),e.has("flyout")&&this._flyoutChanged(this.flyout),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"firstUpdated",value:function(e){var t=this;d()(y()(n.prototype),"firstUpdated",this).call(this,e),Object.keys(this._template.attributes).forEach((function(e){return t.setAttribute(e,t._template.attributes[e])})),this._initLink()}},{key:"updated",value:function(e){if(d()(y()(n.prototype),"updated",this).call(this,e),e.has("hasSubelements")){if(!this.link)return;this.hasSubelements?this.link.classList.remove("ffw-navigation-link"):this.link.classList.add("ffw-navigation-link")}}},{key:"connectedCallback",value:function(){var e=this;d()(y()(n.prototype),"connectedCallback",this).call(this),this.addEventListener("click",(function(t){return e._clicked(t)}))}},{key:"_initLink",value:function(){var e=this;this.link=this.querySelector("[data-search]"),this.link&&this.link.addEventListener("click",(function(t){e.search(),t.stopPropagation(),t.cancelBubble=!0}))}},{key:"_elementChanged",value:function(){this.element?(this.clusterLevel=this.element.clusterLevel,this._subelementsUpdated()):this.clusterLevel=void 0}},{key:"_subelementsUpdated",value:function(){this.hasSubelements=E(this.element)}},{key:"_clicked",value:function(e){"false"===this.flyout&&(this.hasSubelements?(this.selected=!this.selected,this.link&&(!0===this.selected?this.link.classList.add("ffw-navigation-link"):this.link.classList.remove("ffw-navigation-link"))):this.link&&this.link.classList.add("ffw-navigation-link")),"true"!==this.flyout&&this.hasSubelements&&!this.alwaysSearchOnclick||this.search(),e.stopPropagation(),e.cancelBubble=!0}},{key:"_flyoutChanged",value:function(e){"true"===e&&(this.selected=!1)}},{key:"search",value:function(){var e=this.element.searchParams,t=k.a.common.decodeDict(k.a.common.parameterStringToDict(e.split("?")[1]));t.type="navigation-search";var n=this.parentElement;n.classList.add("ffw-container-hidden"),Promise.resolve().then((function(){Object(S.a)()&&(k.a.communication.globalCommunicationParameter.categoryPage="filter=".concat(k.b.Encoding.ngCategoryPageEncode(t.filter[0]))),k.a.communication.EventAggregator.addFFEvent(t)})),setTimeout((function(){return n.classList.remove("ffw-container-hidden")}),1e3)}},{key:"onHovered",value:function(){if(0!==this.clusterLevel)if(this.direction===P.right){var e=window.innerWidth-this.getBoundingClientRect().left;this.direction=e<500?P.left:this.direction}else if(this.direction===P.left){var t=this.getBoundingClientRect().left,n=this.getBoundingClientRect().width;this.direction=t<=n?P.right:this.direction}}}],[{key:"is",get:function(){return"ff-navigation-item"}},{key:"properties",get:function(){return{element:{type:Object,attribute:!1},direction:{type:String,reflect:!0},clusterLevel:{type:Number,reflect:!0,attribute:"cluster-level"},type:{type:String},hasSubelements:{type:Boolean,attribute:"has-subelements",reflect:!0},alwaysSearchOnclick:{type:Boolean,attribute:"always-search-onclick"},flyout:{type:String,reflect:!0},selected:{type:Boolean,reflect:!0}}}}]),n}(w.a);function E(e){return e.__SUB_ELEMENTS__&&0'])),e.element,e.direction,e.type,e.flyout,e.templates,e._key,e.selected)}window.customElements.define(x.is,x);var j,L=n(9),I=n(14),A=n(11);n.d(t,"Navigation",(function(){return M}));var T=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),M=function(e){p()(n,e);var t=function(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 n,r=y()(e);if(t){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(){var e;return s()(this,n),(e=t.call(this))._templates={},e._navigationDataInitialized=!1,e._menuTemplate=void 0,e._key=k.a.common.randomString(10),e.navigationData=[],e.layout=T.horizontal,e.flyout="true",e.mobile="false",e.fetchInitial="true",e.firstFetch=2,e.fetchSize=1,e.maxFetch=10,e.fetchTime=100,e.subscribe=!0,e}return l()(n,[{key:"render",value:function(){var e=this;return Object(b.b)(j||(j=a()(['
',"
"])),this._menuTemplate,Object(_.a)(this.navigationData,(function(t){return R(e._getHeaderNavigationItem(t))})))}},{key:"connectedCallback",value:function(){var e=this;if(d()(y()(n.prototype),"connectedCallback",this).call(this),0===Object.keys(this._templates).length&&this.querySelectorAll(x.is).forEach((function(t){var n;e._templates[t.type||"default"]||(e._templates[t.type||"default"]=!(n=t)||Object(w.d)(n)?O:{dataTemplate:n.innerHTML,attributes:Array.prototype.reduce.call(n.attributes,(function(e,t){var n=t.name,r=t.value;return"unresolved"!==n&&(e[n]=r),e}),{})})})),!this._menuTemplate){var t=this.querySelector('[slot="menu"]');t&&(this._menuTemplate=t.innerHTML)}"false"!==this.fetchInitial&&this.fetch()}},{key:"fetch",value:function(){var e={type:"navigation",firstFetch:this.firstFetch,fetchSize:this.fetchSize,maxFetch:this.maxFetch,fetchTime:this.fetchTime,key:this._key};setTimeout((function(){return k.a.communication.EventAggregator.addFFEvent(e)}))}},{key:"update",value:function(e){var t=this;e.has("layout")&&this.layout&&this.updateLayout(),e.has("flyout")&&this._flyoutChanged(this.flyout),e.has("mobile")&&this._mobileChanged(this.mobile),e.has("navigationData")&&this.updateComplete.then((function(){t.updateLayout(),Promise.all(Array.from(t.querySelectorAll("".concat(x.is,'[cluster-level="0"]'))).map((function(e){return e.childrenUpdateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),d()(y()(n.prototype),"update",this).call(this,e)}},{key:"_subscriptionCallback",value:function(e){this._navigationDataInitialized||(e&&e[0]?this.navigationData=e[0]:this.warn("Navigation has no results."),this._navigationDataInitialized=!0),this.querySelectorAll(x.is).forEach((function(e){return e._subelementsUpdated()}))}},{key:"updateLayout",value:function(){var e=this;try{this.navigationData.forEach((function(t){t.direction=e.layout===T.horizontal?P.down:t.template.attributes.direction||P.default})),this.querySelectorAll("".concat(x.is,':not([cluster-level="0"])')).forEach((function(e){e.direction=e._template.attributes.direction||P.default}))}catch(e){this.warn("Failed to change layout",e)}}},{key:"_flyoutChanged",value:function(e){e&&this.querySelectorAll(x.is).forEach((function(t){return t.flyout=e}))}},{key:"_mobileChanged",value:function(e){"true"===e&&(this.flyout="false")}},{key:"_getHeaderNavigationItem",value:function(e){var t=(this._templates.header||this._templates.default).attributes.direction||P.default;return{type:"header",templates:this._templates,direction:this.layout===T.horizontal?P.down:t,element:e,flyout:this.flyout,_key:this._key}}}],[{key:"is",get:function(){return"ff-navigation"}},{key:"properties",get:function(){return{navigationData:{type:Array,attribute:!1},layout:{type:String,reflect:!0},flyout:{type:String,reflect:!0},mobile:{type:String,reflect:!0},fetchInitial:{type:String,attribute:"fetch-initial"},firstFetch:{type:Number,attribute:"first-fetch"},fetchSize:{type:Number,attribute:"fetch-size"},maxFetch:{type:Number,attribute:"max-fetch"},fetchTime:{type:Number,attribute:"fetch-time"},subscribe:{type:w.c}}}}]),n}(Object(L.a)([Object(I.ElementLog)(),Object(A.a)(A.b.navigation)],w.a));window.customElements.define(M.is,M)},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(3),a=n.n(o),c=n(6),s=n.n(c),u=n(7),l=n.n(u),f=n(0),d=n.n(f),h=n(1),p=n(9),m=n(26);var v=function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"recordId",get:function(){return this.getAttribute("record-id")},set:function(e){return this.setAttribute("record-id",e)}},{key:"count",get:function(){return this.getAttribute("count")},set:function(e){this.setAttribute("count",e)}},{key:"price",get:function(){return this.getAttribute("price")},set:function(e){this.setAttribute("price",e)}},{key:"channel",get:function(){return this.getAttribute("channel")},set:function(e){this.setAttribute("channel",e)}},{key:"connectedCallback",value:function(){this.count||(this.count="1")}}],[{key:"is",get:function(){return"ff-checkout-tracking-item"}}]),n}(n.n(m)()(HTMLElement));window.customElements.define(v.is,v);var g=n(47),y=n(14),b=n(15);n.d(t,"CheckoutTracking",(function(){return _}));var _=function(e){s()(n,e);var t=function(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 n,r=d()(e);if(t){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"disableAutoTracking",get:function(){return this.hasAttribute("disable-auto-tracking")}},{key:"connectedCallback",value:function(){!0!==this.disableAutoTracking&&this.trackCheckoutItems()}},{key:"trackCheckoutItems",value:function(){!function(e,t){if(0!==Object.keys(t).length)7.3<=parseFloat(h.a.communication.globalSearchParameter.version)||Object(b.a)()?Object.keys(t).map((function(e){return{type:"getRecords",recordId:t[e],channel:e,topics:function(){return["checkout-tracking"]}}})).forEach((function(t){e.dispatchEvent(new CustomEvent("before-get-records",{detail:t,bubbles:!0})),t.success=h.a.common.concatFunctions(t.success,(function(t){t.forEach((function(t){var n=e.querySelector("[record-id='".concat(t.id,"']"));n&&t.record&&(t.record[g.INTERNAL_TRACKING_PRICE_FIELD_NAME]=n.price),e._trackCheckoutClick(n,t)}))})),h.a.communication.EventAggregator.addFFEvent(t)})):e.warn("Your FACT-Finder version does not support . Requires version 7.3 or ng")}(this,Array.prototype.reduce.call(this.querySelectorAll(v.is),(function(e,t){var n=t.channel||h.a.communication.globalSearchParameter.channel;return e[n]=e[n]||[],e[n].push(t.recordId.trim()),e}),{}))}}],[{key:"is",get:function(){return"ff-checkout-tracking"}}]),n}(Object(p.a)([Object(y.ElementLog)(),Object(g.Tracking)()],HTMLElement));window.customElements.define(_.is,_)},function(e,t,n){"use strict";n.r(t);var r,i=n(19),o=n.n(i),a=n(8),c=n.n(a),s=n(4),u=n.n(s),l=n(3),f=n.n(l),d=n(2),h=n.n(d),p=n(6),m=n.n(p),v=n(7),g=n.n(v),y=n(0),b=n.n(y),_=n(12),k=n(21),w=n.n(k),C=n(17),S=n(9),P=n(14),O=n(1),x=n(5),E=n(28);var R="[data-search='singleWord']",j={dataTemplate:'
\n

{{word}} ({{recordCount}})

\n \n \n \n
{{record.Title}}
\n
\n
\n
',attributes:{}},L=function(e){m()(n,e);var t=function(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 n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e;return u()(this,n),(e=t.call(this))._template=void 0,e._handleSingleSearchClick=I(w()(e)),e}return f()(n,[{key:"render",value:function(){return Object(_.g)(this._template?[this._template.dataTemplate]:[])}},{key:"firstUpdated",value:function(e){var t=this;h()(b()(n.prototype),"firstUpdated",this).call(this,e),this._template&&Object.keys(this._template.attributes).forEach((function(e){return t.setAttribute(e,t._template.attributes[e])}))}},{key:"updated",value:function(e){h()(b()(n.prototype),"updated",this).call(this,e),e.has("word")&&A(this,this.word)}},{key:"connectedCallback",value:function(){h()(b()(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector(C.RecordList.is);e?(e.setAttribute("subscribe","false"),e.innerHTML=e._origHTML):Object(x.d)(this)||this.warn("".concat(C.RecordList.is," not found. Data will not be displayed."))}}],[{key:"is",get:function(){return"ff-single-word-search-record"}},{key:"properties",get:function(){return{_template:{type:Object,attribute:!1},word:{type:Object,attribute:!1}}}}]),n}(Object(S.a)([Object(P.ElementLog)()],x.a)),I=function(e){return function(){try{var t=O.a.common.getParameterString(e.word.searchParams),n=O.a.common.parameterStringToDict(t);n.type="search",O.a.communication.EventAggregator.addFFEvent(n)}catch(t){e.error(t)}}},A=function(e,t){if(e.hideSelf(),t){var n=e.querySelector(R);n&&(n.innerHTML=Object(E.a)(n.innerHTML,t));var r=e.querySelector(C.RecordList.is);r?r.records=t.previewRecords:e.warn("".concat(C.RecordList.is," not found. Data will not be displayed.")),T(e,e._handleSingleSearchClick),M(e,e._handleSingleSearchClick),e.showSelf()}},T=function(e,t){e.querySelectorAll(R).forEach((function(e){return e.removeEventListener("click",t)}))},M=function(e,t){e.querySelectorAll(R).forEach((function(e){return e.addEventListener("click",t)}))};window.customElements.define(L.is,L);var N,D,F=n(23),B=n(11);n.d(t,"SingleWordSearch",(function(){return V}));var V=function(e){m()(n,e);var t=function(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 n,r=b()(e);if(t){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g()(this,n)}}(n);function n(){var e;return u()(this,n),(e=t.call(this))._headerTemplate=void 0,e._singleWordRecordTemplate=void 0,e._footerTemplate=void 0,e.words=[],e}return f()(n,[{key:"render",value:function(){var e=this;return!this.words||0'])),n,i);var n,i})),Object(x.e)(this._footerTemplate))}},{key:"updated",value:function(e){var t=this;h()(b()(n.prototype),"updated",this).call(this,e),this.updateComplete.then((function(){Promise.all(Array.from(t.querySelectorAll(L.is)).map((function(e){return e.updateComplete}))).then((function(){t.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}},{key:"connectedCallback",value:function(){h()(b()(n.prototype),"connectedCallback",this).call(this);var e,t=this.querySelector(L.is),r=U(t),i=q(t);this._headerTemplate=this._headerTemplate||z(r),this._singleWordRecordTemplate=this._singleWordRecordTemplate||(!(e=t)||Object(x.d)(e)?j:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,(function(e,t){var n=t.name,r=t.value;return e[n]=r,e}),{})}),this._footerTemplate=this._footerTemplate||z(i)}},{key:"_subscriptionCallback",value:function(e){this.words=e||[]}}],[{key:"is",get:function(){return"ff-single-word-search"}},{key:"properties",get:function(){return{words:{type:Array}}}}]),n}(Object(S.a)([Object(B.a)(B.b.singleWordSearch)],x.a)),U=function(e){if(!e)return[];var t=o()(e.parentNode.childNodes);return t.slice(0,t.indexOf(e))},q=function(e){if(!e)return[];var t=o()(e.parentNode.childNodes);return t.slice(t.indexOf(e)+1)},z=function(e){var t=document.createElement("div");return e.forEach((function(e){return t.appendChild(e)})),t.innerHTML};window.customElements.define(V.is,V)},function(e,t,n){"use strict";n.r(t);var r,i=n(8),o=n.n(i),a=n(4),c=n.n(a),s=n(3),u=n.n(s),l=n(2),f=n.n(l),d=n(6),h=n.n(d),p=n(7),m=n.n(p),v=n(0),g=n.n(v),y=n(10),b=n(43),_=n(12),k=new WeakMap,w=Object(_.f)((function(e){return function(t){if(!(t instanceof _.a)||t instanceof _.c||"style"!==t.committer.name||1'])),Object(b.a)({"ffw-hidden":!this.isActive}),w({stroke:this.strokeColor}))}},{key:"update",value:function(e){e.has("manual")&&(this.manual?this._subscriptionKey&&(C.a.communication.EventAggregator.removeBeforeDispatchingCallback(this._subscriptionKey),this._subscriptionKey=void 0):function(e){e._subscriptionKey||(e._subscriptionKey=C.a.communication.EventAggregator.addBeforeDispatchingCallback((function(t){-1!==["search","filter","sort","clearFilter","advisor"].indexOf(t.type)&&(e.show(),t.always=C.a.common.concatFunctions((function(){return e.hide()}),t.always))})))}(this)),f()(g()(n.prototype),"update",this).call(this,e)}},{key:"show",value:function(){this.isActive=!0}},{key:"hide",value:function(){this.isActive=!1}}],[{key:"is",get:function(){return"ff-loading-spinner"}},{key:"properties",get:function(){return{isActive:{type:Boolean,reflect:!0,attribute:"is-active"},strokeColor:{type:String,attribute:"stroke-color"},manual:{type:Boolean,reflect:!0}}}}]),n}(S.a);window.customElements.define(P.is,P)}]);