PageSourceSearch

https://thegoodsdept.com/_next/static/lFR6FV9a2JOUxzV7JqaS9/pages/store-locator.js

js thegoodsdept.com collected 2026-09-27 11:37:48 UTC 13,781 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[92],{"3erz":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store-locator",function(){return n("YP/d")}])},SiYH:function(e,t,n){var a,o,i;o=[e,t],void 0===(i="function"===typeof(a=function(e,t){"use strict";var n,a;function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function r(e,t){return t.indexOf(e)>=0}function s(e,t,n){null!=e.addEventListener?e.addEventListener(t,n,!1):null!=e.attachEvent?e.attachEvent("on"+t,n):e[t]=n}function l(e,t,n){null!=e.removeEventListener?e.removeEventListener(t,n,!1):null!=e.detachEvent?e.detachEvent("on"+t,n):delete e[t]}var c=window.WeakMap||window.MozWeakMap||function(){function e(){o(this,e),this.keys=[],this.values=[]}return i(e,[{key:"get",value:function(e){for(var t=0;t<this.keys.length;t++)if(this.keys[t]===e)return this.values[t]}},{key:"set",value:function(e,t){for(var n=0;n<this.keys.length;n++)if(this.keys[n]===e)return this.values[n]=t,this;return this.keys.push(e),this.values.push(t),this}}]),e}(),u=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver||(a=n=function(){function e(){o(this,e),"undefined"!==typeof console&&null!==console&&(console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))}return i(e,[{key:"observe",value:function(){}}]),e}(),n.notSupported=!0,a),d=window.getComputedStyle||function(e){var t=/(\-([a-z]){1})/g;return{getPropertyValue:function(n){"float"===n&&(n="styleFloat"),t.test(n)&&n.replace(t,(function(e,t){return t.toUpperCase()}));var a=e.currentStyle;return(null!=a?a[n]:void 0)||null}}},h=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];o(this,e),this.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},this.animate="requestAnimationFrame"in window?function(e){return window.requestAnimationFrame(e)}:function(e){return e()},this.vendors=["moz","webkit"],this.start=this.start.bind(this),this.resetAnimation=this.resetAnimation.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.scrollCallback=this.scrollCallback.bind(this),this.scrolled=!0,this.config=function(e,t){for(var n in t)if(null==e[n]){var a=t[n];e[n]=a}return e}(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new c,this.wowEvent=function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],a=arguments.length<=3||void 0===arguments[3]?null:arguments[3],o=void 0;return null!=document.createEvent?(o=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,a):null!=document.createEventObject?(o=document.createEventObject()).eventType=e:o.eventName=e,o}(this.config.boxClass)}return i(e,[{key:"init",value:function(){this.element=window.document.documentElement,r(document.readyState,["interactive","complete"])?this.start():s(document,"DOMContentLoaded",this.start),this.finished=[]}},{key:"start",value:function(){var e=this;if(this.stopped=!1,this.boxes=[].slice.call(this.element.querySelectorAll("."+this.config.boxClass)),this.all=this.boxes.slice(0),this.boxes.length)if(this.disabled())this.resetStyle();else for(var t=0;t<this.boxes.length;t++){var n=this.boxes[t];this.applyStyle(n,!0)}this.disabled()||(s(this.config.scrollContainer||window,"scroll",this.scrollHandler),s(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live&&new u((function(t){for(var n=0;n<t.length;n++)for(var a=t[n],o=0;o<a.addedNodes.length;o++){var i=a.addedNodes[o];e.doSync(i)}})).observe(document.body,{childList:!0,subtree:!0})}},{key:"stop",value:function(){this.stopped=!0,l(this.config.scrollC
1ontainer||window,"scroll",this.scrollHandler),l(window,"resize",this.scrollHandler),null!=this.interval&&clearInterval(this.interval)}},{key:"sync",value:function(){u.notSupported&&this.doSync(this.element)}},{key:"doSync",value:function(e){if("undefined"!==typeof e&&null!==e||(e=this.element),1===e.nodeType)for(var t=(e=e.parentNode||e).querySelectorAll("."+this.config.boxClass),n=0;n<t.length;n++){var a=t[n];r(a,this.all)||(this.boxes.push(a),this.all.push(a),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(a,!0),this.scrolled=!0)}}},{key:"show",value:function(e){var t,n;return this.applyStyle(e),e.className=e.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(e),t=e,n=this.wowEvent,null!=t.dispatchEvent?t.dispatchEvent(n):n in(null!=t)?t[n]():"on"+n in(null!=t)&&t["on"+n](),s(e,"animationend",this.resetAnimation),s(e,"oanimationend",this.resetAnimation),s(e,"webkitAnimationEnd",this.resetAnimation),s(e,"MSAnimationEnd",this.resetAnimation),e}},{key:"applyStyle",value:function(e,t){var n=this,a=e.getAttribute("data-wow-duration"),o=e.getAttribute("data-wow-delay"),i=e.getAttribute("data-wow-iteration");return this.animate((function(){return n.customStyle(e,t,a,o,i)}))}},{key:"resetStyle",value:function(){for(var e=0;e<this.boxes.length;e++)this.boxes[e].style.visibility="visible"}},{key:"resetAnimation",value:function(e){if(e.type.toLowerCase().indexOf("animationend")>=0){var t=e.target||e.srcElement;t.className=t.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(e,t,n,a,o){return t&&this.cacheAnimationName(e),e.style.visibility=t?"hidden":"visible",n&&this.vendorSet(e.style,{animationDuration:n}),a&&this.vendorSet(e.style,{animationDelay:a}),o&&this.vendorSet(e.style,{animationIterationCount:o}),this.vendorSet(e.style,{animationName:t?"none":this.cachedAnimationName(e)}),e}},{key:"vendorSet",value:function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];e[""+n]=a;for(var o=0;o<this.vendors.length;o++)e[""+this.vendors[o]+n.charAt(0).toUpperCase()+n.substr(1)]=a}}},{key:"vendorCSS",value:function(e,t){for(var n=d(e),a=n.getPropertyCSSValue(t),o=0;o<this.vendors.length;o++){var i=this.vendors[o];a=a||n.getPropertyCSSValue("-"+i+"-"+t)}return a}},{key:"animationName",value:function(e){var t=void 0;try{t=this.vendorCSS(e,"animation-name").cssText}catch(n){t=d(e).getPropertyValue("animation-name")}return"none"===t?"":t}},{key:"cacheAnimationName",value:function(e){return this.animationNameCache.set(e,this.animationName(e))}},{key:"cachedAnimationName",value:function(e){return this.animationNameCache.get(e)}},{key:"scrollHandler",value:function(){this.scrolled=!0}},{key:"scrollCallback",value:function(){if(this.scrolled){this.scrolled=!1;for(var e=[],t=0;t<this.boxes.length;t++){var n=this.boxes[t];if(n){if(this.isVisible(n)){this.show(n);continue}e.push(n)}}this.boxes=e,this.boxes.length||this.config.live||this.stop()}}},{key:"offsetTop",value:function(e){for(;void 0===e.offsetTop;)e=e.parentNode;for(var t=e.offsetTop;e.offsetParent;)t+=(e=e.offsetParent).offsetTop;return t}},{key:"isVisible",value:function(e){var t=e.getAttribute("data-wow-offset")||this.config.offset,n=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,a=n+Math.min(this.element.clientHeight,"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight)-t,o=this.offsetTop(e),i=o+e.clientHeight;return o<=a&&i>=n}},{key:"disabled",value:function(){return!this.config.mobile&&(e=navigator.userAgent,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e));var e}}]),e}();t.default=h,e.exports=t.default})?a.apply(t,o):a)||(e.exports=i)},"YP/d":function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),o=n.n(a),i=n("O6Un"),r=n("KQm4"),s=n("o0o1"),l=n.n(s),c=n("HaE+"),u=n("hlFM"),d=n("PsDL"),h=n("ofer"),v=n("Ie8z"),m=n("Ji2X"),f=n("tRbT"),p=n("MjS+"),y=n("Z3vd"),b=n("gKJo"),g=n.n(b),w=n("nOHt"),S=n("/MKj"),_=n("HZ1D"),k=n("SpDg"),x=n("iuhU"),C=n("ZJw0"),N=n("n0zQ"),O=n("gZaV"),E=n.n(O),M=n("Ldow"),A=o.a.createElement,I=n("SiYH"),j=function(e){var t,n=e.store;return A(u.a,{className:g.a.customMarker},A(d.a,{className:g.a.buttonMarker},A(C.a,{fontSize:"inherit",color:"inherit"})),A(u.a,{className:g.a.detailStore},A(h.a,{variant:"h5",component:"h2",className:g.a.nameStore,color:"textSecondary"},n.name),A(v.a,{className:g.a.storeCoverImage,image:"".concat(null===n||void 0===n?void 0:null===(t=n.cover)||void 0===t?void 0:t.imageUrl,"=s80"),title:n.name})))},L=function(){Object(S.b)(),Object(w.useRouter)();var e,t,n=Object(a.useState)(""),o=n[0],i=n[1],s=Object(a.useState)(!0),b=s[0],C=s[1],O=Object(a.useState)({data:{},metadata:{}}),L=O[0],H=O[1],P=Object(a.useRef)(null),z=Object(a.useState)({lat:-.789275,lng:113.921327}),T=z[0],D=z[1],R=function(){var e=Object(c.a)(l.a.mark((function e(){var t,n,a;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.prev=1,e.next=4,Object(_.b)("/v1/store-locator?limit=10000");case 4:if(!(t=e.sent)){e.next=11;break}return e.next=8,t.json();case 8:a=e.sent,H(a),(null===a||void 0===a?void 0:null===(n=a.data)||void 0===n?void 0:n.length)>0&&D({lat:a.data[0].latitude,lng:a.data[0].longitude});case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),console.log(e.t0);case 16:C(!1);case 17:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(){return e.apply(this,arguments)}}();return Object(a.useEffect)((function(){R(),I&&(new I).init()}),[]),A(m.a,{className:Object(x.a)(g.a.containerStoreLocator),maxWidth:"xl"},A(f.a,{container:!0,justify:"center"},A(f.a,{container:!0,item:!0,lg:11,justify:"center",className:g.a.main,spacing:2},A(f.a,{item:!0,xs:12,md:6,className:g.a.containerListStore},A(h.a,{align:"center",component:"h1",variant:"h4",className:Object(x.a)(g.a.titleHeader)},"Our Store Locator"),A(f.a,{container:!0,spacing:1,className:g.a.containerSearch,alignItems:"center"},A(f.a,{item:!0,xs:12,sm:7,md:8,lg:9},A("form",{className:g.a.search},A("div",{className:g.a.searchIcon},A(d.a,null,A("img",{alt:"search-icon",src:E.a}))),A(p.a,{placeholder:"Search\u2026",value:o,onChange:function(e){return i(e.target.value)},classes:{root:g.a.inputRoot,input:g.a.inputInput},inputProps:{"aria-label":"Search..."}}),o.length>0&&A("div",{className:g.a.clearIcon},A(d.a,{onClick:function(){return i("")}},A(N.a,{fontSize:"inherit"}))))),A(f.a,{item:!0,xs:12,sm:5,md:4,lg:3},A(y.a,{fullWidth:!0,variant:"contained",color:"primary",className:g.a.buttonSearch},"Search"))),A(u.a,{className:g.a.listStore},b&&Object(r.a)(new Array(3)).map((function(e,t){return A(f.a,{container:!0,key:t,className:g.a.cardStore,spacing:4},A(f.a,{item:!0,xs:12,md:6,className:g.a.storeCoverImage},A(k.a,{variant:"rect",width:"100%",height:"200px",animation:"wave"})),A(f.a,{item:!0,xs:12,md:6},A(k.a,{variant:"text",width:"100%",animation:"wave",height:"30px"}),A(k.a,{variant:"rect",width:"100%",animation:"wave",height:"150px"}),A(k.a,{variant:"text",width:"100%",animation:"wave",height:"30px"})))})),!b&&(null===L||void 0===L?void 0:null===(e=L.data)||void 0===e?void 0:e.length)>0&&L.data.filter((function(e){if(o.length>0){var t=new RegExp(".*".concat(o.toLocaleLowerCase(),".*"),"g");return t.test(e.name.toLocaleLowerCase())||t.test(e.address.toLocaleLowerCase())}return!0})).map((function(e,t){var n;return A(f.a,{container:!0,key:t,className:g.a.cardStore,spacing:4,justify:"space-between",onClick:function(){window.scrollTo({top:P.current.offsetTop,left:0,behavior:"smooth"}),D({lat:e.latitude,lng:e.longitude})}},A(f.a,{item:!0,xs:12,sm:6},A(v.a,{className:g.a.storeCoverImage,image:"".concat(null===e||void 0===e?void 0:null===(n=e.cover)||void 0===n?void 0:n.imageUrl,"=s400"),title:e.name})),A(f.a,{item:!0,xs:12,sm:6,className:g.a.detailStore},A(h.a,{variant:"h5",component:"h2",className:g.a.nameStore},e.name),A(h.a,{variant:"body1",component:"p",className:g.a.addressStore,color:"textSecondary"},e.address),A(h.a,{variant:"body1",component:"p",className:g.a.phoneStore,color:"textSecondary"},"Tlp. ".concat(e.phoneNumber))))})))),A(f.a,{item:!0,xs:12,md:6,className:g.a.containerMaps,ref:P},A(M.a,{bootstrapURLKeys:{key:"AIzaSyDWAMpz9DIIVOuVmb7jcF8la1B7r2X7lI0"},center:T,hoverDistance:2,defaultZoom:16},!b&&(null===L||void 0===L?void 0:null===(t=L.data)||void 0===t?void 0:t.length)>0&&L.data.map((function(e,t){return A(j,{key:e.id,lat:e.latitude,lng:e.longitude,store:e})})))))))},H=n("dDsW"),P=o.a.createElement;t.default=function(){var e=Object(H.a)();return P(i.a,{title:e.formatMessage({id:"titleStoreLocator",defaultMessage:"Store Locator"})},P(L,null))}},gKJo:function(e,t,n){e.exports={containerStoreLocator:"store_containerStoreLocator__2803-",main:"store_main__3zHIs",iconBack:"store_iconBack__2A5qR",containerSearch:"store_containerSearch__2xvsG",search:"store_search__2orxp",searchIcon:"store_searchIcon__kBMOk",inputRoot:"store_inputRoot__1Rbas",clearIcon:"store_clearIcon__3I_4o",buttonSearch:"store_buttonSearch__1ycsX",titleHeader:"store_titleHeader__1Yk8y",containerListStore:"store_containerListStore__1FuHc",listStore:"store_listStore__3hfhF",cardStore:"store_cardStore__z9IpI",storeCoverImage:"store_storeCoverImage__26cDD",detailStore:"store_detailStore__1vppO",nameStore:"store_nameStore__12Sw6",addressStore:"store_addressStore__3Ayny",phoneStore:"store_phoneStore__24bv6",containerMaps:"store_containerMaps__25EfO",customMarker:"store_customMarker__270J
1n",buttonMarker:"store_buttonMarker__3X--W"}}},[["3erz",0,2,10,1,3,5,4,7,6,8,9,11,12,23]]]);

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.