PageSourceSearch

https://shopvoni.com/cdn/shopifycloud/checkout-web/assets/c1/e129c76e.Bzz9ssIz.js

js shopvoni.com collected 2026-10-07 01:47:20 UTC 9,006 bytes, 1 lines download raw bytes

1import{u as e,S as a,q as n,s as t,k as o,w as i,g as s,h as l,m as r,z as u,T as c}from"./2c1ab0fe.Bywc2Brn.js";import{K as d,j as m,cr as p,k as h,a9 as y,aa as g,d as b,bK as v,d7 as f,a as k,c_ as P,ib as _,B as w,b as S,au as L,ic as z,a7 as x,a8 as C,id as N,br as I,ab as R,aw as A,aH as T,a1 as j,aT as E,hE as M,ie as B,hz as F,ig as O,ih as D,hA as $,hB as H,hC as W,ii as V,eA as q,aj as K,S as X,L as G,M as J,f as Q}from"./164ad2e3.DHuJhR22.js";import{c as Y,a5 as Z,d1 as U,b9 as ee,o7 as ae,nW as ne}from"./9dba8418.DInoCEzY.js";import{u as te,j as oe,g as ie,h as se}from"./e3e348f2.Bv52tyZZ.js";import{d as le}from"./ccdf3592.BVTVJP2g.js";import{a as re}from"./78ab3dd0.DKtM_PR5.js";import{A as ue}from"./d4ea2faa.XFt6zT8f.js";import{u as ce}from"./fe885b80.jONiPULW.js";import{u as de}from"./f78726c8.B_6HchCq.js";function me({children:n,size:t="medium",ignoreBranding:o=!1}){const{primaryButton:{typography:{size:i}={}}}=d();return t&&!i||o?e(m,{size:t,children:n}):e(a,{children:n})}function pe(e){const a=document.getElementById(e);a&&a.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))}function he(){const n=te().value,t=oe(),{i18n:o,checkout:i}=Y(),s=i.configuration.layout.isOnePage.value,l=p(),{currentPage:r}=h().value,u="review"===r?.id,c="payPal"===i.identity.current.value;if(s&&!c)return null;if(!s&&l.value&&!u)return null;if(!t.value||!n)return null;const d=o.translate("payment_errors.paypal_over_capture",{walletName:o.translate("brand.paypal")});return e(a,{children:[e(y,{errorType:g.PaymentError,tone:"info",children:d}),s&&e(b,{blockSize:"large-200"})]})}function ye(){const e=Y(),{shopPay:a,mobileCheckoutSdk:n}=e,{isAppLayout:t}=v();if(a.visibility.shouldRenderFloatingShopPayButton)return"floating";const o=n.variant.isPartner();return le(e.checkout,{isPartnerSdkEnabled:o,isAppLayout:t})?"sticky":"inline"}function ge(){return"inline"!==ye()}function be({disabled:a=!1,loading:s=!1,pixelId:l,setRef:r,buttonContent:u}){const c=f(),d=ge(),m=k(),p=P(),h=n(e=>{l&&m(l)(e),r?.(e)},[l,m,r]),{i18n:y,checkout:g,observability:b}=Y(),v=g.configuration.layout.isOnePage.value,{applePaySessionHandler:z,inMemoryApplePayParts:{isLoadingPaymentSheet:x,sessionLoadFailed:C}}=Z(),N=t(a),I=t(s),R=o(()=>z.value?.onClickHandler),A=o(()=>null==R.value);ie([{walletName:re.ApplePay,isRendered:()=>null!=R.value,isLoading:()=>null==R.value&&!C.value,onTimeout:()=>{C.value=!0}}],_());const T=o(()=>x.value||I.value),j=o(()=>x.value||N.value||A.value),E=v?v&&d&&c?.id?()=>pe(c.id):void 0:()=>{const e=R.value;null!=e?e({disabled:N.value,isMountedRef:p}):b.error(new ue("Pay with Apple Pay button clicked without a ready session handler."))},M=function(){if(u)return u;const a=y.translate("general.pay_now_button_label");return v?e(me,{children:a}):a}(),B=A.value;return e(S,{className:"SJwrb",inert:B||void 0,children:[e(w,{variant:"primary",size:v?"base":"large",type:v?"submit":"button",inlineSize:"fill",loading:T.value,loadingMode:"extended",disabled:j.value,ref:h,onClick:E,className:B?"NIOCQ":void 0,children:M}),e(i,{when:A,children:e(S,{className:"_20EXH",children:e(L,{contentDisplay:"block",inlineSize:"100%",blockSize:"100%"})})})]})}const ve={base:{blockSize:`calc(${U.button.primary.blockPadding} * 2 + ${U.fontSize.medium} * ${U.lineHeight.base})`,className:"vzWSA"},large:{blockSize:`calc(${U.button.primary.blockPadding} * 2 * 1.5 + ${U.fontSize.base} * ${U.lineHeight.base})`}};function fe({isLoading:a,showSkeleton:n,hidden:t=!1,setRef:o,children:s}){const{source:l,checkout:u}=Y(),c=u.configuration.layout.isOnePage.value,d="simulated"===l.type,m=n.value;let p;return!t&&m&&c&&(p=ve.base.className),e(S,{ref:o,className:r("RTmkG",p,c&&"h1pXK",a&&"E4OHT",t&&"vnCpz"),inert:d||m,children:[s,e(i,{when:n,children:e(S,{className:"NFpbC",children:e(L,{contentDisplay:"block",inlineSize:"100%",blockSize:"100%"})})})]})}function ke({disabled:a,loading:n,hidden:i=!1,setRef:r}){const{checkout:u,i18n:c}=Y(),d=s(null),m=u.configuration.layout.isOnePage.value,p=z(),h=x(),{inMemoryPayPalParts:y,inMemoryVenmoParts:g}=Z(),b=C(h),v=b?g.buttonStatus:y.payWithPayPalButtonStatus,{checkoutProtocolModalEventSignal:f}=u.negotiator.context;l(()=>(f.value=i?"none":"paypal",()=>{f.value="none"}),[i,f]),ie([{walletName:re.PayPalV6,isRendered:()=>"rendered"===v.value.status,isLoading:()=>"not_rendered"===v.value.status,onTimeout:()=>{v.value={status:"error"}}}],_());const k=t(i),P=o(()=>!k.value&&"rendered"!==v.value.status&&"error"!==v.value.status&&"not_eligible"!==v.value.status),L={buttonLabel:"pay",isPayWithPayPalFlow:!0,progressToNextPage:!0,buttonColor:"blue",isDisabled:p.value||a||!1,fundingSource:b?"venmo":"paypal",sizingButtonRef:m?void 0:d},N=p.value||n||!1;return e(fe,{isLoading:N,showSkeleton:P,hidden:i,setRef:r,children:[!m&&e(S,{inert:!0,children:e(w,{ref:d,className:"_8Flfy",variant:"primary",size:"large",inlineSize:"fill",type:"button",children:c.translate("general.pay_now_button_label")})}),e(se,{...L})]})}const Pe={CheckoutExitPayButton:"tEAw2"};function _e({children:a}){const{observability:n,checkout:{wallets:t,identity:o,negotiator:i}}=Y(),l=N(),r=h(),u=i.current.fields.buyerIdentity,c=s(),d=s();return I(e=>{c.current=void 0,d.current=void 0,"violations"in e&&(c.current=e.violations.map(e=>e.code)),"reasons"in e&&(d.current=e.reasons)}),e("div",{onClickCapture:function(e){if(e.detail>2){const e=i.parts.paymentLines.value.map(e=>"wallet"===e.method.type||"walletsPlatformPaymentMethod"===e.method.type?e.method.name:e.method.type),a=r.value.currentDetour?.type??r.value.currentPage?.id??"unknown",s={identity:o.current.value,activeWallet:t.activeSession.value?.wallet??null,asPaymentMethod:t.activeSession.value?.asPaymentMethod??!1,journeyStep:a,primaryPaymentLine:e.at(0)};n.counter({name:"pay_now_rage_click",value:1,attributes:s}),n.log("rage_click_capture_pay_now_rage_click_detected","pay_now_rage_click",{customerProfile:u.value?.customerProfile?.__typename,numberOfErrors:l?.numberOfErrors()??"unknown",lastInterceptionReasons:d.current,lastViolations:c.current,blocked:i.isBlocked.value,paymentLineNames:e,...s})}},children:a})}function we({shopId:a,shopName:n,shopLogo:t,amount:o,showDivider:i,isLocalShop:s}){const[l,r]=u(!1),{i18n:c}=Y();return e(X,{gap:"base",children:[e(R,{gridAutoFlow:"column",gridTemplateColumns:"minmax(auto, max-content) minmax(0, 1fr)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",children:[e(S,{children:e(A,{size:"small",src:t,alt:n})}),e(S,{blockAlignment:"center",children:[e(T,{"aria-expanded":l,"aria-controls":`separate-payments-collapsible-${a}`,onClick:()=>r(e=>!e),children:e(R,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",children:[e(m,{type:"strong",children:n}),e(R,{gridAutoFlow:"column",gridAutoColumns:"minmax(auto, max-content)",gridTemplateColumns:"minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"small-200",alignItems:"center",alignContent:"center",children:[!l&&e(m,{type:"strong",children:c.formatCurrency(o.amount,{currency:o.currencyCode,form:"short"})}),e(j,{type:l?"chevron-up":"chevron-down",size:"small-200"})]})]})}),e(E,{open:l,id:`separate-payments-collapsible-${a}`,children:[e(b,{blockSize:"small-200"}),e(M,{title:c.translate("order_summary.cost_table_title"),children:[e(B,{shopI
1d:a}),s&&e(F,{disableTooltip:!0}),e(O,{shopId:a}),e(D,{shopId:a}),s&&e($,{}),s&&e(H,{}),s&&e(W,{disableTooltip:!0}),e(V,{shopId:a}),s&&e(q,{shopId:a})]})]})]})]}),i&&e(K,{direction:"inline",borderWidth:"base"})]})}function Se(){const{i18n:n,shop:{name:t,id:o,brandSettings:i,remoteShopsConfigMap:s}}=Y(),l=ee("remoteMerchandiseDetails").value,r=de().value,u=ae(),d=ce(),m=c(()=>{const e=[];for(const[a,n]of u.value){if(!n)continue;if(d.value&&a===o){e.push({shopName:t,shopLogo:i?.squareLogo?.url,shopId:o,amount:n});continue}const l=s?.get(a);l&&e.push({shopName:l.name,shopId:a,shopLogo:l.brandSettings?.squareLogo?.url,amount:n})}return e},[u.value,o,t,i?.squareLogo?.url,s,d.value]);if(l||!r)return null;const p=e(a,{children:[e(G,{textDecoration:"none",commandFor:"separate-payments-modal",children:n.translate("payment.separate_payments_text")}),e(J,{id:"separate-payments-modal",heading:n.translate("payment.payments"),children:e(X,{gap:"base",children:m.map((a,n)=>e(we,{shopId:a.shopId,shopName:a.shopName,shopLogo:a.shopLogo,amount:a.amount,showDivider:n!==m.length-1,isLocalShop:a.shopId===o},a.shopId))})})]});return e(Q,{color:"subdued",children:n.translate("payment.separate_payments_label",{separate_payments_link:p})})}function Le(){const{i18n:a,shop:n,checkout:{negotiator:t}}=Y(),o=t.parts.paymentLines.value;return n.vaultForPaymentLater&&ne(o)?e(Q,{color:"subdued",children:a.translate("payment.vault_for_payment_later.notice")}):null}function ze(){const{checkout:{negotiator:e}}=Y(),a=e.current.fields.captcha;return o(()=>Boolean(a.value))}export{ke as P,_e as R,Se as S,Le as V,be as a,he as b,ve as c,me as d,ye as e,ge as f,Pe as p,pe as t,ze 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.