1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1179],{36978:(e,r,t)=>{t.d(r,{h:()=>a});function a(e){return null!=e}},69900:(e,r,t)=>{t.r(r),t.d(r,{getSearchResultsFromApi:()=>p});var a=t(54026),o=t(36978),s=t(84675),i=t(69315),n=t(71911);let c=(e,r,t)=>e.id&&e.name?{name:e.name,link:((e,r,t,a)=>a.redirectPageUrl?a.redirectPageUrl.replace("{CATEGORY_ID}",e).replace("{CATALOG}","SHOP"==t?"shop":"product"):"SHOP"==t?`/${a.shopCategoryPageTemplateId}/${r?.join("/")}`:`/${a.mktCategoryPageTemplateId}/${r?.join("/")}`)(e.id,e.seoPath,r,t)}:null,d=(e,r)=>r.products.map(({id:t,name:a,image:o,seoPath:s,taggingActions:c})=>{if(t&&a&&o){let d=(0,i.dJ)({catalogType:e,seoPath:s,productCode:t}),u=o.replace("{width}x{height}","100x100"),g=[...(0,n.f_)(r.queryTaggingActions),...(0,n.f_)(c)];return{productCode:t,name:a,image:u,url:d,imageSrcSet:(e=>{let r=/(\d+)x(\d+)/g,t=e.match(r);if(t&&1===t.length)return`${e.replaceAll(r,"100x100")} 1x, ${e.replaceAll(r,"200x200")} 2x`})(u),taggingActions:g,catalogType:e}}}).filter(o.h),u=async(e,r,t)=>{let a=(0,s.FC)(e?.data?.typeaheadContent?.suggestions??[]),i=(0,s.FC)(e?.data?.typeaheadProducts?.suggestions??[]),n=(0,s.FC)(e?.data?.marketingSearchResults?.categories??[]),u=(0,s.FC)(e?.data?.shopSearchResults?.categories??[]),g=(0,s.FC)(e?.data?.marketingSearchResults?.products??[]),l=(0,s.FC)(e?.data?.shopSearchResults?.products??[]),p=e?.data?.marketingSearchResults?.spellCorrection||e?.data?.shopSearchResults?.spellCorrection;return{categories:(({marketingCategories:e,shopCategories:r,categoryPageRedirectConfig:t})=>[...e.map(e=>c(e,"MARKETING",t)).filter(o.h),...r.map(e=>c(e,"SHOP",t)).filter(o.h)])({marketingCategories:n,shopCategories:u,categoryPageRedirectConfig:t}),products:(({marketing:e,shop:r})=>[...d("MARKETING",{products:e.products,queryTaggingActions:e.queryTaggingActions}),...d("SHOP",{products:r.products,queryTaggingActions:r.queryTaggingActions})])({marketing:{products:g,queryTaggingActions:e?.data?.marketingSearchResults?.taggingActions},shop:{products:l,queryTaggingActions:e?.data?.shopSearchResults?.taggingActions}}),contentSuggestions:a.map(e=>({name:e})),productSuggestions:i.map(e=>({name:e})),searchTerm:r,correctedSearchTerm:p??void 0}};var g=t(80207);let l=(0,g.J1)` 2 query SearchResults( 3 $term: String! 4 $isEnabledFeatureOnlineShop: Boolean! 5 $isEnabledFeatureMarketingCatalog: Boolean! 6 $isEnabledContentSearch: Boolean! 7 $isProductSearchProviderEmpathy: Boolean! 8 $productSearchProvider: SearchProviderOption 9 $priceGroup: String 10 $brands: [String] 11 ) { 12 shopSearchResults: suggestProducts( 13 term: $term 14 catalog: SHOP 15 provider: $productSearchProvider 16 priceGroup: $priceGroup 17 brands: $brands 18 ) @include(if: $isEnabledFeatureOnlineShop) { 19 categories { 20 name 21 id 22 seoPath 23 } 24 products { 25 id 26 name 27 image 28 seoPath 29 taggingActions { 30 code 31 url 32 } 33 } 34 taggingActions { 35 code 36 url 37 } 38 spellCorrection 39 } 40 marketingSearchResults: suggestProducts( 41 term: $term 42 catalog: MARKETING 43 provider: $productSearchProvider 44 priceGroup: $priceGroup 45 brands: $brands 46 ) @include(if: $isEnabledFeatureMarketingCatalog) { 47 categories { 48 name 49 id 50 seoPath 51 } 52 products { 53 id 54 name 55 image 56 seoPath 57 taggingActions { 58 code 59 url 60 } 61 } 62 taggingActions { 63 code 64 url 65 } 66 spellCorrection 67 } 68 typeaheadContent(term: $term) @include(if: $isEnabledContentSearch) { 69 suggestions 70 } 71 typeaheadProducts(term: $term, provider: $productSearchProvider) 72 @include(if: $isProductSearchProviderEmpathy) { 73 suggestions 74 } 75 } 76`,p=async(e,r,t,o)=>{try{let s=await (0,a.e)({query:l,client:e,variables:{term:r,isEnabledFeatureOnlineShop:o.isEnabledFeatureOnlineShop,isEnabledFeatureMarketingCatalog:o.isEnabledFeatureMarketingCatalog,isEnabledContentSearch:o.isEnabledContentSearch,isProductSearchProviderEmpathy:o.isProductSearchProviderEmpathy,productSearchProvider:o.productSearchProvider,priceGroup:o.priceGroup??null,brands:o.brands??null}});return{searchResults:await u(s,r,t),error:null}}catch(e){return{searchResults:{categories:[],products:[],contentSuggestions:[],productSuggestions:[],searchTerm:r},error:e}}}},84675:(e,r,t)=>{t.d(r,{FC:()=>o});var a=t(36978);let o=e=>e.filter(a.h)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.