1import{x as t,u as e,S as a}from"./2c1ab0fe.GMbxnz74.js";import{b as r}from"./efa0389a.ZcaEqvMP.js";import{y as s,z as i,A as o,C as n,E as l,c as m,P as c,W as p,F as f,J as d,o as j}from"./164ad2e3.B4L1MRYB.js";import{W as b}from"./31cc568e.CVMsqQ1x.js";import{S as u,a9 as g,V as y}from"./4c290a1e.DMQ9xOwP.js";import{u as h,D as P,R as v}from"./50130ded.BKFMVDJg.js";import{C as w}from"./86720dbb.DHZl5FAg.js";import"./app.DGSHpWaV.js";import"./9f047e05.DwjCPgK0.js";import"./0a7dffce.BcNpdEJk.js";import"./5fda1420.BLaDhoyL.js";import"./60a453ce.Cg9T1Gj2.js";import"./21cc90a2.Ccyorzx_.js";import"./bb728e1c.CHt2JlPY.js";import"./f692f62f.DHgy7Fzw.js";import"./f3fe2775.Cg8b5yuM.js";import"./ac5a19ff.BchXgW63.js";import"./598fef4e.Blg5kMTg.js";import"./e77f7fe0.BZPIxVUE.js";import"./a422df8c.B9fLTQ4u.js";import"./cc6ff67d.D2x8Yxrg.js";import"./08a3b809.DDk5v8y8.js";import"./bff2ff9b.Cy_si-5k.js";import"./87bfafec.4CtkSIvo.js";import"./e39bc11c.D2a9UHbt.js";import"./cf29e63b.BYllFEI4.js";import"./dfca5da5.BJQx_CCE.js";import"./55098bf1.SNyaSeYe.js";import"./0e67bd3b.DUa61rto.js";import"./74835653.DeaMa2xw.js";import"./29034f35.DARWjbfB.js";import"./47b970b2.C6dKnXeF.js";import"./0727407f.DihGPUji.js";import"./064f6ac1.DPGuEQ9h.js";import"./53bbdad9.oGVvLPt2.js";import"./7a8217fd.C-KSXAi3.js";import"./e477f96c.DJuIaq7S.js";import"./7114e006.DxMyqTAB.js";import"./b684bff6.FsqZYmPf.js";import"./6720fa5f.B84Z8I3K.js";import"./58314944.D85q6ENI.js";function x({method:a,showSelectedContent:w=!0,bare:x=!1}){const{i18n:S,checkout:C}=u(),E=s()||x,_=C.configuration.layout.isOnePage.value,I=i({isPayWithPayPalButton:!0}),{inMemoryPayPalParts:{accountStatus:T}}=g(),k=o(),z=n(),L=l(z),R=!_&&("error"===I.value.status||"error"===T.value.status),[F,W]=t("");h();const X=_||"connected"!==T.value.status?null:e(A,{bare:x,children:e(m,{gap:"base",alignItems:E?"start":"center",children:e(c,{children:S.translate("wallets.logged_in",{email:T.value.email})})})}),B=k.value||F,M=R?e(A,{bare:x,children:e(m,{gap:"base",children:e(p,{errorType:f.PaymentError,tone:"critical",children:B})})}):null,N=L?S.translate("brand.venmo"):S.translate("brand.paypal"),V=a.type===y.PayPal?e(A,{bare:x,children:[B&&e(p,{errorType:f.PaymentError,tone:"critical",children:B}),e(d,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"large-200",alignItems:"center",alignContent:"center",justifyContent:"start",justifyItems:"start",minInlineSize:"100%",minBlockSize:x?void 0:"60px",children:[e(c,{textAlign:E?"start":"center",children:S.translate("wallets.logged_in",{email:a.paypalAccountEmail})}),e(P,{paypalToken:a.token,setValidationMessage:W})]})]}):null,Y=e(m,{alignItems:E?"start":"center",gap:"large-100",children:e(v,{alignment:E?"start":"center",children:S.translate("wallets.redirection_notice",{walletName:N,buttonLabel:S.translate("wallets.call_to_action",{walletName:N})})})}),q=V||X||M||Y;if(x)return q;const D=w?q:void 0,G=a.type===y.PayPal?a.type:"PAYPAL_EXPRESS";return e(r,{value:G,selectedContent:D,secondaryContent:e(b,{wallet:"PAYPAL_EXPRESS",size:"xxsmall"}),accessibilityLabel:N,children:e(j,{type:"strong",children:N})})}function A({bare:t,children:r}){return e(t?a:w,{children:r})}export{x as default};
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.