1import{S as t,dB as r}from"./4c290a1e.DMQ9xOwP.js";import{z as o,t as a}from"./2c1ab0fe.GMbxnz74.js";import{a2 as e}from"./164ad2e3.B4L1MRYB.js";const n="context";function s(){const{mobileCheckoutSdk:r}=t();if(!r.enabled)return!1;const o=r.config?.colorScheme,a=Boolean("undefined"!=typeof window&&window.matchMedia?.("(prefers-color-scheme: dark)")?.matches);return"DARK"===o||r.variant.isStandard()&&"AUTOMATIC"===o&&a}const c=({backgroundColor:t,foregroundColor:r})=>{const o=u(t),a=u(r),e=(Math.max(o,a)+.05)/(Math.min(o,a)+.05);return{isValidContrast:e>=3.06,ratio:Math.round(100*e)/100}};const i=(t,r,o)=>{const a=t=>{const r=t/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4};return.2126*a(t)+.7152*a(r)+.0722*a(o)};function u(t){const[r,o,a]=t.toRgbTuple();return i(r,o,a)}const d=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)$/,l=t=>{const r=t.match(d);if(!r)return t;const[,o,a,e,n]=r;return void 0===n?`rgb(${o}, ${a}, ${e})`:`rgba(${o}, ${a}, ${e}, ${n})`},m=(t,r)=>{const o=t.match(d);if(!o)return!1;const a=void 0===o[4]?1:parseFloat(o[4]),e=r?.match(d),n=t=>{const r=parseInt(o[t],10),n=e?parseInt(e[t],10):255;return r*a+n*(1-a)};return i(n(1),n(2),n(3))<.179};function f(n,s){const c=s?.lazyReveal??!1,i=e(),u=t().checkout.configuration.layout.isOnePage.value,d=o(n);return a(()=>!(u||"EXPANDED"!==i?.orderSummary?.defaultState)||d.value.some(t=>{if("customField"===t.kind)return r(t).required.value;const o=r(t),a=o.behaviors.value,e=a.blockProgress&&o.capabilities.blockProgress;return c?a.alwaysReveal&&!e:!!e||!!a.alwaysReveal}))}export{d as R,s as a,c as b,m as i,l as n,n as s,f 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.