1import{z as a,u as t,S as e}from"./2c1ab0fe.B2yRRyAW.js";import{b as r}from"./efa0389a.DgBvBH2e.js";import{a4 as s,a5 as i,a6 as o,a7 as n,a8 as l,S as m,f as c,a9 as p,aa as d,ab as f,j as b}from"./164ad2e3.-hfWY9cN.js";import{W as j}from"./7a8217fd.C2rM5fX2.js";import{c as u,a6 as g,L as h}from"./4b4bc88f.JFrEI7LU.js";import{u as y,D as P,R as v}from"./50130ded.DH09jAiU.js";import{C as w}from"./86720dbb.C0NBtMoX.js";import"./22345fd4.CQJ0n-1P.js";import"./app.C_W8kcQ4.js";import"./d0bb51ec.CiN57OqX.js";import"./f67abd2c.Boj0gJpa.js";import"./60a453ce.aSs2kW8G.js";import"./e12db40c.ZpKYxNRe.js";import"./9dba8418.BqWu-Ch9.js";import"./8599b02a.C02H2K0N.js";import"./f692f62f.T4hOHGz4.js";import"./9babe369.YjVJF-bz.js";import"./a422df8c.p_hgP_ap.js";import"./4b1c22b7.BOiV_1od.js";import"./b684bff6.YNZp59HI.js";import"./064f6ac1.CZOb24JP.js";import"./bf513f9c.BITc5iYn.js";import"./0e67bd3b.DYIAHGYe.js";import"./74835653.B3C9_9vV.js";import"./3ca8ef7e.CGmhNbCs.js";import"./2495faa4.B5RDSEV2.js";import"./a9fa9fda.DtwHg2w5.js";import"./ca3e798e.j1SNghYW.js";import"./47b970b2.B55cGlxq.js";import"./6bfea526.DhpjKDX-.js";import"./ac5a19ff.BhdcadwW.js";import"./598fef4e.C__a6xIj.js";import"./e77f7fe0.B1UY2cg5.js";import"./cc6ff67d.C_qUEjhN.js";import"./08a3b809.DE8GX3m3.js";import"./d25d1b95.DkedqTWK.js";import"./e39bc11c.DZRk2vl_.js";import"./cf29e63b.CWl11nWq.js";import"./dfca5da5.CtpsmRuf.js";import"./dae24aab.xiAL8T3Q.js";import"./55098bf1.OVeEjE2R.js";import"./79974aab.Du4uYIZv.js";import"./58314944.DeRGAACO.js";function S({method:e,showSelectedContent:w=!0,bare:S=!1}){const{i18n:C,checkout:A}=u(),_=s()||S,E=A.configuration.layout.isOnePage.value,T=i({isPayWithPayPalButton:!0}),{inMemoryPayPalParts:{accountStatus:k}}=g(),I=o(),L=n(),z=l(L),B=!E&&("error"===T.value.status||"error"===k.value.status),[R,M]=a("");y();const N=E||"connected"!==k.value.status?null:t(x,{bare:S,children:t(m,{gap:"base",alignItems:_?"start":"center",children:t(c,{children:C.translate("wallets.logged_in",{email:k.value.email})})})}),W=I.value||R,X=B?t(x,{bare:S,children:t(m,{gap:"base",children:t(p,{errorType:d.PaymentError,tone:"critical",children:W})})}):null,Y=z?C.translate("brand.venmo"):C.translate("brand.paypal"),D=e.type===h.PayPal?t(x,{bare:S,children:[W&&t(p,{errorType:d.PaymentError,tone:"critical",children:W}),t(f,{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:S?void 0:"60px",children:[t(c,{textAlign:_?"start":"center",children:C.translate("wallets.logged_in",{email:e.paypalAccountEmail})}),t(P,{paypalToken:e.token,setValidationMessage:M})]})]}):null,F=t(m,{alignItems:_?"start":"center",gap:"large-100",children:t(v,{alignment:_?"start":"center",children:C.translate("wallets.redirection_notice",{walletName:Y,buttonLabel:C.translate("wallets.call_to_action",{walletName:Y})})})}),J=D||N||X||F;if(S)return J;const O=w?J:void 0,Q=e.type===h.PayPal?e.type:"PAYPAL_EXPRESS";return t(r,{value:Q,selectedContent:O,secondaryContent:t(j,{wallet:"PAYPAL_EXPRESS",size:"xxsmall"}),accessibilityLabel:Y,children:t(b,{type:"strong",children:Y})})}function x({bare:a,children:r}){return t(a?e:w,{children:r})}export{S 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.