1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4190],{7611:(e,t,a)=>{"use strict";a.d(t,{J:()=>s});var r=a(87801);let s=()=>(0,r.P)().languages},8661:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r,s=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let l=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),r||(r=s.createElement("path",{d:"M23.5 6.2a3 3 0 0 0-2.11-2.12c-1.86-.5-9.39-.5-9.39-.5s-7.53 0-9.39.5A3 3 0 0 0 .5 6.2C0 8.06 0 12 0 12s0 3.94.5 5.8a3 3 0 0 0 2.11 2.12c1.86.5 9.39.5 9.39.5s7.53 0 9.39-.5a3 3 0 0 0 2.11-2.12c.5-1.86.5-5.8.5-5.8s0-3.94-.5-5.8M9.6 15.57V8.43L15.82 12z"})))}},8825:(e,t,a)=>{"use strict";a.d(t,{HeaderText:()=>l});var r=a(95155),s=a(50149),n=a(64823);let l=()=>{let e=(0,n.W)();return(0,r.jsxs)("div",{className:"my-2 font-bold",children:["Icecat: "+e("txt_whatisicecat"),(0,r.jsx)(s.default,{analyticsId:"header-search.open-catalog",className:"text-primary",href:"/menu/manufacturers",children:" "+e("open_catalog")})," "+e("with")+" "+e("total_number_of_datasheets")+" "+e("data-sheets")+" & ",(0,r.jsxs)(s.default,{analyticsId:"header-search.total-number-of-brands",className:"text-primary",href:"/brands",children:[e("total_number_of_brands")," ",e("brands")+" "]}),(0,r.jsx)(s.default,{analyticsId:"header-search.register-or-signup",className:"text-primary",href:"/registration",children:e("lang_register_or_signup_text")})]})}},13731:(e,t,a)=>{"use strict";a.d(t,{J:()=>n});var r=a(95155),s=a(15239);let n=e=>{let{country:t,className:a}=e;return(0,r.jsx)(s.default,{width:16,height:12,alt:t.native,unoptimized:!0,loading:"lazy",src:"/static/images/flags/".concat(t.img),className:a,fetchPriority:"low"})}},14773:e=>{e.exports={container:"styles_container__UGwLD"}},21802:(e,t,a)=>{"use strict";a.d(t,{S:()=>s});var r=a(87801);let s=()=>{let e=(0,r.P)();return e.countries.findByCode(e.countryCode)}},32561:(e,t,a)=>{"use strict";a.d(t,{SetBodyClass:()=>s});var r=a(12115);function s(e){let{className:t}=e;return(0,r.useEffect)(()=>(document.body.className=t,()=>{document.body.className=""}),[t]),null}},32926:e=>{e.exports={container:"styles_container__BmgdY",icon:"styles_icon__ejg9O",loupe:"styles_loupe__sPupE",filter:"styles_filter__oT_Ls",input:"styles_input__5Geo5"}},37912:(e,t,a)=>{"use strict";a.d(t,{q:()=>n});var r=a(79706),s=a(77700);let n=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.host,n=r.A.parseUrl(t).url;return(0,s.removeTrailingSlash)("https://".concat(a,"/").concat(e.lang,"/prefere/").concat(null==e?void 0:e.code).concat(n))}},42216:(e,t,a)=>{"use strict";a.d(t,{LocalePicker:()=>c});var r=a(95155),s=a(52185),n=a.n(s),l=a(68441);let i=(0,a(67909).default)(()=>Promise.all([a.e(6326),a.e(8205),a.e(9667)]).then(a.bind(a,69667)).then(e=>e.LocaleChangeModal),{loadableGenerated:{webpack:()=>[69667]}}),c=()=>{let e=(0,l.h)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:n().btn,role:"button","aria-label":"open locale select",onClick:e.toggle}),e.isOpen&&(0,r.jsx)(i,{onClose:e.close})]})}},42420:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var r=a(95155),s=a(68321);let n=e=>{let{id:t,data:a}=e;return(0,r.jsx)(s.default,{id:t,strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(".concat(JSON.stringify(a),");\n ")}})};var l=a(76369),i=a(64343),c=a(29719),o=a(12115);let d=()=>{let e=(0,i.x)();return(()=>{let{data:e}=(0,c.s)();return(0,o.useEffect)(()=>{var t;e&&(t={event:"user_meta",page_user_group:(e=>e.group===l.z.shop?e.isFull?"full_shop_user":"open_shop_user":e.group)(e)},window.dataLayer?window.dataLayer.push(t):console.error("Data layer not found"))},[e])})(),(0,r.jsx)(n,{id:"gtm-page-data-global",data:{event:"page_meta",page_locale:e}})}},47041:(e,t,a)=>{"use strict";a.d(t,{p:()=>n});var r=a(77700),s=a(20063);let n=()=>{let e=(0,s.usePathname)(),t=(0,s.useParams)();return e?(0,r.removeTrailingSlash)(e.replace("/".concat(t.lang),"")):""}},51123:e=>{e.exports={button:"style_button__2viDA"}},51337:(e,t,a)=>{"use strict";a.d(t,{default:()=>p});var r=a(95155),s=a(47041),n=a(81954),l=a(13731),i=a(41139),c=a(37912),o=a(78656),d=a.n(o),u=a(2821),h=a(83076),m=a(50149);let p=()=>{let e=(0,s.p)(),t=(0,n.o)();return(0,r.jsxs)("div",{className:(0,u.A)(d().list,"ms-5 flex items-center"),children:[t.data.slice(0,11).map(t=>(0,r.jsx)(m.default,{href:(0,c.q)(t,e),analyticsId:"header.country_flag.".concat(t.code),children:(0,r.jsx)(l.J,{country:t})},t.id)),(0,r.jsxs)(m.default,{href:"/menu/country",className:"text-nowrap",prefetch:!1,analyticsId:"header.more_countries",children:[(0,r.jsx)(h.default,{name:"lang_more"}),(0,r.jsx)(i.kq,{})]})]})}},52185:e=>{e.exports={btn:"styles_btn__vMxPv"}},54949:(e,t,a)=>{"use strict";a.d(t,{default:()=>b});var r=a(95155),s=a(2821),n=a(64226),l=a.n(n);let i=function(e){let{isOpen:t,variant:a,...n}=e;return(0,r.jsxs)("div",{...n,className:(0,s.A)(l().container,{[l().isOpen]:t,[l().blue]:"blue"===a}),children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{}),(0,r.jsx)("span",{}),(0,r.jsx)("span",{})]})};var c=a(68441),o=a(14153),d=a(12115),u=a(64343),h=a(64823),m=a(83076),p=a(50149),_=a(87428),f=
1a.n(_),x=a(50361),g=a(12451),j=a(13732);let y=e=>{let{innerRef:t,...a}=e,s=(0,u.x)(),n=(0,h.W)(),l=(0,x.f)(),i=(0,g.Z)();return(0,r.jsx)("div",{...a,ref:t,className:f().container,children:(0,r.jsxs)("ul",{className:f().list,children:[l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/myIcecat",analyticsId:"hamburger_menu.my_icecat",children:n("lang_account_settings")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/myDownloads",analyticsId:"hamburger_menu.my_downloads",children:n("lang_my_downloads")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/myPricelist",analyticsId:"hamburger_menu.my_pricelist",children:n("lang_pricelist")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{href:"https://bo.icecat.biz/",analyticsId:"hamburger_menu.edit_my_products",children:n("lang_edit_my_products")})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{role:"button",onClick:()=>i("/authorization/logout"),...(0,j.M)({id:"hamburger_menu.logout",elementType:"button"}),children:n("logout")})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/authorization",analyticsId:"hamburger_menu.open_icecat",children:(0,r.jsx)(m.default,{name:"menu_openicecat"})})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/registration",analyticsId:"hamburger_menu.register",children:(0,r.jsx)(m.default,{asHtml:!0,name:"register_new"})})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{rel:"nofollow",href:"https://bo.icecat.biz/",analyticsId:"hamburger_menu.edit_my_products",children:(0,r.jsx)(m.default,{name:"lang_edit_my_products"})})})]}),(0,r.jsx)("li",{className:f().itemSeparator,children:(0,r.jsx)(p.default,{prefetch:!1,href:"/brands",analyticsId:"hamburger_menu.search_by_brand",children:n("search_by_brand")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/".concat(s,"/categories"),analyticsId:"hamburger_menu.categories",children:n("categories_menu_link")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{rel:"nofollow",href:"https://www.iceclog.com/",analyticsId:"hamburger_menu.iceclog",children:n("lang_iceclog")})}),(0,r.jsx)("li",{className:f().itemSeparator,children:(0,r.jsx)(p.default,{prefetch:!1,href:"/menu/channelpartners",analyticsId:"hamburger_menu.channel_partners",children:n("menu_channel_partners")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/menu/manufacturers",analyticsId:"hamburger_menu.manufacturers",children:n("manufacturers")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/menu/partners",analyticsId:"hamburger_menu.partners",children:n("menu_partners")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,rel:"nofollow",href:"/myDownloads",analyticsId:"hamburger_menu.download_free_datasheets",children:(0,r.jsx)(m.default,{name:"lang_download_free_datasheets",asHtml:!0})})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{rel:"nofollow",href:"https://www.iceclog.com/category/jobs/",analyticsId:"hamburger_menu.jobs",children:n("jobs_offers_lang")})}),(0,r.jsx)("li",{className:f().itemSeparator,children:(0,r.jsx)(p.default,{href:"https://icecat.com/about.html",rel:"nofollow noopener noreferrer",analyticsId:"hamburger_menu.about_icecat",children:n("menu_about_icecat_title")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{href:"/menu/contacts",analyticsId:"hamburger_menu.contact",children:n("lang_contact")})}),(0,r.jsx)("li",{className:f().itemSeparator,children:(0,r.jsx)(p.default,{prefetch:!1,href:"/menu/disclaimer",analyticsId:"hamburger_menu.disclaimer",children:n("lang_disclaimer")})}),(0,r.jsx)("li",{children:(0,r.jsx)(p.default,{prefetch:!1,href:"/menu/privacy",analyticsId:"hamburger_menu.privacy",children:n("lang_privacy")})}),(0,r.jsx)("li",{children:(0,r.jsx)(m.default,{name:"lang_icecat",asHtml:!0})})]})})};var v=a(20063);let b=e=>{let{burgerVariant:t}=e,a=(0,c.h)(),s=(0,o.j)(a.close),n=(0,v.usePathname)();return(0,d.useEffect)(()=>{a.close()},[n]),(0,r.jsxs)("div",{ref:s,children:[(0,r.jsx)(i,{onClick:a.toggle,isOpen:a.isOpen,variant:t}),a.isOpen&&(0,r.jsx)(y,{})]})}},56952:(e,t,a)=>{"use strict";a.d(t,{FooterLink:()=>c});var r=a(95155),s=a(2821),n=a(20063),l=a(50149),i=a(90209);let c=e=>{var t;let{href:a,className:c,name:o,children:d}=e,u=function(e,t){if(!t.startsWith("/"))return!1;let a=(0,i.R)(e);return a===t||a.startsWith("".concat(t,"/"))}(null!=(t=(0,n.usePathname)())?t:"",a);return(0,r.jsx)(l.default,{href:a,analyticsId:o,className:(0,s.A)("hover:underline",c,u&&"underline decoration-white decoration-2 underline-offset-4"),children:d})}},60353:(e,t,a)=>{"use strict";a.d(t,{CookieNotice:()=>d});var r=a(95155),s=a(51123),n=a.n(s),l=a(31162),i=a(68441),c=a(64823),o=a(87801);let d=()=>{let e=(0,o.P)(),t=(0,i.h)(!e.isCookiesAccepted),a=(0,c.W)();async function s(){t.close(),await l.A.post("/rest/acceptnotice",{cookie:!0},{withCredentials:!0})}return(0,r.jsx)("div",{style:{display:t.isOpen?"block":"none",zIndex:0x3b9ac9ff},className:"fixed bottom-0 h-auto w-full bg-black text-center text-white",children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center p-3 md:flex-row",children:[(0,r.jsx)("div",{className:"ps-3",style:{color:"white"},children:a("cookie_warning")}),(0,r.jsxs)("div",{className:"flex flex-nowrap justify-center",children:[(0,r.jsx)("button",{className:n().button,type:"button",onClick:s,children:a("cookie_ok")}),(0,r.jsx)("button",{onClick:function(){window.open("/menu/privacy")},className:n().button,children:a("MFN_landingPage_slider_read_more")})]})]})})}},64190:(e,t,a)=>{Promise.resolve().then(a.bind(a,42420)),Promise.resolve().then(a.bind(a,91062)),Promise.resolve().then(a.bind(a,8661)),Promise.resolve().then(a.bind(a,50149)),Promise.resolve().then(a.bind(a,32561)),Promise.resolve().then(a.bind(a,83076)),Promise.resolve().then(a.bind(a,64722)),Promise.resolve().then(a.bind(a,60353)),Promise.resolve().then(a.bind(a,56952)),Promise.resolve().then(a.bind(a,8825)),Promise.resolve().then(a.bind(a,93019)),Promise.resolve().then(a.bind(a,54949)),Promise.resolve().then(a.bind(a,42216)),Promise.resolve().then(a.bind(a,67809)),Promise.resolve().then(a.bind(a,51337)),Promise.resolve().then(a.bind(a,87276)),Promise.resolve().then(a.bind(a,74473)),Promise.resolve().then(a.bind(a,87353)),Promise.resolve().then(a.bind(a,95224)),Promise.resolve().then(a.bind(a,38385))},64226:e=>{e.exports={container:"styles_container__28eBL",blue:"styles_blue__NJzim",isOpen:"styles_isOpen__yIVBr"}},66143:(e,t,a)=>{"use strict";a.d(t,{F:()=>l});var r=a(31162),s=a(44815),n=a(71493);let l=async e=>(await r.A.post("/rest/supplier",{ids:(0,s.A)(e)},{cache:{ttl:(0,n.xF)(30),methods:["post"]}})).data.map(e=>({id:+e.id,img:e.manufacturer_image,name:e.name,isSponsor:"Y"===e.is_sponsor}))},67809:(e,t,a)=>{"use strict";a.d(t,{SearchInput:()=>u});var r=a(95155),s=a(32926),n=a.n(s),l=a(12115),i=a(64823),c=a(64343),o=a(2821),d=a(13060);let u=()=>{let e=(0,i.W)(),t=(0,c.x)(),a=(0,l.useRef)();
1return(0,r.jsxs)("div",{className:n().container,children:[(0,r.jsx)("i",{className:(0,o.A)(n().icon,n().loupe)}),(0,r.jsx)("input",{className:n().input,placeholder:e("lang_mobile_search_placeholder"),"aria-label":e("lang_mobile_search_placeholder"),type:"text",ref:a,onKeyPress:e=>{13===e.charCode&&(window.location.href="/".concat(t).concat((0,d.u)({keyword:e.currentTarget.value})))}}),(0,r.jsx)("i",{className:(0,o.A)(n().icon,n().filter)})]})}},74473:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var r=a(95155),s=a(41139),n=a(64823),l=a(50149);function i(){let e=(0,n.W)();return(0,r.jsxs)("ul",{className:"flex items-center gap-2 text-nowrap font-bold",children:[(0,r.jsxs)("li",{children:[(0,r.jsx)(s.s$,{}),(0,r.jsx)(l.default,{href:"/menu/channelpartners",analyticsId:"header.channel_partners",children:e("menu_channel_partners")})]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(s.s$,{}),(0,r.jsx)(l.default,{href:"/menu/manufacturers",analyticsId:"header.manufacturers",children:e("manufacturers")})]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(s.s$,{}),(0,r.jsx)(l.default,{href:"https://www.iceclog.com/category/partners/",analyticsId:"header.marketplace",children:e("lang_marketplace")})]})]})}},78656:e=>{e.exports={list:"styles_list__dJzQt"}},81954:(e,t,a)=>{"use strict";a.d(t,{o:()=>s});var r=a(87801);let s=()=>(0,r.P)().countries},84613:e=>{e.exports={root:"styles_root__hetD_",input:"styles_input__pSFP7",list:"styles_list__MCtgq",open:"styles_open__SH4xa",listItem:"styles_listItem__T5YWD",active:"styles_active__2q709"}},86166:e=>{e.exports={modal:"styles_modal__kWOiu",list:"styles_list__bMNe9"}},87276:(e,t,a)=>{"use strict";a.d(t,{default:()=>o});var r=a(95155),s=a(41139),n=a(50149),l=a(21802),i=a(13731),c=a(83076);let o=()=>{let e=(0,l.S)();return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)(n.default,{href:"/menu/country",analyticsId:"header.country_picker",children:[(0,r.jsx)(s.s$,{}),(0,r.jsx)(c.default,{name:"txt_country"}),":"]}),e&&(0,r.jsx)(i.J,{className:"ms-1",country:e})]})}},87353:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var r=a(95155),s=a(86166),n=a.n(s),l=a(47041),i=a(7611),c=a(64343),o=a(12115),d=a(77700),u=a(13732);let h=function(){let e=(0,l.p)(),t=(0,i.J)(),a=(0,c.x)(),s=(()=>{let e=(0,c.x)();return(0,o.useCallback)(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return"/".concat(a).concat((0,d.removeTrailingSlash)(t))},[e])})();return(0,r.jsx)("div",{className:n().modal,children:(0,r.jsx)("ul",{className:n().list,children:t.data.map(t=>(0,r.jsx)("li",{className:t.code===a&&"font-bold",children:(0,r.jsx)("a",{...(0,u.M)({id:"locale_picker.language_option"}),href:s(e,t.code),children:t.name})},t.id))})})};var m=a(41139),p=a(5746),_=a(2821),f=a(96439),x=a.n(f);let g=e=>{let{children:t,isOpen:a,onClick:s}=e,n=(0,o.useRef)();return(0,r.jsx)("div",{onClick:e=>{e.stopPropagation(),s&&e.target===n.current&&s()},className:(0,_.A)(x().root,{[x().open]:a}),ref:n,children:t})};var j=a(68441),y=a(83076);let v=function(){let e=(0,p.o)(),t=(0,j.h)();return(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("div",{role:"button","aria-label":"open language picker",onClick:t.open,...(0,u.M)({id:"header.language_picker",elementType:"button"}),children:[(0,r.jsxs)("a",{role:"button",children:[(0,r.jsx)(m.s$,{}),(0,r.jsx)(y.default,{name:"lang_language"}),":"]}),(0,r.jsx)("span",{className:"ms-1",children:null==e?void 0:e.name})]}),t.isOpen&&(0,r.jsx)(g,{isOpen:!0,onClick:t.close,children:(0,r.jsx)(h,{})})]})})}},87428:e=>{e.exports={container:"styles_container__wIaUW",list:"styles_list__qhl70",itemSeparator:"styles_itemSeparator___D0uE"}},90209:(e,t,a)=>{"use strict";a.d(t,{R:()=>r});let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";return null==e?void 0:e.replace(/^\/[a-z]{2}(?:-[a-z]{2})?\//,t)}},91062:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r,s=a(12115);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let l=function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"
1currentColor",viewBox:"0 0 24 24"},e),r||(r=s.createElement("path",{d:"M20.45 20.45H16.9v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.13 1.45-2.13 2.94v5.67H9.37V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.38-1.85 3.61 0 4.28 2.38 4.28 5.47v6.27zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12m1.78 13.02H3.56V9h3.56zM22.22 0H1.77C.79 0 0 .77 0 1.72v20.56C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.72V1.72C24 .77 23.2 0 22.22 0"})))}},93019:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var r=a(95155);a(12115);var s=a(64823),n=a(50149);function l(e){let{href:t="/"}=e,a=(0,s.W)();return(0,r.jsx)(n.default,{title:a("logo_description"),href:t,className:"flex","aria-label":"Home page",prefetch:!1,children:(0,r.jsx)("img",{width:207,height:51,alt:"Icecat logo",src:"/static/images/logo_new_v2.svg"})})}},95224:(e,t,a)=>{"use strict";a.d(t,{SearchBox:()=>E});var r=a(95155),s=a(95225),n=a.n(s),l=a(12115),i=a(91996),c=a(84613),o=a.n(c),d=a(2821);function u(e){let{items:t,itemToString:a,onSelectedItemChange:s}=e,{isOpen:n,getMenuProps:l,getInputProps:c,highlightedIndex:u,getItemProps:h}=(0,i.Bp)({onSelectedItemChange:s,inputValue:e.inputValue,onInputValueChange(t){let{inputValue:a}=t;e.onInput(a)},items:t,itemToString:a});return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{"aria-label":"Search",type:"text",className:(0,d.A)(o().input,e.inputClassName),...c({ref:e.inputRef,onKeyDown:t=>{e.onSubmit&&"Enter"===t.key&&-1===u&&e.onSubmit(t)}})}),(0,r.jsx)("div",{className:(0,d.A)(o().list,{[o().open]:n}),...l(),children:n&&t.map((t,a)=>(0,r.jsx)("div",{className:(0,d.A)(o().listItem,{[o().active]:a===u}),...h({item:t,index:a}),children:e.itemToLabel?e.itemToLabel(t,e.inputValue):t.label},t.value))})]})}var h=a(75505),m=a(64823),p=a(13732);let _=e=>{let{onClick:t}=e,a=(0,m.W)();return(0,r.jsx)("div",{className:"inline-block",children:(0,r.jsx)(h.A,{onClick:t,"aria-label":a("txt_search_products"),...(0,p.M)({id:"header-search.search-button",elementType:"button"}),children:(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:n().searchIcon}),a("txt_search_products")]})})})};var f=a(31162),x=a(66143);let g=async(e,t)=>{let a=await f.A.get("/search/rest/sug-one",{params:{query:e,tmp:t},cache:!1});return{tmp:a.data.tmp,items:a.data.sug}},j=async(e,t)=>{let a,r=await f.A.get("/search/rest/sug-two",{params:{query:e,tmp:t},cache:!1});return r.data.sup&&(a=(await (0,x.F)([r.data.sup])).at(0)),{categories:r.data.cats.map(e=>({count:e.count,urlName:e.info.url_name,name:e.info.name,id:e.info.category_id})),products:r.data.prod.map(e=>({id:+e.product_id,title:e.title,categoryName:e.category_name,mpn:e.mpn,urlName:e.url})),brand:a}};var y=a(44636);let v={brand:null,queries:[],products:[],categories:[]};var b=a(13060),w=a(46274),N=a(14773),I=a.n(N),k=a(51601);let P=e=>{let{text:t,highlight:a,wrapper:s=e=>(0,r.jsx)(w.y,{children:e})}=e,n=RegExp("(".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").trim(),")"),"gi"),l=t.split(n);return(0,r.jsx)("div",{children:l.map(e=>n.test(e)?s(e):e)})};var C=a(12610);let S=e=>(0,r.jsx)("div",{className:I().container,children:(0,r.jsxs)("div",{className:"flex flex-nowrap items-center justify-between gap-1",children:[(0,r.jsx)("div",{className:"w-2/12",children:(0,r.jsx)(k.GalleryImage,{productId:e.item.id,quality:C.hv.THUMB})}),(0,r.jsx)("div",{className:"w-7/12 flex-shrink",children:(0,r.jsx)(P,{text:"".concat(e.item.title," (").concat(e.item.categoryName,")"),highlight:e.query})}
1),(0,r.jsx)("div",{className:"w-3/12 self-start break-all",children:e.item.mpn})]})});function A(e,t){return(null==e?void 0:e.length)>t?e.slice(0,t)+"...":e}var O=a(64343);let L={userclick:"true"};var T=function(e){return e.PRODUCT="product",e.CATEGORY="category",e.QUERY="queries",e.BRAND="brand",e}(T||{});let M=e=>({value:e.id,type:"category",label:e.name,data:e}),q=e=>({value:e.id,type:"product",data:e,label:e.name}),z=e=>({value:e,type:"queries",label:e}),E=()=>{let e=(()=>{let e=(0,O.x)();return(0,l.useCallback)(t=>{if(t.startsWith("/")&&!t.startsWith("/".concat(e,"/")))return window.location.href="/".concat(e).concat(t);window.location.href=t},[e])})(),{getResults:t,results:a}=(()=>{let[e,t]=(0,l.useState)(v),a=async(e,a)=>{let{categories:r,brand:s,products:n}=await j(e,a);t(e=>({...e,categories:r,products:n,brand:s}))},r=(0,y._6)(async e=>{if(s(),e.length>1){let r=await g(e);return t(e=>({...e,queries:r.items})),a(e,r.tmp)}},500),s=()=>{t(v)};return{results:e,getResults:r,resetResults:s}})(),[s,i]=(0,l.useState)("");function c(t){e((0,b.u)({keyword:t,...L}))}function o(){c(s)}let d=(0,l.useCallback)(e=>{i(e),t(e)},[]),h=function(){let{categories:e,products:t,brand:r,queries:s}=a,n=s.slice(0,4).map(z),l=t.map(q),i=e.map(M);return[...r?[{type:"brand",label:r.name,value:r.id}]:[],...i,...n,...l]}();return(0,r.jsxs)("div",{className:"flex text-sm",children:[(0,r.jsx)("div",{className:"w-2/3 pe-2",children:(0,r.jsx)(u,{onSubmit:o,onSelectedItemChange:t=>{let{selectedItem:a}=t;return(t=>{var a,r;"brand"===t.type?(a=t.label,e((0,b.u)({supplierLocalName:a,...L}))):"queries"===t.type?c(t.label):"category"===t.type?(r=t.data.urlName,e((0,b.u)({categoryUrl:r,keyword:s,...L}))):"product"===t.type&&e(t.data.urlName)})(a)},itemToString:e=>e.label,items:h,onInput:d,inputClassName:n().input,itemToLabel:W,inputValue:s})}),(0,r.jsx)("div",{className:"flex-grow px-2",children:(0,r.jsx)(_,{onClick:o})})]})},W=(e,t)=>{switch(e.type){case"product":return(0,r.jsx)(S,{item:e.data,query:t});case"category":let a;if(a=e.label,t.toLowerCase()===a.toLowerCase())return(0,r.jsx)("div",{className:"cursor-pointer",children:D(e.label)});return(0,r.jsx)("div",{className:"cursor-pointer text-wrap",children:(0,r.jsx)(P,{highlight:A(t,100),text:"".concat(A(t,100)," in ").concat(e.label," (").concat(e.data.count,")")})});case"queries":return(0,r.jsx)("div",{className:"cursor-pointer",children:(0,r.jsx)(P,{text:e.label,highlight:t,wrapper:D})});case"brand":return(0,r.jsx)("div",{className:"cursor-pointer",children:D(e.label)})}},D=e=>(0,r.jsx)(w.y,{children:e},e+Date.now())},95225:e=>{e.exports={container:"style_container__p0FfS",input:"style_input__godxI",searchIcon:"style_searchIcon__jWQr7"}},96439:e=>{e.exports={root:"styles_root___sKkA",open:"styles_open__racmn"}}}]);
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.