PageSourceSearch

https://www.wordofmouthfloors.com/cdn/shop/t/94/assets/stores.js?v=171623862100009741311790177642

js wordofmouthfloors.com collected 2026-10-04 12:26:05 UTC 17,603 bytes, 57 lines download raw bytes

1$(".product-location-view li:contains('north vancouver')").remove(),$(".product-location-view li:contains('North Vancouver')").remove(),$(".product-location-view li:contains('North Van')").remove(),$(".product-location-view").addClass("show");const mapConfig={locations:[],mapOptions:{fullscreenControl:!0,mapTypeControl:!1,streetViewControl:!1,zoom:15,zoomControl:!0,maxZoom:16},mapsApiKey:"AIzaSyArvcHUUy3qGD2Nb0mmYaaswdPLCADnh2U",capabilities:{input:!0,autocomplete:!0,directions:!1,distanceMatrix:!0,details:!1,actions:!1},fsMessage:""};function womStores_search(key,val,arr){let result=[];for(var i2=0;i2<arr.length;i2++)arr[i2][key]===val&&result.push(arr[i2]);return result}mapConfig.locations=window.storeData.locations;var geocoder=null,map=null,customerMarker=null,gmarkers=[],closest=[],closestDistance=0;function showStoreData(data){let myStore=data,storeTiming="";for(const day in myStore.timing)storeTiming+=`<div class="${day} row"><span class="day-name col-4">${day}:</span> <span class="col-8 day-hours">${myStore.timing[day]}</span></div>`;return`
2      <div class="dropdown-loc_name mb-3 font-bold flex items-center w-100 justify-between">
3        <div class="inline-flex items-center">
4          <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="w-5 h-5 mr-2 flex-none" viewBox="0 0 48 48">
5              <path d="M0 0h48v48H0z" fill="none"/>
6              <path d="M24 14V6H4v36h40V14H24zM12 38H8v-4h4v4zm0-8H8v-4h4v4zm0-8H8v-4h4v4zm0-8H8v-4h4v4zm8 24h-4v-4h4v4zm0-8h-4v-4h4v4zm0-8h-4v-4h4v4zm0-8h-4v-4h4v4zm20 24H24v-4h4v-4h-4v-4h4v-4h-4v-4h16v20zm-4-16h-4v4h4v-4zm0 8h-4v4h4v-4z"/>
7          </svg>
8          ${myStore.name}
9        </div>
10        <small class="bg-black text-white py-1 px-2 text-xxs rounded-full whitespace-nowrap flex-none">${myStore.location_type}</small>
11      </div>
12      <div class="dropdown-loc_address flex items-center">
13        <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="w-5 h-5 mr-2 flex-none" viewBox="0 0 48 48">
14            <path d="M24 4c-7.73 0-14 6.27-14 14 0 10.5 14 26 14 26s14-15.5 14-26c0-7.73-6.27-14-14-14zm0 19c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/>
15            <path d="M0 0h48v48H0z" fill="none"/>
16        </svg>
17        ${myStore.address2} ${myStore.address1}
18      </div>
19      <div class="dropdown-loc_phone  flex items-center">
20        <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="w-5 h-5 mr-2 flex-none" viewBox="0 0 48 48">
21            <path d="M0 0h48v48H0z" fill="none"/>
22            <path d="M13.25 21.59c2.88 5.66 7.51 10.29 13.18 13.17l4.4-4.41c.55-.55 1.34-.71 2.03-.49C35.1 30.6 37.51 31 40 31c1.11 0 2 .89 2 2v7c0 1.11-.89 2-2 2C21.22 42 6 26.78 6 8c0-1.11.9-2 2-2h7c1.11 0 2 .89 2 2 0 2.49.4 4.9 1.14 7.14.22.69.06 1.48-.49 2.03l-4.4 4.42z"/>
23        </svg>
24        ${myStore.phone}
25      </div>
26      <div class="dropdown-loc_delivery mt-3  flex items-center">
27  		<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="w-5 h-5 mr-2 flex-none" viewBox="0 0 640 512"><path d="M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"/></svg>
28		${myStore.allow_delivery?"Delivery available":"Delivery not available"}    
29      </div>
30      <div class="dropdown-loc_pickup  flex items-center">
31        <svg xmlns="http://www.w3.org/2000/svg"  width="18" height="18" class="w-5 h-5 mr-2 flex-none" viewBox="0 0 640 512"><path d="M624 288h-16v-64c0-17.67-14.33-32-32-32h-48L419.22 56.02A64.025 64.025 0 0 0 369.24 32H256c-17.67 0-32 14.33-32 32v128H64c-17.67 0-32 14.33-32 32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h49.61c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16h67.23
31c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM288 96h81.24l76.8 96H288V96zM176 416c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm288 0c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"/></svg>		
32        ${myStore?.allow_pickup?"Pickup available":"Pickup not available"}    
33      </div>
34      <div class="dropdown-loc_timing mt-4">
35      <div class="fw-bold mb-2  flex items-center">
36          <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" class="w-5 h-5 mr-2 flex-none" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"/></svg>
37          Regular Hours
38      </div><div class="ms-4 small">${storeTiming}</div>
39    </div>
40	`}function loadClosestLocation(d){let data=JSON.parse(d);data.distance<100?(mapMarkerCenter(mapConfig.locations[data.marker].latitude,mapConfig.locations[data.marker].longitude),$(".nav-store-location-current-toggle").removeClass("hidden").attr("data-num",data.marker),$(".dropdown-menu-text").html(showStoreData(mapConfig.locations[data.marker])),$("#nav-store-header").empty()):(mapFitBounds(),$(".nav-store-location-current-toggle").addClass("hidden"),$("#nav-store-header").html(data.message))}function initializeMap(){if(!window.google){setTimeout(function(){console.log("Checking for maps")},200);return}geocoder={geocode:function(request,callback){callback([{geometry:{location:request.location}}],"OK")}};var womfMapEl=document.getElementById("nav-store-location"),womfMapVisible=!1;if(womfMapEl){var womfRect=womfMapEl.getBoundingClientRect();womfMapVisible=womfRect.width>0&&womfRect.height>0}map=womfMapVisible?new google.maps.Map(womfMapEl,{zoom:mapConfig.mapOptions.zoom,center:new google.maps.LatLng(mapConfig.locations[0].latitude,mapConfig.locations[0].longitude),zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1}):null;var infoWindow=new google.maps.InfoWindow,marker,i2,bounds=new google.maps.LatLngBounds;for(i2=0;i2<mapConfig.locations.length;i2++){var pt=new google.maps.LatLng(mapConfig.locations[i2].latitude,mapConfig.locations[i2].longitude);bounds.extend(pt),marker=new google.maps.Marker({position:pt,map,address:mapConfig.locations[i2].address,title:mapConfig.locations[i2].name,html:`<strong>${mapConfig.locations[i2].name}</strong><br>${mapConfig.locations[i2].address1}<br><a href="${mapConfig.locations[i2].direction}" target="_blank" class="d-none" style="color:#000000;">Direction</a>`}),gmarkers.push(marker),google.maps.event.addListener(marker,"click",(function(marker2,i3){return function(){infoWindow.setContent(marker2.html),map&&infoWindow.open(map,marker2),$(".dropdown-menu-text").html(showStoreData(mapConfig.locations[i3]))}})(marker,i2))}var ip_data=sessionStorage.getItem("ip_data"),map_nearestStore=getCookie("map_nearestStore");if(ip_data){var ip_data_json=JSON.parse(ip_data);map_nearestStore?loadClosestLocation(map_nearestStore):codeAddress(ip_data_json.latitude,ip_data_json.longitude,1)}else map_nearestStore?loadClosestLocation(map_nearestStore):codeAddress(mapConfig.locations[0].latitude,mapConfig.locations[0].longitude,1);setPDPlocation(),$("body").on("locationsWithDistanceSet",setPDPlocation)}function codeAddress(_lat,_lang,_num){let lat=_lat||mapConfig.locations[0].latitude,lang=_lang||mapConfig.locations[0].longitude;var numberOfResults=_num||1,latlng=new google.maps.LatLng(lat,lang);geocoder.geocode({location:latlng},function(results,status){if(status==google.maps.GeocoderStatus.OK){closest=findClosestN(results[0].geometry.location,numberOfResults),console.log("closestDistance",closestDistance);var nearestStore={distance:closestDistance,message:`
41          <div class="no-near-store-message p-3 border border-dark">
42			Word of mouth floors store is not available near your location, nearest store is in ${mapConfig.locations[closest].city+", "+mapConfig.locations[closest].province_code}. Please contact us for better shipping rate for your location. 
43			<br>
44            <strong>Call Us</strong>: (604)-370-8769<br>
45
46            <strong>Email Us</strong>: [email protected]
47          </div>
48          <div class="fw-bolder mt-4 mb-3 uppercase">Our Stores</div>
49		`,marker:closest};setCookie("map_nearestStore",JSON.stringify(nearestStore),1),nearestStore.distance<100?(mapMarkerCenter(mapConfig.locations[closest].latitude,mapConfig.locations[closest].longitude),$(".nav-store-location-current-toggle").removeClass("d-none").attr("data-num",closest),$(".dropdown-menu-text").html(showStoreData(mapConfig.locations[closest])),$("#nav-store-header").empty()):(mapFitBounds(),$(".nav-store-location-current-toggle").addClass("d-none"),$("#nav-store-header").html(nearestStore.message)),console.log("closest",closest)}else alert("Geocode was not successful for the following reason: "+status)})}function mapFitBounds(){if(!map)return;for(var mapBounds=new google.maps.LatLngBounds,i2=0;i2<gmarkers.length;i2++)mapBounds.extend(gmarkers[i2].position);map.fitBounds(mapBounds,1);let locList='<div class="list-group divide-y divide-blacl/10 text-sm">';for(i2=0;i2<mapConfig.locations.length;i2++){let locItem=mapConfig.locations[i2];locList+=`<div class="list-group-item list-group-item-action loc-list-action py-3 px-2" data-num="${i2}">
50      <div class="flex w-full justify-between items-center">
51        <div class="mb-1 font-bold">${locItem.name}</div>
52        <small class="bg-black text-white py-1 px-2 text-xs rounded-full whitespace-nowrap flex-none">${locItem.location_type}</small>
53      </div>
54      <p class="mb-0">${locItem.address2} ${locItem.address1}</p>
55      <small class="text-light text-xs">${locItem.city}, ${locItem.province_code}</small>
56    </div>`}locList+="</div>",$(".dropdown-menu-text").html(locList)}function mapMarkerCenter(lat,lan){map&&(map.setCenter(new google.maps.LatLng(lat,lan)),map.setZoom(mapConfig.mapOptions.zoom))}$(".nav-store-location").on("click",".loc-list-action",function(){let marker=$(this).data("num");mapMarkerCenter(mapConfig.locations[marker].latitude,mapConfig.locations[marker].longitude),$(".loc-list-action").removeClass("active"),$(this).addClass("active"),mapConfig.locations[marker].type=="showroom"?$("#nav-store-footer").html(""):$("#nav-store-footer").html(`<div class="pt-2">${mapConfig.locations[marker].message?mapConfig.locations[marker].message:mapConfig.f
56sMessage}</div>`)}),$(".nav-store-location").on("click",".nav-store-location-current-toggle",function(){let marker=$(this).data("num");mapMarkerCenter(mapConfig.locations[marker].latitude,mapConfig.locations[marker].longitude),$(".dropdown-menu-text").html(showStoreData(mapConfig.locations[marker]))});function findClosestN(pt,numberOfResults){var distances=[],closest2=-1,allClosest=[];for(i=0;i<gmarkers.length;i++)gmarkers[i].distance=google.maps.geometry.spherical.computeDistanceBetween(pt,gmarkers[i].position),mapConfig.locations[i].distance=gmarkers[i].distance,distances[i]=gmarkers[i].distance,(closest2==-1||gmarkers[i].distance<distances[closest2])&&(closest2=i,closestDistance=Math.round(gmarkers[i].distance/1e3)),allClosest.push(gmarkers[i]);let locationsWithDistance=mapConfig.locations.map(({id,distance},index)=>({id,distance}));return sessionStorage.setItem("locationsWithDistance",JSON.stringify(locationsWithDistance)),$("body").trigger("locationsWithDistanceSet"),closest2}function sortByDist(a,b){return a.distance-b.distance}window.initializeMap=initializeMap;function setRegion_class(region){$("body").addClass(region.toLowerCase()),$(".form-province").val(region),$('.footer-quicklinks a[href*="/collections/"]').each(function(){$(this).attr("href",$(this).attr("href")+"/"+region.toLowerCase())}),$("#best-selling-"+region.toLowerCase()).length&&($(".featured-products-row").html($("#best-selling-"+region.toLowerCase()).html()),checkCartSmples()),$('.main-menu a[href*="/collections/"]').each(function(){var reg=region.toLowerCase();let link_1=$(this).attr("href").split("?");(link_1[0].split("/collections/")[1].match(new RegExp("/","g"))||[]).length==0?($(this).addClass("collection-link"),reg="/"+reg):($(this).addClass("tag-link"),reg="+"+reg);let fullLinkSearch=link_1[1]?"?"+link_1[1]:"";$(this).attr("href",link_1[0]+reg+fullLinkSearch)});var visited_collection=sessionStorage.getItem("visited_collection");if(!visited_collection){let currPage=window.location.pathname;if(currPage.includes("/collections/")&&!currPage.includes("/products/")){let currPagePath=currPage.split("/").pop();!currPagePath.split("+").includes(region.toLowerCase())&&currPagePath!=region.toLowerCase()&&(currPage.split("/collections/")[1].split("/").length>1?currPage.split("/collections/")[1].split("/").pop()!=""?window.location=currPage+"+"+region.toLowerCase():window.location=currPage+region.toLowerCase():window.location=currPage+"/"+region.toLowerCase())}}$(".collection-nav .sidebar_collection_item a").each(function(){})}function setPDPlocation(){if(window.location.pathname.includes("/products/")){let productID=$(".product__form").data("id"),listCheckIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 mr-2 text-accent"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg> ';productID&&window.productLocationsScript&&$.getScript(window.productLocationsScript).done(function(script,textStatus){let currLocIDS=window.storeData.products.filter(product=>product.p.includes(productID)).map(({l},index)=>l).map(id=>window.storeData.locations.find(location=>location.id===id)),currLocData=currLocIDS,locationsWithDistance=sessionStorage.getItem("locationsWithDistance");if(locationsWithDistance){let locationsWithDistanceJson=JSON.parse(locationsWithDistance);currLocData=currLocIDS.map(location=>{let locFound=locationsWithDistanceJson.find(loc=>loc.id===location.id);return locFound&&(location.distance=locFound.distance),location}),console.log("loc sorted"),currLocData.sort(sortByDist)}var allCities=[];let currLocHtml=currLocData.map(({id,city,province_code},index)=>{if(!allCities.includes(city))return allCities.push(city),`<li class="check js ${province_code.toLowerCase()}" data-id="${id}"><a class="flex items-center " href="/pages/fulfilment-centre?location=${id}" title="">${listCheckIcon} ${city} ${province_code}</a></li>`}),currViewHtml=currLocData.map(({id,city,province_code,location_type},index)=>{if(location_type=="Showroom")return`<li class="check js ${province_code.toLowerCase()}" data-id="${id}"><a class="flex items-center " href="/pages/fulfilment-centre?location=${id}" title="">${listCheckIcon} ${city} Showroom</a></li>`});console.log("currViewHtml:",currLocData.length,currViewHtml),currViewHtml.push(`<li class="flex items-center check js">${listCheckIcon} Available Online</li>`),currLocData.length&&$(".product-location-fulfillment").html('<h4 class="mb-2 font-semibold uppercase product-location-title">Fulfilled Out Of:</h4><ul class="m-0 product-location-availability">'+currLocHtml.join("")+"</ul>");let ipData=sessionStorage.getItem("ip_data");
56if(ipData){let ipDataJson=JSON.parse(ipData),closestLoc=currLocData[0];$(".pdp-delivery-option .loc-city").text(ipDataJson.city+" "+ipDataJson.region),$(".pdp-delivery-option .loc-postal").text(ipDataJson.postal+" ***"),closestLoc?.allow_pickup?(closestLoc?.delivery_type=="Distribution Centre"?$(".pickup-card .card-text").html("Available for this item <br> 1 - 2 Business Days "):$(".pickup-card .card-text").html("Available for this item <br> 5+ Business Days "),$(".pickup-card .card-link").attr("href","/pages/fulfilment-centre?location="+closestLoc.id)):($(".pickup-card .card-text").text("Not available for this item"),$(".pickup-card .card-link").addClass("hidden")),closestLoc?.delivery_type=="Distribution Centre"?$(".delivery-card .card-text").text("1 - 4 Business Days"):$(".delivery-card .card-text").text("5 - 10 Business Days"),$(".pdp-delivery-option").removeClass("hidden")}}).fail(function(jqxhr,settings,exception){console.log("error while loading product locations")})}}var user_set_region_code=getCookie("user_set_region_code");let womStores_near=[];$(".filter-location.not-selected").click(function(e){e.preventDefault();var thisLocation=$(this).attr("data-location").toUpperCase();setCookie("user_set_region_code",thisLocation,1);var link=$(this).attr("href");$(".filter-location.link--remove").each(function(){let loc=$(".filter-location.link--remove").data("location");link=link.replace("+"+loc,"").replace("/"+loc+"+","/").replace("/"+loc,"/")}),window.location=link;var cookieCheck=setInterval(function(){getCookie("user_set_region_code")===thisLocation&&clearInterval(cookieCheck)},500)}),$(".filter-location.link--remove").length&&$(".filter-location.link--remove").each(function(){let loc=$(this).data("location");$(".filter-location").each(function(){$(this).attr("href",$(this).attr("href").replace("+"+loc,"").replace("/"+loc+"+","/").replace("/"+loc,"/"))})});
57//# sourceMappingURL=/cdn/shop/t/94/assets/stores.js.map?v=171623862100009741311790177642

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.