PageSourceSearch

https://chinookautosupplies.com/cdn/shopifycloud/checkout-web/assets/c1/RememberMeSection.Zvo2IY1_.js

js chinookautosupplies.com collected 2026-09-30 10:40:52 UTC 13,825 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["component-RememberMe.Cc8fCy1k.js","esnext-vendor.7EcvH7tF.js","Checkbox.D-f3QQ5T.js","hydrate.DbBIWEk-.js","utilities-previous.C42MP_Mw.js","app.DklQzmA_.js","assets/app.BuSMBobh.css","assets/previous.DjvIwnbB.css","shared-negotiation-input-redeemable.Bd3YWCwY.js","shared-permissions.DaHnWepz.js","hooks-useShopPayExternalAppContext.CJygX3OQ.js","assets/helpers.Ao103Qpa.css","assets/Checkbox.SrYMuQu4.css","hooks-useShowShopPayOptin.DLrhKtTG.js","AddressPresenter.DCZt0CYc.js","EmailField.C14V4Fyv.js","PhoneField.DwUibqcs.js","components-RedirectionNotice.module.Bd2sET81.js","amazon-pay-useAmazonPayPaymentLine.B67X6gPb.js","assets/RedirectionNotice.B8v_QGNW.css","hooks-useSuppressShopPayModalOnLoad.TozpD3Nk.js","assets/PhoneField.uZEuHncj.css","ChangeCompanyLocationLink.C1XeDCDi.js","BillingAddressForm.DbqqYqNi.js","localization-index.DeoiIICN.js","assets/index.CrYq3At_.css","Popover.BKZ7RQbD.js","assets/Popover.Bi1nHaU-.css","business-customer-constants.BLtGZWxw.js","Choice.BnQD4sDK.js","utilities-publishMessage.mSFRd__c.js","assets/Choice.DV6JSDrR.css","assets/BillingAddressForm.BdwN7V1K.css","components-PaymentMethodProgressionHost.DEHkO1Jd.js","graphql-PaymentSessionMutation.BKxH_g7d.js","Section.CfVi3mRR.js","assets/Section.CU18S7Ap.css","ImpressionEventCapture.CTaz86gY.js","useAddressMutationsWithNegotiation.ryiEffHM.js","PaymentIcon.B7-3_jXb.js","assets/PaymentIcon.gzvCNwz_.css","PaymentLine.CRt55JLx.js","Theme-ThemeOverride.R4Pcj3x4.js","assets/PaymentLine.D3bcP-mr.css","crypto-constants.BBKCG06j.js","assets/constants.Dlnp55te.css","hooks-useUpdateCheckoutAddress.C3DAjrtU.js","helpers-derivations.DPDmCezY.js","payment-usePaymentExemptionReason.7oBIj6G2.js","redemption-constants.M-heiTkD.js","shop-pay-normalizeBuyerDetails.BXNL4dWa.js","redemption-promotions.Dh9kbNQB.js","hooks-useShopPayProgressIntercepts.DqGa6PRI.js","helpers-credit-card-disabled.C_cTHlJ5.js","assets/useShopPayProgressIntercepts.CIy8uDiZ.css","helpers-setAddressErrors.Dc7hMYQi.js","assets/useAddressMutationsWithNegotiation.BcTJoNaV.css","PayButton-helpers.CQx5C_6A.js","hooks-useGeneralPaymentErrorMessage.Boc21OFt.js","assets/PaymentMethodProgressionHost.Cu93j1K1.css","assets/RememberMe.Df3s08WT.css"])))=>i.map(i=>d[i]);
2import{f as D,A as M,q as T,h as N,u as n,k as w,i as j,e as z,T as J,g as Z,_ as Q,S as V,d as ee,r as ne}from"./esnext-vendor.7EcvH7tF.js";import{c as te,f as G,B as A,cW as ae,bg as oe,cX as k,cY as se,bG as re,cZ as ie,k as _,m as le,P as ce,ck as K,$ as de,b as ue,l as I,c2 as C,ag as v,L as pe,j as me,y as x}from"./hydrate.DbBIWEk-.js";import{Q as m,a2 as q,F as he,u as ye,aY as _e,S as E,a$ as ge,v as be,cw as fe,bq as ve,cL as Pe,bG as Se,ca as Ie,cM as Ce,b1 as Ee,bl as Re,bn as Oe,cl as Me,bk as ke,ci as Te,aq as Ae,cN as Le,ak as He}from"./utilities-previous.C42MP_Mw.js";import{v as xe}from"./amazon-pay-useAmazonPayPaymentLine.B67X6gPb.js";import{u as Ne}from"./ChangeCompanyLocationLink.C1XeDCDi.js";import{u as we,a as Be,b as Fe,g as De,c as ze,d as Ve}from"./components-PaymentMethodProgressionHost.DEHkO1Jd.js";import{a as Ge}from"./payment-usePaymentExemptionReason.7oBIj6G2.js";import{a as Ke,b as qe,c as Ue}from"./hooks-useShowShopPayOptin.DLrhKtTG.js";import{_ as We}from"./app.DklQzmA_.js";import{C as B}from"./Checkbox.D-f3QQ5T.js";const F="shop_pay_approval_id",Ye=250,$e=14;function Xe(e,a){if(!xe(e))return"malformed_uuid";if(e[$e]!=="7")return"uuid_v7_required";if(!a)return"payment_not_required"}function kn(){const{shop:e}=m(),{paymentMethods:a}=q();return D(()=>e.hasFlagEnabled(he)&&ye(a.value))}function Tn(){const{observability:e,shop:a}=m(),{checkoutProtocolModalEventSignal:t}=_e(),o=E(),s=te(),{negotiate:r}=G(),i=M(null),l=M(""),d=M(""),c=a.hasFlagEnabled(ge),b=T(()=>{const u=i.current?.value.trim()??"";if(!u||u===l.current)return;const p=Xe(u,s.value);if(p){d.current!==u&&(d.current=u,e.counter({name:"shop_pay_approval_id_field_discarded",value:1,attributes:{reason:p}}),e.histogram({name:"shop_pay_approval_id_field_discarded_length",value:u.length,attributes:{reason:p}}),e.log("shop_pay_approval_id_field_discarded","Shop Pay approval id discarded before negotiation",{reason:p,valueLength:u.length}));return}l.current=u,e.counter({name:"shop_pay_approval_id_field_applied",value:1,attributes:{verificationOpen:t.peek()==="shopPayVerification"}});const f={method:{type:"shopWallet",shopPayApprovalId:u}};o.paymentLines.value=be(o.paymentLines.value,f),o.generalPaymentError.value=void 0,o.generalPaymentErrorCode.value=void 0,r({})},[t,r,e,o,s]);return N(()=>{const u=setInterval(b,Ye);return()=>clearInterval(u)},[b]),n(A,{accessibilityVisibility:"exclusive",children:n("input",{ref:i,type:"text",tabIndex:-1,"aria-hidden":!0,id:F,name:F,autoComplete:"off",onInput:c?b:void 0})})}function An({localizationExtension:e,index:a}){const t=fe(),{negotiate:o}=G(),[s,r]=w(),[i,l]=w(),d=ve(e.fields.value,t),c=e.fields.title.value,{localizedFieldErrors:b}=ae().value,u=`$.cart.localizedField.${e.peek().key}`,p=`$.localizationExtension[${a}]`,f=b.find(({target:h})=>h===u),R=h=>{const S=h.violations?.find(H=>{const{code:g,localizedMessage:W,nonLocalizedMessage:Y,target:$}=H,X=W??Y;if(g==="LOCALIZATION_EXTENSION_FIELD_ERROR"&&$===p)return X});if(!S)return;const{localizedMessage:y,nonLocalizedMessage:O}=S;return y??O};N(()=>
2{if(f){t.value=f.message;return}if(i){t.value=i;return}t.value=void 0},[t,f,i,s]);const L=()=>{d.onBlur(),r(void 0),l(void 0),o({fieldsToResolve:["localizationExtensions"],include:[],onComplete:h=>{l(R(h)),r("blur")}})};return oe(h=>{l(R(h)),r("submit")}),n(k,{...d,label:c,name:c,onBlur:L,value:d.value??void 0})}function je(){const{checkout:e,i18n:a,shop:t}=m(),{paymentMethods:o}=q(),s=se(),r=Ne(),i=D(()=>t.hasFlagEnabled(Pe)&&Je({identity:e.identity})&&r.value&&s.value&&Se(o.value));return n(j,{when:i,children:n(A,{paddingBlockStart:"small-200",children:n(re,{tone:"info",children:a.translate("payment.shop_pay_hsa.login_message")})})})}function Je({identity:e}){return["guest","customerAccount"].includes(e.current.value)}function Ze(){const e=z(!1),a=M(null);return{ref:T(o=>{if(a.current?.disconnect(),a.current=null,!o)return;const s=()=>{const i=o.ownerDocument.createRange();i.selectNodeContents(o);const l=i.getClientRects;e.value=typeof l=="function"&&Array.from(l.call(i)).filter(({width:d})=>d>0).length>1};if(s(),typeof ResizeObserver>"u")return;const r=new ResizeObserver(s);r.observe(o),a.current=r},[e]),isMultiline:e}}function Qe(e,a,t,o){const s={title:a.translate("payment.title")};if(!t)return s;const[r]=e;return r?.type!=="direct"?s:{title:o?a.translate("payment.pay_with_debit_card"):a.translate("payment.pay_with_credit_card"),creditCardInline:{paymentBrands:r.paymentBrands,cardNetworkStateKey:Ie(r)}}}function en(e,a){return e.current.value==="shopPay"&&a}function nn(){const{i18n:e,checkout:a}=m(),{identity:t}=a,{displayedPaymentMethods:o}=we({experienceType:"list"}),s=Be(o),r=en(t,a.installments.paymentMethodMustSupportDebitCardOnly.value),i=Fe(),l=Ge(),c=!(De(t,l.value)!==null||i.value.freeOrder||i.value.giftCard||i.value.storeCredit||i.value.redeemables)&&s.mode==="singlePaymentMethodCreditCard";return J(()=>Qe(o,e,c,r),[o,e,c,r])}const tn="zA7WO",an="bIqDC",on="jGvwB",sn="haX3x",rn="_1OE8N",P={HeadingRow:tn,HeadingTitle:an,HeadingTitleText:on,HeadingIcons:sn,"HeadingIcons-networkSelector":"_5Jkpa","HeadingIcons-multiline":"iq64C",HeadingIconsContent:rn};function Ln({headingId:e,autoFocus:a}){const{i18n:t}=m(),s=ie().value?`${t.translate("payment.billing_must_match_shipping_notice")} `:"",r=t.translate("payment.card_security_notice"),{title:i,creditCardInline:l}=nn(),{ref:d,isMultiline:c}=Ze();return n(_,{gap:l?"small-300":"small-400",children:[n(_,{direction:"inline",gap:"small-200",alignItems:"end",className:P.HeadingRow,children:[n("div",{className:P.HeadingTitle,children:n(le,{id:e,level:1,autoFocus:a,children:n("span",{ref:d,className:P.HeadingTitleText,children:i})})}),l&&n(ln,{cardNetworkStateKey:l.cardNetworkStateKey,availableBrands:l.paymentBrands,headingIsMultiline:c.value})]}),n(ce,{color:"subdued",children:s+r}),n(je,{})]})}function ln({cardNetworkStateKey:e,availableBrands:a,headingIsMultiline:t=!1}){const{checkout:{cardNetworkSelection:o}}=m(),s=o.forMethod(e),r=a.filter(Ce),i=s.networkSelectionEnabled.value&&s.selectableBrands.value.length>1,{ref:l,overflowIndicatorRef:d,maxVisibleBrands:c}=ze(r.length);return r.length===0?null:n("div",{ref:l,className:Z(P.HeadingIcons,i&&P["HeadingIcons-networkSelector"],t&&P["HeadingIcons-multiline"]),children:n(_,{direction:"inline",gap:"none",alignItems:"center",justifyContent:"end",className:P.HeadingIconsContent,children:n(Ve,{animate:!0,availableBrands:a,selectableBrands:s.selectableBrands.value,activeBrand:s.activeBrand.value,savedCardBrand:s.selectedSavedCreditCardBrand.value,onSelectBrand:s.setSelectedNetwork,networkSelectionEnabled:s.networkSelectionEnabled.value,binLength:s.bankIdNumberLength.value,viewTransitionKey:e,maxVisibleBrands:c.value,overflowIndicatorRef:d,announceNetworkSelector:!0,announceOverflowBrands:!0})})})}const cn=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","GF","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO"],dn=[...cn,"CH","GB"],U=e=>dn.includes(e);function un(){const e=Re.ShopPayRememberMeOptOut,a=T(o=>{o?Oe(e,o):Me(e)},[e]),t=T(()=>ke(e),[e]);return{storeOptOutPreference:a,getOptOutPreference:t}}function pn(){const{geolocation:e}=K(),{router:a,shop:t}=m(),o=a.currentUrl.value,s=Ee(o.searchParams),r=E().shopPayArtifact.value,{getOptOutPreference:i}=un(),l=z(!0);if(Q(()=>{l.value=!!i()},[i,l]),!(t.shopPayRememberMeAutoOptinEnabled??!0))return{autoOptIn:!1,isOptedIn:!1};const c=!U(e.country.code)&&!s&&!l.value;return{autoOptIn:c,isOptedIn:c&&r?.optIn!==!1}}function mn({busy:e,children:a,title:t,compact:o}){return o?n(de,{accessibilityLabel:t,children:n(_,{gap:"base",children:n("div",{"aria-busy":e||void 0,children:a})})}):n(V,{children:[n("div",{"aria-busy":e||void 0,"aria-label":t,role:"group",children:a}),n(ue,{blockSize:"large-300"})]})}function hn(){const{geolocation:e}=K();return U(e.country.code)}function yn({buyerPhone:e,isApplePayWalletSelected:a,requiresExplicitConsent:t,validatedProposedPhone:o}){return e?"standard":t?a?"gdprCheckboxOnly":o?"gdprCheckboxWithPhone":"standaloneGdprPhone":"noInputRow"}function _n(e){const a=E(),{shop:t}=m(),s=!t.hasFlagEnabled(Te)&&!!Ae(a.paymentLines.value,"APPLE_PAY"),r=hn(),i=Ke(),l=qe(e??i.value).value;return{kind:yn({buyerPhone:a.phone.value,isApplePayWalletSelected:s,requiresExplicitConsent:r,validatedProposedPhone:l}),isApplePayWalletSelected:s,requiresExplicitConsent:r,validatedProposedPhone:l}}function gn({title:e,compact:a}){const{i18n:t,shop:{name:o}}=m(),s=E(),{shopPayArtifact:r}=s,{isOptedIn:i}=pn(),l=!!r.value?.optIn||i,d=Le().value??!1,{kind:c}=_n(),b=t.translate("shop_pay_remember_me.terms"),u=t.translate("shop_pay_remember_me.privacy_policy"),p={terms_href:b,privacy_href:u},f=d?t.translate("shop_pay_remember_me.consent_by_completing_order",p):t.translate("shop_pay_remember_me.consent_by_paying",p),R=t.translate("shop_pay_remember_me.value_prop_shop_name_verbose",{shop_name:o}),L=t.translate("shop_pay_remember_me.consent_with_phone",p),h=t.translate("shop_pay_remember_me.consent_with_email",p),S=t.translate("shop_pay_remember_me.consent_with_checkbox_only",p),y=t.translate("shop_pay_remember_me.label"),O=t.translate("shop_pay_remember_me.mobile_phone_optional"),H=t.translate("shop_pay_remember_me.email_label_optional");let g;return c==="standaloneGdprPhone"?g=n(_,{gap:"base",children:[n(I,{children:y}),n(v,{contentDisplay:"block",inlineSize:"100%",children:n(k,{label:O})}),n(C,{content:L,size:"small"})]}):c==="gdprCheckboxWithPhone"?g=n(_,{gap:"base",children:[n(x,{gridTemplateColumns:"auto minmax(0, 1fr)",gap:"base",alignItems:"start",children:[n(v,{children:n(B,{accessibilityLabel:y})}),n(I,{children:y})]}),n(v,{contentDisplay:"block",inlineSize:"100%",children:n(k,{label:O})}),n(C,{content:S})]}):c==="gdprCheckboxOnly"?g=n(x,{gridTemplateColumns:"auto minmax(0, 1fr)",gap:"base",alignItems:"start",children:[n(v,{children:n(B,{accessibilityLabel:y})}),n(_,{children:[n(I,{children:y}),n(C,{content:S,size:"small"})]})]}):c==="standard"?g=n(_,{gap:"base",children:[n(I,{children:y}),n(v,{contentDisplay:"block",inlineSize:"100%",children:n(k,{label:H})}),n(C,{content:h,size:"small"})]}):g=n(x,{gridTemplateColumns:"minmax(0, 1fr) auto",gap:"base",alignItems:"center",children:[n(_,{children:[n(I,{children:y}),n(C,{content:l?f:R,size:"small"})]}),l?n(A,{paddingInlineStart:"small-500",children:n(v,{contentDisplay:"block",children:n(pe,{textDecoration:"none",children:t.translate("shop_pay_remember_me.not_now")})})}):n(v,{contentDisplay:"block",children:n(me,{variant:"secondary",children:t.translate("shop_pay_remember_me.save")})})]}),n(mn,{busy:!0,title:e,compact:a,children:g})}const bn=ee({displayName:"RememberMe",renderLoading:e=>n(gn,{...e}),renderError:()=>null,load:()=>ne(()=>We(()=>import("./component-RememberMe.Cc8fCy1k.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]))).then(({RememberMeSurface:e})=>e)}
2);function Hn({compact:e}){const{i18n:a}=m(),t=He(),o=Ue(),s=E(),r=a.translate("shop_pay_remember_me.title"),i=s.shopPayRememberMeVisible.value?r:"";return N(()=>{o||(s.shopPayRememberMeVisible.value=!1)},[o,s.shopPayRememberMeVisible]),!t.value||!o?null:n(V,{children:[n(A,{accessibilityRole:"status",accessibilityVisibility:"exclusive",children:i}),n(bn,{title:r,compact:e})]})}export{An as L,Ln as P,Hn as R,Tn as S,pn as a,un as b,_n as c,mn as d,kn 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.