PageSourceSearch

https://www.hardwarestore.com/static/pwa/66.7c6616e531bb2fc5fe19.js

js hardwarestore.com collected 2026-10-02 06:16:28 UTC 48,905 bytes, 241 lines download raw bytes

1/*! @version pwa-studio: 12.5.0, @magento/venia-ui: ~11.5.0, @magento/upward-security-headers: ~1.0.14, @magento/pwa-theme-venia: ~2.4.0, @magento/pwa-buildpack: ~11.5.3, @magento/peregrine: ~14.4.1, @magento/pagebuilder: ~9.3.2, @magento/eslint-config: ~1.5.0, @magento/babel-preset-peregrine: ~1.3.3, @apollo/client: ^3.6.7 */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[66,152],{"+qE3":function(e,t,r){"use strict"
3var n,o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function ReflectApply(e,t,r){return Function.prototype.apply.call(e,t,r)}
4n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function ReflectOwnKeys(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function ReflectOwnKeys(e){return Object.getOwnPropertyNames(e)}
5var s=Number.isNaN||function NumberIsNaN(e){return e!=e}
6function EventEmitter(){EventEmitter.init.call(this)}e.exports=EventEmitter,e.exports.once=function once(e,t){return new Promise(function(r,n){function errorListener(r){e.removeListener(t,resolver),n(r)}function resolver(){"function"==typeof e.removeListener&&e.removeListener("error",errorListener),r([].slice.call(arguments))}eventTargetAgnosticAddListener(e,t,resolver,{once:!0}),"error"!==t&&function addErrorHandlerIfEventEmitter(e,t,r){"function"==typeof e.on&&eventTargetAgnosticAddListener(e,"error",t,r)}(e,errorListener,{once:!0})})},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0
7var l=10
8function checkListener(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _getMaxListeners(e){return void 0===e._maxListeners?EventEmitter.defaultMaxListeners:e._maxListeners}function _addListener(e,t,r,n){var o,a,s
9if(checkListener(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount
10else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=_getMaxListeners(e))>0&&s.length>o&&!s.warned){s.warned=!0
11var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")
12l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,function ProcessEmitWarning(e){console&&console.warn}()}return e}function _onceWrap(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(n)
13return o.listener=r,n.wrapFn=o,o}function _listeners(e,t,r){var n=e._events
14if(void 0===n)return[]
15var o=n[t]
16return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function unwrapListeners(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r]
17return t}(o):arrayClone(o,o.length)}function listenerCount(e){var t=this._events
18if(void 0!==t){var r=t[e]
19if("function"==typeof r)return 1
20if(void 0!==r)return r.length}return 0}function arrayClone(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n]
21return r}function eventTargetAgnosticAddListener(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r)
22else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)
23e.addEventListener(t,function wrapListener(o){n.once&&e.removeEventListener(t,wrapListener),r(o)})}}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".")
24l=e}}),EventEmitter.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function setMaxListeners(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".")
25return this._maxListeners=e,this},EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function emit(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r])
26var n="error"===e,o=this._events
27if(void 0!==o)n=n&&void 0===o.error
28else if(!n)return!1
29if(n){var s
30if(t.length>0&&(s=t[0]),s instanceof Error)throw s
31var l=new Error("Unhandled error."+(s?" ("+s.message+")":""))
32throw l.context=s,l}var i=o[e]
33if(void 0===i)return!1
34if("function"==typeof i)a(i,this,t)
35else{var c=i.length,u=arrayClone(i,c)
36for(r=0;r<c;++r)a(u[r],this,t)}return!0},EventEmitter.prototype.addListener=function addListener(e,t){return _addListener(this,e,t,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function prependListener(e,t){return _addListener(this,e,t,!0)},EventEmitter.prototype.once=function once(e,t){return checkListener(t),this.on(e,_onceWrap(this,e,t)),this},EventEmitter.prototype.prependOnceListener=function prependOnceListener(e,t){return checkListener(t),this.prependListener(e,_onceWrap(this,e,t)),this},EventEmitter.prototype.removeListener=function removeListener(e,t){var r,n,o,a,s
37if(checkListener(t),void 0===(n=this._events))return this
38if(void 0===(r=n[e]))return this
39if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
39("removeListener",e,r.listener||t))
40else if("function"!=typeof r){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,o=a
41break}if(o<0)return this
420===o?r.shift():function spliceOne(e,t){for(;t+1<e.length;t++)e[t]=e[t+1]
43e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function removeAllListeners(e){var t,r,n
44if(void 0===(r=this._events))return this
45if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this
46if(0===arguments.length){var o,a=Object.keys(r)
47for(n=0;n<a.length;++n)"removeListener"!==(o=a[n])&&this.removeAllListeners(o)
48return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t)
49else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n])
50return this},EventEmitter.prototype.listeners=function listeners(e){return _listeners(this,e,!0)},EventEmitter.prototype.rawListeners=function rawListeners(e){return _listeners(this,e,!1)},EventEmitter.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):listenerCount.call(e,t)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?n(this._events):[]}},"1tLu":function(e,t,r){"use strict"
51r.d(t,"a",function(){return o})
52var n=r("q1tI")
53const o=()=>{const[e,t]=Object(n.useState)(!0)
54return Object(n.useEffect)(()=>(t(!1),()=>t(!0)),[]),e}},"8oxB":function(e,t){var r,n,o=e.exports={}
55function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(r===setTimeout)return setTimeout(e,0)
56if((r===defaultSetTimout||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0)
57try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){r=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}()
58var a,s=[],l=!1,i=-1
59function cleanUpNextTick(){l&&a&&(l=!1,a.length?s=a.concat(s):i=-1,s.length&&drainQueue())}function drainQueue(){if(!l){var e=runTimeout(cleanUpNextTick)
60l=!0
61for(var t=s.length;t;){for(a=s,s=[];++i<t;)a&&a[i].run()
62i=-1,t=s.length}a=null,l=!1,function runClearTimeout(e){if(n===clearTimeout)return clearTimeout(e)
63if((n===defaultClearTimeout||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e)
64try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}o.nextTick=function(e){var t=new Array(arguments.length-1)
65if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r]
66s.push(new Item(e,t)),1!==s.length||l||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=noop,o.addListener=noop,o.once=noop,o.off=noop,o.removeListener=noop,o.removeAllListeners=noop,o.emit=noop,o.prependListener=noop,o.prependOnceListener=noop,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"9B/+":function(e,t,r){"use strict"
67var n=r("17x9"),o=r("q1tI"),a=r.n(o),s=r("y1Xp"),l={root:"fieldIcons-root-ecG relative",icon:"fieldIcons-icon-l7Q absolute right-[25px] top-1/2 transform -translate-y-1/2",secondIcon:"fieldIcons-secondIcon--wT fieldIcons-icon-l7Q absolute right-[25px] top-1/2 transform -translate-y-1/2 right-[50px]"}
68const i=e=>{const{icon:t,children:r,secondIcon:n}=e,o=Object(s.a)(l,e.classes)
69return a.a.createElement("span",{className:o.root},r,a.a.createElement("span",{className:[o.icon,"fieldIcons-icon"].join(" ")},t),n&&a.a.createElement("span",{className:o.secondIcon},n))}
70i.propTypes={classes:Object(n.shape)({root:n.string,icon:n.string}),icon:n.node,secondIcon:n.node,children:n.node.isRequired}
71t.a=i},"9fay":function(e,t,r){"use strict"
72var n=r("pVnL"),o=r.n(n),a=r("QILm"),s=r.n(a),l=r("17x9"),i=r.n(l),c=r("q1tI"),u=r.n(c)
73const d=["color"],p=Object(c.forwardRef)((e,t)=>{let{color:r="currentColor"}=e,n=s()(e,d)
74return u.a.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"}
74,u.a.createElement("path",o()({fillRule:"evenodd",clipRule:"evenodd",d:"M2 7C2 4.23858 4.23858 2 7 2C9.76142 2 12 4.23858 12 7C12 9.76142 9.76142 12 7 12C4.23858 12 2 9.76142 2 7ZM7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14C8.57591 14 10.0302 13.4792 11.2001 12.6004C11.2281 12.6376 11.259 12.6733 11.2929 12.7071L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L12.7071 11.2929C12.6733 11.259 12.6376 11.2281 12.6004 11.2001C13.4792 10.0302 14 8.57591 14 7C14 3.13401 10.866 0 7 0Z",fill:r},n)))})
75p.propTypes={color:i.a.string},p.displayName="Search",t.a=p},"9ipd":function(e,t,r){"use strict"
76r.d(t,"a",function(){return m})
77var n=r("q1tI"),o=r("Ty5D"),a=r("qQMA"),s=r("OlZo"),l=r("Cess"),i=r("JpXh"),c=r("yDKd"),u=r("TnAW")
78var d=r("GfXF"),p=r("rygi"),b=r("D+9r")
79const m=e=>{const[t,r]=Object(n.useState)(!1),[m,h]=Object(n.useState)(!1),[f,g]=Object(n.useState)(),[,{addRecentlySearched:y}]=Object(c.b)(),[v,_]=Object(n.useState)(!1),[x,w]=Object(n.useState)(""),O=function useDeferredValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500
80const[r,o]=Object(n.useState)(e)
81return Object(n.useEffect)(()=>{const r=setTimeout(()=>{o(e)},t)
82return()=>clearTimeout(r)},[e,t]),r}(x),{innerWidth:E}=Object(a.b)(),{screens:C}=Object(u.b)(),j=E<C.lg,[L]=Object(d.b)(),{elementRef:k,expanded:S,setExpanded:I}=Object(i.a)(),[{searchValue:T},{actions:{setSearchValue:R}}]=Object(s.b)(),P=Object(p.a)().get("query"),B=Object(o.h)(),{push:N}=B,[,{dispatch:M}]=Object(l.b)(),V=Object(n.useCallback)(async()=>{try{const e=await b.a.getUrlRedirects()
83g(e.data.klevu_keywordUrlMap)}catch(e){}},[])
84Object(n.useEffect)(()=>{V()},[V])
85const A=Object(n.useMemo)(()=>{const e={}
86if(f)try{f.forEach(t=>{let{keywords:r,url:n}=t
87const o=new URL(n)
88r.forEach(t=>{e[t]=o.pathname})})}catch(e){}return e},[f])
89Object(n.useEffect)(()=>{const e=!!O&&O.length>2
90r(e),R(O)},[O,R])
91const q=Object(n.useCallback)(()=>{I(!0)},[I]),F=Object(n.useCallback)(t=>{let{search_query:r}=t
92if(!r&&r.trim().length<0)return
93y(r)
94const n=A[r.toLowerCase()]
95N(n||"/search?query=".concat(r)),I(!1),R(""),L().then(e=>{let{data:{klevuUserData:t}}=e
96M({type:"KLEVU_SEARCH_TERM",payload:{search_query:r,userIp:t.ip}})}),j&&e()},[y,A,N,I,R,M,j,e,L]),D=Object(n.useMemo)(()=>({search_query:T}),[T])
97return Object(n.useEffect)(()=>{const e=!!T&&T.length>(j?0:2)
98return r(e),!j&&v?I(!0):P===T?I(!1):void 0},[j,T,I,P,v]),{containerRef:k,handleChange:w,handleOpenSearchDesktop:q,handleSubmit:F,initialValues:D,isAutoCompleteOpen:S,setIsAutoCompleteOpen:I,setIsErasedClicked:_,setValid:r,valid:t,hasResult:m,setHasResult:h,searchValue:T}}},ANee:function(e,t,r){"use strict"
99r.r(t)
100var n=r("17x9"),o=r("q1tI"),a=r.n(o),s=r("xh82"),l=r("+TN3"),i=r("r5vi"),c=r("UTCO"),u=r("lSNA"),d=r.n(u),p=r("TSYQ"),b=r.n(p),m=r("R+zS"),h=r("DNTo"),f=r("g7E7"),g=r("dqEZ"),y=r("KYzC"),v=r("0vvA"),_=r("hkJe"),x=r("cJJp"),w=r("6cKn"),O=r("9r/0")
101function ownKeys(e,t){var r=Object.keys(e)
102if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e)
103t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{}
104t%2?ownKeys(Object(r),!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const E=a.a.lazy(()=>r.e(182).then(r.bind(null,"F5b4"))),C=e=>{let{items:t,title:r,isLoading:n,pickupStoreOverride:s}=e
105const{storeLocation:l,bestsellerCategories:i,selectedBestsellerCategory:c,selectedBestsellerCategoryKey:u,setSelectedBestsellerCategoryKey:d}=(e=>{let{data:t,pickupStoreOverride:r}=e
106const[{isLoading:n,city:a,region_code:s}]=Object(w.b)(),l=Object(o.useMemo)(()=>n?null:r?"".concat(r.city,", ").concat(r.region_code):"".concat(a,", ").concat(s),[a,n,s,r]),{storeConfig:i}=Object(O.a)({fields:["bestsellers_product_categories_level"]}),c=Object(o.useMemo)(()=>i&&+i.bestsellers_product_categories_level,[i]),u=Object(o.useMemo)(()=>(null==t?void 0:t.products)||[],[null==t?void 0:t.products]),[d,p]=Object(o.useState)("top-picks"),b=Object(o.useMemo)(()=>{var e,r
107const n=(null==t?void 0:null===(e=t.categories)||void 0===e?void 0:null===(r=e.find(e=>e.level===c))||void 0===r?void 0:r.items)||[],o=[{id:"top-picks",title:"Top Picks",products:u.slice(0,20)}]
108return n.forEach(e=>{const t=u.filter(t=>{var r
109return null===(r=e.productSkus)||void 0===r?void 0:r.includes(t.sku)}).slice(0,20)
110o.push({id:e.menuItem.uid,title:e.menuItem.name,products:t})}),o},[null==t?void 0:t.categories,c,u]),m=Object(o.useMemo)(()=>b.find(e=>e.id===d),[b,d])
111return{storeLocation:l,bestsellerCategories:b,selectedBestsellerCategory:m,selectedBestsellerCategoryKey:d,setSelectedBestsellerCategoryKey:p}})({data:t,pickupStoreOverride:s}),p=Object(o.useMemo)(()=>!n&&i.map((e,t)=>a.a.createElement(g.a,{key:e.id,className:b()(_.a.bestsellerCategory,{[_.a.bestsellerCategoryFirst]:0===t,[_.a.bestsellerCategoryLast]:t===i.length-1,[_.a.bestsellerCategorySecondary]:e.id!==u,[_.a.bestsellerCategoryPrimary]:e.id===u}),onPress:()=>{d(e.id)}},a.a.createElement("span",{className:_.a.bestsellerCategoryContent},"top-picks"===e.id&&a.a.createElement("span",{className:b()({[_.a.topPickIcon]:e.id!==u})},a.a.createElement(h.a,{src:f.a})),e.title))),[i,n,u,d])
112return n?a.a.createElement(x.a,null):a.a.createElement("div",{className:_.a.root},a.a.createElement("div",{className:_.a.title},a.a.createElement("h2",null,r," ",l)),a.a.createElement("div",{className:_.a.bestsellerCategories},a.a.createElement(y.a,{slidesGap:0,isShownSideShadows:!0,threshold:.95},p)),a.a.createElement(m.a,{fallback:a.a.createElement(v.a,null),loadWhenVisible:!0,component:a.a.createElement(E,{items:c.products})}))}
113C.propTypes=_objectSpread(_objectSpread({},E.propTypes),{},{items:n.any,pickupStoreOverride:Object(n.shape)({})}),C.defaultProps=E.defaultProps
114var j=C,L=r("pVnL"),k=r.n(L),S=r("QILm"),I=r.n(S)
115const T=["isLoading"],R=e=>{let{isLoading:t}=e,r=I()(e,T)
116const[n]=Object(i.a)()
117return a.a.createElement(c.a,k()({},r,{isLoading:!!n.aubuchon_cid&&t}))}
118R.propTypes=c.a.propTypes,R.defaultProps=c.a.defaultProps
119var P,B,N,M,V=R,A=r("VkAN"),q=r.n(A),F=r("UYTu"),D=r("kUUe")
120const U=Object(F.a)(P||(P=q()(["\n    query getCurbsideFavorite {\n        curbsideFavorites {\n            ...ProductCardFragment\n        }\n    }\n    ","\n"])),D.a),Q=Object(F.a)(B||(B=q()(["\n    query getCustomerRecentPurchases($loyaltyId: String) {\n        customerRecentPurchases(loyaltyId: $loyaltyId) {\n            ...ProductCardFragment\n        }\n    }\n    ","\n"])),D.a),z=Object(F.a)(N||(N=q()(["\n    query getCustomerRecommendations($loyaltyId: String) {\n        customerRecommendations(loyaltyId: $loyaltyId) {\n            ...ProductCardFragment\n        }\n    }\n    ","\n"])),D.a),H=Object(F.a)(M||(M=q()(["\n    query getBestsellers {\n        bestsellers {\n            products {\n                ...ProductCardFragment\n            }\n            categories {\n                level\n                items {\n                    menuItem {\n                        uid\n                        name\n                        url_path\n                    }\n                    productSkus\n                }\n            }\n        }\n    }\n    ","\n"])),D.a)
121var W=r("qQMA"),K=r("XupF"),Z=r("Ovvu"),J=r("TnAW"),Y={title:"recentlyViewedProducts-title-h3k text-3xl leading-[38px] font-semibold text-center text-black mb-5 lg_mb-12.5 lg_text-6xl",productsCarousel:"recentlyViewedProducts-productsCarousel-Ni0",base:"recentlyViewedProducts-base-1-a !top-[135px] !translate-y-none",root:"recentlyViewedProducts-root-t3R arrow-root-Zp4 arrowButton-root_highPriority-vmp arrowButton-root--pP h-[50px] w-[50px] outline-none transition-colors rounded-full text-black bg-gray-light lg_hover_bg-gray lg_hover_text-black lg_active_bg-black lg_active_text-white arrow-base-vot absolute top-1/2 -translate-y-1/2 z-1 recentlyViewedProducts-base-1-a !top-[135px] !translate-y-none",disabled:"recentlyViewedProducts-disabled-CqU arrow-disabled-MOX arrowButton-root_highDisabledPriority-4vK arrowButton-root--pP h-[50px] w-[50px] outline-none transition-colors rounded-full text-black bg-gray-light text-black text-opacity-30 cursor-not-allowed arrow-base-vot absolute top-1/2 -translate-y-1/2 z-1 recentlyViewedProducts-base-1-a !top-[135px] !translate-y-none",root_isInverted:"recentlyViewedProducts-root_isInverted-rLs arrow-root_isInverted-POR arrowButton-root_normalPriority-SLt arrowButton-root--pP h-[50px] w-[50px] outline-none transition-colors rounded-full text-black bg-white outline-gray lg_hover_bg-gray lg_hover_text-black lg_active_bg-black lg_active_text-white arrow-base-vot absolute top-1/2 -translate-y-1/2 z-1 recentlyViewedProducts-base-1-a !top-[135px] !translate-y-none",disabled_isInverted:"recentlyViewedProducts-disabled_isInverted-k6j arrow-disabled_isInverted-wCW arrowButton-root_normalDisabledPriority-dq1 arrowButton-root--pP h-[50px] w-[50px] outline-none transition-colors rounded-full text-black bg-white outline-gray text-black text-opacity-30 curs
121or-not-allowed arrow-base-vot absolute top-1/2 -translate-y-1/2 z-1 recentlyViewedProducts-base-1-a !top-[135px] !translate-y-none"},X=r("zrp3"),$=r("fMvu")
122var G,ee=()=>{const[e]=Object($.b)(),{innerWidth:t}=Object(W.b)(),{screens:r}=Object(J.b)(),n=t<r.lg
123return a.a.createElement(a.a.Fragment,null,!!e.length&&a.a.createElement(X.a,{width:"100%",height:n?"428px":"544px"}))}
124const te=Object(F.a)(G||(G=q()(["\n    query getProductsBySku($sku: [String], $pageSize: Int!) {\n        products(filter: { sku: { in: $sku } }, pageSize: $pageSize) {\n            items {\n                ...ProductCardFragment\n            }\n        }\n    }\n    ","\n"])),D.a),re=e=>{let{title:t,isLoading:r,showOnlySmallThumbnails:n}=e
125const{innerWidth:s}=Object(W.b)(),{screens:i}=Object(J.b)(),c=s<i.lg,{itemsList:u,storeConfig:d,recentlyViewedProducts:p}=(()=>{var e
126const[t]=Object($.b)(),{data:r}=Object(l.e)(te,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",variables:{sku:t,pageSize:t.length},skip:!t.length}),n=Object(o.useMemo)(()=>{const e=[]
127return t.forEach(t=>{var n
128null==r||null===(n=r.products)||void 0===n||n.items.forEach(r=>{r.sku===t&&e.unshift(r)})}),e},[null==r?void 0:null===(e=r.products)||void 0===e?void 0:e.items,t]),{storeConfig:a}=Object(O.a)({fields:["product_url_suffix"]})
129return{itemsList:n,storeConfig:a,recentlyViewedProducts:t}})()
130if(r)return a.a.createElement(ee,null)
131const m=u&&!n?a.a.createElement("div",{className:Y.title},t):null,h=c?Z.a:y.a,f=c?5:20
132return a.a.createElement("div",{className:b()({[Y.productsCarousel]:!n,[Y.smallThumbnails]:n},"recentlyViewed-products")},!!p.length&&m,a.a.createElement(h,{slidesGap:f,arrowClasses:{root:Y.root,disabled:Y.disabled,root_isInverted:Y.root_isInverted,disabled_isInverted:Y.disabled_isInverted},threshold:1,isPaginationVisible:!n},u.map((e,t)=>a.a.createElement(K.a,{key:t,product:e,storeConfig:d,showOnlySmallThumbnails:n}))))}
133re.propTypes={isLoading:n.bool,title:n.string,showOnlySmallThumbnails:n.bool}
134var ne=re
135const oe=e=>{let{productCarouselType:t,productCarouselTitle:r,showOnlySmallThumbnails:n,pickupStoreOverride:s}=e
136const{items:u,isLoading:d,CarouselComponent:p}=((e,t)=>{const[r]=Object(i.a)(["aubuchon_cid"]),n=Object(o.useMemo)(()=>({curbside_favorites:{query:U,name:"curbsideFavorites",component:c.a},customer_recent_purchases:{query:Q,name:"customerRecentPurchases",variables:{loyaltyId:r.aubuchon_cid},skip:!r.aubuchon_cid,component:V},customer_recommendations:{query:z,name:"customerRecommendations",variables:{loyaltyId:r.aubuchon_cid},skip:!r.aubuchon_cid,component:V},bestsellers:{query:H,name:"bestsellers",component:j},recently_viewed_products:{query:H,name:"recentlyViewedProducts",skip:!0,component:ne}}),[r])[e],a={headers:{PickupStore:null==t?void 0:t.id}},{data:s,loading:u}=Object(l.e)(n.query,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",variables:n.variables,skip:"skip"in n&&n.skip,context:t?a:{}})
137return{items:Object(o.useMemo)(()=>s?s[n.name]:[],[s,n.name]),isLoading:!s&&u,CarouselComponent:n.component}})(t,s)
138return a.a.createElement(p,{items:u,title:r,isLoading:d,showOnlySmallThumbnails:n,pickupStoreOverride:s})}
139oe.propTypes={productCarouselType:n.string,productCarouselTitle:n.string,showOnlySmallThumbnails:n.bool,pickupStoreOverride:Object(n.shape)({})},oe.defaultProps={productCarouselType:"",productCarouselTitle:""}
140t.default=a.a.memo(oe,(e,t)=>Object(s.a)(e.children,t.children))},HYny:function(e,t,r){"use strict"
141var n,o=r("17x9"),a=r("q1tI"),s=r.n(a),l=r("Lm/n"),i=r("Cess"),c=r("GfXF"),u=r("W9Wp"),d=r("9r/0"),p=r("D+9r"),b=r("VkAN"),m=r.n(b),h=r("UYTu"),f=r("kUUe")
142var g={getProductsByUrlKeyQuery:Object(h.a)(n||(n=m()(["\n    query getProductsByUrlKey($url_keys: [String]) {\n        products(filter: { url_key: { in: $url_keys } }) {\n            items {\n                ...ProductCardFragment\n            }\n        }\n    }\n    ","\n"])),f.a)}
143var y="loader-root-eFZ grid grid-flow-col justify-center gap-x-2.5",v="loader-text-8bz font-semibold text-sm",_="loader-dot-Myp w-[3px] h-[3px] rounded-full bg-primary animate-searchBarDots",x="loader-dots-2EY grid grid-flow-col gap-x-1 content-center pt-1"
144var w=()=>{const e=Object(a.useCallback)(e=>s.a.createElement("div",{className:_,style:{animationDelay:"".concat(e,"ms")}}),[]),t=Object(a.useMemo)(()=>Array.from(Array(3)).map((t,r)=>{const n=200*r
145return s.a.createElement(a.Fragment,{key:r},e(n))}),[e])
146return s.a.createElement("div",{className:y},s.a.createElement("p",{className:v},"Finding Results"),s.a.createElement("div",{className:x},t))},O="autocomplete-root_hidden-LMz autocomplete-root-UmB lg_absolute lg_w-full lg_py-15 lg_z-1 lg_top-[50px] lg_right-0 lg_bg-white lg_rounded lg_shadow-b lg_duration-200 lg_ease-linear lg_transition-[background-color] lg_pl-5 lg_pr-3.5 xxxxl_px-0 autocomplete-hidden-8v6 opacity-0 invisible !py-0 transition-none before_top-[-25px] lg_bg-transparent",E="autocomplete-root_visible-cGq autocomplete-root-UmB lg_absolute lg_w-full lg_py-15 lg_z-1 lg_top-[50px] lg_right-0 lg_bg-white lg_rounded lg_shadow-b lg_duration-200 lg_ease-linear lg_transition-[background-color] lg_pl-5 lg_pr-3.5 xxxxl_px-0 autocomplete-visible-QaL opacity-100 visible before_absolute before_block before_w-[200%] before_top-[-25px] before_-left-1/2 before_bg-white before_z-[-1] before_translate-y-[-40px] before_transition-all before_duration-200",C="autocomplete-suggestions-r8M grid gap-5 grid-flow-col xl_grid-flow-col xl_grid-cols-searchResultsSmallDesktop xxxl_grid-cols-searchResultsDesktop",j="autocomplete-loader-Ych py-[13px] text-center"
147const L=s.a.lazy(()=>Promise.all([r.e(84),r.e(101)]).then(r.bind(null,"QOzh"))),k=e=>{let{setVisible:t,valid:r,visible:n,hasResult:o,setHasResult:b,handleCloseSearchBox:m,isAutoCompleteOpen:h,searchValue:f}=e
148const{autocomplete:y,categories:v,popularSearchTerms:_,popularProducts:x,defaultProducts:k,products:S,isLoading:I}=(e=>{var t,r,n,o,s,b,m,h
149const{valid:f,visible:y,setHasResult:v,searchValue:_}=e,{getProductsByUrlKeyQuery:x}=g,[w,O]=Object(a.useState)(),[E,C]=Object(a.useState)(),[j,L]=Object(a.useState)(),[k,S]=Object(a.useState)(!1),I=Object(a.useRef)(null),[,{dispatch:T}]=Object(i.b)(),{storeConfig:R}=Object(d.a)({fields:["product_url_suffix"]}),[P,{data:B}]=Object(l.a)(x,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first"}),[N]=Object(c.b)(),M=Object(a.useCallback)(e=>{clearTimeout(I.current),I.current=setTimeout(()=>{N().then(t=>{let{data:{klevuUserData:r}}=t
150T({type:"KLEVU_SEARCH_TERM",payload:{search_query:e,userIp:r.ip}})})},1e3)},[T,N]),V=Object(a.useCallback)(async()=>{try{const[e,t]=await Promise.all([p.a.getDefaultSearchData(),p.a.getRecommendedProducts()])
151C(e.data),L(t.data)}catch(e){}},[]),A=Object(a.useCallback)(async e=>{let t
152try{t=setTimeout(()=>S(!0),1e3)
153const{data:{klevuUserData:r}}=await N(),n=await p.a.getSearchData(e,r.ip)
154O(n),M(e)}catch(e){}finally{clearTimeout(t),S(!1)}},[M,N])
155Object(a.useEffect)(()=>()=>{clearTimeout(I.current)},[]),Object(a.useEffect)(()=>{y&&f&&A(_)},[_,f,y,A]),Object(a.useEffect)(()=>{f||O(null)},[f]),Object(a.useEffect)(()=>{V()},[V])
156const q=Object(a.useMemo)(()=>{if(R)return R.product_url_suffix},[R])
157Object(a.useEffect)(()=>{var e
158const t=E&&(null===(e=E.klevu_popularProductsOfSite)||void 0===e?void 0:e.map(e=>{let{url:t}=e
159const r=t.split("/").pop().replace(".html","")
160return q?r.replace(q,""):r}))
161t&&P({variables:{url_keys:t}})},[E,q,P])
162const F=null==w?void 0:null===(t=w.suggestionResults)||void 0===t?void 0:null===(r=t.find(e=>{let{id:t}=e
163return"autocomplete"===t}))||void 0===r?void 0:r.suggestions,D=null==w?void 0:null===(n=w.queryResults)||void 0===n?void 0:null===(o=n.find(e=>{let{id:t}=e
164return"categories"===t}))||void 0===o?void 0:o.records,U=null==w?void 0:null===(s=w.queryResults)||void 0===s?void 0:null===(b=s.find(e=>{let{id:t}=e
165return"products"===t}))||void 0===b?void 0:b.records,Q=null!=U&&U.length?U:null,z=null==B?void 0:B.products.items,H=null==E?void 0:E.klevu_webstorePopularTerms,W=null==j?void 0:null===(m=j.queryResults)||void 0===m?void 0:null===(h=m.find(e=>{let{id:t}=e
166return"recommendations"===t}))||void 0===h?void 0:h.records
167return Object(a.useEffect)(()=>{v(!!Q||!!z)},[Q,z,v]),Object(u.a)({products:Q,type:"search"}),{autocomplete:F,categories:D,defaultProducts:z,products:Q,popularSearchTerms:H,popularProducts:W,isLoading:k}})({valid:r,visible:n,hasResult:o,setHasResult:b,searchValue:f}),T=n||I?E:O
168return s.a.createElement("div",{className:T},I?s.a.createElement("div",{className:j},s.a.createElement(w,null)):s.a.createElement("div",{className:C},s.a.createElement(L,{autocomplete:y,popularSearchTerms:_,categories:v,defaultProducts:k,popularProducts:x,products:S,searchValue:f,setVisible:t,visible:n,valid:r,handleCloseSearchBox:m,isAutoCompleteOpen:h})))}
169k.propTypes={setVisible:o.func,visible:o.bool,valid:o.bool,hasResult:o.bool,setHasResult:o.func,handleCloseSearchBox:o.func,isAutoCompleteOpen:o.bool,searchValue:o.string}
170t.a=s.a.memo(k)},"Hq+J":function(e,t,r){"use strict"
171var n=r("pVnL"),o=r.n(n),a=r("QILm"),s=r.n(a),l=r("TSYQ"),i=r.n(l),c=r("8UhI"),u=r("17x9"),d=r("q1tI"),p=r.n(d),b=r("c3RJ"),m=r("y1Xp"),h=r("9B/+"),f=r("Xr8/"),g={root:"textInput-root-8bs message-inputRoot-Lcf relative text-base",input:"textInput-input-Jz0 h-[50px] lg_h-[54px] field-input_base-JiC w-full max-w-full px-[19px] lg_px-[24px] py-[12px] lg_py-[13px] bg-white border border-solid border-gray text-base m-0 rounded text-base text-gray-dark placeholder-gray appearance-none outline-none lg_hover_border-black focus_text-black focus_border-primary focus_outline-none disabled_border-gray disabled_bg-gray-light disabled_cursor-not-allowed",input_error:"textInput-input_error-9x2 textInput-input-Jz0 h-[50px] lg_h-[54px] field-input_base-JiC w-full max-w-full px-[19px] lg_px-[24px] py-[12px] lg_py-[13px] bg-white border border-solid border-gray text-base m-0 rounded text-base text-gray-dark placeholder-gray appearance-none outline-none lg_hover_border-black focus_text-black focus_border-primary focus_outline-none disabled_border-gray disabled_bg-gray-light disabled_cursor-not-allowed",input_shimmer:"textInput-input_shimmer-Eo6 textInput-input-Jz0 h-[50px] lg_h-[54px] field-input_base-JiC w-full max-w-full px-[19px] lg_px-[24px] py-[12px] lg_py-[13px] bg-white border border-solid border-gray text-base m-0 rounded text-base text-gray-dark placeholder-gray appearance-none outline-none lg_hover_border-black focus_text-black focus_border-primary focus_outline-none disabled_border-gray disabled_bg-gray-light disabled_cursor-not-allowed",iconPadding:"textInput-iconPadding-BLE pr-[39px] lg_pr-[39px]"}
172const y=["classes","field","icon","message","secondIcon"],v=e=>{const{classes:t,field:r,icon:n,message:a,secondIcon:l}=e,u=s()(e,y),d=Object(b.a)(r),v=Object(m.a)(g,t),_=d.error?v.input_error:v.input,x=v.icon?{icon:v.icon}:{},w=v.rootError?{root_error:v.rootError}:{}
173return p.a.createElement("div",{className:v.root,"data-state":null!=d&&d.error?"error":""},p.a.createElement(h.a,{icon:n,secondIcon:l,classes:x},p.a.createElement(c.i,o()({},u,{className:i()(_,{[v.iconPadding]:!!n}),field:r}))),p.a.createElement(f.a,{fieldState:d,classes:w},a))}
174v.propTypes={classes:Object(u.shape)({root:u.string,input:u.string,icon:u.string,iconPadding:u.string,rootError:u.string}),field:u.string.isRequired,icon:u.node,secondIcon:u.node,message:u.node}
175t.a=v},IPSu:function(e,t,r){"use strict"
176var n=r("17x9"),o=r("q1tI"),a=r.n(o),s=r("DNTo"),l=r("9fay"),i=r("zwR5"),c=r("Hq+J"),u=r("8UhI"),d=r("Ty5
176D"),p=r("qQMA"),b=r("OlZo"),m=r("TnAW"),h=r("rygi")
177var f="searchField-searchInput-4lb field-input_base-JiC w-full max-w-full px-[19px] lg_px-[24px] py-[12px] lg_py-[13px] bg-white border border-solid border-gray text-base m-0 rounded text-base text-gray-dark placeholder-gray appearance-none outline-none lg_hover_border-black focus_text-black focus_border-primary focus_outline-none disabled_border-gray disabled_bg-gray-light disabled_cursor-not-allowed m-0 pl-[15px] pr-10 h-10 w-full max-w-full text-sm rounded transition-[width] lg_pl-[25px] lg_pr-[30px] lg_h-[50px] lg_text-base lg_bg-gray-light lg_hover_border-primary",g="searchField-searchBoxInput-v-7 searchField-searchInput-4lb field-input_base-JiC w-full max-w-full px-[19px] lg_px-[24px] py-[12px] lg_py-[13px] bg-white border border-solid border-gray text-base m-0 rounded text-base text-gray-dark placeholder-gray appearance-none outline-none lg_hover_border-black focus_text-black focus_border-primary focus_outline-none disabled_border-gray disabled_bg-gray-light disabled_cursor-not-allowed m-0 pl-[15px] pr-10 h-10 w-full max-w-full text-sm rounded transition-[width] lg_pl-[25px] lg_pr-[30px] lg_h-[50px] lg_text-base lg_bg-gray-light lg_hover_border-primary pl-[20px]",y="searchField-searchRoot-YJ6 w-full",v="searchField-searchRootOpened-mLH searchField-searchRoot-YJ6 w-full",_="searchField-searchIcon-IW5 text-black text-opacity-40 searchField-searchIconClickableArea-8Hc relative before_absolute before_top-1/2 before_left-1/2 before_w-10 before_h-10 before_-translate-x-1/2 before_-translate-y-1/2 lg_before_w-12.5 lg_before_h-12.5",x="searchField-searchBoxActive-l57 bg-primary text-white w-10 h-10 rounded-r-[5px]",w="searchField-searchBoxIcon-mQT text-black text-opacity-40 w-10 h-10 rounded-r-[5px]",O="searchField-eraseButton-PiO w-5 h-5 rounded bg-gray-dark bg-opacity-20 lg_mr-4.5",E="searchField-eraseButtonIcon-a1- opacity-40 flex justify-center",C="searchField-searchIconActive-bUU text-primary lg_text-white searchField-searchIconClickableArea-8Hc relative before_absolute before_top-1/2 before_left-1/2 before_w-10 before_h-10 before_-translate-x-1/2 before_-translate-y-1/2 lg_before_w-12.5 lg_before_h-12.5",j="searchField-iconActive-n7L fieldIcons-icon-l7Q absolute right-[25px] top-1/2 transform -translate-y-1/2 lg_!bg-primary lg_hover_!bg-primaryHover lg_active_!bg-primaryActive lg_outline-primary",L="searchField-iconSearchActive-Qoj fieldIcons-icon-l7Q absolute right-[25px] top-1/2 transform -translate-y-1/2 lg_!bg-primary lg_active_!bg-primaryActive lg_outline-primary !right-0",k="searchField-iconSearchBox-YBG searchField-iconSearchActive-Qoj fieldIcons-icon-l7Q absolute right-[25px] top-1/2 transform -translate-y-1/2 lg_!bg-primary lg_active_!bg-primaryActive lg_outline-primary !right-0",S="searchField-closeButton-6IL linkButton-rootSecondary-eY4 linkButton-root-QwB outline-none appearance-none inline text-left link-secondary ml-0 absolute right-0 font-semibold text-black opacity-0 ease-in w-0 pr-3.5 translate-y-2/4 xxxxl_pr-0",I="searchField-closeButtonOpened-CeA searchField-closeButton-6IL linkButton-rootSecondary-eY4 linkButton-root-QwB outline-none appearance-none inline text-left link-secondary ml-0 absolute right-0 font-semibold text-black opacity-0 ease-in w-0 pr-3.5 translate-y-2/4 xxxxl_pr-0 ml-12.5 transition-all delay-400 duration-200 lg_w-auto lg_opacity-100"
178const T=e=>{const{onChange:t,onFocus:r,hasResult:n,setIsAutoCompleteOpen:T,isAutoCompleteOpen:R,setIsErasedClicked:P,valid:B,isSearchBoxOpened:N,searchValue:M}=e,{inputRef:V,handleErase:A,handleCloseDesktopSearch:q}=(e=>{let{setIsAutoCompleteOpen:t,setIsErasedClicked:r,isAutoCompleteOpen:n,hasResult:a,isSearchBoxOpened:s}=e
179const l=Object(o.useRef)(),i=Object(d.i)(),c=Object(d.h)(),f=Object(h.a)().get("query"),[{searchValue:g},{actions:{setAreSearchSuggestionsShown:y}}]=Object(b.b)(),{screens:v}=Object(m.b)(),{innerWidth:_}=Object(p.b)(),x=_<v.lg
180Object(o.useEffect)(()=>{x||y(n&&a)},[n,a,y,x])
181const w=Object(u.m)()
182Object(o.useEffect)(()=>{if(void 0===g)return w.setValue("search_query","")
183g||w.setValue("search_query",f)
184const e=c.listen(e=>{"/search"!==e.pathname&&w.setValue("search_query","")})
185return()=>e},[g,w,f,c])
186const O=Object(o.useCallback)(()=>{r(!0),w.setValue("search_query","")},[w,r]),E=Object(o.useCallback)(()=>{t(!1),w.setValue("search_query","")},[w,t])
187return Object(o.useEffect)(()=>{l.current.blur(),s&&l.current.focus()},[s,i]),{inputRef:l,handleErase:O,handleCloseDesktopSearch:E}})({setIsAutoCompleteOpen:T,setIsErasedClicked:P,isAutoCompleteOpen:R,hasResult:n,isSearchBoxOpened:N}),F=B?C:_,D=B?x:w,U=R?I:S,Q=a.a.createElement("button",{className:N?D:F,disabled:!B,"aria-label":"Search",type:"submit"},a.a.createElement(s.a,{src:l.a})),z=a.a.createElement("button",{className:O,disabled:!B,"aria-label":"Erase",onClick:A},a.a.createElement(s.a,{src:i.a,className:E})),H=B?j:null,W=B?L:k
188return a.a.createElement(a.a.Fragment,null,a.a.createElement(c.a,{icon:Q,secondIcon:(null!=N?N:R)&&(N?M:M&&M.length>2)&&z,placeholder:N?"Search":"What can we help you find today?",classes:{input:N?g:f,root:R?v:y,icon:N?W
188:H},field:"search_query",onFocus:r,onValueChange:t,forwardedRef:V}),a.a.createElement("button",{className:U,"aria-label":"Close searchbox",onClick:q,type:"button"},"Cancel"))}
189T.propTypes={onChange:n.func,onFocus:n.func,isSearchOpen:n.bool,hasResult:n.bool,setIsAutoCompleteOpen:n.func,setIsErasedClicked:n.func,isAutoCompleteOpen:n.bool,valid:n.bool,isSearchBoxOpened:n.bool,searchValue:n.string}
190t.a=a.a.memo(T)},Uz6g:function(e,t,r){"use strict"
191var n=r("VkAN"),o=r.n(n),a=r("8UhI"),s=r("17x9"),l=r("q1tI"),i=r.n(l),c=r("r5vi"),u=r("qQMA"),d=r("DNTo"),p=r("fQii"),b=r("ndYV"),m=r("dqEZ"),h=r("HYny"),f=r("IPSu"),g=r("yDKd"),y=r("fMvu"),v=r("TnAW"),_=r("hy5e"),x=r("1tLu"),w=r("ANee"),O=r("9ipd"),E={root:"searchBoxMobile-root-KAX fixed right-0 visible -translate-y-full animate-searchBoxFromTop py-[15px] pl-5 pr-3.5",root_open:"searchBoxMobile-root_open-N6N fixed top-0 left-0 bottom-0 w-full bg-white z-20 ml-0 duration-300 py-[15px] px-5 overflow-y-scroll overflow-x-hidden lg_w-[600px]",recentlySearched:"searchBoxMobile-recentlySearched-Cau pt-5",sliderTitle:"searchBoxMobile-sliderTitle-kpm text-base font-semibold mb-2.5",itemsList:"searchBoxMobile-itemsList-BZQ text-base mb-5",item:"searchBoxMobile-item-9vi relative even_before_bg-gray-light even_before_absolute even_before_block even_before_w-screen even_before_h-full even_before_top-0 even_before_z-[-1] even_before_-left-5",autocompleteButton:"searchBoxMobile-autocompleteButton-Taz w-full",icon:"searchBoxMobile-icon-TRq flex",searchedItem:"searchBoxMobile-searchedItem-DNw flex justify-between py-4",clearHistoryButton:"searchBoxMobile-clearHistoryButton-fef button-secondary-SrZ button-base-cYe font-semibold outline-none appearance-none transition-colors rounded p-1 bg-white text-black border border-solid border-gray lg_hover_bg-gray lg_hover_border-gray lg_hover_text-black lg_active_bg-black lg_active_border-black lg_active_text-white p-2 w-full text-sm font-semibold",recentlySearchedTitle:"searchBoxMobile-recentlySearchedTitle-xeD text-base font-semibold mb-2.5",headingWrapper:"searchBoxMobile-headingWrapper-jhG flex justify-between lg_px-0 lg_pt-0",closeButton:"searchBoxMobile-closeButton-VYk text-black outline-none hover_text-opacity-100 transition duration-200 ease-in-out p-[10px] relative left-[10px]",searchSliders:"searchBoxMobile-searchSliders-Att pt-5",suggestions:"searchBoxMobile-suggestions-G2Q pt-1"},C=r("OlZo"),j=r("Hupy")
192var L
193const k=()=>{const{handleCloseSearchBox:e,handleRemoveRecentlySearched:t}=(()=>{const[{drawer:e},{closeDrawer:t}]=Object(C.b)(),[,{setRecentlySearched:r}]=Object(g.b)(),n="searchbox"===e,o=Object(l.useCallback)(()=>{t()},[t])
194return Object(l.useEffect)(()=>t,[t]),{handleCloseSearchBox:o,isOpen:n,handleRemoveRecentlySearched:Object(l.useCallback)(()=>{(new j.a).removeItem("RECENTLY_SEARCHED"),r([])},[r])}})(),r=!Object(x.a)(),{handleSubmit:n,valid:s,hasResult:k,setHasResult:S,handleChange:I,initialValues:T,isAutoCompleteOpen:R,setIsErasedClicked:P,searchValue:B,setIsAutoCompleteOpen:N}=Object(O.a)(e),{id:M}=Object(_.a)({prefix:"searchbox"}),[V]=Object(y.b)(),{innerWidth:A}=Object(u.b)(),{screens:q}=Object(v.b)(),F=A<q.lg,[D]=Object(g.b)(),[U]=Object(c.a)(["aubuchon_cid"]),Q=r?E.root_open:E.root
195return i.a.createElement(l.Fragment,null,F&&i.a.createElement("div",{className:Q,id:"searchbox",role:"dialog","aria-modal":!0,"aria-labelledby":M(L||(L=o()(["title"])))},i.a.createElement(a.b,{autoComplete:"off",className:E.form,initialValues:T,onSubmit:n},i.a.createElement("div",{className:E.headingWrapper},i.a.createElement(f.a,{onChange:I,hasResult:k,valid:s,isAutoCompleteOpen:R,setIsErasedClicked:P,isSearchBoxOpened:r,searchValue:B}),i.a.createElement("button",{className:E.closeButton,onClick:e,"aria-label":"Close searchbox",type:"button"},i.a.createElement(d.a,{src:p.a}))),!!V.length&&!s&&i.a.createElement("div",{className:E.searchSliders},i.a.createElement("div",{className:E.sliderTitle},"Recently viewed"),i.a.createElement(w.default,{productCarouselType:"recently_viewed_products",showOnlySmallThumbnails:!0})),!V.length&&U.aubuchon_cid&&!s&&i.a.createElement("div",{className:E.searchSliders},i.a.createElement(w.default,{productCarouselType:"customer_recommendations",showOnlySmallThumbn
195ails:!0,productCarouselTitle:"Recommendations"})),i.a.createElement("div",{className:E.suggestions},i.a.createElement(h.a,{setVisible:N,valid:s,visible:!0,hasResult:k,setHasResult:S,handleCloseSearchBox:e,isAutoCompleteOpen:r,searchValue:B})),!!D.length&&!s&&i.a.createElement("div",{className:E.recentlySearched},i.a.createElement("div",{className:E.recentlySearchedTitle},"Recently searched"),i.a.createElement("ul",{className:E.itemsList},D.map((e,t)=>i.a.createElement("li",{className:E.item,key:t},i.a.createElement("button",{onClick:()=>n({search_query:e}),className:E.autocompleteButton},i.a.createElement("div",{className:E.searchedItem}," ",e,i.a.createElement("span",{className:E.icon},i.a.createElement(d.a,{src:b.a}))))))))),!!D.length&&!s&&i.a.createElement("div",null,i.a.createElement(m.a,{classes:{rootSecondary:E.clearHistoryButton},onClick:t},"Clear Search History"))))}
196k.propTypes={isOpen:s.bool,setIsOpen:s.func}
197t.a=k},W9Wp:function(e,t,r){"use strict"
198r.d(t,"a",function(){return s})
199var n=r("q1tI"),o=r("Cess"),a=r("4hyE")
200const s=e=>{let{products:t=[],type:r="plp"}=e
201const[,{dispatch:s}]=Object(o.b)(),[{brand:l}]=Object(a.b)(),i=Object(n.useRef)(""),c=Object(n.useCallback)(e=>e.map(e=>e.sku).join(","),[])
202Object(n.useEffect)(()=>{if(null!=t&&t.length&&l.name){const e=c(t)
203e!==i.current&&(i.current=e,s({type:"PRODUCTS_IMPRESSION",payload:{items:t,affiliation:l.name,origin:r}}))}},[l.name,s,c,t,r])}},"Xr8/":function(e,t,r){"use strict"
204var n=r("TSYQ"),o=r.n(n),a=r("17x9"),s=r("q1tI"),l=r.n(s),i=r("CLF5"),c=r("y1Xp"),u=r("DNTo"),d=r("oxPU"),p={root:"message-root-B-9 absolute right-0 top-0 text-xs tranform translate-y-inputMsg",root_error:"message-root_error-sDd message-root-B-9 absolute right-0 top-0 text-xs tranform translate-y-inputMsg text-red font-semibold leading-6 inline-grid grid-flow-col gap-x-2.5 items-center",inputRoot:"message-inputRoot-Lcf relative text-base",newLine:"message-newLine--BF relative pl-8 !translate-y-0 justify-self-start"}
205const b=e=>{const{children:t,classes:r,fieldState:n,isMessageOnNewLine:a}=e,{error:s}=n,b=Object(c.a)(p,r),m=s?b.root_error:b.root
206let h
207return s&&(h=l.a.createElement(l.a.Fragment,null,l.a.createElement(u.a,{src:d.a}),l.a.createElement("span",null,l.a.createElement(i.a,{id:s.id,defaultMessage:s.defaultMessage,values:{value:s.value}})))),h||t?l.a.createElement("span",{className:o()(m,{[b.newLine]:a})},h||t):null}
208b.propTypes={children:a.node,classes:Object(a.shape)({root:a.string,root_error:a.string}),fieldState:Object(a.shape)({error:Object(a.shape)({id:a.string,defaultMessage:a.string,value:Object(a.oneOfType)([a.number,a.string])})}),isMessageOnNewLine:a.bool},b.defaultProps={fieldState:{}}
209t.a=b},ZPer:function(e,t,r){"use strict"
210r.r(t)
211var n=r("Uz6g")
212r.d(t,"default",function(){return n.a})},c3RJ:function(e,t,r){"use strict"
213var n=r("q1tI"),o=r("8UhI")
214t.a=(e=>{const[t,r]=Object(n.useState)(!0),a=console.warn,s=/^Attempting to get field (.*) but it does not exist$/g
215t&&(console.warn=(e=>{e.match(s)||a(e)})),Object(n.useEffect)(()=>{r(!1)},[])
216const l=Object(o.l)(e)
217return t&&(console.warn=a),l})},fQii:function(e,t,r){"use strict"
218var n=r("pVnL"),o=r.n(n),a=r("QILm"),s=r.n(a),l=r("17x9"),i=r.n(l),c=r("q1tI"),u=r.n(c)
219const d=["color"],p=Object(c.forwardRef)((e,t)=>{let{color:r="currentColor"}=e,n=s()(e,d)
220return u.a.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},u.a.createElement("path",o()({fillRule:"evenodd",clipRule:"evenodd",d:"M1.70711 0.292894C1.31658 -0.0976312 0.683417 -0.0976312 0.292893 0.292894C-0.0976311 0.683418 -0.0976311 1.31658 0.292893 1.70711L4.58579 6L0.292894 10.2929C-0.0976306 10.6834 -0.0976306 11.3166 0.292894 11.7071C0.683418 12.0976 1.31658 12.0976 1.70711 11.7071L6 7.41421L10.2929 11.7071C10.6834 12.0976 11.3166 12.0976 11.7071 11.7071C12.0976 11.3166 12.0976 10.6834 11.7071 10.2929L7.41421 6L11.7071 1.70711C12.0976 1.31658 12.0976 0.683418 11.7071 0.292894C11.3166 -0.0976303 10.6834 -0.0976303 10.2929 0.292894L6 4.58579L1.70711 0.292894Z",fill:r},n)))})
221p.propTypes={color:i.a.string},p.displayName="Close",t.a=p},g7E7:function(e,t,r){"use strict"
222var n=r("pVnL"),o=r.n(n),a=r("QILm"),s=r.n(a),l=r("17x9"),i=r.n(l),c=r("q1tI"),u=r.n(c)
223const d=["color"],p=Object(c.forwardRef)((e,t)=>{let{color:r="currentColor"}=e,n=s()(e,d)
224return u.a.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"16",viewBox:"0 0 15 16",fill:"none"}
224,u.a.createElement("path",o()({fillRule:"evenodd",clipRule:"evenodd",d:"M7.02838 6.00001C7.02838 7.10458 7.92744 8.00001 9.03649 8.00001H13L11.5 14L6.01624 13.9999V7.39267L7.02838 4.50001V6.00001ZM11.4848 15.9999C12.4063 15.9999 13.2095 15.3753 13.433 14.485L14.9391 8.48509C15.2559 7.22279 14.2973 6.00001 12.9909 6.00001L9 6V1.97161C9 0.882721 8.11728 0 7.02838 0L4.00634 7.00001H2.01289C0.903319 7.00001 0.00364826 7.89471 0.00298843 8.99882L3.63167e-07 13.9988C-0.000660025 15.1039 0.899409 16 2.00992 16L11.4848 15.9999ZM4.01469 9.00001H2.00479V14H4.01469V9.00001Z",fill:r},n)))})
225p.propTypes={color:i.a.string},p.displayName="Like",t.a=p},ndYV:function(e,t,r){"use strict"
226var n=r("pVnL"),o=r.n(n),a=r("QILm"),s=r.n(a),l=r("17x9"),i=r.n(l),c=r("q1tI"),u=r.n(c)
227const d=["color"],p=Object(c.forwardRef)((e,t)=>{let{color:r="currentColor"}=e,n=s()(e,d)
228return u.a.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:"5",height:"8",viewBox:"0 0 5 8",fill:"none"},u.a.createElement("path",o()({fillRule:"evenodd",clipRule:"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L4.70711 3.29289C5.09763 3.68342 5.09763 4.31658 4.70711 4.70711L1.70711 7.70711C1.31658 8.09763 0.683417 8.09763 0.292893 7.70711C-0.0976311 7.31658 -0.0976311 6.68342 0.292893 6.29289L2.58579 4L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",fill:r},n)))})
229p.propTypes={color:i.a.string},p.displayName="ChevronRightSmall",t.a=p},oxPU:function(e,t,r){"use strict"
230var n=r("pVnL"),o=r.n(n),a=r("QILm"),s=r.n(a),l=r("17x9"),i=r.n(l),c=r("q1tI"),u=r.n(c)
231const d=["color"],p=Object(c.forwardRef)((e,t)=>{let{color:r="currentColor"}=e,n=s()(e,d)
232return u.a.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},u.a.createElement("path",o()({fillRule:"evenodd",clipRule:"evenodd",d:"M14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM8 4C8 4.55228 7.55228 5 7 5C6.44772 5 6 4.55228 6 4C6 3.44772 6.44772 3 7 3C7.55228 3 8 3.44772 8 4ZM7 6C6.44772 6 6 6.44772 6 7V10C6 10.5523 6.44772 11 7 11C7.55228 11 8 10.5523 8 10V7C8 6.44772 7.55228 6 7 6Z",fill:r},n)))})
233p.propTypes={color:i.a.string},p.displayName="InfoFilled",t.a=p},rygi:function(e,t,r){"use strict"
234r.d(t,"a",function(){return a})
235var n=r("q1tI"),o=r("Ty5D")
236const a=()=>{const{search:e}=Object(o.i)()
237return Object(n.useMemo)(()=>new URLSearchParams(e),[e])}},zwR5:function(e,t,r){"use strict"
238var n=r("pVnL"),o=r.n(n),a=r("QILm"),s=r.n(a),l=r("17x9"),i=r.n(l),c=r("q1tI"),u=r.n(c)
239const d=["color"],p=Object(c.forwardRef)((e,t)=>{let{color:r="currentColor"}=e,n=s()(e,d)
240return u.a.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},u.a.createElement("path",o()({fillRule:"evenodd",clipRule:"evenodd",d:"M1.70711 0.292893C1.31658 -0.0976311 0.683418 -0.097631 0.292893 0.292893C-0.097631 0.683417 -0.0976311 1.31658 0.292893 1.70711L2.58579 4L0.292893 6.29289C-0.0976309 6.68342 -0.0976309 7.31658 0.292893 7.70711C0.683418 8.09763 1.31658 8.09763 1.70711 7.70711L4 5.41421L6.29289 7.70711C6.68342 8.09763 7.31658 8.09763 7.70711 7.70711C8.09763 7.31658 8.09763 6.68342 7.70711 6.29289L5.41421 4L7.70711 1.70711C8.09763 1.31658 8.09763 0.683419 7.70711 0.292895C7.31658 -0.0976297 6.68342 -0.0976297 6.29289 0.292895L4 2.58579L1.70711 0.292893Z",fill:r},n)))})
241p.propTypes={color:i.a.string},p.displayName="Remove",t.a=p}}])

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.