1import{cp as o,M as e,O as s,b9 as r,iU as a}from"./4c290a1e.D9lE9kmU.js";import{T as n,u as t,g as i,q as c}from"./2c1ab0fe.D_oO1jU7.js";import{S as l}from"./5587f402.B4N8qnlk.js";import{S as u}from"./53bbdad9.Bipg1_Lt.js";import{b as d,a as p}from"./945a08d6.DUn1GrN-.js";import{Z as f,$ as m}from"./164ad2e3.DgUUtBtV.js";const h=/\S+@\S+\.\S{2,}/;function g(e,s){if(!o(e))return s}function b(o,e){return h.test(o)?void 0:e}const y=new e(0,0,100);function S({foregroundColor:o,backgroundColor:e,section:s="main"}){const r=f(),{colors:a}=m(),t=r[s];let i=y;if(void 0===e){const o=t.colorScheme;i=o?a.schemes?.[o]?.base?.background??y:y}else i=e;const{isValidContrast:c}=n((()=>d({backgroundColor:i,foregroundColor:o})),[i,o]);return c}const v={xsmall:"_8ssCG",small:"zS4x6",medium:"PrlUn",large:"SsCEp",ShopPayLogo:"eEpXo",ShopLogo:"PJvCw",inline:"aTkbO"};function C({accessibilityVisibility:o="visible",color:e="white",inline:s,size:r="medium"}){const a="branded"===e?l.toRgb():e,n="hidden"===o;return t(u,{className:i(v.ShopLogo,v[r],{[v.inline]:s}),style:{fill:a},"aria-hidden":n||void 0,"aria-label":n?void 0:"Shop",role:n?void 0:"img"})}function P(){const{observability:o,source:e,shopPay:a}=s();return{openModal:c((s=>{a.user.isUnauthenticatedUser.value?a.session.unstable_setUnauthenticatedErrorModal(s):o.error(new r("Cannot open an unauthenticated error modal outside of the unauthenticated flow",{groupingHash:"ShopPayError::UnauthenticatedErrorModal"}),{severity:"error",metadata:{source:{type:e.type},checkout:{token:e.checkoutSessionIdentifier||e.sourceId},event:{modalType:s.type,shopPayFlow:a.user.flow.value}}})}),[o,e,a])}}const k="_6W0f3",U="aFsKX",w="XVUQD";function j({progressing:o=!1}={}){const e=S({foregroundColor:l}),r=p(),t=s().shopPay.app.config,c=a(t,r);return n((()=>i("_0mzUL",{[U]:!e&&!c,[k]:c,[w]:o})),[c,e,o])}function E(){const{shopPay:o}=s();return j({progressing:o.session.isInternalProgressing.value})}export{C as S,b as a,E as b,S as c,j as d,v as s,P as u,g 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.