1import{x as t,u as e,S as a}from"./2c1ab0fe.GMbxnz74.js";import{b as r}from"./efa0389a.Cyj781OI.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.BbIvMjRY.js";import{W as b}from"./31cc568e.eY_zQ4dB.js";import{S as u,a9 as g,V as y}from"./4c290a1e.C6TDJ9Fn.js";import{u as h,D as P,R as v}from"./50130ded.D6F2mjeI.js";import{C as w}from"./86720dbb.mJ-rOycE.js";import"./app.CepNJbvh.js";import"./9f047e05.CCJUgz_L.js";import"./0a7dffce.DfUtZWCu.js";import"./5fda1420.KYpufQ--.js";import"./60a453ce.CkhHeRBc.js";import"./21cc90a2.DAzJmttM.js";import"./bb728e1c.iawBHR84.js";import"./f692f62f.DHgy7Fzw.js";import"./f3fe2775.BSk1ex1h.js";import"./ac5a19ff.CRrh5Bdw.js";import"./598fef4e.Bhe6r8fJ.js";import"./e77f7fe0.xbyxUO7Z.js";import"./a422df8c.BXxALpKm.js";import"./cc6ff67d.CUDxlVK0.js";import"./08a3b809.BxtDOfoo.js";import"./bff2ff9b.Wb1R3ZbF.js";import"./87bfafec.B2XXZnjV.js";import"./e39bc11c.BPwkTsU-.js";import"./cf29e63b.ByW6Fn7D.js";import"./dfca5da5.BFrL439g.js";import"./55098bf1.CKQdNNxq.js";import"./0e67bd3b.rrDC0LWO.js";import"./74835653.CRP9zX7D.js";import"./29034f35.BtTRppF-.js";import"./47b970b2.hK1atmf1.js";import"./0727407f.CsUvC--9.js";import"./064f6ac1.B1U3VPaO.js";import"./53bbdad9.CGJC_1cv.js";import"./7a8217fd.CuaDs8we.js";import"./e477f96c.BxtSUGa4.js";import"./7114e006.Dn0MarCB.js";import"./b684bff6.BpL4wH2U.js";import"./6720fa5f.Dt8m7rOm.js";import"./58314944.1jO_vh_4.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.