PageSourceSearch

https://cafesmoody.com/cdn/shopifycloud/checkout-web/assets/c1/page-Information.D2ralB6f.js

js cafesmoody.com collected 2026-09-29 03:55:17 UTC 16,436 bytes, 1 lines download raw bytes

1import{k as D,q as v,T as fe,u as e,X as ye,x as ve,A as B,o as _e,G as Se,h as $,f as A,i as h,S as H,Q as Ae}from"./esnext-vendor.DDpcaSqU.js";import{e as E,aL as Ce,eQ as Pe,eR as be,bH as V,_ as Ie,k as p,l as I,P as L,a0 as k,eS as ke,bV as Re,dT as Y,G as Z,n as C,ek as Ne,eT as De,s as R,U as b,eU as Ee,d2 as Te,d$ as Me,cr as we,eV as Le,d5 as F,B as xe,bQ as Oe,bR as Fe,bl as ze,X as Be,O as He,Q as Ve,eW as Ge,bT as Ue,N as ee,eX as We,a6 as te,eY as qe,bS as ne,eZ as je,o as $e,R as Ke,cT as K,p as Qe,m as Xe,i as se,I as Je,L as Ye,j as Ze}from"./hydrate.BcfGVx0L.js";import{F as ie}from"./FormLayout.UkTBTXMZ.js";import{A as et,B as tt}from"./BillingAddressForm.B1Xpg2b3.js";import{C as nt}from"./Captcha.FpS8EQr6.js";import{u as st,e as oe,P as re,f as ae,g as ce,D as it,h as ot,i as rt,j as at,k as ct,l as dt,m as lt,U as pt,V as ut,n as ht,o as mt,E as gt,C as ft}from"./components-VatNumberValidationField.DqFc8B_9.js";import{D as yt}from"./PendingShipping.D432iDGV.js";import{T as vt}from"./stopwatch.B56VZk5r.js";import{T as g,I as _t,W as N,a$ as de,ae as St,ep as At,y as Ct,a5 as T,eq as Pt,b9 as bt,bp as It,er as kt,ag as Rt,af as Nt,an as Dt}from"./utilities-previous.Cnwy8G2v.js";import{C as x}from"./Choice.D9vYH2mX.js";import{C as G}from"./crypto-constants.Ca3tBkwm.js";import{u as Et}from"./cross-border-hooks.BVR78hJy.js";import{A as w}from"./utilities-stable-ref.dCtJn23l.js";import{C as Tt}from"./Checkbox.CdJzVizb.js";import{C as le,S as Mt}from"./ChangeCompanyLocationLink.DXURX0D_.js";import"./app.DdDscdWN.js";import"./graphql-PaymentSessionMutation.C-nDEOnn.js";import"./shared-permissions.B59tuyWB.js";import"./hooks-useShopPayExternalAppContext.R6pnDxYu.js";import"./amazon-pay-useAmazonPayPaymentLine.X7jqQiq6.js";import"./PhoneField.rAEISard.js";import"./hooks-useSuppressShopPayModalOnLoad.Cvo-K0z2.js";import"./Popover.ZkMcWGfE.js";import"./ShopPayCaptcha.D1P4QA8k.js";import"./PaymentErrorBanner.CtzH3JZS.js";import"./hooks-useGeneralPaymentErrorMessage.DLzmknw2.js";import"./useShopPayButtonClassName.C6ri8rG_.js";import"./shared-shop-theme.BKb8cP_L.js";import"./hooks-useShouldRevealCustomization.djt7DCHB.js";import"./hooks-useForceShopPayUrl.JfumpHY0.js";import"./shop-pay-installments-monorail.B1-OWrOB.js";import"./ShopPayLogo.D2iKuiAK.js";import"./hooks-useWalletsTimeout.ByRalZ9t.js";import"./CalloutHeader.DC7jgv42.js";import"./Monorail-monorailMetric-wallets.D__Peh7l.js";import"./PayButton-helpers.DGMbMyz3.js";import"./hooks-useShopPayNewSignupLoginExperiment.DrmS3FLj.js";import"./Section-SectionStyleOverride.CdNufRZ0.js";import"./TransitionHeight.Bhh9D1te.js";import"./AutocompleteField-hooks.By5FDG3b.js";import"./localization-index.C3Jg94aR.js";const pe=ye(null),wt=({children:t})=>{const[n,i]=D(void 0),[s,o]=D(void 0),[r,l]=D(void 0),[a,d]=D(void 0),c=v((m,u)=>{i(m),o(u)},[i,o]),y=v((m,u)=>{l(m),d(u)},[l,d]),f=fe(()=>({prefetchTime:n,prefetchAddress:s,negotiateTime:r,negotiateAddress:a,setPrefetchPoint:c,setNegotiatePoint:y}),[n,s,r,a,c,y]);return e(pe.Provider,{value:f,children:t})},Lt=()=>ve(pe);var U=(t=>(t.Autocomplete="PREFETCH_SHIPPING_RATES_ON_AUTOCOMPLETE",t))(U||{});const xt=()=>{const{shop:{id:t},source:{checkoutSessionIdentifier:n,sourceId:i}}=g(),s=n||i||"",o=new Date().valueOf(),r=`${s}-${o}`;return v((a,d,c)=>({schemaId:"prefetching_of_rates_time_gain/2.0",payload:{eventId:r,prefetchingOfRatesProjectName:"prefetch_on_address_autocomplete",prefetchingOfRatesProjectVersion:"v2",shopId:parseInt(_t(t),10),checkoutToken:s,successfulEarlyFetch:c,prefetchingRoutingRequestSubmittedAt:a,normalRoutingRequestSubmittedAt:d}}),[s,t,r])},Q=()=>new Date().valueOf(),X=(t,n)=>t.name===n.name&&t.city===n.city&&t.countryCode===n.countryCode&&t.zoneCode===n.zoneCode&&t.postalCode===n.postalCode&&t.address1===n.address1&&t.address2===n.address2&&t.company===n.company&&t.firstName===n.firstName&&t.lastName===n.lastName&&t.phone===n.phone,ue=()=>{const{userEvents:t}=g(),{shippingAddress:n}=N(),i=xt(),s=Lt(),o=v(a=>{const d=Q();if(a===U.Autocomplete){const c=n.value;s?.setPrefetchPoint(d,c)}},[s,n]),r=v(()=>{const a=s?.prefetchTime,d=s?.prefetchAddress,c=s?.negotiateTime,y=s?.negotiateAddress;if(a===void 0||d===void 0)return;const f=Q(),m=n.value,u=y!==void 0&&!X(m,y);if(!c||u){const _=X(d,m);t.monorailEvent(i(a,f,_)),s?.setNegotiatePoint(f,m)}},[t,s,n,i]),l=v(()=>{r()},[r]);return{capturePrefetch:o,captureNegotiate:l}},Ot=()=>{const{checkout:t,shop:{prefetchShippingRatesEnabled:n}}=g(),s=!t.configuration.layout.isOnePage.value,{negotiate:o}=E(),{capturePrefetch:r}=ue();return v(()=>{s&&n&&(r(U.Autocomplete),o({include:[],silenceViolations:["non-stock"],prefetch:!1}))},[r,o,n,s])};function Ft(){const{negotiate:t}=E(),{shippingAddress:n}=N(),{observability:i,checkout:{wallets:s}}=g(),o=B(!0),r=B(void 0);_e(()=>{const l=s.activeSession.value,a=n.fields.countryCode.value;if(!l){if(o.current){o.current=!1,r.current=a;return}if(a&&a!==r.current){r.current=a;const d=async()=>{await t({fieldsToResolve:["deliveryNext"],negotiationStage:"negotiation"}),i.log("three_page_checkout_shipping_address_country_change_negotiation","Negotiating due to shipping address country change")};Se(()=>{d()})}}})}function W({additionalFieldGroups:t,settings:n,showSavedAddressSelector:i}){const{shippingAddress:s}=N(),{deliveryMethodsAddressErrors:o}=de(),{inMemoryPayPalParts:{accountStatus:r}}=St(),l=At(),a=Ot(),{shouldGateCrossBorder:d,crossBorderGate:c}
1=Et(),y=(_,S,P)=>{d(_)?c(S,{onCancel:P}):S()},{checkout:f}=g(),{availableDeliveryAddresses:m,mustSelectProvidedAddress:u}=f.proposal.negotiated.fields;return Ce(),Ft(),e(et,{id:"shippingAddressForm",addressType:"shipping",addressErrors:o,address:s,countries:l,settings:n,additionalFieldGroups:t,loading:r.value.status==="loading",onAddressAutoComplete:a,onBeforeCountryChange:y,availableAddresses:m,mustSelectProvidedAddress:u,showSavedAddressSelector:i})}const zt="business_customer_shipping_address_selector",J="existing_shipping_address",z="custom_shipping_address";function Bt({existingShippingAddress:t,addressErrors:n}){const{i18n:i}=g(),{shippingAddress:s}=N(),{negotiate:o}=E(),{resetAddressErrors:r}=Pe(n),[l,a]=D(!1),d=be(),c=V(),y=Ct(s.peek(),t),{value:f}=T().deliveryNext,[m,u]=D([y?J:z]),_=v(async P=>{u(P),a(!0),P[0]===z?s.value={...Pt,company:""}:s.value=t,await o({fieldsToResolve:["merchandiseLines","deliveryNext"],onComplete(){r(),a(!1)}})},[t,o,s,r]);Ie({active:l});const S=c.value&&(!d.value||!bt(f));return e(k,{children:e(p,{gap:"base",children:e(G,{name:zt,values:m,onChange:_,hideRadioControl:!S,children:[e(x,{value:J,children:e(p,{children:[e(I,{type:"strong",children:e(w,{hiddenFields:["address2","phone","company","city","postalCode","zoneCode","countryCode","firstName","lastName"],address:t})}),e(w,{textColor:"subdued",hiddenFields:["phone","company","address1","firstName","lastName"],address:t}),e(w,{textColor:"subdued",hiddenFields:["address2","phone","company","city","postalCode","zoneCode","countryCode","phone","company","address1"],address:t})]})}),S&&e(x,{value:z,selectedContent:e(W,{showSavedAddressSelector:!1}),children:e(p,{children:[e(L,{children:e(I,{type:"strong",children:i.translate("contact.different_shipping_address_label")})}),e(L,{color:"subdued",children:i.translate("contact.different_shipping_address_text")})]})})]})})})}function Ht(){const{i18n:t,checkout:n,persistence:i,source:s}=g(),{setShippingAddressAsDefault:o}=N(),r=n.addressManager.shipping.value;$(()=>{const c=i?.get(It.SetShippingAddressAsDefault,{scope:kt(s)});o.value=c??!1},[]);const l=A(()=>r.canSetDefaultAddress.value&&r.addresses.value.length>0&&r.selectedAddress.value?.default!==!0),a=B(r.selectedAddress.peek()?.id);$(()=>{const c=r.selectedAddress.value?.id;c!=null&&c!==a.current&&(o.value=!1),a.current=c},[r.selectedAddress.value?.id,o]);const d=v(c=>{o.value=c},[o]);return l.value?e(Tt,{id:"three_page_set_default_shipping_address",name:"set_default_shipping_address",checked:o.value??!1,onChange:d,label:t.translate("address_management.address_form.default_address")}):null}const Vt=["delivery_methods_company_location_no_address_item"];function Gt(){const t=T().buyerIdentity.value?.purchasingCompany,n=st(),i=A(()=>!n.value.isContact);return t?e(Ut,{purchasingCompany:t}):e(H,{children:[e(W,{}),e(Ht,{}),e(oe,{}),e(h,{when:i,children:e(re,{})})]})}function Ut({purchasingCompany:t}){const{i18n:n,source:i}=g(),{deliveryMethodsAddressErrors:s}=de(),o=V(),r=ke(),l=i.type==="draftOrder",{shippingAddress:a}=N(),d=t.location.shippingAddress,c=l?a.value:d;return c&&r.value?e(Bt,{existingShippingAddress:c,addressErrors:s}):!o.value&&!d?e(p,{gap:"large-200",children:[e(G,{name:"delivery_methods_company_location_no_address",values:Vt,hideRadioControl:!0,children:e(x,{value:"delivery_methods_company_location_no_address_item",children:e(p,{children:[e(I,{children:t.location.name}),e(I,{color:"subdued",children:n.translate("review.blocks.no_address")})]})})}),e(Re,{tone:"info",children:n.translate("delivery_options.company_location_no_address_banner")})]}):e(W,{showSavedAddressSelector:!1})}const Wt=["selected_pickup_company_location"];function qt(){const{i18n:t}=g(),n=T().buyerIdentity.value?.purchasingCompany,i=n?.location.shippingAddress,s=Y();return n?e(k,{accessibilityLabel:t.translate("company_location.location_title"),children:e(p,{gap:"base",children:[e(Z,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",alignItems:"baseline",gap:"base",children:[e(C,{level:1,children:t.translate("company_location.location_title")}),e(h,{when:s,children:e(le,{})})]}),e(G,{name:"pickup_company_locations_list",values:Wt,hideRadioControl:!0,children:e(x,{value:"selected_pickup_company_location",children:e(p,{children:[e(I,{
1children:n.location.name}),i?e(w,{address:i,textSize:"small",textColor:"subdued",hiddenFields:Ne}):e(L,{children:e(I,{type:"small",color:"subdued",children:t.translate("review.blocks.no_address")})})]})})})]})}):null}function jt(){const{i18n:t}=g(),n=T().buyerIdentity.value?.purchasingCompany,i=V(),s=Y();if(n){const o=i.value&&!n.location.shippingAddress;return e(Z,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",children:[e(p,{gap:"small-400",children:[e(C,{level:1,id:"deliveryAddress",children:t.translate("contact.ship_to_company",{companyName:n.location.name})}),o&&e(I,{color:"subdued",children:t.translate("contact.different_shipping_address_text")})]}),e(h,{when:s,children:e(le,{})})]})}return e(C,{id:"deliveryAddress",level:1,children:t.translate("delivery_options.shipping_address")})}function $t(){const{i18n:t}=g(),n=De(),i=R("Checkout::Dynamic::Render","INFORMATION3"),s=ae(),o=r=>e(k,{children:r});return e(p,{gap:"large-400",children:[n&&e(H,{children:[n.options.value.some(({id:r})=>r==="PICKUP_POINT")&&e(ce.Prefetch,{}),e(k,{accessibilityLabel:t.translate("contact.delivery_option_title"),children:e(p,{gap:"base",children:[e(C,{level:1,children:t.translate("contact.delivery_option_title")}),e(it,{})]})}),e(b,{customizations:i,render:o})]}),e(ot,{name:"delivery-methods",children:e(Kt,{})}),e(h,{when:s,children:e(rt,{})}),!n&&e(b,{customizations:i,render:o})]})}function Kt(){const{methods:t}=Ee(),{i18n:n,checkout:{wallets:i}}=g(),{negotiate:s}=E(),o=Te(),r=T().buyerIdentity,l=A(()=>r.value?.purchasingCompany),a=Me(),{shippingAddress:d}=N(),c=v(()=>{i.activeSession.value||s({include:[],fieldsToResolve:["deliveryNext"],silenceViolations:["non-delivery-address"],runListenersOnError:!0})},[i,s]),y=we(),f=ae(),m=A(()=>t.value.includes("PICK_UP")&&t.value.includes("SHIPPING")),u=A(()=>y.value&&m.value),_=A(()=>!u.value),S=A(()=>t.value.includes("PICKUP_POINT")),P=A(()=>t.value.includes("SHIPPING")),O=at();Le(d,()=>{a&&a.taxId.reset()});const he=R("Checkout::DeliveryAddress::RenderBefore"),me=R("purchase.checkout.delivery-address.render-after"),ge=A(()=>l.value?.location.name?n.translate("contact.ship_to_company",{companyName:l.value.location.name}):n.translate("delivery_options.shipping_address")),q=e(F,{sectionId:"localPickup",children:e(p,{gap:"small",children:[e(h,{when:u,children:e(C,{level:2,children:n.translate("delivery_options.pickup")})}),O?e(ct,{}):e(dt,{}),e(qt,{})]})}),j=e(F,{sectionId:"shippingAddressForm",children:e(k,{accessibilityLabel:ge.value,accessibilityRole:"group",children:[e(p,{gap:"base",children:[e(h,{when:u,children:[e(C,{id:"deliveryAddress",level:2,children:n.translate("delivery_options.ship_to_address")}),e(h,{when:f,children:e(xe,{border:"base",padding:"base",borderRadius:"large",children:e(lt,{selectedDeliveryMethodType:"SHIPPING"})})})]}),e(h,{when:_,children:e(jt,{})}),e(h,{when:o,children:e(L,{color:"subdued",children:n.translate("contact.shipping_used_as_billing_notice")})}),e(b,{customizations:he}),e(pt,{}),e(ie,{children:[e(Mt,{onValid:c,children:e(Gt,{})}),a&&e(ut,{taxId:a.taxId,applied:a.applied})]}),e(b,{customizations:me})]}),e(Qt,{})]})});return e(h,{when:S,fallback:e(h,{when:u,fallback:e(h,{when:P,fallback:q,children:j}),children:e(p,{gap:"large-300",children:[q,j]})}),children:e(F,{sectionId:"pickupPoints",children:e(ce,{})})})}function Qt(){const t=Oe(),n=Fe();return ze(i=>{i.type==="success"&&i.negotiationStage==="progression"&&(t("sectionComplete",{section:"deliveryAddress",timestamp:new Date}),n({type:"section_complete",section:"deliveryAddress"}))}),null}function Vn(){const{i18n:t,checkout:n}=g(),{progress:i,progressing:s}=E(),o=n.isShippingRequired.value?t.translate("general.continue_to_shipping_method"):t.translate("general.continue_to_payment_method");return Rt("information"),e(H,{children:[e(vt,{hasError:!1,children:t.translate("contact.title")}),e(Be,{onSubmit:()=>i("information-page-submit"),disabled:s.value,implicitSubmit:o,children:e(He,{section:"contact",children:e(Ve,{section:"contact",children:e(Xt,{})})})}
1),e(h,{when:n.isShippingRequired,fallback:e(Ue.Prefetch,{}),children:e(Ge.Preload,{})}),e(ht,{id:"Information"})]})}const M=t=>e(k,{children:t}),Xt=Ae(function(){const{previousPage:n}=ee(),{checkout:i,client:s,i18n:o,shop:{hasStorefront:r}}=g(),l=We(),a=te(),d=mt(),c=T().buyerIdentity.value?.purchasingCompany,y=qe(),f=o.translate("contact.contact_method_title"),m=o.translate("payment.billing_address_title"),u=e(h,{when:y,fallback:e(C,{id:ne,level:1,children:f}),children:e(Yt,{contactTitle:f,loginUrl:s.unstable_getSerialization("loginUrl")||""})}),_=R("Checkout::Contact::RenderAfter"),S=R("Checkout::Dynamic::Render","INFORMATION1"),P=R("Checkout::Dynamic::Render","INFORMATION2"),O=R("Checkout::Dynamic::Render","INFORMATION3");return e(wt,{children:e(je,{children:[e(h,{when:()=>d.value!=="hidden",children:e(gt,{})}),e($e,{children:[e(Ke,{children:[e(b,{customizations:S,render:M}),e(k,{accessibilityLabel:f,children:e(p,{gap:"base",children:[u,e(ft,{hideAllOptIns:!!c,hideContactInfoEntry:!!c}),e(b,{customizations:_,render:M})]})}),e(b,{customizations:P,render:M}),e(h,{when:i.isShippingRequired,fallback:e(K,{target:"cart.paymentLines[0].billingAddress",children:[e(k,{accessibilityRole:"group",accessibilityLabelledBy:"billingAddress",children:e(p,{gap:"base",children:[e(C,{id:"billingAddress",children:m}),e(ie,{children:[e(tt,{}),e(oe,{}),e(re,{})]})]})}),e(b,{customizations:O,render:M})]}),children:e(K,{target:"cart.deliveryGroups[0].deliveryAddress",children:e($t,{})})}),e(nt,{})]}),e(Qe,{children:[e(Jt,{}),r&&l.value&&n.route&&e(Xe,{children:e(se,{href:n.route,variant:"plain",inlineSize:"fill",textDecoration:"none",ref:a("go_to_previous_step"),children:e(p,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(Je,{type:"chevron-left",size:"small"}),e(I,{children:n.label})]})})})]})]})]})})});function Jt(){const{progressing:t,prefetch:n}=E(),i=Nt().isBlocked.value,{nextPage:s}=ee(),{captureNegotiate:o}=ue(),r=te(),l=yt.usePreload(),a=Dt(),d=()=>{o(),n(),s.id==="shipping"&&l()};return e(Ze,{children:e(se,{variant:"primary",disabled:i||!a.value,type:"submit",loading:t.value,size:"large",inlineSize:"fill",onMouseEnter:d,ref:r("go_to_next_step"),children:s.label})})}function Yt({contactTitle:t,loginUrl:n}){const{i18n:i,source:s}=g(),o=s.type==="simulated";return e(p,{direction:"inline",justifyContent:"space-between",alignItems:"baseline",children:[e(C,{id:ne,level:1,children:t}),e(Ye,{href:o?void 0:n,children:i.translate("customer_account.sign_in_link_label")})]})}export{Vn 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.