PageSourceSearch

https://www.mccormick.com/cdn/shop/t/2/assets/index-DS8uTh6M.js

js mccormick.com collected 2026-09-24 08:44:14 UTC 7,367 bytes, 1 lines download raw bytes

1const C="modulepreload",R=function(e,t){return new URL(e,t).href},O={},Y=function(t,n,o){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),T=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=R(c,o),c in O)return;O[c]=!0;const d=c.endsWith(".css"),P=d?'[rel="stylesheet"]':"";if(!!o)for(let p=s.length-1;p>=0;p--){const h=s[p];if(h.href===c&&(!d||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${P}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":C,d||(f.as="script"),f.crossOrigin="",f.href=c,T&&f.setAttribute("nonce",T),document.head.appendChild(f),d)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(s){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=s,window.dispatchEvent(r),!r.defaultPrevented)throw s}return i.then(s=>{for(const r of s||[])r.status==="rejected"&&a(r.reason);return t().catch(a)})};var v="data-section-id";function u(e,t){this.container=_(e),this.id=e.getAttribute(v),this.extensions=[],Object.assign(this,D(t)),this.onLoad()}u.prototype={onLoad:Function.prototype,onUnload:Function.prototype,onSelect:Function.prototype,onDeselect:Function.prototype,onBlockSelect:Function.prototype,onBlockDeselect:Function.prototype,extend:function(t){this.extensions.push(t);var n=Object.assign({},t);delete n.init,Object.assign(this,n),typeof t.init=="function"&&t.init.apply(this)}};function _(e){if(!(e instanceof Element))throw new TypeError("Theme Sections: Attempted to load section. The section container provided is not a DOM element.");if(e.getAttribute(v)===null)throw new Error("Theme Sections: The section container provided does not have an id assigned to the "+v+" attribute.");return e}function D(e){if(typeof e<"u"&&typeof e!="object"||e===null)throw new TypeError("Theme Sections: The properties object provided is not a valid");return e}typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),o=1;o<arguments.length;o++){var i=arguments[o];if(i!=null)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0});var m="data-section-type",A="data-section-id";window.Shopify=window.Shopify||{};window.Shopify.theme=window.Shopify.theme||{};window.Shopify.theme.sections=window.Shopify.theme.sections||{};var g=window.Shopify.theme.sections.registered=window.Shopify.theme.sections.registered||{},l=window.Shopify.theme.sections.instances=window.Shopify.theme.sections.instances||[];function W(e,t){if(typeof e!="string")throw new TypeError("Theme Sections: The first argument for .register must be a string that specifies the type of the section being registered");if(typeof g[e]<"u")throw new Error('Theme Sections: A section of type "'+e+'" has already been registered. You cannot register the same section type twice');function n(o){u.call(this,o,t)}return n.constructor=u,n.prototype=Object.create(u.prototype),n.prototype.type=e,g[e]=n}function x(e,t){e=k(e),typeof t>"u"&&(t=document.querySelectorAll("["+m+"]")),t=L(t),e.forEach(function(n){var o=g[n];typeof o>"u"||(t=t.filter(function(i){return q(i)||i.getAttribute(m)===null?!1:i.getAttribute(m)!==n?!0:(l.push(new o(i)),!1)}))})}function B(e){var t=w(e);t.forEach(function(n){var o=l.map(function(i){return i.id}).indexOf(n.id);l.splice(o,1),n.onUnload()})}function w(e){var t=[];if(NodeList.prototype.isPrototypeOf(e)||Array.isArray(e))var n=e[0];if(e instanceof Element||n instanceof Element){var o=L(e);o.forEach(function(a){t=t.concat(l.filter(function(s){return s.container===a}))})}else if(typeof e=="string"||typeof n=="string"){var i=k(e);i.forEach(function(a){t=t.concat(l.filter(function(s){return s.type===a}))})}return t}function y(e){for(var t,n=0;n<l.length;n++)if(l[n].id===e){t=l[n];break}return t}function q(e){return w(e).length>0}function k(e){return e==="*"?e=Object.keys(g):typeof e=="string"?e=[e]:e.constructor===u?e=[e.prototype.type]:Array.isArray(e)&&e[0].constructor===u&&(e=e.map(function(t){return t.prototype.type})),e=e.map(function(t){return t.toLowerCase()}),e}function L(e){return NodeList.prototype.isPrototypeOf(e)&&e.length>0?e=Array.prototype.slice.call(e):NodeList.prototype.isPrototypeOf(e)&&e.length===0?e=[]:e===null?e=[]:!Array.isArray(e)&&e instanceof Element&&(e=[e]),e}window.Shopify.designMode&&(document.addEventListener("shopify:section:load",function(e){var t=e.detail.sectionId,n=e.target.querySelector("["+A+'="'+t+'"]');n!==null&&x(n.getAttribute(m),n)}),document.addEventListener("shopify:section:unload",function(e){var t=e.detail.sectionId,n=e.target.querySelector("["+A+'="'+t+'"]'),o=w(n)[0];typeof o=="object"&&B(n)}),document.addEventListener("shopify:section:select",function(e){var t=y(e.detail.sectionId);typeof t=="object"&&t.onSelect(e)}),document.addEventListener("shopify:section:deselect",function(e){var t=y(e.detail.sectionId);typeof t=="object"&&t.onDeselect(e)}),document.addEventListener("shopify:block:select",function(e){var t=y(e.detail.sectionId);typeof t=="object"&&t.onBlockSelect(e)}),document.addEventListener("shopify:block:deselect",function(e){var t=y(e.detail.sectionId);typeof t=="object"&&t.onBlockDeselect(e)}));function G(e,t){return t===void 0&&(t=document),t.querySelector(e)}function H(e,t){return t===void 0&&(t=document),[].slice.call(t.querySelectorAll(e))}function I(e,t){return Array.isArray(e)?e.forEach(t):t(e)}function j(e){return function(t,n,o){return I(t,function(i){return i[e+"EventListener"](n,o)})}}function J(e,t,n){return j("add")(e,t,n),function(){return j("remove")(e,t,n)}}function E(e){return function(t){var n=arguments;return I(t,function(o){var i;return(i=o.classList)[e].apply(i,[].slice.call(n,1))})}}function Q(e){E("add").apply(void 0,[e].concat([].slice.call(arguments,1
1)))}function V(e){E("remove").apply(void 0,[e].concat([].slice.call(arguments,1)))}function X(e){E("toggle").apply(void 0,[e].concat([].slice.call(arguments,1)))}function Z(e,t){return e.classList.contains(t)}function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b={exports:{}};b.exports=S;b.exports.isMobile=S;b.exports.default=S;const M=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,$=/CrOS/,N=/android|ipad|playbook|silk/i;function S(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let n=M.test(t)&&!$.test(t)||!!e.tablet&&N.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(n=!0),n}var U=b.exports;const K=F(U);export{Y as _,X as a,V as b,Z as c,J as e,K as i,x as l,G as n,W as r,H as t,Q as u};

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.