1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["05aacf00.CKpKm9l2.js","2c1ab0fe.Bywc2Brn.js","164ad2e3.DHuJhR22.js","9dba8418.DInoCEzY.js","app.D2wFhSFv.js","assets/app.BuSMBobh.css","assets/paypal-express-utilities.BhV0n1qN.css","d0bb51ec.DwFzQH6k.js","f67abd2c.CxgiarJo.js","60a453ce.CQQC7Spq.js","e12db40c.DJw7xsqf.js","assets/hydrate.ByGT37s3.css","cdfd59e6.BKhDBRbA.js","22345fd4.DBXfVnfa.js","137622f3.DhtRFnhA.js","47b970b2.CJVz388Q.js","a9fa9fda.JxdJYte2.js","ca3e798e.Dc9DtEXz.js","assets/PhoneField.uZEuHncj.css","81e109b1.DOkM2TK2.js","0e67bd3b.CXnH6HFm.js","74835653.CZU0gWLB.js","3ca8ef7e.DWjSQTNc.js","2495faa4.Tu9qVTlu.js","064f6ac1.B2UyZ3Ta.js","assets/Popover.Bi1nHaU-.css","efa0389a.BrVghuh8.js","assets/Choice.B7lVAtpz.css","4b1c22b7.CaFHnwF0.js","assets/BillingAddressForm.BdwN7V1K.css","86720dbb.D0qR6VoS.js","d25d1b95.DsyU8-pY.js","dfca5da5.DZ8Enryg.js","dae24aab.DshQXsWO.js","assets/Section.CU18S7Ap.css","55098bf1.DKOH2TGl.js","f3fe2775.COKYRnyG.js","ac5a19ff.By75ODwH.js","598fef4e.TLWCeEj7.js","assets/PaymentIcon.gzvCNwz_.css","e77f7fe0.Dq32v_oT.js","assets/PaymentLine.DT05kVlY.css","a422df8c.69YDwZq9.js","assets/EmptyState.BEvzDDvy.css","cc6ff67d.BL7MkjW4.js","08a3b809.5tqP2mr3.js","bf513f9c.BCCOkGM7.js","e39bc11c.gbgXD8RN.js","7a8217fd.BZYlxizD.js","8599b02a.83fij-dk.js","assets/useShopPayProgressIntercepts.CIy8uDiZ.css","cf29e63b.Cl-tFGZz.js","assets/hasViolationsIgnoringCodes.BcTJoNaV.css","2bac2c53.gEGJwgcc.js","f692f62f.4xq3n272.js","9babe369.D342A3FZ.js","b684bff6.6xaGXwIR.js","assets/RedirectionNotice.DgiInWJ-.css","79974aab.D9dodboU.js","58314944.BgFF-GDw.js","assets/PaymentMethodProgressionHost.BIxPaYCu.css","e0989459.Bg8DY6tL.js","assets/RememberMe.Df3s08WT.css"])))=>i.map(i=>d[i]); 2import{k as e,g as a,q as t,h as n,u as r,z as i,w as l,o as s,T as o,m as c,_ as d,S as u,i as p,j as m}from"./2c1ab0fe.Bywc2Brn.js";import{c8 as h,v as b,b as _,d3 as v,br as y,d4 as f,d5 as g,bU as P,d6 as k,S as I,H as E,f as S,cv as C,i as O,d as B,j as x,cf as w,au as L,L as R,B as M,ab as z,cF as N}from"./164ad2e3.DHuJhR22.js";import{c as A,cx as j,cy as D,aK as T,cz as F,bd as V,b4 as W,Z as K,cA as q,cB as G,bP as U,cC as $,U as H,b0 as Z,s as X,r as Y,o as J,Q,N as ee,cD as ae,af as te}from"./9dba8418.DInoCEzY.js";import{v as ne}from"./81e109b1.DOkM2TK2.js";import{u as re}from"./0e67bd3b.CXnH6HFm.js";import{u as ie,a as le,b as se,g as oe,c as ce,d as de}from"./86720dbb.D0qR6VoS.js";import{a as ue}from"./bf513f9c.BCCOkGM7.js";import{u as pe}from"./e0989459.Bg8DY6tL.js";import{_ as me}from"./app.D2wFhSFv.js";import{u as he,a as be}from"./cdfd59e6.BKhDBRbA.js";const _e="shop_pay_approval_id";function ve(){const{shop:a,checkout:{negotiator:t}}=A(),{paymentMethods:n}=t.current.fields;return e(()=>a.hasFlagEnabled(j)&&D(n.value))}function ye(){const{observability:e,shop:i,checkout:{negotiator:l}}=A(),{checkoutProtocolModalEventSignal:s}=l.context,o=h(),{negotiate:c}=b(),d=a(null),u=a(""),p=a(""),m=i.hasFlagEnabled(T),v=t(()=>{const a=d.current?.value.trim()??"";if(!a||a===u.current)return;const t=function(e,a){return ne(e)?"7"!==e[14]?"uuid_v7_required":a?void 0:"payment_not_required":"malformed_uuid"}(a,o.value);if(t)return void(p.current!==a&&(p.current=a,e.counter({name:"shop_pay_approval_id_field_discarded",value:1,attributes:{reason:t}}),e.histogram({name:"shop_pay_approval_id_field_discarded_length",value:a.length,attributes:{reason:t}}),e.log("shop_pay_approval_id_field_discarded","Shop Pay approval id discarded before negotiation",{reason:t,valueLength:a.length})));u.current=a,e.counter({name:"shop_pay_approval_id_field_applied",value:1,attributes:{verificationOpen:"shopPayVerification"===s.peek()}});const n={method:{type:"shopWallet",shopPayApprovalId:a}};l.parts.paymentLines.value=F(l.parts.paymentLines.value,n),l.parts.generalPaymentError.value=void 0,l.parts.generalPaymentErrorCode.value=void 0,c({})},[s,c,e,l.parts,o]);return n(()=>{const e=setInterval(v,250);return()=>clearInterval(e)},[v]),r(_,{accessibilityVisibility:"exclusive",children:r("input",{ref:d,type:"text",tabIndex:-1,"aria-hidden":!0,id:_e,name:_e,autoComplete:"off",onInput:m?v:void 0})})}function fe({localizationExtension:e,index:a}){const t=V(),{negotiate:l}=b(),[s,o]=i(),[c,d]=i(),u=W(e.fields.value,t),p=e.fields.title.value,{localizedFieldErrors:m}=v().value,h=`$.cart.localizedField.${e.peek().key}`,_=`$.localizationExtension[${a}]`,g=m.find(({target:e})=>e===h),P=e=>{const a=e.violations?.find(e=>{const{code:a,localizedMessage:t,nonLocalizedMessage:n,target:r}=e;if("LOCALIZATION_EXTENSION_FIELD_ERROR"===a&&r===_)return t??n});if(!a)return;const{localizedMessage:t,nonLocalizedMessage:n}=a;return t??n};return n(()=>{t.value=g?g.message:c||void 0},[t,g,c,s]),y(e=>{d(P(e)),o("submit")}),r(f,{...u,label:p,name:p,onBlur:()=>{u.onBlur(),o(void 0),d(void 0),l({fieldsToResolve:["localizationExtensions"],silenceViolations:K(["localizationExtensions"]),onComplete:e=>{d(P(e)),o("blur")}})},value:u.value??void 0})}function ge(){const{checkout:a,i18n:t,shop:n}=A(),{paymentMethods:i}=a.negotiator.current.fields,s=g(),o=re(),c=e(()=>n.hasFlagEnabled(q)&&function({identity:e}){return["guest","customerAccount"].includes(e.current.value)}({identity:a.identity})&&o.value&&s.value&&G(i.value));return r(l,{when:c,children:r(_,{paddingBlockStart:"small-200",children:r(P,{tone:"info",children:t.translate("payment.shop_pay_hsa.login_message")})})})}function Pe({headingId:e,autoFocus:n}){const{i18n:i}=A(),l=k().value?`${i.translate("payment.billing_must_match_shipping_notice")} `:"",c=i.translate("payment.card_security_notice"),{title:d,creditCardInline:u}=function(){const{i18n:e,checkout:a}=A(),{identity:t}=a,{displayedPaymentMethods:n}=ie({experienceType:"list"}),r=le(n),i=function(e,a){return"shopPay"===e.current.value&&a}
2(t,a.installments.paymentMethodMustSupportDebitCardOnly.value),l=se(),s=ue(),c=!(null!==oe(t,s.value)||l.value.freeOrder||l.value.giftCard||l.value.storeCredit||l.value.redeemables)&&"singlePaymentMethodCreditCard"===r.mode;return o(()=>function(e,a,t,n){const r={title:a.translate("payment.title")};if(!t)return r;const[i]=e;return"direct"!==i?.type?r:{title:n?a.translate("payment.pay_with_debit_card"):a.translate("payment.pay_with_credit_card"),creditCardInline:{paymentBrands:i.paymentBrands,cardNetworkStateKey:U(i)}}}(n,e,c,i),[n,e,c,i])}(),{ref:p,isMultiline:m}=function(){const e=s(!1),n=a(null);return{ref:t(a=>{if(n.current?.disconnect(),n.current=null,!a)return;const t=()=>{const t=a.ownerDocument.createRange();t.selectNodeContents(a);const n=t.getClientRects;e.value="function"==typeof n&&Array.from(n.call(t)).filter(({width:e})=>e>0).length>1};if(t(),"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver(t);r.observe(a),n.current=r},[e]),isMultiline:e}}();return r(I,{gap:u?"small-300":"small-400",children:[r(I,{direction:"inline",gap:"small-200",alignItems:"end",className:"zA7WO",children:[r("div",{className:"bIqDC",children:r(E,{id:e,level:1,autoFocus:n,children:r("span",{ref:p,className:"jGvwB",children:d})})}),u&&r(ke,{cardNetworkStateKey:u.cardNetworkStateKey,availableBrands:u.paymentBrands,headingIsMultiline:m.value})]}),r(S,{color:"subdued",children:l+c}),r(ge,{})]})}function ke({cardNetworkStateKey:e,availableBrands:a,headingIsMultiline:t=!1}){const{checkout:{cardNetworkSelection:n}}=A(),i=n.forMethod(e),l=a.filter($),s=i.networkSelectionEnabled.value&&i.selectableBrands.value.length>1,{ref:o,overflowIndicatorRef:d,maxVisibleBrands:u}=ce(l.length);return 0===l.length?null:r("div",{ref:o,className:c("haX3x",s&&"_5Jkpa",t&&"iq64C"),children:r(I,{direction:"inline",gap:"none",alignItems:"center",justifyContent:"end",className:"_1OE8N",children:r(de,{animate:!0,availableBrands:a,selectableBrands:i.selectableBrands.value,activeBrand:i.activeBrand.value,savedCardBrand:i.selectedSavedCreditCardBrand.value,onSelectBrand:i.setSelectedNetwork,networkSelectionEnabled:i.networkSelectionEnabled.value,binLength:i.bankIdNumberLength.value,viewTransitionKey:e,maxVisibleBrands:u.value,overflowIndicatorRef:d,announceNetworkSelector:!0,announceOverflowBrands:!0})})})}const Ie=["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","CH","GB"],Ee=e=>Ie.includes(e);function Se(){const e=Z.ShopPayRememberMeOptOut;return{storeOptOutPreference:t(a=>{a?X(e,a):Y(e)},[e]),getOptOutPreference:t(()=>J(e),[e])}}function Ce(){const{geolocation:e}=C(),{router:a,shop:t,checkout:{negotiator:n}}=A(),r=a.currentUrl.value,i=H(r.searchParams),l=n.parts.shopPayArtifact.value,{getOptOutPreference:o}=Se(),c=s(!0);if(d(()=>{c.value=Boolean(o())},[o,c]),!(t.shopPayRememberMeAutoOptinEnabled??!0))return{autoOptIn:!1,isOptedIn:!1};const u=!Ee(e.country.code)&&!i&&!c.value;return{autoOptIn:u,isOptedIn:u&&!1!==l?.optIn}}function Oe({busy:e,children:a,title:t,compact:n}){return n?r(O,{accessibilityLabel:t,children:r(I,{gap:"base",children:r("div",{"aria-busy":e||void 0,children:a})})}):r(u,{children:[r("div",{"aria-busy":e||void 0,"aria-label":t,role:"group",children:a}),r(B,{blockSize:"large-300"})]})}function Be({buyerPhone:e,isApplePayWalletSelected:a,requiresExplicitConsent:t,validatedProposedPhone:n}){return e?"standard":t?a?"gdprCheckboxOnly":n?"gdprCheckboxWithPhone":"standaloneGdprPhone":"noInputRow"}function xe(e){const{shop:a,checkout:{negotiator:t}}=A(),n=!a.hasFlagEnabled(Q)&&Boolean(ee(t.parts.paymentLines.value,"APPLE_PAY")),r=function(){const{geolocation:e}=C();return Ee(e.country.code)}(),i=he(),l=be(e??i.value).value;return{kind:Be({buyerPhone:t.parts.phone.value,isApplePayWalletSelected:n,requiresExplicitConsent:r,validatedProposedPhone:l}),isApplePayWalletSelected:n,requiresExplicitConsent:r,validatedProposedPhone:l}}function we({title:e,compact:a}){const{i18n:t,shop:{name:n},checkout:{negotiator:i}}=A(),{shopPayArtifact:l}=i.parts,{isOptedIn:s}=Ce(),o=Boolean(l.value?.optIn)||s,c=ae().value??!1,{kind:d}=xe(),u={terms_href:t.translate("shop_pay_remember_me.terms"),privacy_href:t.translate("shop_pay_remember_me.privacy_policy")},p=c?t.translate("shop_pay_remember_me.consent_by_completing_order",u):t.translate("shop_pay_remember_me.consent_by_paying",u),m=t.translate("shop_pay_remember_me.value_prop_shop_name_verbose",{shop_name:n}),h=t.translate("shop_pay_remember_me.consent_with_phone",u),b=t.translate("shop_pay_remember_me.consent_with_email",u),v=t.translate("shop_pay_remember_me.consent_with_checkbox_only",u),y=t.translate("shop_pay_remember_me.label"),g=t.translate("shop_pay_remember_me.mobile_phone_optional"),P=t.translate("shop_pay_remember_me.email_label_optional");let k;return k="standaloneGdprPhone"===d?r(I,{gap:"base",children:[r(x,{children:y}),r(L,{contentDisplay:"block",inlineSize:"100%",children:r(f,{label:g})}),r(w,{content:h,size:"small"})]}
2):"gdprCheckboxWithPhone"===d?r(I,{gap:"base",children:[r(z,{gridTemplateColumns:"auto minmax(0, 1fr)",gap:"base",alignItems:"start",children:[r(L,{children:r(N,{accessibilityLabel:y})}),r(x,{children:y})]}),r(L,{contentDisplay:"block",inlineSize:"100%",children:r(f,{label:g})}),r(w,{content:v})]}):"gdprCheckboxOnly"===d?r(z,{gridTemplateColumns:"auto minmax(0, 1fr)",gap:"base",alignItems:"start",children:[r(L,{children:r(N,{accessibilityLabel:y})}),r(I,{children:[r(x,{children:y}),r(w,{content:v,size:"small"})]})]}):"standard"===d?r(I,{gap:"base",children:[r(x,{children:y}),r(L,{contentDisplay:"block",inlineSize:"100%",children:r(f,{label:P})}),r(w,{content:b,size:"small"})]}):r(z,{gridTemplateColumns:"minmax(0, 1fr) auto",gap:"base",alignItems:"center",children:[r(I,{children:[r(x,{children:y}),r(w,{content:o?p:m,size:"small"})]}),o?r(_,{paddingInlineStart:"small-500",children:r(L,{contentDisplay:"block",children:r(R,{textDecoration:"none",children:t.translate("shop_pay_remember_me.not_now")})})}):r(L,{contentDisplay:"block",children:r(M,{variant:"secondary",children:t.translate("shop_pay_remember_me.save")})})]}),r(Oe,{busy:!0,title:e,compact:a,children:k})}const Le=p({displayName:"RememberMe",renderLoading:e=>r(we,{...e}),renderError:()=>null,load:()=>m(()=>me(()=>import("./05aacf00.CKpKm9l2.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,61,62]))).then(({RememberMeSurface:e})=>e)});function Re({compact:e}){const{i18n:a,checkout:{negotiator:t}}=A(),i=te(),l=pe(),s=a.translate("shop_pay_remember_me.title"),o=t.parts.shopPayRememberMeVisible.value?s:"";return n(()=>{l||(t.parts.shopPayRememberMeVisible.value=!1)},[l,t.parts.shopPayRememberMeVisible]),i.value&&l?r(u,{children:[r(_,{accessibilityRole:"status",accessibilityVisibility:"exclusive",children:o}),r(Le,{title:s,compact:e})]}):null}export{fe as L,Pe as P,Re as R,ye as S,Ce as a,Se as b,xe as c,Oe as d,ve 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.