1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["1b348813.BzOw1-IV.js","2c1ab0fe.XVnTovwp.js","164ad2e3.hrg71Gqs.js","f67abd2c.DYpmk7mw.js","app.Bke-0Cv3.js","assets/app.BuSMBobh.css","assets/shipping.CwV2frA-.css","d0bb51ec.Bel_y502.js","60a453ce.Al5ISuVm.js","e12db40c.D-IRYT_x.js","9dba8418.C8BcPjk_.js","assets/hydrate.D12j_P4G.css","e129c76e.D6yRAZT7.js","ccdf3592.CUuo0Zrv.js","d25d1b95.BK5nRVN2.js","78ab3dd0.ee4p6MaY.js","d4ea2faa.C62bzcKj.js","fe885b80.DpX5ei01.js","f78726c8.I0TzrQ_b.js","assets/hooks.DCbwzC5k.css","2b94e6ef.DMADjiM6.js","ed9f2238.Dt1fgOnT.js","33464469.BDdBWXK1.js","71ae3d5c.DAFuGUTz.js","ee2bb050.B5w1nK0p.js","17e57de1.xgvFRsfl.js","ca3e798e.DB3SxkCu.js","cb8fcd45.DCx5cJkt.js","8536083a.BOhtbiYt.js","1d34c07e.h4dJAaCz.js","assets/ExpressCheckoutButton.BnDF3H7t.css","assets/WalletSandbox.DOuxlppk.css","assets/PayPalButton.BxQU_-QR.css"])))=>i.map(i=>d[i]); 2import{_ as e}from"./app.Bke-0Cv3.js";import{o as n,u as t,T as a,i as o,j as r,k as l,s,w as i,S as c,g as u,p,L as _,h as d}from"./2c1ab0fe.XVnTovwp.js";import{u as m,a as h,_ as v,G as b,b$ as y,M as P,aJ as f,y as g,z as w,j as E}from"./f67abd2c.DYpmk7mw.js";import{O as S,cm as A,bx as k,b$ as N,r as L,a6 as C,cn as x,a4 as T,co as R,w as Y,cp as j,h as O,b as D,f as F,i as M,z as B,G as I,s as $,L as q,C as G,a7 as V,t as X,cq as z}from"./164ad2e3.hrg71Gqs.js";import{b as U}from"./71ae3d5c.DAFuGUTz.js";function W({id:e,children:o}){const r=n(!1);return t(S.Provider,{value:a(()=>({id:e,completeStatusSignal:r}),[e,r]),children:[o,t(H,{})]})}function H(){const e=m(S),n=e.completeStatusSignal.value;return U(e.id,!n),null}const J=o({displayName:"PayPalButtonComponent",load:()=>r(()=>e(()=>import("./1b348813.BzOw1-IV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32])))});function K(e){const n="venmo"===e.fundingSource?"Venmo":"PayPal";return t(W,{id:n,children:t(J,{...e})})}const Q="subscription-policy";function Z(){const{sessionLoadFailed:e}=v().inMemoryApplePayParts,{checkout:{negotiator:n}}=h(),{paymentLines:t}=n.parts,a=N(),o=function(){const{checkout:e}=h(),{persistedApplePaySignal:n}=v(),t=A("PAYMENTS_APPLE_PAY_SESSION_EXPIRED"),a=k();return l(()=>{if(!a.value)return!1;const o=e.latestReceipt.value,r="failed"===o?.status&&n.value?.receiptIdForPaymentFailure===o?.id;return t.value||r})}(),{progressing:r}=L();return l(()=>!e.value&&(!!b(t.value,"APPLE_PAY")&&!r.value&&(!a.value||o.value)))}function ee(){const{embed:e,mobileCheckoutSdk:n}=h(),t=n.enabled&&n.variant.isPartner(),a=n.enabled&&n.variant.isStandard();return Boolean(e?.isEmbeddedCheckout()||t||a)}function ne(){const{checkout:{negotiator:e}}=h(),{paymentLines:n}=e.parts,t=A("PAYMENTS_PAYPAL_OVER_CAPTURE_DETECTED");return l(()=>{const e=n.value,a=b(e,"PAYPAL_EXPRESS"),o=Boolean(a&&!y(a));return t.value&&Boolean(a)&&!o})}function te(){const{inMemoryPayPalParts:{isApproving:e}}=v(),n=T({isPayWithPayPalButton:!0}),t=R(),a=function(){const{persistedPayPalSignal:e}=v(),n=C(),t=x(),a=ne(),o=A("PAYMENTS_PAYPAL_TOKEN_EXPIRED"),r=A("PAYMENTS_PAYPAL_CURRENCY_CHANGED");return l(()=>{const l=e.value?.newTokenRequiredDueToError;return Boolean(n.value)&&!t.value&&(l||o.value||r.value||a.value)})}();return l(()=>"error"!==n.value.status&&!e.value&&(t.value||a.value))}function ae(){const{checkout:{identity:e,wallets:n}}=h(),t=Z(),a=te(),{nextPage:o}=Y(),r=s(o.id);return l(()=>"shopPay"!==e.current.value&&!n.escalatedWallet.value&&"review"===r.value&&(a.value||t.value))}function oe(){const{checkout:{identity:e}}=h(),n=j(),t=ae();return l(()=>P(e.current.value)&&n.value&&!t.value)}function re(){const{checkout:{identity:e}}=h(),n=j(),{nextPage:t}=Y(),a=s(t.id),o=ae();return l(()=>P(e.current.value)&&!o.value||n.value&&"thankYou"===a.value)}const le=X("PurchaseOptionsAgreementModal");function se({isForExpressCheckout:e=!1,showFullSubscriptionConsent:n,placement:a,wrapInSection:o=!1}){const{checkout:r}=h(),u=s(a),p=l(()=>f({checkout:r})),_=function(){const{nextPage:e}=Y(),n=s(e.id),t=oe(),a=function(){const{checkout:e}=h(),{isOnePage:n}=e.configuration.layout,t=s(ee()),a=Z(),o=ae();return l(()=>n.value&&(t.value||a.value&&!o.value))}();return l(()=>"review"!==n.value||t.value||a.value)}(),d=l(()=>"above-pay-button"===u.value?p.value&&_.value:!("default"===u.value&&p.value)),m=l(()=>"above-pay-button"===u.value&&d.value);return t(c,{children:[!e&&t(ie,{shown:m}),t(i,{when:d,children:()=>
2{if(e)return t(i,{when:()=>n?.value??!1,fallback:t(de,{}),children:t(me,{})});const a=t(D,{id:"purchase_options_agreement",padding:"none",children:t(i,{when:p,fallback:t(_e,{}),children:t(pe,{})})});return o?t(O,{children:a}):a}})]})}function ie({shown:e}){return function(e){const n=function(){const{i18n:e,checkout:{negotiator:n}}=h(),{useStoreCreditForSubscriptionRenewals:t}=n.parts,a=ce();return l(()=>{const n={button_label:a.value,consent_text:e.translate("payment.purchase_options_subscription_consent_text"),cancellation_instructions:e.translate("payment.purchase_options_subscription_cancellation_instructions",{cancel_text:e.translate("payment.purchase_options_subscription_cancel_text"),cancellation_policy_label:e.translate("payment.purchase_options_cancellation_policy_label")})},o=e.translate("payment.purchase_options_subscription_agreement_label",n);return t.value?`${o} ${e.translate("payment.purchase_options_subscription_store_credit_agreement_label")}`:o})}(),t=u(e.peek());p(()=>{const a=e.value;if(a!==t.current&&(t.current=a,a))return B({content:_(()=>n.value),role:"status"})})}(e),null}function ce(){const{i18n:e}=h(),n=R(),t=C(),a=function(){const{i18n:e}=h(),{nextPage:n}=Y(),t=s(n.label),a=oe();return l(()=>a.value?e.translate("general.pay_now_button_label"):t.value)}();return l(()=>{if(!n.value)return a.value;const o=V(t)?e.translate("brand.venmo"):e.translate("brand.paypal");return e.translate("wallets.call_to_action",{walletName:o})})}function ue({buttonLabel:e,cancellationPolicyLink:n}){const{i18n:a,checkout:{negotiator:o}}=h(),{useStoreCreditForSubscriptionRenewals:r}=o.parts,l=function({i18n:e,cancellationPolicyLink:n}){return{consent_text:t("strong",{children:e.translate("payment.purchase_options_subscription_consent_text")}),cancellation_instructions:t(c,{children:e.translate("payment.purchase_options_subscription_cancellation_instructions",{cancel_text:t("strong",{children:e.translate("payment.purchase_options_subscription_cancel_text")}),cancellation_policy_label:n??t(he,{tone:"monochrome"})})})}}({i18n:a,cancellationPolicyLink:n}),s=void 0===e?a.translate("payment.purchase_options_subscription_agreement_label_wallets",l):a.translate("payment.purchase_options_subscription_agreement_label",{button_label:e,...l});return t(c,{children:[t(I,{children:s}),t(i,{when:r,children:[" ",a.translate("payment.purchase_options_subscription_store_credit_agreement_label")]})]})}function pe(){const e=ce();return t(D,{padding:"none","aria-live":"polite","aria-atomic":"true",children:t(F,{children:t(ue,{buttonLabel:e.value})})})}function _e(){const{i18n:e}=h();return t(M,{color:"subdued",children:e.translate("payment.purchase_options_agreement_label",{cancellation_policy_label:t(he,{})})})}function de(){const{i18n:e}=h();return t(D,{id:"purchase_options_agreement",padding:"small-100 none none none",children:t(M,{color:"subdued",type:"small",children:e.translate("payment.purchase_options_agreement_label_wallets",{cancellation_policy_label:t(he,{})})})})}function me(){return t(D,{id:"purchase_options_agreement",padding:"large-100 none none none",children:t(F,{children:t(ue,{})})})}function he({tone:e}){const{embed:n,i18n:a,shop:{merchantPolicies:o}}=h(),r=t(M,{children:a.translate("payment.purchase_options_cancellation_policy_label")}),l=$(void 0,le),{localPolicies:s}=g(),i=o.some(e=>e.handle===Q)?s.find(e=>e.handle===Q):void 0;return i?i.url&&w(n?.embedder)?t(q,{tone:e,"aria-haspopup":"dialog",onClick:()=>{n?.client?.windowOpenRequest(i.url)},children:r}):t(c,{children:[t(q,{tone:e,commandFor:l,children:r}),t(G,{id:l,defaultPolicy:{...i,name:a.translate("shop_policies.purchase_options_cancellation_policy")}})]}):r}function ve(e,n=z()){const t=u(null),a=u(new Set),{observability:o}=h(),r=E(e);d(()=>
2{if(!e)return;const l=new Set(e.map(({walletName:e})=>e));a.current.forEach(e=>{l.has(e)||a.current.delete(e)});const s=e.some(({walletName:e})=>!a.current.has(e));!t.current&&s&&(t.current=setTimeout(()=>{t.current=null;const e=r.current;e&&e.filter(e=>e.isLoading()&&!a.current.has(e.walletName)).forEach(e=>{a.current.add(e.walletName),o.counter({name:"wallet_button_render_timeout",value:1,attributes:{wallet:e.walletName}}),e.onTimeout()})},n))},[o,e,r,n]),d(()=>()=>{t.current&&(clearTimeout(t.current),t.current=null)},[])}se.displayName="PurchaseOptionsAgreement",ue.displayName="SubscriptionAgreementContent",pe.displayName="SubscriptionAgreement",_e.displayName="DefaultAgreement",de.displayName="ExpressCheckoutAgreement",me.displayName="ExpressCheckoutSubscriptionAgreement",he.displayName="CancellationPolicyLink";export{se as P,Q as S,Z as a,ae as b,W as c,ue as d,ee as e,oe as f,ve as g,K as h,re as i,ne as j,te as u};
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.