PageSourceSearch

https://macyswineshop.com/cdn/shopifycloud/checkout-web/assets/c1/page-OnePageReview.ujKlZL0H.js

js macyswineshop.com collected 2026-09-30 16:02:59 UTC 16,639 bytes, 1 lines download raw bytes

1import{u as e,S as G,f as u,T as _e,i as p,p as we,q as Pe}from"./esnext-vendor.7EcvH7tF.js";import{cr as te,l as C,ah as E,L as Se,dV as Ae,ed as Le,k as A,eI as Ne,ck as Re,P as V,ei as Ie,ef as Fe,cm as fe,B as ee,eg as Me,eh as De,I as Be,_ as xe,f as Oe,ej as Te,e4 as Ee,dN as ze,a1 as Ue,p as He,eJ as Ve,b as W,N as qe,O as Ge,$ as re,U as $e,aX as Ke,V as je,a6 as Je}from"./hydrate.DbBIWEk-.js";import{Q as k,S as ie,a2 as I,bi as B,dP as Qe,q as ne,dO as Xe,du as Ye,a1 as We,dQ as Ze,dR as en,af as nn,bh as tn,ej as sn,ae as on,b5 as an,b7 as rn,ak as ln,ai as cn,bg as dn}from"./utilities-previous.C42MP_Mw.js";import{C as un}from"./Captcha.COkBBFgl.js";import{MobileOrderSummary as le}from"./component-MobileOrderSummary.BWlGJW3-.js";import{R as w,P as pn}from"./PaymentLine.CRt55JLx.js";import{D as mn,u as hn}from"./StickyPayButton-StickyPayButton.module.DqBZRt4O.js";import{e as vn,u as yn,a as bn,R as gn,c as ce,D as de,b as ue,L as pe,P as fn,d as Cn}from"./components-DeliveryReviewMethods.Cd_wEKQR.js";import{P as kn}from"./PayButtonSection.S4hruACM.js";import{P as me}from"./hooks-useWalletsTimeout.DFyKCvL4.js";import{D as he,u as _n,a as wn,S as Pn,R as Sn,b as An}from"./Middot.DeUnb26F.js";import{M as Ln,S as Nn,a as Z}from"./Section.CfVi3mRR.js";import{u as Rn,S as Ce}from"./hooks-usePickupPoints.avsHv-hM.js";import{u as In}from"./PaymentButtons.CmagKvOD.js";import{u as Fn,S as Mn}from"./Page.Coo-tm2O.js";import{A as ve}from"./AddressPresenter.DCZt0CYc.js";import{u as Dn}from"./checkout-as-guest-amazon-pay.CHa6Hec0.js";import{u as ye}from"./hooks-useSuppressShopPayModalOnLoad.TozpD3Nk.js";import"./app.DklQzmA_.js";import"./shared-negotiation-input-redeemable.Bd3YWCwY.js";import"./shared-permissions.DaHnWepz.js";import"./hooks-useShopPayExternalAppContext.CJygX3OQ.js";import"./ShopPayCaptcha.BoEGZmPr.js";import"./PaymentErrorBanner.PvaCOaLw.js";import"./hooks-useGeneralPaymentErrorMessage.Boc21OFt.js";import"./TransitionHeight.CWQ6RrPa.js";import"./hooks-useShouldRevealCustomization.vFBBGO5a.js";import"./styles-floating-layer.module.DAWBGW8s.js";import"./utilities-publishMessage.mSFRd__c.js";import"./localization-index.DeoiIICN.js";import"./PaymentIcon.B7-3_jXb.js";import"./Theme-ThemeOverride.R4Pcj3x4.js";import"./Switch.B2-NM_1a.js";import"./addresses-is-address-empty.c1RwzK2R.js";import"./PayButton-helpers.CQx5C_6A.js";import"./graphql-PaymentSessionMutation.BKxH_g7d.js";import"./helpers-credit-card-disabled.C_cTHlJ5.js";import"./useShopPayButtonClassName.Dh_1kUR1.js";import"./hooks-useShowShopPayOptin.DLrhKtTG.js";import"./hooks-payment-button.BrMwl2Ds.js";import"./ShippingMethodRateLabel.6_DjUqL6.js";import"./EstimatedDeliveryContent.B0OSfbru.js";import"./hooks-useShopPayProgressIntercepts.DqGa6PRI.js";import"./utils-useViolationsHandler.CPyuAyN6.js";import"./ShopPayLogo.BlYw6vVK.js";import"./payment-usePaymentExemptionReason.7oBIj6G2.js";import"./redemption-constants.M-heiTkD.js";import"./ImpressionEventCapture.CTaz86gY.js";import"./shipping-methods-consolidated-included.DMw6JHFz.js";import"./hooks-useWalletsMonorailTrack.87uJFZlZ.js";function Bn(){const{checkout:n}=k(),s=ie().shippingAddress.value,{value:i}
1=I().deliveryNext,o=n.proposal.facts.delivery??[],t=o[0],a=I().buyerIdentity.value?.purchasingCompany;if((!o.length||!t?.lines?.length)&&!n.isShippingRequired.value||!t)return null;if(t.pickupAddress)return e(Tn,{address:t.pickupAddress??void 0,locationName:t.pickupAddressName});const r=i?.status==="unavailable"?s:t.deliveryAddress,l=i&&i.status!=="unavailable"?i.lines.find(c=>c.type!=="SUBSCRIPTION"&&c.status==="available"&&!c.methods.some(({methodType:d})=>d==="PICK_UP")):void 0;return e(G,{children:[e(On,{shippingAddress:r??void 0,companyLocationName:a?.location.name}),e(xn,{lines:t.lines,secondaryDeliveryLine:l})]})}function xn({lines:n,secondaryDeliveryLine:s}){const{i18n:i,source:o}=k(),t=n.filter(({deliveryChange:a,isFulfilled:r})=>a!=="REMOVED"&&!r).map(a=>e(mn,{line:a},a.title));return t.length?e(w,{id:"shipping",label:i.translate("shipping.title"),primaryContent:t,secondaryContent:o.type==="paymentCollection"||!s?void 0:e(vn,{line:s})}):null}function On({shippingAddress:n,companyLocationName:s}){const{i18n:i}=k(),o=te(n,{countryFormat:"explicit",displayName:!!s}),t=i.formatName(n?.firstName,n?.lastName,!0)||n?.firstName||n?.lastName,a=i.translate("review.blocks.no_address"),{primaryContent:r,secondaryContent:l}=s?{primaryContent:s,secondaryContent:n?o:a}:{primaryContent:n?t:a,secondaryContent:n?o:void 0},c=r?e(C,{children:r}):void 0;let d;return n&&o==null?d=e(E,{}):n&&l?d=e(C,{type:"address",children:l}):l&&(d=e(C,{children:l})),e(w,{id:"address",label:i.translate("review.blocks.shipping_address_title"),primaryContent:c,secondaryContent:d})}function Tn({address:n,locationName:s}){const{i18n:i}=k(),o=te(n,{hiddenFields:["postalCode","countryCode","phone"]});return!s||!o?null:e(w,{id:"delivery",label:i.translate("review.blocks.pick_up_in_store_shipping_method_html",{location_name:s}),primaryContent:e(C,{children:o})})}function M({accessibilityLabel:n,children:s,href:i}){const{checkout:{identity:o}}=k(),{onClick:t}=Dn(),a=En({href:i,identity:o,amazonPayCheckoutAsGuest:t});return e(Se,{href:i?`/${i}`:"/",onClick:a,accessibilityLabel:n,children:s})}function En({href:n,identity:s,amazonPayCheckoutAsGuest:i}){if(n==="#contact"&&s.current.value==="amazonPay")return()=>i?.()}const zn=["firstName","lastName"];function Un({hiddenFields:n,...s}){return{...s,hiddenFields:[...new Set([...n??[],...zn])]}}function ke({showAdressReviewItemAction:n=!0,reviewItemLabel:s,addressPresenterProps:i}){const{i18n:o,checkout:t}=k(),a=I(),r=a.deliveryNext,l=t.proposal.facts.delivery??[],c=a.shippingAddress,d=B("shippingAddress"),v=u(()=>l.length>0?l[0].deliveryAddress:c.value),m=u(()=>Qe(r.value)),{shippingAddress:h,billingAddress:L}=ie(),y=u(()=>r.value?.status==="unavailable"?h.value:v.value),{selectedPickupPoint:b}=Rn(),_=u(()=>!t.isShippingRequired.value),g=u(()=>_.value?L.value:y.value),f=Ae(),S=I().buyerIdentity.value?.purchasingCompany?.location,z=Le(),U=yn({address:g}).value,P=g.value,x=U??{hiddenFields:["phone"],multiline:!1,...i},H=Un(x),O=!!(S&&(P==null||ne(P)||!z.value)),R=()=>{if(P==null||ne(P)||O)return;const se=x.hiddenFields??[],oe=se.includes("firstName")?void 0:P.firstName,ae=se.includes("lastName")?void 0:P.lastName;return o.formatName(oe,ae,!0)||oe||ae},$=()=>O?S?.name:R(),K=te(b?.pickupLocation.address,{hiddenFields:["countryCode"]}),j=()=>b?.pickupLocation.name,J=_.value?o.translate("review.blocks.billing_address_title"):o.translate("review.blocks.shipping_address_title"),q=_.value?o.translate("review.blocks.change_billing_address_link_label"):o.translate("review.blocks.change_shipping_address_link_label"),Q=e(M,{href:"#deliveryAddress",accessibilityLabel:q,children:o.translate("review.blocks.change_link_label")}),X=o.translate("review.blocks.no_address"),F=o.translate("pickup_point.title").toLowerCase(),Y=f?.taxId.value;let T=$(),D=e(Hn,{address:P,hasCompanyLocation:!!S,noAddressLabel:X,secondaryAddressPresentationProps:H,vatNumber:Y});return d.value?(T=e(E,{}),D=void 0):m.value&&(T=j(),D=e(Vn,{formattedAddress:K,pickupPoint:b,pickupPointLabel:F})),e(w,{label:s||J,primaryAction:n?Q:void 0,primaryContent:T,secondaryContent:D})}function Hn({address:n,hasCompanyLocation:s,noAddressLabel:i,secondaryAddressPresentationProps:o,vatNumber:t}){return n==null||ne(n)?e(A,{children:[e(C,{color:"subdued",children:i}),t&&e(he,{vatNumber:t})]}):s?e(A,{children:e(ve,{...o,address:n})}):e(A,{children:[e(ve,{...o,address:n}),t&&e(he,{vatNumber:t})]})}function Vn({formattedAddress:n,pickupPoint:s,pickupPointLabel:i}){if(!s)return null;const o=`${s.pickupLocation.carrierName} ${i}`;return e(A,{children:[n?e(C,{type:"address",children:n}):null,e(C,{color:"subdued",size:"small",children:o})]})}function qn({purchasingCompany:n}){const{i18n:s}=k(),{secondary:i}=Ne({address:n.location.shippingAddress??{},nameLinePosition:"inline",addressDisplayName:n.location.name});if(!Xe(n))return null;const o=s.translate("review.blocks.company_location"),t=e(M,{href:"#billingAddress",accessibilityLabel:s.translate("review.blocks.change_company_location_link_label"),children:s.translate("review.blocks.change_link_label")}),a=n.location.shippingAddress?i:s.translate("review.blocks.no_address"),r=e(C,{children:n.location.name});return e(w,{label:o,primaryAction:t,primaryContent:r,secondaryContent:e(C,{children:a})})}function Gn({companyName:n}){const{i18n:s,checkout:i}=k(),{value:o}=I().contactInfo,t=B("contactInfo").value,a=i.proposal.facts.contactMethod,{geolocation:r}=Re(),l=I().buyerIdentity.value?.purchasingCompany;
1bn(t);const{email:c,phone:d}=o??{},{email:v,phoneNumber:m}=a??{},{formattedNumber:h}=ye(r.country.code,m??void 0),{formattedNumber:L}=ye(r.country.code,d),y=t&&(c??d)==null,b=v||h||c||L,_=s.translate("customer_account.rollup_label");if(!b&&!t)return null;const g=n?_:s.translate("review.blocks.contact_method_title"),N=y?e(E,{}):l?e(gn,{contactInfo:b}):e(V,{lineClamp:1,children:e(C,{dir:"ltr",children:b})}),S=y||l?void 0:e(M,{href:"#contact",accessibilityLabel:s.translate("review.blocks.change_contact_method_link_label"),children:s.translate("review.blocks.change_link_label")});return e(w,{id:"contact",label:g,primaryAction:S,primaryContent:N})}function $n(){const{i18n:n}=k(),s=I(),{value:i}=s.deliveryNext,o=B("deliveryNext").value,t=Ye(i),a=Ie(),r=Fe().value,l=fe(),c=_e(()=>{if(!(!i||i.status==="unavailable"))return t?.find(({methodType:R})=>R==="PICK_UP")?.pickupLocation},[i,t]),d=c?.address,v=c?.name,m=!!t?.some(({methodType:R})=>R==="PICK_UP"),h=_n({deliveryLines:!o&&i?.status==="filled"?i.lines:void 0}),L=()=>m?n.translate("review.blocks.change_delivery_method_link_label"):n.translate("review.blocks.change_shipping_method_link_label"),y=m?n.translate("local_pickup.title"):n.translate("shipping.title");if(o&&!i)return e(w,{label:y,primaryContent:e(E,{})});const b=r||o?null:e(M,{href:"#shippingMethod",accessibilityLabel:L(),children:n.translate("review.blocks.change_link_label")}),_=h?e(Pn,{summary:h}):void 0,g=h?e(wn,{summary:h}):void 0,S=e(w,{label:y,primaryAction:b,primaryContent:_??(m?e(pe,{pickupLocationName:v}):e(de,{})),secondaryContent:g??(m?e(ue,{address:d,pickupLocationName:v}):e(ce,{}))}),z=e(C,{color:"subdued",children:n.translate("review.blocks.no_address")}),U=d?e(ee,{maxInlineSize:"300px",children:e(pe,{pickupLocationName:v})}):z,P=d?e(ee,{maxInlineSize:"300px",children:e(ue,{address:d,pickupLocationName:v})}):void 0,x=e(M,{href:"#deliveryAddress",accessibilityLabel:n.translate("review.blocks.change_delivery_method_link_label"),children:n.translate("review.blocks.change_link_label")}),H=n.translate("review.blocks.pickup_items_at",{count:a.value.PICK_UP||0}),O=r||o?null:e(M,{href:"#shippingMethod",accessibilityLabel:n.translate("review.blocks.change_shipping_method_link_label"),children:n.translate("review.blocks.change_link_label")});return e(p,{when:l,fallback:S,children:[e(w,{label:H,primaryAction:x,primaryContent:U,secondaryContent:P}),e(p,{when:()=>a.value.SHIPPING,children:R=>e(ke,{reviewItemLabel:n.translate("review.blocks.ship_items_to",{count:R}),addressPresenterProps:{hiddenFields:["phone","company","firstName","lastName"]}})}),e(w,{label:n.translate("shipping.title"),primaryAction:O,primaryContent:_??e(de,{}),secondaryContent:g??e(ce,{})})]})}function be(){const{i18n:n}=k(),{acceptPaymentVaulting:s,paymentLines:i}=ie(),o=B("paymentLines"),t=B("shippingAddress"),a=We(),r=Me(),l=De(r.value),c=u(()=>!o.value&&i.value!=null&&!t.value),d=u(()=>{const f=i.value;return f?Ze(en(f,a.value)):[]}),v=u(()=>!!i.value?.some(f=>f.method.type==="direct")),m=u(()=>!i.value?.some(N=>N.method.type==="deferred")),h=u(()=>!!(s.value&&v.value)),L=n.translate("payment.title"),y=e(we,{each:d,children:f=>e(pn,{paymentLine:f,showCardBrandLabel:!0})}),b=c.value?e(M,{href:"#payment",accessibilityLabel:n.translate("review.blocks.change_payment_method_link_label"),children:e(C,{children:n.translate("review.blocks.change_link_label")})}):void 0,_=e(p,{when:c,fallback:e(E,{}),children:e(A,{gap:"small-400",children:y})});let g;return(m.value||h.value)&&(g=e(ee,{padding:"small-500 none none none",children:e(p,{when:c,fallback:e(E,{}),children:e(A,{gap:"small-400",children:[e(p,{when:m,children:e(V,{children:l})}),e(p,{when:h,children:e(A,{direction:"inline",gap:"small-400",alignItems:"center",children:[e(Be,{type:"check",size:"small"}),e(V,{children:n.translate("review.blocks.payment_method_saved_company_location")})]})})]})})})),e(w,{id:"payment",label:L,primaryAction:b,primaryContent:_,secondaryContent:g})}const Kn="#";function ge(){const{i18n:n}=k(),s=I().purchaseOrderNumber,i=u(()=>s.value?.trim()?`${Kn}${s.value}`:void 0),o=n.translate("review.blocks.no_purchase_order_number_long"),t=i.value,a=t?e(fn,{children:t}):void 0,r=t?void 0:e(V,{children:o}),l=e(M,{accessibilityLabel:n.translate("review.blocks.change_purchase_order_number_label"),href:"#payment",children:e(C,{children:n.translate("review.blocks.change_link_label")})}),c=n.translate("review.blocks.purchase_order_number_title");return e(w,{id:"purchaseOrder",label:c,primaryAction:l,primaryContent:a,secondaryContent:r})}function $t(){Fn({stage:Mn.Complete,id:"Review"});const{checkout:n,i18n:s,shop:i,source:o}=k(),t=i.hasFlagEnabled(nn),a=n.configuration.visibility.showAside,{main:{spacing:r}}=xe(),{progress:l}=Oe(),c=Pe(()=>l("one-page-review-submit"),[l]),d=hn(c),v=tn("review.review_notice_html",s),m=I(),h=m.deliveryNext,L=m.paymentLines,y=sn(),b=B("total"),_=B("paymentLines"),g=n.proposal.facts.delivery??[],f=Te(),N=m.buyerIdentity,S=on(),z=In(),U=fe(),P=n.configuration.showContactInformation,x=Ee(),H=u(()=>an(h.value)||g.length>0&&g.every(D=>D.pickupAddress!==null)),O=u(()=>n.isShippingRequired.value&&!H.value),R=u(()=>N.value?.purchasingCompany?n.isShippingRequired.value&&!f.value:n.isShippingRequired.value),$=u(()=>!!(y.value&&y.value.amount>0)||L.value?.lines.some(D=>D.cost?.amount)),K=u(()=>!!(b.value||_.value||!y.value||$.value)),j=ze(),J=u(()=>N.value?.purchasingCompany?j.value:!0),q=rn(o),Q=ln(),X=Ue({base:!0,medium:!1}),F=Q.value?X??!1:!0,Y=He("Checkout::Dynamic::Render","ORDER_SUMMARY4"),T=e(Z,{condition:!F&&!t,hideDivider:!0,children:[e(Ln,{condition:F&&!t,hideDivider:t?!0:void 0,children:[e(A,{gap:"small-400",children:[e(p,{when:()=>q,children:[e(Ve,{}),e(W,{blockSize:"base"})]}),e(Sn,{}),e(p,{when:()=>v,children:e(V,{type:"small",color:"subdued",children:e(An,{})})})]}),e(W,{blockSize:"large-200"}),e(Jn,{renderAsCard:t,children:e(jn,{buyerIdentity:N,isOrderEditSession:q,showContactInformation:P,showPayment:K,showShippingAddress:O,showAddressReviewItemAction:J,showDeliveryMethod:R,isSplitShipAndPickup:U})})]}),t&&e(Nn,{spacing:F?cn(r):"large-400"}),e(p,{when:S,children:e(Z,{condition:F&&!t,children:[e(me,{placement:"default"}),e(W,{blockSize:"base"})]})}),e(Z,{condition:F&&!t,hideDivider:!0,children:e(qe,{section:"review",children:e(Ge,{section:"review",children:e(A,{gap:"base",children:[t?e(Ce,{target:"card",children:e(re,{accessibilityRole:"presentation",display:a?"@media (inline-size >= medium) none, auto":void 0,children:e(le,{})})}):e(le,{}),e(A,{gap:"large-200",children:[e(p,{when:z,children:e(un,{})}),e(p,{when:S,children:e(me,{placement:"above-pay-button"})}),e(kn,{buttonHidden:x}),e(p,{when:()=>F,children:e($e,{customizations:Y,gap:"large-200"})})]})]})})})})]});return e(je,{onSubmit:d,children:t?e(Ke,{children:e(re,{accessibilityRole:"presentation",containerName:"s-shell-section",children:T})}):T})}function jn({buyerIdentity:n,isOrderEditSession:s,showContactInformation:i,showPayment:o,showShippingAddress:t,showAddressReviewItemAction:a,showDeliveryMethod:r,isSplitShipAndPickup:l}){const c=u(()=>n.value?.purchasingCompany?.company?.name),d=u(()=>!!n.value?.purchasingCompany),v=u(()=>t.value&&!l.value),m=u(()=>t.value?void 0:n.value?.purchasingCompany);return e(G,{children:[i&&e(Gn,{companyName:c.value}),s?e(G,{children:[e(Bn,{}),e(p,{when:o,children:e(be,{})}),e(p,{when:d,children:e(ge,{})})]}):e(G,{children:[e(p,{when:v,children:e(ke,{showAdressReviewItemAction:a.value})}),e(p,{when:r,children:e($n,{})}),e(p,{when:m,children:h=>e(qn,{purchasingCompany:h})}),e(p,{when:o,children:e(be,{})}),e(p,{when:d,children:e(ge,{})})]})]})}function Jn({children:n,renderAsCard:s=!1}){const{i18n:i}=k(),o=dn(),t=i.translate("review.block_title"),a=e(Cn,{accessibilityLabel:t,renderAsCard:s,children:n}),r=e(p,{when:()=>!o.value,fallback:a,children:e(Je,{children:a})});return s?e(Ce,{target:"edgeToEdgeCard",children:r}):r}export{Jn as ReviewItems,$t as default};

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.