PageSourceSearch

https://zentoes.com/cdn/shopifycloud/checkout-web/assets/c1/localization-index.CJWyYqpP.js

js zentoes.com collected 2026-09-30 09:22:27 UTC 6,957 bytes, 1 lines download raw bytes

1import{u as b,g as v,X as B,x as E,q as G,E as m,j as N}from"./esnext-vendor.Bmnq4DOZ.js";import{a2 as L,aK as V,A as D,C as T,gs as F,bu as R,e3 as I,jz as q}from"./hydrate.CUlaR_HD.js";import{O as C,P as S,aP as z,G as O,aQ as W,q as Y,k as M,x as X,y as K,z as Q,Q as j,eH as H,cc as $,cx as J,mu as Z}from"./hooks-useReplaceShopPayInHistory.C29NkH19.js";import{i as ee}from"./helpers-credit-card-disabled.ynfYxS1g.js";const te="fjTgn",se="fa7nz",oe="RV2tT",ae="wOVuC",ne="_9Mesh",h={FormLayout:te,FormLayoutGroup:se,SpacingSmall100:oe,SpacingBase:ae,FormLayoutConnected:ne};function Ve({children:e}){const{formLayout:{spacing:t}}=L(),s=t==="none";return b("div",{className:v(h.FormLayout,x(t),s&&h.FormLayoutConnected),children:e})}function De({children:e,gridTemplateColumns:t}){const{formLayout:{spacing:s}}=L();return b("div",{className:v(h.FormLayoutGroup,x(s)),style:{"--form-layout-group-columns":t},children:e})}function x(e){switch(e){case"base":return h.SpacingBase;case"none":return;default:return h.SpacingSmall100}}const U=B(!1);U.displayName="CompactContext";function Te(){return E(U)}function Fe(){const{shopPay:e,checkout:t}=C(),{paymentMethods:s}=S(),i=t.installments.paymentMethodMustSupportInterestBearingLoans;return{creditCardDisabled:G(n=>ee(n,s,e.session.isInstallmentsSelected,i),[s,i,e.session.isInstallmentsSelected])}}const le={id:"fdc8128f690860079c498a10b90912e0f80562eb838162c450f12b65d69b0389",type:"query",name:"MsiCardEligibility",source:"query MsiCardEligibility($checkoutContextInput:CheckoutContextInput!){checkoutSession(checkoutContextInput:$checkoutContextInput){user{paymentMethods{...on CreditCard{id msiEligible __typename}__typename}__typename}__typename}}"},k=Object.freeze({}),ce=z(({checkout:e,graphql:t,shop:s,shopPay:i,source:a})=>{const n=e.proposal.negotiated.fields,o=m(()=>n.buyerIdentity.value?.presentmentCurrency),y=m(()=>Y(n.paymentMethods.value??[])),l=m(()=>e.identity.current.value!=="shopPay"||!y.value||o.value!=="MXN"),c=m(()=>i.user.paymentMethods.value.filter(M).map(u=>u.id).sort().join(",")),r=t.shopPayGraphql.query(le,{variables:{checkoutContextInput:{checkoutVersion:W({source:a}),checkoutIdentifier:a.checkoutSessionIdentifier??"unknown",shopifyDomain:s.myshopifyDomain,shopId:O(s.id)}},skip:()=>l.value});let g=c.peek(),P=o.peek();return N(function(){const d=c.value,p=o.value,w=d!==g||p!==P;g=d,P=p,!(!w||l.peek())&&r.refetch({deduplicate:!0})}),{eligibilityByCardId:m(()=>{if(l.value)return k;const u=r.data.value?.checkoutSession?.user?.paymentMethods;if(!u)return k;const d={};for(const p of u)p.__typename==="CreditCard"&&(d[p.id]=p.msiEligible??!1);return d}),error:r.error,loading:r.loading}});function Re(e){if(e?.method.type!=="wallet")return!1;switch(e.method.name){case"APPLE_PAY":return Q(e);case"GOOGLE_PAY":return K(e);case"PAYPAL_EXPRESS":return X(e);default:return!1}}function qe(){const{value:e}=S().paymentMethods,{billingAddress:t,billingAddressOption:s}=j(),i=V(),{shopPay:a,checkout:{address:n}}=C(),o=H(s.value==="shipping"?i.value:t.value,{extendedAddressMode:n.extendedAddressMode}),{eligibilityByCardId:y}=$(ce),l=a.session.selectedPaymentMethod.value,c=J(e),r=l!=null&&M(l)?y.value[l.paymentAttributes.id]??!1:!1;
1return({sessionToken:P,creditCardInstallments:f,msiEligibleCard:u=r}={})=>{const d=a.session.hsaRequested.peek();return{method:{type:"wallet",name:"SHOP_PAY",walletContent:{paymentMethod:"CREDIT_CARD",sessionToken:P,billingAddress:o,paymentMethodIdentifier:Z(e),...f!=null&&f>0&&{creditCardInstallments:f},...u&&{msiEligibleCard:u},...c&&{hsaRequested:d}}}}}}const ie="/cdn/shopifycloud/checkout-web/assets/c1/assets/apay-logo-light.BOpRNbfJ.svg",re="/cdn/shopifycloud/checkout-web/assets/c1/assets/apay-logo.qbCmTpxR.svg",ue="/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo-borderless-light.D4uI0NI6.svg",de="/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo-borderless.BpIqGUgE.svg",A="/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo.BVeJpuwf.svg",pe="/cdn/shopifycloud/checkout-web/assets/c1/assets/bwp-logo-light.Be3NC6rq.svg",ye="/cdn/shopifycloud/checkout-web/assets/c1/assets/bwp-logo.BRDn9X4f.svg",ge="/cdn/shopifycloud/checkout-web/assets/c1/assets/gpay-logo-light.B_DsI0cq.svg",me="/cdn/shopifycloud/checkout-web/assets/c1/assets/gpay-logo.BbJVlra3.svg",he="/cdn/shopifycloud/checkout-web/assets/c1/assets/paypal-logo-light.Do6ddnMD.svg",Pe="/cdn/shopifycloud/checkout-web/assets/c1/assets/paypal-logo.Q2f7XzPy.svg",fe="/cdn/shopifycloud/checkout-web/assets/c1/assets/shop-pay-logo-light.Ts-yoc2V.svg",be="/cdn/shopifycloud/checkout-web/assets/c1/assets/shop-pay-logo.yJ-5VMKh.svg",Ce="/cdn/shopifycloud/checkout-web/assets/c1/assets/venmo-logo-light.Nme_SAlP.svg",_e="/cdn/shopifycloud/checkout-web/assets/c1/assets/venmo-logo.DabXQIZQ.svg",Ie="e5syv",ke="_7NPtB",Ae="XGA28",ve="gKSKB",Le="DWmRr",Se="RULId",Me="SMmkH",xe="EpCJ3",Ue="_705vE",we="Zxnlh",_={walletLogo:Ie,xxxsmall:ke,xxsmall:Ae,xsmall:ve,small:Le,medium:Se,large:Me,AmazonPayLogoVerticalAlignment:xe,BuyWithPrimeLogoVerticalAlignment:Ue,ShopPayLogoVerticalAlignment:we};function ze({size:e="medium",wallet:t,invertColor:s=!1}){const i=D(),a=T(i);let n=F();s&&(n=n==="light"?"dark":"light");const{i18n:o,observability:y}=C(),l={amazon_pay:{iconUrl:re,customClassName:"AmazonPayLogoVerticalAlignment",lightIconUrl:ie,altText:o.translate("brand.amazon_pay")},APPLE_PAY:{iconUrl:A,lightIconUrl:A,altText:o.translate("brand.apple_pay")},APPLE_PAY_BORDERLESS:{iconUrl:de,lightIconUrl:ue,altText:o.translate("brand.apple_pay")},buy_with_prime:{iconUrl:ye,customClassName:"BuyWithPrimeLogoVerticalAlignment",lightIconUrl:pe,altText:o.translate("brand.buy_with_prime")},GOOGLE_PAY:{iconUrl:me,lightIconUrl:ge,altText:o.translate("brand.google_pay")},PAYPAL_EXPRESS:{iconUrl:a?_e:Pe,lightIconUrl:a?Ce:he,altText:a?o.translate("brand.venmo"):o.translate("brand.paypal")},SHOP_PAY:{iconUrl:be,customClassName:"ShopPayLogoVerticalAlignment",lightIconUrl:fe,altText:o.translate("brand.shop_pay")}};if(!(t in l))return y.log("wallet_logo_unsupported_wallet_encountered","Unsupported wallet type in WalletLogo",{wallet:t,severity:"warning"}),null;const c=l[t],r=n==="light"?c.lightIconUrl:c.iconUrl,g=[_.walletLogo,_[e],c.customClassName&&_[c.customClassName]].filter(Boolean).join(" ");return b("img",{src:r,className:g,alt:c.altText})}function Oe(){const{i18n:e}=C(),{isWebLayout:t}=R();return({offerGuestCheckout:s=!1}={})=>s&&t?{message:e.translate("payment_errors.processing_error_checkout_as_guest",{checkout_as_guest_link:e.translate("account_management.checkout_as_guest_link")}),messageNode:e.translate("payment_errors.processing_error_checkout_as_guest",{checkout_as_guest_link:b(q,{})}),target:I}:{message:e.translate("payment_errors.processing_error"),target:I}}const We=e=>e===""?"":`${e.charAt(0).toLocaleUpperCase()+e.substring(1)}`;export{U as C,Ve as F,ce as S,ze as W,Fe as a,De as b,We as c,Oe as d,qe as e,Re as i,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.