PageSourceSearch

https://cdn.wcc.witt-weiden.de/_next/static/chunks/1501-df15a46a771d06d9.js

js witt-weiden.de collected 2026-10-02 06:09:55 UTC 27,054 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="83d685fd-291d-4586-93a5-99f7dd1b60e7",e._sentryDebugIdIdentifier="sentry-dbid-83d685fd-291d-4586-93a5-99f7dd1b60e7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1501],{28402:(e,n,i)=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"smartSuggestion"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"term"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"smartSuggestion"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"term"},value:{kind:"Variable",name:{kind:"Name",value:"term"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"suggestions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TermSuggestion"},directives:[]}]}}]}}]}}],loc:{start:0,end:139}};t.loc.source={body:'#import "./TermSuggestion.gql"\nquery smartSuggestion($term:String!){smartSuggestion(input:{term:$term}){id suggestions{...TermSuggestion}}}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};t.definitions=t.definitions.concat(i(29171).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}));var r={};function o(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}t.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})}(e,n),r[e.name.value]=n}}),e.exports=t,e.exports.smartSuggestion=function(e,n){var i={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var t=r[n]||new Set,a=new Set,s=new Set;for(t.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach(function(e){s.add(e)}))})}return a.forEach(function(n){var t=o(e,n);t&&i.definitions.push(t)}),i}(t,"smartSuggestion")},29171:e=>{var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TermSuggestion"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Term"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"searchQuery"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirect"},arguments:[],directives:[]}]}}],loc:{start:0,end:61}};n.loc.source={body:"fragment TermSuggestion on Term{id name searchQuery redirect}",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})}
1(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.TermSuggestion=function(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=i[n]||new Set,o=new Set,s=new Set;for(r.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach(function(e){s.add(e)}))})}return o.forEach(function(n){var i=t(e,n);i&&a.definitions.push(i)}),a}(n,"TermSuggestion")},71501:(e,n,i)=>{"use strict";i.d(n,{Lw:()=>ec,CQ:()=>el});var t=i(74419),a=i(82917),r=i(92298),o=i(81107),s=i(81159),l=i(85162),d=i(38337),c=i(54424),u=i(98055),m=i(59071),f=i(32497),g=i(34977),h=i(32406),p=i(41474),v=i(95124);function k(){let e=document.querySelector("[data-scroll-header]");e&&e.getBoundingClientRect().top>0&&e.scrollIntoView()}var S=i(77064),b=i(85516),y=i(43193);let w=(0,s.YK)({popularSearchTerms:{id:"suggestion.popularSearchTerms",defaultMessage:"Popular Search Terms"}});var x=i(38631),N=i(848);let F=d.Ay.a.withConfig({componentId:"sc-e5f7a524-0"})(["display:flex;justify-content:space-between;cursor:pointer;&.focus,&:focus{background:",";}@media (hover:hover) and (pointer:fine){&:hover{background:",";}}"],({theme:e})=>e.colors.grayLighter,({theme:e})=>e.colors.grayLighter),E=d.Ay.div.withConfig({componentId:"sc-e5f7a524-1"})(["padding:",";padding-left:",";color:",";font-weight:700;"],({theme:e})=>e.space.xsmall,({theme:e})=>e.space.medium,({theme:e})=>e.colors.grayDarker),C=d.Ay.span.withConfig({componentId:"sc-e5f7a524-2"})(["font-weight:normal;"]),T=d.Ay.div.withConfig({componentId:"sc-e5f7a524-3"})(["padding:",";padding-right:",";color:",";text-align:right;"],({theme:e})=>e.space.xsmall,({theme:e})=>e.space.medium,({theme:e})=>e.colors.grayDark),I=e=>{let n,i,r,s=(0,a.c)(8),{content:l,highlight:d,frontIcon:c}=e;return s[0]!==c?(n=c&&(0,t.jsx)(x.A,{icon:c,mr:"small",boxSize:"1em",color:"grayDark","data-testid":"search-suggestion-icon","aria-hidden":"true"}),s[0]=c,s[1]=n):n=s[1],s[2]!==l||s[3]!==d?(i=null!==d?""===d?(0,t.jsx)(C,{children:l}):l.toLocaleLowerCase().split(d.toLocaleLowerCase()).map((e,n,i)=>(0,t.jsxs)(o.Fragment,{children:[(0,t.jsx)(C,{children:e}),n!==i.length-1&&d.toLocaleLowerCase()]},n)):l,s[2]=l,s[3]=d,s[4]=i):i=s[4],s[5]!==n||s[6]!==i?(r=(0,t.jsxs)(E,{children:[n,i]}),s[5]=n,s[6]=i,s[7]=r):r=s[7],r},L=e=>{let n,i,r,o,s,l,d,c,u,m,f,g=(0,a.c)(24);if(g[0]!==e){let t,{focus:a,onClick:u,suggestion:m,type:f,frontIcon:h,highlight:p,...v}=e;i=a,l=m,c=f,r=h,s=p,g[9]!==u?(t=e=>{e.preventDefault?.(),u()},g[9]=u,g[10]=t):t=g[10],o=t,n=F,d=(0,N.Sz)(v),g[0]=e,g[1]=n,g[2]=i,g[3]=r,g[4]=o,g[5]=s,g[6]=l,g[7]=d,g[8]=c}else n=g[1],i=g[2],r=g[3],o=g[4],s=g[5],l=g[6],d=g[7],c=g[8];let h=i?"focus":void 0;return g[11]!==r||g[12]!==s||g[13]!==l?(u=(0,t.jsx)(I,{highlight:s,content:l,frontIcon:r}),g[11]=r,g[12]=s,g[13]=l,g[14]=u):u=g[14],g[15]!==c?(m=c&&(0,t.jsx)(T,{children:c}),g[15]=c,g[16]=m):m=g[16],g[17]!==n||g[18]!==o||g[19]!==d||g[20]!==h||g[21]!==u||g[22]!==m?(f=(0,t.jsxs)(n,{...d,className:h,role:"button",tabIndex:0,onClick:o,children:[u,m]}),g[17]=n,g[18]=o,g[19]=d,g[20]=h,g[21]=u,g[22]=m,g[23]=f):f=g[23],f},D=e=>{let n,i,r=(0,a.c)(15),{terms:o,getItemProps:s,highlightedIndex:l,onClick:d,frontIcon:c,searchTerm:u}=e;if(r[0]!==c||r[1]!==s||r[2]!==l||r[3]!==d||r[4]!==u||r[5]!==o){let e;r[7]!==c||r[8]!==s||r[9]!==l||r[10]!==d||r[11]!==u?(e=(e,n)=>(0,t.jsx)(L,{...s({index:n,item:e}),"data-testid":"suggestion-term",focus:l===n,onClick:()=>d({suggestion:e}),suggestion:e.name,highlight:u,frontIcon:c},e.id),r[7]=c,r[8]=s,r[9]=l,r[10]=d,r[11]=u,r[12]=e):e=r[12],n=o.map(e),r[0]=c,r[1]=s,r[2]=l,r[3]=d,r[4]=u,r[5]=o,r[6]=n}else n=r[6];return r[13]!==n?(i=(0,t.jsx)(t.Fragment,{children:n}),r[13]=n,r[14]=i):i=r[14],i},j=(0,y.I4)("div",{base:{position:"absolute",top:{base:"100%",sm:"2px"},left:"-2px",width:"calc(100% + 4px)",height:{base:"calc(100dvh - 100%)",sm:"auto"},maxHeight:{sm:"calc(100dvh - {sizes.headerHeightBase} - {sizes.headerSearchHeightMobile})"},overflowX:"hidden",overflowY:"auto",backgroundColor:"background",borderBottomRadius:{base:"none",sm:"searchFieldWithSuggestions"}
1,border:"2px solid",borderColor:"grayPlaceholder",borderTop:"none",sm:{zIndex:-1}}}),R=(0,y.I4)("div",{base:{paddingTop:"small",paddingRight:"small",paddingBottom:"x2small",paddingLeft:"medium",color:"grayPlaceholder",fontSize:"xsmall",textTransform:"uppercase"}}),V=e=>{let n,i,r,s,l,d=(0,a.c)(17),{getItemProps:c,highlightedIndex:u,onSubmit:m,suggestion:f,isVisible:g,searchTerm:p}=e,y=(0,h.k)(),{formatMessage:x}=(0,b.tz)(),N=(void 0===g||g)&&(y===v.LM.Smartphone||y===v.LM.Landscape);if(d[0]!==N?(n=()=>{N&&k()},i=[N],d[0]=N,d[1]=n,d[2]=i):(n=d[1],i=d[2]),(0,o.useLayoutEffect)(n,i),(0,S.N)(N),!f)return null;let F=f.suggestions,E=!!F?.length,C=c||A,T=""===f.id;return d[3]!==x||d[4]!==T?(r=T?(0,t.jsx)(R,{"data-testid":"presuggestions-hint",children:x(w.popularSearchTerms)}):null,d[3]=x,d[4]=T,d[5]=r):r=d[5],d[6]!==E||d[7]!==u||d[8]!==T||d[9]!==C||d[10]!==m||d[11]!==p||d[12]!==F?(s=E&&(0,t.jsx)(D,{searchTerm:p,terms:F,getItemProps:C,onClick:m,highlightedIndex:u,frontIcon:T?"trending":"search"}),d[6]=E,d[7]=u,d[8]=T,d[9]=C,d[10]=m,d[11]=p,d[12]=F,d[13]=s):s=d[13],d[14]!==r||d[15]!==s?(l=(0,t.jsxs)(j,{"data-testid":"suggestion",resetLayoutColor:!0,children:[r,s]}),d[14]=r,d[15]=s,d[16]=l):l=d[16],l};function A(){return{}}let O=(0,s.YK)({ariaLabelInput:{id:"formControls.searchForm.input.ariaLabel",defaultMessage:"Search input"},ariaLabelSearchButton:{id:"formControls.searchForm.searchButton.ariaLabel",defaultMessage:"Search button"},ariaLabelSuggestions:{id:"formControls.searchForm.suggestions.ariaLabel",defaultMessage:"Suggestions"},search:{id:"formControls.searchForm.input.name",defaultMessage:"Search"},searchNoResults:{id:"formControls.searchForm.noResults",defaultMessage:"No results are available."},searchResults:{id:"formControls.searchForm.results",defaultMessage:"{count} results are available."}}),P=(0,d.Ay)(m.A).withConfig({componentId:"sc-f467ec07-0"})(["position:static;@media (","){position:relative;}",""],p.$_.landscape,c.xe),_=d.Ay.div.withConfig({componentId:"sc-f467ec07-1"})(["position:static;visibility:",";opacity:",";transition:",";z-index:1;top:-2px;@media (","){position:relative;}"],e=>e.$isVisible?"visible":"hidden",e=>+!!e.$isVisible,e=>`visibility ${e.theme.transitions.short}, opacity ${e.theme.transitions.short}`,p.$_.landscape),z=["m","margin","mt","marginTop","mb","marginBottom","ml","marginLeft","mr","marginRight","my","marginY","mx","marginX"],q=d.Ay.span.withConfig({componentId:"sc-f467ec07-2"})(["display:inline-flex;gap:",";justify-content:center;align-items:center;font-size:",";color:",";font-family:",";font-size:",";font-style:normal;font-weight:700;line-height:160%;"],e=>e.theme.space.xsmall,e=>e.theme.fontSizes.small,e=>e.theme.colors.primary,e=>e.theme.fonts.primary,e=>e.theme.fontSizes.small);function B(e){return e?"string"==typeof e?e:e.name:""}let M=(0,d.DU)(["#search-input-button{background-color:inherit;&:hover{background-color:inherit;}}"]);function $(e){let n,i,r,d,c,m,p,k,S,b,y,w,x,N,F,E,C,T,I,L,D,j,R,A,$,H,W,Y,G=(0,a.c)(65);if(G[0]!==e){let{id:t,formRef:a,inputRef:o,navToolsRef:s,loading:l,onClear:u,onSubmit:f,placeholder:g,suggestion:h,isOpen:v,close:I,addHeight:L,hide:D,alwaysExpanded:j,onSuggestionsOpenChange:R,searchTerm:V,setSearchTerm:A,fixedRoundedBorder:O,...P}=e;c=t,r=a,m=o,S=s,k=l,b=u,y=f,x=g,C=h,p=v,i=I,d=D,n=j,w=R,F=V,E=A,T=O,N=P,G[0]=e,G[1]=n,G[2]=i,G[3]=r,G[4]=d,G[5]=c,G[6]=m,G[7]=p,G[8]=k,G[9]=S,G[10]=b,G[11]=y,G[12]=w,G[13]=x,G[14]=N,G[15]=F,G[16]=E,G[17]=C,G[18]=T}else n=G[1],i=G[2],r=G[3],d=G[4],c=G[5],m=G[6],p=G[7],k=G[8],S=G[9],b=G[10],y=G[11],w=G[12],x=G[13],N=G[14],F=G[15],E=G[16],C=G[17],T=G[18];let K=void 0!==T&&T,[X,U]=(0,o.useState)(!1),Z=(0,h.k)()===v.LM.Smartphone,J=n||Z||X||F;G[19]!==E?(I=e=>{E(e.target.value)},G[19]=E,G[20]=I):I=G[20];let ee=I;if(G[21]!==N){let e={},n={};for(let i in N)i.startsWith("data-")||z.includes(i)?e[i]=N[i]:n[i]=N[i];L={formProps:e,inputProps:n},G[21]=N,G[22]=L}else L=G[22];let{formProps:en,inputProps:ei}=L;G[23]!==y?(D=e=>{if(e){if("string"==typeof e)return void y();y({suggestion:e})}},G[23]=y,G[24]=D):D=G[24];let et=D;G[25]!==i||G[26]!==m?(j=e=>{let n=document.hasFocus()&&m?.current===document.activeElement;e.type!==l.Ay.stateChangeTypes.keyDownEscape&&(e.type!==l.Ay.stateChangeTypes.mouseUp&&e.type!==l.Ay.stateChangeTypes.touchEnd&&(e.type!==l.Ay.stateChangeTypes.blurInput||(0,v.Fr)())||n)||i()},G[25]=i,G[26]=m,G[27]=j):j=G[27];let ea=j;G[28]!==S?(R=e=>{e.currentTarget?.contains(e.relatedTarget)||(0,u.g)(S?.current)},G[28]=S,G[29]=R):R=G[29];let er=R,{formatMessage:eo}=(0,s.tz)(),es=C?.suggestions?.length??0,el=!!(p&&es>0);G[30]!==el||G[31]!==w?(A=()=>{w?.(el)}
1,$=[el,w],G[30]=el,G[31]=w,G[32]=A,G[33]=$):(A=G[32],$=G[33]),(0,o.useEffect)(A,$);let ed=`${c}-input`;return G[34]!==eo||G[35]!==p||G[36]!==F?(H=e=>{let{resultCount:n,previousResultCount:i}=e;return p&&F?n?n!==i?eo(O.searchResults,{count:n}):"":eo(O.searchNoResults):""},G[34]=eo,G[35]=p,G[36]=F,G[37]=H):H=G[37],G[38]!==K||G[39]!==en||G[40]!==r||G[41]!==eo||G[42]!==er||G[43]!==d||G[44]!==ei||G[45]!==m||G[46]!==J||G[47]!==el||G[48]!==k||G[49]!==ee||G[50]!==b||G[51]!==y||G[52]!==x||G[53]!==F||G[54]!==C?(W=e=>{let n=e.getInputProps();return(0,t.jsxs)(P,{...en,ref:r,onBlur:er,onSubmit:e=>{e.preventDefault(),y()},children:[(0,t.jsxs)("div",{...e.getRootProps({},{suppressRefError:!0}),...e.getMenuProps({"aria-label":eo(O.ariaLabelInput),role:"combobox"}),children:[(0,t.jsx)(M,{}),(0,t.jsx)(f.k,{...ei,...n,buttonClick:Q,buttonState:k?g.w.Loading:g.w.Idle,inputRef:m,onFocus:()=>{U(!0)},onBlurCapture:e=>{r?.current?.contains(e.relatedTarget)||U(!1)},onChange:ee,onClear:b,placeholder:x,inputWrapperConfig:{width:J?"100%":"80%",borderRadius:el&&!K?"searchFieldWithSuggestions":"round",borderBottomLeftRadius:el&&!K?"none":"round",borderBottomRightRadius:el&&!K?"none":"round",paddingX:"small"},buttonContainerConfig:{display:J?"inline-flex":"none"},label:eo(O.ariaLabelInput),isLabelHidden:!0,buttonConfig:{id:"search-input-button","aria-label":eo(O.ariaLabelSearchButton),onBlur:d,type:"submit"},frontIcon:"search",renderButtonContent:()=>(0,t.jsx)(q,{children:eo(O.search)}),value:F,"data-trackid":"searchField",type:"search",enterKeyHint:"search"})]}),(0,t.jsx)(_,{...e.getMenuProps({"aria-label":eo(O.ariaLabelSuggestions)}),$isVisible:el,onBlurCapture:e=>{r?.current?.contains(e.relatedTarget)||n?.onBlur?.(e)},children:(0,t.jsx)(V,{getItemProps:e.getItemProps,highlightedIndex:e.highlightedIndex,onSubmit:y,suggestion:C,isVisible:el,searchTerm:F})})]})},G[38]=K,G[39]=en,G[40]=r,G[41]=eo,G[42]=er,G[43]=d,G[44]=ei,G[45]=m,G[46]=J,G[47]=el,G[48]=k,G[49]=ee,G[50]=b,G[51]=y,G[52]=x,G[53]=F,G[54]=C,G[55]=W):W=G[55],G[56]!==c||G[57]!==p||G[58]!==es||G[59]!==et||G[60]!==ea||G[61]!==H||G[62]!==W||G[63]!==ed?(Y=(0,t.jsx)(l.Ay,{id:c,inputId:ed,onSelect:et,itemToString:B,isOpen:p,itemCount:es,onStateChange:ea,getA11yStatusMessage:H,children:W}),G[56]=c,G[57]=p,G[58]=es,G[59]=et,G[60]=ea,G[61]=H,G[62]=W,G[63]=ed,G[64]=Y):Y=G[64],Y}function Q(){}var H=i(96163),W=i(91994),Y=i(77557),G=i(82710),K=i.n(G),X=i(28402),U=i.n(X),Z=i(34520),J=i(30760),ee=i(59755),en=i(10335),ei=i(78265),et=i.n(ei),ea=i(21905);let er=(e,n,i,t)=>{let{productId:a,catalogId:r,category:o,redirect:s}=i||{productId:null,catalogId:null,category:null,redirect:null},l=(0,en.Fj)({catalogId:r,category:o,productId:a,redirect:s,searchOrigin:J.L.SearchField,suggestion:t,term:n,optimizedTerm:i?.term});e?.push(l)};var eo=i(73803);let es=0,el=e=>{let n,i,t,r,s,l,c,u,m=(0,a.c)(19),f=void 0===e?50:e,[g,h]=(0,o.useState)(!1),p=(0,o.useRef)(null),v=(0,o.useRef)(null),S=(0,d.DP)();m[0]!==f||m[1]!==S||m[2]!==g?(n=()=>{requestAnimationFrame(()=>{(function(e,n,i,t){let a=(0,eo.T5)();if(!e||(0,eo.td)(n)||a<0||window.innerWidth>=parseInt(i.breakpoints[0].replace("px",""),10))return!1;let r=a-es;return r>=t||Math.abs(r)>=t})(g,p,S,f)&&h(!1)})},m[0]=f,m[1]=S,m[2]=g,m[3]=n):n=m[3];let b=n;m[4]!==b?(i=()=>{document.removeEventListener("scroll",b),p.current&&p.current.blur()},m[4]=b,m[5]=i):i=m[5];let y=i;m[6]!==b?(t=()=>{k(),es=(0,eo.T5)(),p.current&&p.current.focus(),document.addEventListener("scroll",b)},m[6]=b,m[7]=t):t=m[7];let w=t;m[8]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{p.current&&p.current.blur(),h(!1);let e=v.current?.querySelector("#mobileSearchHeaderIcon");e&&e.focus()},m[8]=r):r=m[8];let x=r;return m[9]!==w||m[10]!==y||m[11]!==g?(s=()=>(g?w():y(),()=>y()),l=[w,y,g],m[9]=w,m[10]=y,m[11]=g,m[12]=s,m[13]=l):(s=m[12],l=m[13]),(0,o.useEffect)(s,l),m[14]!==g?(c=()=>h(!g),m[14]=g,m[15]=c):c=m[15],m[16]!==c||m[17]!==g?(u={hide:x,mobileRef:p,navToolsRef:v,visible:g,toggleVisibility:c},m[16]=c,m[17]=g,m[18]=u):u=m[18],u},ed=(0,s.YK)({placeholder:{id:"search.field.placeholder",defaultMessage:"Search"}}),ec=e=>{let n,i,s,l,d,c,u,m,f,g,h,p,v,k,S,y,w,x=(0,a.c)(43);x[0]!==e?({onSubmit:l,inputRef:i,navToolsRef:s,withSuggestion:u,hide:n,alwaysExpanded:c,...d}=e,x[0]=e,x[1]=n,x[2]=i,x[3]=s,x[4]=l,x[5]=d,x[6]=c,x[7]=u):(n=x[1],i=x[2],s=x[3],l=x[4],d=x[5],c=x[6],u=x[7]);let N=void 0!==c&&c,F=(0,r.useSearchParams)();x[8]!==F?(m=F?.get("searchTerm")??"",x[8]=F,x[9]=m):m=x[9];let E=m,C=(0,o.useRef)(null),T=(0,o.useRef)(null),[I,L]=(0,o.useState)(E);x[10]!==E?(f=()=>{L(E)},g=[E],x[10]=E,x[11]=f,x[12]=g):(f=x[11],g=x[12]),(0,o.useEffect)(f,g);let{suggestionsAreOpen:D,openSuggestions:j,closeSuggestions:R}=(()=>{let e,n,i,t=(0,a.c)(4),[r,s]=(0,o.useState)(!1);t[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>s(!0),t[0]=e):e=t[0];let l=e;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>s(!1),t[1]=n):n=t[1];let d=n;return t[2]!==r?(i={suggestionsAreOpen:r,openSuggestions:l,closeSuggestions:d},t[2]=r,t[3]=i):i=t[3],i})(),{formatMessage:V}=(0,b.tz)(),{loading:A,onSearch:O}=((e,n)=>{let[i,t]=(0,o.useState)(!1),{trackGkAir:a}=(0,ea.dl)(),s=(0,Y.useApolloClient)("api"),l=(0,r.useRouter)(),d=(0,o.useCallback)(async(e,n)=>{try{let{data:i}=await s.query({query:et(),variables:{input:{term:e,locale:"de-DE",searchQuery:n}},fetchPolicy:"no-cache"});if(!i?.searchField)return{term:e};return i.searchField}catch(n){return Z.VE.info({message:"Failed to load search result, navigate to search result page and try again",args:{term:e},error:n}),{term:e}}},[s]),c=(0,o.useCallback)(async(e,n,i=!0)=>
1{if(a(e),n&&("product"in n||"category"in n||"redirect"in n&&n.redirect))await (0,ee.y)(100),er(l,e,null,n);else{let t=await d(n?.name||e,n&&"searchQuery"in n&&n?.searchQuery?n?.searchQuery:void 0);i&&er(l,e,t,n)}},[d,a,l]),u=(0,o.useCallback)(async({navigate:a,suggestion:r,searchTermForTracking:o}={})=>{let s=o?.trim()||e.trim();(r&&""===s||""!==s)&&!i&&(t(!0),await c(s,r,a),"function"==typeof n&&n(),t(!1))},[e,c,n,i]);return{loading:i,onSearch:u}})(I,l);x[13]!==i?(h=()=>{L(""),i?.current&&i.current.focus(),C?.current&&C.current.focus()},x[13]=i,x[14]=h):h=x[14];let P=h;x[15]!==I||x[16]!==D||x[17]!==u?(p={enabled:u,isFocused:D,searchTerm:I},x[15]=I,x[16]=D,x[17]=u,x[18]=p):p=x[18];let{suggestion:_}=(e=>{let n,i,t,r,o,s,l,d,c,u,m,f=(0,a.c)(29),{enabled:g,isFocused:h,searchTerm:p}=e;f[0]!==g||f[1]!==h||f[2]!==p?(n=function({term:e,isFocused:n,enabled:i}){return i?e.length<1&&n?"preSuggestions":e.length>=1&&isNaN(Number(e.replace(/\s/g,"").replace(/-/g,"").replace(/\./g,"")))?"smartSuggestions":"none":"none"}({enabled:g,term:p,isFocused:h}),f[0]=g,f[1]=h,f[2]=p,f[3]=n):n=f[3];let v=n,k=(0,Y.useApolloClient)("api"),S="smartSuggestions"!==v;f[4]!==p?(i={term:p},f[4]=p,f[5]=i):i=f[5],f[6]!==k||f[7]!==S||f[8]!==i?(t={client:k,skip:S,variables:i},f[6]=k,f[7]=S,f[8]=i,f[9]=t):t=f[9];let b=(0,H.I)(U(),t),y="preSuggestions"!==v;f[10]===Symbol.for("react.memo_cache_sentinel")?(r={context:window.location.href},f[10]=r):r=f[10],f[11]!==k||f[12]!==y?(o={client:k,skip:y,variables:r,fetchPolicy:"network-only"},f[11]=k,f[12]=y,f[13]=o):o=f[13];let w=(0,H.I)(K(),o);f[14]===Symbol.for("react.memo_cache_sentinel")?(s={data:null,error:null,loading:!1},f[14]=s):s=f[14];let x=b.data?.smartSuggestion;f[15]!==b.error||f[16]!==b.loading||f[17]!==x?(l={data:x,error:b.error,loading:b.loading},f[15]=b.error,f[16]=b.loading,f[17]=x,f[18]=l):l=f[18];let N=w.data?.preSuggestion,F=!1!==w.loading&&w.loading&&!w.data?.preSuggestion;f[19]!==w.error||f[20]!==N||f[21]!==F?(d={data:N,error:w.error,loading:F},f[19]=w.error,f[20]=N,f[21]=F,f[22]=d):d=f[22],f[23]!==l||f[24]!==d?(c={none:s,smartSuggestions:l,preSuggestions:d},f[23]=l,f[24]=d,f[25]=c):c=f[25];let{error:E,loading:C,data:T}=c[v],I=(0,W.Z)(T,C);e:{if(E||"none"===v){u=null;break e}if(C&&I){u=I;break e}u=T||null}let L=u;return f[26]!==C||f[27]!==L?(m={suggestion:L,loading:C},f[26]=C,f[27]=L,f[28]=m):m=f[28],m})(p);x[19]!==V?(v=V(ed.placeholder),x[19]=V,x[20]=v):v=x[20];let z=v;x[21]!==j||x[22]!==D?(k=e=>{D||j()},x[21]=j,x[22]=D,x[23]=k):k=x[23];let q=k;x[24]!==i||x[25]!==q||x[26]!==j?(y=()=>{let e=i?.current||C?.current;return e?.addEventListener("focus",j),e?.addEventListener("keydown",q),e?.addEventListener("click",q),()=>{e?.removeEventListener("focus",j),e?.removeEventListener("keydown",q),e?.removeEventListener("click",q)}},S=[i,j,q],x[24]=i,x[25]=q,x[26]=j,x[27]=S,x[28]=y):(S=x[27],y=x[28]),(0,o.useEffect)(y,S);let B=i||C;return x[29]!==N||x[30]!==R||x[31]!==n||x[32]!==A||x[33]!==s||x[34]!==P||x[35]!==O||x[36]!==z||x[37]!==d||x[38]!==I||x[39]!==_||x[40]!==D||x[41]!==B?(w=(0,t.jsx)($,{...d,formRef:T,inputRef:B,navToolsRef:s,loading:A,onClear:P,onSubmit:O,placeholder:z,suggestion:_,testIdClear:"search-clear",isOpen:D,close:R,hide:n,alwaysExpanded:N,searchTerm:I,setSearchTerm:L}),x[29]=N,x[30]=R,x[31]=n,x[32]=A,x[33]=s,x[34]=P,x[35]=O,x[36]=z,x[37]=d,x[38]=I,x[39]=_,x[40]=D,x[41]=B,x[42]=w):w=x[42],w}},78265:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"searchField"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchFieldInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchField"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"catalogId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"activeFilters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalItemsCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"term"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirect"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:160}};n.loc.source={body:"query searchField($input:SearchFieldInput!){searchField(input:$input){productId catalogId category{path activeFilters{id values}}totalItemsCount term redirect}}",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);
1else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})}(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.searchField=function(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=i[n]||new Set,o=new Set,s=new Set;for(r.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach(function(e){s.add(e)}))})}return o.forEach(function(n){var i=t(e,n);i&&a.definitions.push(i)}),a}(n,"searchField")},82710:(e,n,i)=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"preSuggestion"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"context"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"preSuggestion"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"context"},value:{kind:"Variable",name:{kind:"Name",value:"context"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"suggestions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TermSuggestion"},directives:[]}]}}]}}]}}],loc:{start:0,end:144}};t.loc.source={body:'#import "./TermSuggestion.gql"\nquery preSuggestion($context:String!){preSuggestion(input:{context:$context}){id suggestions{...TermSuggestion}}}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};t.definitions=t.definitions.concat(i(29171).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}));var r={};function o(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}t.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})}(e,n),r[e.name.value]=n}}),e.exports=t,e.exports.preSuggestion=function(e,n){var i={kind:e.kind,definitions:[o(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var t=r[n]||new Set,a=new Set,s=new Set;for(t.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach(function(e){s.add(e)}))})}return a.forEach(function(n){var t=o(e,n);t&&i.definitions.push(t)}),i}(t,"preSuggestion")}}]);

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.