diff --git a/CHANGELOG.md b/CHANGELOG.md index 3afa66be..e74a9961 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## Unreleased +### Update +- Update WebComponents library to version 5.1.7 + ## [v5.2.1] - 2025.07.17 ### Change - Support tab navigation for search, suggest and paging components diff --git a/src/view/frontend/web/ff-web-components/bundle.js b/src/view/frontend/web/ff-web-components/bundle.js index a9fc458a..828976c6 100644 --- a/src/view/frontend/web/ff-web-components/bundle.js +++ b/src/view/frontend/web/ff-web-components/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(function(){var __webpack_modules__={9707:function(e,t,i){"use strict";function r(e){return t=>{if("function"!=typeof t)throw Error("Parameter must be a function.");return e(t)}}i.d(t,{z:function(){return r}})},8675:function(e,t,i){"use strict";i.r(t),i.d(t,{internalRouting:function(){return s},publicRouting:function(){return a}});var r=i(9707),n=i(2207);const s={requestNavigate:(e,t,i)=>{var r,s;e&&t||console.debug("[INTERNAL] 'requestNavigate' did not receive all parameters",{url:e,origin:t}),!1!==(null===(r=o.navigateListener)||void 0===r?void 0:r.call(o,e,t))&&(null!==(s=n.u.getConfig().appConfig)&&void 0!==s&&s.sandboxMode||(i?window.open(e,i):window.location.href=e))},invokeUrlParamOptionsListener:()=>{var e;return null===(e=o.urlParamOptionsListener)||void 0===e?void 0:e.call(o)},sandboxed:{setPopstateListener:e=>{o.sandboxed.historyReadListener=e},invokeHistoryWriteListener:e=>{var t,i;return null===(t=(i=o.sandboxed).historyWriteListener)||void 0===t?void 0:t.call(i,e)},requestSessionData:()=>{var e,t;return null===(e=(t=o.sandboxed).sessionReadListener)||void 0===e?void 0:e.call(t)},broadcastSessionData:e=>{var t,i;return null===(t=(i=o.sandboxed).sessionWriteListener)||void 0===t?void 0:t.call(i,e)}}},a=Object.freeze({setNavigateListener:(0,r.z)((e=>{o.navigateListener=e})),setUrlParamOptionsListener:(0,r.z)((e=>{o.urlParamOptionsListener=e})),sandboxed:Object.freeze({restoreHistory:e=>{var t;if(null!==(t=n.u.getConfig().appConfig)&&void 0!==t&&t.sandboxMode){if(!e)throw Error("'payload' is required.");o.sandboxed.historyReadListener(e)}else console.warn("'restoreHistory' is only available in sandbox mode.")},setHistoryWriteListener:(0,r.z)((e=>{o.sandboxed.historyWriteListener=e})),setSessionReadWriteListeners:e=>{const{read:t,write:i}=e;if("function"!=typeof t)throw Error("'read' listener must be a function. Was: ".concat(typeof t));if("function"!=typeof i)throw Error("'write' listener must be a function. Was: ".concat(typeof i));o.sandboxed.sessionReadListener=t,o.sandboxed.sessionWriteListener=i}})}),o={navigateListener:void 0,urlParamOptionsListener:void 0,sandboxed:{historyReadListener:void 0,historyWriteListener:void 0,sessionReadListener:void 0,sessionWriteListener:void 0}}},684:function(e,t){let i,r,n;t.sysConfig={get autoFetch(){return i()},get debug(){return r()},get sandboxMode(){return n()}},t.registerGetAutoFetch=e=>()=>{i=e},t.registerGetDebug=e=>()=>{r=e},t.registerGetSandboxMode=e=>()=>{n=e}},1573:function(e,t,i){"use strict";var r=i(684);e.exports={sysConfig:r.sysConfig,registerGetAutoFetch:r.registerGetAutoFetch,registerGetDebug:r.registerGetDebug,registerGetSandboxMode:r.registerGetSandboxMode}},6851:function(e,t){function i(e){return JSON.parse(JSON.stringify(e))}t.mergeFFIMaybeRecords=e=>t=>void 0===e?t:void 0===t?e:r(i(e),t),t.mergeFFIMaybeRecordsKeepUndefined=e=>t=>void 0===e?t:void 0===t?e:r(e,t),t.configImpl=e=>({get val(){return e()}}),t.merge=e=>t=>r(i(e),t),t.toWK=e=>e,t.toWKUnit=()=>{},t.toWKInternal=e=>e,t.jsonClone=i;const r=(e,t)=>Object.assign({},t,e)},1287:function(e,t,i){"use strict";var r=i(6851),n=i(1573),s=i(3139),a=i(8850),o=i(6535),c=i(4884),u=i(4269),l=i(8164),d=i(7313),p=i(8583),h=i(7860),f=i(8455),m=i(2024),g=i(416),b=function(e){return e},v=function(e){return e},y={validateSync:function(e){return h.validateObjectSyncImpl("FFParams")(e)([])([h.acceptUndefined(h.nonEmptyString)("purchaserId"),h.acceptUndefined(h.nonEmptyString)("sid"),h.acceptUndefined(h.nonEmptyString)("userId")])}},_={validateSync:function(e){return h.validateObjectSyncImpl("AppConfig")(e)([])([h.nonEmptyString("autoFetch"),h.acceptUndefined(h.array)("categoryPage"),h.acceptUndefined(h.arrayNonEmptyString)("dataBindingTags"),h.boolean("debug"),h.acceptUndefined(h.object)("fieldRoles"),h.acceptUndefined(h.object)("formatting"),h.boolean("sandboxMode")])}},S={validateSync:function(e){return h.validateObjectSyncImpl("Config")(e)(["ff"])([h.object("ff"),h.object("ffParams"),h.object("appConfig")])}},k={requireArgSync:function(e){return function(t){return h.requireArgSyncImpl(e)(h.object(t))}}},C={requireArgSync:function(e){return function(t){return h.requireArgSyncImpl(e)(h.object(t))}}},w={requireArgSync:function(e){return function(t){return h.requireArgSyncImpl(e)(h.object(t))}}},P={ff:{apiKey:"",channel:"",url:""},ffParams:m[void 0],appConfig:s.pure(m.applicativeFFIMaybe)({autoFetch:s.pure(m.applicativeFFIMaybe)("SSR_ONLY"),categoryPage:m[void 0],dataBindingTags:m[void 0],debug:s.pure(m.applicativeFFIMaybe)(!1),fieldRoles:m[void 0],formatting:m[void 0],sandboxMode:s.pure(m.applicativeFFIMaybe)(!1)})},x=p.unsafePerformEffect(d.new(P)),E=r.configImpl((function(e){return p.unsafePerformEffect(c.mapFlipped(l.functorEffect)(d.read(x))((function(e){return e})))})),I=f.merge,F=f.merge;e.exports={ConfigFFParams:b,config:E,getConfig:function(e){return r.toWKInternal(E.val)},getConfigClone:function(e){return r.toWK(r.jsonClone(E.val))},init:function(e){var t=function(e){return function(t){return function(i){return m.fromFFIMaybe(m.fromFFIMaybe(e)(a.bind(m.bindFFIMaybe)(P.appConfig)(t)))(a.bind(m.bindFFIMaybe)(E.val.appConfig)(t))}}};return r.toWKInternal(p.unsafePerformEffect((function(){var i,s=a.bindFlipped(l.bindEffect)(g.validateSync(S))(g.requireArgSync(w)(e)("options"))(),o=(i=s,function(e){var t=c.mapFlipped(m.functorFFIMaybe)(e.ffParams)((function(e){return e})),n=c.mapFlipped(m.functorFFIMaybe)(i.ffParams)((function(e){return e})),s=c.map(m.functorFFIMaybe)(b)(r.mergeFFIMaybeRecords(n)(t)),a=r.merge(i.ff)(e.ff),o=c.mapFlipped(m.functorFFIMaybe)(e.appConfig)((function(e){return e})),u=c.mapFlipped(m.functorFFIMaybe)(i.appConfig)((function(e){return e}));return{ff:a,ffParams:s,appConfig:c.map(m.functorFFIMaybe)(v)(r.mergeFFIMaybeRecords(u)(o))}})(P);d.write(o)(x)(),n.registerGetAutoFetch(t("")((function(e){return e.autoFetch})))(),n.registerGetDebug(t(!1)((function(e){return e.debug})))(),n.registerGetSandboxMode(t(!1)((function(e){return e.sandboxMode})))();return u.unit})))},setAppConfig:function(e){return r.toWKUnit(p.unsafePerformEffect((function(){var t=a.bindFlipped(l.bindEffect)(g.validateSync(_))(g.requireArgSync(C)(e)("appConfig"))();return d.modify_((function(e){var i=c.mapFlipped(m.functorFFIMaybe)(e.appConfig)((function(e){return e})),n=c.map(m.functorFFIMaybe)(v)(r.mergeFFIMaybeRecordsKeepUndefined(s.pure(m.applicativeFFIMaybe)(t))(i));return r.merge({appConfig:n})(e)}))(x)()})))},setFFParams:function(e){return r.toWKUnit(p.unsafePerformEffect((function(){var t=a.bindFlipped(l.bindEffect)(g.validateSync(y))(g.requireArgSync(k)(e)("ffParams"))();return d.modify_((function(e){var i=c.mapFlipped(m.functorFFIMaybe)(e.ffParams)((function(e){return e})),n=c.map(m.functorFFIMaybe)(b)(r.mergeFFIMaybeRecordsKeepUndefined(s.pure(m.applicativeFFIMaybe)(t))(i));return r.merge({ffParams:n})(e)}))(x)()})))},setFieldRoles:function(e){return d.modify_((function(t){var i=c.mapFlipped(m.functorFFIMaybe)(t.appConfig)((function(e){return e})),n=c.map(m.functorFFIMaybe)(v)(r.mergeFFIMaybeRecords(i)(s.pure(m.applicativeFFIMaybe)({fieldRoles:s.pure(m.applicativeFFIMaybe)(e)})));return r.merge({appConfig:n})(t)}))(x)},setPurchaserId:function(e){var t=a.bind(m.bindFFIMaybe)(E.val.ffParams)((function(e){return e.purchaserId}));return o.eq(m.eqFFIMaybe)(e.purchaserId)(m[void 0])&&o.notEq(m.eqFFIMaybe)(t)(m[void 0])?s.pure(l.applicativeEffect)(F({purchaserId:t})(e)):s.pure(l.applicativeEffect)(e)},setUserId:function(e){var t=a.bind(m.bindFFIMaybe)(E.val.ffParams)((function(e){return e.userId}));return o.eq(m.eqFFIMaybe)(e.userId)(m[void 0])&&o.notEq(m.eqFFIMaybe)(t)(m[void 0])?s.pure(l.applicativeEffect)(I({userId:t})(e)):s.pure(l.applicativeEffect)(e)},requireArgSyncConfig:w,requireArgSyncConfigFFPar:k,requireArgSyncConfigAppCo:C,validateSyncConfig:S,validateSyncConfigFFParam:y,validateSyncConfigAppConf:_}},3139:function(e,t,i){"use strict";var r=i(7793),n=i(4269),s=function(e){return e.pure};e.exports={pure:s,liftA1:function(e){return function(t){return function(i){return r.apply(e.Apply0())(s(e)(t))(i)}}},when:function(e){return function(t){return function(i){if(t)return i;if(!t)return s(e)(n.unit);throw new Error("Failed pattern match at Control.Applicative (line 61, column 1 - line 61, column 63): "+[t.constructor.name,i.constructor.name])}}}}},748:function(e,t){"use strict";t.arrayApply=function(e){return function(t){for(var i=e.length,r=t.length,n=new Array(i*r),s=0,a=0;a=0;n--)r=e(i[n])(r);return r}}},t.foldlArray=function(e){return function(t){return function(i){for(var r=t,n=i.length,s=0;st=>{const i=sessionStorage;if("true"===i.ffdebug||"false"!==i.ffdebug&&!0===e)throw Error(t);console.error(t)}},1184:function(e,t,i){"use strict";var r=i(8552),n=i(1573);e.exports={emitError:function(e){return r.emitErrorImpl(n.sysConfig.debug)(e)}}},8687:function(e,t,i){"use strict";var r=i(1287),n=i(333),s=i(7905),a=i(4932),o=i(5645),c={request:{campaignPage:n.campaignPage,campaignProduct:n.campaignProduct,campaignShoppingCart:n.campaignShoppingCart,compare:n.compare,navigation:n.navigation,navigationCategory:n.navigationCategory,popularSearches:n.popularSearches,predictiveBasket:n.predictiveBasket,recommendation:n.recommendation,records:n.records,search:n.search,similar:n.similar,suggest:n.suggest,before:{campaignPage:s.beforeCampaignPage,campaignProduct:s.beforeCampaignProduct,campaignShoppingCart:s.beforeCampaignShoppingCart,compare:s.beforeCompare,navigation:s.beforeNavigation,navigationCategory:s.beforeNavigationCategory,popularSearches:s.beforePopularSearches,predictiveBasket:s.beforePredictiveBasket,recommendation:s.beforeRecommendation,records:s.beforeRecords,search:s.beforeSearch,similar:s.beforeSimilar,suggest:s.beforeSuggest}},response:{subscribeCampaignPage:o.subscribeCampaignPage,subscribeCampaignProduct:o.subscribeCampaignProduct,subscribeCampaignRedirect:o.subscribeCampaignRedirect,subscribeCampaignShoppingCart:o.subscribeCampaignShoppingCart,subscribeCompare:o.subscribeCompare,subscribeNavigation:o.subscribeNavigation,subscribeNavigationCategory:o.subscribeNavigationCategory,subscribePopularSearches:o.subscribePopularSearches,subscribePredictiveBasket:o.subscribePredictiveBasket,subscribeRecommendation:o.subscribeRecommendation,subscribeRecords:o.subscribeRecords,subscribeSearch:o.subscribeSearch,subscribeSimilar:o.subscribeSimilar,subscribeSuggest:o.subscribeSuggest,subscribeSearchAndNavigation:o.subscribeSearchAndNavigation,unsubscribe:o.unsubscribe,transformCampaignPage:o.transformCampaignPage,transformCampaignProduct:o.transformCampaignProduct,transformCampaignShoppingCart:o.transformCampaignShoppingCart,transformCompare:o.transformCompare,transformNavigation:o.transformNavigation,transformNavigationCategory:o.transformNavigationCategory,transformPopularSearches:o.transformPopularSearches,transformPredictiveBasket:o.transformPredictiveBasket,transformRecommendation:o.transformRecommendation,transformRecords:o.transformRecords,transformSearch:o.transformSearch,transformSimilar:o.transformSimilar,transformSuggest:o.transformSuggest,dispatch:{navigation:o.dispatchNavigation,navigationBeforeTransform:o.dispatchNavigationBeforeTransform,popularSearches:o.dispatchPopularSearches,search:o.dispatchSearch,searchBeforeTransform:o.dispatchSearchBeforeTransform,suggest:o.dispatchSuggest,ssrNavigation:o.dispatchSsrNavigation,ssrSearch:o.dispatchSsrSearch}},tracking:{cart:a.cart,checkout:a.checkout,click:a.click,landingPageClick:a.landingPageClick,login:a.login,predbasketClick:a.predbasketClick,recommendationClick:a.recommendationClick,before:{cart:s.beforeTrackCart,checkout:s.beforeTrackCheckout,click:s.beforeTrackClick,landingPageClick:s.beforeTrackLandingPageClick,login:s.beforeTrackLogin,predbasketClick:s.beforeTrackPredBasketClick,recommendationClick:s.beforeTrackRecommendationClick}},config:{get:r.getConfigClone,setFFParams:r.setFFParams,setAppConfig:r.setAppConfig}},u={elementsBeforeAllSubscribePopularSearches:o.elementsBeforeAllSubscribePopularSearches,elementsSubscribeCampaignPage:o.elementsSubscribeCampaignPage,elementsSubscribeCampaignProduct:o.elementsSubscribeCampaignProduct,elementsSubscribeCampaignShoppingCart:o.elementsSubscribeCampaignShoppingCart,elementsSubscribeCompare:o.elementsSubscribeCompare,elementsSubscribeNavigation:o.elementsSubscribeNavigation,elementsSubscribeNavigationCategory:o.elementsSubscribeNavigationCategory,elementsSubscribePopularSearches:o.elementsSubscribePopularSearches,elementsSubscribePredictiveBasket:o.elementsSubscribePredictiveBasket,elementsSubscribeRecommendation:o.elementsSubscribeRecommendation,elementsSubscribeRecords:o.elementsSubscribeRecords,elementsSubscribeSearch:o.elementsSubscribeSearch,elementsSubscribeSimilar:o.elementsSubscribeSimilar,elementsSubscribeSuggest:o.elementsSubscribeSuggest,elementsSubscribeSearchAndNavigation:o.elementsSubscribeSearchAndNavigation,elementsUnsubscribe:o.elementsUnsubscribe,getConfig:r.getConfig,init:r.init};e.exports={publicCore:c,internalCore:u}},6240:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("CartOrCheckoutEvent")(e)(["count","id","sid"])([r.nonEmptyString("campaign"),r.integer("count"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.number("price"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateCartOrCheckoutEve:n}},2830:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("ClickEvent")(e)(["id","pos","query","sid"])([r.nonEmptyString("campaign"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.integer("page"),r.integer("pageSize"),r.integer("pos"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.number("score"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateClickEvent:n}},6949:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("LandingPageClickEvent")(e)(["campaign","id","pageId","sid"])([r.nonEmptyString("campaign"),r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.nonEmptyString("pageId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateLandingPageClickE:n}},7162:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("LoginEvent")(e)(["sid","userId"])([r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("userId")])}};e.exports={validateLoginEvent:n}},3202:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("NavigationParams")(e)([])([r.object("activeAbTests"),r.object("advisorStatus"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.boolean("showPermutedSearchParams"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={NavigationParams:function(e){return e},requireArgNavigationParam:s,validateNavigationParams:n}},2652:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("PredBasketClickEvent")(e)(["id","sid","userId"])([r.nonEmptyString("id"),r.nonEmptyString("masterId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validatePredBasketClickEv:n}},820:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("pageId"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignPageParams")(e)(["pageId"])(s)}};e.exports={CampaignPageParams:function(e){return e},requireArgCampaignPagePar:n,validateCampaignPageParam:o,queryStringCampaignPagePa:a}},8309:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.nonEmptyString("id"),r.nonEmptyString("idType"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignProductParams")(e)(["id"])(s)}};e.exports={CampaignProductParams:function(e){return e},requireArgCampaignProduct:n,validateCampaignProductPa:o,queryStringCampaignProduc:a}},4551:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyArray("productNumber")(r.nonEmptyString("")),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.nonEmptyString("sid")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CampaignShoppingCartParams")(e)(["productNumber"])(s)}};e.exports={CampaignShoppingCartParams:function(e){return e},requireArgCampaignShoppin:n,validateCampaignShoppingC:o,queryStringCampaignShoppi:a}},3854:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("id"),r.boolean("idsOnly"),r.nonEmptyString("purchaserId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("CompareParams")(e)([])(s)}};e.exports={CompareParams:function(e){return e},requireArgCompareParams:n,validateCompareParams:o,queryStringCompareParams:a}},8755:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("cacheIrrelevant"),r.integer("endLevel"),r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.nonEmptyString("purchaserId"),r.boolean("showMarkets"),r.boolean("showPermutedSearchParams"),r.nonEmptyString("sid"),r.integer("splitDocumentsAt"),r.integer("startLevel"),r.arrayNonEmptyString("substringFilter"),r.boolean("useAbTest"),r.boolean("useCache"),r.boolean("useGeo"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("NavigationCategoryParams")(e)([])(s)}};e.exports={NavigationCategoryParams:function(e){return e},requireArgNavigationCateg:n,validateNavigationCategor:o,queryStringNavigationCate:a}},7724:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.arrayNonEmptyString("blacklist"),r.arrayNonEmptyString("filter"),r.boolean("idsOnly"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("PredictiveBasketParams")(e)(["userId"])(s)}};e.exports={PredictiveBasketParams:function(e){return e},requireArgPredictiveBaske:n,validatePredictiveBasketP:o,queryStringPredictiveBask:a}},1068:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.nonEmptyArray("id")(r.nonEmptyString("")),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.boolean("usePersonalization"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("RecommendationParams")(e)(["id"])(s)}};e.exports={RecommendationParams:function(e){return e},requireArgRecommendationP:n,validateRecommendationPar:o,queryStringRecommendation:a}},6681:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.nonEmptyArray("productNumber")(r.nonEmptyString("")),r.nonEmptyString("purchaserId"),r.boolean("verbose")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("RecordsParams")(e)(["productNumber"])(s)}};e.exports={RecordsParams:function(e){return e},requireArgRecordsParams:n,validateRecordsParams:o,queryStringRecordsParams:a}},2637:function(e,t,i){"use strict";var r=i(7860),n={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}},s=[r.boolean("excludeProductsNotInRange"),r.arrayNonEmptyString("filter"),r.nonEmptyString("id"),r.nonEmptyString("idType"),r.boolean("idsOnly"),r.number("latitude"),r.number("longitude"),r.arrayNonEmptyString("marketId"),r.number("maxDistance"),r.integer("maxResults"),r.nonEmptyString("purchaserId"),r.nonEmptyString("userId")],a={toQueryString:function(e){return r.toQueryStringImpl(a)(s)(e)}},o={validate:function(e){return r.validateObjectImpl("SimilarParams")(e)(["id","idType"])(s)}};e.exports={SimilarParams:function(e){return e},requireArgSimilarParams:n,validateSimilarParams:o,queryStringSimilarParams:a}},4908:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("RecommendationClickEvent")(e)(["id","mainId","sid"])([r.nonEmptyString("id"),r.nonEmptyString("mainId"),r.nonEmptyString("masterId"),r.nonEmptyString("purchaserId"),r.nonEmptyString("sid"),r.nonEmptyString("title"),r.nonEmptyString("userId")])}};e.exports={validateRecommendationCli:n}},2682:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("SearchParams")(e)(["query"])([r.object("activeAbTests"),r.object("advisorStatus"),r.nonEmptyString("articleNumberSearch"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.nonEmptyString("searchField"),r.boolean("showMarkets"),r.boolean("showPermutedSearchParams"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={SearchParams:function(e){return e},requireArgSearchParams:s,validateSearchParams:n}},7663:function(e,t,i){"use strict";var r=i(7860),n={validate:function(e){return r.validateObjectImpl("SuggestParams")(e)(["query"])([r.object("activeAbTests"),r.object("advisorStatus"),r.nonEmptyString("articleNumberSearch"),r.array("customParameters"),r.boolean("excludeProductsNotInRange"),r.array("filters"),r.nonEmptyString("followSearch"),r.integer("hitsPerPage"),r.boolean("includeMarketIdsForNonResultFields"),r.object("location"),r.arrayNonEmptyString("marketIds"),r.integer("maxCountVariants"),r.number("maxDistance"),r.integer("page"),r.nonEmptyString("purchaserId"),r.nonEmptyString("query"),r.nonEmptyString("searchField"),r.boolean("showMarkets"),r.boolean("showPermutedSearchParams"),r.nonEmptyString("sid"),r.array("sortItems"),r.integer("splitDocumentsAt")])}},s={requireArg:function(e){return function(t){return r.requireArgImpl(e)(r.object(t))}}};e.exports={SuggestParams:function(e){return e},requireArgSuggestParams:s,validateSuggestParams:n}},3555:function(e,t){t.requireArgImpl_=e=>t=>i=>a((e=>Promise.resolve(e)),(e=>Promise.reject(e)),e,t,i),t.requireArgSyncImpl_=e=>t=>i=>()=>a((e=>e),(()=>{}),e,t,i),t.checkOptionalArgImpl_=e=>t=>i=>n=>s=>{if(!r(n))return Promise.resolve(i);const a=s[1];if(!a.validate(n)){const t=a.errMsg(n);return e(t),Promise.reject(t)}return Promise.resolve(t(n))},t.validateObjectImpl_=e=>t=>i=>r=>n=>o((e=>Promise.resolve(e)),(e=>Promise.reject(e)),e,t,i,r,n),t.validateObjectSyncImpl_=e=>t=>i=>r=>n=>()=>o((e=>e),(()=>{}),e,t,i,r,n);const i=(e,t,i,r)=>({validate:e,errMsg:t,typeName:i,stringify:r});t.any=e=>[e,i((()=>!0),n(""),"any")],t.array=e=>[e,i(Array.isArray,n("'".concat(e,"' must be an array.")),"array")],t.headers=e=>[e,i((e=>e&&("[object Object]"===e.toString()||e instanceof Headers)),n("'".concat(e,"' must be a plain object or an instance of Headers.")),"headers")],t.object=e=>[e,i((e=>e&&"[object Object]"===e.toString()),n("'".concat(e,"' must be a plain object.")),"object")],t.arrayNonEmptyString=e=>[e,i((e=>Array.isArray(e)&&e.every((e=>e&&"string"==typeof e))),n("'".concat(e,"' must be an array of non-empty strings.")),"array of non-empty strings",(e=>e))],t.boolean=e=>[e,i((e=>"boolean"==typeof e),n("'".concat(e,"' must be a boolean.")),"boolean",(e=>[String(e)]))],t.integer=e=>[e,i((e=>Number.isInteger(e)),n("'".concat(e,"' must be a whole number.")),"integer",(e=>[String(e)]))],t.nonEmptyString=e=>[e,i((e=>"string"==typeof e&&!!e),n("'".concat(e,"' must be a non-empty string.")),"non-empty string",(e=>[e]))],t.number=e=>[e,i((e=>"number"==typeof e),n("'".concat(e,"' must be a number.")),"number",(e=>[String(e)]))],t.nonEmptyArray=e=>t=>[e,i((e=>Array.isArray(e)&&e.length&&e.every(t[1].validate)),n("'".concat(e,"' must be a non-empty array of type ").concat(t[1].typeName,".")),"non-empty array",t[1].stringify&&(e=>e.map(t[1].stringify)))],t.acceptUndefined=e=>t=>{const r=e(t)[1];return[t,i((e=>void 0===e||r.validate(e)),r.errMsg,r.typeName,r.stringify)]},t.toQueryStringImpl_=e=>t=>{const i=e.filter((e=>t.hasOwnProperty(e[0]))),r=new URLSearchParams;return i.forEach((e=>{const i=e[0];e[1].stringify(t[i]).forEach((e=>r.append(i,e)))})),r.toString()},t.withStringifier=e=>e.filter((e=>e[1].stringify));const r=e=>null!=e,n=e=>t=>{return e+" Was: '".concat((i=t,""===i?'""':Array.isArray(i)?"[".concat(i,"]"):String(i)),"' (Type: ").concat(r(t)?t.constructor.name:"unknown",")");var i},s=(e,t)=>"".concat(e,": ").concat(t);function a(e,t,i,n,s){if(!r(n)){const e="Required argument '".concat(s[0],"' not specified.");return i(e),t(e)}const a=s[1];if(!a.validate(n)){const e=a.errMsg(n);return i(e),t(e)}return e(n)}function o(e,t,i,r,n,a,o){const c=Object.keys(n),u=[];let l=!0;a.forEach((e=>{if(!c.includes(e)){const t=s(r,"'".concat(e,"' is required."));i(t),u.push(t),l=!1}}));const d=new Map(o);return c.forEach((e=>{if(!d.has(e)){const t=s(r,"'".concat(e,"' is not a valid parameter."));return i(t),u.push(t),void(l=!1)}if(!d.get(e).validate(n[e])){const t=s(r,d.get(e).errMsg(n[e]));i(t),u.push(t),l=!1}})),l?e(n):t(u)}},7860:function(e,t,i){"use strict";var r=i(3555),n=i(4884),s=i(596),a=i(9704),o=i(1184),c=i(416),u=r.validateObjectSyncImpl_(o.emitError),l=r.validateObjectImpl_(o.emitError),d=r.requireArgSyncImpl_(o.emitError),p=r.requireArgImpl_(o.emitError),h=r.checkOptionalArgImpl_(o.emitError)(s.Just.create)(s.Nothing.value);e.exports={requireArgImpl:p,requireArgSyncImpl:d,checkOptionalArgImpl:h,validateObjectImpl:l,validateObjectSyncImpl:u,validateOptionalObjectImpl:function(e){return function(t){return function(i){return function(r){return a.sequence(a.traversableMaybe)(c.applicativeFF)(n.mapFlipped(s.functorMaybe)(t)((function(t){return l(e)(t)(i)(r)})))}}}},toQueryString:function(e){return e.toQueryString},toQueryStringImpl:function(e){return function(e){return function(t){return r.toQueryStringImpl_(r.withStringifier(e))(t)}}},nonEmptyString:r.nonEmptyString,integer:r.integer,number:r.number,boolean:r.boolean,array:r.array,arrayNonEmptyString:r.arrayNonEmptyString,nonEmptyArray:r.nonEmptyArray,object:r.object,headers:r.headers,any:r.any,acceptUndefined:r.acceptUndefined}},7683:function(e,t){t.emptyNavigationOptions={}},2212:function(e,t,i){"use strict";var r=i(7683),n=i(7860),s={validateOptional:function(e){return n.validateOptionalObjectImpl("NavigationOptions")(e)([])([n.object("searchControlParams"),n.nonEmptyString("sid"),n.nonEmptyString("userId"),n.object("requestOptions"),n.boolean("initial"),n.boolean("withoutHistory")])}},a={checkOptionalArg:function(e){return function(t){return n.checkOptionalArgImpl(e)(n.object(t))}}};e.exports={WKNavigationOptions:function(e){return e},checkOptionalArgWKNavigat:a,validateOptionalWKNavigat:s,emptyNavigationOptions:r.emptyNavigationOptions}},1327:function(e,t,i){"use strict";var r=i(7860),n={validateOptional:function(e){return r.validateOptionalObjectImpl("RequestOptions")(e)([])([r.headers("headers"),r.boolean("bypassGlobalConfig"),r.nonEmptyString("channel"),r.any("origin"),r.boolean("requestOnly"),r.boolean("skipBeforeHandlers")])}},s={checkOptionalArg:function(e){return function(t){return r.checkOptionalArgImpl(e)(r.object(t))}}};e.exports={WKRequestOptions:function(e){return e},checkOptionalArgWKRequest:s,validateOptionalWKRequest:n}},8968:function(e,t){t.emptySearchOptions={}},6996:function(e,t,i){"use strict";var r=i(8968),n=i(7860),s={validateOptional:function(e){return n.validateOptionalObjectImpl("SearchOptions")(e)([])([n.object("searchControlParams"),n.nonEmptyString("sid"),n.nonEmptyString("userId"),n.nonEmptyString("userInput"),n.object("requestOptions"),n.boolean("initial"),n.boolean("withoutHistory")])}},a={checkOptionalArg:function(e){return function(t){return n.checkOptionalArgImpl(e)(n.object(t))}}};e.exports={WKSearchOptions:function(e){return e},checkOptionalArgWKSearchO:a,validateOptionalWKSearchO:s,emptySearchOptions:r.emptySearchOptions}},863:function(e,t){t.applyAuth=e=>t=>(t.headers["X-FF-Api-Key"]=e,t)},3894:function(e,t,i){"use strict";var r=i(863);e.exports={applyAuth:r.applyAuth}},1394:function(e,t){t.beforeCampaignPage=e=>n(i.campaignPage,e),t.beforeCampaignProduct=e=>n(i.campaignProduct,e),t.beforeCampaignShoppingCart=e=>n(i.campaignShoppingCart,e),t.beforeCompare=e=>n(i.compare,e),t.beforeNavigation=e=>n(i.navigation,e),t.beforeNavigationCategory=e=>n(i.navigationCategory,e),t.beforePopularSearches=e=>n(i.popularSearches,e),t.beforePredictiveBasket=e=>n(i.predictiveBasket,e),t.beforeRecommendation=e=>n(i.recommendation,e),t.beforeRecords=e=>n(i.records,e),t.beforeSearch=e=>n(i.search,e),t.beforeSimilar=e=>n(i.similar,e),t.beforeSuggest=e=>n(i.suggest,e),t.beforeTrackCart=e=>n(r.cart,e),t.beforeTrackCheckout=e=>n(r.checkout,e),t.beforeTrackClick=e=>n(r.click,e),t.beforeTrackLandingPageClick=e=>n(r.landingPageClick,e),t.beforeTrackLogin=e=>n(r.login,e),t.beforeTrackPredBasketClick=e=>n(r.predBasketClick,e),t.beforeTrackRecommendationClick=e=>n(r.recommendationClick,e),t.runBeforeCampaignPageSubscribers=e=>s(i.campaignPage,e,"beforeCampaignPageSubscribers"),t.runBeforeCampaignProductSubscribers=e=>s(i.campaignProduct,e,"beforeCampaignProductSubscribers"),t.runBeforeCampaignShoppingCartSubscribers=e=>s(i.campaignShoppingCart,e,"beforeCampaignShoppingCartSubscribers"),t.runBeforeCompareSubscribers=e=>s(i.compare,e,"beforeCompareSubscribers"),t.runBeforeNavigationSubscribers=e=>s(i.navigation,e,"beforeNavigationSubscribers"),t.runBeforeNavigationCategorySubscribers=e=>s(i.navigationCategory,e,"beforeNavigationCategorySubscribers"),t.runBeforePopularSearchesSubscribers=e=>s(i.popularSearches,e,"beforePopularSearchesSubscribers"),t.runBeforePredictiveBasketSubscribers=e=>s(i.predictiveBasket,e,"beforePredictiveBasketSubscribers"),t.runBeforeRecommendationSubscribers=e=>s(i.recommendation,e,"beforeRecommendationSubscribers"),t.runBeforeRecordsSubscribers=e=>s(i.records,e,"beforeRecordsSubscribers"),t.runBeforeSearchSubscribers=e=>s(i.search,e,"beforeSearchSubscribers"),t.runBeforeSimilarSubscribers=e=>s(i.similar,e,"beforeSimilarSubscribers"),t.runBeforeSuggestSubscribers=e=>s(i.suggest,e,"beforeSuggestSubscribers"),t.runBeforeTrackCartSubscribers=e=>s(r.cart,e,"beforeTrackCartSubscribers"),t.runBeforeTrackCheckoutSubscribers=e=>s(r.checkout,e,"beforeTrackCheckoutSubscribers"),t.runBeforeTrackClickSubscribers=e=>s(r.click,e,"beforeTrackClickSubscribers"),t.runBeforeTrackLandingPageClickSubscribers=e=>s(r.landingPageClick,e,"beforeTrackLandingPageClickSubscribers"),t.runBeforeTrackLoginSubscribers=e=>s(r.login,e,"beforeTrackLoginSubscribers"),t.runBeforeTrackPredBasketClickSubscribers=e=>s(r.predBasketClick,e,"beforeTrackPredBasketClickSubscribers"),t.runBeforeTrackRecommendationClickSubscribers=e=>s(r.recommendationClick,e,"beforeTrackRecommendationClickSubscribers");const i=Object.freeze({campaignPage:new Map,campaignProduct:new Map,campaignShoppingCart:new Map,compare:new Map,navigation:new Map,navigationCategory:new Map,popularSearches:new Map,predictiveBasket:new Map,recommendation:new Map,records:new Map,search:new Map,similar:new Map,suggest:new Map}),r=Object.freeze({cart:new Map,checkout:new Map,click:new Map,landingPageClick:new Map,login:new Map,predBasketClick:new Map,recommendationClick:new Map});function n(e,t){const i=Math.random();return e.set(i,t),i}function s(e,t,i){for(const r of e.values()){if(!1===r(t))return console.log("".concat(i,": Pipeline interrupted")),Promise.reject("".concat(i,": Pipeline interrupted"))}return Promise.resolve()}},7905:function(e,t,i){"use strict";var r=i(1394),n=i(3139),s=i(8850),a=i(4884),o=i(4269),c=i(2024),u=i(416);e.exports={guardBeforeSubscribers:function(e){return function(t){return c.fromFFIMaybe(!1)(s.bind(c.bindFFIMaybe)(e.requestOptions)((function(e){return a.mapFlipped(c.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))})))?n.pure(u.applicativeFF)(o.unit):t(e)}},beforeCampaignPage:r.beforeCampaignPage,beforeCampaignProduct:r.beforeCampaignProduct,beforeCampaignShoppingCart:r.beforeCampaignShoppingCart,beforeCompare:r.beforeCompare,beforeNavigation:r.beforeNavigation,beforeNavigationCategory:r.beforeNavigationCategory,beforePopularSearches:r.beforePopularSearches,beforePredictiveBasket:r.beforePredictiveBasket,beforeRecommendation:r.beforeRecommendation,beforeRecords:r.beforeRecords,beforeSearch:r.beforeSearch,beforeSimilar:r.beforeSimilar,beforeSuggest:r.beforeSuggest,beforeTrackCart:r.beforeTrackCart,beforeTrackCheckout:r.beforeTrackCheckout,beforeTrackClick:r.beforeTrackClick,beforeTrackLandingPageClick:r.beforeTrackLandingPageClick,beforeTrackLogin:r.beforeTrackLogin,beforeTrackPredBasketClick:r.beforeTrackPredBasketClick,beforeTrackRecommendationClick:r.beforeTrackRecommendationClick,runBeforeCampaignPageSubscribers:r.runBeforeCampaignPageSubscribers,runBeforeCampaignProductSubscribers:r.runBeforeCampaignProductSubscribers,runBeforeCampaignShoppingCartSubscribers:r.runBeforeCampaignShoppingCartSubscribers,runBeforeNavigationSubscribers:r.runBeforeNavigationSubscribers,runBeforeCompareSubscribers:r.runBeforeCompareSubscribers,runBeforeNavigationCategorySubscribers:r.runBeforeNavigationCategorySubscribers,runBeforePopularSearchesSubscribers:r.runBeforePopularSearchesSubscribers,runBeforePredictiveBasketSubscribers:r.runBeforePredictiveBasketSubscribers,runBeforeRecommendationSubscribers:r.runBeforeRecommendationSubscribers,runBeforeRecordsSubscribers:r.runBeforeRecordsSubscribers,runBeforeSearchSubscribers:r.runBeforeSearchSubscribers,runBeforeSimilarSubscribers:r.runBeforeSimilarSubscribers,runBeforeSuggestSubscribers:r.runBeforeSuggestSubscribers,runBeforeTrackCartSubscribers:r.runBeforeTrackCartSubscribers,runBeforeTrackCheckoutSubscribers:r.runBeforeTrackCheckoutSubscribers,runBeforeTrackClickSubscribers:r.runBeforeTrackClickSubscribers,runBeforeTrackLandingPageClickSubscribers:r.runBeforeTrackLandingPageClickSubscribers,runBeforeTrackLoginSubscribers:r.runBeforeTrackLoginSubscribers,runBeforeTrackPredBasketClickSubscribers:r.runBeforeTrackPredBasketClickSubscribers,runBeforeTrackRecommendationClickSubscribers:r.runBeforeTrackRecommendationClickSubscribers}},5078:function(e,t){t.createFFRequestGET=e=>t=>({method:"GET",url:e,headers:{},handlers:t}),t.createFFRequestPOSTImpl=e=>t=>i=>({method:"POST",url:e,headers:{},handlers:t,body:i}),t.createFFTrackingRequest=e=>t=>({method:"POST",url:e,headers:{},noHandlers:!0,body:t}),t.sendAuthenticated=function(e){const t={method:e.method,headers:e.headers};"POST"===e.method&&(t.headers["Content-Type"]="application/json",t.body=JSON.stringify(e.body));return fetch(e.url,t).then((t=>{if(!t.ok||!e.noHandlers)return t.json().then((t=>{if(t.error)throw Error(t.errorDescription);return e.handlers.success(t)()}))}))}},4502:function(e,t,i){"use strict";var r=i(5078);e.exports={createFFRequestPOST:function(e){return r.createFFRequestPOSTImpl},createFFRequestGET:r.createFFRequestGET,createFFTrackingRequest:r.createFFTrackingRequest,sendAuthenticated:r.sendAuthenticated}},8496:function(e,t,i){"use strict";var r=i(1287),n=i(8850),s=i(2024),a=function(e){return function(t){return function(i){var n=r.config.val.ff.url+"/rest/v5/"+e+"/"+t;return""===i?n:n+"/"+i}}};e.exports={getChannel:function(e){return s.fromFFIMaybe(r.config.val.ff.channel)(n.bind(s.bindFFIMaybe)(e)((function(e){return e.channel})))},generateEndpoint:function(e){return function(t){return a(e)(t)("")}},generateEndpointWithSub:a}},1960:function(e,t){t.mergeConfig=e=>t=>t.map((t=>Object.assign({},e,t))),t.removeUndefinedProps=e=>JSON.parse(JSON.stringify(e))},4932:function(e,t,i){"use strict";var r=i(1960),n=i(1287),s=i(8850),a=i(8583),o=i(6240),c=i(2830),u=i(6949),l=i(7162),d=i(2652),p=i(4908),h=i(1327),f=i(3894),m=i(7905),g=i(4502),b=i(8496),v=i(6296),y=i(8455),_=i(2024),S=i(2877),k=i(416),C=function(e){return function(t,i,o,c,u){return s.bind(k.bindFF)(k.requireArg(S.requireArgNonEmptyArray)(t)(i))((function(t){return s.bind(k.bindFF)(s.bindFlipped(k.bindFF)(k.validateOptional(h.validateOptionalWKRequest))(k.checkOptionalArg(h.checkOptionalArgWKRequest)(o)("requestOptions")))((function(i){var o=a.unsafePerformEffect(v.getOrCreateSid(_[void 0])),l=r.removeUndefinedProps({sid:o,purchaserId:s.bind(_.bindFFIMaybe)(n.config.val.ffParams)((function(e){return e.purchaserId})),userId:s.bind(_.bindFFIMaybe)(n.config.val.ffParams)((function(e){return e.userId}))}),d=r.mergeConfig(l)(t);return s.bind(k.bindFF)(k.validateMap(S.validateMapNonEmptyArrayA(e))(d))((function(e){var t={events:y.jsonClone(e),requestOptions:_.fromMaybe(i)};return s.bind(k.bindFF)(m.guardBeforeSubscribers(t)(u))((function(e){var i=b.generateEndpointWithSub("track")(b.getChannel(t.requestOptions))(c);return g.sendAuthenticated(f.applyAuth(n.config.val.ff.apiKey)(g.createFFTrackingRequest(i)(t.events)))}))}))}))}))}};e.exports={cart:function(e,t){return C(o.validateCartOrCheckoutEve)(e,"cartOrCheckoutEvents",t,"cart",m.runBeforeTrackCartSubscribers)},checkout:function(e,t){return C(o.validateCartOrCheckoutEve)(e,"cartOrCheckoutEvents",t,"checkout",m.runBeforeTrackCheckoutSubscribers)},click:function(e,t){return C(c.validateClickEvent)(e,"clickEvents",t,"click",m.runBeforeTrackClickSubscribers)},landingPageClick:function(e,t){return C(u.validateLandingPageClickE)(e,"landingPageClickEvents",t,"landingPageClick",m.runBeforeTrackLandingPageClickSubscribers)},login:function(e,t){return C(l.validateLoginEvent)(e,"loginEvents",t,"login",m.runBeforeTrackLoginSubscribers)},predbasketClick:function(e,t){return C(d.validatePredBasketClickEv)(e,"predBasketClickEvents",t,"predbasketClick",m.runBeforeTrackPredBasketClickSubscribers)},recommendationClick:function(e,t){return C(p.validateRecommendationCli)(e,"recommendationClickEvents",t,"recommendationClick",m.runBeforeTrackRecommendationClickSubscribers)}}},333:function(e,t,i){"use strict";var r=i(1287),n=i(3139),s=i(8850),a=i(1720),o=i(4884),c=i(596),u=i(4269),l=i(8164),d=i(8583),p=i(3202),h=i(820),f=i(8309),m=i(4551),g=i(3854),b=i(8755),v=i(7724),y=i(1068),_=i(6681),S=i(2637),k=i(2682),C=i(7663),w=i(7860),P=i(2212),x=i(1327),E=i(6996),I=i(3894),F=i(7905),A=i(4502),M=i(8496),O=i(5645),N=i(6296),L=i(8455),T=i(2024),q=i(416),R=a.mkFn2((function(e){return function(t){var i={similarParams:d.unsafePerformEffect(s.bindFlipped(l.bindEffect)(r.setUserId)(r.setPurchaserId(e))),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(i)(F.runBeforeSimilarSubscribers))((function(e){var t="?"+w.toQueryString(S.queryStringSimilarParams)(i.similarParams),n=M.generateEndpointWithSub("records")(M.getChannel(i.requestOptions))("similar")+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(n)({success:O.successHandlerSimilar(i)})))}))}})),B=a.mkFn2((function(e){return function(t){var i={recordsParams:d.unsafePerformEffect(r.setPurchaserId(e)),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(i)(F.runBeforeRecordsSubscribers))((function(e){var t="?"+w.toQueryString(_.queryStringRecordsParams)(i.recordsParams),n=M.generateEndpoint("records")(M.getChannel(i.requestOptions))+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(n)({success:O.successHandlerRecords(i)})))}))}})),D=a.mkFn2((function(e){return function(t){var i=d.unsafePerformEffect(N.getOrCreateSid(e.sid)),n={recommendationParams:d.unsafePerformEffect(s.bindFlipped(l.bindEffect)(r.setUserId)(r.setPurchaserId(N.setSID(i)(e)))),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(n)(F.runBeforeRecommendationSubscribers))((function(e){var t="?"+w.toQueryString(y.queryStringRecommendation)(n.recommendationParams),i=M.generateEndpointWithSub("records")(M.getChannel(n.requestOptions))("recommendation")+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(i)({success:O.successHandlerRecommendation(n)})))}))}})),j=a.mkFn2((function(e){return function(t){var i={predictiveBasketParams:d.unsafePerformEffect(r.setPurchaserId(e)),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(i)(F.runBeforePredictiveBasketSubscribers))((function(e){var t="?"+w.toQueryString(v.queryStringPredictiveBask)(i.predictiveBasketParams),n=M.generateEndpoint("predictivebasket")(M.getChannel(i.requestOptions))+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(n)({success:O.successHandlerPredictiveBasket(i)})))}))}})),H=a.mkFn2((function(e){return function(t){var i=d.unsafePerformEffect(r.setPurchaserId(e)),a=T.fromFFIMaybe(P.emptyNavigationOptions)(T.fromMaybe(t)),c=d.unsafePerformEffect(N.getOrCreateSid(a.sid)),l=d.unsafePerformEffect(r.setUserId(N.setSID(c)(a))),p={navigationParams:i,navigationOptions:n.pure(T.applicativeFFIMaybe)(l)};return s.bind(q.bindFF)(T.fromFFIMaybe(!1)(s.bind(T.bindFFIMaybe)(a.requestOptions)((function(e){return o.mapFlipped(T.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))})))?n.pure(q.applicativeFF)(u.unit):F.runBeforeNavigationSubscribers(p))((function(e){return s.bind(q.bindFF)(n.pure(q.applicativeFF)(d.unsafePerformEffect(O.disableAutoFetching)))((function(e){var t=M.generateEndpoint("navigation")(M.getChannel(s.bind(T.bindFFIMaybe)(p.navigationOptions)((function(e){return e.requestOptions})))),i={success:O.successHandlerNavigation(p)},n={params:p.navigationParams,searchControlParams:s.bind(T.bindFFIMaybe)(p.navigationOptions)((function(e){return e.searchControlParams})),sid:s.bind(T.bindFFIMaybe)(p.navigationOptions)((function(e){return e.sid})),userId:s.bind(T.bindFFIMaybe)(p.navigationOptions)((function(e){return e.userId}))};return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestPOST()(t)(i)(n)))}))}))}})),V=a.mkFn2((function(e){return function(t){var i=d.unsafePerformEffect(N.getOrCreateSid(e.sid)),n={navigationCategoryParams:d.unsafePerformEffect(s.bindFlipped(l.bindEffect)(r.setUserId)(r.setPurchaserId(N.setSID(i)(e)))),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(n)(F.runBeforeNavigationCategorySubscribers))((function(e){var t="?"+w.toQueryString(b.queryStringNavigationCate)(n.navigationCategoryParams),i=M.generateEndpoint("navigation/category")(M.getChannel(n.requestOptions))+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(i)({success:O.successHandlerNavigationCategory(n)})))}))}})),U=a.mkFn2((function(e){return function(t){var i=d.unsafePerformEffect(N.getOrCreateSid(e.sid)),n={suggestParams:d.unsafePerformEffect(r.setPurchaserId(N.setSID(i)(e))),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(n)(F.runBeforeSuggestSubscribers))((function(e){return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(function(e){return function(t){var i=M.generateEndpoint("suggest")(M.getChannel(e.requestOptions));return A.createFFRequestPOST()(i)(t)(e.suggestParams)}}(n)({success:O.successHandlerSuggest(n)})))}))}})),W=a.mkFn2((function(e){return function(t){var i=d.unsafePerformEffect(r.setPurchaserId(e)),a=c.fromMaybe(E.emptySearchOptions)(t),l=d.unsafePerformEffect(N.getOrCreateSid(a.sid)),p=d.unsafePerformEffect(r.setUserId(N.setSID(l)(a))),h={searchParams:i,searchOptions:n.pure(T.applicativeFFIMaybe)(p)};return s.bind(q.bindFF)(T.fromFFIMaybe(!1)(s.bind(T.bindFFIMaybe)(a.requestOptions)((function(e){return o.mapFlipped(T.functorFFIMaybe)(e.skipBeforeHandlers)((function(e){return!0===e}))})))?n.pure(q.applicativeFF)(u.unit):F.runBeforeSearchSubscribers(h))((function(e){return s.bind(q.bindFF)(n.pure(q.applicativeFF)(d.unsafePerformEffect(O.disableAutoFetching)))((function(e){return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(function(e){return function(t){var i=s.bind(T.bindFFIMaybe)(e.searchOptions)((function(e){return e.requestOptions})),r=M.generateEndpoint("search")(M.getChannel(i)),n={params:e.searchParams,searchControlParams:s.bind(T.bindFFIMaybe)(e.searchOptions)((function(e){return e.searchControlParams})),sid:s.bind(T.bindFFIMaybe)(e.searchOptions)((function(e){return e.sid})),userId:s.bind(T.bindFFIMaybe)(e.searchOptions)((function(e){return e.userId})),userInput:s.bind(T.bindFFIMaybe)(e.searchOptions)((function(e){return e.userInput}))};return A.createFFRequestPOST()(r)(t)(n)}}(h)({success:O.successHandlerSearch(h)})))}))}))}})),K=a.mkFn2((function(e){return function(t){var i={compareParams:d.unsafePerformEffect(r.setPurchaserId(e)),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(i)(F.runBeforeCompareSubscribers))((function(e){var t="?"+w.toQueryString(g.queryStringCompareParams)(i.compareParams),n=M.generateEndpointWithSub("records")(M.getChannel(i.requestOptions))("compare")+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(n)({success:O.successHandlerCompare(i)})))}))}})),z=a.mkFn2((function(e){return function(t){var i=d.unsafePerformEffect(N.getOrCreateSid(e.sid)),n={campaignShoppingCartParams:d.unsafePerformEffect(r.setPurchaserId(N.setSID(i)(e))),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(n)(F.runBeforeCampaignShoppingCartSubscribers))((function(e){var t="?"+w.toQueryString(m.queryStringCampaignShoppi)(n.campaignShoppingCartParams),i=M.generateEndpointWithSub("campaign")(M.getChannel(n.requestOptions))("shoppingcart")+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(i)({success:O.successHandlerCampaignShoppingCart(n)})))}))}})),$=a.mkFn2((function(e){return function(t){var i=d.unsafePerformEffect(N.getOrCreateSid(e.sid)),n={campaignProductParams:d.unsafePerformEffect(r.setPurchaserId(N.setSID(i)(e))),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(n)(F.runBeforeCampaignProductSubscribers))((function(e){var t="?"+w.toQueryString(f.queryStringCampaignProduc)(n.campaignProductParams),i=M.generateEndpointWithSub("campaign")(M.getChannel(n.requestOptions))("product")+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(i)({success:O.successHandlerCampaignProduct(n)})))}))}})),G=a.mkFn2((function(e){return function(t){var i=d.unsafePerformEffect(N.getOrCreateSid(e.sid)),n={campaignPageParams:d.unsafePerformEffect(r.setPurchaserId(N.setSID(i)(e))),requestOptions:T.fromMaybe(t)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(n)(F.runBeforeCampaignPageSubscribers))((function(e){var t="?"+w.toQueryString(h.queryStringCampaignPagePa)(n.campaignPageParams),i=M.generateEndpointWithSub("campaign")(M.getChannel(n.requestOptions))("page")+t;return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(i)({success:O.successHandlerCampaignPage(n)})))}))}}));e.exports={campaignPage:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(h.validateCampaignPageParam))(q.requireArg(h.requireArgCampaignPagePar)(e)("campaignPageParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return G(L.jsonClone(e),t)}))}))},campaignProduct:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(f.validateCampaignProductPa))(q.requireArg(f.requireArgCampaignProduct)(e)("campaignProductParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return $(L.jsonClone(e),t)}))}))},campaignShoppingCart:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(m.validateCampaignShoppingC))(q.requireArg(m.requireArgCampaignShoppin)(e)("campaignShoppingCartParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return z(L.jsonClone(e),t)}))}))},compare:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(g.validateCompareParams))(q.requireArg(g.requireArgCompareParams)(e)("compareParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return K(L.jsonClone(e),t)}))}))},navigation:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(p.validateNavigationParams))(q.requireArg(p.requireArgNavigationParam)(e)("navigationParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(P.validateOptionalWKNavigat))(q.checkOptionalArg(P.checkOptionalArgWKNavigat)(t)("navigationOptions")))((function(t){return H(L.jsonClone(e),t)}))}))},navigationCategory:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(b.validateNavigationCategor))(q.requireArg(b.requireArgNavigationCateg)(e)("navigationCategoryParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return V(L.jsonClone(e),t)}))}))},popularSearches:function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(e)("requestOptions")))((function(e){return function(e){var t={requestOptions:T.fromMaybe(e)};return s.bind(q.bindFF)(F.guardBeforeSubscribers(t)(F.runBeforePopularSearchesSubscribers))((function(e){var i=M.generateEndpointWithSub("suggest")(M.getChannel(t.requestOptions))("popularSearches");return A.sendAuthenticated(I.applyAuth(r.config.val.ff.apiKey)(A.createFFRequestGET(i)({success:O.successHandlerPopularSearches(t)})))}))}(e)}))},predictiveBasket:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(v.validatePredictiveBasketP))(q.requireArg(v.requireArgPredictiveBaske)(e)("predictiveBasketParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return j(L.jsonClone(e),t)}))}))},recommendation:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(y.validateRecommendationPar))(q.requireArg(y.requireArgRecommendationP)(e)("recommendationParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return D(L.jsonClone(e),t)}))}))},records:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(_.validateRecordsParams))(q.requireArg(_.requireArgRecordsParams)(e)("recordsParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return B(L.jsonClone(e),t)}))}))},search:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(k.validateSearchParams))(q.requireArg(k.requireArgSearchParams)(e)("searchParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(E.validateOptionalWKSearchO))(q.checkOptionalArg(E.checkOptionalArgWKSearchO)(t)("searchOptions")))((function(t){return W(L.jsonClone(e),t)}))}))},similar:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(S.validateSimilarParams))(q.requireArg(S.requireArgSimilarParams)(e)("similarParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return R(L.jsonClone(e),t)}))}))},suggest:function(e,t){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validate(C.validateSuggestParams))(q.requireArg(C.requireArgSuggestParams)(e)("suggestParams")))((function(e){return s.bind(q.bindFF)(s.bindFlipped(q.bindFF)(q.validateOptional(x.validateOptionalWKRequest))(q.checkOptionalArg(x.checkOptionalArgWKRequest)(t)("requestOptions")))((function(t){return U(L.jsonClone(e),t)}))}))}}},6657:function(e,t,i){let r,n,s=!1;const a="ALWAYS_ON";t.disableAutoFetching=()=>{s=!1},t.enableAutoFetching=()=>{s=!0},t.setLastResultNavigation=e=>()=>{r=e,n=void 0},t.setLastResultSearch=e=>()=>{n=e,r=void 0},t.elementsBeforeAllSubscribePopularSearches=e=>Y(o,e),t.elementsSubscribeCampaignPage=e=>Y(c,e),t.elementsSubscribeCampaignProduct=e=>Y(u,e),t.elementsSubscribeCampaignShoppingCart=e=>Y(l,e),t.elementsSubscribeCompare=e=>Y(d,e),t.elementsSubscribeNavigationImpl=e=>t=>((s||e===a)&&r&&te(!1)([t],r,{}),Y(p,t)),t.elementsSubscribeNavigationCategory=e=>Y(h,e),t.elementsSubscribePopularSearches=e=>Y(f,e),t.elementsSubscribePredictiveBasket=e=>Y(m,e),t.elementsSubscribeRecommendation=e=>Y(g,e),t.elementsSubscribeRecords=e=>Y(b,e),t.elementsSubscribeSearchImpl=e=>t=>((s||e===a)&&n&&te(!1)([t],n,{}),Y(v,t)),t.elementsSubscribeSimilar=e=>Y(y,e),t.elementsSubscribeSuggest=e=>Y(_,e),t.elementsSubscribeSearchAndNavigationImpl=e=>t=>(!s&&e!==a||!r&&!n||te(!1)([t],r||n,{}),Y(S,t)),t.elementsUnsubscribe=ee,t.subscribeCampaignPage=e=>Y(C,e),t.subscribeCampaignProduct=e=>Y(w,e),t.subscribeCampaignRedirect=e=>Y(P,e),t.subscribeCampaignShoppingCart=e=>Y(x,e),t.subscribeCompare=e=>Y(E,e),t.subscribeNavigationImpl=e=>t=>((s||e===a)&&r&&ie(!1)([t],r,{}),Y(I,t)),t.subscribeNavigationCategory=e=>Y(F,e),t.subscribePopularSearches=e=>Y(A,e),t.subscribePredictiveBasket=e=>Y(M,e),t.subscribeRecommendation=e=>Y(O,e),t.subscribeRecords=e=>Y(N,e),t.subscribeSearchImpl=e=>t=>((s||e===a)&&n&&ie(!1)([t],n,{}),Y(L,t)),t.subscribeSimilar=e=>Y(T,e),t.subscribeSuggest=e=>Y(q,e),t.subscribeSearchAndNavigationImpl=e=>t=>(!s&&e!==a||!r&&!n||ie(!1)([t],r||n,{}),Y(R,t)),t.unsubscribe=ee,t.transformCampaignPage=e=>{j.push(e)},t.transformCampaignProduct=e=>{H.push(e)},t.transformCampaignShoppingCart=e=>{V.push(e)},t.transformCompare=e=>{U.push(e)},t.transformNavigation=e=>{W.push(e)},t.transformNavigationCategory=e=>{K.push(e)},t.transformPopularSearches=e=>{z.push(e)},t.transformPredictiveBasket=e=>{$.push(e)},t.transformRecommendation=e=>{G.push(e)},t.transformRecords=e=>{J.push(e)},t.transformSearch=e=>{Z.push(e)},t.transformSimilar=e=>{X.push(e)},t.transformSuggest=e=>{Q.push(e)};const o=new Map,c=new Map,u=new Map,l=new Map,d=new Map,p=new Map,h=new Map,f=new Map,m=new Map,g=new Map,b=new Map,v=new Map,y=new Map,_=new Map,S=new Map,k=e=>(t,i,r)=>()=>te(r)(e,t,i);t.runElementsBeforeAllPopularSearchesSubscribers=k(o),t.runElementsCampaignPageSubscribers=k(c),t.runElementsCampaignProductSubscribers=k(u),t.runElementsCampaignShoppingCartSubscribers=k(l),t.runElementsCompareSubscribers=k(d),t.runElementsNavigationSubscribers=function(){return k([Array.from(p.values()),Array.from(S.values())].flat())(...arguments)},t.runElementsNavigationCategorySubscribers=k(h),t.runElementsPopularSearchesSubscribers=k(f),t.runElementsPredictiveBasketSubscribers=k(m),t.runElementsRecommendationSubscribers=k(g),t.runElementsSearchSubscribers=function(){return k([Array.from(v.values()),Array.from(S.values())].flat())(...arguments)},t.runElementsSimilarSubscribers=k(y),t.runElementsSuggestSubscribers=k(_);const C=new Map,w=new Map,P=new Map,x=new Map,E=new Map,I=new Map,F=new Map,A=new Map,M=new Map,O=new Map,N=new Map,L=new Map,T=new Map,q=new Map,R=new Map,B=e=>(t,i,r)=>()=>ie(r)(e,t,i);t.runCampaignPageSubscribers=B(C),t.runCampaignProductSubscribers=B(w),t.runCampaignShoppingCartSubscribers=B(x),t.runCompareSubscribers=B(E),t.runNavigationSubscribers=function(){return B([Array.from(I.values()),Array.from(R.values())].flat())(...arguments)},t.runNavigationCategorySubscribers=B(F),t.runPopularSearchesSubscribers=B(A),t.runPredictiveBasketSubscribers=B(M),t.runRecommendationSubscribers=B(O),t.runRecordsSubscribers=B(N),t.runSearchSubscribers=function(){return B([Array.from(L.values()),Array.from(R.values())].flat())(...arguments)},t.runSimilarSubscribers=B(T),t.runSuggestSubscribers=B(q),t.runCampaignRedirectSubscribers=(e,t,i,r)=>()=>function(e,t,i,r,n){if(!e.size)return;const s=r(t);for(const r of s){const s={campaign:r,result:t,requestInfo:i};for(const t of e.values())if(n){if(!1===t(s))return console.log("campaignRedirectSubscribers: Pipeline interrupted"),!1}else try{if(!1===t(s))return console.log("campaignRedirectSubscribers: Pipeline interrupted"),!1}catch(e){console.error("Error in custom redirect handler. Skipping to next.",e)}}return!0}(P,e,t,i,r),t.runCampaignPageTransformers=(e,t,i,r)=>()=>oe("CampaignPage",j,t,i,e,r),t.runCampaignProductTransformers=(e,t,i,r)=>()=>oe("CampaignProduct",H,t,i,e,r),t.runCampaignShoppingCartTransformers=(e,t,i,r)=>()=>oe("CampaignShoppingCart",V,t,i,e,r),t.runCompareTransformers=(e,t,i,r)=>()=>oe("Compare",U,t,i,e,r),t.runNavigationTransformers=(e,t,i,r)=>()=>oe("Navigation",W,t,i,e,r),t.runNavigationCategoryTransformers=(e,t,i,r)=>()=>oe("NavigationCategory",K,t,i,e,r),t.runPopularSearchesTransformers=(e,t,i,r)=>()=>oe("PopularSearches",z,t,i,e,r),t.runPredictiveBasketTransformers=(e,t,i,r)=>()=>oe("PredictiveBasket",$,t,i,e,r),t.runRecommendationTransformers=(e,t,i,r)=>()=>oe("Recommendation",G,t,i,e,r),t.runRecordsTransformers=(e,t,i,r)=>()=>oe("Records",J,t,i,e,r),t.runSearchTransformers=(e,t,i,r)=>()=>oe("Search",Z,t,i,e,r),t.runSimilarTransformers=(e,t,i,r)=>()=>oe("Similar",X,t,i,e,r),t.runSuggestTransformers=(e,t,i,r)=>()=>oe("Suggest",Q,t,i,e,r),t.unsafeMergeTeaserCampaignsImpl=e=>t=>{const i=e(t);if(!i.length)return t;const r=t.hits,n=t.hits.slice(0);return i.forEach((e=>{if(!e.position)return;const t=n.indexOf(r[e.position-1]);n.splice(t,0,e)})),Object.assign({},t,{hits:n})},t.unsafePerformEffectWK=e=>e();const D=new Map,j=[],H=[],V=[],U=[],W=[],K=[],z=[],$=[],G=[],J=[],Z=[],X=[],Q=[];function Y(e,t){const i=Array.from({length:24},(()=>Math.floor(10*Math.random()))).join("");return D.set(i,e),e.set(i,t),i}function ee(e){const t=D.get(e);return t&&t.delete(e),D.delete(e)}const te=e=>e?re:ne,ie=e=>e?re:se,re=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;re(...i)))},ne=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r2?i-2:0),n=2;n{try{t(...r)}catch(t){console.error("Error in ".concat(e," handler. Skipping to next."),t)}}))}function oe(e,t,i,r,n,s){return t.reduce(((t,i,a)=>{let o;if(s)o=i(t,r);else try{o=i(t,r)}catch(i){return console.error("Error in custom ".concat(e," transformer registered at index ").concat(a,". Skipping to next."),i),t}return null==o?(n("".concat(e," transformer registered at index ").concat(a," did not return a value.\n").concat(i.toString())),t):o}),i)}function ce(e,t,r,n){if(n){const r=i(8675),n=fe(e,t);return void r.internalRouting.sandboxed.invokeHistoryWriteListener(n)}const s=r(t),a=fe(e,s.requestInfo);if(s.initial)return void window.history.replaceState(a,"");const o=i(8675).internalRouting.invokeUrlParamOptionsListener()||{},c=function(e,t){const i=new URLSearchParams;if(!e)return i;const r=Object.assign({allow:[],block:["activeAbTests","followSearch","purchaserId","showMarkets","showPermutedSearchParams"],blockFilters:[],keyMapping:{},order:["query","filters","sortItems"],postStringifier:void 0,stringifiers:{}},t),n=()=>!0,s=Object.keys(pe).filter(r.allow.length?e=>r.allow.includes(e):n).filter(r.block.length?e=>!r.block.includes(e):n),a=new Set;r.order.forEach((e=>{s.includes(e)&&a.add(e)})),s.forEach((e=>{a.add(e)}));const o=[],c=e=>function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;o.push({key:i,value:t})},u=t=>"filters"===t?e[t].filter((e=>!r.blockFilters.includes(e.name))):e[t];a.forEach((t=>{if(!e.hasOwnProperty(t))return;("function"==typeof r.stringifiers[t]?r.stringifiers[t]:pe[t])(c(t),u(t))}));const l="function"==typeof r.postStringifier?r.postStringifier(o):o;if(!Array.isArray(l))return void console.error("'postStringifier' did not return an array. Was: ".concat(l));return l.forEach((e=>{let{key:t,value:n}=e;return i.append(r.keyMapping[t]||t,n)})),i}(s.params,o),u=c.size?"?"+c.toString():window.location.pathname;window.history.pushState(a,"",u)}function ue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({},e,{navigationOptions:Object.assign({},e.navigationOptions,{requestOptions:Object.assign({},(e.navigationOptions||{}).requestOptions,{origin:void 0})})});return{requestInfo:t,params:t.navigationParams,initial:t.navigationOptions.initial}}function le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({},e,{searchOptions:Object.assign({},e.searchOptions,{requestOptions:Object.assign({},(e.searchOptions||{}).requestOptions,{origin:void 0})})});return{requestInfo:t,params:t.searchParams,initial:t.searchOptions.initial}}t.processHistoryNavigation=e=>t=>i=>()=>ce(e,t,ue,i||t&&t.navigationOptions&&!0===t.navigationOptions.withoutHistory),t.processHistorySearch=e=>t=>i=>()=>ce(e,t,le,i||t&&t.searchOptions&&!0===t.searchOptions.withoutHistory);const de=(e,t)=>e(t),pe={activeAbTests(e,t){Object.entries(t).forEach((t=>e("".concat(t[0],":").concat(t[1]),"activeAbTest")))},advisorStatus(e,t){e(t.id+"-"+t.answerPath)},articleNumberSearch(e,t){"DETECT"!==t&&e(t)},excludeProductsNotInRange:de,filters(e,t){const i=e=>e.replaceAll("%","%25").replaceAll("/","%2F").replaceAll("+","%2B");t.forEach((t=>{let r=t.values.map(((e,t)=>{let r="";t>0&&(r="or"===e.type?"~~~":"___");const n=Array.isArray(e.value)?e.value.map(i).join("/"):e.value;return r+(e.exclude?"!"+n:n)})).join("");"and"===t.values[0].type&&(r="___"+r),e(t.name+":"+r,t.substring?"substringFilter":"filter")}))},followSearch:de,hitsPerPage:de,location(e,t){e(t.latitude,"latitude"),e(t.longitude,"longitude")},marketIds(e,t){t.forEach((t=>e(t,"marketId")))},maxCountVariants:de,maxDistance:de,page:de,purchaserId:de,query(e,t){t&&"*"!==t&&e(t)},searchField:de,showMarkets:de,showPermutedSearchParams:de,sortItems(e,t){t.forEach((t=>e(t.name+":"+t.order,"sort")))},splitDocumentsAt:de};function he(e){const t=e.result,i=e.requestInfo;(factfinder.config.get().appConfig||{}).categoryPage?factfinder.response.dispatch.navigationBeforeTransform(t,i):factfinder.response.dispatch.searchBeforeTransform(t,i)}function fe(e,t){return{result:e,requestInfo:t}}t.setInitialNavigation=e=>{const t=e||{};return t.navigationOptions=t.navigationOptions||{},t.navigationOptions.initial=!0,t},t.setInitialSearch=e=>{const t=e||{};return t.searchOptions=t.searchOptions||{},t.searchOptions.initial=!0,t},i(8675).internalRouting.sandboxed.setPopstateListener(he),window.addEventListener("popstate",(e=>{let{state:t}=e;(factfinder.config.get().appConfig||{}).sandboxMode||he(t)}))},5645:function(e,t,i){"use strict";var r=i(6657),n=i(1287),s=i(1573),a=i(3139),o=i(8850),c=i(1526),u=i(4884),l=i(8164),d=i(1184),p=i(2024),h=function(e){return c.filter((function(e){return"REDIRECT"===e.flavour}))(e.campaigns)},f=function(e){return r.unsafeMergeTeaserCampaignsImpl((function(e){return o.bind(o.bindArray)(e.campaigns)((function(e){return p.fromFFIMaybe([])(u.mapFlipped(p.functorFFIMaybe)(e.feedbackTexts)(c.filter((function(e){return!0===e.teaser}))))}))}))(e)},m=function(e){return function(t){return function(i){return!0===p.fromFFIMaybe(!1)(o.bind(p.bindFFIMaybe)(t.requestOptions)((function(e){return e.requestOnly})))?a.pure(l.applicativeEffect)(i):e(t)(i)}}},g=m((function(e){return function(t){return function(){var i=r.runCampaignPageTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsCampaignPageSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runCampaignPageSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),b=m((function(e){return function(t){return function(){var i=r.runCampaignProductTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsCampaignProductSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runCampaignProductSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),v=m((function(e){return function(t){return function(){var i=r.runCampaignShoppingCartTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsCampaignShoppingCartSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runCampaignShoppingCartSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),y=m((function(e){return function(t){return function(){var i=r.runCompareTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsCompareSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runCompareSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),_=m((function(e){return function(t){return function(){var i=r.runNavigationCategoryTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsNavigationCategorySubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runNavigationCategorySubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),S=m((function(e){return function(t){return function(){var i=r.runPredictiveBasketTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsPredictiveBasketSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runPredictiveBasketSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),k=m((function(e){return function(t){return function(){var i=r.runRecommendationTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsRecommendationSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runRecommendationSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),C=m((function(e){return function(t){return function(){var i=r.runRecordsTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runRecordsSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),w=m((function(e){return function(t){return function(){var i=r.runSimilarTransformers(d.emitError,t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();r.runElementsSimilarSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)(),r.runSimilarSubscribers(i,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return i}}})),P=function(e){return function(t){return function(){n.setFieldRoles(e.fieldRoles)();var i=r.runSuggestTransformers(d.emitError,e,t,s.sysConfig.debug)();r.runElementsSuggestSubscribers(i,t,s.sysConfig.debug)(),r.runSuggestSubscribers(i,t,s.sysConfig.debug)();return i}}},x=m((function(e){return function(t){return P(t)(a.pure(p.applicativeFFIMaybe)(e))}})),E=function(e){return function(t){return function(){var i=r.runSearchTransformers(d.emitError,e,t,s.sysConfig.debug)();r.setLastResultSearch(i)(),r.runElementsSearchSubscribers(i,t,s.sysConfig.debug)(),r.runSearchSubscribers(i,t,s.sysConfig.debug)();return i}}},I=function(e){return function(t){return function(){if(!1===r.runCampaignRedirectSubscribers(e,t,h,s.sysConfig.debug)())return e;n.setFieldRoles(e.fieldRoles)();var i=f(e);r.processHistorySearch(i)(t)(s.sysConfig.sandboxMode)();return E(i)(t)()}}},F=function(e){return function(t){return function(){var i=r.runPopularSearchesTransformers(d.emitError,e,t,s.sysConfig.debug)();r.runElementsPopularSearchesSubscribers(i,t,s.sysConfig.debug)(),r.runPopularSearchesSubscribers(i,t,s.sysConfig.debug)();return i}}},A=function(e){return function(t){return function(){var i=r.runNavigationTransformers(d.emitError,e,t,s.sysConfig.debug)();r.setLastResultNavigation(i)(),r.runElementsNavigationSubscribers(i,t,s.sysConfig.debug)(),r.runNavigationSubscribers(i,t,s.sysConfig.debug)();return i}}},M=function(e){return function(t){return function(){if(!1===r.runCampaignRedirectSubscribers(e,t,h,s.sysConfig.debug)())return e;n.setFieldRoles(e.fieldRoles)();var i=f(e);r.processHistoryNavigation(i)(t)(s.sysConfig.sandboxMode)();return A(i)(t)()}}};e.exports={elementsSubscribeNavigation:function(e){return r.elementsSubscribeNavigationImpl(s.sysConfig.autoFetch)(e)},elementsSubscribeSearch:function(e){return r.elementsSubscribeSearchImpl(s.sysConfig.autoFetch)(e)},elementsSubscribeSearchAndNavigation:function(e){return r.elementsSubscribeSearchAndNavigationImpl(s.sysConfig.autoFetch)(e)},subscribeNavigation:function(e){return r.subscribeNavigationImpl(s.sysConfig.autoFetch)(e)},subscribeSearch:function(e){return r.subscribeSearchImpl(s.sysConfig.autoFetch)(e)},subscribeSearchAndNavigation:function(e){return r.subscribeSearchAndNavigationImpl(s.sysConfig.autoFetch)(e)},dispatchNavigation:function(e,t){return r.unsafePerformEffectWK(M(e)(t))},dispatchNavigationBeforeTransform:function(e,t){return r.unsafePerformEffectWK(A(e)(t))},dispatchPopularSearches:function(e,t){return r.unsafePerformEffectWK(F(e)(t))},dispatchSearch:function(e,t){return r.unsafePerformEffectWK(I(e)(t))},dispatchSearchBeforeTransform:function(e,t){return r.unsafePerformEffectWK(E(e)(t))},dispatchSuggest:function(e,t){return r.unsafePerformEffectWK(P(e)(t))},dispatchSsrNavigation:function(e,t){return r.unsafePerformEffectWK((function(){a.when(l.applicativeEffect)("SSR_ONLY"===s.sysConfig.autoFetch)(r.enableAutoFetching)();return M(e)(r.setInitialNavigation(t))()}))},dispatchSsrSearch:function(e,t){return r.unsafePerformEffectWK((function(){a.when(l.applicativeEffect)("SSR_ONLY"===s.sysConfig.autoFetch)(r.enableAutoFetching)();return I(e)(r.setInitialSearch(t))()}))},successHandlerCampaignPage:g,successHandlerCampaignProduct:b,successHandlerCampaignShoppingCart:v,successHandlerCompare:y,successHandlerNavigation:function(e){return function(t){return!0===p.fromFFIMaybe(!1)(o.bind(p.bindFFIMaybe)(e.navigationOptions)((function(e){return o.bind(p.bindFFIMaybe)(e.requestOptions)((function(e){return e.requestOnly}))})))?a.pure(l.applicativeEffect)(t):M(t)(a.pure(p.applicativeFFIMaybe)(e))}},successHandlerNavigationCategory:_,successHandlerPopularSearches:function(e){return function(t){return!0===p.fromFFIMaybe(!1)(o.bind(p.bindFFIMaybe)(e.requestOptions)((function(e){return e.requestOnly})))?a.pure(l.applicativeEffect)(t):function(){r.runElementsBeforeAllPopularSearchesSubscribers(t,a.pure(p.applicativeFFIMaybe)(e),s.sysConfig.debug)();return F(t)(a.pure(p.applicativeFFIMaybe)(e))()}}},successHandlerPredictiveBasket:S,successHandlerRecommendation:k,successHandlerRecords:C,successHandlerSearch:function(e){return function(t){return!0===p.fromFFIMaybe(!1)(o.bind(p.bindFFIMaybe)(e.searchOptions)((function(e){return o.bind(p.bindFFIMaybe)(e.requestOptions)((function(e){return e.requestOnly}))})))?a.pure(l.applicativeEffect)(t):I(t)(a.pure(p.applicativeFFIMaybe)(e))}},successHandlerSimilar:w,successHandlerSuggest:x,elementsBeforeAllSubscribePopularSearches:r.elementsBeforeAllSubscribePopularSearches,elementsSubscribeCampaignPage:r.elementsSubscribeCampaignPage,elementsSubscribeCampaignProduct:r.elementsSubscribeCampaignProduct,elementsSubscribeCampaignShoppingCart:r.elementsSubscribeCampaignShoppingCart,elementsSubscribeCompare:r.elementsSubscribeCompare,elementsSubscribeNavigationCategory:r.elementsSubscribeNavigationCategory,elementsSubscribePopularSearches:r.elementsSubscribePopularSearches,elementsSubscribePredictiveBasket:r.elementsSubscribePredictiveBasket,elementsSubscribeRecommendation:r.elementsSubscribeRecommendation,elementsSubscribeRecords:r.elementsSubscribeRecords,elementsSubscribeSimilar:r.elementsSubscribeSimilar,elementsSubscribeSuggest:r.elementsSubscribeSuggest,elementsUnsubscribe:r.elementsUnsubscribe,subscribeCampaignPage:r.subscribeCampaignPage,subscribeCampaignProduct:r.subscribeCampaignProduct,subscribeCampaignRedirect:r.subscribeCampaignRedirect,subscribeCampaignShoppingCart:r.subscribeCampaignShoppingCart,subscribeCompare:r.subscribeCompare,subscribeNavigationCategory:r.subscribeNavigationCategory,subscribePopularSearches:r.subscribePopularSearches,subscribePredictiveBasket:r.subscribePredictiveBasket,subscribeRecommendation:r.subscribeRecommendation,subscribeRecords:r.subscribeRecords,subscribeSimilar:r.subscribeSimilar,subscribeSuggest:r.subscribeSuggest,unsubscribe:r.unsubscribe,transformCampaignPage:r.transformCampaignPage,transformCampaignProduct:r.transformCampaignProduct,transformCampaignShoppingCart:r.transformCampaignShoppingCart,transformCompare:r.transformCompare,transformNavigation:r.transformNavigation,transformNavigationCategory:r.transformNavigationCategory,transformPopularSearches:r.transformPopularSearches,transformPredictiveBasket:r.transformPredictiveBasket,transformRecommendation:r.transformRecommendation,transformRecords:r.transformRecords,transformSearch:r.transformSearch,transformSimilar:r.transformSimilar,transformSuggest:r.transformSuggest,disableAutoFetching:r.disableAutoFetching}},464:function(e,t,i){function r(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let t="";for(let i=0;i<30;++i)t+=e[Math.floor(62*Math.random())];return t}t.getOrCreateSidImpl=e=>t=>()=>{if(e)return e;const n=(factfinder.config.get().appConfig||{}).sandboxMode;let s;if(t)s=t;else{const e=function(e){try{return JSON.parse(e)}catch(e){return}}(n?i(8675).internalRouting.sandboxed.requestSessionData():localStorage.ffwebco);if(e&&"string"==typeof e.sid&&"string"==typeof e.timestamp){const{sid:t,timestamp:i}=e;s=Date.now()-parseInt(i,36)>864e5?r():t}else s=r()}const a=JSON.stringify({sid:s,timestamp:Date.now().toString(36)});return n?i(8675).internalRouting.sandboxed.broadcastSessionData(a):localStorage.ffwebco=a,s},t.setSIDImpl=e=>t=>Object.assign({},t,{sid:e})},6296:function(e,t,i){"use strict";var r=i(464),n=i(1287),s=i(8850),a=i(2024),o=r.setSIDImpl;e.exports={getOrCreateSid:function(e){return r.getOrCreateSidImpl(e)(s.bind(a.bindFFIMaybe)(n.config.val.ffParams)((function(e){return e.sid})))},setSID:o}},6496:function(e,t){t.merge=e=>t=>Object.assign({},e,t),t.jsonClone=e=>JSON.parse(JSON.stringify(e))},8455:function(e,t,i){"use strict";var r=i(6496);e.exports={merge:r.merge,jsonClone:r.jsonClone}},517:function(e,t){t.fromFFIMaybe=e=>t=>void 0===t?e:t,t.toFFIMaybe=e=>e,t.undefined=void 0,t.mapFFIMaybeImpl=e=>t=>void 0===t?t:e(t),t.applyFFIMaybeImpl=e=>t=>void 0===t?t:e(t),t.bindFFIMaybeImpl=e=>t=>void 0===e?e:t(e),t.pureFFIMaybeImpl=e=>e,t.eqImpl=e=>t=>e===t},2024:function(e,t,i){"use strict";var r=i(517),n=i(596),s={map:r.mapFFIMaybeImpl},a={eq:r.eqImpl},o={apply:r.applyFFIMaybeImpl,Functor0:function(e){return s}},c={bind:r.bindFFIMaybeImpl,Apply0:function(e){return o}},u={pure:r.pureFFIMaybeImpl,Apply0:function(e){return o}};e.exports={fromMaybe:function(e){return e instanceof n.Just?r.toFFIMaybe(e.value0):r[void 0]},functorFFIMaybe:s,applyFFIMaybe:o,bindFFIMaybe:c,applicativeFFIMaybe:u,eqFFIMaybe:a,fromFFIMaybe:r.fromFFIMaybe,toFFIMaybe:r.toFFIMaybe,undefined:r[void 0],mapFFIMaybeImpl:r.mapFFIMaybeImpl,applyFFIMaybeImpl:r.applyFFIMaybeImpl,bindFFIMaybeImpl:r.bindFFIMaybeImpl,pureFFIMaybeImpl:r.pureFFIMaybeImpl,eqImpl:r.eqImpl}},2409:function(e,t){t.unsafeToArray=e=>e},2877:function(e,t,i){"use strict";var r=i(2409),n=i(9704),s=i(7860),a=i(416),o={requireArg:function(e){return function(t){return s.requireArgImpl(e)(s.nonEmptyArray(t)(s.any("")))}}};e.exports={requireArgNonEmptyArray:o,validateMapNonEmptyArrayA:function(e){return{validateMap:function(t){return n.traverse(n.traversableArray)(a.applicativeFF)(a.validate(e))(r.unsafeToArray(t))}}}}},5995:function(e,t){t.mapFFImpl=e=>t=>t.then(e),t.applyFFImpl=e=>t=>Promise.all([e,t]).then((e=>e[0](e[1]))),t.bindFFImpl=e=>t=>e.then(t),t.pureFFImpl=e=>Promise.resolve(e)},416:function(e,t,i){"use strict";var r=i(5995),n={map:r.mapFFImpl},s={apply:r.applyFFImpl,Functor0:function(e){return n}},a={bind:r.bindFFImpl,Apply0:function(e){return s}},o={pure:r.pureFFImpl,Apply0:function(e){return s}};e.exports={requireArg:function(e){return e.requireArg},requireArgSync:function(e){return e.requireArgSync},checkOptionalArg:function(e){return e.checkOptionalArg},validate:function(e){return e.validate},validateSync:function(e){return e.validateSync},validateMap:function(e){return e.validateMap},validateOptional:function(e){return e.validateOptional},functorFF:n,applyFF:s,bindFF:a,applicativeFF:o}},2207:function(t,i,r){"use strict";r.d(i,{c:function(){return k},u:function(){return S}});var n={};r.r(n),r.d(n,{env:function(){return b},filterBuilders:function(){return m},formatters:function(){return g},toNavigationParams:function(){return v}});var s=r(8687),a=r(9707);const o={dispatchPopularSearchClick:e=>[...u.popSearchClick].reduce(((t,i)=>!1!==i(e)&&t),!0),dispatchSuggestClick:e=>[...u.suggestClick].reduce(((t,i)=>!1!==i(e)&&t),!0),dispatchSuggestDetail:e=>{var t;return null===(t=u.suggestDetail)||void 0===t?void 0:t.call(u,e)},dispatchSuggestUnmapped:e=>{var t;return null===(t=u.suggestUnmapped)||void 0===t?void 0:t.call(u,e)},addSuggestHideListener:e=>u.suggestHide.add(e),removeSuggestHideListener:e=>u.suggestHide.delete(e),dispatchSuggestHide:e=>u.suggestHide.forEach((t=>t(e)))},c={addPopularSearchClickListener:(0,a.z)((e=>{u.popSearchClick.add(e)})),addSuggestClickListener:(0,a.z)((e=>{u.suggestClick.add(e)})),setSuggestDetailListener:(0,a.z)((e=>{u.suggestDetail=e})),setSuggestUnmappedListener:(0,a.z)((e=>{u.suggestUnmapped=e}))},u={popSearchClick:new Set,suggestClick:new Set,suggestDetail:void 0,suggestUnmapped:void 0,suggestHide:new Set};var l=r(8675),d=r(9312),p=r.n(d),h=r(6041);const f=(e,t,i)=>"".concat(e," - ").concat(t," ").concat(i);p().registerHelper("$",(function(e,t){var i;const r=null===(i=S.getConfig().appConfig)||void 0===i?void 0:i.formatting;if(!r)return e;const n=Number.isInteger(t)?{...r.formatOptions,maximumFractionDigits:t,minimumFractionDigits:t}:r.formatOptions;return Intl.NumberFormat(r.locale,n).format(e)})),p().registerHelper("$dec",(function(e,t){var i;const r=null===(i=S.getConfig().appConfig)||void 0===i?void 0:i.formatting;if(!r)return e;const n=Number.isInteger(t)?{maximumFractionDigits:t,minimumFractionDigits:t}:{};return Intl.NumberFormat(r.locale,n).format(e)})),p().registerHelper("$bctFilter",(function(){var e;const{item:t,facet:i}=this,r=S.getConfig().appConfig,n=null==r?void 0:r.formatting;if(!n)return t.text;if("filter"!==t.type)return t.text;if(i&&!i.unit)return t.text;var s;if(!i&&t.associatedFieldName!==(null===(s=(0,h.kE)())||void 0===s?void 0:s.price))return t.text;const a=Intl.NumberFormat(n.locale,n.formatOptions).formatToParts(.1),o=a.find((e=>"currency"===e.type));if(!o||i&&i.unit!==o.value)return t.text;const c=a.find((e=>"fraction"===e.type)),u=null!==(e=null==c?void 0:c.value.length)&&void 0!==e?e:2,l=Intl.NumberFormat(n.locale,{minimumFractionDigits:u,maximumFractionDigits:u}),[[d],[p]]=Array.from(t.value.matchAll(/\d+(\.\d+)?/g));return f(l.format(d),l.format(p),o.value)})),p().registerHelper("$facetElement",(function(){var e,t;const i=this.element,r=this.facet||this.group;if(null==r||!r.unit)return null==i?void 0:i.text;const n=null===(e=S.getConfig().appConfig)||void 0===e?void 0:e.formatting;if(!n)return null==i?void 0:i.text;const s=Intl.NumberFormat(n.locale,n.formatOptions).formatToParts(.1),a=s.find((e=>"currency"===e.type));if(!a||r.unit!==a.value)return i.text;const o=s.find((e=>"fraction"===e.type)),c=null!==(t=null==o?void 0:o.value.length)&&void 0!==t?t:2,u=Intl.NumberFormat(n.locale,{minimumFractionDigits:c,maximumFractionDigits:c});return"SLIDER"===r.filterStyle?f(u.format(i.selectedMinValue),u.format(i.selectedMaxValue),a.value):i.text.replaceAll(/\d+(\.\d+)?/g,(e=>u.format(e)))+" "+a.value}));const m={categoryFilter(e,t){if(!e||"string"!=typeof e)throw Error("'name' must be a non-empty string. Was: '".concat(e,"' (Type: ").concat(typeof e,")"));if(!Array.isArray(t)||0===t.length)throw Error("'path' must be a non-empty array. Was: '".concat(t,"'"));return{name:e,substring:!1,values:[{exclude:!1,type:"or",value:t}]}},filter(e,t){if(!e||"string"!=typeof e)throw Error("'name' must be a non-empty string. Was: '".concat(e,"' (Type: ").concat(typeof e,")"));if(!t)throw Error("'values' must not be empty. Was: '".concat(t,"'"));return{name:e,substring:!1,values:(Array.isArray(t)?t:[t]).map((e=>({exclude:!1,type:"or",value:e})))}}},g={add(e,t){p().helpers.hasOwnProperty(e)?console.warn("Formatter '".concat(e,"' already exists. Custom formatter not added.")):p().registerHelper(e,(function(){for(var e=arguments.length,i=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};const s=new URLSearchParams(window.location.search),a={activeAbTests:e=>{let[t]=e;const i={};return t.values.map((e=>{const[t,r]=e.split(":");return i[t]=r})),i},advisorStatus:e=>{let[t]=e;const[i,r]=t.values[0].split(/-(?=[^-]+$)/);return{answerPath:r,id:i}},articleNumberSearch:e=>{let[t]=e;const i=["DETECT","ALWAYS","NEVER"],r=t.values[0].toUpperCase();if(i.includes(r))return r;console.warn("Invalid input to 'articleNumberSearch'. Must be one of: ".concat(JSON.stringify(i),". Was: ").concat(r))},excludeProductsNotInRange:d,filters:(e,t)=>{const i=[],r=e.find((e=>{let{key:t}=e;return"filter"===t})),n=e.find((e=>{let{key:t}=e;return"substringFilter"===t}));return r&&i.push(s(r,!1)),n&&i.push(s(n,!0)),i.flat();function s(e,i){let{values:r}=e;return r.map((e=>{const[r,n]=e.split(/:(.*)/),s=n.split(/(?=~~~|___)/).map((e=>{const[i,n,s,a]=e.match(/^(~~~|___)?(!)?(.+)$/);return{exclude:"!"===s,type:"___"===n?"and":"or",value:r===t?a.split("/").map(decodeURIComponent):a}}));return{name:r,substring:i,values:s}}))}},followSearch:l,hitsPerPage:u,location:e=>{var t,i;const r=null===(t=e.find((e=>{let{key:t}=e;return"latitude"===t})))||void 0===t?void 0:t.values[0],n=null===(i=e.find((e=>{let{key:t}=e;return"longitude"===t})))||void 0===i?void 0:i.values[0];if(r&&n)return{latitude:parseFloat(r),longitude:parseFloat(n)}},marketIds:function(e){let[t]=e;return t.values},maxCountVariants:u,maxDistance:function(e){let[t]=e;return parseFloat(t.values[0])},page:u,purchaserId:l,query:l,searchField:l,showMarkets:d,showPermutedSearchParams:d,sortItems:e=>{let[t]=e;return t.values.map((e=>{const[t,i]=e.split(":");return{name:t,order:i}}))},splitDocumentsAt:u},o={activeAbTests:["activeAbTest"],filters:["filter","substringFilter"],location:["latitude","longitude"],marketIds:["marketId"],sortItems:["sort"]},c={};return Object.entries(a).forEach((a=>{let[u,l]=a;if("query"===u&&(c[u]="*"),t.includes(u))return;const d=(o[u]||[u]).flatMap((e=>{const t=r[e]||e;return s.has(t)?{key:e,values:s.getAll(t)}:[]}));if(d.length){const t="filters"===u,r=function(t,r,n){if(!t)return r;try{return n?t(r,i):t(r)}catch(t){return console.warn("Error in pre-parser.",e),r}}(n[u],d,t),s=t?l(r,i):l(r);s&&(c[u]=s)}})),c;function u(e){let[t]=e;return parseInt(t.values[0])}function l(e){let[t]=e;return t.values[0]}function d(e){let[t]=e;return"true"===t.values[0].toLowerCase()}}},v=e=>{let{articleNumberSearch:t,query:i,searchField:r,...n}=e;return n},y={...s.publicCore,version:"5.1.5",notifications:c,routing:l.publicRouting,utils:{...n}},_=new CustomEvent("_ffSdkVersion",{bubbles:!0,cancelable:!1});_.setSdkVersion=e=>{y.sdk=e},document.dispatchEvent(_);const S={...s.internalCore,notifications:o,routing:l.internalRouting},k=Object.freeze(y);window.factfinder=k;let C=!1;const w=new CustomEvent("ffCoreReady",{bubbles:!0,cancelable:!1});if(w.factfinder=k,w.init=e=>{if(C)throw Error("'init' must not be called multiple times.");s.internalCore.init(e),C=!0},w.initialSearch=(e,t)=>{if(!C)throw Error("Must call 'init' before 'initialSearch'.");if(!e)throw Error("searchOrNavigationParams is required.");return(0,h.hT)(e,"initialSearch",{...t,initial:!0})},document.dispatchEvent(w),!C)throw Error("'init' was not called during 'ffCoreReady' event.")},2240:function(e,t,i){"use strict";i.d(t,{D:function(){return s},l:function(){return n}});var r=i(2207);const n=Object.freeze({CampaignPage:"CampaignPage",CampaignProduct:"CampaignProduct",CampaignShoppingCart:"CampaignShoppingCart",Compare:"Compare",Navigation:"Navigation",NavigationCategory:"NavigationCategory",PredictiveBasket:"PredictiveBasket",Recommendation:"Recommendation",Search:"Search",Similar:"Similar",Suggest:"Suggest",SearchAndNavigation:"SearchAndNavigation"}),s=function(){for(var e=arguments.length,t=new Array(e),i=0;iclass extends e{constructor(){super(),this._subscriptionKeys=void 0,this._subscribedTopics=void 0}connectedCallback(){if("function"==typeof super.connectedCallback&&super.connectedCallback(),!this._subscriptionKeys&&!1!==this.subscribe){const e=this.topic?[this.topic]:t;a(this,e)}}update(){const e=this.topic?[this.topic]:t;!1===this.subscribe?o(this):u(e,this._subscribedTopics)||c(this,e),"function"==typeof super.update&&super.update()}disconnectedCallback(){"function"==typeof super.disconnectedCallback&&super.disconnectedCallback(),this._subscriptionKeys&&o(this)}_subscriptionCallback(){throw new Error("'_subscriptionCallback' function not implemented")}}},a=(e,t)=>{const i=t.filter((t=>"function"==typeof r.u["elementsSubscribe".concat(t)]||(console.error("Element's subscription target '".concat(t,"' does not exist."),e),!1)));e._subscriptionKeys=i.map((t=>r.u["elementsSubscribe".concat(t)](e._subscriptionCallback.bind(e)))),e._subscribedTopics=i},o=e=>{var t;null===(t=e._subscriptionKeys)||void 0===t||t.forEach((e=>r.u.elementsUnsubscribe(e))),e._subscriptionKeys=void 0,e._subscribedTopics=void 0},c=(e,t)=>{e._subscribedTopics&&o(e),a(e,t)},u=(e,t)=>e.length===t.length&&e.every((e=>t.includes(e)))&&t.every((t=>e.includes(t)))},3940:function(e,t,i){"use strict";i.d(t,{X:function(){return r}});const r=function(){let e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>{const i=t(e);return i===e||e.prototype instanceof i?e:i}),e)}},7854:function(e,t,i){"use strict";i.d(t,{E:function(){return r}});const r=()=>e=>class extends e{__transitionEnd(e){const t=e&&e.nodeName?e:e.currentTarget;try{t.__transitionActive__=!1,t.removeEventListener("transitionend",this.__transitionEnd);"0px"!==t.style.height?(this._updateTransition(t,!1),t.style.height="",t.style.overflow="",setTimeout((()=>this._updateTransition(t,!0)))):this._updateTransition(t,!0)}catch(e){console.log(e)}finally{if(t&&t.__collapseCallback__){const e=t.__collapseCallback__;delete t.__collapseCallback__,setTimeout((()=>{try{e()}catch(e){console.log(e)}}),16)}}}_updateTransition(e,t){e.style["transition-duration"]=!0===t?"":"0ms"}_isDisplayed(e){const t=e.getBoundingClientRect();for(let e in t)if(0!==t[e])return!0;return!1}_hide(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;try{"0px"!==e.style.height&&this._doTransition(e,t,"0px",i)}catch(e){console.log(e)}}_show(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;try{this._doTransition(e,t,"auto",i)}catch(e){console.log(e)}}_toggle(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;e.hasAttribute("opened")?this._hide(e,t,i):this._show(e,t,i)}_doTransition(e,t,i,r){if(e.__transitionActive__)return;e.__transitionActive__=!0,r&&(e.__collapseCallback__=r);const n=window.getComputedStyle(e),s=n["transition-duration"]||n.transitionDuration;if(t=s&&"0"!==s.replace(/\D/g,"")&&t,this._updateTransition(e,!1),t&&this._isDisplayed(e)){const r=n.height;if("auto"===i&&(e.style.height="",i=n.height),e.style.height=r,i===r)return e.style.height="",e.__transitionActive__=!1,delete e.__collapseCallback__,void this._updateTransition(e,t);e.offsetHeight;this._updateTransition(e,t),e.addEventListener("transitionend",this.__transitionEnd.bind(this))}if("0px"===i?(e.style.overflow="hidden",e.removeAttribute("opened")):e.setAttribute("opened",""),e.style.height=i,!t||!this._isDisplayed(e)){e.offsetHeight;this.__transitionEnd(e)}}_showChecked(e,t,i){e&&this._show(e,t,i)}_hideChecked(e,t,i){e&&this._hide(e,t,i)}_toggleChecked(e,t,i){e&&this._toggle(e,t,i)}}},8486:function(e,t,i){"use strict";i.d(t,{h:function(){return r}});const r=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>class extends t{updated(){super.updated(...arguments),e&&this.resolveDeferredAttributes()}resolveDeferredAttributes(){const e=this.getAttribute("data-ffw-defer");e&&e.split(",").forEach((e=>{const t="data-ffw-defer-".concat(e),i="data-defer-".concat(e);this.querySelectorAll("[data-ffw-defer-".concat(e,"],[data-defer-").concat(e,"]")).forEach((r=>{const n=r.getAttribute(t)||r.getAttribute(i);n&&r.setAttribute(e,n)}))}))}}}},7982:function(e,t,i){"use strict";i.d(t,{d:function(){return r}});const r=()=>e=>class extends e{trace(e){e=this._createMsg("trace",e),console.trace(e)}info(e){e=this._createMsg("info",e),console.info(e)}debug(e){e=this._createMsg("debug",e),console.debug(e)}warn(e){e=this._createMsg("warn",e),console.warn(e)}error(e){e=this._createMsg("error",e),console.error(e)}_createMsg(e,t){return"".concat(e.toUpperCase()," ").concat(this.constructor.is,": ").concat(t)}}},7361:function(e,t,i){"use strict";i.d(t,{z:function(){return r}});const r=()=>e=>class extends e{connectedCallback(){"function"==typeof super.connectedCallback&&super.connectedCallback(),this.hasAttribute("unresolved")&&this.removeAttribute("unresolved")}}},1136:function(e,t,i){"use strict";i.r(t),i.d(t,{AsnRemoveAllFilters:function(){return c}});var r=i(2207),n=i(3940),s=i(4474),a=i(2240),o=i(6041);class c extends((0,n.X)([(0,a.D)(a.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-asn-remove-all-filters"}static get properties(){return{showAlways:{type:Boolean,attribute:"show-always"},removeParams:{type:Boolean,attribute:"remove-params"}}}constructor(){super(),this.showAlways=!1,this.removeParams=!1,this._searchParams=void 0}connectedCallback(){this.hideSelf(),super.connectedCallback(),this.addEventListener("click",u)}_subscriptionCallback(e){this._searchParams=e.searchParams,!1===this.showAlways&&!function(e){var t,i;if(!e.filters)return!1;const n=null===(t=r.u.getConfig().appConfig)||void 0===t?void 0:t.categoryPage;if(0===(null!==(i=null==n?void 0:n.length)&&void 0!==i?i:0))return!0;if(e.filters.length>n.length)return!0;return!e.filters.every((e=>n.findIndex((t=>{return r=t,(i=e).name===r.name&&i.values.length===r.values.length&&i.values.every((e=>r.values.find((t=>function(e,t){const i=e.value,r=t.value;return i===r||Array.isArray(i)&&Array.isArray(r)&&i.length===r.length&&i.every(((e,t)=>e===r[t]))}(e,t)))));var i,r}))>-1))}(e.searchParams)?this.hideSelf():this.showSelf()}}function u(){var e;const t=null===(e=r.u.getConfig().appConfig)||void 0===e?void 0:e.categoryPage;if(this.removeParams){const e={query:this._searchParams.query};t&&(e.filters=t),(0,o.hT)(e,this)}else{const{filters:e,...i}=this._searchParams;t&&(i.filters=t),delete i.page,(0,o.hT)(i,this)}}window.customElements.define(c.is,c)},5220:function(e,t,i){"use strict";i.r(t),i.d(t,{Asn:function(){return ie}});var r=i(168),n=i(3282),s=i(3940),a=i(9890),o=i(8477);const c=new WeakMap,u=(0,a.XM)((e=>t=>{if(!(t instanceof a.nt))throw new Error("cache can only be used in text bindings");let i=c.get(t);void 0===i&&(i=new WeakMap,c.set(t,i));const r=t.value;if(r instanceof o.R){if(e instanceof a.js&&r.template===t.options.templateFactory(e))return void t.setValue(e);{let e=i.get(r.template);void 0===e&&(e={instance:r,nodes:document.createDocumentFragment()},i.set(r.template,e)),(0,a.V)(e.nodes,t.startNode.nextSibling,t.endNode)}}if(e instanceof a.js){const r=t.options.templateFactory(e),n=i.get(r);void 0!==n&&(t.setValue(n.nodes),t.commit(),t.value=n.instance)}t.setValue(e)}));var l,d,p=i(4474),h=i(498),f=i(6858),m=i(8486),g=i(7982),b=i(6041);class v extends((0,s.X)([(0,g.d)(),(0,m.h)()],p.jD)){static get is(){return"ff-asn-group-element"}static get properties(){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}}}render(){const e=this.element&&{...this.element,text:this.element.__HIGHLIGHTED_NAME__||this.element.text};return this.selected?(0,n.dy)(l||(l=(0,r.Z)(['
',"
"])),(0,p.SM)(this._selectedTemplate,{element:e,group:this.group})):(0,n.dy)(d||(d=(0,r.Z)(['
',"
"])),(0,p.SM)(this._unselectedTemplate,{element:e,group:this.group}))}constructor(){var e;super(),this.selected=!1,this.element=void 0,this.group=void 0,this._rawOuterHtml="",this._selectedTemplate=y("selected"),this._unselectedTemplate=y("unselected"),this._clickListener=(e=this,t=>{e.implicit||e.fixed||(e.selected=!e.selected,(0,b.hT)(e.element.searchParams,e))})}connectedCallback(){super.connectedCallback(),this._init()}_init(){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)}update(e){var t,i,r,n;e.has("element")&&(r=this,(n=this.element)?(r.selected="FALSE"!==n.selected,r.implicit="IMPLICIT"===n.selected,r.fixed=(t=r.group,!("TRUE"!==(i=n).selected||!i.text)&&(0,b.rE)(t).includes(i.text)),r.className=r.className.replace(/ ?\bclusterLevel\d+\b/g,"").trim(),n.clusterLevel&&r.classList.add("clusterLevel".concat(n.clusterLevel)),r.showSelf()):r.hideSelf()),super.update()}updated(e){super.updated(e),(0,f.M)(this)}clone(e,t){const i=this._rawOuterHtml?(0,h.yi)(this._rawOuterHtml):document.createElement(v.is);return i.group=e,i.element=t,i._selectedTemplate=this._selectedTemplate,i._unselectedTemplate=this._unselectedTemplate,i}}function y(e){return(0,h.yi)('
{{element.text}}
'))}window.customElements.define(v.is,v);var _,S,k,C,w,P,x,E=i(7854);const I=Object.freeze({DetailedLinksContainer:'[data-container="detailedLinks"]',HiddenLinksContainer:'[data-container="hiddenLinks"]',DetailedLinksContent:'[data-content="detailedLinks"]',HiddenLinksContent:'[data-content="hiddenLinks"]',SelectBoxPlaceholderOption:"option:not([data-template])",SelectBoxOptionTemplate:"option[data-template]",ToggleWrapper:".ffw-wrapper",ShowMoreContainer:'[data-container="showMore"]',ShowLessContainer:'[data-container="showLess"]',GroupCaptionContainer:'[slot="groupCaption"]',RemoveFilterContainer:'[data-container="removeFilter"]',FilterSearchFieldContainer:'[slot="filterSearch"]'});class F extends((0,s.X)([(0,g.d)(),(0,E.E)()],p.jD)){static get is(){return"ff-asn-group"}static get properties(){return{collapsible:{type:p.k_},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:p.k_,attribute:"select-box"},notSearchable:{type:Boolean,attribute:"not-searchable"}}}render(){if(!this._initialized)return(0,n.dy)(_||(_=(0,r.Z)(['
'])));this._filterSearchInput=this.querySelector("".concat(I.FilterSearchFieldContainer," input"));const e={group:this.group};return(0,n.dy)(S||(S=(0,r.Z)(['
','
'," "," ","
"])),(()=>this.toggle(!0)),(0,p.SM)(this._groupCaptionTemplate,e),(e=>function(e,t){const i=t.composedPath(),r=i[0];if("INPUT"!==r.nodeName)return;if(!i.slice(1).some((e=>e.getAttribute&&"filterSearch"===e.getAttribute("slot"))))return;e.requestUpdate();const n=new RegExp((0,b.yI)(r.value)||"$a","gi"),{headMatchedElements:s,otherMatchedElements:a}=[...e.group.selectedElements,...e.group.elements].reduce(((e,t)=>{n.lastIndex=0;const i=n.exec(t.text);if(null===i)return e;const r=t.text.replace(n,(e=>''.concat(e,"")));return(0===i.index?e.headMatchedElements:e.otherMatchedElements).push({...t,__HIGHLIGHTED_NAME__:r}),e}),{headMatchedElements:[],otherMatchedElements:[]});M(e._filterSearchContainer,e._asnGroupElementTemplate,e.group,[...s,...a])}(this,e)),L(function(e){if(!e.group)return!1;const t=e.group.elements.length+e.group.selectedElements.length;return!e.notSearchable&&t>=e.parentNode.searchableFrom}(this),(0,p.SM)(this._filterSearchField,e)),u(this._filterSearchInput&&this._filterSearchInput.value.length>0?this._filterSearchContainer:function(e){const t=(i=e.group,!!i&&i.elements.length>i.detailedLinks);var i;return(0,n.dy)(k||(k=(0,r.Z)([""," "," "," ",""])),e._detailedLinksContainer,L(t,e._hiddenLinksContainer),L(t&&!e.selectBox,e._showMoreContainer),L(t&&!e.selectBox,e._showLessContainer))}(this)),L(function(e){if(!e)return!1;const t=function(e){let{elements:t,selectedElements:i}=e;return[...i,...t].filter((e=>"TRUE"===e.selected))}(e);if(0===t.length)return!1;const i=(0,b.rE)(e);return 0===i.length||t.some((0,b.pk)(i))}(this.group),this._removeFilterContainer))}constructor(){super(),this.collapsible=!0,this.opened=!1,this.forGroup=void 0,this.filterStyle=void 0,this.disableAutoExpand=!1,this.group=void 0,this.selectBox=!1,this.notSearchable=!1,this._detailedElements=[],this._hiddenElements=[],this._wrapper=void 0,this._initialized=!1,this._rawOuterHtml="",this._asnGroupElementTemplate=void 0,this._groupCaptionTemplate=void 0,this._selectBoxOptionTemplate=void 0,this._selectBoxPlaceholderOption=void 0,this._detailedLinksContainer=void 0,this._hiddenLinksContainer=void 0,this._showMoreContainer=void 0,this._showLessContainer=void 0,this._removeFilterContainer=void 0,this._filterSearchContainer=void 0,this._filterSearchField=void 0,this._filterSearchInput=void 0}connectedCallback(){super.connectedCallback(),this._init()}_init(){this._initialized||(this._rawOuterHtml=this.outerHTML,this._asnGroupElementTemplate=this.querySelector(v.is)||document.createElement(v.is),this._groupCaptionTemplate=function(e){return e.querySelector(I.GroupCaptionContainer)||t();function t(){return(0,h.yi)('
{{group.name}}
')}}(this),this._detailedLinksContainer=function(e){return e.querySelector(I.DetailedLinksContainer)||t();function t(){return(0,h.yi)((0,h.iS)(w||(w=(0,r.Z)(['
']))))}}(this),this._hiddenLinksContainer=this.querySelector(I.HiddenLinksContainer),this._filterSearchField=function(e){const t=e.querySelector(I.FilterSearchFieldContainer);return t?t.cloneNode(!0):i();function i(){return(0,h.yi)('
')}}(this),function(e){if(null===e._filterSearchField.querySelector("input"))throw new Error(" not found in filterSearch template")}(this),this._filterSearchContainer=(0,h.yi)('
'),this._hiddenLinksContainer&&!this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer.style.height="0",this._hiddenLinksContainer.style.overflow="hidden"),this._initShowMore(),this._initShowLess(),this._initHiddenLinksContainer(),this._removeFilterContainer=function(e,t){const i=e.querySelector(I.RemoveFilterContainer)||r();return i.addEventListener("click",(()=>{const i=t(),r=Object.assign({},(i.selectedElements[0]||i.elements[0]).searchParams),s=n(i,r.filters);s.length?r.filters=s:delete r.filters,(0,b.hT)(r,e)})),i;function r(){return(0,h.yi)('
Reset Filter
')}function n(e){let{associatedFieldName:t}=e;const i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).filter((e=>e.name!==t)),r=(0,b.M7)().find((e=>e.name===t));return r&&i.push(r),i}}(this,(()=>this.group||{})),this.selectBox&&(this._selectBoxOptionTemplate=function(e){return e.querySelector(I.SelectBoxOptionTemplate)||t();function t(){return(0,h.yi)("")}}(this._hiddenLinksContainer)),this.style.display="none",this._initialized=!0)}update(e){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=function(e,t,i,r){const n=(0,b.rE)(t),s=0===n.length?r:[...r.filter((e=>n.includes(e.text))),...r.filter((e=>!n.includes(e.text)))];return M(e.querySelector(I.DetailedLinksContent),i,t,s),e}(this._detailedLinksContainer,this.group,this._asnGroupElementTemplate,this._detailedElements),this._hiddenLinksContainer&&(this.selectBox?this._hiddenLinksContainer=O(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):this._hiddenLinksContainer.hasAttribute("opened")&&(this._hiddenLinksContainer=A(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements))),(this.opened||N(this.group)&&!this.disableAutoExpand)&&this.show(!1),this.style.display="",this.style.opacity="1"):(this.style.display="none",this.style.opacity="0")),super.update(e)}firstUpdated(e){this._wrapper=this.querySelector(I.ToggleWrapper),this.opened||e.has("group")&&N(this.group)&&!this.disableAutoExpand?this.show(!1):this._hide(this._wrapper,!1,(()=>this.opened=!1)),!1===this.opened&&!0!==this.disableAutoExpand&&N(this.group)&&this.show(!1)}updated(e){e.has("group")&&(this.forGroup&&"all"!==this.forGroup||(this.forGroup=this.group.associatedFieldName),this.filterStyle||(this.filterStyle=this.group.filterStyle)),this.group?this.showSelf():this.hideSelf()}show(e){this._wrapper&&(this._show(this._wrapper,e),this._wrapper.setAttribute("opened",""),this.opened=!0)}hide(e){this.opened&&this.collapsible&&this._wrapper&&(this._hide(this._wrapper,e,(()=>this.opened=!1)),this._wrapper.removeAttribute("opened"))}toggle(e){this.opened?this.hide(e):this.show(e)}showDetailedLinksContainer(e){this._show(this._detailedLinksContainer,e)}hideDetailedLinksContainer(e){this._hide(this._detailedLinksContainer,e)}toggleDetailedLinksContainer(e){this._detailedLinksContainer.hasAttribute("opened")?this.hideDetailedLinksContainer(e):this.showDetailedLinksContainer(e)}showHiddenLinksContainer(e){this._hiddenLinksContainer=this.selectBox?O(this._hiddenLinksContainer,this._selectBoxPlaceholderOption,this._selectBoxOptionTemplate,this.group,this._hiddenElements):A(this._hiddenLinksContainer,this._asnGroupElementTemplate,this.group,this._hiddenElements),this._showMoreContainer&&(this._showMoreContainer.style.display="none"),this._showLessContainer&&(this._showLessContainer.style.display=""),setTimeout((()=>{this._showChecked(this._hiddenLinksContainer,e),this._hiddenLinksContainer.setAttribute("opened","")}))}hideHiddenLinksContainer(e){this._showMoreContainer&&(this._showMoreContainer.style.display=""),this._showLessContainer&&(this._showLessContainer.style.display="none"),this._hideChecked(this._hiddenLinksContainer,e,(()=>{}))}toggleHiddenLinksContainer(e){this._hiddenLinksContainer.hasAttribute("opened")?this.hideHiddenLinksContainer(e):this.showHiddenLinksContainer(e)}clone(){return(0,h.yi)(this._rawOuterHtml)}_initShowMore(){this._showMoreContainer=this.querySelector(I.ShowMoreContainer)||(0,h.yi)('
Show More
'),this.selectBox?this._hide(this._showMoreContainer):this._show(this._showMoreContainer),this._showMoreContainer.addEventListener("click",(()=>this.showHiddenLinksContainer(!0)))}_initShowLess(){this.selectBox&&this._hideChecked(this._showMoreContainer),this._showLessContainer=this.querySelector(I.ShowLessContainer)||(0,h.yi)('
Show Less
'),this._showLessContainer.style.display="none",this._showLessContainer.addEventListener("click",(()=>this.hideHiddenLinksContainer(!0)))}_initHiddenLinksContainer(){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=e()):0===this._hiddenLinksContainer.querySelectorAll(I.SelectBoxPlaceholderOption).length&&this._hiddenLinksContainer.insertBefore((0,h.yi)(""),this._hiddenLinksContainer.firstElementChild):this._hiddenLinksContainer=e(),this._selectBoxPlaceholderOption=this._hiddenLinksContainer.querySelector(I.SelectBoxPlaceholderOption),this._hiddenLinksContainer.addEventListener("change",function(e){return()=>{const t=e._hiddenLinksContainer.options[e._hiddenLinksContainer.selectedIndex].data;t&&(0,b.hT)(t.searchParams,this)}}(this)),this._show(this._hiddenLinksContainer);else{if(!this._hiddenLinksContainer){const e=(0,h.iS)(C||(C=(0,r.Z)(['
'])));this._hiddenLinksContainer=(0,h.yi)(e)}this._hiddenLinksContainer.hasAttribute("opened")?this._show(this._hiddenLinksContainer):this._hide(this._hiddenLinksContainer)}function e(){return(0,h.yi)('"))}}}function A(e,t,i,r){return M(e.querySelector(I.HiddenLinksContent),t,i,r),e}function M(e,t,i,s){(0,a.sY)((0,n.dy)(P||(P=(0,r.Z)(["",""])),s.map((e=>t.clone(i,e)))),e)}function O(e,t,i,s,o){const c=o.map((e=>(0,p.SM)(i,{group:s,element:e})));return(0,a.sY)((0,n.dy)(x||(x=(0,r.Z)(["",""])),[(0,p.SM)(t),...c]),e),e.selectedIndex=0,e.querySelectorAll(I.SelectBoxOptionTemplate).forEach(((e,t)=>{const i=o[t];e.value=i.text,e.data=i})),e}function N(e){return!!e&&(e.selectedElements.length>0||e.elements.some((e=>"TRUE"===e.selected)))}function L(e,t){return e?t:void 0}window.customElements.define(F.is,F);var T,q,R=i(2207),B=i(792),D=i(4675),j=i(3643);const H=["".concat(D.Slider.is),"input[data-control='min']","input[data-control='max']"],V=(0,h.iS)(T||(T=(0,r.Z)(['
'])));class U extends p.jD{static get is(){return"ff-slider-control"}static get properties(){return{disableInputFields:{type:p.k_,attribute:"disable-input-fields"},submitOnInput:{type:p.k_,attribute:"submit-on-input"},group:{type:Object,attribute:!1},fractionDigits:{type:Number,attribute:"fraction-digits"}}}render(){return(0,n.dy)(q||(q=(0,r.Z)(['
',"
"])),this._content)}constructor(){super(),this.disableInputFields=!1,this.submitOnInput=!1,this.group=void 0,this.fractionDigits=0,this._inputMin=void 0,this._inputMax=void 0,this._slider=void 0,this._unitElements=void 0,this._submitDelay=500,this._content=void 0,this._isSubmitScheduled=!1,this._submitInputMinDebouncerJob=void 0,this._submitInputMaxDebouncerJob=void 0}initDefaultTemplates(){if(this._content)return;let e;(0,p.np)(this)?(this._content=(0,h.yi)(V),e=this._content):(this._content=Array.from(this.childNodes),e=this),this._slider=e.querySelector(H[0]),this._inputMin=e.querySelector(H[1]),this._inputMax=e.querySelector(H[2]),function(e){const t=H.filter((t=>!e.querySelector(t)));if(0===t.length)return;throw Error("".concat(U.is,' does not have all required templates.\nYou must provide a template for each of the following selectors: "').concat(H.join('", "'),'".\nMissing templates are: "').concat(t.join('", "'),'".\nAlternatively, you may leave ').concat(U.is," empty. In this case, default templates will be used."))}(e),this._unitElements=e.querySelectorAll("[data-unit]"),this._slider.addEventListener("slider-moved",this._valueChanged.bind(this)),this._slider.addEventListener("value-changed",this._valueChanged.bind(this))}update(e){e.has("group")&&this._groupChanged(),super.update(e)}disconnectedCallback(){this._submitInputMinDebouncerJob&&this._submitInputMinDebouncerJob.cancel(),this._submitInputMaxDebouncerJob&&this._submitInputMaxDebouncerJob.cancel(),super.disconnectedCallback()}init(e){this._inputMin.value=this._format(e.selectedMinValue),this._inputMax.value=this._format(e.selectedMaxValue),this.disableInputFields?this._disableFocusInput():this._initInputSubmit(),Promise.resolve().then((()=>this.style.opacity="1"))}submit(){this._submitInputMax()&&(this._submitInputMin()||(this._isSubmitScheduled=!1))}_groupChanged(){this.group&&setTimeout((()=>{this._updateInput(this._inputMax,this._slider.selectedMaxValue),this._updateInput(this._inputMin,this._slider.selectedMinValue),this._unitElements.forEach((e=>e.innerText=this.group.unit))}),1)}_updateInput(e,t){if(!e)return;this._slider&&void 0!==t&&(e.value=this._format(t));const i=e.attributes;for(let e=0;eW(this._inputMax)||i>(null===(e=this.group)||void 0===e||null===(e=e.elements[0])||void 0===e?void 0:e.absoluteMaxValue))&&(this._slider.selectedMinValue=i,this._slider._forceUpdate=!0,this._inputMin.value=this._format(i),this._inputMin.blur(),this._scheduleSubmit(),!0)}_submitInputMax(){var e;let t=W(this._inputMax);isNaN(t)&&(t=this._slider.selectedMaxValue);const i=K(t,this._slider.step);return!(i{this._isSubmitScheduled&&(this._isSubmitScheduled=!1,this._slider.submit())})))}_initInputSubmit(){this._submitInputMinDebouncerJob=(0,B.D)(this._submitInputMinDebouncerJob,(()=>{this._submitInputMin(),this._inputMin.focus()}),this._submitDelay),this._submitInputMaxDebouncerJob=(0,B.D)(this._submitInputMinDebouncerJob,(()=>{this._submitInputMax(),this._inputMax.focus()}),this._submitDelay);const e=e=>t=>{const i=(t=window.event||t).keyCode||t.which;if(13===i)return this.submit(),!1;this.submitOnInput&&function(e){return e>=48&&e<=57||e>=96&&e<=105}(i)&&e.run()};this._inputMin.onkeyup=e(this._submitInputMinDebouncerJob),this._inputMax.onkeyup=e(this._submitInputMaxDebouncerJob)}_format(e){var t;const i=this.fractionDigits;return Intl.NumberFormat(null===(t=R.u.getConfig().appConfig)||void 0===t||null===(t=t.formatting)||void 0===t?void 0:t.locale,{minimumFractionDigits:i,maximumFractionDigits:i,useGrouping:!1}).format(e)}_valueChanged(e){const{slider:t,selectedMinValue:i,selectedMaxValue:r}=e.detail;if("min"===t)this._inputMin.value=this._format(i);else{if("max"!==t)throw"Unexpected slider: ".concat(t);this._inputMax.value=this._format(r)}}}function W(e){var t;const i=Intl.NumberFormat(null===(t=R.u.getConfig().appConfig)||void 0===t||null===(t=t.formatting)||void 0===t?void 0:t.locale).formatToParts(.1).find((e=>"decimal"===e.type)).value;return parseFloat(e.value.replace(i,"."))}function K(e,t){let i=1e3*e;const r=1e3*t,n=i%r;return i-=n,n/r>=.5&&(i+=r),i/1e3}var z,$;window.customElements.define(U.is,U);class G extends((0,s.X)([(0,g.d)(),(0,E.E)()],p.jD)){static get is(){return"ff-asn-group-slider"}static get properties(){return{collapsible:{type:p.k_},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}}}render(){return this._initialized?(0,n.dy)($||($=(0,r.Z)(['
','
'," ","
"])),(()=>this.toggle(!0)),(0,p.SM)(this._groupCaptionTemplate,{group:this.group}),this.opened,this._sliderControl,this._removeFilterContainer):(0,n.dy)(z||(z=(0,r.Z)(['
'])),this.opened)}constructor(){super(),this.collapsible=!0,this.opened=!1,this.filterStyle="SLIDER",this.selectorWrapper=".ffw-wrapper",this._wrapper=void 0,this._sliderControl=void 0,this._removeFilterContainer=void 0,this.selectorGroupCaptionContainer='[slot="groupCaption"]',this.selectRemoveFilterContainer='[data-container="removeFilter"]',this._initialized=!1,this._rawOuterHtml="",this.addEventListener("_slider-submit",Z)}connectedCallback(){super.connectedCallback(),this.init()}firstUpdated(e){super.firstUpdated(e),this._wrapper=this.querySelector(this.selectorWrapper),this.opened?this.show():this._hide(this._wrapper,!1)}init(){this._initialized||(this._initialized=!0,this._rawOuterHtml=this.outerHTML,this._groupCaptionTemplate=this._initGroupCaption(),this._sliderControl=this.querySelector(U.is)||document.createElement(U.is),this._sliderControl.initDefaultTemplates(),this._updateSliderControls(),this._removeFilterContainer=this._initRemoveFilter(),this.updateComplete.then((()=>{const e=this.querySelector("".concat(D.Slider.is));J(this,e),e.addEventListener("value-changed",(()=>{J(this,e)}))})))}_initGroupCaption(){return this.querySelector(this.selectorGroupCaptionContainer)||(0,h.yi)('
{{group.name}}
')}_updateSliderControls(){this.querySelectorAll(U.is).forEach((e=>e.group=this.group)),this._sliderControl&&(this._sliderControl.group=this.group)}_hideGroup(){this.style.display="none",this.offsetHeight,this.style.opacity="0"}update(e){e.has("group")&&this._asnGroupChanged(),super.update(e)}_processAndRenderGroup(e){this.forGroup=e.associatedFieldName;const t=X(e);if("number"!=typeof t.absoluteMinValue||"number"!=typeof t.absoluteMaxValue)return this.warn("[".concat(G.is,"]: absoluteMinValue and absoluteMaxValue must be numbers but are:"),t.absoluteMinValue,t.absoluteMaxValue),void this._hideGroup();if(t.absoluteMinValue!==t.absoluteMaxValue){t.selectedMinValue=Math.max(t.absoluteMinValue,t.selectedMinValue),t.selectedMaxValue=Math.min(t.absoluteMaxValue,t.selectedMaxValue),this._updateSliderControls();try{setTimeout((()=>{const e=this.querySelector("".concat(D.Slider.is));e&&e.updateComplete.then((()=>e.updateData(t)))})),this.style.display="",this.offsetHeight,function(e){if(!e||!e.elements[0])return!1;const{selectedMinValue:t,selectedMaxValue:i,absoluteMinValue:r,absoluteMaxValue:n}=e.elements[0];return i!==n||t!==r}(e)&&!0!==this.opened&&!this.disableAutoExpand&&this.updateComplete.then((()=>this.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()}_asnGroupChanged(){this.group?this._processAndRenderGroup(this.group):this._hideGroup()}_initRemoveFilter(){const e=this.querySelector(this.selectRemoveFilterContainer)||(0,h.yi)('
Reset Filter
');return e.addEventListener("click",(()=>{(0,b.hT)(X(this.group).searchParams,this)})),e}toggle(e){this.collapsible&&(this._wrapper&&this._wrapper.hasAttribute("opened")?this._toggle(this._wrapper,e,(()=>this.opened=!1)):(this._toggle(this._wrapper,e),this.opened=!0))}show(e){this.collapsible&&(this._show(this._wrapper,e),this.opened=!0)}hide(e){this.collapsible&&!1!==this.opened&&(!0!==e?(this._hide(this._wrapper,e),this.opened=!1):this._hide(this._wrapper,e,(()=>this.opened=!1)))}clone(){return(0,h.yi)(this._rawOuterHtml)}}function J(e,t){if(e._removeFilterContainer){const i=e._removeFilterContainer.style.display,r=t.selectedMinValue>t.absoluteMinValue||t.selectedMaxValue{const t=this._getGroupTemplate(e);return t.group=e,(0,n.dy)(Q||(Q=(0,r.Z)(["",""])),t)})))}constructor(){super(),this.align=te.vertical,this.asnGroups=[],this.subscribe=!0,this.topic=void 0,this.hideFacets="",this._hideFacets=[],this._templates=void 0,this._searchableFrom=1/0}connectedCallback(){this._hideFacets=re(this.hideFacets),super.connectedCallback(),this._initTemplates()}update(e){e.has("hideFacets")&&(this._hideFacets=re(this.hideFacets)),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(typeof this.topic,". Subscription cancelled.")),this.subscribe=!1,this.topic=void 0),this.updateComplete.then((()=>{const e=this.querySelectorAll("".concat(F.is,",").concat(G.is));Promise.all(Array.from(e).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))})),super.update(e)}set searchableFrom(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}get searchableFrom(){return this._searchableFrom}_getGroupTemplate(e){const t=e.associatedFieldName;let i=this._templates[t];if(!i){const r=e.filterStyle?e.filterStyle.toUpperCase():"";this._templates[r]&&(i=this._templates[r].clone(),this._templates[t]=i)}return i||(i=this._templates.all.clone(),this._templates[t]=i),i}_initTemplates(){if(!this._templates)try{this._templates={};if(this.querySelectorAll("".concat(F.is,",").concat(G.is)).forEach((e=>{try{const t=e.getAttribute("for-group"),i=e.getAttribute("filter-style");t&&"all"!==t.toLowerCase()?this._templates[t]=e:i?this._templates[i]=e:"FF-ASN-GROUP-SLIDER"===e.tagName?this._templates.SLIDER=e:this._templates.all||(this._templates.all=e)}catch(e){this.error(e)}})),!this._templates.all){const e=document.createElement(F.is);e.setAttribute("opened",void 0),e._init(),this._templates.all=e}if(!this._templates.SLIDER){const e=document.createElement(G.is);e.setAttribute("filter-style","SLIDER"),e.setAttribute("opened",void 0),e.init(),this._templates.SLIDER=e}}catch(e){this.error(e)}}_subscriptionCallback(e){this.asnGroups=e.facets.filter((e=>!this._hideFacets.some((t=>e.associatedFieldName===t)))).filter((e=>e.elements.length||e.selectedElements.length))}}function re(e){return e.split(",").map((e=>e.trim()))}window.customElements.define(ie.is,ie)},6803:function(e,t,i){"use strict";i.r(t),i.d(t,{BreadcrumbTrail:function(){return v}});var r,n=i(168),s=i(3282),a=i(4474),o=i(9528),c=i(6041);const u={dataTemplate:"{{item.text}}",attributes:{}};class l extends a.jD{static get is(){return"ff-breadcrumb-trail-item"}static get properties(){return{type:{type:String,reflect:!0},breadCrumbTrailItem:{type:Object,attribute:"bread-crumb-trail-item"},_relatedFacet:{type:Object,attribute:!1}}}get template(){return this.templates[this.type]||this.templates[d.default]||u}render(){return(0,a.SM)(this.template.dataTemplate,{item:(0,o.J)(this.breadCrumbTrailItem,"text"),facet:this._relatedFacet})}constructor(){super(),this.templates={},this.addEventListener("click",(()=>{const e=(0,c.M7)();if(0===e.length)return(0,c.hT)(this.breadCrumbTrailItem.searchParams,this);const t=this.breadCrumbTrailItem.searchParams.filters||[],i=[];e.forEach((e=>{t.some((t=>t.name===e.name))||i.push(e)})),i.push(...t);const r={...this.breadCrumbTrailItem.searchParams,filters:i};(0,c.hT)(r,this)}))}firstUpdated(e){super.firstUpdated(e),Object.keys(this.template.attributes).forEach((e=>this.setAttribute(e,this.template.attributes[e])))}update(e){e.has("breadCrumbTrailItem")&&this.breadCrumbTrailItem&&(this.type=d.hasOwnProperty(this.breadCrumbTrailItem.type)?this.breadCrumbTrailItem.type:void 0),super.update(e)}}window.customElements.define(l.is,l);const d=Object.freeze({search:"search",filter:"filter",all:"all",advisor:"advisor",default:"search"});function p(e,t){let{item:i,facet:a}=e;return(0,s.dy)(r||(r=(0,n.Z)([''])),i,a,t)}function h(e){return!e||(0,a.np)(e)?u:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,((e,t)=>{let{name:i,value:r}=t;return"unresolved"!==i&&(e[i]=r),e}),{})}}var f,m=i(3940),g=i(7982),b=i(2240);class v extends((0,m.X)([(0,g.d)(),(0,b.D)(b.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-breadcrumb-trail"}static get properties(){return{breadCrumbTrailItems:{type:Array,attribute:"bread-crumb-trail-items"},showAsteriskQuery:{type:a.k_,attribute:"show-asterisk-query"}}}render(){const e=[],t=(this.breadCrumbTrailItems||[]).length;for(let i=0;ie.associatedFieldName===r.associatedFieldName));if(e.push(p({item:r,facet:n},this.templates)),i ")}update(e){e.has("breadCrumbTrailItems")&&(this.breadCrumbTrailItems&&0!==this.breadCrumbTrailItems.length?this.showSelf():this.hideSelf(),this.updateComplete.then((()=>{Promise.all(Array.from(this.querySelectorAll(l.is)).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))),super.update(e)}_subscriptionCallback(e){this.breadCrumbTrailItems=e.breadCrumbTrail,this._facets=e.facets}}window.customElements.define(v.is,v)},6480:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignAdvisor:function(){return p}});var r=i(3940),n=i(2240),s=i(4474),a=i(498),o=i(6041);class c extends s.jD{static get is(){return"ff-campaign-advisor-answer"}static get properties(){return{answer:{type:Object,attribute:!1}}}render(){return(0,s.SM)(this._template,this.answer)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._template=(0,s.np)(this)?"":this.innerHTML,this.addEventListener("click",u)}updated(e){e.has("answer")&&(this.answer?this.showSelf():this.hideSelf())}}function u(e){e.preventDefault(),e.stopPropagation(),(0,o.hT)(this.answer.searchParams,this)}window.customElements.define(c.is,c);var l=i(3643);class d extends s.jD{static get is(){return"ff-campaign-advisor-question"}static get properties(){return{question:{type:Object,attribute:!1}}}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._renderQuestion=function(e){const t=(0,a.PU)(e.querySelector(c.is)||document.createElement(c.is),e);let i=e.querySelector("[data-question]");i||(i=(0,a.yi)("
{{text}}
"),e.insertBefore(i,e.firstChild));const r=i.innerHTML;return n=>{i.innerHTML=(0,l.s)(r,n),t(e.querySelectorAll(c.is),n.answers,((e,t)=>{e.answer=t}))}}(this)}update(e){e.has("question")&&(this.question?(this.showSelf(),this._renderQuestion(this.question)):this.hideSelf()),super.update(e)}}window.customElements.define(d.is,d);class p extends((0,r.X)([(0,n.D)(n.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-campaign-advisor"}static get properties(){return{name:{type:String,reflect:!0},not:{type:String},campaign:{type:Object,attribute:!1}}}constructor(){super(),this.name="",this.not=void 0,this._renderCampaign=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._renderCampaign=function(e){const t=(0,a.PU)(e.querySelector(d.is)||document.createElement(d.is),e);return i=>t(e.querySelectorAll(d.is),i.activeQuestions,((e,t)=>{e.question=t}))}(this)}update(e){var t;e.has("campaign")&&(this.campaign?(this._renderCampaign(this.campaign),this.showSelf(),(t=this,Promise.all(Array.from(t.querySelectorAll(d.is)).map((e=>e.updateComplete))).then((()=>Promise.all(Array.from(t.querySelectorAll(c.is)).map((e=>e.updateComplete)))))).then((()=>this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))))):this.hideSelf()),super.update(e)}_subscriptionCallback(e){var t;const i=this.name.length&&this.name.split(",")||[],r=(null===(t=this.not)||void 0===t?void 0:t.split(","))||[];this.campaign=e.campaigns.find((e=>"ADVISOR"===e.flavour&&e.activeQuestions.length&&(i.includes(e.name)||0===i.length&&!r.includes(e.name))))}}window.customElements.define(p.is,p)},410:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignFeedbackText:function(){return s}});var r=i(2207),n=i(4474);class s extends n.jD{static get is(){return"ff-campaign-feedbacktext"}static get properties(){return{label:{type:String},isLandingPageCampaign:{type:Boolean,attribute:"is-landing-page-campaign"},isProductCampaign:{type:Boolean,attribute:"is-product-campaign"},isShoppingCartCampaign:{type:Boolean,attribute:"is-shopping-cart-campaign"},campaignData:{type:Object,attribute:!1}}}render(){return(0,n.SM)(this._template,this.campaignData)}constructor(){super(),this.label="",this.isLandingPageCampaign=!1,this.isProductCampaign=!1,this.isShoppingCartCampaign=!1,this.campaignData=void 0}connectedCallback(){super.connectedCallback(),this._template=(0,n.np)(this)?"{{text}}":this.innerHTML,this.hideSelf()}update(e){(e.has("label")||e.has("isLandingPageCampaign")||e.has("isProductCampaign")||e.has("isShoppingCartCampaign"))&&function(e){e.subscriptionKey&&r.u.elementsUnsubscribe(e.subscriptionKey);const t=t=>{let{campaigns:i}=t;const r=i.flatMap((t=>t.feedbackTexts.filter((t=>t.label===e.label||!e.label&&!t.teaser))));e.campaignData=r[r.length-1]};e.isLandingPageCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignPage(t):e.isProductCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignProduct(t):e.isShoppingCartCampaign?e.subscriptionKey=r.u.elementsSubscribeCampaignShoppingCart(t):e.subscriptionKey=r.u.elementsSubscribeSearchAndNavigation(t)}(this),e.has("campaignData")&&(this.campaignData?this.showSelf():this.hideSelf(),this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))),super.update(e)}disconnectedCallback(){super.disconnectedCallback(),r.u.elementsUnsubscribe(this.subscriptionKey)}}window.customElements.define(s.is,s)},5430:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignLandingPage:function(){return a}});var r=i(2207),n=i(3940),s=i(7982);class a extends((0,n.X)([(0,s.d)()],HTMLElement)){static get is(){return"ff-campaign-landing-page"}static get observedAttributes(){return["page-id"]}get pageId(){return this._pageId}set pageId(e){this._pageId=e,e?r.c.request.campaignPage({pageId:e},{origin:this}):this.debug("No page id for page campaign specified.")}attributeChangedCallback(e,t,i){"page-id"===e&&(this.pageId=i)}}window.customElements.define(a.is,a)},5663:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignProduct:function(){return c}});var r=i(2207),n=i(4474),s=i(3940),a=i(7982);const o=Object.freeze({ProductNumber:"productNumber",Id:"id"});class c extends((0,s.X)([(0,a.d)()],n.jD)){static get is(){return"ff-campaign-product"}static get properties(){return{productId:{type:String,attribute:"product-id"},idType:{type:String,attribute:"id-type"}}}constructor(){super(),this.productId=void 0,this.idType=o.ProductNumber}update(e){if(e.has("idType")){const e=Object.values(o);if(!e.includes(this.idType))return void this.warn("idType must be one of [".concat(e.join(", "),"]. Was: ").concat(this.idType,"."))}if(e.has("productId")&&this.productId){if(!Object.values(o).includes(this.idType))return void this.warn("idType invalid. Not sending request.");r.c.request.campaignProduct({id:this.productId,idType:this.idType},{origin:this})}}}window.customElements.define(c.is,c)},8358:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignPushedProducts:function(){return c}});var r=i(4474),n=i(3940),s=i(961),a=i(7982),o=i(2207);class c extends((0,n.X)([(0,a.d)()],r.jD)){static get is(){return"ff-campaign-pushed-products"}static get properties(){return{name:{type:String},isLandingPageCampaign:{type:Boolean,attribute:"is-landing-page-campaign"},isProductCampaign:{type:Boolean,attribute:"is-product-campaign"},isShoppingCartCampaign:{type:Boolean,attribute:"is-shopping-cart-campaign"}}}constructor(){super(),this.name="",this.isLandingPageCampaign=!1,this.isProductCampaign=!1,this.isShoppingCartCampaign=!1}update(e){(e.has("name")||e.has("isLandingPageCampaign")||e.has("isProductCampaign")||e.has("isShoppingCartCampaign"))&&u(this),super.update(e)}connectedCallback(){super.connectedCallback(),this.hideSelf(),u(this);const e=this.querySelector(s.RecordList.is);e&&("true"===e.subscribe&&(this.warn("Automatic subscription of ".concat(s.RecordList.is," child component is turned on and will be turned off. Please, set ").concat(s.RecordList.is," 'subscribe' property to 'false' in your HTML code.")),e.setAttribute("subscribe","false")),e._subscriptionKey&&(this.warn("".concat(s.RecordList.is," child component is subscribed to search result and will be unsubscribed.")),e.unsubscribe()),this.isLandingPageCampaign&&(e.__isLandingPage=!0))}disconnectedCallback(){super.disconnectedCallback(),this._subscriptionKey&&(l(this),this._subscriptionKey=void 0)}}function u(e){function t(t,i){var r;let{campaigns:n}=t;const a=e.querySelector(s.RecordList.is);if(!a)return e.hideSelf(),void e.warn("No ".concat(s.RecordList.is," element found for pushed products."));const o=n.findLast((e=>"PRODUCT"===e.flavour||"FEEDBACK"===e.flavour));(null==o||null===(r=o.hits)||void 0===r?void 0:r.length)>0?(a.__campaign=o,e.isLandingPageCampaign&&(a.__pageId=i.campaignPageParams.pageId),a.records=o.hits,e.showSelf()):e.hideSelf()}e._subscriptionKey&&l(e),e.isLandingPageCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignPage(t):e.isProductCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignProduct(t):e.isShoppingCartCampaign?e._subscriptionKey=o.u.elementsSubscribeCampaignShoppingCart(t):e._subscriptionKey=o.u.elementsSubscribeSearchAndNavigation(t)}function l(e){o.u.elementsUnsubscribe(e._subscriptionKey)}window.customElements.define(c.is,c)},2132:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignRedirect:function(){return n}});var r=i(2207);class n extends HTMLElement{static get is(){return"ff-campaign-redirect"}connectedCallback(){this._subscriptionKey=r.c.response.subscribeCampaignRedirect((e=>{let{campaign:t}=e;return document.location.replace(t.target.destination),!1}))}disconnectedCallback(){r.c.response.unsubscribe(this._subscriptionKey),this._subscriptionKey=void 0}}window.customElements.define(n.is,n)},3458:function(e,t,i){"use strict";i.r(t),i.d(t,{CampaignShoppingCart:function(){return n}});var r=i(2207);class n extends HTMLElement{static get is(){return"ff-campaign-shopping-cart"}static get observedAttributes(){return["product-id"]}get productId(){return this._productId}set productId(e){this._productId=e,e&&r.c.request.campaignShoppingCart({productNumber:e.split(",")},{origin:this})}attributeChangedCallback(e,t,i){"product-id"===e&&(this.productId=i)}}window.customElements.define(n.is,n)},4410:function(e,t,i){"use strict";i.r(t),i.d(t,{CheckoutTracking:function(){return c}});var r=i(2207),n=i(3940),s=i(3282);class a extends s.oi{static get is(){return"ff-checkout-tracking-item"}static get properties(){return{count:Number,productNumber:{type:String,attribute:"product-number"},campaign:String,masterId:{type:String,attribute:"master-id"},price:Number,title:String,channel:String}}constructor(){super(),this.count=void 0,this.productNumber=void 0,this.campaign=void 0,this.masterId=void 0,this.price=void 0,this.title=void 0,this.channel=void 0}connectedCallback(){this.count||(this.count=1)}}window.customElements.define(a.is,a);var o=i(7982);class c extends((0,n.X)([(0,o.d)()],HTMLElement)){static get is(){return"ff-checkout-tracking"}get disableAutoTracking(){return this.hasAttribute("disable-auto-tracking")}connectedCallback(){!0!==this.disableAutoTracking&&this.trackCheckoutItems()}async trackCheckoutItems(){const e=Array.from(this.querySelectorAll(a.is),(e=>({element:e,data:{id:e.productNumber,campaign:e.campaign,count:Number(e.count),channel:e.channel,masterId:e.masterId,price:Number(e.price),title:e.title}})));if(0===e.length)return this.warn("No checkout items to track.");const t=[];if(e.forEach((e=>e.data.id?0===e.data.count?this.warn("Cannot track item. 'count' must be greater than zero.",e.element):(e.data.count||(e.data.count=1),void t.push(e.data)):this.warn("Cannot track item. 'productNumber' not specified.",e.element))),0===t.length)return this.warn("No trackable checkout items found.");const i=[];if(t.forEach(((e,t)=>{e.masterId&&e.price&&e.title||i.push({i:t,data:e})})),i.length){const{records:e,fieldRoles:n}=await r.c.request.records({productNumber:i.map((e=>{let{data:t}=e;return t.id}))});e.forEach(((e,r)=>{var s;const a=t[i[r].i];a.masterId=e[n.masterId],a.price=null!==(s=a.price)&&void 0!==s?s:e[n.price],a.title=e[n.productName]}))}const n=t.reduce(((e,t)=>{let{channel:i,...r}=t;const n=Object.fromEntries(Object.entries(r).filter((e=>{let[t,i]=e;return null!=i})));return e.set(i,e.get(i)||[]),e.get(i).push(n),e}),new Map);return Promise.all(Array.from(n.entries(),(e=>{let[t,i]=e;const n={origin:this};return t&&(n.channel=t),r.c.tracking.checkout(i,n)})))}}window.customElements.define(c.is,c)},1254:function(e,t,i){"use strict";i.r(t),i.d(t,{Compare:function(){return u}});var r=i(2207),n=i(3940),s=i(961),a=i(4474),o=i(7982),c=i(2240);class u extends((0,n.X)([(0,o.d)(),(0,c.D)(c.l.Compare)],a.jD)){static get is(){return"ff-compare"}static get properties(){return{productNumber:{type:Array,attribute:"product-number"},maxResults:{type:Number,attribute:"max-result"},subscribe:{type:a.k_},autoCompare:{type:String,attribute:"auto-compare"}}}constructor(){super(),this.maxResults=4,this.subscribe=!0,this.autoCompare="false"}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(s.RecordList.is);e?("true"===e.subscribe&&(this.warn("Automatic subscription of ff-record-list child component is turned on and will be turned off. Please, set ff-record-list 'subscribe' property to 'false' in your HTML code."),e.setAttribute("subscribe","false")),e._subscriptionKey&&(this.warn("ff-record-list child component is subscribed to search result and will be unsubscribed."),e.unsubscribe())):this.warn("Record list for 'ff-compare' component was not found.")}_subscriptionCallback(e){this._handleCompareResult(e)}updated(e){super.updated(e),e.has("productNumber")&&"true"===this.autoCompare&&this.compareRecords(this.productNumber)}_handleCompareResult(e){const t=e.records||[],i=e.attributes.reduce(((e,t)=>(e[t.name]=t.different,e)),{});if(t.length>=2){t.forEach((e=>e.diff=i));const e=this.querySelector(s.RecordList.is);e&&(e.records=t.slice(0,this.maxResults),e.addEventListener("dom-updated",(()=>{const t=Array.from(e.querySelectorAll("[data-attribute]"));this._updateCssClasses(t,i),this.showSelf()}),{once:!0}))}else this.hideSelf()}compareRecords(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.length>=2?r.c.request.compare({id:e},{origin:this}):(this.debug("Must specify at least two product numbers to compare."),this.hideSelf())}_updateCssClasses(e,t){e.forEach((e=>{const i=e.getAttribute("data-attribute");!0===t[i]?(e.classList.add("ffw-compare-diff"),e.classList.remove("ffw-compare-equal")):!1===t[i]?(e.classList.remove("ffw-compare-diff"),e.classList.add("ffw-compare-equal")):(e.classList.remove("ffw-compare-diff"),e.classList.remove("ffw-compare-equal"))}))}}window.customElements.define(u.is,u)},8616:function(e,t,i){"use strict";i.r(t),i.d(t,{FilterCloud:function(){return b}});var r,n,s,a=i(168),o=i(3282),c=i(3643),u=i(498),l=i(3940),d=i(7982),p=i(2240),h=i(4474),f=i(6041);const m=Object.freeze({factfinder:"fact-finder",alphabetical:"alphabetical",userSelection:"user-selection"}),g="[data-template=filter]";class b extends((0,l.X)([(0,d.d)(),(0,p.D)(p.l.SearchAndNavigation)],h.jD)){static get is(){return"ff-filter-cloud"}static get properties(){return{order:{type:String},blacklist:{type:String},whitelist:{type:String},_selectedFilters:{type:Array,attribute:!1}}}render(){if(!this._template)return(0,o.dy)(r||(r=(0,a.Z)([""])));const e=document.createElement("div");e.innerHTML=this._template;const t=e.querySelector(g),i=t.outerHTML;var l;return this._selectedFilters.map((l=i,e=>{const t=(0,u.yi)(l);return t.item=e,t.innerHTML=(0,c.s)(t.innerHTML,{...e,element:e.element}),t.addEventListener("click",(t=>{t.item=e})),t})).forEach((e=>{t.parentNode.insertBefore(e,t)})),t.parentNode.removeChild(t),(0,o.dy)(n||(n=(0,a.Z)(["",""])),Array.from(e.childNodes).map((e=>(0,o.dy)(s||(s=(0,a.Z)(["",""])),e))))}constructor(){super(),this.order=m.factfinder,this.blacklist=void 0,this.whitelist=void 0,this._selectedFilters=[],this._blacklist=[],this._whitelist=[],this._userSelectionOrder=[],this._factFinderOrder=[]}connectedCallback(){super.connectedCallback(),this._template||((0,h.np)(this)?this._template='{{element.text}}':this.querySelector(g)?this._template=this.innerHTML.trim():(this.error("An error occurred: template HTML contains no elements marked as ".concat(g,".")),this.hideSelf())),this.addEventListener("click",v)}disconnectedCallback(){this.removeEventListener("click",v),super.disconnectedCallback()}update(e){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(m).some((e=>m[e]===this.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=y(this.order,this)),super.update(e)}updated(e){super.updated(e),this.updateComplete.then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}_subscriptionCallback(e){this._selectedFilters=function(e,t,i,r){const n=(o=function(e){return e.reduce(((e,t)=>e.concat([...t.selectedElements,...t.elements.filter((e=>"TRUE"===e.selected))].map((e=>({facet:t,element:e}))))),[])}(r),o.reduce(((e,t)=>0!==e.filter((e=>e.element.text===t.element.text&&e.facet.associatedFieldName===t.facet.associatedFieldName)).length?e:[...e,t]),[])),s=i.filter((e=>_(n,e))),a=n.filter((e=>!_(s,e)));var o;return e._factFinderOrder=n,e._userSelectionOrder=s.concat(a),y(t,e)}(this,this.order,this._userSelectionOrder,e.facets)}}function v(e){const t=e.item;t&&(0,f.hT)(t.element.searchParams,this)}function y(e,t){switch(e){case m.userSelection:return S(t._userSelectionOrder,t._blacklist,t._whitelist);case m.alphabetical:return S(t._factFinderOrder,t._blacklist,t._whitelist).sort(((e,t)=>e.element.text.localeCompare(t.element.text)));default:return S(t._factFinderOrder,t._blacklist,t._whitelist)}}function _(e,t){let{element:i}=t;return e.some((e=>e.element.text===i.text))}function S(e,t,i){return e.filter((e=>{let{facet:r,element:n}=e;const s=t.indexOf(r.associatedFieldName)<0,a=0===i.length||i.indexOf(r.associatedFieldName)>=0,o="IMPLICIT"!==!n.selected,c=(0,f.pk)((0,f.rE)(r))(n);return s&&a&&o&&c}))}window.customElements.define(b.is,b)},4487:function(e,t,i){"use strict";i.r(t),i.d(t,{HeaderNavigation:function(){return b}});var r,n=i(168),s=i(3282),a=i(2207),o=i(4474);const c="_item-clicked";class u extends o.jD{static get is(){return"ff-nav-element"}static get properties(){return{element:{attribute:!1,type:Object}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['',""])),(this.element.__TARGET_URL__||{}).url,this.element.text)}constructor(){var e;super(),this.element={},this.addEventListener("click",(e=this,t=>{t.preventDefault(),t.stopPropagation(),e.dispatchEvent(new CustomEvent(c,{bubbles:!0}))}))}}window.customElements.define(u.is,u);var l,d,p,h,f,m=i(3940),g=i(2240);class b extends((0,m.X)([(0,g.D)(g.l.NavigationCategory)],o.jD)){static get is(){return"ff-header-navigation"}static get properties(){return{elements:{attribute:!1,type:Array},groupCount:{attribute:"group-count",type:Number},groupSize:{attribute:"group-size",type:Number},hideEmptyGroups:{attribute:"hide-empty-groups",type:o.k_},fetchInitial:{attribute:"fetch-initial",type:o.k_},mouseenterDelay:{attribute:"mouseenter-delay",type:Number},mouseleaveDelay:{attribute:"mouseleave-delay",type:Number},_selectedElement:{attribute:!1,type:Object},_showBody:{attribute:!1,type:Boolean}}}render(){return(0,s.dy)(l||(l=(0,n.Z)(['
',"
","
"])),v,_,this.elements.map((e=>(0,s.dy)(d||(d=(0,n.Z)(['
'])),e.element,e.children,y))),this._showBody?(0,s.dy)(p||(p=(0,n.Z)(['
','
','
\x3c!-- {getGroups(this.hideEmptyGroups, this.groupCount, this._selectedElement.groups).map(group => html --\x3e ','
','
',"
"])),this._selectedElement&&this._slottedElements["container-top-".concat(this._selectedElement.element.text)],this._selectedElement&&this._slottedElements["container-left-".concat(this._selectedElement.element.text)],this._selectedElement._children.map((e=>{return(0,s.dy)(h||(h=(0,n.Z)(['
'," ","
"])),e.element,(t=this,i=e.children,i.slice(0,t.groupSize)).map((e=>(0,s.dy)(f||(f=(0,n.Z)([''])),e.element))),this._slottedElements[e.element.text]);var t,i})),this._selectedElement&&this._slottedElements["container-right-".concat(this._selectedElement.element.text)],this._selectedElement&&this._slottedElements["container-bottom-".concat(this._selectedElement.element.text)]):void 0)}constructor(){var e;super(),this.elements=[],this.groupCount=10,this.groupSize=4,this.hideEmptyGroups=!0,this.fetchInitial=!0,this.mouseenterDelay=600,this.mouseleaveDelay=200,this._slottedElements={},this._selectedElement={},this._showBody=!1,this._shouldShowBody=!1,this.addEventListener(c,(e=this,t=>{t.stopPropagation(),e._showBody=!1;const i=t.target,r=a.c.utils.toNavigationParams(i.element.searchParams);a.c.request.navigation(r,{requestOptions:{origin:i}})}))}connectedCallback(){super.connectedCallback(),this.querySelectorAll("[slot]").forEach((e=>this._slottedElements[e.getAttribute("slot")]=e)),this.fetchInitial&&this.fetch()}updated(e){super.updated(e),e.has("elements")&&setTimeout((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}),0)}fetch(){a.c.request.navigationCategory({endLevel:2},{origin:this})}_subscriptionCallback(e){this.elements=function(e){const t=e.facets.find((e=>"CATEGORY_PATH"===e.type)),i=[];if(!t)return i;let r,n;return t.elements.forEach((e=>{if(0===e.clusterLevel){const t={element:e,children:[]};i.push(t),r=t}else if(1===e.clusterLevel){const t={element:e,children:[]};r.children.push(t),n=t}else 2===e.clusterLevel&&n.children.push({element:e})})),i}(e)}}function v(e){e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!0,this._showBody||setTimeout((()=>{!0===this._shouldShowBody&&(this._showBody=!0)}),this.mouseenterDelay))}function y(e){this._selectedElement=e.currentTarget}function _(e){e.target.classList.contains("ffw-header-nav")&&(this._shouldShowBody=!1,this._showBody&&setTimeout((()=>{!1===this._shouldShowBody&&(this._showBody=!1)}),this.mouseleaveDelay))}window.customElements.define(b.is,b)},3358:function(e,t,i){"use strict";i.r(t),i.d(t,{PagingDropdown:function(){return v}});var r,n,s,a,o=i(168),c=i(3282),u=i(9890),l=i(1448),d=i(8474),p=i(6342),h=i(3940),f=i(2240),m=i(4474),g=i(480),b=i(6621);class v extends((0,h.X)([b.T,(0,f.D)(f.l.SearchAndNavigation)],m.jD)){static get is(){return"ff-paging-dropdown"}static get properties(){return{pages:{type:Array,attribute:!1},opened:{type:Boolean,reflect:!0},showSelected:{type:Boolean,attribute:"show-selected"},collapseOnblur:{type:m.k_,attribute:"collapse-onblur"}}}render(){return(0,c.dy)(r||(r=(0,o.Z)(["",'
',"
"])),this._renderDropdownSelected(),(0,l.$)({"ffw-paging-dropdown-closed":!this.opened}),_,(0,d.l)([this.pages,this.showSelected],(()=>(0,p.r)(this.pages||[],(e=>e),(e=>this._renderDropdownItem(e))))))}constructor(){super(),this.opened=!1,this.showSelected=!1,this.collapseOnblur=!0,this._itemTemplate=void 0,this._searchParams=void 0,this._paging=void 0,this.addEventListener(g.M,(()=>this.toggle())),this.addEventListener("blur",y.bind(this))}connectedCallback(){super.connectedCallback(),this._itemTemplate||(this._itemTemplate=this.querySelector(g.p.is)||function(){const e=document.createElement("div");return(0,u.sY)((0,c.dy)(a||(a=(0,o.Z)(["{{page}}"]))),e),e.firstElementChild}());this.getAttribute("tabindex")||this.setAttribute("tabindex","999"),this.hideSelf()}update(e){e.has("pages")&&this._pagesChanged(),super.update(e)}updated(e){super.updated(),(e.has("pages")||e.has("showSelected"))&&Promise.all(Array.from(this.querySelectorAll("".concat(g.p.is))).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}expand(){const e=this._getDropdown();e.style.height=e.scrollHeight+"px",this.opened=!0}collapse(){this._getDropdown().style.height=null,this.opened=!1}toggle(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened)?this.expand():this.collapse()}_getDropdown(){return this.querySelector(".ffw-paging-dropdown-container")}_subscriptionCallback(e){super._onResponse(e),this._searchParams=e.searchParams,this._paging=e.paging;const t=e.paging,i=t&&t.pageCount>1?Array.from({length:9},((e,i)=>i+t.currentPage-4)):[];this.pages=i.filter((e=>e>0&&e<=t.pageCount))}_pagesChanged(){var e;this.opened&&this.collapse(),(null===(e=this.pages)||void 0===e?void 0:e.length)>0?this.showSelf():this.hideSelf()}_renderDropdownSelected(){return this.pages?this._renderLink(this._paging.currentPage):(0,c.dy)(n||(n=(0,o.Z)([""])))}_renderDropdownItem(e){return e!==this._paging.currentPage||this.showSelected?this._renderLink(e,e===this._paging.currentPage):(0,c.dy)(s||(s=(0,o.Z)([""])))}_renderLink(e,t){const i=this._itemTemplate._clone();return i.type=t?"currentLink":null,i.page=e,i}}function y(){!0===this.collapseOnblur&&setTimeout((()=>this.collapse()),150)}function _(e){const t=e.target;if(t.page===this._paging.currentPage)return;const{page:i,...r}=this._searchParams;t.page>1&&(r.page=t.page),(0,b.S)(r,this)}window.customElements.define(v.is,v)},480:function(e,t,i){"use strict";i.d(t,{M:function(){return c},p:function(){return u}});var r,n=i(168),s=i(3282),a=i(4474),o=i(1448);const c="_item-clicked";class u extends a.jD{static get is(){return"ff-paging-item"}static get properties(){return{type:{type:String,reflect:!0},page:{type:Number,attribute:!1},showSelected:{type:Boolean,attribute:"show-selected",reflect:!0},showOnly:{type:Boolean,attribute:"show-only",reflect:!0}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['
',"
"])),(0,o.$)({"ffw-selected":"currentLink"===this.type,"ffw-cursor":!this.showOnly}),(0,a.SM)(this._template,{page:this.page}||{}))}constructor(){super(),this.type="currentLink",this.showSelected=!1,this.showOnly=!1,this.addEventListener("click",l)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._template||(this._template=(0,a.np)(this)?"{{page}}":this.innerHTML)}update(e){e.has("page")&&(void 0===this.page?(this.classList.add("ffw-disabled"),this.hideSelf()):(this.classList.remove("ffw-disabled"),this.showSelf())),super.update(e)}_clone(){const e=this.cloneNode(!0);return e._template=this._template,e}}function l(e){this.showOnly||this.dispatchEvent(new CustomEvent(c,{bubbles:!0}))}window.customElements.define(u.is,u)},3742:function(e,t,i){"use strict";i.r(t),i.d(t,{PagingSelect:function(){return l}});var r,n=i(168),s=i(3282),a=i(4474),o=i(3940),c=i(2240),u=i(6621);class l extends((0,o.X)([u.T,(0,c.D)(c.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-paging-select"}static get properties(){return{pages:{type:Array,attribute:!1}}}render(){var e;return(0,s.dy)(r||(r=(0,n.Z)(['"])),d,null===(e=this.pages)||void 0===e?void 0:e.map((e=>(0,a.SM)(this._optionTemplate,{page:e}))))}constructor(){super(),this._optionTemplate=void 0,this._selectAttributes=[],this._searchParams=void 0,this._paging=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector("select");this._selectAttributes=e?Array.from(e.attributes):[],this._optionTemplate=this.querySelector("option")||""}firstUpdated(){const e=this.querySelector("select");this._selectAttributes.forEach((t=>{let{name:i,value:r}=t;return e.setAttribute(i,r)}))}updated(e){var t;e.has("pages")&&(null!==(t=this.pages)&&void 0!==t&&t.length?(this.querySelector("select").selectedIndex=this.pages.findIndex((e=>e===this._paging.currentPage)),this.showSelf()):this.hideSelf())}_subscriptionCallback(e){super._onResponse(e),this._searchParams=e.searchParams,this._paging=e.paging;const t=e.paging,i=t&&t.pageCount>1?Array.from({length:9},((e,i)=>i+t.currentPage-4)):[];this.pages=i.filter((e=>e>0&&e<=t.pageCount))}}function d(e){const{page:t,...i}=this._searchParams,r=this.pages[e.target.selectedIndex];r>1&&(i.page=r),(0,u.S)(i,this)}window.customElements.define(l.is,l)},876:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return PagingSet}});var _behaviors_BehaviorDecorator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3940),utils_FACTFinderLitElement__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4474),_behaviors_ElementLog__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7982);class PagingSet extends((0,_behaviors_BehaviorDecorator__WEBPACK_IMPORTED_MODULE_1__.X)([(0,_behaviors_ElementLog__WEBPACK_IMPORTED_MODULE_2__.d)()],utils_FACTFinderLitElement__WEBPACK_IMPORTED_MODULE_0__.jD)){static get is(){return"ff-paging-set"}static get properties(){return{state:{type:String,reflect:!0},paging:{type:Object,attribute:!1}}}constructor(){super(),this.state="all",this._isActive=!1}connectedCallback(){super.connectedCallback(),this.hideSelf()}update(e){e.has("paging")&&pagingChanged.call(this),super.update(e)}get isActive(){return this._isActive}}function pagingChanged(){if("all"===this.state)return this._isActive=!0,void this.showSelf();const state=this.state.replace(/currentPage/g,this.paging.currentPage).replace(/pageCount/g,this.paging.pageCount);if(/[a-z_]/i.test(state))return this._isActive=!1,this.hideSelf(),void this.error("Alphabetical values are not allowed. Could not resolve [".concat(/[a-z_].*/i.exec(state),"] in state [").concat(state,"]"));try{this._isActive=eval(state),this.isActive?this.showSelf():this.hideSelf()}catch(e){this._isActive=!1,this.hideSelf()}}window.customElements.define(PagingSet.is,PagingSet)},5841:function(e,t,i){"use strict";i.r(t),i.d(t,{Paging:function(){return u}});var r=i(4474),n=i(480),s=i(876),a=i(3940),o=i(2240),c=i(6621);class u extends((0,a.X)([c.T,(0,o.D)(o.l.SearchAndNavigation)],r.jD)){static get is(){return"ff-paging"}static get properties(){return{paging:{type:Object,attribute:!1},showOnly:{type:Boolean,attribute:"show-only",reflect:!0}}}constructor(){super(),this.showOnly=!1,this._searchParams=void 0,this.addEventListener(n.M,l)}connectedCallback(){super.connectedCallback(),this.hideSelf()}update(e){e.has("paging")&&d.call(this),super.update(e)}updated(e){e.has("paging")&&Promise.all(Array.from(this.querySelectorAll("".concat(n.p.is))).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}_subscriptionCallback(e){super._onResponse(e),this.paging=e.paging,this._searchParams=e.searchParams}}function l(e){e.stopPropagation();const t=e.target;if(!0===this.showOnly||t.page===this.paging.currentPage)return;const i={...this._searchParams};1===t.page?delete i.page:i.page=t.page,(0,c.S)(i,this)}function d(){if(!this.paging||1===this.paging.pageCount)return void this.hideSelf();const e=this.querySelectorAll(s.z.is);0===e.length?p(this.paging,this):e.forEach((e=>{e.paging=this.paging,e.updateComplete.then((()=>{e.isActive&&p(this.paging,e)}))})),this.showSelf()}function p(e,t){const i=(e,t)=>{e&&(e.page=t)};i(t.querySelector("".concat(n.p.is,'[type="firstLink"]')),e.currentPage>1?1:void 0),i(t.querySelector("".concat(n.p.is,'[type="lastLink"]')),e.currentPage1?e.currentPage-1:void 0),i(t.querySelector("".concat(n.p.is,'[type="nextLink"]')),e.currentPage{const i=/-?\d+/.exec(t.type)||[],r=parseInt(i[0])||0,n=e.currentPage+r;t.page=n>0&&n<=e.pageCount?n:void 0}))}window.customElements.define(u.is,u)},6621:function(e,t,i){"use strict";i.d(t,{S:function(){return s},T:function(){return n}});i(2207);var r=i(6041);const n=e=>class extends e{constructor(){super(),this._facets=void 0}_onResponse(e){this._facets=e.facets}};function s(e,t){(0,r.hT)(e,t)}},4849:function(e,t,i){"use strict";i.r(t),i.d(t,{PredictiveBasket:function(){return u}});var r=i(2207),n=i(4474),s=i(3940),a=i(7982),o=i(961),c=i(2240);class u extends((0,s.X)([(0,a.d)(),(0,c.D)(c.l.PredictiveBasket)],n.jD)){static get is(){return"ff-predictive-basket"}static get properties(){return{userId:{attribute:"user-id",type:String,reflect:!0},maxResults:{attribute:"max-results",type:Number},blacklist:String}}constructor(){super(),this.userId=void 0,this.maxResults=void 0,this.blacklist=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(o.RecordList.is);e&&(e.subscribe=!1,e.__isPredBasket=!0),this.userId&&!e&&this.warn("No ff-record-list provided. Provide one to make ".concat(u.is," work properly."))}_subscriptionCallback(e){if(e.hits.length>0){const t=this.querySelector(o.RecordList.is);t&&(t.records=e.hits),this.showSelf()}else this.hideSelf()}update(e){e.has("userId")&&this.getPredictions(),super.update(e)}getPredictions(){if(void 0===this.userId||null===this.userId||""===this.userId)return this.error("No user id specified."),void this.hideSelf();const e={userId:this.userId};void 0!==this.maxResults&&(e.maxResults=this.maxResults),"string"==typeof this.blacklist&&(e.blacklist=this.blacklist.split(",").map((e=>e.trim())).filter((e=>!!e))),r.c.request.predictiveBasket(e,{origin:this})}}window.customElements.define(u.is,u)},6731:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageDropdown:function(){return f}});var r,n=i(168),s=i(3282),a=i(1448),o=i(8474),c=i(6342),u=i(4474),l=i(6041),d=i(3940),p=i(2240),h=i(8122);class f extends((0,d.X)([(0,p.D)(p.l.SearchAndNavigation)],u.jD)){static get is(){return"ff-products-per-page-dropdown"}static get properties(){return{values:{type:String},opened:{type:Boolean,reflect:!0},showSelected:{type:Boolean,attribute:"show-selected"},collapseOnblur:{type:u.k_,attribute:"collapse-onblur"},_items:{type:Array,attribute:!1}}}render(){const e=this._items.find((e=>e.selected));return(0,s.dy)(r||(r=(0,n.Z)(["",'
',"
"])),e?(0,h.renderPPPItem)(this._ffPPPTemplate,e):"",(0,a.$)({"ffw-ppp-dropdown-closed":!this.opened}),m,(0,o.l)([this._items,this.showSelected],(()=>(0,c.r)(this._items,(e=>e.value),(e=>this.showSelected||!e.selected?(0,h.renderPPPItem)(this._ffPPPTemplate,e):"")))))}constructor(){var e;super(),this.values="",this.opened=!1,this.showSelected=!1,this.collapseOnblur=!0,this._items=[],this._paging=void 0,this._searchParams=void 0,this._dropdownContainer=void 0,this._ffPPPTemplate=void 0,this._haveItemsBeenInitialised=!1,this.addEventListener(h.eventClick,(()=>this.toggle())),this.addEventListener("blur",(e=this,()=>{e.collapseOnblur&&setTimeout((()=>e.collapse()),16)}))}connectedCallback(){super.connectedCallback(),this.hideSelf(),!this.getAttribute("tabindex")&&this.setAttribute("tabindex","1"),this._ffPPPTemplate=(0,h.getTemplate)(this)}update(e){e.has("_items")&&function(e){if(0===e._items.length)return void e.hideSelf();e._haveItemsBeenInitialised?e.collapse():e._haveItemsBeenInitialised=!0;e.showSelf()}(this),super.update(e)}firstUpdated(){this._dropdownContainer=this.getElementsByClassName("ffw-ppp-dropdown-container")[0]}updated(e){e.has("_items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}expand(){const e=this._dropdownContainer;e.style.height=e.scrollHeight+"px",this.opened=!0}collapse(){this._dropdownContainer.style.height=null,this.opened=!1}toggle(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened)?this.expand():this.collapse()}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function m(e){var t,i;const r=e.target.productsPerPageItem;if(r.value===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams;r.value!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r.value),(0,l.hT)(a,this)}window.customElements.define(f.is,f)},8122:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageItem:function(){return l},eventClick:function(){return u},getTemplate:function(){return h},renderPPPItem:function(){return p}});var r,n=i(168),s=i(3282),a=i(1448),o=i(4474);const c={dataTemplate:"{{value}}",attributes:{}},u="_item-clicked";class l extends o.jD{static get is(){return"ff-products-per-page-item"}static get properties(){return{productsPerPageItem:{type:Object},template:{type:Object,attribute:!1}}}render(){return(0,o.SM)(this.template.dataTemplate,this.productsPerPageItem)}constructor(){super(),this.template=c,this.addEventListener("click",d)}firstUpdated(e){Object.keys(this.template.attributes).forEach((e=>this.setAttribute(e,this.template.attributes[e])))}}function d(e){this.dispatchEvent(new CustomEvent(u,{bubbles:!0}))}function p(e,t){return(0,s.dy)(r||(r=(0,n.Z)([''])),(0,a.$)({"ffw-selected":t.selected,...e.classNames}),e,t)}function h(e){const t=e.querySelector(l.is);return!t||(0,o.np)(t)?c:{dataTemplate:t.innerHTML,attributes:Array.prototype.reduce.call(t.attributes,((e,t)=>{let{name:i,value:r}=t;return"class"!==i&&(e[i]=r),e}),{}),classNames:(t.className||"").split(" ").reduce(((e,t)=>(t&&(e[t]=!0),e)),{})}}window.customElements.define(l.is,l)},2997:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageList:function(){return h}});var r,n=i(168),s=i(3282),a=i(6342),o=i(4474),c=i(6041),u=i(3940),l=i(2240),d=i(8122),p=i(480);class h extends((0,u.X)([(0,l.D)(l.l.SearchAndNavigation)],o.jD)){static get is(){return"ff-products-per-page-list"}static get properties(){return{values:{type:String},_items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(["",""])),(0,a.r)(this._items,(e=>e.value),(e=>(0,d.renderPPPItem)(this._ffPPPTemplate,e))))}constructor(){super(),this.values="",this._items=[],this._paging=void 0,this._searchParams=void 0,this._ffPPPTemplate=void 0,this.addEventListener(p.M,f)}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._ffPPPTemplate=(0,d.getTemplate)(this)}update(e){super.update(e),e.has("_items")&&(0===this._items.length?this.hideSelf():this.showSelf())}updated(e){e.has("_items")&&this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function f(e){var t,i;const r=e.target.productsPerPageItem;if(r.value===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams;r.value!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r.value),(0,c.hT)(a,this)}window.customElements.define(h.is,h)},825:function(e,t,i){"use strict";i.r(t),i.d(t,{ProductsPerPageSelect:function(){return d}});var r,n=i(168),s=i(3282),a=i(6342),o=i(4474),c=i(3940),u=i(2240),l=i(6041);class d extends((0,c.X)([(0,u.D)(u.l.SearchAndNavigation)],o.jD)){static get is(){return"ff-products-per-page-select"}static get properties(){return{values:{type:String},_items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['"])),p,(0,a.r)(this._items,(e=>(0,o.SM)(this._optionTemplate,e))))}constructor(){super(),this.values="",this._items=[],this._paging=void 0,this._searchParams=void 0,this._select=void 0,this._optionTemplate=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf(),this._optionTemplate=this.querySelector("option")||""}firstUpdated(){this._select=this.querySelector("select")}update(e){super.update(e),e.has("_items")&&(0===this._items.length?this.hideSelf():this.showSelf())}updated(e){e.has("_items")&&(this._select.selectedIndex=this._items.findIndex((e=>e.selected)),this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})))}_subscriptionCallback(e){var t;this._searchParams=e.searchParams,this._paging=e.paging;const i=null===(t=e.paging)||void 0===t?void 0:t.hitsPerPage;if(!i)return;let r=this.values.split(",").map((e=>parseInt(e.trim()))).filter((e=>e));r.includes(i)||(r=[...r,i].sort()),this._items=r.map((e=>({value:e,selected:e===i})))}}function p(){var e,t,i;const r=null===(e=this._items[this._select.selectedIndex])||void 0===e?void 0:e.value;if(!r||r===(null===(t=this._paging)||void 0===t?void 0:t.hitsPerPage))return;const{hitsPerPage:n,page:s,...a}=this._searchParams||{};r!==(null===(i=this._paging)||void 0===i?void 0:i.defaultHitsPerPage)&&(a.hitsPerPage=r),(0,l.hT)(a,this)}window.customElements.define(d.is,d)},5608:function(e,t,i){"use strict";i.r(t),i.d(t,{Recommendation:function(){return c}});var r=i(2207),n=i(3940),s=i(4474),a=i(961),o=i(7982);class c extends((0,n.X)([(0,o.d)()],s.jD)){static get is(){return"ff-recommendation"}static get properties(){return{productNumber:{type:s.ye,attribute:"product-number"},maxResults:{type:Number,attribute:"max-results"},usePersonalization:{type:s.k_,attribute:"use-personalization"}}}constructor(){super(),this.productNumber=void 0,this.maxResults=void 0,this.usePersonalization=!0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(a.RecordList.is);e&&(e.subscribe=!1,e.__isRecommendation=!0)}update(e){e.has("productNumber")&&this.getRecommendations(),super.update(e)}getRecommendations(){if(!this.productNumber)return this.debug("No product number for recommendations specified."),void this.hideSelf();const e={id:this.productNumber.split(",")};this.maxResults&&(e.maxResults=this.maxResults),!1===this.usePersonalization&&(e.usePersonalization=!1),r.c.request.recommendation(e,{origin:this}).then((e=>{const t=e.hits;if(t.length>0){const e=this.querySelector(a.RecordList.is);e?(e.records=t,this.showSelf()):this.hideSelf()}else this.hideSelf()}))}}window.customElements.define(c.is,c)},961:function(e,t,i){"use strict";i.r(t),i.d(t,{RecordList:function(){return c}});var r=i(2207),n=i(3940),s=i(814),a=i(7361),o=i(4474);class c extends((0,n.X)([(0,a.z)()],o.jD)){static get is(){return"ff-record-list"}static get properties(){return{records:{type:Array},subscribe:{type:o.k_},ssr:{type:Boolean,reflectToAttribute:!0}}}constructor(){super(),this.subscribe=!0,this.__isRecommendation=!1,this.__isSimilarProducts=!1,this.__isLandingPage=!1,this.__isPredBasket=!1,this.__campaign=void 0,this.__pageId="",this._origHTML=this.innerHTML,this._templateRecord=void 0,this._templateInsertionInfo=void 0,this._subscriptionKey=void 0}connectedCallback(){if(super.connectedCallback(),!this._templateRecord){const{templateNode:e,parsedDocFragment:t}=this._getTemplate(this,"record");this._templateRecord=t.querySelector(s.Record.is),this._templateRecord._updateTemplate(),this._templateInsertionInfo={parentNode:this,nextElementSibling:e}}if(this.ssr){const e=this._templateRecord.innerHTML;this.querySelectorAll(s.Record.is).forEach((t=>{t._updateTemplate(e)}))}else this.records&&this.records.length||this.hideSelf();!0===this.subscribe&&this._subscribe()}update(e){e.has("records")&&this._recordsPropertyChanged(this.records),e.has("subscribe")&&(this.subscribe?this._subscribe():this.unsubscribe()),super.update(e)}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe()}unsubscribe(){if(!this._subscriptionKey)return!1;r.u.elementsUnsubscribe(this._subscriptionKey),this._subscriptionKey=void 0}loadNextPage(){}_subscribe(){this._subscriptionKey||(this._subscriptionKey=r.u.elementsSubscribeSearchAndNavigation((e=>this._recordsChangedFFEventHandler(e))))}_recordsChangedFFEventHandler(e){this._currentLoadingNextPage=!1,u(this,e.hits,e)}_recordsPropertyChanged(e,t){var i,r;(i=e,r=t,Boolean(i&&r&&i.length===r.length&&i.every(((e,t)=>(0,s.isSameRecordData)(e,r[t])))))||u(this,e)}}function u(e,t,i){return new Promise((r=>{if(!t||!t.length)return e.hideSelf(),void r();const{parentNode:n}=e._templateInsertionInfo,a=n.removeChild.bind(n);Array.from(e.querySelectorAll(s.Record.is)).slice(t.length).forEach(a);const o=function(e){const t=[];for(let i=0;i{const n=o[r];n&&l(n)?p(n,t,e,i):d(e,t,i)})),e.showSelf(),requestAnimationFrame((()=>{e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0})),r()}))}))}function l(e){return e.nodeName===s.Record.is.toUpperCase()}function d(e,t,i){const r=p(e._templateRecord.clone(),t,e,i),{parentNode:n,nextElementSibling:s}=e._templateInsertionInfo;n.insertBefore(r,s)}function p(e,t,i,r){return e.__isRecommendation=i.__isRecommendation,e.__isSimilarProducts=i.__isSimilarProducts,e.recordData=t,e.__isLandingPage=i.__isLandingPage,e.__isPredBasket=i.__isPredBasket,e.__campaign=i.__campaign,e.__pageId=i.__pageId,e.__result=r,i._currentLoadingNextPage&&(e.recordData.page=i._currentLoadingNextPage),e}window.customElements.define(c.is,c)},814:function(e,t,i){"use strict";i.r(t),i.d(t,{Record:function(){return m},isSameRecordData:function(){return f}});var r=i(6041),n=i(3940),s=i(8675);var a=i(8486),o=i(7361),c=i(2207);function u(e,t,i,r){const n=(r||e).querySelectorAll(t);return!!n.length&&(i=i.bind(e),n.forEach((e=>e.addEventListener("click",i))),!0)}const l={getPrice:e=>{var t,i,n;const s=null===(t=(0,r.kE)())||void 0===t?void 0:t.price;return s&&(null!==(i=e.masterValues[s])&&void 0!==i?i:null===(n=e.variantValues[0])||void 0===n?void 0:n[s])},getProductNumber:e=>{var t,i,n;const s=null===(t=(0,r.kE)())||void 0===t?void 0:t.productNumber;return s&&(null!==(i=e.masterValues[s])&&void 0!==i?i:null===(n=e.variantValues[0])||void 0===n?void 0:n[s])},getTitle:e=>{var t,i,n,s;const a=null===(t=(0,r.kE)())||void 0===t?void 0:t.productName;return a&&null!==(i=null!==(n=e.masterValues[a])&&void 0!==n?n:null===(s=e.variantValues[0])||void 0===s?void 0:s[a])&&void 0!==i?i:""},getMasterId:e=>{var t,i,n,s;const a=null===(t=(0,r.kE)())||void 0===t?void 0:t.masterId;return a&&null!==(i=null!==(n=e.masterValues[a])&&void 0!==n?n:null===(s=e.variantValues[0])||void 0===s?void 0:s[a])&&void 0!==i?i:""}};var d=i(4474),p=i(3643);const h=[e=>class extends e{static get properties(){return{searchLightDOM:{type:Boolean},productImageIdentifier:{type:"String"},productImageErrorIdentifier:{type:"String"},redirectIdentifier:{type:"String"},redirectTargetIdentifier:{type:"String"},productAnchorIdentifier:{type:"String"},recommendationIdentifier:{type:"String"},bindImmediate:{type:Boolean},disableOverwrite:{type:Boolean}}}constructor(){super(),this.searchLightDOM=!0,this.productImageIdentifier="[data-image]",this.productImageErrorIdentifier="[data-image-onerror]",this.redirectIdentifier="[data-redirect]",this.redirectTargetIdentifier="[data-redirect-target]",this.productAnchorIdentifier="[data-anchor]",this.recommendationIdentifier="[data-recommendation]",this.bindImmediate=!1}ready(){super.ready(),this.bindImmediate&&(this.bindProductAnchors(),this.bindProductActions(),this.bindProductImage())}bindProductActions(){this._bindProductRedirect()}bindProductImage(){this.searchLightDOM&&this._bindProductImage(this)}bindProductAnchors(){this.searchLightDOM&&this._bindProductAnchors(this)}_bindProductImage(e){e.querySelectorAll(this.productImageIdentifier).forEach((e=>{e.onerror||(e.onerror=this._bindOnError(e));const t=e.getAttribute("data-image");t?e.setAttribute("src",t):e.onerror()}))}_bindOnError(e){return()=>{const t=e.getAttribute("data-image-onerror");e.onerror=null,t?e.setAttribute("src",t):console.debug("No image data for this record: ".concat(this.recordData.id))}}_bindProductAnchors(e){e.querySelectorAll(this.productAnchorIdentifier).forEach((e=>{const t=e.getAttribute("data-anchor");t&&0!==t.length&&(e.setAttribute("href",t),e.removeAttribute("data-anchor"))}))}_bindProductRedirect(){this.searchLightDOM&&this.bindRedirect(this)}bindRedirect(e){e&&e.querySelectorAll(this.redirectIdentifier).forEach((e=>{e.querySelectorAll("[data-track]").forEach((e=>e.attributes.removeNamedItem("data-track"))),this.registerClickListener(e)}))}registerClickListener(e){const t=e=>{const t=e.ctrlKey||e.shiftKey||e.metaKey||e.altKey;return 0===e.button&&!t&&!this.disableOverwrite},i=r=>{e.removeEventListener("mouseup",i),2!==r.button&&this._handleTrackingAndRedirect(r,t(r))};e.addEventListener("click",(e=>{const i=t(e);i&&e.preventDefault(),""===e.pointerType&&this._handleTrackingAndRedirect(e,i)})),e.addEventListener("mousedown",(t=>{e.addEventListener("mouseup",i),e.addEventListener("mouseleave",(()=>e.removeEventListener("mouseup",i)))}))}_handleTrackingAndRedirect(e,t){e.stopPropagation();const i=e.currentTarget,r=this.getRedirectTarget(i),n=this.getRedirectLocation(i);if(!n)return;const s=()=>{!0===t&&this.redirect(n,r)};if("_blank"===r){try{!0===this.__isRecommendation?this._trackRecommendationClick(this):!0===this.__isSimilarProducts?this._trackSimilarProductsClick(this):!0===this.__isLandingPage?this._trackLandingPageClick(this):!this.__result&&this.__campaign?this._trackProductCampaignClick(this):!0===this.__isPredBasket?this._trackPredBasketClick(this):this._trackProductClick(this)}catch(e){console.log(e)}s()}else!0===this.__isRecommendation?this._trackRecommendationClick(this,void 0,s):!0===this.__isSimilarProducts?this._trackSimilarProductsClick(this,void 0,s):!0===this.__isLandingPage?this._trackLandingPageClick(this,s):!this.__result&&this.__campaign?this._trackProductCampaignClick(this,s):!0===this.__isPredBasket?this._trackPredBasketClick(this,s):this._trackProductClick(this,s)}getRedirectLocation(e){const t=e.attributes.getNamedItem("data-redirect");if(t){const e=t.nodeValue;if(e&&e.length>0)return e;if(this.recordData)return this.recordData.record.Deeplink;console.debug("No record data available for data-redirect action.")}}getRedirectTarget(e){const t=e.attributes.getNamedItem("data-redirect-target");if(t){const e=t.nodeValue;if(e)return e}return"_blank"}redirect(e,t){s.internalRouting.requestNavigate(e,this,t)}},(0,a.h)(!1),(0,o.z)(),e=>class extends e{constructor(){super(),this.clickSelector="[data-track]",this.productClickSelector='[data-track="productClick"]',this.recommendationClickSelector='[data-track="recommendationClick"]',this.checkoutClickSelector='[data-track="checkoutClick"]',this.cartClickSelector='[data-track="cartClick"]',this.dataCountSelector="[data-track-count]",this.getPrice=l.getPrice,this.getMasterId=l.getMasterId,this.getTitle=l.getTitle}getCount(e){const t=e.querySelector(this.dataCountSelector);if(t){const e=t.getAttribute("data-track-count");return parseInt(t[e]||t.value)}return 1}appendQuery(e,t,i){var r;const n=null===(r=c.u.getConfig().appConfig)||void 0===r?void 0:r.categoryPage;if(null!=n&&n.length){if(i){const t=n[0].values[0];e.query=Array.isArray(t.value)?t.value.map((e=>e.replaceAll("/","%2F"))).join("/"):t.value}}else e.query=t.__result.searchParams.query}appendCampaign(e,t){null!=t&&t.__campaign&&(e.campaign=t.__campaign.id)}appendPrice(e,t){const i=this.getPrice(t);null!=i&&(e.price=i)}appendScore(e,t){t.score&&(e.score=t.score)}appendTitle(e,t){const i=this.getTitle(t);null!=i&&(e.title=i)}appendPage(e,t){t&&(e.page=t.paging.currentPage)}appendPageSize(e,t){t&&(e.pageSize=t.hits.length)}appendMasterId(e,t){const i=this.getMasterId(t);null!=i&&(e.masterId=i)}bindClick(e){e=e||this,!0===this.__isRecommendation?u(this,this.clickSelector,(t=>{e._trackRecommendationClick(e)}),e):!0===this.__isSimilarProducts?u(this,this.clickSelector,(t=>{e._trackSimilarProductsClick(e)}),e):!0===this.__isLandingPage?u(this,this.clickSelector,(t=>{e._trackLandingPageClick(e)}),e):!this.__result&&this.__campaign?u(this,this.clickSelector,(t=>{e._trackProductCampaignClick(e)}),e):!0===this.__isPredBasket?u(this,this.clickSelector,(t=>{e._trackPredBasketClick(e)}),e):u(this,this.clickSelector,(t=>{e._trackProductClick(e)}),e)}bindCheckoutClick(e){e=e||this,u(this,this.checkoutClickSelector,(t=>{e._trackCheckoutClick(e)}),e)}bindCartClick(e){e=e||this,u(this,this.cartClickSelector,(t=>{e._trackCartClick(e)}),e)}_trackRecommendationClick(e,t,i){const{recordElement:r,containerElement:n}=this._getRecoLikeElements("ff-recommendation",e,t);if(r){const e={id:l.getProductNumber(r.recordData),mainId:n.productNumber};this.appendMasterId(e,r.recordData),this.appendTitle(e,r.recordData),c.c.tracking.recommendationClick([e],{origin:r}).finally((()=>{i&&i()}))}}_trackSimilarProductsClick(e,t,i){const{recordElement:r,containerElement:n}=this._getRecoLikeElements("ff-similar-products",e,t);if(r){const e={id:l.getProductNumber(r.recordData),mainId:n.productId};this.appendMasterId(e,r.recordData),this.appendTitle(e,r.recordData),c.c.tracking.recommendationClick([e],{origin:r}).finally((()=>{i&&i()}))}}_getRecoLikeElements(e,t,i){let n,s;return n=i?{recordData:i}:t.tagName&&"ff-record"===t.tagName.toLowerCase()?this:(0,r.mZ)(t,"ff-record"),s=t.tagName.toLowerCase()===e?t:(0,r.mZ)(t,e),{recordElement:n,containerElement:s}}_trackLandingPageClick(e,t){const i={campaign:e.__campaign.id,id:l.getProductNumber(e.recordData),pageId:e.__pageId};this.appendMasterId(i,e.recordData),this.appendTitle(i,e.recordData),c.c.tracking.landingPageClick([i],{origin:e}).finally((()=>{t&&t()}))}_trackCheckoutClick(e,t){const i=this._buildCartOrCheckoutEvent(e);c.c.tracking.checkout([i],{origin:e}).finally((()=>{t&&t()}))}_trackCartClick(e,t){const i=this._buildCartOrCheckoutEvent(e);c.c.tracking.cart([i],{origin:e}).finally((()=>{t&&t()}))}_buildCartOrCheckoutEvent(e){const t={count:this.getCount(e)};if(this.appendCampaign(t,e),e.__isPredBasket){const i=(0,r.kE)();t.id=e.recordData.values[null==i?void 0:i.productNumber];const n=e.recordData.values[null==i?void 0:i.masterId],s=e.recordData.values[null==i?void 0:i.price],a=e.recordData.values[null==i?void 0:i.productName];n&&(t.masterId=n),s&&(t.price=s),a&&(t.title=a)}else t.id=l.getProductNumber(e.recordData),this.appendMasterId(t,e.recordData),this.appendPrice(t,e.recordData),this.appendTitle(t,e.recordData);return t}_trackPredBasketClick(e,t){const i=(0,r.kE)(),n={id:e.recordData.values[null==i?void 0:i.productNumber]},s=e.recordData.values[null==i?void 0:i.masterId],a=e.recordData.values[null==i?void 0:i.productName];s&&(n.masterId=s),a&&(n.title=a),c.c.tracking.predbasketClick([n],{origin:e}).finally((()=>{t&&t()}))}_trackProductClick(e,t){const i=e.__result;if(!i)return void(t&&t());const r={id:l.getProductNumber(e.recordData),pos:e.recordData.position};this.appendQuery(r,e,i),this.appendCampaign(r,e),this.appendMasterId(r,e.recordData),this.appendPage(r,i),this.appendPageSize(r,i),this.appendScore(r,e.recordData),this.appendTitle(r,e.recordData),c.c.tracking.click([r],{origin:e}).finally((()=>{t&&t()}))}_trackProductCampaignClick(e,t){const i=e.__campaign.hits.findIndex((t=>t.id===e.recordData.id)),r={id:l.getProductNumber(e.recordData),pos:i+1,query:"Product campaign - ".concat(e.__campaign.name)};this.appendCampaign(r,e),this.appendMasterId(r,e.recordData),this.appendTitle(r,e.recordData),c.c.tracking.click([r],{origin:e}).finally((()=>{t&&t()}))}}],f=(e,t)=>Boolean(e&&t&&e.id===t.id&&JSON.stringify(e)===JSON.stringify(t));class m extends((0,n.X)(h,d.jD)){static get is(){return"ff-record"}static get properties(){return{recordData:{type:Object},addCartClick:{type:Boolean,attribute:"add-cart-click"},addCheckoutClick:{type:Boolean,attribute:"add-checkout-click"}}}constructor(){super(),this.addCartClick=!1,this.addCheckoutClick=!1,this.recordData=void 0,this._templateString=void 0,this.__isRecommendation=!1,this.__isSimilarProducts=!1,this.__isLandingPage=!1,this.__isPredBasket=!1,this.__campaign=void 0,this.__pageId="",this.__result=void 0}connectedCallback(){this._updateTemplate(),super.connectedCallback()}updated(e){e.has("recordData")&&this._recordDataChanged(this.recordData,e.get("recordData")),super.updated(e)}clone(){const e=document.createElement(m.is);return(0,r.FB)(this,e),e._updateTemplate(this._templateString),e}_recordDataChanged(e,t){if(e){if(!0===e.teaser)return this.innerHTML=e.text,!this.hasAttribute("is-teaser")&&this.setAttribute("is-teaser",""),void this.showSelf();this.hasAttribute("is-teaser")&&this.removeAttribute("is-teaser"),f(e,t)||(this._stamp(e),this.updateComplete.then((()=>{this.bindProductActions(),this.bindProductImage(),this.bindProductAnchors(),this.resolveDeferredAttributes(),this.bindClick(),this.addCartClick&&this.bindCartClick(),this.addCheckoutClick&&this.bindCheckoutClick()}))),this.showSelf()}else this.hideSelf()}_stamp(e){this.innerHTML=(0,p.s)(this._templateString,e)}_updateTemplate(e){e?this._templateString=e:this._templateString||(this._templateString=this.innerHTML)}}window.customElements.define(m.is,m)},8153:function(e,t,i){"use strict";i.r(t),i.d(t,{SearchBox:function(){return h}});var r=i(2207),n=i(792),s=i(4474),a=i(177),o=i(3940),c=i(8016),u=i(7982),l=i(2240),d=i(6041);const p=new WeakMap;class h extends((0,o.X)([(0,u.d)(),(0,l.D)(l.l.SearchAndNavigation)],s.jD)){static get is(){return"ff-searchbox"}static get properties(){return{popularSearches:{type:Boolean,attribute:"popular-searches"},suggestOnfocus:{type:s.k_,attribute:"suggest-onfocus"},selectOnclick:{type:s.k_,attribute:"select-onclick"},useSuggest:{type:s.k_,attribute:"use-suggest"},suggestDelay:{type:Number,attribute:"suggest-delay"},showAsteriskQuery:{type:s.k_,attribute:"show-asterisk-query"}}}get value(){if(this.input)return this.input.value;this.error("Input element not initialized.")}set value(e){this.input?(this.input.value=e,this.input.dispatchEvent(new Event("input",{bubbles:!0}))):this.error("Input element not initialized.")}constructor(){super(),this.selectedIndex=-1,this._inputValueChanged=this._inputValueChanged.bind(this),this.popularSearches=!1,this.suggestOnfocus=!1,this.selectOnclick=!1,this.useSuggest=!0,this.suggestDelay=350,this.showAsteriskQuery=!1,this._enableTextSelection=!0,this._fireSuggestDebouncerJob=void 0,this._lastResult=void 0,this._cachedPopularSearchesResult=void 0}firstUpdated(e){super.firstUpdated(e),this.input||(this.appendChild(document.createElement("input")),this.resetInput()),this.input.addEventListener("input",this._inputValueChanged),this.input.addEventListener("blur",this._inputValueChanged),this.input.addEventListener("focus",this._inputValueChanged),!0===this.selectOnclick?this.addEventListener("click",(()=>{this._enableTextSelection&&(this.input.select(),this._enableTextSelection=!1)})):!1!==this.selectOnclick&&this.warn("select-onclick has to be either 'true' or 'false'"),this.input.onkeyup=e=>{13===e.keyCode&&this._onEnter(),27===e.keyCode&&this._hideSuggest(),40===e.keyCode&&this._onArrowDown(e),38===e.keyCode&&this._onArrowUp(e)}}updated(e){super.updated(),e.has("suggestDelay")&&(null===this.suggestDelay||isNaN(this.suggestDelay)||(this._fireSuggestDebouncerJob=(0,n.D)(this._fireSuggestDebouncerJob,(()=>this._fireSuggest()),this.suggestDelay)))}connectedCallback(){this.resetInput(),super.connectedCallback();if(!this.querySelector(a.SearchButton.is))return;const e=e=>{e.stopPropagation(),this._fireSearch(this.value)};p.set(this,e),this.addEventListener(a.Events.ButtonClicked,e)}disconnectedCallback(){this.removeEventListener(a.Events.ButtonClicked,p.get(this)),p.delete(this),this._fireSuggestDebouncerJob&&this._fireSuggestDebouncerJob.cancel(),super.disconnectedCallback()}_subscriptionCallback(e){const t=e.searchParams.query;this.input.value="*"!==t||this.showAsteriskQuery?t:"",this._lastResult=e}_inputValueChanged(e){if(e)if("focus"===e.type){if(!0===this.suggestOnfocus&&f(this))this._triggerSuggest();else if(this.popularSearches)if(this._cachedPopularSearchesResult)r.c.response.dispatch.popularSearches(JSON.parse(JSON.stringify(this._cachedPopularSearchesResult)),{requestOptions:{origin:this}});else{const e=r.u.elementsBeforeAllSubscribePopularSearches(((t,i)=>{this._cachedPopularSearchesResult=JSON.parse(JSON.stringify(t)),r.u.elementsUnsubscribe(e)}));r.c.request.popularSearches({origin:this})}}else"input"===e.type?this._triggerSuggest():"blur"===e.type&&(this._enableTextSelection=!0)}_triggerSuggest(){!1!==this.useSuggest&&(this.resetHighlight(),this._fireSuggestDebouncerJob.run())}_fireSuggest(){if(f(this)){var e;const t={query:this.value};null!==(e=this._lastResult)&&void 0!==e&&e.followSearch&&(t.followSearch=this._lastResult.followSearch),r.c.request.suggest(t,{origin:this})}else this._hideSuggest()}_hideSuggest(){var e;this.resetHighlight(),this.selectedIndex=-1,null===(e=this._fireSuggestDebouncerJob)||void 0===e||e.cancel(),r.u.notifications.dispatchSuggestHide(this)}search(){this._fireSearch(this.value)}_fireSearch(e){var t;if(!e)return;const i={query:e};null!==(t=this._lastResult)&&void 0!==t&&t.followSearch&&(i.followSearch=this._lastResult.followSearch),r.c.request.search(i,{requestOptions:{origin:this}})}_onEnter(){-1!==this.selectedIndex?this.searchSelected():this.search(),this._hideSuggest()}_onArrowUp(e){if(this.selectedIndex<=0)return;this.input.setSelectionRange(0,this.value.length);const t=this.getSuggestItems();return t.length>0&&(this.removeHighlight(t[this.selectedIndex]),this.selectedIndex--,this.selectedIndex>=0&&this.setHighlight(t[this.selectedIndex])),e.stopPropagation(),e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}_onArrowDown(e){const t=this.getSuggestItems();this.selectedIndex!==t.length-1&&t.length>0&&(-1!==this.selectedIndex&&this.removeHighlight(t[this.selectedIndex]),this.selectedIndex++,this.selectedIndex0!==e.offsetHeight))}resetInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"input";this.input=this.querySelector(e)}_handleExternalHighlight(e){this.resetHighlight(),this.setHighlight(e.element),this.selectedIndex=e.selectedIndex}setHighlight(e){e.classList.add("ffw-highlight-suggest-item")}removeHighlight(e){e.classList.remove("ffw-highlight-suggest-item")}resetHighlight(){this.selectedIndex=-1,this.getSuggestItems().forEach((e=>{e.classList.remove("ffw-highlight-suggest-item")}))}}function f(e){return e.value&&e.value.length>=2}window.customElements.define(h.is,h)},177:function(e,t,i){"use strict";i.r(t),i.d(t,{Events:function(){return o},SearchButton:function(){return c}});var r=i(4474),n=i(3940),s=i(7982),a=i(8153);const o={ButtonClicked:"ffSearchButton"};class c extends((0,n.X)([(0,s.d)()],r.jD)){static get is(){return"ff-searchbutton"}static get properties(){return{for:{type:String}}}constructor(){super(),this._button=void 0}firstUpdated(){var e;this.resetButton(),this.addEventListener("click",(e=this,t=>{if(!e._button)return e.error("No button element initialized.");if(!e._button.contains(t.target))return;if(!e.for)return void e.dispatchEvent(new CustomEvent(o.ButtonClicked,{bubbles:!0}));const i=document.getElementById(e.for);if(!i)return e.error("Could not find ".concat(a.SearchBox.is," with id '").concat(e.for,"'."));i.search()})),super.firstUpdated()}resetButton(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button";const t=this.querySelector(e);t?this._button=t:this.error("Couldn't find element for selector: ".concat(e))}}window.customElements.define(c.is,c)},4700:function(e,t,i){"use strict";i.r(t),i.d(t,{SimilarProducts:function(){return u}});var r=i(2207),n=i(3940),s=i(961),a=i(4474),o=i(7982);const c=Object.freeze({ProductNumber:"productNumber",Id:"id"});class u extends((0,n.X)([(0,o.d)()],a.jD)){static get is(){return"ff-similar-products"}static get properties(){return{productId:{type:a.ye,attribute:"product-id"},maxResults:{type:Number,attribute:"max-results"},idType:{type:String,attribute:"id-type"}}}constructor(){super(),this.productId=void 0,this.maxResults=void 0,this.idType=void 0}connectedCallback(){super.connectedCallback(),this.hideSelf();const e=this.querySelector(s.RecordList.is);e&&(e.subscribe=!1,e.__isSimilarProducts=!0)}update(e){if(e.has("idType")){const e=Object.values(c);if(!e.includes(this.idType))return void this.warn("idType must be one of [".concat(e.join(", "),"]. Was: ").concat(this.idType,"."))}e.has("productId")&&this.getSimilarProducts(),super.update(e)}getSimilarProducts(){if(!Object.values(c).includes(this.idType))return void this.warn("idType invalid. Not sending request.");if(!this.productId)return void this.debug("No product id for similarProducts specified.");const e={id:this.productId,idType:this.idType};this.maxResults&&(e.maxResults=this.maxResults),r.c.request.similar(e,{origin:this}).then((e=>{const t=e.hits;if(t.length>0){const e=this.querySelector(s.RecordList.is);e?(e.records=t,this.showSelf()):this.hideSelf()}else this.hideSelf()}))}}window.customElements.define(u.is,u)},6637:function(e,t,i){"use strict";i.r(t),i.d(t,{SingleWordSearch:function(){return k}});var r,n=i(168),s=i(9890),a=i(961),o=i(3940),c=i(7982),u=i(4474),l=i(3643),d=i(6041);const p="[data-search='singleWord']";class h extends((0,o.X)([(0,c.d)()],u.jD)){static get is(){return"ff-single-word-search-record"}static get properties(){return{_template:{type:Object,attribute:!1},singleWordResult:{type:Object,attribute:!1}}}render(){return(0,s.dy)(this._template?[this._template.dataTemplate]:[])}constructor(){super(),this._template=void 0,this._handleSingleSearchClick=f(this)}firstUpdated(e){super.firstUpdated(e),this._template&&Object.keys(this._template.attributes).forEach((e=>this.setAttribute(e,this._template.attributes[e])))}updated(e){super.updated(e),e.has("singleWordResult")&&m(this,this.singleWordResult)}connectedCallback(){super.connectedCallback();const e=this.querySelector(a.RecordList.is);e?(e.setAttribute("subscribe","false"),e.innerHTML=e._origHTML):(0,u.np)(this)||this.warn("".concat(a.RecordList.is," not found. Data will not be displayed."))}}const f=e=>()=>{(0,d.hT)(e.singleWordResult.searchParams,e)},m=(e,t)=>{if(e.hideSelf(),!t)return;const i=e.querySelector(p);i&&(i.innerHTML=(0,l.s)(i.innerHTML,t));const r=e.querySelector(a.RecordList.is);r?r.records=t.previewRecords:e.warn("".concat(a.RecordList.is," not found. Data will not be displayed.")),g(e,e._handleSingleSearchClick),b(e,e._handleSingleSearchClick),e.showSelf()},g=(e,t)=>{e.querySelectorAll(p).forEach((e=>e.removeEventListener("click",t)))},b=(e,t)=>{e.querySelectorAll(p).forEach((e=>e.addEventListener("click",t)))};window.customElements.define(h.is,h);var v,y,_=i(6342),S=i(2240);class k extends((0,o.X)([(0,S.D)(S.l.SearchAndNavigation)],u.jD)){static get is(){return"ff-single-word-search"}static get properties(){return{singleWordResults:{type:Array,attribute:!1}}}render(){return!this.singleWordResults||!this.singleWordResults.length>0?(0,s.dy)(v||(v=(0,n.Z)([""]))):(0,s.dy)(y||(y=(0,n.Z)([""," "," ",""])),(0,u.SM)(this._headerTemplate),(0,_.r)(this.singleWordResults,(e=>e.word),(e=>{return t=this._singleWordRecordTemplate,i=e,(0,s.dy)(r||(r=(0,n.Z)([''])),t,i);var t,i})),(0,u.SM)(this._footerTemplate))}constructor(){super(),this._headerTemplate=void 0,this._singleWordRecordTemplate=void 0,this._footerTemplate=void 0,this.singleWordResults=[]}updated(e){super.updated(e),this.updateComplete.then((()=>{Promise.all(Array.from(this.querySelectorAll(h.is)).map((e=>e.updateComplete))).then((()=>{this.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}))}))}connectedCallback(){super.connectedCallback();const e=this.querySelector(h.is),t=C(e),i=w(e);this._headerTemplate=this._headerTemplate||P(t),this._singleWordRecordTemplate=this._singleWordRecordTemplate||(e=>!e||(0,u.np)(e)?{dataTemplate:"",attributes:{}}:{dataTemplate:e.innerHTML,attributes:Array.prototype.reduce.call(e.attributes,((e,t)=>{let{name:i,value:r}=t;return e[i]=r,e}),{})})(e),this._footerTemplate=this._footerTemplate||P(i)}_subscriptionCallback(e){this.singleWordResults=e.singleWordResults}}const C=e=>{if(!e)return[];const t=[...e.parentNode.childNodes];return t.slice(0,t.indexOf(e))},w=e=>{if(!e)return[];const t=[...e.parentNode.childNodes];return t.slice(t.indexOf(e)+1)},P=e=>{const t=document.createElement("div");return e.forEach((e=>t.appendChild(e))),t.innerHTML};window.customElements.define(k.is,k)},4675:function(e,t,i){"use strict";i.r(t),i.d(t,{Slider:function(){return f}});var r=i(168),n=i(3282),s=i(4474),a=i(6041);const o=e=>Math.round(1e3*e)/1e3;class c extends s.jD{static get properties(){return{selectedMinValue:{type:Number,attribute:"selected-min-value"},selectedMaxValue:{type:Number,attribute:"selected-max-value"},absoluteMaxValue:{type:Number,attribute:"absolute-max-value"},absoluteMinValue:{type:Number,attribute:"absolute-min-value"},step:{type:Number}}}constructor(){super(),this.step=1,this._initialized=!1}update(e){e.has("absoluteMinValue")&&(this.absoluteMinValue=o(Math.floor(this.absoluteMinValue/this.step)*this.step)),e.has("absoluteMaxValue")&&(this.absoluteMaxValue=o(Math.ceil(this.absoluteMaxValue/this.step)*this.step)),e.has("selectedMinValue")&&(this.selectedMinValue=o(Math.floor(this.selectedMinValue/this.step)*this.step)),e.has("selectedMaxValue")&&(this.selectedMaxValue=o(Math.ceil(this.selectedMaxValue/this.step)*this.step)),super.update(e)}updateData(e){!e||this.selectedMaxValue===e.selectedMaxValue&&this.selectedMinValue===e.selectedMinValue||(this.absoluteMaxValue=e.absoluteMaxValue,this.absoluteMinValue=e.absoluteMinValue,this.selectedMaxValue=e.selectedMaxValue,this.selectedMinValue=e.selectedMinValue),function(e,t){if(e._initialized)return;Promise.resolve().then((()=>{const i=(0,a.mZ)(e,"FF-Slider-CONTROL");i&&i.init(t)})),e._initialized=!0}(this,e)}submit(){if(this.selectedMinValue<=this.absoluteMinValue&&this.selectedMaxValue>=this.absoluteMaxValue)this.dispatchEvent(new CustomEvent("_slider-submit",{bubbles:!0,composed:!0}));else{(e=this).selectedMinValue=o(Math.round(e.selectedMinValue/e.step)*e.step),e.selectedMaxValue=o(Math.round(e.selectedMaxValue/e.step)*e.step);const t="[".concat(this.selectedMinValue,",").concat(this.selectedMaxValue,"]");this.dispatchEvent(new CustomEvent("_slider-submit",{detail:t,bubbles:!0,composed:!0}))}var e}}var u,l,d;const p=Object.freeze({Triangle:".ffw-triangle",LeftButton:".ffw-slider-button-left",RightButton:".ffw-slider-button-right",Line:".ffw-line",SelectedRange:".ffw-selected-range"}),h=Object.freeze({NoTransition:"ffw-no-transition",Active:"ffw-active"});class f extends c{static get is(){return"ff-slider"}static get properties(){return{ratio:{type:Number},oneTouch:{type:Boolean,attribute:"one-touch"}}}constructor(){super(),this.ratio=.5,this.oneTouch=!1,this._listener=void 0}render(){const e=this.querySelector(".ffw-slider-button-left"),t=this.querySelector(".ffw-slider-button-right"),i=this.offsetWidth;let s=i;e&&t&&(s=i-e.offsetWidth-t.offsetWidth);const a=(0,n.dy)(u||(u=(0,r.Z)(['
'])),y(this,!0),y(this,!0),y(this,!1),y(this,!1));if(this.oneTouch){const e=s*this.ratio;return(0,n.dy)(l||(l=(0,r.Z)(['
',"
"])),m(this),g(this),v(this),v(this),m(this),1.5*i,e,s,a)}return(0,n.dy)(d||(d=(0,r.Z)(['
',"
"])),a)}firstUpdated(){super.firstUpdated(),window.addEventListener("mouseup",S(this)),window.addEventListener("touchend",S(this))}update(e){super.update(e);["selectedMinValue","selectedMaxValue","absoluteMinValue","absoluteMaxValue"].some((t=>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.step),e.selectedMaxValue===e.absoluteMaxValue&&(e.selectedMinValue-=e.step));k(e)}(this),b(this))}updateData(e){super.updateData(e),b(this)}}function m(e){return()=>{const t=e.querySelector(p.Triangle);t&&(t.classList.add(h.Active),b(e))}}function g(e){return()=>{if(e._listener)return;const t=e.querySelector(p.Triangle);t&&(t.classList.remove(h.Active),b(e))}}function b(e){const t=e.querySelector(p.LeftButton),i=e.querySelector(p.RightButton),r=e.querySelector(p.Line),n=e.querySelector(p.SelectedRange),s=e.querySelector(p.Triangle),a=r.offsetWidth,o=r.offsetLeft,c=a-t.offsetWidth-i.offsetWidth,u=t.offsetWidth,l=e.absoluteMaxValue-e.absoluteMinValue,d=Math.round((e.selectedMinValue-e.absoluteMinValue)/l*c+o),f=Math.round((e.selectedMaxValue-e.absoluteMinValue)/l*c+u);if(t.style.left="".concat(d,"px"),n.style.left="".concat(d,"px"),i.style.left="".concat(f,"px"),n.style.right="".concat(a-f-i.offsetWidth,"px"),!s)return;const m=d+t.offsetWidth;if(s.classList.contains(h.Active)){const t=(f-m)/c*(c*e.ratio);s.style.left="".concat(f,"px"),s.style.top="calc(50% - ".concat(t,"px)")}else s.style.left="".concat((f-m)/2+m,"px"),s.style.top="50%"}function v(e){return{handleEvent:t=>{const i=e.querySelector(p.LeftButton),r=e.querySelector(p.RightButton),n=e.querySelector(p.Line),s=e.querySelector(p.Triangle);s.classList.contains(h.Active)||m(e)(),S(e)(),s.classList.add(h.NoTransition);const a=n.offsetWidth-i.offsetWidth-r.offsetWidth,o=e.absoluteMaxValue-e.absoluteMinValue,c=e=>e/a*o,[u,l]=_(t),d=e.selectedMaxValue,f=e.selectedMaxValue-e.selectedMinValue;e._listener=t=>{const[i,r]=_(t),n=i-u,s=(r-l)/e.ratio,a=c(n),o=c(s),p=d+a,h=p-f,m=Math.max(0,p-e.absoluteMaxValue),g=Math.max(0,e.absoluteMinValue-h),v=o>0?Math.max(0,g-o):g,y=Math.min(e.absoluteMaxValue,p)+v,S=Math.max(e.absoluteMinValue,h)-m,C=o-g,w=Math.min(y,S+C),P=Math.max(e.absoluteMinValue,y);e.selectedMinValue=w,e.selectedMaxValue=P,b(e),k(e)},window.addEventListener("mousemove",e._listener),window.addEventListener("touchmove",e._listener)},passive:!0}}function y(e,t){return{handleEvent:i=>{S(e)();const r=e.querySelector(p.LeftButton),n=e.querySelector(p.RightButton),s=e.querySelector(p.Line),a=e.querySelector(p.Triangle);null==a||a.classList.add(h.NoTransition);const c=s.offsetWidth-r.offsetWidth-n.offsetWidth,u=s.offsetLeft,l=parseInt(r.style.left.replace("px","")),d=parseInt(n.style.left.replace("px","")),[f]=_(i),m=e.absoluteMaxValue-e.absoluteMinValue,g=t=>t/c*m+e.absoluteMinValue;e._listener=i=>{const[n]=_(i),s=n-f;if(t){const t=g(l+s-u);e.selectedMinValue=o(Math.min(e.selectedMaxValue,t))}else{const t=g(d+s-u-r.offsetWidth);e.selectedMaxValue=o(Math.max(e.selectedMinValue,t))}b(e),k(e)},window.addEventListener("mousemove",e._listener),window.addEventListener("touchmove",e._listener)},passive:!0}}function _(e){return[void 0!==e.clientX?e.clientX:e.touches[0].clientX,void 0!==e.clientY?e.clientY:e.touches[0].clientY]}function S(e){return()=>{if(!e._listener)return;window.removeEventListener("mousemove",e._listener),window.removeEventListener("touchmove",e._listener),e.submit(),e._listener=void 0;const t=e.querySelector(p.Triangle);if(!t)return;t.classList.remove(h.NoTransition);!1===(t.matches?t.matches(":hover"):t.msMatchesSelector(":hover"))&&g(e)()}}function k(e){const t={detail:{selectedMinValue:e.selectedMinValue,selectedMaxValue:e.selectedMaxValue,slider:"min"}};e.dispatchEvent(new CustomEvent("value-changed",t)),e.dispatchEvent(new CustomEvent("slider-moved",t)),e.dispatchEvent(new CustomEvent("slider-moved",{detail:{...t.detail,slider:"max"}}))}window.customElements.define(f.is,f)},2969:function(e,t,i){"use strict";i.r(t),i.d(t,{SortBoxSelect:function(){return l}});var r,n=i(168),s=i(3282),a=i(4474),o=i(3940),c=i(2240),u=i(6041);class l extends((0,o.X)([(0,c.D)(c.l.SearchAndNavigation)],a.jD)){static get is(){return"ff-sortbox-select"}static get properties(){return{items:{type:Array,attribute:!1}}}render(){return(0,s.dy)(r||(r=(0,n.Z)(['"])),d,this.items.map((e=>(0,a.SM)(this._itemTemplate,e))))}constructor(){super(),this._selectAttributes=[],this._itemTemplate=void 0,this.items=[]}connectedCallback(){var e;super.connectedCallback(),this.hideSelf(),this._selectAttributes=(e=this.querySelector("select"))?e.attributes:[],this._itemTemplate=this.querySelector("option")||""}firstUpdated(){const e=this.querySelector("select");Array.prototype.forEach.call(this._selectAttributes,(t=>{let{name:i,value:r}=t;return e.setAttribute(i,r)}))}updated(e){e.has("items")&&(0===this.items.length?this.hideSelf():(this.showSelf(),this.querySelector("select").selectedIndex=function(e){for(let t=0;t','
',"
"])),g.SelectedContainer,this._selectedItem,g.DropdownContainer,this.opened?"":g.DropdownClosed,this._dropdownItems)}constructor(){var e;super(),this.items=[],this.opened=!1,this.showSelected=!1,this.showSelectedFirst=!1,this.collapseOnblur=!0,this._defaultSortItemTemplate=void 0,this._initialized=!1,this._sortBoxItemTemplateInfos={},this._selectedItem=void 0,this._dropdownItems=void 0,this.addEventListener(d,_),this.addEventListener("click",(()=>this.toggle())),this.addEventListener("blur",(e=this,()=>{e.collapseOnblur&&setTimeout((()=>e.collapse()),150)}))}connectedCallback(){super.connectedCallback(),this._init()}_init(){if(this._initialized)return;this.tabindex=this.getAttribute("tabindex"),this.tabindex||this.setAttribute("tabindex","1");const e=this.querySelector(m.DefaultSortItemCssSelector);e?(this._defaultSortItemTemplate=e,this.removeChild(e)):this._defaultSortItemTemplate=document.createElement(p.is),this._sortBoxItemTemplateInfos=function(e,t){const i="Relevancy.desc";return t.forEach((t=>{const r=t.getAttribute("key");!r||r===i&&e.hasOwnProperty(i)||(e[r]=y(t))})),e}(this._sortBoxItemTemplateInfos,this.querySelectorAll(p.is)),this._initialized=!0}firstUpdated(e){super.firstUpdated(e),this.hideSelf(),function(e){const t=v(e);e.opened?(e.opened=!0,e._show(t,!1)):e._hide(t,!1,(()=>{e.opened=!1}))}(this)}update(e){(e.has("items")||e.has("showSelected"))&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.collapse(),!t.length)return void e.hideSelf();const i=t.find((e=>e.selected)),r=t.indexOf(i),n=t.slice();e.showSelected&&!e.showSelectedFirst||n.splice(r,1);if(e.showSelected){const t={...i,selected:!1};n.splice(e.showSelectedFirst?0:r,0,t)}e._selectedItem=s(i),e._dropdownItems=n.map(s),e._dropdownItems.forEach((e=>e._highlightSelected=!1)),e.showSelected&&(e._dropdownItems[e.showSelectedFirst?0:r]._highlightSelected=!0);function s(t){const i="".concat((r=t).name,".").concat(r.order);var r;const n=function(e,t,i,r){const n=(s=e[i],a=()=>{const r=t.clone();return r.setAttribute("key",i),e[i]=y(r),e[i]},null!=s?s:a());var s,a;if(r&&!n.selected){const e=n.dropdown.clone();e.setAttribute("key",i),n.selected=e}return r?n.selected:n.dropdown}(e._sortBoxItemTemplateInfos,e._defaultSortItemTemplate,i,t.selected);return n.sortItem=t,n}e.showSelf(),e.dispatchEvent(new CustomEvent("dom-updated",{bubbles:!0,composed:!0}))}(this,this.items),super.update(e)}expand(){if(this.opened)return;this.opened=!0;const e=v(this);this._show(e,!0)}collapse(){if(!this.opened)return;const e=v(this);e.__transitionActive__=!1,this._hide(e,!0,(()=>{this.opened=!1}))}toggle(e){!0===e?this.expand():!1===e||this.opened?this.collapse():this.expand()}_subscriptionCallback(e){this.items=e.sortItems}}function v(e){return e.querySelector(".".concat(g.DropdownContainer))}function y(e,t){return{dropdown:e,selected:t}}function _(e){const t=e.target.sortItem;t.selected||(0,a.hT)(t.searchParams,this)}window.customElements.define(b.is,b)},8016:function(e,t,i){"use strict";i.d(t,{M:function(){return f},u:function(){return m}});var r,n,s=i(168),a=i(9890),o=i(6858),c=i(3940),u=(i(8153),i(7982)),l=i(8486),d=i(4474),p=i(9528),h=i(6041);const f="_item-clicked";class m extends((0,c.X)([(0,u.d)(),(0,l.h)()],d.jD)){static get is(){return"ff-suggest-item"}static get properties(){return{type:{type:String,reflect:!0},suggestion:{type:Object,attribute:!1}}}render(){const e=this.suggestion&&JSON.parse(JSON.stringify(this.suggestion));return e&&this._query&&this.highlightQuery(e,this._query),this._template?(0,a.dy)(r||(r=(0,s.Z)(["",""])),(0,d.SM)(this._template,(0,p.J)(e,"name"))):(0,a.dy)(n||(n=(0,s.Z)(["",""])),this.innerHTML)}constructor(){super(),this.type="all",this.suggestion=void 0,this._query=void 0,this._template=void 0,this.addEventListener("click",g)}connectedCallback(){super.connectedCallback(),this._template=this._template||this.innerHTML||void 0}update(e){this.suggestion?this.showSelf():this.hideSelf(),super.update(e)}updated(e){if(super.updated(e),this.suggestion)try{(0,o.M)(this,this.suggestion.image)}catch(e){this.error(e)}}highlightQuery(e,t){if(!e.queryHighlighted)if(t&&t.trim())try{const i=t.trim().split(" ").map(h.yI).join("|");e.name=e.name.replace(new RegExp(i,"gi"),(e=>''.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.")}}function g(e){e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new CustomEvent(f,{bubbles:!0}))}window.customElements.define(m.is,m)},5730:function(e,t,i){"use strict";i.r(t),i.d(t,{Suggest:function(){return _}});var r,n,s,a=i(168),o=i(9890),c=i(2207),u=i(3940),l=i(7982),d=i(8016),p=i(8153),h=i(4474),f=i(498),m=i(3643),g=i(6041);const b=Object.freeze({block:"block",list:"list"}),v="[data-template]",y="_popSearchClick";class _ extends((0,u.X)([(0,l.d)()],h.jD)){static get is(){return"ff-suggest"}static get properties(){return{layout:{type:String},suggestItems:{type:Array,attribute:!1},popularSearches:{type:Object,attribute:!1},hideOnblur:{type:h.k_,attribute:"hide-onblur"},requestMappingSearch:{type:String,attribute:"request-mapping-search"},requestMappingNavigation:{type:String,attribute:"request-mapping-navigation"},requestMappingDetail:{type:String,attribute:"request-mapping-detail"},forSearchbox:{type:String,attribute:"for-searchbox"},_showUnknownSuggestions:{type:h.k_,attribute:"show-unknown-suggestions"},_unknownSuggestionsSectionId:{type:String,attribute:"unknown-suggestions-section-id"}}}render(){var e;let t;if(null!==(e=this.popularSearches)&&void 0!==e&&e.length){if(!this._popularSearchesTemplate)return void this.error('No template defined for Popular Searches. Needs