PageSourceSearch

https://acaderma.com/cdn/shopifycloud/checkout-web/assets/c1/page-OnePageReview.DnFoOKPy.js

js acaderma.com collected 2026-09-26 04:49:56 UTC 16,022 bytes, 1 lines download raw bytes

1import{u as e,S as q,f as u,T as fe,i as p,s as ke,q as Ce}from"./esnext-vendor.B9Da21W6.js";import{co as Z,l as f,ai as O,L as _e,dW as we,e8 as Pe,k as S,eh as Ae,ch as Se,P as H,ee as Le,eb as Ne,cj as he,B as Y,ec as Re,ed as Ie,I as Me,f as Fe,ef as De,dM as Be,dO as xe,_ as Oe,p as Te,ei as ze,b as J,K as Ee,M as Ue,U as He,N as Ve,a6 as qe}from"./hydrate.DZ4YTm7p.js";import{C as Ge}from"./Captcha.kpGPI4W4.js";import{MobileOrderSummary as $e}from"./component-MobileOrderSummary.DnA-T0m-.js";import{R as _,P as Ke}from"./PaymentLine.ClzCacf5.js";import{S as k,T as ee,a4 as R,bc as D,dT as We,r as Q,dS as je,dE as Je,a3 as Xe,dU as Ye,dV as Qe,e1 as Ze,ag as en,b2 as nn,b4 as tn,am as on,bb as sn}from"./addresses-is-address-empty.Bn2lNY_L.js";import{D as an,u as rn}from"./StickyPayButton-StickyPayButton.module.C7bJOHW4.js";import{e as ln,u as cn,a as dn,R as un,c as oe,D as se,b as ae,L as re,P as pn,d as mn}from"./components-DeliveryReviewMethods.B9dUKxJa.js";import{P as hn}from"./PayButtonSection.C-faiTG_.js";import{P as le}from"./hooks-useWalletsTimeout.CS-oFfve.js";import{D as ce,u as vn,a as yn,S as bn,R as gn,b as fn}from"./Middot.Dbfct-go.js";import{M as X,a as kn}from"./Section.BlBY023l.js";import{u as Cn}from"./PaymentButtons.MV6WHZES.js";import{u as _n,S as wn}from"./stopwatch.CfKlh48v.js";import{h as Pn}from"./graphql-PaymentSessionMutation.CAXCwUvV.js";import{A as de}from"./AddressPresenter.BIgrto4P.js";import{u as An}from"./checkout-as-guest-amazon-pay.BDkrfUVE.js";import{u as Sn}from"./hooks-useShopPayNewSignupLoginExperiment.vaE9WYHy.js";import{u as ue}from"./hooks-useSuppressShopPayModalOnLoad.DFOLDSdS.js";import"./app.DbSrjjlA.js";import"./hooks-useShopPayExternalAppContext.DWwMuRnz.js";import"./hooks-useReplaceShopPayInHistory.DPpLejwu.js";import"./ShopPayCaptcha.DPBCCrUk.js";import"./PaymentErrorBanner.DceAStMH.js";import"./hooks-useGeneralPaymentErrorMessage.EV5zhNz-.js";import"./TransitionHeight.CV2XV0NY.js";import"./hooks-useShouldRevealCustomization.D_kH_Ics.js";import"./styles-floating-layer.module.BCoSmdvP.js";import"./localization-index.1YNaS8kx.js";import"./PaymentIcon.CIva5Q4J.js";import"./Theme-ThemeOverride.DZIcf8ya.js";import"./Switch.jEKUIqPZ.js";import"./PayButton-helpers.Cc_ffyKs.js";import"./cross-border-hooks.xPE4TSQ5.js";import"./shared-buyer-consent.B_gDyRCR.js";import"./cvv-cvvBridge.B-VIACTq.js";import"./useShopPayButtonClassName.FG1djxr9.js";import"./shared-shop-theme.DIHIQUEd.js";import"./hooks-useShowShopPayOptin.Br0M25ky.js";import"./hooks-payment-button.CEm7ZXVs.js";import"./ShippingMethodRateLabel.DAtbOh1H.js";import"./EstimatedDeliveryContent.BuJLi-Ww.js";import"./hooks-useShopPayProgressIntercepts.C0rljcs-.js";import"./utils-useViolationsHandler.BE3Ij9oJ.js";import"./ShopPayLogo.C-Gy2CdB.js";import"./negotiated-findSelectedDeliveryMethod.DuEyfwut.js";import"./payment-usePaymentExemptionReason.B4VABxaE.js";import"./shop-pay-installments-monorail.BAOukcZ1.js";import"./shipping-methods-consolidated-included.BE_t6ovz.js";function Ln(){const{checkout:n}=k(),o=ee().shippingAddress.value,{value:t}=R().deliveryNext,i=n.proposal.facts.delivery??[],s=i[0],a=R().buyerIdentity.value?.purchasingCompany;if((!i.length||!s?.lines?.length)&&!n.isShippingRequired.value||!s)return null;if(s.pickupAddress)return e(In,{address:s.pickupAddress??void 0,locationName:s.pickupAddressName});const r=t?.status==="unavailable"?o:s.deliveryAddress,l=t&&t.status!=="unavailable"?t.lines.find(c=>c.type!=="SUBSCRIPTION"&&c.status==="available"&&!c.methods.some(({methodType:d})=>d==="PICK_UP")):void 0;return e(q,{children:[e(Rn,{shippingAddress:r??void 0,companyLocationName:a?.location.name}),e(Nn,{lines:s.lines,secondaryDeliveryLine:l})]})}function Nn({lines:n,secondaryDeliveryLine:o}){const{i18n:t,source:i}=k(),s=n.filter(({deliveryChange:a,isFulfilled:r})=>a!=="REMOVED"&&!r).map(a=>e(an,{line:a},a.title));return s.length?e(_,{id:"shipping",label:t.translate("shipping.title"),primaryContent:s,secondaryContent:i.type==="paymentCollection"||!o?void 0:e(ln,{line:o})}):null}function Rn({shippingAddress:n,companyLocationName:o}){const{i18n:t}=k(),i=Z(n,{countryFormat:"explicit",displayName:!!o}),s=t.formatName(n?.firstName,n?.lastName,!0)||n?.firstName||n?.lastName,a=t.translate("review.blocks.no_address"),{primaryContent:r,secondaryContent:l}=o?{primaryContent:o,secondaryContent:n?i:a}:{primaryContent:n?s:a,secondaryContent:n?i:void 0},c=r?e(f,{children:r}):void 0;let d;return n&&i==null?d=e(O,{}):n&&l?d=e(f,{type:"address",children:l}):l&&(d=e(f,{children:l})),e(_,{id:"address",label:t.translate("review.blocks.shipping_address_title"),primaryContent:c,secondaryContent:d})}function In({address:n,locationName:o}){const{i18n:t}=k(),i=Z(n,{hiddenFields:["postalCode","countryCode","phone"]});return!o||!i?null:e(_,{id:"delivery",label:t.translate("review.blocks.pick_up_in_store_shipping_method_html",{location_name:o}),primaryContent:e(f,{children:i})})}function I({accessibilityLabel:n,children:o,href:t}){const{checkout:{identity:i}}=k(),{onClick:s}=An(),a=Mn({href:t,identity:i,amazonPayCheckoutAsGuest:s});return e(_e,{href:t?`/${t}`:"/",onClick:a,accessibilityLabel:n,children:o})}function Mn({href:n,identity:o,amazonPayCheckoutAsGuest:t}){if(n==="#contact"&&o.current.value==="amazonPay")return()=>t?.()}
1const Fn=["firstName","lastName"];function Dn({hiddenFields:n,...o}){return{...o,hiddenFields:[...new Set([...n??[],...Fn])]}}function ve({showAdressReviewItemAction:n=!0,reviewItemLabel:o,addressPresenterProps:t}){const{i18n:i,checkout:s}=k(),a=R(),r=a.deliveryNext,l=s.proposal.facts.delivery??[],c=a.shippingAddress,d=D("shippingAddress"),m=u(()=>l.length>0?l[0].deliveryAddress:c.value),h=u(()=>We(r.value)),{shippingAddress:v,billingAddress:A}=ee(),w=u(()=>r.value?.status==="unavailable"?v.value:m.value),{selectedPickupPoint:y}=Sn(),b=u(()=>!s.isShippingRequired.value),C=u(()=>b.value?A.value:w.value),g=we(),L=R().buyerIdentity.value?.purchasingCompany?.location,T=Pe(),z=cn({address:C}).value,P=C.value,B=z??{hiddenFields:["phone"],multiline:!1,...t},E=Dn(B),x=!!(L&&(P==null||Q(P)||!T.value)),N=()=>{if(P==null||Q(P)||x)return;const ne=B.hiddenFields??[],te=ne.includes("firstName")?void 0:P.firstName,ie=ne.includes("lastName")?void 0:P.lastName;return i.formatName(te,ie,!0)||te||ie},V=()=>x?L?.name:N(),G=Z(y?.pickupLocation.address,{hiddenFields:["countryCode"]}),$=()=>y?.pickupLocation.name,F=b.value?i.translate("review.blocks.billing_address_title"):i.translate("review.blocks.shipping_address_title"),K=b.value?i.translate("review.blocks.change_billing_address_link_label"):i.translate("review.blocks.change_shipping_address_link_label"),U=e(I,{href:"#deliveryAddress",accessibilityLabel:K,children:i.translate("review.blocks.change_link_label")}),ye=i.translate("review.blocks.no_address"),be=i.translate("pickup_point.title").toLowerCase(),ge=g?.taxId.value;let W=V(),j=e(Bn,{address:P,hasCompanyLocation:!!L,noAddressLabel:ye,secondaryAddressPresentationProps:E,vatNumber:ge});return d.value?(W=e(O,{}),j=void 0):h.value&&(W=$(),j=e(xn,{formattedAddress:G,pickupPoint:y,pickupPointLabel:be})),e(_,{label:o||F,primaryAction:n?U:void 0,primaryContent:W,secondaryContent:j})}function Bn({address:n,hasCompanyLocation:o,noAddressLabel:t,secondaryAddressPresentationProps:i,vatNumber:s}){return n==null||Q(n)?e(S,{children:[e(f,{color:"subdued",children:t}),s&&e(ce,{vatNumber:s})]}):o?e(S,{children:e(de,{...i,address:n})}):e(S,{children:[e(de,{...i,address:n}),s&&e(ce,{vatNumber:s})]})}function xn({formattedAddress:n,pickupPoint:o,pickupPointLabel:t}){if(!o)return null;const i=`${o.pickupLocation.carrierName} ${t}`;return e(S,{children:[n?e(f,{type:"address",children:n}):null,e(f,{color:"subdued",size:"small",children:i})]})}function On({purchasingCompany:n}){const{i18n:o}=k(),{secondary:t}=Ae({address:n.location.shippingAddress??{},nameLinePosition:"inline",addressDisplayName:n.location.name});if(!je(n))return null;const i=o.translate("review.blocks.company_location"),s=e(I,{href:"#billingAddress",accessibilityLabel:o.translate("review.blocks.change_company_location_link_label"),children:o.translate("review.blocks.change_link_label")}),a=n.location.shippingAddress?t:o.translate("review.blocks.no_address"),r=e(f,{children:n.location.name});return e(_,{label:i,primaryAction:s,primaryContent:r,secondaryContent:e(f,{children:a})})}function Tn({companyName:n}){const{i18n:o,checkout:t}=k(),{value:i}=R().contactInfo,s=D("contactInfo").value,a=t.proposal.facts.contactMethod,{geolocation:r}=Se(),l=R().buyerIdentity.value?.purchasingCompany;dn(s);const{email:c,phone:d}=i??{},{email:m,phoneNumber:h}=a??{},{formattedNumber:v}=ue(r.country.code,h??void 0),{formattedNumber:A}=ue(r.country.code,d),w=s&&(c??d)==null,y=m||v||c||A,b=o.translate("customer_account.rollup_label");if(!y&&!s)return null;const C=n?b:o.translate("review.blocks.contact_method_title"),M=w?e(O,{}):l?e(un,{contactInfo:y}):e(H,{lineClamp:1,children:e(f,{dir:"ltr",children:y})}),L=w||l?void 0:e(I,{href:"#contact",accessibilityLabel:o.translate("review.blocks.change_contact_method_link_label"),children:o.translate("review.blocks.change_link_label")});return e(_,{id:"contact",label:C,primaryAction:L,primaryContent:M})}function zn(){const{i18n:n}=k(),o=R(),{value:t}=o.deliveryNext,i=D("deliveryNext").value,s=Je(t),a=Le(),r=Ne().value,l=he(),c=fe(()=>{if(!(!t||t.status==="unavailable"))return s?.find(({methodType:N})=>N==="PICK_UP")?.pickupLocation},[t,s]),d=c?.address,m=c?.name,h=!!s?.some(({methodType:N})=>N==="PICK_UP"),v=vn({deliveryLines:!i&&t?.status==="filled"?t.lines:void 0}),A=()=>h?n.translate("review.blocks.change_delivery_method_link_label"):n.translate("review.blocks.change_shipping_method_link_label"),w=h?n.translate("local_pickup.title"):n.translate("shipping.title");if(i&&!t)return e(_,{label:w,primaryContent:e(O,{})});const y=r||i?null:e(I,{href:"#shippingMethod",accessibilityLabel:A(),children:n.translate("review.blocks.change_link_label")}),b=v?e(bn,{summary:v}):void 0,C=v?e(yn,{summary:v}):void 0,L=e(_,{label:w,primaryAction:y,primaryContent:b??(h?e(re,{pickupLocationName:m}):e(se,{})),secondaryContent:C??(h?e(ae,{address:d,pickupLocationName:m}):e(oe,{}))}),T=e(f,{color:"subdued",children:n.translate("review.blocks.no_address")}
1),z=d?e(Y,{maxInlineSize:"300px",children:e(re,{pickupLocationName:m})}):T,P=d?e(Y,{maxInlineSize:"300px",children:e(ae,{address:d,pickupLocationName:m})}):void 0,B=e(I,{href:"#deliveryAddress",accessibilityLabel:n.translate("review.blocks.change_delivery_method_link_label"),children:n.translate("review.blocks.change_link_label")}),E=n.translate("review.blocks.pickup_items_at",{count:a.value.PICK_UP||0}),x=r||i?null:e(I,{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:L,children:[e(_,{label:E,primaryAction:B,primaryContent:z,secondaryContent:P}),e(p,{when:()=>a.value.SHIPPING,children:N=>e(ve,{reviewItemLabel:n.translate("review.blocks.ship_items_to",{count:N}),addressPresenterProps:{hiddenFields:["phone","company","firstName","lastName"]}})}),e(_,{label:n.translate("shipping.title"),primaryAction:x,primaryContent:b??e(se,{}),secondaryContent:C??e(oe,{})})]})}function pe(){const{i18n:n}=k(),{acceptPaymentVaulting:o,paymentLines:t}=ee(),i=D("paymentLines"),s=D("shippingAddress"),a=Xe(),r=Re(),l=Ie(r.value),c=u(()=>!i.value&&t.value!=null&&!s.value),d=u(()=>{const g=t.value;return g?Ye(Qe(g,a.value)):[]}),m=u(()=>!!t.value?.some(g=>g.method.type==="direct")),h=u(()=>!t.value?.some(M=>M.method.type==="deferred")),v=u(()=>!!(o.value&&m.value)),A=n.translate("payment.title"),w=e(ke,{each:d,children:g=>e(Ke,{paymentLine:g,showCardBrandLabel:!0})}),y=c.value?e(I,{href:"#payment",accessibilityLabel:n.translate("review.blocks.change_payment_method_link_label"),children:e(f,{children:n.translate("review.blocks.change_link_label")})}):void 0,b=e(p,{when:c,fallback:e(O,{}),children:e(S,{gap:"small-400",children:w})});let C;return(h.value||v.value)&&(C=e(Y,{padding:"small-500 none none none",children:e(p,{when:c,fallback:e(O,{}),children:e(S,{gap:"small-400",children:[e(p,{when:h,children:e(H,{children:l})}),e(p,{when:v,children:e(S,{direction:"inline",gap:"small-400",alignItems:"center",children:[e(Me,{type:"check",size:"small"}),e(H,{children:n.translate("review.blocks.payment_method_saved_company_location")})]})})]})})})),e(_,{id:"payment",label:A,primaryAction:y,primaryContent:b,secondaryContent:C})}const En="#";function me(){const{i18n:n}=k(),o=R().purchaseOrderNumber,t=u(()=>o.value?.trim()?`${En}${o.value}`:void 0),i=n.translate("review.blocks.no_purchase_order_number_long"),s=t.value,a=s?e(pn,{children:s}):void 0,r=s?void 0:e(H,{children:i}),l=e(I,{accessibilityLabel:n.translate("review.blocks.change_purchase_order_number_label"),href:"#payment",children:e(f,{children:n.translate("review.blocks.change_link_label")})}),c=n.translate("review.blocks.purchase_order_number_title");return e(_,{id:"purchaseOrder",label:c,primaryAction:l,primaryContent:a,secondaryContent:r})}function Tt(){_n({stage:wn.Complete,id:"Review"});const{checkout:n,i18n:o,source:t}=k(),{progress:i}=Fe(),s=Ce(()=>i("one-page-review-submit"),[i]),a=rn(s),r=Pn("review.review_notice_html",o),l=R(),c=l.deliveryNext,d=l.paymentLines,m=Ze(),h=D("total"),v=D("paymentLines"),A=n.proposal.facts.delivery??[],w=De(),y=l.buyerIdentity,b=en(),C=Cn(),g=he(),M=n.configuration.showContactInformation,L=Be(),T=u(()=>nn(c.value)||A.length>0&&A.every(U=>U.pickupAddress!==null)),z=u(()=>n.isShippingRequired.value&&!T.value),P=u(()=>y.value?.purchasingCompany?n.isShippingRequired.value&&!w.value:n.isShippingRequired.value),B=u(()=>!!(m.value&&m.value.amount>0)||d.value?.lines.some(U=>U.cost?.amount)),E=u(()=>!!(h.value||v.value||!m.value||B.value)),x=xe(),N=u(()=>y.value?.purchasingCompany?x.value:!0),V=tn(t),G=on(),$=Oe({base:!0,medium:!1}),F=G.value?$??!1:!0,K=Te("Checkout::Dynamic::Render","ORDER_SUMMARY4");return e(Ve,{onSubmit:a,children:e(X,{condition:!F,hideDivider:!0,children:[e(kn,{condition:F,children:[e(S,{gap:"small-400",children:[e(p,{when:()=>V,children:[e(ze,{}),e(J,{blockSize:"base"})]}),e(gn,{}),e(p,{when:()=>r,children:e(H,{type:"small",color:"subdued",children:e(fn,{})})})]}),e(J,{blockSize:"large-200"}),e(Hn,{children:e(Un,{buyerIdentity:y,isOrderEditSession:V,showContactInformation:M,showPayment:E,showShippingAddress:z,showAddressReviewItemAction:N,showDeliveryMethod:P,isSplitShipAndPickup:g})})]}),e(p,{when:b,children:e(X,{condition:F,children:[e(le,{placement:"default"}),e(J,{blockSize:"base"})]})}),e(X,{condition:F,hideDivider:!0,children:e(Ee,{section:"review",children:e(Ue,{section:"review",children:e(S,{gap:"base",children:[e($e,{}),e(S,{gap:"large-200",children:[e(p,{when:C,children:e(Ge,{})}),e(p,{when:b,children:e(le,{placement:"above-pay-button"})}),e(hn,{buttonHidden:L}),e(p,{when:()=>F,children:e(He,{customizations:K,gap:"large-200"})})]})]})})})})]})})}function Un({buyerIdentity:n,isOrderEditSession:o,showContactInformation:t,showPayment:i,showShippingAddress:s,showAddressReviewItemAction:a,showDeliveryMethod:r,isSplitShipAndPickup:l}){const c=u(()=>n.value?.purchasingCompany?.company?.name),d=u(()=>!!n.value?.purchasingCompany),m=u(()=>s.value&&!l.value),h=u(()=>s.value?void 0:n.value?.purchasingCompany);return e(q,{children:[t&&e(Tn,{companyName:c.value}),o?e(q,{children:[e(Ln,{}),e(p,{when:i,children:e(pe,{})}),e(p,{when:d,children:e(me,{})})]}):e(q,{children:[e(p,{when:m,children:e(ve,{showAdressReviewItemAction:a.value})}),e(p,{when:r,children:e(zn,{})}),e(p,{when:h,children:v=>e(On,{purchasingCompany:v})}),e(p,{when:i,children:e(pe,{})}),e(p,{when:d,children:e(me,{})})]})]})}function Hn({children:n}){const{i18n:o}=k(),t=sn(),i=o.translate("review.block_title"),s=e(mn,{accessibilityLabel:i,children:n});return e(p,{when:()=>!t.value,fallback:s,children:e(qe,{children:s})})}export{Hn as ReviewItems,Tt 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.