PageSourceSearch

https://jodeemessina.com/cdn/shopifycloud/checkout-web/assets/c1/9d12dea3.CFb6oyR5.js

js jodeemessina.com collected 2026-10-02 12:13:30 UTC 13,565 bytes, 1 lines download raw bytes

1import{t as e,u as a,w as i,S as l,F as n,x as t,m as s}from"./2c1ab0fe.GMbxnz74.js";import{bN as r,d3 as o,e as c,aw as u,eg as d,eh as p,o as v,L as m,da as h,ei as b,ej as y,ct as f,ai as k,c as _,ek as g,P as w,el as L,cm as N,em as A,dD as C,en as j,eo as P,I as S,b as I,ep as x,eq as R,co as F,bV as O,H as B,er as z,a3 as U,aa as T}from"./164ad2e3.BbIvMjRY.js";import{dM as D,c1 as K,T as M,S as W,b6 as $,dN as q,dO as V,bh as E,dP as G,W as H,t as J,cT as Q,bO as X,dQ as Y,dR as Z,dv as ee,ac as ae,bg as ie}from"./4c290a1e.C6TDJ9Fn.js";import{B as le}from"./b9c0319a.D71hsLxR.js";import{D as ne,u as te,S as se,a as re,R as oe,b as ce}from"./910cd6e2.Bo65wEs8.js";import{u as ue,P as de,a as pe,R as ve,L as me,D as he,b as be,c as ye,d as fe}from"./60575ca1.CFFQXMam.js";import{S as ke}from"./79974aab.hHH-4idQ.js";import{h as _e}from"./31cc568e.eY_zQ4dB.js";import{R as ge}from"./6720fa5f.Dt8m7rOm.js";import{A as we}from"./53bbdad9.CGJC_1cv.js";import{u as Le}from"./a25deb9a.DBfpGDzj.js";import{u as Ne}from"./f1968089.C3ZYp3_Z.js";import{u as Ae}from"./0727407f.CsUvC--9.js";import{P as Ce}from"./e77f7fe0.xbyxUO7Z.js";import"./9f047e05.CCJUgz_L.js";import"./app.CepNJbvh.js";import"./0a7dffce.DfUtZWCu.js";import"./5fda1420.KYpufQ--.js";import"./60a453ce.CkhHeRBc.js";import"./21cc90a2.DAzJmttM.js";import"./bb728e1c.iawBHR84.js";import"./efa0389a.Cyj781OI.js";import"./74835653.CRP9zX7D.js";import"./29034f35.BtTRppF-.js";import"./ac5a19ff.CRrh5Bdw.js";import"./47b970b2.hK1atmf1.js";import"./064f6ac1.B1U3VPaO.js";import"./347b440c.C7wvTwkm.js";import"./d5d34b3b.81uMJHYl.js";import"./181d38d3.Ty4Mx6im.js";import"./598fef4e.Bhe6r8fJ.js";function je(){const a=M().buyerIdentity,{source:i}=W(),l=u(),n=d();return e(()=>{const e=a.value?.purchasingCompany,t=l.value;if(e){if(n.value)return"/information";if(t)return t}if(!$(i))return"/information"})}function Pe({accessibilityLabel:e,href:i}){const{i18n:l}=W(),n=l.translate("review.blocks.change_link_label");return a(m,{href:i,accessibilityLabel:e,children:a(v,{children:n})})}const Se=["firstName","lastName"];function Ie({hiddenFields:e,...a}){return{...a,hiddenFields:[...new Set([...e??[],...Se])]}}function xe({withWrappedAddress:i=!1,label:l}){const{i18n:n,source:t,checkout:s}=W(),r=M(),o=r.deliveryNext,u=E("deliveryNext"),v=s.proposal.facts.delivery??[],m=e(()=>G(o.value)),_=r.shippingAddress,w=E("shippingAddress"),L=e(()=>v.length>0?v[0].deliveryAddress:_.value),{shippingAddress:N,billingAddress:A}=H(),C=e(()=>"unavailable"===o.value?.status?N.value:L.value),{selectedPickupPoint:j}=Le(),P=r.billingAddress,S=e(()=>P.value??A.value),I=M().buyerIdentity.value?.purchasingCompany,x=h(),R=e(()=>w.value&&null==L.value),F=e(()=>$(t)?!b({checkout:s}):!s.isShippingRequired.value),O=e(()=>F.value?S.value:C.value),B=y(),z=ue({address:O}).value,U=O.value,T=I&&F.value?n.translate("review.blocks.company_location"):n.translate("review.blocks.billing_address_title"),D=F.value?T:n.translate("review.blocks.shipping_address_title"),K=F.value?n.translate("review.blocks.change_billing_address_link_label"):n.translate("review.blocks.change_shipping_address_link_label"),Q=I?.location;let X;if(z)X=z;else if(i)X={hiddenFields:["phone"],multiline:!0};else{const e=U?.countryCode??j?.pickupLocation.address.countryCode;X=e&&g.includes(e)?{hiddenFields:["phone"],multiline:!1}:{hiddenFields:["firstName","lastName","phone"],multiline:!1}}const Y={...Ie(X),multiline:!1},Z=Boolean(Q&&(u.value||null==U||J(U)||!B.value)),ee=Z?Q?.name:(()=>{if(null!=U&&!J(U)&&!Z)return n.formatName(U.firstName,U.lastName,!0)||U.firstName||U.lastName})(),ae=f(j?.pickupLocation.address,{hiddenFields:["countryCode"]}),ie=j?.pickupLocation.name,le=n.translate("review.blocks.no_address"),ne=n.translate("pickup_point.title").toLowerCase(),te=!Q||s.isShippingRequired.value,se=x?.taxId.value,re=function({showLoading:a,displayBillingAddress:i}){const l=M().buyerIdentity,{source:n,shop:{customerAccountLocationsUrl:t}}=W(),s=c(),r=d(),o=q();return e(()=>{const e=l.value?.purchasingCompany,c="draftOrder"===n.type,u=p(s.value.plan,"/information"),d=V(e);return!(a.value||(!e||!d&&!r.value||!t||$(n)||c)&&(!o.value&&!i.value||!u))})}({showLoading:R,displayBillingAddress:F}),oe=je(),ce=a(Pe,{href:oe.value,accessibilityLabel:K}),de=l??D,pe=re.value?ce:void 0;
1let ve=ee,me=a(Re,{address:U,addressDetailsPresentationProps:Y,companyLocationName:Q?.name,deliveryNextLoading:u.value,isOnetimeShippingAddress:B.value,noAddressLabel:le,showAddress:te,vatNumber:se});return R.value?(ve=a(k,{}),me=void 0):m.value&&(ve=ie,me=a(Fe,{formattedAddress:ae,pickupPoint:j,pickupPointLabel:ne})),a(ge,{label:de,primaryAction:pe,primaryContent:ve,secondaryContent:me})}function Re({address:e,addressDetailsPresentationProps:i,companyLocationName:l,deliveryNextLoading:n,isOnetimeShippingAddress:t,noAddressLabel:s,showAddress:r,vatNumber:o}){return n&&l?a(k,{}):null==e||J(e)?r||o?a(_,{children:[r&&a(v,{size:"small",color:"subdued",children:s}),o&&a(ne,{vatNumber:o})]}):null:l&&!t?r?a(_,{children:a(we,{textColor:"subdued",textSize:"small",...i,address:e})}):null:a(_,{children:[a(we,{...i,address:e}),o&&a(ne,{vatNumber:o})]})}function Fe({formattedAddress:e,pickupPoint:i,pickupPointLabel:l}){if(!i)return null;const n=`${i.pickupLocation.carrierName} ${l}`;return a(_,{children:[e?a(v,{type:"address",children:e}):null,a(v,{color:"subdued",size:"small",children:n})]})}function Oe(){const{i18n:l}=W(),{purchaseOrderNumber:n}=M(),t=E("purchaseOrderNumber"),s=e(()=>t.value&&void 0===n.value),r=l.translate("review.blocks.no_purchase_order_number_long"),o=e(()=>{const e=n.value;return void 0!==e&&""!==e.trim()?`#${e}`:void 0}),c=l.translate("review.blocks.purchase_order_number_title"),u=()=>a(Pe,{href:"/payment",accessibilityLabel:l.translate("review.blocks.change_purchase_order_number_label")});return a(i,{when:()=>!s.value,fallback:a(ge,{label:c,primaryContent:a(k,{})}),children:a(i,{when:o,fallback:a(ge,{label:c,primaryAction:u(),secondaryContent:a(w,{children:r})}),children:e=>a(ge,{label:c,primaryAction:u(),primaryContent:a(de,{children:e})})})})}function Be(){const{i18n:e}=W(),i=je(),l=M().buyerIdentity.value?.purchasingCompany,n=l?.location,t=Ne();if(!n)return null;const s=e.translate("company_location.location_title"),r=t.value?a(Pe,{href:i.value,accessibilityLabel:e.translate("contact.change_company_location_link_label")}):void 0,o=a(v,{children:n.name}),c=n.shippingAddress?a(we,{hiddenFields:L,address:n.shippingAddress}):a(v,{children:e.translate("review.blocks.no_address")});return a(ge,{label:s,primaryAction:r,primaryContent:o,secondaryContent:c})}function ze(){const{i18n:l,checkout:n}=W(),{contactInfo:t}=M(),s=E("contactInfo"),{geolocation:r}=N(),{buyerIdentity:o}=M(),u=c();pe(s.value);const d=n.proposal.facts.contactMethod?.phoneNumber,{formattedNumber:v}=Ae(r.country.code,d??void 0),{formattedNumber:m}=Ae(r.country.code,t.value?.phone),h=e(()=>s.value&&null==(t.value?.email??t.value?.phone)),b=e(()=>!h.value&&p(u.value.plan,"/information")&&!o.value?.purchasingCompany),y=e(()=>{const e=n.proposal.facts.contactMethod?.email,a=""===v?void 0:v,i=t.value?.email;return e||a||i||(""===m?void 0:m)}),f=l.translate("review.blocks.contact_method_title"),_=b.value?a(Pe,{href:"/information",accessibilityLabel:l.translate("review.blocks.change_contact_method_link_label")}):void 0;return a(ge,{label:f,primaryAction:_,primaryContent:a(i,{when:()=>!h.value,fallback:a(k,{}),children:()=>a(ve,{contactInfo:y.value})})})}function Ue(){const{checkout:i,i18n:l,source:n}=W(),t=c(),s=M().deliveryNext,r=E("deliveryNext"),o="draftOrder"===n.type,u=e(()=>Q(s.value)),d=A(),v=te({deliveryLines:"filled"===s.value?.status?s.value.lines:void 0}),m=e(()=>C({checkout:i,source:n})),h=e(()=>{if(m.value?.pickupAddress)return m.value.pickupAddress;if(!s.value||"unavailable"===s.value.status)return;const e=u.value?.map(e=>e.pickupLocation?.address).filter(e=>void 0!==e);return e?.[0]}),b=e(()=>{if(s.value&&"unavailable"!==s.value.status)return m.value?m.value.pickupAddressName:u.value?.find(({methodType:e})=>"PICK_UP"===e)?.pickupLocation?.name}),y=e(()=>Boolean(u.value?.some(({methodType:e})=>"PICK_UP"===e)||m.value?.pickupAddress)),f=e(()=>y.value?"/information":"/shipping"),k=e(()=>!d.value&&!o&&(!$(n)&&p(t.value.plan,f.value)||$(n)&&y.value)),_=e(()=>y.value?l.translate("review.blocks.change_delivery_method_link_label"):l.translate("review.blocks.change_shipping_method_link_label")),g=k.value?a(Pe,{href:f.value,accessibilityLabel:_.value}):void 0,w=l.translate("shipping.title"),L=l.translate("delivery_options.pickup"),N=y.value?L:w,j=a(Te,{showSkeleton:r.value&&!s.value,splitShippingRollupSummary:v,isLocalPickupSelected:y.value,pickupLocationName:b.value}),P=a(De,{showSkeleton:r.value&&!s.value,splitShippingRollupSummary:v,isLocalPickupSelected:y.value,pickupAddress:h.value,pickupLocationName:b.value});return a(ge,{label:N,primaryAction:g,primaryContent:j,secondaryContent:P})}function Te({showSkeleton:e,splitShippingRollupSummary:i,isLocalPickupSelected:l,pickupLocationName:n}){return e?a(k,{}):i?a(se,{summary:i}):l?a(me,{pickupLocationName:n}):a(he,{})}function De({showSkeleton:e,splitShippingRollupSummary:i,isLocalPickupSelected:l,pickupAddress:n,pickupLocationName:t}){return e?a(k,{}):i?a(re,{summary:i}):l?a(be,{address:n,pickupLocationName:t}):a(ye,{})}function Ke(){const{i18n:t}=W(),{acceptPaymentVaulting:s,paymentLines:r}=H(),o=E("paymentLines"),u=E("shippingAddress"),d=c(),v=j(),m=P(v.value),h=X(),b=e(()=>{const e=r.value;return e?Y(Z(e,h.value)).map((e,a)=>({key:`${e.method.type}-${a+1}`,line:e})):[]}),y=e(()=>r.value?.some(e=>"direct"===e.method.type)),f=e(()=>!o.value&&null!=r.value&&!u.value),g=e(()=>{const e=r.value?.some(e=>"deferred"===e.method.type);return!e}),L=e(()=>Boolean(s.value&&y.value)),N=e(()=>p(d.value.plan,"/payment")&&f.value).value?a(Pe,{href:"/payment",accessibilityLabel:t.translate("review.blocks.change_payment_method_link_label")}):void 0,A=t.translate("payment.title"),C=a(i,{when:f,fallback:a(k,{}),children:a(n,{each:b,getKey:e=>e.key,children:({line:e})=>a(l,{children:[a(Ce,{paymentLine:e,showCardBrandLabel:!0}),a(I,{blockSize:"small-400"})]})})});let x;return(g.value||L.value)&&(x=f.value?a(l,{children:[a(i,{when:g,children:a(w,{children:m})}),a(i,{when:L,children:a(_,{direction:"inline",gap:"small-400",alignItems:"center",children:[a(S,{type:"check",size:"small"}
1),a(w,{children:t.translate("review.blocks.payment_method_saved_company_location")})]})})]}):a(k,{})),a(ge,{label:A,primaryAction:N,primaryContent:C,secondaryContent:x})}function Me(){const{checkout:e,i18n:n,source:t}=W(),{deliveryNext:s}=M(),r=x(),o=c(),{value:u}=s,d=E("deliveryNext").value,v=te({deliveryLines:"filled"===u?.status?u.lines:void 0}),m=ee(u).find(({method:e})=>"PICK_UP"===e.methodType),h=p(o.value.plan,"/information")?a(Pe,{href:"/information",accessibilityLabel:n.translate("review.blocks.change_shipping_address_link_label")}):void 0,b=p(o.value.plan,"/shipping")?a(Pe,{href:"/shipping",accessibilityLabel:n.translate("review.blocks.change_shipping_method_link_label")}):void 0,y=v?a(se,{summary:v}):void 0,f=v?a(re,{summary:v}):void 0,_=m?.method.pickupLocation?.address,g=C({checkout:e,source:t})?.pickupAddressName??m?.method.pickupLocation?.name,w=a(me,{pickupLocationName:g}),L=a(be,{address:_,pickupLocationName:g});let N,A;return d?(N=a(k,{}),A=a(k,{})):(N=y??a(he,{}),A=f??a(ye,{})),a(l,{children:[a(ge,{label:n.translate("review.blocks.pickup_items_at",{count:r.value.PICK_UP||0}),primaryAction:h,primaryContent:w,secondaryContent:L}),a(i,{when:()=>r.value.SHIPPING,children:e=>a(l,{children:[a(xe,{label:n.translate("review.blocks.ship_items_to",{count:e})}),a(ge,{label:n.translate("shipping.title"),primaryAction:b,primaryContent:N,secondaryContent:A})]})})]})}function We({showPayment:n,showAddress:u=!0}){const{i18n:d,shop:p}=W(),v=c(),m=p.hasFlagEnabled(ae),{buyerIdentity:h}=M(),b=e(()=>"review"===v.value?.currentPage?.id),y=ie(),f=e(()=>!b.value||!y.value),k=e(()=>{if(f.value)return b.value?O:z}),_=e(()=>b.value&&!y.value?d.translate("review.review_title"):d.translate("review.title")),[g,L]=t(!1),N=function(){const{hasViolations:e,violations:a}=r(K);return o().value&&e&&!D(a)}(),A=function(){const a=R(),{checkout:i,router:l,source:n}=W();return e(()=>{const e=C({checkout:i,source:n}),t=e&&0===e.lines.length;return(l.currentUrlMatches("/payment")||l.currentUrlMatches("/review"))&&!a.value&&!t&&i.isShippingRequired.value})}(),j=F();s(()=>{!g&&N&&L(!0)},[N,g]);const P=function(){const a=c();return e(()=>{const{plan:e}=a.value;return e.greenPath.some(({id:e})=>"payment"===e)})}(),S=e(()=>void 0!==h.value?.purchasingCompany&&P.value),x=a(l,{children:[u&&a(xe,{withWrappedAddress:b.value}),!u&&a(i,{when:()=>h.value?.purchasingCompany,children:a(Be,{})}),a(i,{when:A,children:a(Ue,{})})]}),$=a(fe,{accessibilityLabel:d.translate("review.block_title"),renderAsCard:m,children:[a(ze,{}),a(i,{when:j,fallback:x,children:a(Me,{})}),n?a(Ke,{}):null,a(i,{when:()=>S.value&&b.value,children:a(Oe,{})})]}),q=a(i,{when:f,fallback:$,children:a(T,{children:$})});return a(U,{accessibilityLabel:void 0===k.value?_.value:void 0,accessibilityLabelledBy:k.value,children:[a(i,{when:b,children:a(l,{children:[a(oe,{id:O}),_e("review.review_notice_html",d)?a(w,{children:a(ce,{})}):null,a(I,{blockSize:"large-200"})]})}),a(i,{when:()=>!b.value,children:a(B,{id:z,visibility:"hidden",children:_.value})}),m?a(ke,{target:"edgeToEdgeCard",children:q}):q,g&&a(l,{children:[a(I,{blockSize:"base"}),a(le,{})]})]})}export{We 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.