PageSourceSearch

https://www.euyansang.com.sg/on/demandware.static/Sites-EYS-Site/-/en_SG/v1790229921292/js/storeLocator.js

js euyansang.com.sg collected 2026-09-24 10:47:23 UTC 5,218 bytes, 1 lines download raw bytes

1!function(t){var e={};function o(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)o.d(n,a,function(e){return t[e]}.bind(null,a));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=78)}({2:function(t,e,o){"use strict";t.exports=function(t){"function"==typeof t?t():"object"==typeof t&&Object.keys(t).forEach((function(e){"function"==typeof t[e]&&t[e]()}))}},78:function(t,e,o){"use strict";var n=o(2);$(document).ready((function(){n(o(79))}))},79:function(t,e,o){"use strict";function n(t,e){var o=t;return o+=(-1!==o.indexOf("?")?"&":"?")+Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")}function a(){var t,e=new google.maps.InfoWindow,o={scrollwheel:!1,zoom:4,center:new google.maps.LatLng(37.09024,-95.712891)};t=new google.maps.Map($(".map-canvas")[0],o);var n=$(".map-canvas").attr("data-locations");n=JSON.parse(n);var a=new google.maps.LatLngBounds,r={path:"M13.5,30.1460153 L16.8554555,25.5 L20.0024287,25.5 C23.039087,25.5 25.5,23.0388955 25.5,20.0024287 L25.5,5.99757128 C25.5,2.96091298 23.0388955,0.5 20.0024287,0.5 L5.99757128,0.5 C2.96091298,0.5 0.5,2.96110446 0.5,5.99757128 L0.5,20.0024287 C0.5,23.039087 2.96110446,25.5 5.99757128,25.5 L10.1445445,25.5 L13.5,30.1460153 Z",fillColor:"#0070d2",fillOpacity:1,scale:1.1,strokeColor:"white",strokeWeight:1,anchor:new google.maps.Point(13,30),labelOrigin:new google.maps.Point(12,12)};Object.keys(n).forEach((function(o){var s=n[o],i=parseInt(o,10)+1,l=new google.maps.LatLng(s.latitude,s.longitude),c=new google.maps.Marker({position:l,map:t,title:s.name,icon:r,label:{text:i.toString(),color:"white",fontSize:"16px"}});c.addListener("click",(function(){e.setOptions({content:s.infoWindowHtml}),e.open(t,c)})),a.extend(c.position)})),n&&0!==n.length&&t.fitBounds(a)}function r(t){var e=$(".results"),o=$(".map-canvas"),n=t.stores.length>0;
1n?$(".store-locator-no-results").hide():$(".store-locator-no-results").show(),e.empty().data("has-results",n).data("radius",t.radius).data("search-key",t.searchKey),o.attr("data-locations",t.locations),o.data("has-google-api")?a():$(".store-locator-no-apiKey").show(),t.storesResultsHtml&&e.append(t.storesResultsHtml)}function s(t){var e=t.closest(".in-store-inventory-dialog"),o=e.length?e.spinner():$.spinner();o.start();var a=t.closest(".store-locator"),s=$(".results").data("radius"),i=a.attr("action"),l={radius:s},c=a.is("form")?a.serialize():{postalCode:a.find('[name="postalCode"]').val()};return i=n(i,l),$.ajax({url:i,type:a.attr("method"),data:c,dataType:"json",success:function(t){o.stop(),r(t),$(".select-store").prop("disabled",!0)}}),!1}t.exports={init:function(){$(".map-canvas").data("has-google-api")?a():$(".store-locator-no-apiKey").show(),$(".results").data("has-results")||$(".store-locator-no-results").show()},detectLocation:function(){$(".detect-location").on("click",(function(){$.spinner().start(),navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){var e=$(".detect-location").data("action");e=n(e,{radius:$(".results").data("radius"),lat:t.coords.latitude,long:t.coords.longitude}),$.ajax({url:e,type:"get",dataType:"json",success:function(t){$.spinner().stop(),r(t),$(".select-store").prop("disabled",!0)}})})):$.spinner().stop()}))},search:function(){$(".store-locator-container form.store-locator").submit((function(t){t.preventDefault(),s($(this))})),$('.store-locator-container .btn-storelocator-search[type="button"]').click((function(t){t.preventDefault(),s($(this))}))},changeRadius:function(){$(".store-locator-container .radius").change((function(){var t=$(this).val(),e=$(".results").data("search-key"),o=$(this).data("action-url"),a={};e.postalCode?a={radius:t,postalCode:e.postalCode}:e.lat&&e.long&&(a={radius:t,lat:e.lat,long:e.long}),o=n(o,a);var s=$(this).closest(".in-store-inventory-dialog"),i=s.length?s.spinner():$.spinner();i.start(),$.ajax({url:o,type:"get",dataType:"json",success:function(t){i.stop(),r(t),$(".select-store").prop("disabled",!0)}})}))},selectStore:function(){$(".store-locator-container").on("click",".select-store",(function(t){t.preventDefault();var e=$(":checked",".results-card .results"),o={storeID:e.val(),searchRadius:$("#radius").val(),searchPostalCode:$(".results").data("search-key").postalCode,storeDetailsHtml:e.siblings("label").find(".store-details").html(),event:t};$("body").trigger("store:selected",o)}))},updateSelectStoreButton:function(){$("body").on("change",".select-store-input",(function(){$(".select-store").prop("disabled",!1)}))}}}});

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.