PageSourceSearch

https://www.graylinemedical.com/cdn/shopifycloud/checkout-web/assets/c1/d56ce0bb.BWbsVbXw.js

js graylinemedical.com collected 2026-10-06 15:26:00 UTC 7,986 bytes, 1 lines download raw bytes

1import{u as e,w as a,g as t,q as s,h as l,o as n,m as o,k as i,p as r,L as c,s as p,S as d}from"./2c1ab0fe.Bywc2Brn.js";import{c as u,c2 as m,a5 as b,c3 as v,aP as h,z as f}from"./9dba8418.BjFsJfKG.js";import{S as y,cf as _,I as P,cg as j,ch as S,X as g,bf as w,b as A,f as k,L,j as C,B as E,aK as z,a1 as N,H as x,M,a as H,ci as Y,cj as q,t as B,v as I}from"./164ad2e3.CwFFCQJV.js";import{A as W}from"./d4ea2faa.DDPWBAbK.js";import{T as R}from"./7b0c98ea.Yk4Unznh.js";import{S as O,d as T}from"./e3e348f2.Cy2p8rtD.js";import{c as X}from"./31cc568e.95lmLO5k.js";import{e as D}from"./1d34c07e.h4dJAaCz.js";import{s as F}from"./dffdfb34.CzthtxlL.js";import"./app.CGAYdtrm.js";import"./d0bb51ec.B6dL-tOK.js";import"./f67abd2c.BWsb-1Zx.js";import"./60a453ce.CEvWNvTm.js";import"./e12db40c.BZEbMADi.js";import"./71ae3d5c.DB_FveVu.js";import"./3ca8ef7e.BBbh135K.js";import"./1f5e7811.DRy2G6rY.js";import"./2fdb3dd3.dIFymSrZ.js";import"./22345fd4.C4C9Ghp6.js";import"./0e67bd3b.DSwL85WM.js";import"./74835653.DREIE8pg.js";import"./2495faa4.Ugq9r3_W.js";import"./a9fa9fda.E2WWXy1c.js";import"./ca3e798e.Dc9DtEXz.js";import"./47b970b2.C3ZYX1tS.js";import"./064f6ac1.AHd5DVks.js";import"./efa0389a.SKDhWulJ.js";import"./4b1c22b7.B-c0_qEI.js";import"./17425706.BStFtLxk.js";import"./2bac2c53.DYoWukU7.js";import"./55098bf1.DVVi0Xb6.js";import"./cb5cf153.QK6iyQsN.js";import"./cb38e5c2.Dg2atdyh.js";import"./78ab3dd0.Qdt3M1MR.js";import"./ed9f2238.BJ8qr5j7.js";import"./6fb6f9d8.Dwrw3qUs.js";import"./1444e6bd.nTYcj6dN.js";import"./0b8657b8.C6e3FG7y.js";import"./a422df8c.Bmt6KHDF.js";import"./79974aab.D1vRvKbg.js";import"./d22d2b80.UV8MoQoU.js";import"./f49d4216.BEJwvB0Q.js";function J({body:a}){return e(j,{children:e(P,{dangerouslySetInnerHTML:{__html:a.value??""},scrollableContent:"all"})})}function V({body:t,loading:s,error:l}){const{i18n:n}=u();return e(a,{when:l,fallback:e(a,{when:s,fallback:e(J,{body:t}),children:e(y,{gap:"base",children:[e(_,{lines:2,lastLineSize:"large"}),e(_,{lines:3,lastLineSize:"small"}),e(_,{lines:2,lastLineSize:"base"}),e(_,{size:"extraLarge",lastLineSize:"large",lines:1}),e(_,{lines:7,lastLineSize:"small"}),e(_,{lines:3,lastLineSize:"base"})]})}),children:n.translate("bad_request.title")})}const K="JtAjb",Q="otCH1";function U({id:i,canConfirm:r,onConfirm:c,onHide:p,onShow:d}){const{i18n:b,shop:v,checkout:{negotiator:h}}=u(),{checkoutProtocolModalEventSignal:f}=h.context,_=b.translate("payment.purchase_options_cancellation_policy_label"),P=v.merchantPolicies.find(({handle:e})=>e===O),j={handle:O,shopId:v.id,shopName:v.name,squareLogo:v.brandSettings?.squareLogo,name:_,url:P?.url??""},H=m(S,{defaultPolicy:j,policies:[j]}),Y=t(!1),q=s(()=>{Y.current&&"applePaySubscriptionConsent"===f.value&&(f.value="none"),Y.current=!1},[f]);l(()=>q,[q]);const B=n(!1),I=n(!1),W=t(null),D=g(),F=w(B.value,"slow"),J=B.value||I.value,U=!B.value||I.value,Z=s(e=>{W.current=e,e&&(e.dataset.inertSupported=String("inert"in e))},[]),G=b.translate("wallets.continue_with",{walletName:b.translate("brand.apple_pay")}),$=B.value?X(_):b.translate("payment.purchase_options_subscription_confirmation_title"),ee=s(()=>{H.show(),B.value=!0},[H,B]),ae=s(()=>{H.hide(),B.value=!1},[H,B]),te=s(()=>{I.value=!0,H.hide(),q(),p()},[I,H,q,p]),se=s(()=>{B.value=!1,I.value=!1,Y.current=!0,f.value="applePaySubscriptionConsent",d()},[B,I,f,d]);return e(M,{id:i,heading:e(y,{direction:"inline",alignItems:"center",gap:"base",children:[e(a,{when:B,children:e(z,{type:"button",padding:"small-400",borderRadius:"base",accessibilityLabel:b.translate("account_management.back"),onClick:ae,children:e(N,{type:"arrow-left",size:"base"})})}),e(x,{level:1,autoFocus:!0,children:$},B.value?"policy":"consent")]}),accessibilityLabel:$,onShow:se,onHide:te,actionLayout:"stacked",primaryAction:e(E,{variant:"primary",type:"button",inlineSize:"fill",disabled:!r.value,onClick:c,children:G}),children:e(A,{className:"VqsW7",children:e(R,{contentRef:W,children:e(A,{ref:Z,className:"c1X76",padding:"small-200",overflow:"hidden",children:[e(a,{when:()=>D?!B.value:"entered"!==F,children:e(A,{className:o(K,B.value&&Q),"data-side":"backward","data-visible":!B.value&&(D||"exit"!==F),position:B.value?"absolute":"relative",inert:J,children:e(k,{children:e(T,{buttonLabel:G,cancellationPolicyLink:P?e(L,{tone:"monochrome",onClick:ee,children:e(C,{children:_})}):void 0})})})}),e(a,{when:()=>D?B.value:"exited"!==F,children:e(A,{className:o(K,!B.value&&Q),"data-side":"forward","data-visible":B.value&&(D||"enter"!==F),position:B.value?"relative":"absolute",inert:U,children:e(V,{body:H.policyBody,loading:H.loading,error:H.error})})})]})})})})}const Z=I("ApplePaySubscriptionConsentModal");function G({supportedNetworks:m,color:y}){const{acceleratedWalletPaymentMethods:_,applePaySessionHandler:P,inMemoryApplePayParts:{buttonStatus:j,paymentSheetError:S}}=b(),g=i(()=>{const e=P.value;return null==e?.createSession||null==e.showApplePayPaymentSheet?null:{createSession:e.createSession,openApplePayPaymentSheet:e.showApplePayPaymentSheet}}),w=t({status:"rendered"});r(()=>{const e=null!=g.value,a=j.value;e&&"not_rendered"===a.status?c(()=>{j.value=w.current}):e||a!==w.current||c(()=>{j.value={status:"not_rendered"}})}),l(()=>()=>{j.value===w.current&&(j.value={status:"not_rendered"})},[j]);const A=H(),k=t(null),{observability:L,i18n:C,checkout:E}=u(),{wallets:z}=E,N=p(Y()),x=i(()=>v({hasSubscription:h({checkout:E}),isApplePayAvailable:_.value.some(({name:e})=>
1"APPLE_PAY"===e),variant:N.value})),{showOverlay:M,hideOverlay:I}=q(),R=B(void 0,Z),O=n(!1),T=s(()=>{O.value=!0,L.log("apple_pay_subscription_consent_modal_opened","Apple Pay subscription consent modal opened")},[O,L]),X=s((e="dismissed")=>{O.value&&(O.value=!1,L.log("apple_pay_subscription_consent_modal_closed","Apple Pay subscription consent modal closed",{reason:e}))},[O,L]),J=()=>{L.log("apple_pay_button_clicked_while_loading","Apple Pay button clicked while already loading the payment sheet. Ignoring click.")},V=()=>{L.error(new W("Apple Pay button clicked without a ready session handler."))},K=e=>{const a=z.activeSession.value;if("APPLE_PAY"===a?.wallet)return void J();const t=g.value;if(t)try{t.openApplePayPaymentSheet(t.createSession({supportedNetworks:m,...e&&{subscriptionConsent:e}}).session),"explicit_modal"===e&&"APPLE_PAY"===z.activeSession.value?.wallet&&L.log("apple_pay_subscription_consent_session_started","Apple Pay session started after subscription consent")}catch(s){const e={error:s,errorName:s instanceof Error?s.name:"Unknown",errorMessage:s instanceof Error?s.message:String(s),...s instanceof Error&&s.stack&&{errorStack:s.stack}};L.leaveErrorBreadcrumb("Failed to create Apple Pay session",e),S.value={type:"failed_to_create_session"},"APPLE_PAY"===z.activeSession.value?.wallet&&z.clearActiveSession({invokingWallet:"APPLE_PAY"})}else V()},Q=i(()=>"explicit_modal"===x.value),G=i(()=>O.value&&Q.value&&null!=g.value&&null==z.activeSession.value);r(()=>{O.value&&(!Q.value||null==g.value||null!=z.activeSession.value)&&(X("invalidated"),I(R))});const $=null!=g.value;return e(d,{children:[e("button",{ref:e=>{k.current=e,A("apple_pay")(e)},className:o(F.ApplePayButton,F[y],D.borderRadius,f({focusRing:"base"})),lang:C.locale,disabled:!$,onClick:()=>{const e=z.activeSession.value;if("APPLE_PAY"===e?.wallet)return void J();const a=x.value;if(Q.value)return e?void L.log("apple_pay_subscription_consent_blocked_by_active_wallet","Apple Pay subscription consent blocked by another active wallet.",{activeWallet:e.wallet,requestedWallet:"APPLE_PAY"}):g.value?(k.current?.focus({preventScroll:!0}),void M(R)):void V();K(a)},type:"button","aria-label":C.translate("brand.apple_pay"),"aria-haspopup":Q.value?"dialog":void 0}),e(a,{when:()=>Q.value||O.value,children:e(U,{id:R,canConfirm:G,onShow:T,onHide:X,onConfirm:()=>{G.value&&(L.log("apple_pay_subscription_consent_confirmed","Apple Pay subscription consent confirmed"),X("confirmed"),I(R),K("explicit_modal"))}})})]})}export{G as ApplePayButton};

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.