PageSourceSearch

https://box-box.com/cdn/shopifycloud/checkout-web/assets/c1/e3e348f2.BNIjpesF.js

js box-box.com collected 2026-10-07 17:16:56 UTC 9,173 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["1b348813.xkDSv1mQ.js","2c1ab0fe.DlNazk3M.js","164ad2e3.CR6m0m--.js","4b4bc88f.DJ4vpQqJ.js","app.DKKjpp8o.js","assets/app.CcGlIMpn.css","assets/wallet-prefilled-guest-return.BJvF0-q4.css","d0bb51ec.CruejZky.js","f67abd2c.Dckgq3F6.js","60a453ce.CV8OqWZ9.js","e12db40c.C6hBKds9.js","9dba8418.C1GTC4hZ.js","assets/hydrate.BtZpYm2T.css","e129c76e.C4X7vtK7.js","ccdf3592.BkplsWLN.js","78ab3dd0.J9WK0jwC.js","d4ea2faa.DCTpv5qv.js","fe885b80.NT2f9Z6u.js","f78726c8.BDzuU7jc.js","assets/hooks.CKE1iCma.css","d02f7b10.DABhj3YB.js","ed9f2238.B1nqQTFp.js","33464469.DY9z0_QS.js","71ae3d5c.0c8Rx8xO.js","ee2bb050.BsIc-JF0.js","17e57de1.CDeKS2ai.js","ca3e798e.ymm59RLp.js","cb8fcd45.saBjGuqa.js","8536083a.BvkiWhnF.js","c6c0cbda.mV_nvZKe.js","assets/useHasViolations.BnDF3H7t.css","assets/WalletSandbox.BoV0vp4z.css","assets/PayPalButton.jBvXiHEe.css"])))=>i.map(i=>d[i]);
2import{_ as e}from"./app.DKKjpp8o.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.DlNazk3M.js";import{u as m,c as h,a6 as v,O as b,c7 as y,Y as P,aQ as f,F as g,I as w,n as A}from"./4b4bc88f.DJ4vpQqJ.js";import{Q as E,co as S,by as k,b$ as N,v as L,a7 as x,cp as C,a5 as T,cq as R,x as Y,cr as j,i as D,b as F,f as O,j as I,A as M,I as B,r as q,L as V,D as X,a8 as $,s as Q,cs as U}from"./164ad2e3.CR6m0m--.js";import{b as W}from"./71ae3d5c.0c8Rx8xO.js";function G({id:e,children:o}){const r=n(!1);return t(E.Provider,{value:a(()=>({id:e,completeStatusSignal:r}),[e,r]),children:[o,t(H,{})]})}function H(){const e=m(E),n=e.completeStatusSignal.value;return W(e.id,!n),null}const K=o({displayName:"PayPalButtonComponent",load:()=>r(()=>e(()=>import("./1b348813.xkDSv1mQ.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 z(e){const n="venmo"===e.fundingSource?"Venmo":"PayPal";return t(G,{id:n,children:t(K,{...e})})}const J="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=S("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=S("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=x(),t=C(),a=ne(),o=S("PAYMENTS_PAYPAL_TOKEN_EXPIRED"),r=S("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=Q("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(F,{id:"purchase_options_agreement",padding:"none",children:t(i,{when:p,fallback:t(_e,{}),children:t(pe,{})})});return o?t(D,{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 M({content:_(()=>n.value),role:"status"})})}(e),null}function ce(){const{i18n:e}=h(),n=R(),t=x(),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=$(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(B,{children:s}),t(i,{when:r,children:[" ",a.translate("payment.purchase_options_subscription_store_credit_agreement_label")]})]})}function pe(){const e=ce();return t(F,{padding:"none","aria-live":"polite","aria-atomic":"true",children:t(O,{children:t(ue,{buttonLabel:e.value})})})}function _e(){const{i18n:e}=h();return t(I,{color:"subdued",children:e.translate("payment.purchase_options_agreement_label",{cancellation_policy_label:t(he,{})})})}function de(){const{i18n:e}=h();return t(F,{id:"purchase_options_agreement",padding:"small-100 none none none",children:t(I,{color:"subdued",type:"small",children:e.translate("payment.purchase_options_agreement_label_wallets",{cancellation_policy_label:t(he,{})})})})}function me(){return t(F,{id:"purchase_options_agreement",padding:"large-100 none none none",children:t(O,{children:t(ue,{})})})}function he({tone:e}){const{embed:n,i18n:a,shop:{merchantPolicies:o}}=h(),r=t(I,{children:a.translate("payment.purchase_options_cancellation_policy_label")}),l=q(void 0,le),{localPolicies:s}=g(),i=o.some(e=>e.handle===J)?s.find(e=>e.handle===J):void 0;return i?i.url&&w(n?.embedder)?t(V,{tone:e,"aria-haspopup":"dialog",onClick:()=>{n?.client?.windowOpenRequest(i.url)},children:r}):t(c,{children:[t(V,{tone:e,commandFor:l,children:r}),t(X,{id:l,defaultPolicy:{...i,name:a.translate("shop_policies.purchase_options_cancellation_policy")}})]}):r}function ve(e,n=U()){const t=u(null),a=u(new Set),{observability:o}=h(),r=A(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,J as S,Z as a,ae as b,G as c,ue as d,ee as e,oe as f,ve as g,z 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.