PageSourceSearch

https://jodeemessina.com/cdn/shopifycloud/checkout-web/assets/c1/4ea44c06.DbVsWVFA.js

js jodeemessina.com collected 2026-10-02 12:11:27 UTC 9,707 bytes, 1 lines download raw bytes

1import{u as e,S as a,s as n,z as t,t as i,w as o,l as s,m as l,v as r,x as u,T as c,q as d}from"./2c1ab0fe.GMbxnz74.js";import{a4 as m,o as p,ch as h,e as y,W as v,F as b,b as g,bu as f,ds as P,ae as k,cT as _,iG as w,l as S,B as z,ah as x,iH as L,C as I,E as C,iI as N,bi as T,J as R,ak as A,ay as E,I as F,aF as M,hZ as j,iJ as B,hU as $,iK as D,iL as H,hV as O,hW as W,hX as V,iM as q,eA as J,a5 as X,c as G,h$ as K,L as Z,bz as Q,P as U,R as Y,g5 as ee,gz as ae,H as ne}from"./164ad2e3.BbIvMjRY.js";import{S as te,a9 as ie,df as oe,aZ as se,T as le,aa as re,bh as ue,mS as ce,W as de,mT as me}from"./4c290a1e.C6TDJ9Fn.js";import{c as pe,j as he,g as ye,h as ve,u as be,d as ge}from"./e3e348f2.tCxUo2up.js";import{u as fe}from"./91319467.CaV5Q69j.js";import{d as Pe}from"./ccdf3592.CGA4lGQ3.js";import{b as ke}from"./ed9f2238.D-8_6d2f.js";import{A as _e}from"./app.CepNJbvh.js";function we({children:n,size:t="medium",ignoreBranding:i=!1}){const{primaryButton:{typography:{size:o}={}}}=m();return t&&!o||i?e(p,{size:t,children:n}):e(a,{children:n})}function Se(e){const a=document.getElementById(e);a&&a.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))}function ze(){const n=pe().value,t=he(),{i18n:i,checkout:o}=te(),s=o.configuration.layout.isOnePage.value,l=h(),{currentPage:r}=y().value,u="review"===r?.id,c="payPal"===o.identity.current.value;if(s&&!c)return null;if(!s&&l.value&&!u)return null;if(!t.value||!n)return null;const d=i.translate("payment_errors.paypal_over_capture",{walletName:i.translate("brand.paypal")});return e(a,{children:[e(v,{errorType:b.PaymentError,tone:"info",children:d}),s&&e(g,{blockSize:"large-200"})]})}function xe(){const e=te(),{shopPay:a,mobileCheckoutSdk:n}=e,{isAppLayout:t}=f();if(a.visibility.shouldRenderFloatingShopPayButton)return"floating";const i=n.variant.isPartner();return Pe(e.checkout,{isPartnerSdkEnabled:i,isAppLayout:t})?"sticky":"inline"}function Le(){return"inline"!==xe()}function Ie({disabled:a=!1,loading:s=!1,pixelId:l,setRef:r,buttonContent:u}){const c=P(),d=Le(),m=k(),p=_(),h=n(e=>{l&&m(l)(e),r?.(e)},[l,m,r]),{i18n:y,checkout:v,observability:b}=te(),g=v.configuration.layout.isOnePage.value,{applePaySessionHandler:f,inMemoryApplePayParts:{isLoadingPaymentSheet:L,sessionLoadFailed:I}}=ie(),C=t(a),N=t(s),T=i(()=>f.value?.onClickHandler),R=i(()=>null==T.value);ye([{walletName:ke.ApplePay,isRendered:()=>null!=T.value,isLoading:()=>null==T.value&&!I.value,onTimeout:()=>{I.value=!0}}],w());const A=i(()=>L.value||N.value),E=i(()=>L.value||C.value||R.value),F=g?g&&d&&c?.id?()=>Se(c.id):void 0:()=>{const e=T.value;null!=e?e({disabled:C.value,isMountedRef:p}):b.error(new _e("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 g?e(we,{children:a}):a}(),j=R.value;return e(z,{className:"SJwrb",inert:j||void 0,children:[e(S,{variant:"primary",size:g?"base":"large",type:g?"submit":"button",inlineSize:"fill",loading:A.value,loadingMode:"extended",disabled:E.value,ref:h,onClick:F,className:j?"NIOCQ":void 0,children:M}),e(o,{when:R,children:e(z,{className:"_20EXH",children:e(x,{contentDisplay:"block",inlineSize:"100%",blockSize:"100%"})})})]})}const Ce={base:{blockSize:`calc(${oe.button.primary.blockPadding} * 2 + ${oe.fontSize.medium} * ${oe.lineHeight.base})`,className:"vzWSA"},large:{blockSize:`calc(${oe.button.primary.blockPadding} * 2 * 1.5 + ${oe.fontSize.base} * ${oe.lineHeight.base})`}},Ne="h1pXK",Te="E4OHT",Re="vnCpz";function Ae({isLoading:a,showSkeleton:n,hidden:t=!1,setRef:i,children:s}){const{source:l,checkout:u}=te(),c=u.configuration.layout.isOnePage.value,d="simulated"===l.type,m=n.value;let p;return!t&&m&&c&&(p=Ce.base.className),e(z,{ref:i,className:r("RTmkG",p,{[Ne]:c,[Te]:a,[Re]:t}),inert:d||m,children:[s,e(o,{when:n,children:e(z,{className:"NFpbC",children:e(x,{contentDisplay:"block",inlineSize:"100%",blockSize:"100%"})})})]})}function Ee({disabled:a,loading:n,hidden:o=!1,setRef:r}){const{checkout:u,i18n:c}=te(),d=s(null),m=u.configuration.layout.isOnePage.value,p=L(),h=I(),{inMemoryPayPalParts:y,inMemoryVenmoParts:v}=ie(),b=C(h),g=b?v.buttonStatus:y.payWithPayPalButtonStatus,{checkoutProtocolModalEventSignal:f}=se();l(()=>(f.value=o?"none":"paypal",()=>{f.value="none"}),[o,f]),ye([{walletName:ke.PayPalV6,isRendered:()=>"rendered"===g.value.status,isLoading:()=>"not_rendered"===g.value.status,onTimeout:()=>{g.value={status:"error"}}}],w());const P=t(o),k=i(()=>!P.value&&"rendered"!==g.value.status&&"error"!==g.value.status&&"not_eligible"!==g.value.status),_={buttonLabel:"pay",isPayWithPayPalFlow:!0,progressToNextPage:!0,buttonColor:"blue",isDisabled:p.value||a||!1,fundingSource:b?"venmo":"paypal",sizingButtonRef:m?void 0:d},x=p.value||n||!1;return e(Ae,{isLoading:x,showSkeleton:k,hidden:o,setRef:r,children:[!m&&e(z,{inert:!0,children:e(S,{ref:d,className:"_8Flfy",variant:"primary",size:"large",inlineSize:"fill",type:"button",children:c.translate("general.pay_now_button_label")})}),e(ve,{..._})]})}const Fe={CheckoutExitPayButton:"tEAw2"};function Me({children:a}){const{observability:n,checkout:{wallets:t,identity:i}}=te(),o=N(),l=y(),r=le().buyerIdentity,u=s(),c=s(),d=re();return T(e=>{u.current=void 0,c.current=void 0,"violations"in e&&(u.current=e.violations.map(e=>e.code)),"reasons"in e&&(c.current=e.reasons)}),e("div",{onClickCapture:function(e){if(e.detail>2){const e=d.parts.paymentLines.value.map(e=>"wallet"===e.method.type||"walletsPlatformPaymentMethod"===e.method.type?e.method.name:e.method.type),a=l.value.currentDetour?.type??l.value.currentPage?.id??"unknown",s={identity:i.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:r.value?.customerProfile?.__typename,numberOfErrors:o?.numberOfErrors()??"unknown",lastInterceptionReasons:c.current,lastViolations:u.current,blocked:d.isBlocked.value,paymentLineNames:e,...s})}},children:a})}function je({shopId:a,shopName:n,shopLogo:t,amount:i,showDivider:o,isLocalShop:s}){const[l,r]=u(!1),{i18n:c}=te();return e(G,{gap:"base",children:[e(R,{gridAutoFlow:"column",gridTemplateColumns:"minmax(auto, max-content) minmax(0, 1fr)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",children:[e(z,{children:e(A,{size:"small",src:t,alt:n})}),e(z,{blockAlignment:"center",children:[e(E,{"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(p,{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(p,{type:"strong",children:c.formatCurrency(i.amount,{currency:i.currencyCode,form:"short"})}),e(F,{type:l?"chevron-up":"chevron-down",size:"small-200"})]})]})}),e(M,{open:l,id:`separate-payments-collapsible-${a}`,children:[e(g,{blockSize:"small-200"}),e(j,{title:c.translate("order_summary.cost_table_title"),children:[e(B,{shopI
1d:a}),s&&e($,{disableTooltip:!0}),e(D,{shopId:a}),e(H,{shopId:a}),s&&e(O,{}),s&&e(W,{}),s&&e(V,{disableTooltip:!0}),e(q,{shopId:a}),s&&e(J,{shopId:a})]})]})]})]}),o&&e(X,{direction:"inline",borderWidth:"base"})]})}function Be(){const{i18n:n,shop:{name:t,id:i,brandSettings:o,remoteShopsConfigMap:s}}=te(),l=ue("remoteMerchandiseDetails").value,r=K().value,u=ce(),d=fe(),m=c(()=>{const e=[];for(const[a,n]of u.value){if(!n)continue;if(d.value&&a===i){e.push({shopName:t,shopLogo:o?.squareLogo?.url,shopId:i,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,i,t,o?.squareLogo?.url,s,d.value]);if(l||!r)return null;const p=e(a,{children:[e(Z,{textDecoration:"none",commandFor:"separate-payments-modal",children:n.translate("payment.separate_payments_text")}),e(Q,{id:"separate-payments-modal",heading:n.translate("payment.payments"),children:e(G,{gap:"base",children:m.map((a,n)=>e(je,{shopId:a.shopId,shopName:a.shopName,shopLogo:a.shopLogo,amount:a.amount,showDivider:n!==m.length-1,isLocalShop:a.shopId===i},a.shopId))})})]});return e(U,{color:"subdued",children:n.translate("payment.separate_payments_label",{separate_payments_link:p})})}function $e(){const{i18n:a,shop:n}=te(),t=de().paymentLines.value;return n.vaultForPaymentLater&&me(t)?e(U,{color:"subdued",children:a.translate("payment.vault_for_payment_later.notice")}):null}function De(){const e=le().captcha;return i(()=>Boolean(e.value))}const He=({disabled:t,loading:i,defaultLabel:s,pixelId:l})=>{const{i18n:r}=te(),{nextPage:u}=Y(),c=k(),m="review"===u.id,p=pe().value,h=be().value,y=ge().value,v=ee(),b=ae(),g=n(e=>{c(l)(e),b(e)},[c,b,l]),f=h&&!y,P=p&&!y,_=d(!1);return P&&!_.value&&(_.value=!0),e(a,{children:[e(ne,{id:"checkout-pay-heading",tabIndex:-1,visibility:"hidden",children:r.translate("general.finalize_order_accessibility_label")}),e(o,{when:_,children:e(Ee,{disabled:t,loading:i,hidden:!P})}),f&&e(Ie,{disabled:t,loading:i,pixelId:l}),!P&&!f&&e(S,{id:"checkout-pay-button",variant:"primary",size:"large",type:"submit",inlineSize:"fill",loading:i,disabled:t,ref:g,className:v&&!m?Fe.CheckoutExitPayButton:void 0,children:s})]})};export{ze as P,Me as R,Be as S,$e as V,He as a,Ce as b,we as c,xe as d,Le as e,Ee as f,Ie as g,Fe as p,Se as t,De 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.