PageSourceSearch

https://us.edifier.com/cdn/shopifycloud/checkout-web/assets/c1/page-Information.CZsu-TgC.js

js edifier.com collected 2026-09-24 08:52:23 UTC 16,532 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,p as _e,G as Ce,h as $,f as S,i as h,S as H,Q as Se}from"./esnext-vendor.D7ldIee_.js";import{aI as Ae,ei as be,ej as Pe,by as G,k as p,l as I,aE as L,P as O,$ as k,ek as Ie,bN as ke,G as Y,n as A,dO as Ne,el as Re,s as N,U as P,em as De,cQ as Ee,dz as Me,cg as we,en as Le,cR as z,B as Oe,bG as Te,bH as xe,X as ze,O as Fe,Q as Be,eo as He,bJ as Ge,N as Z,ep as Ve,a7 as ee,eq as Ue,bI as te,er as qe,o as je,R as We,cH as J,p as $e,m as Je,i as ne,I as Ke,L as Qe,j as Xe}from"./hydrate.ByRIsqvd.js";import{F as se}from"./localization-index.DBksi22x.js";import{A as Ye,B as Ze}from"./BillingAddressForm.DHpCPcqC.js";import{C as et}from"./Captcha.BbYqxwBL.js";import{u as tt,e as ie,P as oe,f as ae,g as re,D as nt,h as st,i as it,j as ot,k as at,l as rt,m as ct,U as dt,V as lt,n as pt,o as ut,E as ht,C as mt}from"./components-DeliveryTransition.BjmsXjx9.js";import{D as gt}from"./PendingShipping.TwutGJMj.js";import{T as ft}from"./stopwatch.wWgdKLTI.js";import{N as g,B as yt,O as R,a0 as E,an as ce,ab as vt,es as _t,t as Ct,$ as M,et as St,aj as At,b0 as bt,bf as Pt,eu as It,bi as kt,ad as Nt,ac as Rt,am as Dt}from"./addresses-is-address-empty.-MuOhIyI.js";import{C as T}from"./Choice.Dywz6_Fr.js";import{C as V}from"./IncentiveBadge.D66zssvS.js";import{u as Et}from"./shipping-methods-grouping.DDWlTvqo.js";import{C as Mt}from"./Checkbox.Cby2hWUV.js";import{C as de,S as wt}from"./ChangeCompanyLocationLink.Ba8IeUdU.js";import{c as le}from"./hooks-useCanChangeCompanyLocation.Bk004VMP.js";import"./app.A60-IfPs.js";import"./constants.DowbVE6J.js";import"./hooks-useReplaceShopPayInHistory.Cz4PqGkk.js";import"./hooks-useSuppressShopPayModalOnLoad.CI5bzdLE.js";import"./PhoneField.BapDvZfY.js";import"./hooks-useUnauthenticatedErrorModal.CzvtLqeY.js";import"./Popover.BNecjV8x.js";import"./ShopPayCaptcha.DpdjijF2.js";import"./PaymentErrorBanner.BNtKSHks.js";import"./hooks-useGeneralPaymentErrorMessage.CXe06B2R.js";import"./useShopPayButtonClassName.DeL41vx0.js";import"./shared-shop-theme.BJKdwdMa.js";import"./hooks-useShouldRevealCustomization.C_GYHzzt.js";import"./models-ShopPayBuyerDetails.model.CahX79UU.js";import"./shop-pay-normalizeBuyerDetails.BcEhgoK7.js";import"./context-CheckoutSheetProtocolClient.CNLSBD5p.js";import"./hooks-useForceShopPayUrl.MIxsBkT_.js";import"./ImpressionEventCapture.CIEEzh6Z.js";import"./ShopPayLogo.Dh-KQvuu.js";import"./hooks-useWalletsTimeout.DIL_pXhM.js";import"./components-RedirectionNotice.module.CqgkZHXB.js";import"./Monorail-monorailMetric-wallets.C3kHkAxp.js";import"./shop-pay-installments-monorail.cv2DVyY3.js";import"./MarketsProDisclaimer.wV7aMZTc.js";import"./Section-SectionStyleOverride.Dli5IR65.js";import"./TransitionHeight.C0wKTnZA.js";import"./AutocompleteField-hooks.YzxHOgXJ.js";const pe=ye(null),Lt=({children:t})=>{const[n,i]=D(void 0),[s,o]=D(void 0),[a,l]=D(void 0),[r,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:a,negotiateAddress:r,setPrefetchPoint:c,setNegotiatePoint:y}),[n,s,a,r,c,y]);return e(pe.Provider,{value:f,children:t})},Ot=()=>ve(pe);var U=(t=>(t.Autocomplete="PREFETCH_SHIPPING_RATES_ON_AUTOCOMPLETE",t))(U||{});const Tt=()=>{const{shop:{id:t},source:{checkoutSessionIdentifier:n,sourceId:i}}=g(),s=n||i||"",o=new Date().valueOf(),a=`${s}-${o}`;return v((r,d,c)=>({schemaId:"prefetching_of_rates_time_gain/2.0",payload:{eventId:a,prefetchingOfRatesProjectName:"prefetch_on_address_autocomplete",prefetchingOfRatesProjectVersion:"v2",shopId:parseInt(yt(t),10),checkoutToken:s,successfulEarlyFetch:c,prefetchingRoutingRequestSubmittedAt:r,normalRoutingRequestSubmittedAt:d}}),[s,t,a])},K=()=>new Date().valueOf(),Q=(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}=R(),i=Tt(),s=Ot(),o=v(r=>{const d=K();if(r===U.Autocomplete){const c=n.value;s?.setPrefetchPoint(d,c)}},[s,n]),a=v(()=>{const r=s?.prefetchTime,d=s?.prefetchAddress,c=s?.negotiateTime,y=s?.negotiateAddress;if(r===void 0||d===void 0)return;const f=K(),m=n.value,u=y!==void 0&&!Q(m,y);if(!c||u){const _=Q(d,m);t.monorailEvent(i(r,f,_)),s?.setNegotiatePoint(f,m)}},[t,s,n,i]),l=v(()=>{a()},[a]);return{capturePrefetch:o,captureNegotiate:l}},xt=()=>{const{checkout:t,shop:{prefetchShippingRatesEnabled:n}}=g(),s=!t.configuration.layout.isOnePage.value,{negotiate:o}=E(),{capturePrefetch:a}=ue();return v(()=>{s&&n&&(a(U.Autocomplete),o({include:[],silenceViolations:["non-stock"],prefetch:!1}))},[a,o,n,s])};function zt(){const{negotiate:t}=E(),{shippingAddress:n}=R(),{observability:i,checkout:{wallets:s}}=g(),o=B(!0),a=B(void 0);_e(()=>{const l=s.activeSession.value,r=n.fields.countryCode.value;if(!l){if(o.current){o.current=!1,a.current=r;return}if(r&&r!==a.current){a.current=r;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")};Ce(()=>{d()})}}})}function q({additionalFieldGroups:t,settings:n,showSavedAddressSelector:i}){const{shippingAddress:s}=R(),{deliveryMethodsAddressErrors:o}=ce(),{inMemoryPayPalParts:{accountStatus:a}}=vt(),l=_t(),r=xt(),{shouldGateCrossBorder:d,crossBorderGate:c}
1=Et(),y=(_,C,b)=>{d(_)?c(C,{onCancel:b}):C()},{checkout:f}=g(),{availableDeliveryAddresses:m,mustSelectProvidedAddress:u}=f.proposal.negotiated.fields;return Ae(),zt(),e(Ye,{id:"shippingAddressForm",addressType:"shipping",addressErrors:o,address:s,countries:l,settings:n,additionalFieldGroups:t,loading:a.value.status==="loading",onAddressAutoComplete:r,onBeforeCountryChange:y,availableAddresses:m,mustSelectProvidedAddress:u,showSavedAddressSelector:i})}const Ft="business_customer_shipping_address_selector",X="existing_shipping_address",F="custom_shipping_address";function Bt({existingShippingAddress:t,addressErrors:n}){const{i18n:i}=g(),{shippingAddress:s}=R(),{negotiate:o}=E(),{resetAddressErrors:a}=be(n),[l,r]=D(!1),d=Pe(),c=G(),y=Ct(s.peek(),t),{value:f}=M().deliveryNext,[m,u]=D([y?X:F]),_=v(async b=>{u(b),r(!0),b[0]===F?s.value={...St,company:""}:s.value=t,await o({fieldsToResolve:["merchandiseLines","deliveryNext"],onComplete(){a(),r(!1)}})},[t,o,s,a]);At({active:l});const C=c.value&&(!d.value||!bt(f));return e(k,{children:e(p,{gap:"base",children:e(V,{name:Ft,values:m,onChange:_,hideRadioControl:!C,children:[e(T,{value:X,children:e(p,{children:[e(I,{type:"strong",children:e(L,{hiddenFields:["address2","phone","company","city","postalCode","zoneCode","countryCode","firstName","lastName"],address:t})}),e(L,{textColor:"subdued",hiddenFields:["phone","company","address1","firstName","lastName"],address:t}),e(L,{textColor:"subdued",hiddenFields:["address2","phone","company","city","postalCode","zoneCode","countryCode","phone","company","address1"],address:t})]})}),C&&e(T,{value:F,selectedContent:e(q,{showSavedAddressSelector:!1}),children:e(p,{children:[e(O,{children:e(I,{type:"strong",children:i.translate("contact.different_shipping_address_label")})}),e(O,{color:"subdued",children:i.translate("contact.different_shipping_address_text")})]})})]})})})}function Ht(){const{i18n:t,checkout:n,persistence:i,source:s}=g(),{setShippingAddressAsDefault:o}=R(),a=n.addressManager.shipping.value;$(()=>{const c=i?.get(Pt.SetShippingAddressAsDefault,{scope:It(s)});o.value=c??!1},[]);const l=S(()=>a.canSetDefaultAddress.value&&a.addresses.value.length>0&&a.selectedAddress.value?.default!==!0),r=B(a.selectedAddress.peek()?.id);$(()=>{const c=a.selectedAddress.value?.id;c!=null&&c!==r.current&&(o.value=!1),r.current=c},[a.selectedAddress.value?.id,o]);const d=v(c=>{o.value=c},[o]);return l.value?e(Mt,{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 Gt=["delivery_methods_company_location_no_address_item"];function Vt(){const t=M().buyerIdentity.value?.purchasingCompany,n=tt(),i=S(()=>!n.value.isContact);return t?e(Ut,{purchasingCompany:t}):e(H,{children:[e(q,{}),e(Ht,{}),e(ie,{}),e(h,{when:i,children:e(oe,{})})]})}function Ut({purchasingCompany:t}){const{i18n:n,source:i}=g(),{deliveryMethodsAddressErrors:s}=ce(),o=G(),a=Ie(),l=i.type==="draftOrder",{shippingAddress:r}=R(),d=t.location.shippingAddress,c=l?r.value:d;return c&&a.value?e(Bt,{existingShippingAddress:c,addressErrors:s}):!o.value&&!d?e(p,{gap:"large-200",children:[e(V,{name:"delivery_methods_company_location_no_address",values:Gt,hideRadioControl:!0,children:e(T,{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(ke,{tone:"info",children:n.translate("delivery_options.company_location_no_address_banner")})]}):e(q,{showSavedAddressSelector:!1})}const qt=["selected_pickup_company_location"];function jt(){const{i18n:t}=g(),n=M().buyerIdentity.value?.purchasingCompany,i=n?.location.shippingAddress,s=le();return n?e(k,{accessibilityLabel:t.translate("company_location.location_title"),children:e(p,{gap:"base",children:[e(Y,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",alignItems:"baseline",gap:"base",children:[e(A,{level:1,children:t.translate("company_location.location_title")}),e(h,{when:s,children:e(de,{})})]}),e(V,{name:"pickup_company_locations_list",values:qt,hideRadioControl:!0,children:e(T,{value:"selected_pickup_company_location",children:e(p,{children:[e(I,{
1children:n.location.name}),i?e(L,{address:i,textSize:"small",textColor:"subdued",hiddenFields:Ne}):e(O,{children:e(I,{type:"small",color:"subdued",children:t.translate("review.blocks.no_address")})})]})})})]})}):null}function Wt(){const{i18n:t}=g(),n=M().buyerIdentity.value?.purchasingCompany,i=G(),s=le();if(n){const o=i.value&&!n.location.shippingAddress;return e(Y,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",gap:"base",children:[e(p,{gap:"small-400",children:[e(A,{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(de,{})})]})}return e(A,{id:"deliveryAddress",level:1,children:t.translate("delivery_options.shipping_address")})}function $t(){const{i18n:t}=g(),n=Re(),i=N("Checkout::Dynamic::Render","INFORMATION3"),s=ae(),o=a=>e(k,{children:a});return e(p,{gap:"large-400",children:[n&&e(H,{children:[n.options.value.some(({id:a})=>a==="PICKUP_POINT")&&e(re.Prefetch,{}),e(k,{accessibilityLabel:t.translate("contact.delivery_option_title"),children:e(p,{gap:"base",children:[e(A,{level:1,children:t.translate("contact.delivery_option_title")}),e(nt,{})]})}),e(P,{customizations:i,render:o})]}),e(st,{name:"delivery-methods",children:e(Jt,{})}),e(h,{when:s,children:e(it,{})}),!n&&e(P,{customizations:i,render:o})]})}function Jt(){const{methods:t}=De(),{i18n:n,checkout:{wallets:i}}=g(),{negotiate:s}=E(),o=Ee(),a=M().buyerIdentity,l=S(()=>a.value?.purchasingCompany),r=Me(),{shippingAddress:d}=R(),c=v(()=>{i.activeSession.value||s({include:[],fieldsToResolve:["deliveryNext"],silenceViolations:["non-delivery-address"],runListenersOnError:!0})},[i,s]),y=we(),f=ae(),m=S(()=>t.value.includes("PICK_UP")&&t.value.includes("SHIPPING")),u=S(()=>y.value&&m.value),_=S(()=>!u.value),C=S(()=>t.value.includes("PICKUP_POINT")),b=S(()=>t.value.includes("SHIPPING")),x=ot();Le(d,()=>{r&&r.taxId.reset()});const he=N("Checkout::DeliveryAddress::RenderBefore"),me=N("purchase.checkout.delivery-address.render-after"),ge=S(()=>l.value?.location.name?n.translate("contact.ship_to_company",{companyName:l.value.location.name}):n.translate("delivery_options.shipping_address")),j=e(z,{sectionId:"localPickup",children:e(p,{gap:"small",children:[e(h,{when:u,children:e(A,{level:2,children:n.translate("delivery_options.pickup")})}),x?e(at,{}):e(rt,{}),e(jt,{})]})}),W=e(z,{sectionId:"shippingAddressForm",children:e(k,{accessibilityLabel:ge.value,accessibilityRole:"group",children:[e(p,{gap:"base",children:[e(h,{when:u,children:[e(A,{id:"deliveryAddress",level:2,children:n.translate("delivery_options.ship_to_address")}),e(h,{when:f,children:e(Oe,{border:"base",padding:"base",borderRadius:"large",children:e(ct,{selectedDeliveryMethodType:"SHIPPING"})})})]}),e(h,{when:_,children:e(Wt,{})}),e(h,{when:o,children:e(O,{color:"subdued",children:n.translate("contact.shipping_used_as_billing_notice")})}),e(P,{customizations:he}),e(dt,{}),e(se,{children:[e(wt,{onValid:c,children:e(Vt,{})}),r&&e(lt,{taxId:r.taxId,applied:r.applied})]}),e(P,{customizations:me})]}),e(Kt,{})]})});return e(h,{when:C,fallback:e(h,{when:u,fallback:e(h,{when:b,fallback:j,children:W}),children:e(p,{gap:"large-300",children:[j,W]})}),children:e(z,{sectionId:"pickupPoints",children:e(re,{})})})}function Kt(){const t=Te(),n=xe();return kt(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 Nt("information"),e(H,{children:[e(ft,{hasError:!1,children:t.translate("contact.title")}),e(ze,{onSubmit:()=>i("information-page-submit"),disabled:s.value,implicitSubmit:o,children:e(Fe,{section:"contact",children:e(Be,{section:"contact",children:e(Qt,{})})})}
1),e(h,{when:n.isShippingRequired,fallback:e(Ge.Prefetch,{}),children:e(He.Preload,{})}),e(pt,{id:"Information"})]})}const w=t=>e(k,{children:t}),Qt=Se(function(){const{previousPage:n}=Z(),{checkout:i,client:s,i18n:o,shop:{hasStorefront:a}}=g(),l=Ve(),r=ee(),d=ut(),c=M().buyerIdentity.value?.purchasingCompany,y=Ue(),f=o.translate("contact.contact_method_title"),m=o.translate("payment.billing_address_title"),u=e(h,{when:y,fallback:e(A,{id:te,level:1,children:f}),children:e(Yt,{contactTitle:f,loginUrl:s.unstable_getSerialization("loginUrl")||""})}),_=N("Checkout::Contact::RenderAfter"),C=N("Checkout::Dynamic::Render","INFORMATION1"),b=N("Checkout::Dynamic::Render","INFORMATION2"),x=N("Checkout::Dynamic::Render","INFORMATION3");return e(Lt,{children:e(qe,{children:[e(h,{when:()=>d.value!=="hidden",children:e(ht,{})}),e(je,{children:[e(We,{children:[e(P,{customizations:C,render:w}),e(k,{accessibilityLabel:f,children:e(p,{gap:"base",children:[u,e(mt,{hideAllOptIns:!!c,hideContactInfoEntry:!!c}),e(P,{customizations:_,render:w})]})}),e(P,{customizations:b,render:w}),e(h,{when:i.isShippingRequired,fallback:e(J,{target:"cart.paymentLines[0].billingAddress",children:[e(k,{accessibilityRole:"group",accessibilityLabelledBy:"billingAddress",children:e(p,{gap:"base",children:[e(A,{id:"billingAddress",children:m}),e(se,{children:[e(Ze,{}),e(ie,{}),e(oe,{})]})]})}),e(P,{customizations:x,render:w})]}),children:e(J,{target:"cart.deliveryGroups[0].deliveryAddress",children:e($t,{})})}),e(et,{})]}),e($e,{children:[e(Xt,{}),a&&l.value&&n.route&&e(Je,{children:e(ne,{href:n.route,variant:"plain",inlineSize:"fill",textDecoration:"none",ref:r("go_to_previous_step"),children:e(p,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(Ke,{type:"chevron-left",size:"small"}),e(I,{children:n.label})]})})})]})]})]})})});function Xt(){const{progressing:t,prefetch:n}=E(),i=Rt().isBlocked.value,{nextPage:s}=Z(),{captureNegotiate:o}=ue(),a=ee(),l=gt.usePreload(),r=Dt(),d=()=>{o(),n(),s.id==="shipping"&&l()};return e(Xe,{children:e(ne,{variant:"primary",disabled:i||!r.value,type:"submit",loading:t.value,size:"large",inlineSize:"fill",onMouseEnter:d,ref:a("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(A,{id:te,level:1,children:t}),e(Qe,{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.