PageSourceSearch

https://comerfordcollection.com/cdn/shopifycloud/checkout-web/asse…component-VaultedRollupContents.DYfzb5zP.js

js comerfordcollection.com collected 2026-09-25 18:52:32 UTC 16,570 bytes, 1 lines download raw bytes

1import{u as e,e as Z,i as ee,S as T,q as P,T as W,h as se,k as te,p as re,f as L}from"./esnext-vendor.B9Da21W6.js";import{dN as ne,L as w,k as A,I as G,l as D,B as S,cU as ie,p as R,U as M,Y as H,dO as ae,A as K,W as $,bP as oe,b as de,dP as le,dQ as ce,$ as z,dR as ue,dS as pe,G as me,P as B,dT as Y,dU as he,ai as q,dV as ge,dW as ye,cL as ve,f as fe,dX as Ae,dY as be,ck as Se,bM as Ce,V as Pe,aw as Ee,dZ as De}from"./hydrate.DZ4YTm7p.js";import{h as Me,i as ke,j as _e,G as Le,k as Re,l as Ie,m as Ne}from"./useAddressMutationsWithNegotiation.qYbyFTyH.js";import{S as y,bv as Be,T as x,dB as Te,bl as we,dC as xe,a6 as N,ae as Fe,a4 as ze,bc as Ve,am as Oe,dD as Ue,dE as We,df as Ge,dF as He,af as Ke,Q as $e}from"./addresses-is-address-empty.Bn2lNY_L.js";import{b as Ye,R as qe,M as Je,c as je,d as Qe,i as Xe,O as J,e as Ze}from"./OnePage.B6rwcJvn.js";import{K as es}from"./KnownBuyerPaymentMethodSelector.pYr-ld5Z.js";import{W as ss,P as ts,g as rs,a as ns}from"./PaymentOptionSelector.D-08K5CC.js";import{b as is,V as as,j as os,k as ds,M as ls,l as cs}from"./components-PaymentMethodProgressionHost.DtGKVVH3.js";import{u as us}from"./cross-border-hooks.xPE4TSQ5.js";import{C as ps,b as ms}from"./Choice.DSKmQsTS.js";import{C as hs}from"./IncentiveBadge.DborNHa8.js";import{C as gs}from"./BillingAddressForm.pnsu7UK8.js";import{P as ys}from"./PhoneField.C0TeiZrn.js";import{V as vs,a as fs,b as As,I as bs,c as Ss,d as Cs,S as Ps,L as Es}from"./components-VatNumberValidationField.DDyS8GP9.js";import{C as Ds}from"./localization-index.1YNaS8kx.js";import{u as Ms}from"./MerchandiseModal.BtS8T15h.js";import{h as ks}from"./graphql-PaymentSessionMutation.CAXCwUvV.js";import"./app.DbSrjjlA.js";import"./hooks-useShopPayExternalAppContext.DWwMuRnz.js";import"./hooks-useReplaceShopPayInHistory.DPpLejwu.js";import"./amazon-pay-useAmazonPayPaymentLine.Ju006AId.js";import"./PaymentIcon.CIva5Q4J.js";import"./PaymentLine.ClzCacf5.js";import"./Theme-ThemeOverride.DZIcf8ya.js";import"./hooks-useUpdateCheckoutAddress.DUYbpduS.js";import"./helpers-derivations.Dug6X2_v.js";import"./redemption-promotions.DicFJEgz.js";import"./shared-buyer-consent.B_gDyRCR.js";import"./payment-usePaymentExemptionReason.B4VABxaE.js";import"./shop-pay-normalizeBuyerDetails.CCnGCeBZ.js";import"./hooks-useShopPayProgressIntercepts.C0rljcs-.js";import"./cvv-cvvBridge.B-VIACTq.js";import"./proposal-delegated-payment-instrument.Gc2rhfd3.js";import"./Popover.BScgzCsS.js";import"./StickyPayButton-StickyPayButton.module.C7bJOHW4.js";import"./Switch.jEKUIqPZ.js";import"./hooks-useWalletsTimeout.CS-oFfve.js";import"./stopwatch.CfKlh48v.js";import"./PayButton-helpers.Cc_ffyKs.js";import"./useShopPayButtonClassName.FG1djxr9.js";import"./shared-shop-theme.DIHIQUEd.js";import"./hooks-useShowShopPayOptin.Br0M25ky.js";import"./AddressPresenter.BIgrto4P.js";import"./hooks-useShouldRevealCustomization.D_kH_Ics.js";import"./hooks-payment-button.CEm7ZXVs.js";import"./Section.BlBY023l.js";import"./Section-SectionStyleOverride.hMiKajvE.js";import"./ChangeCompanyLocationLink.r3PUjspg.js";import"./negotiated-findSelectedDeliveryMethod.DuEyfwut.js";import"./PaymentErrorBanner.DceAStMH.js";import"./hooks-useGeneralPaymentErrorMessage.EV5zhNz-.js";import"./hooks-usePreselectSpi.zcfP7GH7.js";import"./checkout-as-guest-amazon-pay.BDkrfUVE.js";import"./ShopPayLogo.C-Gy2CdB.js";import"./hooks-useSuppressShopPayModalOnLoad.DFOLDSdS.js";import"./shop-pay-installments-monorail.BAOukcZ1.js";import"./Middot.Dbfct-go.js";import"./EstimatedDeliveryContent.BuJLi-Ww.js";import"./ShippingMethodRateLabel.DAtbOh1H.js";import"./shipping-methods-consolidated-included.BE_t6ovz.js";import"./ShippingLines.DZaI5-k3.js";import"./PendingShipping.CnPQOmzL.js";import"./ShipmentBreakdown.Da0Xa8EW.js";import"./ShippingMethodSelector.DcVyvGiN.js";import"./TextArea.C1mMoZ65.js";import"./SubscriptionPriceBreakdown.ChspO5Cv.js";import"./components-RedirectionNotice.module.CsVdFi0g.js";import"./StockProblems-StockProblemsLineItemList.BhXfh82f.js";import"./hooks-useShopPayNewSignupLoginExperiment.vaE9WYHy.js";import"./TransitionHeight.CV2XV0NY.js";import"./hooks-usePaypalRowEffects.Dk4UUNlc.js";import"./BillingAddressSelector.DB4kH3hG.js";import"./hooks-useStableHostMethodsReferences.DObnt9s8.js";import"./Checkbox.DQyvbr9E.js";import"./hooks-useForceShopPayUrl.BFRInJvm.js";import"./MarketsProDisclaimer.BqGHM17j.js";import"./AutocompleteField-hooks.RGAAfjBE.js";function _s({openRedeemablesModal:s,includeStoreCredit:r=!0}){const{checkout:n,i18n:t}=y(),i=Me(),o=ke(i),c=_e(),{canApplyGiftCards:a}=ne(),{value:u}=Be(),p=u?.amount||0,d=r&&n.configuration.visibility.showStoreCreditRedemption.value&&c.value.length===0&&o.value;if(!d&&!a||p===0)return null;let l="";return a&&d?l=t.translate("payment.gift_card_store_credit.add_label"):a?l=t.translate("payment.gift_card_wrapper.add_label"):l=t.translate("payment.store_credit.add_label"),e(S,{padding:"none small-100",children:e(w,{onClick:s,textDecoration:"none",children:e(A,{direction:"inline",gap:"small-100",alignItems:"center",children:[e(G,{type:"plus",size:"base"}),e(D,{children:l})]})})})}function Ls({usesSharedVaultedSelector:s,hasPersistentRedeemablesManagement:r=!1,msiExpandedSlot:n,onSelectedPaymentMethodChange:t}){const{checkout:i}=y(),{paymentLines:o}=x(),c=o.value.some(f=>f.method.type==="direct"),a=ie().value,u=R("purchase.checkout.payment-method-list.render-before"),p=R("purchase.checkout.payment-method-list.render-after"),d=Ye(),l=Z(!1),C=!r,g=(f,k)=>k?d(e(H,{children:f})):f;return e(T,{children:[e(A,{gap:"base",children:[r?null:e(Je,{includeStoreCredit:C,openRedeemablesModal:()=>l.value=!0}),e(ss,{children:[e(M,{customizations:u,render:g}),s?e(es,{msiSlot:n,onSelectedPaymentMethodChange:t}):e(ts,{renderVaultingAgreementInline:!0}),!r&&e(Le,{}),e(_s,{includeStoreCredit:C,openRedeemablesModal:()=>l.value=!0}),e(qe,{includeStoreCredit:C,open:l.value,onClose:()=>l.value=!1}
1),e(M,{customizations:p,render:g}),e(ee,{when:i.configuration.visibility.showPurchaseOrderNumberField,children:e(is,{showHeading:!1})})]})]}),a&&!c&&e(S,{padding:"large-100 none",border:"none",children:e(as,{})})]})}function Rs({renderInlineSelector:s=!1}){const{checkout:{identity:r}}=y();if(s){const n=rs({identity:r});return e(n,{renderFormOnly:!0})}return e(os,{})}function Is({onFirstNamePersisted:s}={}){const{checkout:r,i18n:n}=y(),t=r.addressManager.shipping.value,{isMissingPhone:i}=Re(),{isMissingFirstName:o}=Ie(),c=i||o,a=Ne("shipping"),u=ae(),p=Ns({identity:r.identity,i18n:n}),{crossBorderGate:d,shouldGateCrossBorder:l}=us(),C=c?e(ls,{onFirstNamePersisted:s}):null,g=P(m=>a.selectAddress(m.id,{source:"delivery-address-edit"}),[a]),E=P((m,v)=>{const h=m.address.countryCode;h&&l(h)?d(v):v()},[l,d]),f=P(m=>a.createAddress({...m,selectAddress:!1}),[a]),k=P(async(m,v)=>{const h=await v();if(h){const b=h.address.countryCode;b&&l(b)?d(()=>{a.selectAddress(h.id,{source:"delivery-address-edit-create"})}):a.selectAddress(h.id,{source:"delivery-address-edit-create"})}return h},[a,l,d]),I=P(async(m,v)=>{const h=m.address.countryCode;return h&&l(h)?(d(()=>{v()}),{id:m.id,address:m.address}):v()},[l,d]),_=P(async(m,v)=>{const h=t.addresses.value,b=t.selectedAddress.value,Q=h.filter(X=>X.id!==m),F=(b?.id===m?Q[0]:b)?.address.countryCode;return F&&l(F)?(d(()=>{v()},{dismissible:!1}),!1):v()},[t.addresses,t.selectedAddress,l,d]);return e(ds,{addressType:"shipping",addresses:t.addresses.value,immutableAddresses:t.immutableAddresses.value,immutableAddressSections:t.immutableAddressSections.value,addressesTitle:t.addressesTitle,selectedAddress:t.selectedAddress.value,onSelectAddress:g,onBeforeSelectAddress:E,onCreateAddress:f,onBeforeCreateAddress:k,onUpdateAddress:a.updateAddress,onBeforeUpdateAddress:I,onDeleteAddress:a.deleteAddress,onBeforeDeleteAddress:_,addressErrorsSignal:t.errors.fields,canCreateAddress:t.canCreateAddress.value,canUpdateAddress:t.canUpdateAddress.value,canDeleteAddress:t.canDeleteAddress.value,canSetDefaultAddress:t.canSetDefaultAddress.value,onSetDefault:t.setDefaultAddress,errorBannerMessage:t.errors.banner,canChangeCompanyLocation:u.value,getAddressDisplayName:t.getAddressDisplayName,modalSubtitle:p,selectedAddressDetails:C})}function Ns({identity:s,i18n:r}){if(s.current.value==="businessCustomer")return r.translate("shipping.address_form.one_time_address_subtitle")}const Bs={VALIDATION_ERROR:"Please check your information and try again",SHIPPING_UNAVAILABLE:"Shipping is not available to this address",DISCOUNT_INVALID:"This discount code is not valid",INVENTORY_INSUFFICIENT:"Some items in your cart are no longer available",PAYMENT_METHOD_UNSUPPORTED:"This payment method is not supported",GENERAL_ERROR:"An error occurred. Please try again"};function Ts({errors:s,onDismiss:r,autoFocus:n}){if(s.length===0)return null;const t=s.map(i=>V(i));return e($,{tone:"critical",errorType:K.CheckoutError,onDismiss:r,autoFocus:n,children:t.length===1?e(D,{children:t[0]}):e(A,{gap:"small-200",children:s.map(i=>e(D,{children:V(i)},`${i.code}-${i.message}`))})})}function V(s){return s.message||Bs[s.code]}function ws(){const{checkout:s}=y(),r=s.configuration.addressSettings.nonBillingAddressSettings.value,{shippingAddress:n}=x(),[t]=je()??[],i=W(()=>Te(),[]);return se(()=>{t&&(i.company.value=t)},[i.company,t]),t?e(S,{children:[e(S,{padding:"small-400"}),e(gs,{address:n,addressErrors:i,addressType:"shipping",addressSettings:r,editDisabled:!1})]}):null}function xs({errorSignal:s,isRequired:r,validatePhoneField:n}){const{i18n:t}=y(),{shippingAddress:i}=x(),o=i.value,c=we(i.fields.phone,s,n),[a,u]=te(!1);if(re(()=>{s.value&&u(!0)}),!a)return null;const p=t.translate("contact.phone_label"),d=t.translate("contact.optional_phone_label");return e(S,{children:[e(S,{padding:"small-400"}),e(ys,{name:"phone",countryCode:o.countryCode||"",label:r?p:d,hideCountries:!0,required:r,autocomplete:"shipping tel-national",autoFocus:!0,...c})]})}function Fs(){const{hasError:s}=oe(xe),{i18n:r,observability:n}=y(),{isSdkAvailable:t,hasPaymentSheetErrorSignal:i,onClick:o,walletName:c}=zs();return!t||s?null:e(S,{children:e(w,{onClick:()=>{try{o()}catch(u){i.value=!0,n.error(new j(`Error on changing buyer shipping address for wallet ${c}. Details: ${u}`,{cause:u}))}},children:e(A,{direction:"inline",alignItems:"center",children:[e(G,{type:"arrow-up-right",size:"small"}),e(de,{display:"inline",inlineSize:"small-200"}),e(D,{children:r.translate("shipping.add_address")})]})})})}const zs=()=>{const r=le().value?N.BuyWithPrime:N.AmazonPay,{inMemoryAmazonPayParts:{hasPaymentSheetError:n,sdkStatus:t}}=Fe(),i=ce(r),o=P(()=>{if(t.value.status!==z.Available)throw new j(`SDK is not available for wallet ${r}`);(r===N.BuyWithPrime?t.value.sdk.buywithprime:t.value.sdk.Pay).changeShippingAddress({amazonCheckoutSessionId:i.value})},[t,i,r]);return{isSdkAvailable:t.value.status===z.Available,hasPaymentSheetErrorSignal:n,onClick:o,walletName:r}};
1class j extends Error{constructor(){super(...arguments),this.name="ChangeAddressLinkError"}}const O=["1"];function Vs(){const{formattedAddress:s,address:{firstName:r,lastName:n,phone:t,countryCode:i}}=ue(["phone","firstName","lastName","company"]),{errorMessages:o,loading:c}=Os(),a=o.length>0,{errorSignal:u,validatePhoneField:p,isPhoneRequired:d}=Qe({loading:c,phone:t,countryCode:i});return e(A,{gap:"base",children:[a&&e(pe,{}),e(hs,{name:"restricted_address_edit",titleHidden:!0,values:O,hideRadioControl:!0,children:e(ps,{value:O[0],children:e(me,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",alignItems:"start",alignContent:"start",children:e(A,{alignItems:"start",borderRadius:"base",children:e(S,{borderRadius:"base",children:[e(S,{padding:"none",children:[e(B,{children:[r," ",n]}),e(B,{color:"subdued",children:s})]}),e(ws,{}),e(xs,{errorSignal:u,isRequired:d,validatePhoneField:p})]})})})})}),e(Fs,{})]})}function Os(){const s=Y();return{errorMessages:he(),loading:!s.value}}function Us({children:s}){const{i18n:r}=y(),n=r.translate("taxes.tax_details");return e("section",{"aria-label":n,children:e(A,{direction:"block",gap:"small-200",children:[e(D,{color:"subdued",children:n}),s]})})}function Ws({vatNumber:s,edit:r,loading:n}){const{i18n:t}=y();return n?e(q,{inlineSize:"large",size:"base"}):e(ge,{accessibilityLabel:t.translate("taxes.vat_number.vaulted",{number:s}),graphic:"check-circle",removable:!0,onRemove:r,children:t.translate("taxes.vat_number.vaulted",{number:s})})}function Gs({embedderErrors:s,onDismissEmbedderErrors:r,showMissingAddressField:n,onAddressDelegation:t,onFirstNamePersisted:i,vatIdFieldMode:o}){const{checkout:c}=y(),a=c.identity.current.value,u=Xe(c.configuration,a),p=R("Checkout::DeliveryAddress::RenderBefore"),d=R("purchase.checkout.delivery-address.render-after"),C=!Y().value,g=ye(),E=$s({identitySource:a,restrictedAddressLoading:C,onFirstNamePersisted:i}),f=n?null:u?e(A,{gap:"large-200",children:[e(J,{}),e(Hs,{onAddressDelegation:t})]}):E;return e(A,{direction:"block",gap:"base",children:[s.length>0&&e(S,{children:e(ve,{target:"cart.deliveryGroups[0].deliveryAddress",children:e(Ts,{errors:s,onDismiss:r,autoFocus:!0})})}),e(M,{customizations:p}),f,e(M,{customizations:d}),g&&e(Us,{children:o.status==="vaulted"?e(Ws,{vatNumber:g.taxId.value,edit:o.focus,loading:g.taxId.loading}):e(vs,{taxId:g.taxId,applied:g.applied,inputRef:o.inputRef})})]})}function Hs({onAddressDelegation:s}){const{embed:r,i18n:n}=y();return r?.embedder==="amazon"?e(w,{textDecoration:"none",onClick:s,children:e(D,{tone:"accent",children:n.translate("embed.shipping.shipping_options")})}):e(cs,{onClick:s,textLabel:n.translate("contact.new_address_label")})}const Ks=new Set(["guest","customerAccount","businessCustomer","sdkCartHints","shopPay"]);function $s({identitySource:s,restrictedAddressLoading:r,onFirstNamePersisted:n}){return s==="amazonPay"||s==="buyWithPrime"?r?e(q,{}):e(Vs,{}):Ks.has(s)?e(Is,{onFirstNamePersisted:n}):e(J,{})}function Ys({onShowModal:s}){const{shop:r}=y(),{deliveryNext:n}=ze(),{progressing:t}=fe(),i=Ve("deliveryNext"),o=Oe(),{value:c,loading:a}=Ae().value,{value:u,loading:p}=be().value,d=!!(c||u),l=a||p,C=o.value&&!t.value&&(i.value||l),g=Ue(),E=L(()=>We(n.value)??[]),f=L(()=>r.shipPickupInOneOrderEnabled?g.value&&Ge(g.value):E.value[0]),k=f.value?.pickupLocation?[f.value]:[],[I]=Se({type:g.value?.type,deliveryMethodType:"PICK_UP"}),_=fs({deliveryMethodType:"PICK_UP",mode:"deliveryMethodScoped"}),m=_.value.merchandiseLines.length>0,v=L(()=>_.value.merchandiseLines),{hasViolations:h}=Ce(He);let b;return C?b=e(As,{hideText:!0,singleItem:!0}):d?b=m?e(T,{children:[e(bs,{bannerType:"pickup",merchandiseLines:v}),e(qs,{})]}):e(Ss,{onShowModal:s,showLocationButton:!1}):b=e(A,{gap:"small-200",children:[h&&e(Cs,{}),e(Ps,{}),e(Es,{methods:k,selectedDeliveryMethodHandle:I})]}),e(Ds.Provider,{value:!0,children:e(ms,{presentation:"base",children:b})})}function qs(){return Pe(),null}function Js({ineligibilityReason:s}){return e(ns,{ineligibilityReason:s})}function js(){const{context:s}=Ke();return L(()=>s.cachedMembershipViolations.value?.some(n=>n.handle==="buy_with_prime")?"bwp_membership_violation":null)}function Qs(){const s=js();return s.value?e(Xs,{errorMessagesType:s.value}):null}function Xs({errorMessagesType:s}){const{i18n:r}=y();return s==="bwp_membership_violation"?e($,{errorType:K.PaymentError,tone:"warning",children:r.translate("shipping.prime_not_available.default")},"shop-pay-buy-with-prime-shipping-error"):Zs()}function Zs(s){return null}const U=s=>e(H,{padding:"small-400 none",children:s});function et({singleDeliveryGroup:s}){const{i18n:r}=y(),{hasMultipleDeliveryGroups:n,onlyDeliveryGroupType:t}=s.value,{customizationsBefore:i,customizationsAfter:o,customizationsForRollupReveal:c}=Ms({hasMultipleDeliveryGroups:n,targeted:!1,shouldHandleRollup:!0}).value,a=c.length>0,u=W(()=>({groupType:t&&Ee(t),includeDeliverySelectionGroups:!1}),[t]),{uiStateSignal:p}=$e(De);return e(T,{children:[a?e(M,{customizations:i,options:u,render:U}):null,p.value.status==="error"?null:e(A,{gap:"base",padding:a?"small-300 none":void 0,children:[e(Qs,{}),ks("shipping.shipping_method_notice",r)?e(B,{children:r.translate("shipping.shipping_method_notice")}):null,e(Ze,{})]}),a?e(M,{customizations:o,options:u,render:U}):null]})}const Dr={DefaultVaultedPaymentRollupContent:Ls,VaultedBillingAddressRollupContent:Rs,DefaultVaultedDeliveryAddressRollupContent:Gs,VaultedLocalPickupOptionsRollupContent:Ys,VaultedPaymentOptionsRollupContent:Js,VaultedShippingMethodsRollupContent:et};export{Dr as vaultedRollupContents};

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.