1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a4709d36-a724-40cb-8cad-b546d185d2b3",e._sentryDebugIdIdentifier="sentry-dbid-a4709d36-a724-40cb-8cad-b546d185d2b3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[671],{3073:()=>{},7214:()=>{},8339:()=>{},10946:(e,t,l)=>{"use strict";l.d(t,{ProductGrid:()=>p});var a=l(95155);l(73575);var n=l(27122),r=l(11123),i=l(20117),s=l(12115),o=l(97179),c=l(27855),d=l(89041),u=l(95604),h=l(71919),x=l(21128),m=l(25946),f=l(11260);function p(e){let{headline:t,text:l,parameterKey:p,parameterValue:v,showMore:j,showMoreText:b,initialCount:g,anchorId:y,trackingName:w}=e,A=(0,u.useTranslations)(),[_,E]=(0,s.useState)(1),[S,k]=(0,s.useState)([]),[C,N]=(0,s.useState)(0),[T,I]=(0,s.useState)(!0),[L,P]=(0,s.useState)(!1),M=C-S.length,O=1===_?g:Math.min(M,g),R=C>0?S.length/C*100:0,H=(0,s.useCallback)(async()=>{I(!0);try{if(!p||!v)throw Error("URL or some param is invalid to render ProductGrid Component");let e=await (0,i.xq)("/api/search/custom",{method:"GET",query:{page:_,hitsPerPage:g,customKey:p,customValue:v}});if(!e.hits.length)return;let t=(0,m.tX)(e.hits);k(e=>1===_?t:[...e,...t]),N(e.totalHits)}catch(e){n.Cp(e),P(!0),(0,h.z3)("ProductGrid component render Error: ",e)}finally{I(!1)}},[g,_,p,v]);return((0,s.useEffect)(()=>{let e=window.setTimeout(H,1);return()=>window.clearTimeout(e)},[H]),L)?null:(0,a.jsx)(x.p,{children:(0,a.jsxs)("div",{className:"product-grid",id:y,children:[(t||l)&&(0,a.jsxs)("div",{className:"product-grid__header",children:[t&&(0,a.jsx)(r.A,{className:"product-grid__header--headline",variant:"h2",children:t}),l&&(0,a.jsx)(r.A,{className:"product-grid__header--text",variant:"sm",children:l})]}),(0,a.jsxs)(o.default,{gap:{xs:"16px",lg:"24px"},component:"ul",className:"product-grid__container",container:!0,display:"grid",children:[S.map(e=>(0,a.jsx)(o.default,{className:"product-grid__list-item",component:"li",children:(0,a.jsx)(f.A,{title:e.title,image:e.image,isDeliverable:e.isDeliverable,url:e.url,priceOriginal:e.priceOriginal,salePrice:e.salePrice,variants:e.variants,shipToShop:e.shipToShop,availabilityMarketOnline:e.availabilityMarketOnline})},e.sapId)),T&&Array.from({length:O}).map((e,t)=>(0,a.jsx)(o.default,{className:"product-grid__list-item",component:"li",children:(0,a.jsx)(f.A,{loading:T})},t))]}),j&&(0,a.jsxs)("div",{className:"product-grid__controls",children:[(0,a.jsxs)("div",{className:"product-grid__controls--progress-bar",children:[(0,a.jsx)(r.A,{variant:"xs",children:A("productsList.progressLabel",{loadedCount:S.length,totalCount:C})}),(0,a.jsx)(d.A,{"aria-valuemin":0,"aria-label":"Products loading progress","aria-valuenow":S.length,"aria-valuemax":C,color:"primary",variant:"determinate",value:R})]}),R<100&&(0,a.jsx)(c.default,{onClick:()=>E(_+1),className:"product-grid__controls--button",variant:"outlined",children:b||A("productsList.showMore.defaultText")})]})]})})}},12525:()=>{},12640:()=>{},15659:()=>{},20662:(e,t,l)=>{"use strict";l.d(t,{CategoryHeader:()=>c});var a=l(95155),n=l(95604),r=l(25946),i=l(11123),s=l(68907),o=l(21128);function c(e){var t,l;let{categoryName:c}=e,{categoryPath:d,isCategorySearch:u,searchResult:h}=(0,r.$A)(),x=(0,n.useTranslations)(),m=d.split("/"),f=function(e,t,l){var a;let n=e.find(e=>"multiplecategory"===e.associatedFieldName),r=(null!=(a=null==n?void 0:n.selectedElements)?a:[]).sort((e,t)=>e.clusterLevel-t.clusterLevel).map(e=>{var t;return null!=(t=e.text)?t:""}),i=[],s="/category";return t.forEach((e,t)=>{var l;s+="/".concat(e);let a=null!=(l=r[t])?l:e.replaceAll("_","-").replaceAll("-und-"," & ").replaceAll("--",", ").replaceAll("-"," ").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");i.push({label:a,link:s})}),[{label:l,link:"/"},...i]}(null!=(l=null==h?void 0:h.facets)?l:[],m,x("breadcrumb.home")),p=null==(t=f.at(-1))?void 0:t.label;return u?(0,a.jsxs)(o.p,{as:"div",children:[(0,a.jsx)(s.default,{breadcrumbPath:f,showBackButton:m.length>1}),(0,a.jsxs)(i.A,{variant:"h1",children:[c||p||"",(null==h?void 0:h.totalHits)!=null&&" (".concat(x("search.stats.text",{hits:h.totalHits}),")")]})]}):null}},22555:()=>{},24769:()=>{},26360:(e,t,l)=>{"use strict";l.d(t,{EditorBarExtension:()=>s});
1var a=l(95155),n=l(2821),r=l(12115),i=l(12562);function s(e){let{children:t}=e,{extensionRef:l,state:s}=function(){let e=(0,r.useRef)(null),[t,l]=(0,r.useState)(i.uH.HIDDEN);return(0,r.useEffect)(()=>{let t=e=>(null==e?void 0:e.classList.contains("mgnlEditorBar"))||!1,a=l=>{var a,n,r,i,s;let o="component"===l?null==(n=e.current)||null==(a=n.previousElementSibling)?void 0:a.previousElementSibling:null==(s=e.current)||null==(i=s.parentElement)||null==(r=i.previousElementSibling)?void 0:r.previousElementSibling;return t(o)?o:null},n=()=>{let e=a("component"),t=a("area");return(null==e?void 0:e.classList.contains("moveSource"))?l(i.uH.MOVE_SOURCE):(null==e?void 0:e.classList.contains("moveTarget"))?l(i.uH.MOVE_TARGET):(null==e?void 0:e.classList.contains("focus"))?l(i.uH.FOCUSED):(null==t?void 0:t.classList.contains("focus"))?l(i.uH.VISIBLE):(null==t?void 0:t.classList.contains("childFocus"))?l(i.uH.UNFOCUSED):l(i.uH.HIDDEN)},r=new MutationObserver(e=>{e.some(e=>e.target instanceof Element&&t(e.target))&&Promise.resolve().then(n)});return r.observe(document.body,{attributeFilter:["class"],subtree:!0}),n(),()=>r.disconnect()},[]),{extensionRef:e,state:t}}();return(0,a.jsx)("div",{ref:l,className:"editor-bar",children:"hidden"!==s&&(0,a.jsx)("div",{className:(0,n.A)("editor-bar__extension","editor-bar__extension--".concat(s)),children:t})})}},30201:()=>{},30840:()=>{},42556:()=>{},44974:()=>{},51677:()=>{},55183:()=>{},57546:()=>{},62520:(e,t,l)=>{"use strict";l.d(t,{BiohortConfigurator:()=>S});var a=l(95155),n=l(27122),r=l(96869),i=l(20063),s=l(64196),o=l(12115),c=l(79796),d=l(71919),u=l(25946),h=l(95604),x=l(97179),m=l(43791),f=l(27855),p=l(24288),v=l(4615),j=l(75468),b=l(46926),g=l(11123),y=l(56911),w=l(29641);function A(e){let{busy:t,partsList:l,expectedPartCount:n,hasError:i,isNoResultsError:s,savedConfigUrl:c,onSaveConfig:u}=e,{addBulkItems:A}=(0,j.B)(),[_,E]=(0,o.useState)(!1),[S,k]=(0,o.useState)(!1),[C,N]=(0,o.useState)(!1),T=(0,h.useTranslations)();(0,o.useEffect)(()=>{N(!1)},[c]);let I=(0,o.useCallback)(()=>{c&&!C&&(navigator.clipboard.writeText(c),N(!0))},[c,C]),L=(0,o.useMemo)(()=>l.reduce((e,t)=>e+t.price*t.biohortPart.qty,0),[l]),P=(0,o.useCallback)(async()=>{E(!0),k(!1);let e=(await Promise.all(l.map(async e=>{let t=await e.sprykerOffer;return t?{sku:e.sku,offer:t,quantity:e.biohortPart.qty}:null}))).filter(Boolean);await A(e)&&((0,d.z3)("Could not bulk add products to cart"),k(!0)),E(!1)},[A,l]);return(0,a.jsxs)(r.default,{direction:"column",gap:2,className:"biohort-parts-list",children:[!s&&(0,a.jsx)(g.A,{variant:"sm",isBold:!0,as:"h3",children:T("biohort.partsList")}),(0,a.jsxs)(x.default,{container:!0,spacing:3,children:[!s&&(0,a.jsx)(x.default,{size:{xs:12,md:8},children:(0,a.jsx)("div",{className:"biohort-parts-list__table-wrapper",children:(0,a.jsxs)("table",{className:"biohort-parts-list__table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"biohort-parts-list__table-head",children:[(0,a.jsx)("th",{children:T("biohort.pos")}),(0,a.jsx)("th",{children:T("biohort.title")}),(0,a.jsx)("th",{children:T("biohort.sku")}),(0,a.jsx)("th",{className:"biohort-parts-list__ean-col",children:T("biohort.ean")}),(0,a.jsx)("th",{children:T("biohort.quantity")}),(0,a.jsx)("th",{children:T("biohort.price")})]})}),(0,a.jsxs)("tbody",{children:[t&&Array.from({length:n||3},(e,t)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)(m.A,{width:20})}),(0,a.jsxs)("td",{children:[(0,a.jsx)(m.A,{width:"80%"}),(0,a.jsx)(m.A,{width:"60%"})]}),(0,a.jsx)("td",{children:(0,a.jsx)(m.A,{width:80})}),(0,a.jsx)("td",{className:"biohort-parts-list__ean-col",children:(0,a.jsx)(m.A,{width:100})}),(0,a.jsx)("td",{children:(0,a.jsx)(m.A,{width:40})}),(0,a.jsx)("td",{children:(0,a.jsx)(m.A,{width:60})})]},"skeleton-".concat(t))),!t&&!i&&l.map((e,t)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:t+1}),(0,a.jsxs)("td",{children:[(0,a.jsx)("div",{children:e.sku}),(0,a.jsx)("div",{children:e.factFinderProduct.title})]}),(0,a.jsx)("td",{children:e.biohortPart.sku}),(0,a.jsx)("td",{className:"biohort-parts-list__ean-col",children:e.biohortPart.ean}),(0,a.jsx)("td",{children:T("biohort.quantityN",{qty:e.biohortPart.qty})}),(0,a.jsx)("td",{children:(0,a.jsx)(b.A,{price:e.price,variant:"xs"})})]},e.biohortPart.ean))]})]})})}),!i&&(0,a.jsx)(x.default,{size:{xs:12,md:4},children:(0,a.jsxs)(r.default,{spacing:2,className:"biohort-parts-list__summary",children:[(0,a.jsxs)("div",{className:"biohort-parts-list__price-header",children:[(0,a.jsx)(g.A,{variant:"sm",className:"biohort-parts-list__price-label",children:T("biohort.configPrice")}),t?(0,a.jsx)(m.A,{width:80,height:28}):(0,a.jsx)(b.A,{price:L,bold:!0})]}),(0,a.jsx)(f.default,{variant:"contained",fullWidth:!0,onClick:P,disabled:_||t||!l.length,loading:_,children:T("biohort.addToCart")}),(0,a.jsx)(f.default,{variant:"outlined",fullWidth:!0,disabled:t||!l.length,className:"biohort-parts-list__save-btn",onClick:u,children:T("biohort.saveConfig")}),(0,a.jsx)("div",{className:"biohort-parts-list__config-url-reveal".concat(c?" biohort-parts-list__config-url-reveal--visible":""),children:(0,a.jsx)("div",{className:"biohort-parts-list__config-url-content",children:c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.A,{variant:"xs",className:"biohort-parts-list__config-url-text",children:T("biohort.savedConfigHint")}),(0,a.jsxs)("div",{className:"biohort-parts-list__config-url-row",children:[(0,a.jsx)("a",{href:c,children:c}),(0,a.jsx)(p.A,{size:"small",onClick:I,className:"biohort-parts-list__copy-btn","aria-label":T("common.copy"),children:C?(0,a.jsx)(w.default,{width:16}):(0,a.jsx)(y.default,{width:16})})]})]})})})]})})]}),i&&(0,a.jsx)(v.A,{severity:"error",children:T(s?"biohort.noResultsError":"biohort.genericError")}),S&&(0,a.jsx)(v.A,{severity:"error",children:T("biohort.cartError")})]})}l(12640);var _=l(20583),E=l(77082);
1function S(e){let{configId:t}=e,l=(0,i.useSearchParams)().get("configId"),{productService:h}=(0,_.v)(),{store:x}=(0,E.LG)(),m=(0,o.useRef)(null),f=(0,o.useRef)(new Map),{getFactfinderResult:p}=(0,c.m)(),[v,j]=(0,o.useState)(null),[b,g]=(0,o.useState)([]),[y,w]=(0,o.useState)([]),[S,k]=(0,o.useState)(!0),[C,N]=(0,o.useState)(!1),[T,I]=(0,o.useState)(!1),[L,P]=(0,o.useState)(null),[M,O]=(0,o.useState)(null),R=(0,o.useCallback)(()=>{if(!L)return;let e="".concat(window.location.origin).concat(window.location.pathname,"?configId=").concat(encodeURIComponent(L));navigator.clipboard.writeText(e),O(e)},[L]),H=(0,o.useCallback)(()=>{window.postMessage(JSON.stringify({message:"init",args:[]}),window.location.origin)},[]);(0,o.useEffect)(()=>{t&&(k(!0),N(!1),I(!1),g([]),O(null),H())},[t,H]);let V=(0,o.useCallback)(async(e,t)=>{if(!e||!t)return null;let l="".concat(e,"-").concat(t),a=f.current.get(l)||null;if(a)return a;let n=await h.getProduct(e,t);return n&&f.current.set(l,n),n},[h]);(0,o.useEffect)(()=>{if(!b.length)return()=>{};let e=!1,t=window.setTimeout(async()=>{try{if(k(!0),N(!1),I(!1),w([]),e)return;let t=b.map(e=>{let{ean:t}=e;return t}),l=await p(t),a=await Promise.all(b.map(async t=>{var a;let r=l.find(e=>{let{variantValues:l}=e;return l.map(e=>e.google_ean).includes(t.ean)}),i=r?(0,u.tX)([r])[0]:null;if(!i)return N(!0),I(!0),e=!0,null;let s=(null==i?void 0:i.url.split("sku=").pop())||"";if(e)return null;let o=null==i||null==(a=i.salePrice)?void 0:a.price_amount,c=100*("number"==typeof o?o:Number(o));if(void 0===o||""===o||Number.isNaN(c))return N(!0),e=!0,null;let d=V((null==i?void 0:i.sapId)||"",s).then(e=>{let t=(null==e?void 0:e.offers)||[],l=t.find(e=>e.merchantReference===(null==x?void 0:x.id))||null;if(l||(l=t.find(e=>e.isDefault)||null),!e||!l)throw Error('No spryker-product or -offer for "'.concat((null==i?void 0:i.sapId)||"","/").concat(s,'"'));return l}).catch(e=>(n.Cp(e),N(!0),null));return{biohortPart:t,sku:s,price:c,factFinderProduct:i,sprykerOffer:d}}));if(e)return;w(a.filter(Boolean))}catch(e){n.Cp(e),(0,d.z3)("Biohort parts lookup failed:",e),N(!0)}finally{k(!1)}},1);return()=>{window.clearTimeout(t),e=!0}},[b,p,V,h,null==x?void 0:x.id]);let B=(0,o.useCallback)(async()=>new Promise(e=>{let t=0,l=window.setInterval(()=>{var a;t+=1;let n=null==(a=m.current)?void 0:a.querySelector("iframe");n?(window.clearTimeout(l),e(n)):t>50&&(window.clearTimeout(l),e(null))},150)}),[]);return(0,o.useEffect)(()=>{let e=async()=>{H();let e=await B();j(e),e||N(!0)},t=e=>{e.message.includes('"[object Object]" is not valid JSON')&&e.preventDefault()};window.addEventListener("error",t);let l=window.setTimeout(()=>{let t=document.createElement("script");t.type="module",t.src="".concat("https://demopartner.biohort.siwa.cloud","/dehner/configurator/configurator.js"),t.id="biohort-configurator-script",t.addEventListener("load",e),t.addEventListener("error",()=>{N(!0),k(!1)}),document.head.appendChild(t)},1);return()=>{var e;window.clearTimeout(l),null==(e=document.getElementById("biohort-configurator-script"))||e.remove(),window.removeEventListener("error",t)}},[B,H]),(0,o.useEffect)(()=>{if(!v)return()=>{};let e=v.contentWindow,t=t=>{let l;if(t.source!==e){try{l=JSON.parse(t.data)}catch(e){return}if("startLoading"===l.message)k(!0);else if("updatePartList"===l.message){P(l.args.configId);let e=l.args.data;g(t=>(0,s.o)(e)!==(0,s.o)(t)?(O(null),e):t),e.length||(w([]),k(!1))}}};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},[v]),(0,a.jsx)("section",{className:"biohort-configurator",children:(0,a.jsxs)(r.default,{direction:"column",gap:4,children:[(0,a.jsx)("div",{id:"biohort-configurator",ref:m,className:"d-none biohort-configurator__iframe-container","data-config":l||t,"data-locale":"de"}),(0,a.jsx)(A,{partsList:y,expectedPartCount:b.length,busy:S,hasError:C,isNoResultsError:T,savedConfigUrl:M,onSaveConfig:R})]})})}l(3073)},65370:()=>{},69373:()=>{},69786:()=>{},70222:(e,t,l)=>{"use strict";l.d(t,{G:()=>i});var a=l(95155),n=l(19102),r=l(98638);function i(e){let{show:t=!1}=e;return(0,a.jsx)(n.A,{sx:e=>({color:"#fff",zIndex:e.zIndex.drawer+1}),open:t,children:(0,a.jsx)(r.A,{color:"inherit"})})}},72718:(e,t,l)=>{"use strict";l.d(t,{Tab:()=>v});var a=l(95155);l(22555);var n=l(52619),r=l.n(n),i=l(80357),s=l(11123),o=l(13094),c=l(66634),d=l(78702),u=l(66812),h=l(19814),x=l(17841),m=l(12562),f=l(72825),p=l(96317);function v(e){let{headline:t,tabImage:l,fgColor:n,bgColor:v,text:j,trackingName:b,linkText:g,href:y,target:w,rel:A,referenceStyle:_,linkStyle:E,singleBubble:S,secondBubble:k,brandLogo:C,tabCount:N}=e,T=2===N?[m.b.TABS_MOBILE,m.b.TABS_DESKTOP_50]:[m.b.TABS_MOBILE,m.b.TABS_DESKTOP],I=l?(0,f.Uk)(l,T):void 0,L=["(min-width: ".concat(x.f["$Breakpoints-width-min-width-desktop"],") ").concat(2===N?50:33,"vw"),"(min-width: ".concat(x.f["$Breakpoints-width-min-width-tablet"],") 50vw"),"100vw"].join(", ");return(0,a.jsxs)(i.default,{className:"tab",component:y?r():i.default,href:y,target:w,rel:A,style:{"--color":n,"--background-color":v},children:[I&&(0,a.jsxs)("div",{className:"tab__image",children:[(0,a.jsx)(h.I,{image:I,alt:t||"",sizes:L}),(0,a.jsx)(u.F,{brandLogo:C})]}),(0,a.jsxs)("div",{className:"tab__content",children:[(0,a.jsx)(s.A,{as:"h2",variant:"h2",font:"cms",className:"tab__headline",children:t}),(0,a.jsx)(s.A,{variant:"sm",className:"tab__text",children:(0,a.jsx)(o.default,{html:j||""})}),(0,a.jsx)(p.E,{href:y,target:w,rel:A,referenceStyle:_,linkStyle:E,component:"div",children:g})]}),(0,a.jsx)(c.L,{singleBubble:S}),S&&(0,a.jsx)(d.SecondBubble,{secondBubble:k})]})}},73575:()=>{},74129:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SearchResult:()=>ej});var a=l(95155),n=l(12115),r=l(97179),i=l(27855),s=l(80357),o=l(75265),c=l(24288),d=l(29999),u=l(95604),h=l(25946),x=l(20063),m=l(76510),f=l(11123),p=l(68246),v=l(11260),j=l(14303);function b(){let{hits:e=[]}=(0,h.t)(),{isCategorySearch:t}=(0,h.$A)(),l=t?"category_listing":"search_results",i=t?"Category Listing":"Search Results",o=(0,n.useMemo)(()=>(0,h.tX)(e),[e]),c=(0,n.useMemo)(()=>o.map((e,t)=>(function(e){var t,l,a,n,r,i,s,o,c;let d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
1,u=Number(null!=(r=null!=(n=null==(t=e.salePrice)?void 0:t.price_amount)?n:null==(l=e.priceOriginal)?void 0:l.price_amount)?r:0),h=(null==(a=e.priceOriginal)?void 0:a.price_amount)?Number(e.priceOriginal.price_amount):void 0,x=h&&h>u?Math.round((h-u)*100)/100:void 0;return{item_id:null!=(o=null!=(s=null!=(i=e.sku)?i:e.sapId)?s:e.id)?o:"",item_name:null!=(c=e.title)?c:"",price:u,currency:"EUR",...void 0!==x&&{discount:x},...void 0!==d.index&&{index:d.index},...d.listId&&{item_list_id:d.listId},...d.listName&&{item_list_name:d.listName}}})(e,{index:t,listId:l,listName:i})),[o,l,i]);(0,m.PJ)(c,l,i);let d=(0,n.useCallback)(e=>{c[e]&&(0,j.Vd)({item:c[e],listId:l,listName:i})},[c,l,i]);return(0,a.jsx)(s.default,{sx:{width:"100%"},children:(0,a.jsx)(r.default,{container:!0,spacing:2,children:o.map((e,t)=>(0,a.jsx)(r.default,{size:{xs:12,sm:6,lg:4},children:(0,a.jsx)("div",{role:"presentation",onClick:()=>d(t),children:(0,a.jsx)(v.A,{title:e.title,image:e.image,isDeliverable:e.isDeliverable,url:e.url,priceOriginal:e.priceOriginal,salePrice:e.salePrice,variants:e.variants,shipToShop:e.shipToShop,availabilityMarketOnline:e.availabilityMarketOnline})})},e.id))})})}var g=l(96869),y=l(47459),w=l(35348),A=l(7291),_=l(13664),E=l(37440),S=l(95968),k=l(78120),C=l(77524),N=l(80317),T=l(24251),I=l(39620);function L(e){let{title:t,defaultExpanded:l=!1,show:r=!0,children:i}=e,[s,o]=(0,n.useState)(l);if(!1!==r)return(0,a.jsxs)(k.A,{expanded:s,onChange:(e,t)=>
1{o(t)},disableGutters:!0,sx:{boxShadow:"none"},children:[(0,a.jsx)(C.A,{expandIcon:(0,a.jsx)(I.A,{}),"aria-controls":"panel1-content",id:"panel1-header",sx:{px:0},children:(0,a.jsx)(N.default,{variant:"body2",component:"span",sx:{textTransform:"uppercase",fontWeight:"bold"},children:t})}),(0,a.jsx)(T.A,{children:i})]})}let P=y.ec.SelectedEnum;function M(e){return Object.fromEntries(e.map(e=>[[e.text],e.selected!==P.FALSE]))}function O(e){let{title:t,attribute:l,items:r,defaultExpanded:i=!1,showMore:s=!0,showMoreLimit:o=5}=e,c=(0,u.useTranslations)(),[d,x]=(0,n.useState)(!1),{selectFacets:m}=(0,h.$A)(),[f,p]=(0,n.useState)(M(r));(0,n.useEffect)(()=>{let e=M(r);p(t=>(0,S.tW)(e)!==(0,S.tW)(t)?e:t)},[r]);let v=e=>{let t={...f,[e.target.name]:e.target.checked};p(t),m(l,t)};return(0,a.jsx)(L,{title:t,defaultExpanded:i,show:(null==r?void 0:r.length)>0,children:(0,a.jsxs)(g.default,{alignItems:"flex-start",children:[(0,a.jsx)(w.A,{children:r.slice(0,d?r.length-1:o).map(e=>(0,a.jsx)(A.default,{control:(0,a.jsx)(_.A,{checked:e.selected!==P.FALSE,onChange:v,name:e.text}),label:"".concat(e.text," (").concat(e.totalHits,")"),sx:e.selected===P.IRRELEVANT?{opacity:"0.6"}:null},e.text))}),s&&r.length>o&&(0,a.jsx)(E.A,{component:"button",onClick:()=>{if(x(!d),d){var e;null==(e=window)||e.scrollTo({top:0})}},children:d?c("search.showLess"):"".concat(c("search.showMore")," (").concat(r.length-o,")")})]})})}var R=l(52619),H=l.n(R),V=l(29518),B=l(39970),D=l(1269),F=l(19131);function z(e){var t;let{title:l,items:r,selectedItems:i,defaultExpanded:s=!1}=e,o=(0,x.useSearchParams)(),c=(0,n.useMemo)(()=>o.size?"?".concat(o.toString()):"",[o]),d=null!=(t=null==i?void 0:i.length)?t:0;return(0,a.jsx)(L,{title:l,defaultExpanded:s,children:(0,a.jsxs)(V.A,{children:[!!(null==i?void 0:i.length)&&i.map((e,t)=>{var l,n;return(0,a.jsx)(B.Ay,{disablePadding:!0,sx:{pl:t},children:(0,a.jsx)(D.A,{component:H(),href:[(0,h.K)((0,h._4)(e),null==i||null==(n=i.slice(0,t))||null==(l=n.map(e=>(0,h._4)(e)))?void 0:l.join("/")),c].join(""),disableGutters:!0,disableRipple:!0,sx:{"&:hover":{backgroundColor:"transparent"}},children:(0,a.jsx)(F.A,{primary:"".concat(e.text," (").concat(e.totalHits,")")})})},e.text)}),r.map(e=>(0,a.jsx)(B.Ay,{disablePadding:!0,sx:{pl:d},children:(0,a.jsx)(D.A,{component:H(),href:[(0,h.K)((0,h._4)(e)),c].join(""),disableGutters:!0,disableRipple:!0,sx:{"&:hover":{backgroundColor:"transparent"}},children:(0,a.jsx)(F.A,{primary:"".concat(e.text," (").concat(e.totalHits,")")})})},e.text))]})})}var q=l(50355),W=l(34782),G=l(91579),U=l(74577);let $=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(e).concat(t)};function K(e){var t,l,r,i;let{title:o,defaultExpanded:c=!1,minValue:d=0,maxValue:x=100,unit:m,attribute:f,selectedItems:p}=e,v=(0,u.useTranslations)(),{selectRangeFacet:j}=(0,h.$A)(),[b,y]=(0,n.useState)([null!=(r=null==p||null==(t=p[0])?void 0:t.selectedMinValue)?r:d,null!=(i=null==p||null==(l=p[0])?void 0:l.selectedMaxValue)?i:x]);(0,n.useEffect)(()=>{y(e=>{var t,l,a,n;let r=null!=(a=null==p||null==(t=p[0])?void 0:t.selectedMinValue)?a:d,i=null!=(n=null==p||null==(l=p[0])?void 0:l.selectedMaxValue)?n:x,[s,o]=e;return s===r&&o===i?e:[r,i]})},[x,d,p]);let w=(0,n.useCallback)(()=>{j(f,b[0],b[1])},[f,j,b]);return(0,a.jsx)(L,{title:o,defaultExpanded:c,children:(0,a.jsxs)(g.default,{spacing:2,children:[(0,a.jsx)(s.default,{component:"form",noValidate:!0,autoComplete:"off",children:(0,a.jsxs)(g.default,{direction:"row",sx:{justifyContent:"space-between",alignItems:"center"},spacing:4,children:[(0,a.jsx)(q.A,{label:v("search.rangeInput.from"),variant:"outlined",value:b[0],onChange:e=>{let t=Number(e.target.value);t<d&&(t=d),y([t,b[1]])},onBlur:w,slotProps:{input:{endAdornment:(0,a.jsx)(W.A,{position:"end",sx:{opacity:0,pointerEvents:"none",["[data-shrink=true] ~ .".concat(G.A.root," > &")]:{opacity:1}},children:m}),type:"number"}}}),(0,a.jsx)(q.A,{label:v("search.rangeInput.to"),variant:"outlined",value:b[1],onChange:e=>{let t=Number(e.target.value);t>x&&(t=x),y([b[0],t])},onBlur:w,slotProps:{input:{endAdornment:(0,a.jsx)(W.A,{position:"end",sx:{opacity:0,pointerEvents:"none",["[data-shrink=true] ~ .".concat(G.A.root," > &")]:{opacity:1}},children:m}),type:"number"}}})]})}),(0,a.jsx)(U.Ay,{getAriaLabel:()=>"".concat(o," range"),value:b,min:d,max:x,onChange:(e,t)=>
1{y(t)},onChangeCommitted:w,valueLabelDisplay:"auto",valueLabelFormat:e=>$(e,m),getAriaValueText:e=>$(e,m)})]})})}var X=l(54184);let J=y.ec.SelectedEnum;function Q(e){return Object.fromEntries(e.map(e=>[[e.text],e.selected!==J.FALSE]))}function Z(e){let{title:t,attribute:l,items:r,defaultExpanded:i=!1,showMore:s=!0,showMoreLimit:o=5}=e,c=(0,u.useTranslations)(),[d,x]=(0,n.useState)(!1),{selectFacets:m}=(0,h.$A)(),[f,p]=(0,n.useState)(Q(r));(0,n.useEffect)(()=>{let e=Q(r);p(t=>(0,S.tW)(e)!==(0,S.tW)(t)?e:t)},[r]);let v=e=>{let t={...f,[e.target.name]:e.target.checked};p(t),m(l,t)};return(0,a.jsx)(L,{title:t,defaultExpanded:i,show:(null==r?void 0:r.length)>0,children:(0,a.jsxs)(g.default,{alignItems:"flex-start",children:[(0,a.jsx)(w.A,{children:r.slice(0,d?r.length-1:o-1).map(e=>(0,a.jsx)(A.default,{sx:{margin:"0 0 10px 0",gap:"10px",opacity:e.selected===J.IRRELEVANT?"0.6":void 0},color:"red",control:(0,a.jsx)(X.q,{checked:e.selected!==J.FALSE,onChange:v,color:e.text||""}),label:"".concat(e.text," (").concat(e.totalHits,")")},e.text))}),s&&r.length>o&&(0,a.jsx)(E.A,{component:"button",onClick:()=>{if(x(!d),d){var e;null==(e=window)||e.scrollTo({top:0})}},children:d?c("search.showLess"):"".concat(c("search.showMore")," (").concat(r.length-o,")")})]})})}var Y=l(77082),ee=l(38054);let et=y.ec.SelectedEnum;function el(e){return Object.fromEntries(e.map(e=>[[e.text],e.selected!==et.FALSE]))}function ea(e){let{title:t,attribute:l,items:r,defaultExpanded:i=!1}=e,s=(0,u.useTranslations)(),{store:o}=(0,Y.LG)(),{openModal:c}=(0,ee.A)(),{selectFacets:d}
1=(0,h.$A)(),[x,m]=(0,n.useState)(el(r)),f=(0,n.useRef)(!1);(0,n.useEffect)(()=>{let e=el(r);m(t=>(0,S.tW)(e)!==(0,S.tW)(t)?e:t)},[r]);let p=(0,n.useCallback)(e=>{let t={...x,[e.target.name]:e.target.checked};m(t),d(l,t)},[l,d,x]),v=(0,n.useCallback)(()=>{f.current=!0,c("stores")},[c]);return(0,n.useEffect)(()=>{if(f.current&&(f.current=!1,o)){let e={...x,[String(o.id)]:!0};m(e),d(l,e)}},[l,d,x,o]),(0,a.jsx)(L,{title:t,defaultExpanded:i,children:(0,a.jsxs)(g.default,{alignItems:"flex-start",children:[(0,a.jsx)(w.A,{children:r.filter(e=>e.text&&[null==o?void 0:o.id,"online"].includes(e.text)).map(e=>(0,a.jsx)(A.default,{control:(0,a.jsx)(_.A,{checked:!!e.text&&x[e.text],onChange:p,name:e.text}),label:"".concat(s("online"===e.text?"search.availability.online":"search.availability.market")," (").concat(e.totalHits,")")},e.text))}),!o&&(0,a.jsx)(A.default,{control:(0,a.jsx)(_.A,{checked:!1,onClick:v,name:"selectStore"}),label:s("search.availability.market")})]})})}function en(){let e=(0,u.useTranslations)(),{facets:t}=(0,h.t)(),l=(0,n.useMemo)(()=>null==t?void 0:t.map(t=>{var l,a,n,r,i,s;return{title:e("search.facets.".concat(t.name)),name:t.name,items:t.elements.map(e=>({text:e.text,totalHits:e.totalHits,searchParams:e.searchParams,selected:e.selected})),selectedItems:t.selectedElements.map(e=>({text:e.text,totalHits:e.totalHits,selected:e.selected,selectedMinValue:e.selectedMinValue,selectedMaxValue:e.selectedMaxValue})),filterType:t.filterStyle,attribute:t.associatedFieldName,unit:t.unit,type:t.type,decimalPlaces:t.decimalPlaces,minValue:null!=(i=null==(l=t.elements[0])?void 0:l.selectedMinValue)?i:null==(a=t.selectedElements[0])?void 0:a.absoluteMinValue,maxValue:null!=(s=null==(n=t.elements[0])?void 0:n.selectedMaxValue)?s:null==(r=t.selectedElements[0])?void 0:r.absoluteMaxValue}}),[t,e]);return(0,a.jsx)(g.default,{children:null==l?void 0:l.map((e,t)=>e.filterType===y.sj.FilterStyleEnum.TREE?(0,a.jsx)(z,{title:e.title,items:e.items,selectedItems:e.selectedItems,defaultExpanded:t<5},e.title):e.filterType===y.sj.FilterStyleEnum.SLIDER?(0,a.jsx)(K,{title:e.title,attribute:e.attribute,unit:e.unit,selectedItems:e.selectedItems,defaultExpanded:t<5,minValue:e.minValue,maxValue:e.maxValue},e.title):e.filterType===y.sj.FilterStyleEnum.MULTISELECT&&"searchcolor"===e.name?(0,a.jsx)(Z,{title:e.title,attribute:e.attribute,items:[...e.selectedItems,...e.items],defaultExpanded:t<5},e.title):e.filterType===y.sj.FilterStyleEnum.MULTISELECT&&"availability_market_online"===e.attribute?(0,a.jsx)(ea,{title:e.title,attribute:e.attribute,items:[...e.selectedItems,...e.items],defaultExpanded:t<5},e.title):(0,a.jsx)(O,{title:e.title,attribute:e.attribute,items:[...e.selectedItems,...e.items],defaultExpanded:t<5},e.title))})}var er=l(23405),ei=l(62995),es=l(44177),eo=l(70617);function ec(){let[e,t]=(0,n.useState)(""),l=(0,u.useTranslations)(),{sortItems:r}=(0,h.t)(),{sortBy:i}=(0,h.$A)();(0,n.useEffect)(()=>{let e=null==r?void 0:r.find(e=>e.selected);if(e)t("".concat(e.name,"_").concat(e.order));else if(r){var l,a;t("".concat(null==(l=r[0])?void 0:l.name,"_").concat(null==(a=r[0])?void 0:a.order))}},[r]);let s=l("search.sortBy.label"),o=null==r?void 0:r.map(e=>{let t="".concat(e.name,"_").concat(e.order);return(0,a.jsx)(er.A,{value:t,children:l(e.description)},t)});return(0,a.jsxs)(ei.A,{fullWidth:!0,children:[(0,a.jsx)(es.A,{id:"sortby-select-label",children:s}),(0,a.jsx)(eo.A,{labelId:"sortby-select-label",id:"sortby-select",label:s,value:e,onChange:e=>{t(e.target.value),i(e.target.value)},children:o})]})}function ed(){let e=(0,u.useTranslations)(),{clearAllFilter:t,clearFilter:l,clearSearchqueryFilter:r,isCategorySearch:s}=(0,h.$A)(),{filters:o,searchParams:c}=(0,h.t)(),x=(0,n.useCallback)((t,l)=>"availability_market_online"===t?e("online"===l.value?"search.availability.online":"search.availability.market"):String(l.value).replace("[","").replace("]","").replace(","," - "),[e]),m=(0,n.useMemo)(()=>(s?null==o?void 0:o.filter(e=>"multiplecategory"!==e.name):o)||[],[o,s]),f=(null==c?void 0:c.query)&&"*"!==c.query?(0,h.sF)(null==c?void 0:c.query):"";if(m.length>0||f)return(0,a.jsxs)(g.default,{direction:"row",useFlexGap:!0,sx:{flexWrap:"wrap",gap:2},children:[(0,a.jsx)(i.default,{endIcon:(0,a.jsx)(d.A,{}),size:"small",variant:"outlined",onClick:t,children:e(f?"search.resetFilterAndQuery":"search.resetFilter")}),m.map(e=>e.values.map(t=>(0,a.jsx)(i.default,{endIcon:(0,a.jsx)(d.A,{}),size:"small",variant:"outlined",onClick:()=>l(e.name,String(t.value)),children:x(e.name,t)},"".concat(e.name,"_").concat(t.value)))),f&&s&&(0,a.jsx)(i.default,{endIcon:(0,a.jsx)(d.A,{}),size:"small",variant:"outlined",onClick:r,children:f})]})}var eu=l(70222),eh=l(56353),ex=l(92537),em=l(81637);function ef(){let e=(0,x.usePathname)(),t=(0,x.useSearchParams)(),{currentPage:l,totalPages:n}=(0,h.ZL)();return n&&n>1?(0,a.jsx)(eh.A,{page:l,count:n,variant:"outlined",shape:"rounded",renderItem:l=>(0,a.jsx)(ex.A,{component:H(),href:(0,em.VL)("".concat(e,"?").concat(t),{page:1===l.page?void 0:l.page}),...l})}):""}function ep(){let e=(0,u.useTranslations)(),t=e("search.noHits.headline"),l=e("search.noHits.text");return(0,a.jsx)(s.default,{sx:{width:"100%",mt:4},children:(0,a.jsxs)(g.default,{spacing:2,alignItems:"center",children:[(0,a.jsx)(N.default,{children:t}),(0,a.jsx)(N.default,{variant:"subtitle1",children:l})]})})}function ev(){let e=(0,u.useTranslations)(),t=e("search.error.headline"),l=e("search.error.text"),n=e("search.error.retry");return(0,a.jsx)(s.default,{sx:{width:"100%",mt:4},children:(0,a.jsxs)(g.default,{spacing:2,alignItems:"center",children:[(0,a.jsx)(N.default,{children:t}),(0,a.jsx)(N.default,{variant:"subtitle1",children:l}),(0,a.jsx)(i.default,{variant:"outlined",onClick:()=>window.location.reload(),children:n})]})})}function ej(e){var t,l;let{headline:v,hideHeadline:j=!1,cmsContentTop:g,cmsContentMiddle:y,cmsContentBottom:w}=e,{isLoading:A,searchResult:_,error:E,isCategorySearch:S}=(0,h.$A)(),k=(0,u.useTranslations)(),C=(0,x.useSearchParams)(),[N,T]=(0,n.use
1State)(!1),I=k("search.headline.text",{hits:null==_?void 0:_.totalHits,query:null==_||null==(t=_.searchParams)?void 0:t.query}),{search:L,searchInCategory:P,categoryPath:M,isCategorySearch:O,searchResult:R}=(0,h.$A)(),H=(0,x.useSearchParams)(),V=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{var e,t;if(V.current&&R){V.current=!1;return}let l=parseInt(null!=(t=H.get("page"))?t:"1",10),a=H.getAll("filter"),n=H.get("sort"),r=H.get("q")||(null==R||null==(e=R.searchParams)?void 0:e.query)||"*",i="1"===H.get("isSuggestedSearch"),s=(0,h.BD)(a),o=O?window.setTimeout(async()=>{await P({categoryPath:M,filters:s,page:l,sort:n,query:r})},1):window.setTimeout(async()=>{await L({query:r,isSuggestedSearch:i,filters:s,page:l,sort:n})},1);return()=>window.clearTimeout(o)},[M,O,L,P,H]),(0,m.pp)(S?void 0:null!=(l=null==C?void 0:C.get("q"))?l:void 0),(0,a.jsxs)(a.Fragment,{children:[_&&(0,a.jsxs)(r.default,{container:!0,spacing:4,children:[!S&&!j&&(0,a.jsx)(r.default,{size:12,children:(0,a.jsx)(f.A,{variant:"h2",children:v||I})}),(0,a.jsx)(r.default,{size:12,children:g}),(0,a.jsxs)(r.default,{size:3,sx:{display:{xs:"none",md:"block"}},children:[(0,a.jsx)(en,{}),(0,a.jsx)("div",{children:y})]}),(0,a.jsx)(r.default,{size:{xs:12,md:9},children:(0,a.jsxs)(r.default,{container:!0,spacing:4,children:[(0,a.jsx)(r.default,{size:12,sx:{display:{xs:"block",md:"none"}},children:(0,a.jsx)(i.default,{variant:"outlined",fullWidth:!0,startIcon:(0,a.jsx)(p.default,{width:20,height:20}),onClick:()=>T(!0),children:k("search.filterAndSort")})}),(0,a.jsxs)(r.default,{size:12,sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:2},children:[(0,a.jsx)(ed,{}),(0,a.jsx)(s.default,{sx:{marginLeft:"auto",display:{xs:"none",md:"block"}},children:(0,a.jsx)(ec,{})})]}),(0,a.jsxs)(r.default,{size:12,sx:{justifyItems:"flex-start"},children:[_.totalHits>0&&(0,a.jsx)(b,{}),0===_.totalHits&&(0,a.jsx)(ep,{})]}),(0,a.jsx)(r.default,{size:12,sx:{justifyItems:"center"},children:(0,a.jsx)(ef,{})}),(0,a.jsx)(r.default,{size:12,children:w})]})})]}),(0,a.jsxs)(o.A,{fullScreen:!0,open:N,onClose:()=>T(!1),children:[(0,a.jsxs)(s.default,{className:"dialog__header",children:[(0,a.jsx)(f.A,{as:"h5",variant:"xl",children:k("search.filterAndSort")}),(0,a.jsx)(c.A,{onClick:()=>T(!1),"aria-label":"close",sx:{position:"absolute",right:8,top:8},children:(0,a.jsx)(d.A,{})})]}),(0,a.jsxs)(s.default,{sx:{p:2,overflow:"auto",flex:1},children:[(0,a.jsx)(s.default,{sx:{mb:"20px"},children:(0,a.jsx)(ec,{})}),(0,a.jsx)(en,{}),y]}),(0,a.jsx)(s.default,{sx:{p:2},children:(0,a.jsx)(i.default,{variant:"contained",fullWidth:!0,onClick:()=>T(!1),children:k("search.showResults")})})]}),A&&(0,a.jsx)(eu.G,{show:!0}),E&&(0,a.jsx)(ev,{})]})}},78785:()=>{},80108:(e,t,l)=>{"use strict";l.d(t,{default:()=>i});var a=l(95155),n=l(12115);l(69373);var r=l(2821);function i(e){let{as:t="div",children:l,className:i,...s}=e,o=(0,n.useRef)(null),c=(0,n.useRef)(0),d=(0,n.useRef)(0),u=(0,n.useRef)(!1),h=(0,n.useRef)(!1),x=()=>{u.current&&(u.current=!1)};return(0,a.jsx)(t,{ref:o,className:(0,r.A)("drag-scroll-container",i),onMouseDown:e=>{o.current&&(u.current=!0,h.current=!1,c.current=e.clientX,d.current=o.current.scrollLeft)},onMouseMove:e=>{if(!o.current||!u.current)return;e.preventDefault();let t=e.clientX-c.current;Math.abs(t)>5&&(h.current=!0),o.current.scrollLeft=d.current-t},onMouseUp:x,onMouseLeave:x,onClickCapture:e=>{h.current&&(e.preventDefault(),e.stopPropagation(),h.current=!1)},...s,children:l})}},81460:()=>{},83362:()=>{},84535:()=>{},90336:()=>{},92101:()=>{},94312:()=>{},99392:()=>{}}]);
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.