PageSourceSearch

https://shop.treepeople.org/cdn/shopifycloud/checkout-web/assets/c1/73a9b0a0.D8Gs2o-g.js

js treepeople.org collected 2026-10-01 10:25:01 UTC 12,705 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["05aacf00.DXLuB8eX.js","2c1ab0fe.D_oO1jU7.js","164ad2e3.DgUUtBtV.js","4c290a1e.D9lE9kmU.js","app.bDJ3v-8C.js","assets/app.BuSMBobh.css","assets/previous.BpuyvRSB.css","65f3d4da.8ZfwXSRH.js","60a453ce.BIyixFcg.js","0a7dffce.BMM606kb.js","bb728e1c.BObJOhlA.js","assets/stopwatch.Kyhz8KoT.css","53bbdad9.Bipg1_Lt.js","137622f3.BM8r7uzT.js","47b970b2.Bspt4mBz.js","3ca8ef7e.DT3qvctx.js","ac5a19ff.CrIDx928.js","assets/FormLayout.CrYq3At_.css","29034f35.BY8rOPhQ.js","assets/PhoneField.uZEuHncj.css","0e67bd3b.DkCvQkdq.js","74835653.9kmD7491.js","064f6ac1.CT1iFQsV.js","assets/Popover.Bi1nHaU-.css","efa0389a.-R9eik6_.js","assets/Choice.B7lVAtpz.css","assets/BillingAddressForm.BdwN7V1K.css","86720dbb.lSLFpGJE.js","e477f96c.dvrL9dgG.js","dfca5da5.H1thSL3M.js","assets/Section.CU18S7Ap.css","55098bf1.CrP8QF43.js","f3fe2775.91jcUSQ2.js","598fef4e.DSM2KxPW.js","assets/PaymentIcon.gzvCNwz_.css","e77f7fe0.B5ukwIHt.js","assets/PaymentLine.BGhbZYQP.css","a422df8c.CGT3eUwi.js","31cc568e.CsDC1k63.js","8599b02a.yKiXuwTF.js","assets/index.CIy8uDiZ.css","assets/EmptyState.BEvzDDvy.css","cc6ff67d.SUHuL0DO.js","08a3b809.CkE7TqUZ.js","87bfafec.DaEgHDYY.js","e39bc11c.BNw-kv3c.js","bff2ff9b.DxpvVf7S.js","cf29e63b.CnWxVFH5.js","assets/hasViolationsIgnoringCodes.BcTJoNaV.css","7a8217fd.BlWFPiiA.js","assets/useShopPayProgressIntercepts.xO_7ctnq.css","7114e006.B60DstSA.js","f692f62f.D8N74P4K.js","assets/RedirectionNotice.B8v_QGNW.css","b684bff6.Dv62TgX4.js","assets/MissingFields.BbxB_6wt.css","6720fa5f.gZhcGybT.js","assets/Rollup.DKll7CHa.css","ccdf3592.Jq-5VsnW.js","58314944.QVtJf4c2.js","assets/PaymentMethodProgressionHost.BIxPaYCu.css","e0989459.44TRzqx7.js","assets/RememberMe.Df3s08WT.css"])))=>i.map(i=>d[i]);
2import{f as e,A as a,q as n,h as t,u as r,k as l,i,e as s,T as o,g as c,_ as d,S as u,d as p,r as m}from"./2c1ab0fe.D_oO1jU7.js";import{bL as h,h as b,B as _,cY as y,be as v,cZ as f,c_ as g,bB as P,c$ as I,c as k,H as E,P as S,ci as C,_ as O,b as B,n as w,b$ as L,ac as x,L as R,l as M,y as N,ct as z}from"./164ad2e3.DgUUtBtV.js";import{O as A,P as T,F as j,t as D,aT as F,Q as V,aW as W,u as q,co as $,bj as G,cA as K,cB as H,c1 as U,cC as X,W as Y,be as Z,bg as J,cb as Q,bd as ee,S as ae,X as ne,cD as te,ae as re}from"./4c290a1e.D9lE9kmU.js";import{v as le}from"./bb728e1c.BObJOhlA.js";import{u as ie}from"./0e67bd3b.DkCvQkdq.js";import{u as se,a as oe,b as ce,g as de,c as ue,d as pe}from"./86720dbb.lSLFpGJE.js";import{a as me}from"./87bfafec.DaEgHDYY.js";import{u as he}from"./e0989459.44TRzqx7.js";import{_ as be}from"./app.bDJ3v-8C.js";import{a as _e,b as ye}from"./53bbdad9.Bipg1_Lt.js";const ve="shop_pay_approval_id";function fe(){const{shop:a}=A(),{paymentMethods:n}=T();return e((()=>a.hasFlagEnabled(j)&&D(n.value)))}function ge(){const{observability:e,shop:l}=A(),{checkoutProtocolModalEventSignal:i}=F(),s=V(),o=h(),{negotiate:c}=b(),d=a(null),u=a(""),p=a(""),m=l.hasFlagEnabled(W),y=n((()=>{const a=d.current?.value.trim()??"";if(!a||a===u.current)return;const n=function(e,a){return le(e)?"7"!==e[14]?"uuid_v7_required":a?void 0:"payment_not_required":"malformed_uuid"}(a,o.value);if(n)return void(p.current!==a&&(p.current=a,e.counter({name:"shop_pay_approval_id_field_discarded",value:1,attributes:{reason:n}}),e.histogram({name:"shop_pay_approval_id_field_discarded_length",value:a.length,attributes:{reason:n}}),e.log("shop_pay_approval_id_field_discarded","Shop Pay approval id discarded before negotiation",{reason:n,valueLength:a.length})));u.current=a,e.counter({name:"shop_pay_approval_id_field_applied",value:1,attributes:{verificationOpen:"shopPayVerification"===i.peek()}});const t={method:{type:"shopWallet",shopPayApprovalId:a}};s.paymentLines.value=q(s.paymentLines.value,t),s.generalPaymentError.value=void 0,s.generalPaymentErrorCode.value=void 0,c({})}),[i,c,e,s,o]);return t((()=>{const e=setInterval(y,250);return()=>clearInterval(e)}),[y]),r(_,{accessibilityVisibility:"exclusive",children:r("input",{ref:d,type:"text",tabIndex:-1,"aria-hidden":!0,id:ve,name:ve,autoComplete:"off",onInput:m?y:void 0})})}function Pe({localizationExtension:e,index:a}){const n=$(),{negotiate:i}
2=b(),[s,o]=l(),[c,d]=l(),u=G(e.fields.value,n),p=e.fields.title.value,{localizedFieldErrors:m}=y().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:n,nonLocalizedMessage:t,target:r}=e;if("LOCALIZATION_EXTENSION_FIELD_ERROR"===a&&r===_)return n??t}));if(!a)return;const{localizedMessage:n,nonLocalizedMessage:t}=a;return n??t};return t((()=>{n.value=g?g.message:c||void 0}),[n,g,c,s]),v((e=>{d(P(e)),o("submit")})),r(f,{...u,label:p,name:p,onBlur:()=>{u.onBlur(),o(void 0),d(void 0),i({fieldsToResolve:["localizationExtensions"],include:[],onComplete:e=>{d(P(e)),o("blur")}})},value:u.value??void 0})}function Ie(){const{checkout:a,i18n:n,shop:t}=A(),{paymentMethods:l}=T(),s=g(),o=ie(),c=e((()=>t.hasFlagEnabled(K)&&function({identity:e}){return["guest","customerAccount"].includes(e.current.value)}({identity:a.identity})&&o.value&&s.value&&H(l.value)));return r(i,{when:c,children:r(_,{paddingBlockStart:"small-200",children:r(P,{tone:"info",children:n.translate("payment.shop_pay_hsa.login_message")})})})}function ke({headingId:e,autoFocus:t}){const{i18n:l}=A(),i=I().value?`${l.translate("payment.billing_must_match_shipping_notice")} `:"",c=l.translate("payment.card_security_notice"),{title:d,creditCardInline:u}=function(){const{i18n:e,checkout:a}=A(),{identity:n}=a,{displayedPaymentMethods:t}=se({experienceType:"list"}),r=oe(t),l=function(e,a){return"shopPay"===e.current.value&&a}(n,a.installments.paymentMethodMustSupportDebitCardOnly.value),i=ce(),s=me(),c=!(null!==de(n,s.value)||i.value.freeOrder||i.value.giftCard||i.value.storeCredit||i.value.redeemables)&&"singlePaymentMethodCreditCard"===r.mode;return o((()=>function(e,a,n,t){const r={title:a.translate("payment.title")};if(!n)return r;const[l]=e;return"direct"!==l?.type?r:{title:t?a.translate("payment.pay_with_debit_card"):a.translate("payment.pay_with_credit_card"),creditCardInline:{paymentBrands:l.paymentBrands,cardNetworkStateKey:U(l)}}}(t,e,c,l)),[t,e,c,l])}(),{ref:p,isMultiline:m}=function(){const e=s(!1),t=a(null);return{ref:n((a=>{if(t.current?.disconnect(),t.current=null,!a)return;const n=()=>{const n=a.ownerDocument.createRange();n.selectNodeContents(a);const t=n.getClientRects;e.value="function"==typeof t&&Array.from(t.call(n)).filter((({width:e})=>e>0)).length>1};if(n(),"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver(n);r.observe(a),t.current=r}),[e]),isMultiline:e}}();return r(k,{gap:u?"small-300":"small-400",children:[r(k,{direction:"inline",gap:"small-200",alignItems:"end",className:"zA7WO",children:[r("div",{className:"bIqDC",children:r(E,{id:e,level:1,autoFocus:t,children:r("span",{ref:p,className:"jGvwB",children:d})})}),u&&r(Ee,{cardNetworkStateKey:u.cardNetworkStateKey,availableBrands:u.paymentBrands,headingIsMultiline:m.value})]}),r(S,{color:"subdued",children:i+c}),r(Ie,{})]})}function Ee({cardNetworkStateKey:e,availableBrands:a,headingIsMultiline:n=!1}){const{checkout:{cardNetworkSelection:t}}=A(),l=t.forMethod(e),i=a.filter(X),s=l.networkSelectionEnabled.value&&l.selectableBrands.value.length>1,{ref:o,overflowIndicatorRef:d,maxVisibleBrands:u}=ue(i.length);return 0===i.length?null:r("div",{ref:o,className:c("haX3x",s&&"_5Jkpa",n&&"iq64C"),children:r(k,{direction:"inline",gap:"none",alignItems:"center",justifyContent:"end",className:"_1OE8N",children:r(pe,{animate:!0,availableBrands:a,selectableBrands:l.selectableBrands.value,activeBrand:l.activeBrand.value,savedCardBrand:l.selectedSavedCreditCardBrand.value,onSelectBrand:l.setSelectedNetwork,networkSelectionEnabled:l.networkSelectionEnabled.value,binLength:l.bankIdNumberLength.value,viewTransitionKey:e,maxVisibleBrands:u.value,overflowIndicatorRef:d,announceNetworkSelector:!0,announceOverflowBrands:!0})})})}const Se=["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"],Ce=e=>Se.includes(e);function Oe(){const e=Z.ShopPayRememberMeOptOut;return{storeOptOutPreference:n((a=>{a?J(e,a):Q(e)}),[e]),getOptOutPreference:n((()=>ee(e)),[e])}}function Be(){const{geolocation:e}=C(),{router:a,shop:n}=A(),t=a.currentUrl.value,r=Y(t.searchParams),l=V().shopPayArtifact.value,{getOptOutPreference:i}=Oe(),o=s(!0);if(d((()=>{o.value=Boolean(i())}),[i,o]),!(n.shopPayRememberMeAutoOptinEnabled??1))return{autoOptIn:!1,isOptedIn:!1};const c=!Ce(e.country.code)&&!r&&!o.value;return{autoOptIn:c,isOptedIn:c&&!1!==l?.optIn}}function we({busy:e,children:a,title:n,compact:t}){return t?r(O,{accessibilityLabel:n,children:r(k,{gap:"base",children:r("div",{"aria-busy":e||void 0,children:a})})}):r(u,{children:[r("div",{"aria-busy":e||void 0,"aria-label":n,role:"group",children:a}),r(B,{blockSize:"large-300"})]})}function Le({buyerPhone:e,isApplePayWalletSelected:a,requiresExplicitConsent:n,validatedProposedPhone:t}){return e?"standard":n?a?"gdprCheckboxOnly":t?"gdprCheckboxWithPhone":"standaloneGdprPhone":"noInputRow"}function xe(e){const a=V(),{shop:n}=A(),t=!n.hasFlagEnabled(ae)&&Boolean(ne(a.paymentLines.value,"APPLE_PAY")),r=function(){const{geolocation:e}=C();return Ce(e.country.code)}(),l=_e(),i=ye(e??l.value).value;return{kind:Le({buyerPhone:a.phone.value,isApplePayWalletSelected:t,requiresExplicitConsent:r,validatedProposedPhone:i}),isApplePayWalletSelected:t,requiresExplicitConsent:r,validatedProposedPhone:i}}
2function Re({title:e,compact:a}){const{i18n:n,shop:{name:t}}=A(),l=V(),{shopPayArtifact:i}=l,{isOptedIn:s}=Be(),o=Boolean(i.value?.optIn)||s,c=te().value??!1,{kind:d}=xe(),u={terms_href:n.translate("shop_pay_remember_me.terms"),privacy_href:n.translate("shop_pay_remember_me.privacy_policy")},p=c?n.translate("shop_pay_remember_me.consent_by_completing_order",u):n.translate("shop_pay_remember_me.consent_by_paying",u),m=n.translate("shop_pay_remember_me.value_prop_shop_name_verbose",{shop_name:t}),h=n.translate("shop_pay_remember_me.consent_with_phone",u),b=n.translate("shop_pay_remember_me.consent_with_email",u),y=n.translate("shop_pay_remember_me.consent_with_checkbox_only",u),v=n.translate("shop_pay_remember_me.label"),g=n.translate("shop_pay_remember_me.mobile_phone_optional"),P=n.translate("shop_pay_remember_me.email_label_optional");let I;return I="standaloneGdprPhone"===d?r(k,{gap:"base",children:[r(w,{children:v}),r(x,{contentDisplay:"block",inlineSize:"100%",children:r(f,{label:g})}),r(L,{content:h,size:"small"})]}):"gdprCheckboxWithPhone"===d?r(k,{gap:"base",children:[r(N,{gridTemplateColumns:"auto minmax(0, 1fr)",gap:"base",alignItems:"start",children:[r(x,{children:r(z,{accessibilityLabel:v})}),r(w,{children:v})]}),r(x,{contentDisplay:"block",inlineSize:"100%",children:r(f,{label:g})}),r(L,{content:y})]}):"gdprCheckboxOnly"===d?r(N,{gridTemplateColumns:"auto minmax(0, 1fr)",gap:"base",alignItems:"start",children:[r(x,{children:r(z,{accessibilityLabel:v})}),r(k,{children:[r(w,{children:v}),r(L,{content:y,size:"small"})]})]}):"standard"===d?r(k,{gap:"base",children:[r(w,{children:v}),r(x,{contentDisplay:"block",inlineSize:"100%",children:r(f,{label:P})}),r(L,{content:b,size:"small"})]}):r(N,{gridTemplateColumns:"minmax(0, 1fr) auto",gap:"base",alignItems:"center",children:[r(k,{children:[r(w,{children:v}),r(L,{content:o?p:m,size:"small"})]}),o?r(_,{paddingInlineStart:"small-500",children:r(x,{contentDisplay:"block",children:r(R,{textDecoration:"none",children:n.translate("shop_pay_remember_me.not_now")})})}):r(x,{contentDisplay:"block",children:r(M,{variant:"secondary",children:n.translate("shop_pay_remember_me.save")})})]}),r(we,{busy:!0,title:e,compact:a,children:I})}const Me=p({displayName:"RememberMe",renderLoading:e=>r(Re,{...e}),renderError:()=>null,load:()=>m((()=>be((()=>import("./05aacf00.DXLuB8eX.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 Ne({compact:e}){const{i18n:a}=A(),n=re(),l=he(),i=V(),s=a.translate("shop_pay_remember_me.title"),o=i.shopPayRememberMeVisible.value?s:"";return t((()=>{l||(i.shopPayRememberMeVisible.value=!1)}),[l,i.shopPayRememberMeVisible]),n.value&&l?r(u,{children:[r(_,{accessibilityRole:"status",accessibilityVisibility:"exclusive",children:o}),r(Me,{title:s,compact:e})]}):null}export{Pe as L,ke as P,Ne as R,ge as S,Be as a,Oe as b,xe as c,we as d,fe 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.