PageSourceSearch

https://www.jbhifi.co.nz/cdn/shopifycloud/checkout-web/assets/c1/04164916.jr12F3hQ.js

js jbhifi.co.nz collected 2026-10-02 03:05:44 UTC 5,310 bytes, 1 lines download raw bytes

1import{i as I,u as e,T as R,g as T,k}from"./2c1ab0fe.BqEHHmaW.js";import{c as v,B as h,y as M,n as P,b as U,aA as G,b7 as H,b8 as z,K as O,r as L,f as $,P as K}from"./164ad2e3.BA-GikTU.js";import{b as N}from"./efa0389a.CmzfQUTJ.js";import{O as _,bc as E,P as V,aT as W,ae as j}from"./4c290a1e.FJVsH4yi.js";import{U as B,I as D}from"./7a8217fd.CAuGvD85.js";import{U as F}from"./app.D2gvVyTR.js";import{P as S,A as X}from"./86720dbb.B98R4NBr.js";import{P as w}from"./f3fe2775.BuWC6GWF.js";import{s as Y}from"./f692f62f.1VqP6fD-.js";import"./65f3d4da.BdKZt11Z.js";import"./60a453ce.BClq-svk.js";import"./0a7dffce.BHf0S_6c.js";import"./bb728e1c.uhKc-SJ5.js";import"./e477f96c.CCUKKy0S.js";import"./dfca5da5.BUxySJFd.js";import"./55098bf1.CRzNngQq.js";import"./0e67bd3b.IdsrMiz7.js";import"./74835653.BtNhMTqJ.js";import"./3ca8ef7e.D9Nch_50.js";import"./ac5a19ff.BHoedVx2.js";import"./47b970b2.BwzlBSwQ.js";import"./29034f35.CKhRr7lV.js";import"./064f6ac1.CtJPZ5b8.js";import"./53bbdad9.6B8LHIua.js";import"./87bfafec.a5jzmgqb.js";import"./31cc568e.Dti0cJak.js";import"./8599b02a.DjDpxYLZ.js";import"./7114e006.D5JaP9sc.js";import"./a422df8c.ggO-AlYl.js";import"./b684bff6.BBWgog5h.js";import"./6720fa5f.CrCe0j_W.js";import"./ccdf3592.B7Ukng27.js";import"./58314944.CBBsxtpI.js";import"./598fef4e.PfG1A8vt.js";import"./cf29e63b.UPVrnMYo.js";import"./e77f7fe0.B6M5o7QB.js";import"./cc6ff67d.CQwyXWHD.js";import"./08a3b809.BqMk-s3U.js";import"./e39bc11c.w_dcLWzY.js";import"./bff2ff9b.BZBliUVS.js";function q(){const{client:t}=_();return t.unstable_getSerialization("experiments")?.find(({clientHandle:s})=>s===F)?.variant==="treatment"}const J="iB4fp",Q="GFyzm",Z="TzhHi",ee="ahgBz",te="n1s6e",g={NameCell:J,BadgeCell:Q,BrandsCell:Z,BrandsCellVaultedUnselected:ee,PrimaryRowWithBadgeSelected:te},ne={ONE_PERCENT_CASHBACK:"1",THREE_PERCENT_CASHBACK:"3"};function ae({id:t,name:n,selected:a,incentiveType:s,vaulted:d}){const{i18n:i}=_(),c=q(),m=s?ne[s]:null,r=m!=null?{title:i.translate("payment.usdc_cashback_title",{incentive_percentage:m}),additionalInfo:i.translate("payment.usdc_cashback_additional_info",{terms_url:B,incentive_percentage:m}),terms:i.translate("payment.usdc_cashback_terms"),termsUrl:B}:void 0,p=a||c;let o;r&&p&&(o=g.PrimaryRowWithBadgeSelected);const l=r?"auto auto minmax(0, 1fr)":"auto minmax(0, 1fr)",u=I(g.BrandsCell,{[g.BrandsCellVaultedUnselected]:d&&!a}),C=E(i,a?["basepay","metamask","rainbow"]:["usdc"],a?"480":void 0),y=[n];r&&p&&y.push(r.title),C&&y.push(C);const b=y.join(", ");return e(N,{value:t,tertiaryContent:e(ie,{selected:a}),accessibilityLabel:b,children:e(v,{gap:"small-400",children:e(h,{className:o,inlineSize:"100%",children:e(M,{inlineSize:"100%",gridTemplateColumns:l,alignItems:"center",columnGap:"small-200",rowGap:"small-400",children:[e(h,{className:g.NameCell,children:e(P,{type:"strong",children:n})}),r?e(h,{className:g.BadgeCell,children:e(D,{notice:r,selected:a,showTitleWhenUnselected:c})}):null,e(h,{className:u,children:e(re,{selected:a})})]})})})})}function ie({selected:t}){const{i18n:n}=_();return e(G,{id:"crypto-tertiary-content",open:t,"aria-expanded":t,children:e(h,{paddingBlockStart:"small-400",children:[e(P,{color:"subdued",children:n.translate("payment.crypto_payment_method.description")}),e(U,{display:"inline",inlineSize:"small-400"})]})})}function re({selected:t}){return e(S,{paymentBrands:t?["basepay","metamask","rainbow"]:["usdc"],brandCountOverride:t?"480":void 0})}function Fe({id:t,method:n,selected:a,showSelectedContent:s=!0,bare:d=!1}){const{name:i,paymentBrands:c,paymentMethodIdentifier:m,uiExtension:f,incentiveType:r}=n,{i18n:p}=_(),o=H("Checkout::PaymentMethod::Render",f===void 0?[]:[f]),l=R(()=>({paymentMethodIdentifier:m}),[m]);if(!o.length)return null;if(z(n))return e(ae,{id:t,name:i,selected:a&&s,incentiveType:r});if(d)return a?e(w,{options:l,paymentMethodExtension:o}):null;const u=E(p,c),C=u?`${i}, ${u}`:i;return e(N,{value:t,secondaryContent:e(S,{paymentBrands:c}),selectedContent:s?e(w,{options:l,paymentMethodExtension:o}):void 0,accessibilityLabel:C,children:e(P,{type:"strong",children:i})})}function se({children:t,alignment:n="center"}){return e(v,{gap:"large-200",alignItems:n,children:e(h,{className:Y.RedirectionNotice,children:e(K,{textAlign:n,children:t})})})}function Xe({name:t,paymentBrands:n,showRedirectionNotice:a=!0,showSelectedContent:s=!0,bare:d=!1}){const{nextPage:i}=O(),c=L()||d,m=V().alternativePaymentCurrency,f=$(),{hasNegotiatedAlternativePaymentCurrencySignal:r}=W(),p=j(),o=T(()=>p.value&&r.value||!!m.value),{i18n:l,shop:{confirmationPageEnabled:u}}=_(),y=a?e(se,{alignment:c?"start":"center",children:f?l.translate("payment.offsite_gateway_redirect_hint_no_button_label",{gateway_label:t}):u?l.translate("payment.offsite_gateway_review_page_redirect_hint",{gateway_label:t}):l.translate("payment.offsite_gateway_redirect_hint",{gateway_label:t,button_label:i.label})}):null,b=y||o.value?e(v,{alignItems:c?"start":"center",gap:"large-100",children:[y,e(k,{when:o,children:e(X,{})})]}):null;if(d)return b;const x=E(l,n),A=x?`${t}, ${x}`:t;return e(N,{value:t,secondaryContent:e(S,{paymentBrands:n}),selectedContent:s?b:void 0,accessibilityLabel:A,children:e(P,{type:"strong",children:t})})}
1export{ae as CryptoPaymentMethod,Fe as CustomOnsitePaymentMethod,Xe as OffsitePaymentMethod};

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.