PageSourceSearch

https://shop.mindbodygreen.com/cdn/shopifycloud/checkout-web/assets/c1/page-OnePageReview.Dtg45DLC.js

js mindbodygreen.com collected 2026-09-24 08:27:04 UTC 16,012 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.D7ldIee_.js";import{cl as Z,l as f,al as O,dV as _e,L as we,dz as Pe,dM as Ae,k as S,aE as se,dW as Se,ce as Le,P as H,dS as Ne,dP as Re,cg as he,B as Y,dQ as Ie,dR as Fe,I as Me,dT as De,dq as Be,a1 as xe,s as Oe,dX as ze,b as W,O as Te,Q as Ee,U as Ue,X as He,a9 as Ve}from"./hydrate.ByRIsqvd.js";import{C as qe}from"./Captcha.BbYqxwBL.js";import{MobileOrderSummary as Ge}from"./component-MobileOrderSummary.B6nUs1j_.js";import{R as _,P as $e}from"./PaymentLine.DhO8cHCS.js";import{N as k,O as ee,$ as R,bb as D,d$ as Ke,l as j,d_ as Xe,dD as Qe,_ as We,e0 as Je,e1 as Ye,a0 as je,e2 as Ze,ae as en,b0 as nn,b2 as tn,am as sn,ba as on}from"./addresses-is-address-empty.-MuOhIyI.js";import{D as an,u as rn}from"./StickyPayButton-StickyPayButton.module.DrkNxyTx.js";import{e as ln,u as cn,a as dn,R as un,c as oe,D as ae,b as re,L as le,P as pn,d as mn}from"./components-DeliveryReviewMethods.DfeDSZLJ.js";import{P as hn}from"./PayButtonSection.Dud2wYv0.js";import{P as ce}from"./hooks-useWalletsTimeout.DIL_pXhM.js";import{D as de,u as vn,a as yn,S as bn,R as gn,b as fn}from"./Middot.BwhErQgI.js";import{M as J,a as kn}from"./Section.DIJn7eYY.js";import{u as Cn}from"./PaymentButtons.ey0T5OXw.js";import{u as _n,S as wn}from"./components-RedirectionNotice.module.CqgkZHXB.js";import{c as Pn}from"./hooks-useCanChangeCompanyLocation.Bk004VMP.js";import{h as An}from"./localization-index.DBksi22x.js";import{a as Sn}from"./models-ShopPayBuyerDetails.model.CahX79UU.js";import{u as ue}from"./hooks-useUnauthenticatedErrorModal.CzvtLqeY.js";import"./app.A60-IfPs.js";import"./constants.DowbVE6J.js";import"./hooks-useReplaceShopPayInHistory.Cz4PqGkk.js";import"./ShopPayCaptcha.DpdjijF2.js";import"./PaymentErrorBanner.BNtKSHks.js";import"./hooks-useGeneralPaymentErrorMessage.CXe06B2R.js";import"./TransitionHeight.C0wKTnZA.js";import"./hooks-useShouldRevealCustomization.C_GYHzzt.js";import"./styles-floating-layer.module.CcHB2ksN.js";import"./PaymentIcon.Ddd-WnG2.js";import"./Theme-ThemeOverride.4AonMthy.js";import"./Switch.aKF4dNrP.js";import"./graphql-PaymentSessionMutation.CK_JkOwG.js";import"./shop-pay-ProgressIntercepts.wTCQvlrM.js";import"./useShopPayButtonClassName.DeL41vx0.js";import"./shared-shop-theme.BJKdwdMa.js";import"./hooks-payment-button.D5UAY6lK.js";import"./ShippingMethodRateLabel.DfFHFGoZ.js";import"./EstimatedDeliveryContent.P3UYo-F2.js";import"./hooks-useShopPayProgressIntercepts.CnlV9rdf.js";import"./utils-useViolationsHandler.BKoPz2bB.js";import"./ShopPayLogo.Dh-KQvuu.js";import"./apple-pay-errors.CcNuwNMC.js";import"./ImpressionEventCapture.CIEEzh6Z.js";import"./payment-usePaymentExemptionReason.Q4GfCwuW.js";import"./hooks-useHasOrdersFromMultipleShops.PKFq4ktR.js";import"./shipping-methods-consolidated-included.CmQthVU7.js";import"./Monorail-monorailMetric-wallets.C3kHkAxp.js";import"./shop-pay-normalizeBuyerDetails.BcEhgoK7.js";import"./context-CheckoutSheetProtocolClient.CNLSBD5p.js";function Ln(){const{checkout:n}=k(),s=ee().shippingAddress.value,{value:t}=R().deliveryNext,i=n.proposal.facts.delivery??[],o=i[0],a=R().buyerIdentity.value?.purchasingCompany;if((!i.length||!o?.lines?.length)&&!n.isShippingRequired.value||!o)return null;if(o.pickupAddress)return e(In,{address:o.pickupAddress??void 0,locationName:o.pickupAddressName});const r=t?.status==="unavailable"?s:o.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:o.lines,secondaryDeliveryLine:l})]})}function Nn({lines:n,secondaryDeliveryLine:s}){const{i18n:t,source:i}=k(),o=n.filter(({deliveryChange:a,isFulfilled:r})=>a!=="REMOVED"&&!r).map(a=>e(an,{line:a},a.title));return o.length?e(_,{id:"shipping",label:t.translate("shipping.title"),primaryContent:o,secondaryContent:i.type==="paymentCollection"||!s?void 0:e(ln,{line:s})}):null}function Rn({shippingAddress:n,companyLocationName:s}){const{i18n:t}=k(),i=Z(n,{countryFormat:"explicit",displayName:!!s}),o=t.formatName(n?.firstName,n?.lastName,!0)||n?.firstName||n?.lastName,a=t.translate("review.blocks.no_address"),{primaryContent:r,secondaryContent:l}=s?{primaryContent:s,secondaryContent:n?i:a}:{primaryContent:n?o: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:s}){const{i18n:t}=k(),i=Z(n,{hiddenFields:["postalCode","countryCode","phone"]});return!s||!i?null:e(_,{id:"delivery",label:t.translate("review.blocks.pick_up_in_store_shipping_method_html",{location_name:s}),primaryContent:e(f,{children:i})})}function I({accessibilityLabel:n,children:s,href:t}){const{checkout:{identity:i}}=k(),{onClick:o}=_e(),a=Fn({href:t,identity:i,amazonPayCheckoutAsGuest:o});return e(we,{href:t?`/${t}`:"/",onClick:a,accessibilityLabel:n,children:s})}function Fn({href:n,identity:s,amazonPayCheckoutAsGuest:t}){if(n==="#contact"&&s.current.value==="amazonPay")return()=>t?.()}const Mn=["firstName","lastName"];function Dn({hiddenFields:n,...s}){return{...s,hiddenFields:[...new Set([...n??[],...Mn])]}}function ve({showAdressReviewItemAction:n=!0,reviewItemLabel:s,addressPresenterProps:t}){const{i18n:i,checkout:o}=k(),a=R(),r=a.deliveryNext,l=o.proposal.facts.delivery??[],c=a.shippingAddress,d=D("shippingAddress"),m=u(()=>l.length>0?l[0].deliveryAddress:c.value),h=u(()=>Ke(r.value)),{shippingAddress:v,billingAddress:A}=ee(),w=u(()=>r.value?.status==="unavailable"?v.value:m.value),{selectedPickupPoint:y}=Sn(),b=u(()=>!o.isShippingRequired.value),C=u(()=>b.value?A.value:w.value),g=Pe(),L=R().buyerIdentity.value?.purchasingCompany?.location,z=Ae(),T=cn({address:C}).value,P=C.value,B=T??{hiddenFields:["phone"],multiline:!1,...t},E=Dn(B),x=!!(L&&(P==null||j(P)||!z.value)),N=()=>
1{if(P==null||j(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,M=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 X=V(),Q=e(Bn,{address:P,hasCompanyLocation:!!L,noAddressLabel:ye,secondaryAddressPresentationProps:E,vatNumber:ge});return d.value?(X=e(O,{}),Q=void 0):h.value&&(X=$(),Q=e(xn,{formattedAddress:G,pickupPoint:y,pickupPointLabel:be})),e(_,{label:s||M,primaryAction:n?U:void 0,primaryContent:X,secondaryContent:Q})}function Bn({address:n,hasCompanyLocation:s,noAddressLabel:t,secondaryAddressPresentationProps:i,vatNumber:o}){return n==null||j(n)?e(S,{children:[e(f,{color:"subdued",children:t}),o&&e(de,{vatNumber:o})]}):s?e(S,{children:e(se,{...i,address:n})}):e(S,{children:[e(se,{...i,address:n}),o&&e(de,{vatNumber:o})]})}function xn({formattedAddress:n,pickupPoint:s,pickupPointLabel:t}){if(!s)return null;const i=`${s.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:s}=k(),{secondary:t}=Se({address:n.location.shippingAddress??{},nameLinePosition:"inline",addressDisplayName:n.location.name});if(!Xe(n))return null;const i=s.translate("review.blocks.company_location"),o=e(I,{href:"#billingAddress",accessibilityLabel:s.translate("review.blocks.change_company_location_link_label"),children:s.translate("review.blocks.change_link_label")}),a=n.location.shippingAddress?t:s.translate("review.blocks.no_address"),r=e(f,{children:n.location.name});return e(_,{label:i,primaryAction:o,primaryContent:r,secondaryContent:e(f,{children:a})})}function zn({companyName:n}){const{i18n:s,checkout:t}=k(),{value:i}=R().contactInfo,o=D("contactInfo").value,a=t.proposal.facts.contactMethod,{geolocation:r}=Le(),l=R().buyerIdentity.value?.purchasingCompany;dn(o);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=o&&(c??d)==null,y=m||v||c||A,b=s.translate("customer_account.rollup_label");if(!y&&!o)return null;const C=n?b:s.translate("review.blocks.contact_method_title"),F=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:s.translate("review.blocks.change_contact_method_link_label"),children:s.translate("review.blocks.change_link_label")});return e(_,{id:"contact",label:C,primaryAction:L,primaryContent:F})}function Tn(){const{i18n:n}=k(),s=R(),{value:t}=s.deliveryNext,i=D("deliveryNext").value,o=Qe(t),a=Ne(),r=Re().value,l=he(),c=fe(()=>{if(!(!t||t.status==="unavailable"))return o?.find(({methodType:N})=>N==="PICK_UP")?.pickupLocation},[t,o]),d=c?.address,m=c?.name,h=!!o?.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(le,{pickupLocationName:m}):e(ae,{})),secondaryContent:C??(h?e(re,{address:d,pickupLocationName:m}):e(oe,{}))}),z=e(f,{color:"subdued",children:n.translate("review.blocks.no_address")}
1),T=d?e(Y,{maxInlineSize:"300px",children:e(le,{pickupLocationName:m})}):z,P=d?e(Y,{maxInlineSize:"300px",children:e(re,{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:T,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(ae,{}),secondaryContent:C??e(oe,{})})]})}function pe(){const{i18n:n}=k(),{acceptPaymentVaulting:s,paymentLines:t}=ee(),i=D("paymentLines"),o=D("shippingAddress"),a=We(),r=Ie(),l=Fe(r.value),c=u(()=>!i.value&&t.value!=null&&!o.value),d=u(()=>{const g=t.value;return g?Je(Ye(g,a.value)):[]}),m=u(()=>!!t.value?.some(g=>g.method.type==="direct")),h=u(()=>!t.value?.some(F=>F.method.type==="deferred")),v=u(()=>!!(s.value&&m.value)),A=n.translate("payment.title"),w=e(ke,{each:d,children:g=>e($e,{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(),s=R().purchaseOrderNumber,t=u(()=>s.value?.trim()?`${En}${s.value}`:void 0),i=n.translate("review.blocks.no_purchase_order_number_long"),o=t.value,a=o?e(pn,{children:o}):void 0,r=o?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 Ot(){_n({stage:wn.Complete,id:"Review"});const{checkout:n,i18n:s,source:t}=k(),{progress:i}=je(),o=Ce(()=>i("one-page-review-submit"),[i]),a=rn(o),r=An("review.review_notice_html",s),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(),F=n.configuration.showContactInformation,L=Be(),z=u(()=>nn(c.value)||A.length>0&&A.every(U=>U.pickupAddress!==null)),T=u(()=>n.isShippingRequired.value&&!z.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=Pn(),N=u(()=>y.value?.purchasingCompany?x.value:!0),V=tn(t),G=sn(),$=xe({base
1:!0,medium:!1}),M=G.value?$??!1:!0,K=Oe("Checkout::Dynamic::Render","ORDER_SUMMARY4");return e(He,{onSubmit:a,children:e(J,{condition:!M,hideDivider:!0,children:[e(kn,{condition:M,children:[e(S,{gap:"small-400",children:[e(p,{when:()=>V,children:[e(ze,{}),e(W,{blockSize:"base"})]}),e(gn,{}),e(p,{when:()=>r,children:e(H,{type:"small",color:"subdued",children:e(fn,{})})})]}),e(W,{blockSize:"large-200"}),e(Hn,{children:e(Un,{buyerIdentity:y,isOrderEditSession:V,showContactInformation:F,showPayment:E,showShippingAddress:T,showAddressReviewItemAction:N,showDeliveryMethod:P,isSplitShipAndPickup:g})})]}),e(p,{when:b,children:e(J,{condition:M,children:[e(ce,{placement:"default"}),e(W,{blockSize:"base"})]})}),e(J,{condition:M,hideDivider:!0,children:e(Te,{section:"review",children:e(Ee,{section:"review",children:e(S,{gap:"base",children:[e(Ge,{}),e(S,{gap:"large-200",children:[e(p,{when:C,children:e(qe,{})}),e(p,{when:b,children:e(ce,{placement:"above-pay-button"})}),e(hn,{buttonHidden:L}),e(p,{when:()=>M,children:e(Ue,{customizations:K,gap:"large-200"})})]})]})})})})]})})}function Un({buyerIdentity:n,isOrderEditSession:s,showContactInformation:t,showPayment:i,showShippingAddress:o,showAddressReviewItemAction:a,showDeliveryMethod:r,isSplitShipAndPickup:l}){const c=u(()=>n.value?.purchasingCompany?.company?.name),d=u(()=>!!n.value?.purchasingCompany),m=u(()=>o.value&&!l.value),h=u(()=>o.value?void 0:n.value?.purchasingCompany);return e(q,{children:[t&&e(zn,{companyName:c.value}),s?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(Tn,{})}),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:s}=k(),t=on(),i=s.translate("review.block_title"),o=e(mn,{accessibilityLabel:i,children:n});return e(p,{when:()=>!t.value,fallback:o,children:e(Ve,{children:o})})}export{Hn as ReviewItems,Ot 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.