PageSourceSearch

https://northdrinkware.com/cdn/shopifycloud/checkout-web/assets/c1/ShippingMethodRateLabel.D5IEFYQ5.js

js northdrinkware.com collected 2026-09-29 05:54:56 UTC 1,505 bytes, 1 lines download raw bytes

1import{u as a,Y as d}from"./esnext-vendor.DDpcaSqU.js";import{b6 as u,l as m,P as h}from"./hydrate.BcfGVx0L.js";var l=(t=>(t.Light="LIGHT",t.Dark="DARK",t))(l||{});const p=[90,49,244],s=[255,255,255];function c(t){const r=t.map(e=>{const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4});return r[0]*.2126+r[1]*.7152+r[2]*.0722}function g(t,r){const e=c(t),n=c(r),o=Math.max(e,n),f=Math.min(e,n);return(o+.05)/(f+.05)}function R(t){let r=t,e="rgba(255, 255, 255, 1)";for(;r;){const n=getComputedStyle(r).backgroundColor;if(n){const o=b(n);if(o[3]&&o[3]>.1){e=n;break}}r=r.parentElement}return e}function T(t){let r=s;if(t.startsWith("#"))r=$(t);else if(t.startsWith("rgb")&&(r=b(t),r.length===4&&r[3]<=.043&&r.slice(0,3).every(e=>e===0)))return l.Light;return g(r,p)>g(r,s)?l.Light:l.Dark}function $(t){let r=0,e=0,n=0;return t.length===4?(r=+`0x${t[1]}${t[1]}`,e=+`0x${t[2]}${t[2]}`,n=+`0x${t[3]}${t[3]}`):t.length===7&&(r=+`0x${t[1]}${t[2]}`,e=+`0x${t[3]}${t[4]}`,n=+`0x${t[5]}${t[6]}`),[r,e,n]}function b(t){const e=(t.match(/(\d+\.\d+|\d+)/g)||[]).map(Number);for(;e.length<4;)e.push(1);return e}function k({methodTitle:t,price:r,showInterpunct:e=!1,sellingPlan:n}){const o=a("bdi",{children:t});return r&&e&&n?a(i,{children:[o,u,r,a(m,{type:"strong",children:n})]}):e&&r?a(i,{children:[o,u,r]}):a(i,{children:o})}function i({children:t}){const r=d.toArray(t).flatMap((e,n,o)=>n<o.length-1?[e," "]:e);return a(h,{children:a(m,{type:"strong",children:r})})}export{k as S,l as T,R as g,T as p};

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.