1import{cA as S,P as f,T as m,ja as C}from"./utilities-previous.Cnwy8G2v.js";import{T as p,u as P,g}from"./esnext-vendor.DDpcaSqU.js";import{S as d}from"./shared-shop-theme.BKb8cP_L.js";import{S as v}from"./utilities-stable-ref.dCtJn23l.js";import{b as k,a as y}from"./hooks-useShouldRevealCustomization.djt7DCHB.js";import{$ as B,a1 as L}from"./hydrate.BcfGVx0L.js";const b=/\S+@\S+\.\S{2,}/;function X(s,o){if(!S(s))return o}function $(s,o){return b.test(s)?void 0:o}const c=new f(0,0,100);function T({foregroundColor:s,backgroundColor:o,section:n="main"}){const e=B(),{colors:t}=L(),a=e[n];let r=c;if(o===void 0){const u=a.colorScheme;r=u?t.schemes?.[u]?.base?.background??c:c}else r=o;const{isValidContrast:h}=p(()=>k({backgroundColor:r,foregroundColor:s}),[r,s]);return h}const E="_8ssCG",_="zS4x6",x="PrlUn",A="SsCEp",D="eEpXo",I="PJvCw",O="aTkbO",l={xsmall:E,small:_,medium:x,large:A,ShopPayLogo:D,ShopLogo:I,inline:O};function z({accessibilityVisibility:s="visible",color:o="white",inline:n,size:e="medium"}){const t=o==="branded"?d.toRgb():o,a=s==="hidden";return P(v,{className:g(l.ShopLogo,l[e],{[l.inline]:n}),style:{fill:t},"aria-hidden":a||void 0,"aria-label":a?void 0:"Shop",role:a?void 0:"img"})}const U="_0mzUL",i={Button:U,"Button--dark":"_6W0f3","Button--contrast":"aFsKX","Button--progressing":"XVUQD"};function M({progressing:s=!1}={}){const o=T({foregroundColor:d}),n=y(),e=m().shopPay.app.config,t=C(e,n);return p(()=>g(i.Button,{[i["Button--contrast"]]:!o&&!t,[i["Button--dark"]]:t,[i["Button--progressing"]]:s}),[t,o,s])}function W(){const{shopPay:s}=m(),o=s.session.isInternalProgressing.value;return M({progressing:o})}export{z as S,$ as a,T as b,M as c,l as s,W as u,X as v};
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.