breakpoints.xl) { viewportSize = ‘extra extra large screen’; } var pageTitle = “Ethernet & Network Cables”; var domain = “www.staples.ca”; let lang = ‘en’.toUpperCase(); let pageType = “collection”; let contentPage = Boolean(window.location.href.indexOf(‘/a/content/’) > -1 || window.location.href.indexOf(‘/a/contenu/’) > -1); let learnPage = Boolean(window.location.href.indexOf(‘/a/learn/’) > -1 || window.location.href.indexOf(‘/a/apprendre/’) > -1); if (contentPage) { pageType = ‘Content’; } if (learnPage) { pageType = ‘Learn’; } var prevPage = document.referrer; var themeId = “120290672769”; var shopifyDomain = “staples-canada.myshopify.com”; !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error(“Segment snippet included twice.”);else{analytics.invoked=!0;analytics.methods=[“trackSubmit”,”trackClick”,”trackLink”,”trackForm”,”pageview”,”identify”,”reset”,”group”,”track”,”ready”,”alias”,”debug”,”page”,”once”,”off”,”on”,”addSourceMiddleware”,”addIntegrationMiddleware”,”setAnonymousId”,”addDestinationMiddleware”];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e = 200 && request.status < 400) { // Success! cashier_installed_on_site = true; } else { cashier_installed_on_site = false; } }; request.onerror = function(e) { cashier_installed_on_site = false; }; request.send(); if (typeof Object.assign != 'function') { // Must be writable: true, enumerable: false, configurable: true Object.defineProperty(Object, 'assign', { value: function assign(target, varArgs) { // .length of function is 2 'use strict'; if (target == null) { // TypeError if undefined or null throw new TypeError('Cannot convert undefined or null to object'); } var to = Object(target); for (var index = 1; index < arguments.length; index++) { var nextSource = arguments[index]; if (nextSource != null) { // Skip over if undefined or null for (var nextKey in nextSource) { // Avoid bugs when hasOwnProperty is shadowed if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) { to[nextKey] = nextSource[nextKey]; } } } } return to; }, writable: true, configurable: true }); } if (!Object.keys) { Object.keys = (function () { 'use strict'; var hasOwnProperty = Object.prototype.hasOwnProperty, hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'), dontEnums = [ 'toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'constructor' ], dontEnumsLength = dontEnums.length; return function (obj) { if (typeof obj !== 'function' && (typeof obj !== 'object' || obj === null)) { throw new TypeError('Object.keys called on non-object'); } var result = [], prop, i; for (prop in obj) { if (hasOwnProperty.call(obj, prop)) { result.push(prop); } } if (hasDontEnumBug) { for (i = 0; i < dontEnumsLength; i++) { if (hasOwnProperty.call(obj, dontEnums[i])) { result.push(dontEnums[i]); } } } return result; }; }()); } var QS = function () { var query_string = {}; var query = window.location.search.substring(1); var vars = query.split('&'); for (var i = 0; i 0) { filteredSearch['_ga'] = linkerParam.split('=')[1]; } }); } Object.assign(filteredSearch, otherParams); var getParamString = stringifyParams(filteredSearch); if (getParamString.length > 0) { getParamString = ‘?’ + getParamString; } return getParamString; } if (typeof BOLD === ‘undefined’) { BOLD = {}; } BOLD.checkout = { getCookie: function getCookie(name) { var value = ‘; ‘ + document.cookie; var parts = value.split(‘; ‘ + name + ‘=’); if (parts.length === 2) { return parts.pop().split(‘;’).shift(); } }, getPath: function getPath(url) { var parser = document.createElement(‘a’); parser.href = url; return parser.pathname; }, isFormButtonOrChild: function isFormButtonOrChild(elem) { //note, do we need to handle the Anchor tag? return elem.matches(‘form button, form button *, form input[type=submit], form input[type=submit] *’); }, isCheckoutForm: function isCheckoutForm(action) { var path = BOLD.checkout.getPath(action); return action.search(/^/checkoutb/) !== -1 || path.search(/^/checkoutb/) !== -1; }, isCartForm: function isCartForm(action) { var path = BOLD.checkout.getPath(action); return action.search(/^/cartb/) !== -1 || path.search(/^/cartb/) !== -1 || action.search(//cartb/) !== -1 || path.search(//cartb/) !== -1; }, getForm: function getForm(elem, depth) { depth = typeof depth !== ‘undefined’ ? depth : 0; var maxSearchDepth = 3; if (typeof elem.form === ‘undefined’ && depth < maxSearchDepth) { return BOLD.checkout.getForm(elem.parentNode, depth + 1); } else { return elem.form; } }, isBoldClone: function (elem) { return elem.matches('.bold_clone, .bold_clone *'); }, isCheckoutButtonOrChild: function isCheckoutButtonOrChild(elem) { return elem.matches('form [name=checkout], form [name=checkout] *'); }, isCheckoutButton: function isCheckoutButton(elem) { if (BOLD.checkout.isBoldClone(elem)) { return false; } if (!BOLD.checkout.isFormButtonOrChild(elem)) { return false; } var form = BOLD.checkout.getForm(elem); if (form) { var action = form.getAttribute('action'); if (BOLD.checkout.isCheckoutForm(action)) { return true; } if (BOLD.checkout.isCartForm(action) && BOLD.checkout.isCheckoutButtonOrChild(elem)) { return true; } } return false; }, isFeatureRequired: function isFeatureRequired() { if (typeof BOLD.checkout_features_defaults === 'undefined'){ return true; } for (i = 0; i = 200 && request.status = 200 && request.status = 0 && matches.item(i) !== this) { } return i > -1; }; } ]]> {{/is_cart_fee}} {{^is_cart_fee}} Includes applicable eco fees. {{/is_cart_fee}} {{/fees}} {{/has_fees}} ]]> {{/is_cart_fee}} {{^is_cart_fee}} Includes applicable eco fees. {{/is_cart_fee}} {{/fees}} {{/has_fees}} {{#has_expiry}} Expires: {{expiry}} {{/has_expiry}} ]]> {{#fees}} Eco Fee: {{amount}}
Ethernet & Network Cables | staples.ca = bopis_service_down_start_date_ISO && currentDateTime -1; return found; }); return locationFound; }; window.ENV.Featureflags.appleCare = false; window.ENV.ZendeskDelay = 60000; var shopifyDomain = ‘staples-canada.myshopify.com’ var getCorrectSegmentKey = function() { var isKioskSet = false; var isKioskLocation = checkIfKioskLocation(); if (window.localStorage.getItem(‘app_mode’) === ‘kiosk’) { isKioskSet = true; } else if (isKioskLocation) { window.localStorage.setItem(‘app_mode’, ‘kiosk’); isKioskSet = true; } if (isKioskSet) { if (shopifyDomain === “staples-canada.myshopify.com”) { return ‘F0gQOFZVEsZ9VgQ8hIfx0SJyAcnLHkCk’; } else { return ‘7nRW2RkXAB7n5SSr5o9VlTvjxNZSIoyf’; } } else { if (shopifyDomain === “staples-canada.myshopify.com”) { return ‘lxKYwUOWD2vPiTxPCltkEoRHEUXWmT8i’; } else { return ‘QvIwW3U88XAEMp9YW9Ag6oDJWwGpDE0b’; } } }; window.ENV.segment_API = window.ENV.segment_API || {}; window.ENV.segment_API.write_key = getCorrectSegmentKey(); window.ENV.segment_API.analytics_click = “data-analytics-click”; window.ENV.links = window.ENV.links || {}; window.ENV.links.store_locator_french = ‘//locations.bureauengros.com’; window.ENV.links.store_locator_english = ‘//stores.staples.ca’; window.Shopify = window.Shopify || {}; ]]> 1)},!0)}},{}],5:[function(t,e,n){function r(t){}if(window.performance&&window.performance.timing&&window.performance.getEntriesByType){var o=t(“ee”),i=t(“handle”),a=t(13),s=t(12),c=”learResourceTimings”,f=”addEventListener”,u=”resourcetimingbufferfull”,d=”bstResource”,l=”resource”,p=”-start”,h=”-end”,m=”fn”+p,v=”fn”+h,w=”bstTimer”,y=”pushState”,x=t(“loader”);x.features.stn=!0,t(8);var g=NREUM.o.EV;o.on(m,function(t,e){var n=t[0];n instanceof g&&(this.bstStart=x.now())}),o.on(v,function(t,e){var n=t[0];n instanceof g&&i(“bst”,[n,e,this.bstStart,x.now()])}),a.on(m,function(t,e,n){this.bstStart=x.now(),this.bstType=n}),a.on(v,function(t,e){i(w,[e,this.bstStart,x.now(),this.bstType])}),s.on(m,function(){this.bstStart=x.now()}),s.on(v,function(t,e){i(w,[e,this.bstStart,x.now(),”requestAnimationFrame”])}),o.on(y+p,function(t){this.time=x.now(),this.startPath=location.pathname+location.hash}),o.on(y+h,function(t){i(“bstHist”,[location.pathname+location.hash,this.startPath,this.time])}),f in window.performance&&(window.performance[“c”+c]?window.performance[f](u,function(t){i(d,[window.performance.getEntriesByType(l)]),window.performance[“c”+c]()},!1):window.performance[f](“webkit”+u,function(t){i(d,[window.performance.getEntriesByType(l)]),window.performance[“webkitC”+c]()},!1)),document[f](“scroll”,r,{passive:!0}),document[f](“keypress”,r,!1),document[f](“click”,r,!1)}},{}],6:[function(t,e,n){function r(t){for(var e=t;e&&!e.hasOwnProperty(u);)e=Object.getPrototypeOf(e);e&&o(e)}function o(t){s.inPlace(t,[u,d],”-“,i)}function i(t,e){return t[1]}var a=t(“ee”).get(“events”),s=t(26)(a,!0),c=t(“gos”),f=XMLHttpRequest,u=”addEventListener”,d=”removeEventListener”;e.exports=a,”getPrototypeOf”in Object?(r(document),r(window),r(f.prototype)):f.prototype.hasOwnProperty(u)&&(o(window),o(f.prototype)),a.on(u+”-start”,function(t,e){var n=t[1],r=c(n,”nr@wrapped”,function(){function t(){if(“function”==typeof n.handleEvent)return n.handleEvent.apply(n,arguments)}var e={object:t,”function”:n}[typeof n];return e?s(e,”fn-“,null,e.name||”anonymous”):n});this.wrapped=t[1]=r}),a.on(d+”-start”,function(t){t[1]=this.wrapped||t[1]})},{}],7:[function(t,e,n){function r(t,e,n){var r=t[e];”function”==typeof r&&(t[e]=function(){var t=r.apply(this,arguments);return o.emit(n+”start”,arguments,t),t.then(function(e){return o.emit(n+”end”,[null,e],t),e},function(e){throw o.emit(n+”end”,[e],t),e})})}var o=t(“ee”).get(“fetch”),i=t(23);e.exports=o;var a=window,s=”fetch-“,c=s+”body-“,f=[“arrayBuffer”,”blob”,”json”,”text”,”formData”],u=a.Request,d=a.Response,l=a.fetch,p=”prototype”;u&&d&&l&&(i(f,function(t,e){r(u[p],e,c),r(d[p],e,c)}),r(a,”fetch”,s),o.on(s+”end”,function(t,e){var n=this;if(e){var r=e.headers.get(“content-length”);null!==r&&(n.rxSize=r),o.emit(s+”done”,[null,e],n)}else o.emit(s+”done”,[t],n)}))},{}],8:[function(t,e,n){var r=t(“ee”).get(“history”),o=t(26)(r);e.exports=r,o.inPlace(window.history,[“pushState”,”replaceState”],”-“)},{}],9:[function(t,e,n){function r(t){function e(){c.emit(“jsonp-end”,[],l),t.removeEventListener(“load”,e,!1),t.removeEventListener(“error”,n,!1)}function n(){c.emit(“jsonp-error”,[],l),c.emit(“jsonp-end”,[],l),t.removeEventListener(“load”,e,!1),t.removeEventListener(“error”,n,!1)}var r=t&&”string”==typeof t.nodeName&&”script”===t.nodeName.toLowerCase();if(r){var o=”function”==typeof t.addEventListener;if(o){var a=i(t.src);if(a){var u=s(a),d=”function”==typeof u.parent[u.key];if(d){var l={};f.inPlace(u.parent,[u.key],”cb-“,l),t.addEventListener(“load”,e,!1),t.addEventListener(“error”,n,!1),c.emit(“new-jsonp”,[t.src],l)}}}}}function o(){return”addEventListener”in window}function i(t){var e=t.match(u);return e?e[1]:null}function a(t,e){var n=t.match(l),r=n[1],o=n[3];return o?a(o,e[r]):e[r]}function s(t){var e=t.match(d);return e&&e.length>=3?{key:e[2],parent:a(e[1],window)}:{key:t,parent:window}}var c=t(“ee”).get(“jsonp”),f=t(26)(c);if(e.exports=c,o()){var u=/[?&](?:callback|cb)=([^&#]+)/,d=/(.*).([^.]+)/,l=/^(w+)(.|$)(.*)$/,p=[“appendChild”,”insertBefore”,”replaceChild”];f.inPlace(HTMLElement.prototype,p,”dom-“),f.inPlace(HTMLHeadElement.prototype,p,”dom-“),f.inPlace(HTMLBodyElement.prototype,p,”dom-“),c.on(“dom-start”,function(t){r(t[0])})}},{}],10:[function(t,e,n){var r=t(“ee”).get(“mutation”),o=t(26)(r),i=NREUM.o.MO;e.exports=r,i&&(window.MutationObserver=function(t){return this instanceof i?new i(o(t,”fn-“)):i.apply(this,arguments)},MutationObserver.prototype=i.prototype)},{}],11:[function(t,e,n){function r(t){var e=a.context(),n=s(t,”executor-“,e),r=new f(n);return a.context(r).getCtx=function(){return e},a.emit(“new-promise”,[r,e],e),r}function o(t,e){return e}var i=t(26),a=t(“ee”).get(“promise”),s=i(a),c=t(23),f=NREUM.o.PR;e.exports=a,f&&(window.Promise=r,[“all”,”race”].forEach(function(t){var e=f[t];f[t]=function(n){function r(t){return function(){a.emit(“propagate”,[null,!o],i),o=o||!t}}var o=!1;c(n,function(e,n){Promise.resolve(n).then(r(“all”===t),r(!1))});var i=e.apply(f,arguments),s=f.resolve(i);return s}}),[“resolve”,”reject”].forEach(function(t){var e=f[t];f[t]=function(t){var n=e.apply(f,arguments);return t!==n&&a.emit(“propagate”,[t,!0],n),n}}),f.prototype[“catch”]=function(t){return this.then(null,t)},f.prototype=Object.create(f.prototype,{constructor:{value:r}}),c(Object.getOwnPropertyNames(f),function(t,e){try{r[e]=f[e]}catch(n){}}),a.on(“executor-start”,function(t){t[0]=s(t[0],”resolve-“,this),t[1]=s(t[1],”resolve-“,this)}),a.on(“executor-err”,function(t,e,n){t[1](n)}),s.inPlace(f.prototype,[“then”],”then-“,o),a.on(“then-start”,function(t,e){this.promise=e,t[0]=s(t[0],”cb-“,this),t[1]=s(t[1],”cb-“,this)}),a.on(“then-end”,function(t,e,n){this.nextPromise=n;var r=this.promise;a.emit(“propagate”,[r,!0],n)}),a.on(“cb-end”,function(t,e,n){a.emit(“propagate”,[n,!0],this.nextPromise)}),a.on(“propagate”,function(t,e,n){this.getCtx&&!e||(this.getCtx=function(){if(t instanceof Promise)var e=a.context(t);return e&&e.getCtx?e.getCtx():this})}),r.toString=function(){return””+f})},{}],12:[function(t,e,n){var r=t(“ee”).get(“raf”),o=t(26)(r),i=”equestAnimationFrame”;e.exports=r,o.inPlace(window,[“r”+i,”mozR”+i,”webkitR”+i,”msR”+i],”raf-“),r.on(“raf-start”,function(t){t[0]=o(t[0],”fn-“)})},{}],13:[function(t,e,n){function r(t,e,n){t[0]=a(t[0],”fn-“,null,n)}function o(t,e,n){this.method=n,this.timerDuration=isNaN(t[1])?0:+t[1],t[0]=a(t[0],”fn-“,this,n)}var i=t(“ee”).get(“timer”),a=t(26)(i),s=”setTimeout”,c=”setInterval”,f=”clearTimeout”,u=”-start”,d=”-“;e.exports=i,a.inPlace(window,[s,”setImmediate”],s+d),a.inPlace(window,[c],c+d),a.inPlace(window,[f,”clearImmediate”],f+d),i.on(c+u,r),i.on(s+u,o)},{}],14:[function(t,e,n){function r(t,e){d.inPlace(e,[“onreadystatechange”],”fn-“,s)}function o(){var t=this,e=u.context(t);t.readyState>3&&!e.resolved&&(e.resolved=!0,u.emit(“xhr-resolved”,[],t)),d.inPlace(t,y,”fn-“,s)}function i(t){x.push(t),h&&(b?b.then(a):v?v(a):(E=-E,R.data=E))}function a(){for(var t=0;t
{{/fees}} {{money}} ]]> /g, ‘:’)), attributes: “//cdn.shopify.com/s/files/1/0036/4806/1509/t/2598/assets/Attributes.en_CA.json?v=18160333892530050147” } }, inventory: { authorization: “”, endpoint: { auth: “”, delivery: “https://nostaplescms.staples.ca/api/inventory”, bopis: “https://nostaplescms.staples.ca/api/pickupinstore” }, use_bold: true, bold_auth: { plugin_token: “14d757296f4ac85eda09fd6117641b0e4cbe76d110576d881929d497d7acd7b2” } }, algolia: { autosuggest_en: “shopify_products_en_qs”, autosuggest_fr: “shopify_products_fr_qs”, search_en: “shopify_products”, search_fr: “shopify_products” }, data: { contentful: { preview_active: false, preview_access_key: ”, preview_host: ”, }, }, customer: { address: null, hasAccount: null, postal: null, province: null, first_name: null, last_name: null, email: null, id: null,order_ids: [] }, ink_toner_finder: “//cdn.shopify.com/s/files/1/0036/4806/1509/t/2598/assets/ink_toner_finder.json?v=13523333253351775366”, links: { store_locator_english: “//stores.staples.ca”, store_locator_french: “//locations.bureauengros.com” }, store_locator: { cache_param: “1611154830440” }, richrelevance_engage_enabled: true, feature_flags: { orders: true, sst_package_limiter: true, guest_order_lookup: true }, }; window.BOLD = window.BOLD || {}; BOLD.checkout = BOLD.checkout || {}; BOLD.checkout.languageIsoCode = window.bounteous.l10n.lang; ]]>
Source