PageSourceSearch

https://shop.skepticsannotatedbible.com/cdn/shopifycloud/checkout-web/assets/c1/page-Information.C_MvwTUK.js

js skepticsannotatedbible.com collected 2026-09-24 19:39:28 UTC 16,429 bytes, 1 lines download raw bytes

1import{k as R,q as v,T as fe,u as e,X as ye,x as ve,A as B,p as _e,G as Ae,h as K,f as C,i as h,S as H,Q as Ce}from"./esnext-vendor.BBoIVOQW.js";import{f as E,aF as Se,el as Pe,em as be,bn as V,V as Ie,k as u,l as I,P as T,Y as k,en as ke,bD as Ne,dr as Y,G as Z,n as S,dQ as De,eo as Re,q as N,U as b,ep as Ee,cN as Me,dz as we,ca as Le,eq as Te,cO as z,B as xe,bw as Oe,bx as ze,b1 as Fe,m as Be,N as He,K as Ve,M as Ge,er as Ue,bz as qe,J as ee,es as We,a4 as te,et as je,by as ne,eu as Ke,cE as J,j as se,I as Je,L as $e}from"./hydrate.Tsur0pib.js";import{F as ie}from"./localization-index.P2wbDjPJ.js";import{A as Qe,B as Xe}from"./BillingAddressForm.BMqAGUql.js";import{C as Ye}from"./Captcha.CzAUNpY9.js";import{u as Ze,e as oe,P as ae,f as re,g as ce,D as et,h as tt,i as nt,j as st,k as it,l as ot,m as at,U as rt,V as ct,n as dt,o as lt,E as ut,C as pt}from"./components-DeliveryTransition.Dys1ZJbh.js";import{D as ht}from"./PendingShipping.B15tiX3F.js";import{b as mt,d as gt,c as ft,a as yt,P as vt}from"./Page.B9pV9lua.js";import{T as g,I as _t,W as D,aq as de,ag as At,eh as Ct,y as St,a5 as M,ei as Pt,b6 as bt,bj as It,ej as kt,ai as Nt,ah as Dt,ap as Rt}from"./addresses-is-address-empty.ZJ1ThpFy.js";import{C as x}from"./Choice.18syyoW7.js";import{C as G}from"./IncentiveBadge.DttARc72.js";import{u as Et}from"./cross-border-hooks.BN4C-Hww.js";import{A as L}from"./AddressPresenter.Ce4uWLSc.js";import{C as Mt}from"./Checkbox.dqdh-9I_.js";import{C as le,S as wt}from"./ChangeCompanyLocationLink.a6EWibK9.js";import"./app.CUBUOQtX.js";import"./shared-permissions.DW7FOCqf.js";import"./hooks-useShopPayExternalAppContext.YLtTu3k6.js";import"./shipping-methods-grouping.S_i1LuzE.js";import"./amazon-pay-useAmazonPayPaymentLine.CMgi35Fb.js";import"./PhoneField.D8EvZ0Pm.js";import"./hooks-useSuppressShopPayModalOnLoad.CwH45iIp.js";import"./components-RedirectionNotice.module.qsrQCJ0v.js";import"./ShopPayCaptcha.C5fpu37T.js";import"./PaymentErrorBanner.CpfGIpPc.js";import"./hooks-useGeneralPaymentErrorMessage.D4EkCdRM.js";import"./useShopPayButtonClassName.BGKzXWjH.js";import"./shared-shop-theme.Bl1CDyC7.js";import"./hooks-useShowShopPayOptin.BPTq9EIX.js";import"./hooks-useShouldRevealCustomization.1KSlt0eq.js";import"./shop-pay-installments-types._vopm3yK.js";import"./hooks-useForceShopPayUrl.z4AJBm7B.js";import"./ImpressionEventCapture.IVS9ZWTI.js";import"./ShopPayLogo.DdN9PLvG.js";import"./hooks-useWalletsTimeout.BmMXm9Gc.js";import"./shop-pay-installments-monorail.wQxzDho3.js";import"./hooks-useShopPayNewSignupLoginExperiment.CXtCCSeF.js";import"./Section-SectionStyleOverride.DC78UZTk.js";import"./TransitionHeight.BCpWGRvL.js";import"./AutocompleteField-hooks.Cs2Bn4N3.js";const ue=ye(null),Lt=({children:t})=>{const[n,i]=R(void 0),[s,o]=R(void 0),[a,l]=R(void 0),[r,d]=R(void 0),c=v((m,p)=>{i(m),o(p)},[i,o]),y=v((m,p)=>{l(m),d(p)},[l,d]),f=fe(()=>({prefetchTime:n,prefetchAddress:s,negotiateTime:a,negotiateAddress:r,setPrefetchPoint:c,setNegotiatePoint:y}),[n,s,a,r,c,y]);return e(ue.Provider,{value:f,children:t})},Tt=()=>ve(ue);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(),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(_t(t),10),checkoutToken:s,successfulEarlyFetch:c,prefetchingRoutingRequestSubmittedAt:r,normalRoutingRequestSubmittedAt:d}}),[s,t,a])},$=()=>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,pe=()=>{const{userEvents:t}=g(),{shippingAddress:n}=D(),i=xt(),s=Tt(),o=v(r=>{const d=$();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=$(),m=n.value,p=y!==void 0&&!Q(m,y);if(!c||p){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}},Ot=()=>{const{checkout:t,shop:{prefetchShippingRatesEnabled:n}}=g(),s=!t.configuration.layout.isOnePage.value,{negotiate:o}=E(),{capturePrefetch:a}=pe();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}=D(),{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")};Ae(()=>{d()})}}})}function q({additionalFieldGroups:t,settings:n,showSavedAddressSelector:i}){const{shippingAddress:s}=D(),{deliveryMethodsAddressErrors:o}=de(),{inMemoryPayPalParts:{accountStatus:a}}=At(),l=Ct(),r=Ot(),{shouldGateCrossBorder:d,crossBorderGate:c}
1=Et(),y=(_,A,P)=>{d(_)?c(A,{onCancel:P}):A()},{checkout:f}=g(),{availableDeliveryAddresses:m,mustSelectProvidedAddress:p}=f.proposal.negotiated.fields;return Se(),zt(),e(Qe,{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:p,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}=D(),{negotiate:o}=E(),{resetAddressErrors:a}=Pe(n),[l,r]=R(!1),d=be(),c=V(),y=St(s.peek(),t),{value:f}=M().deliveryNext,[m,p]=R([y?X:F]),_=v(async P=>{p(P),r(!0),P[0]===F?s.value={...Pt,company:""}:s.value=t,await o({fieldsToResolve:["merchandiseLines","deliveryNext"],onComplete(){a(),r(!1)}})},[t,o,s,a]);Ie({active:l});const A=c.value&&(!d.value||!bt(f));return e(k,{children:e(u,{gap:"base",children:e(G,{name:Ft,values:m,onChange:_,hideRadioControl:!A,children:[e(x,{value:X,children:e(u,{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})]})}),A&&e(x,{value:F,selectedContent:e(q,{showSavedAddressSelector:!1}),children:e(u,{children:[e(T,{children:e(I,{type:"strong",children:i.translate("contact.different_shipping_address_label")})}),e(T,{color:"subdued",children:i.translate("contact.different_shipping_address_text")})]})})]})})})}function Ht(){const{i18n:t,checkout:n,persistence:i,source:s}=g(),{setShippingAddressAsDefault:o}=D(),a=n.addressManager.shipping.value;K(()=>{const c=i?.get(It.SetShippingAddressAsDefault,{scope:kt(s)});o.value=c??!1},[]);const l=C(()=>a.canSetDefaultAddress.value&&a.addresses.value.length>0&&a.selectedAddress.value?.default!==!0),r=B(a.selectedAddress.peek()?.id);K(()=>{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 Vt=["delivery_methods_company_location_no_address_item"];function Gt(){const t=M().buyerIdentity.value?.purchasingCompany,n=Ze(),i=C(()=>!n.value.isContact);return t?e(Ut,{purchasingCompany:t}):e(H,{children:[e(q,{}),e(Ht,{}),e(oe,{}),e(h,{when:i,children:e(ae,{})})]})}function Ut({purchasingCompany:t}){const{i18n:n,source:i}=g(),{deliveryMethodsAddressErrors:s}=de(),o=V(),a=ke(),l=i.type==="draftOrder",{shippingAddress:r}=D(),d=t.location.shippingAddress,c=l?r.value:d;return c&&a.value?e(Bt,{existingShippingAddress:c,addressErrors:s}):!o.value&&!d?e(u,{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(u,{children:[e(I,{children:t.location.name}),e(I,{color:"subdued",children:n.translate("review.blocks.no_address")})]})})}),e(Ne,{tone:"info",children:n.translate("delivery_options.company_location_no_address_banner")})]}):e(q,{showSavedAddressSelector:!1})}const qt=["selected_pickup_company_location"];function Wt(){const{i18n:t}=g(),n=M().buyerIdentity.value?.purchasingCompany,i=n?.location.shippingAddress,s=Y();return n?e(k,{accessibilityLabel:t.translate("company_location.location_title"),children:e(u,{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(S,{level:1,children:t.translate("company_location.location_title")}),e(h,{when:s,children:e(le,{})})]}),e(G,{name:"pickup_company_locations_list",values:qt,hideRadioControl:!0,children:e(x,{value:"selected_pickup_company_location",children:e(u,{children:[e(I,{
1children:n.location.name}),i?e(L,{address:i,textSize:"small",textColor:"subdued",hiddenFields:De}):e(T,{children:e(I,{type:"small",color:"subdued",children:t.translate("review.blocks.no_address")})})]})})})]})}):null}function jt(){const{i18n:t}=g(),n=M().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(u,{gap:"small-400",children:[e(S,{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(S,{id:"deliveryAddress",level:1,children:t.translate("delivery_options.shipping_address")})}function Kt(){const{i18n:t}=g(),n=Re(),i=N("Checkout::Dynamic::Render","INFORMATION3"),s=re(),o=a=>e(k,{children:a});return e(u,{gap:"large-400",children:[n&&e(H,{children:[n.options.value.some(({id:a})=>a==="PICKUP_POINT")&&e(ce.Prefetch,{}),e(k,{accessibilityLabel:t.translate("contact.delivery_option_title"),children:e(u,{gap:"base",children:[e(S,{level:1,children:t.translate("contact.delivery_option_title")}),e(et,{})]})}),e(b,{customizations:i,render:o})]}),e(tt,{name:"delivery-methods",children:e(Jt,{})}),e(h,{when:s,children:e(nt,{})}),!n&&e(b,{customizations:i,render:o})]})}function Jt(){const{methods:t}=Ee(),{i18n:n,checkout:{wallets:i}}=g(),{negotiate:s}=E(),o=Me(),a=M().buyerIdentity,l=C(()=>a.value?.purchasingCompany),r=we(),{shippingAddress:d}=D(),c=v(()=>{i.activeSession.value||s({include:[],fieldsToResolve:["deliveryNext"],silenceViolations:["non-delivery-address"],runListenersOnError:!0})},[i,s]),y=Le(),f=re(),m=C(()=>t.value.includes("PICK_UP")&&t.value.includes("SHIPPING")),p=C(()=>y.value&&m.value),_=C(()=>!p.value),A=C(()=>t.value.includes("PICKUP_POINT")),P=C(()=>t.value.includes("SHIPPING")),O=st();Te(d,()=>{r&&r.taxId.reset()});const he=N("Checkout::DeliveryAddress::RenderBefore"),me=N("purchase.checkout.delivery-address.render-after"),ge=C(()=>l.value?.location.name?n.translate("contact.ship_to_company",{companyName:l.value.location.name}):n.translate("delivery_options.shipping_address")),W=e(z,{sectionId:"localPickup",children:e(u,{gap:"small",children:[e(h,{when:p,children:e(S,{level:2,children:n.translate("delivery_options.pickup")})}),O?e(it,{}):e(ot,{}),e(Wt,{})]})}),j=e(z,{sectionId:"shippingAddressForm",children:e(k,{accessibilityLabel:ge.value,accessibilityRole:"group",children:[e(u,{gap:"base",children:[e(h,{when:p,children:[e(S,{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(at,{selectedDeliveryMethodType:"SHIPPING"})})})]}),e(h,{when:_,children:e(jt,{})}),e(h,{when:o,children:e(T,{color:"subdued",children:n.translate("contact.shipping_used_as_billing_notice")})}),e(b,{customizations:he}),e(rt,{}),e(ie,{children:[e(wt,{onValid:c,children:e(Gt,{})}),r&&e(ct,{taxId:r.taxId,applied:r.applied})]}),e(b,{customizations:me})]}),e($t,{})]})});return e(h,{when:A,fallback:e(h,{when:p,fallback:e(h,{when:P,fallback:W,children:j}),children:e(u,{gap:"large-300",children:[W,j]})}),children:e(z,{sectionId:"pickupPoints",children:e(ce,{})})})}function $t(){const t=Oe(),n=ze();return Fe(i=>{i.type==="success"&&i.negotiationStage==="progression"&&(t("sectionComplete",{section:"deliveryAddress",timestamp:new Date}),n({type:"section_complete",section:"deliveryAddress"}))}),null}function Hn(){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(Be,{hasError:!1,children:t.translate("contact.title")}),e(He,{onSubmit:()=>i("information-page-submit"),disabled:s.value,implicitSubmit:o,children:e(Ve,{section:"contact",children:e(Ge,{section:"contact",children:e(Qt,{})})})}
1),e(h,{when:n.isShippingRequired,fallback:e(qe.Prefetch,{}),children:e(Ue.Preload,{})}),e(dt,{id:"Information"})]})}const w=t=>e(k,{children:t}),Qt=Ce(function(){const{previousPage:n}=ee(),{checkout:i,client:s,i18n:o,shop:{hasStorefront:a}}=g(),l=We(),r=te(),d=lt(),c=M().buyerIdentity.value?.purchasingCompany,y=je(),f=o.translate("contact.contact_method_title"),m=o.translate("payment.billing_address_title"),p=e(h,{when:y,fallback:e(S,{id:ne,level:1,children:f}),children:e(Yt,{contactTitle:f,loginUrl:s.unstable_getSerialization("loginUrl")||""})}),_=N("Checkout::Contact::RenderAfter"),A=N("Checkout::Dynamic::Render","INFORMATION1"),P=N("Checkout::Dynamic::Render","INFORMATION2"),O=N("Checkout::Dynamic::Render","INFORMATION3");return e(Lt,{children:e(Ke,{children:[e(h,{when:()=>d.value!=="hidden",children:e(ut,{})}),e(mt,{children:[e(gt,{children:[e(b,{customizations:A,render:w}),e(k,{accessibilityLabel:f,children:e(u,{gap:"base",children:[p,e(pt,{hideAllOptIns:!!c,hideContactInfoEntry:!!c}),e(b,{customizations:_,render:w})]})}),e(b,{customizations:P,render:w}),e(h,{when:i.isShippingRequired,fallback:e(J,{target:"cart.paymentLines[0].billingAddress",children:[e(k,{accessibilityRole:"group",accessibilityLabelledBy:"billingAddress",children:e(u,{gap:"base",children:[e(S,{id:"billingAddress",children:m}),e(ie,{children:[e(Xe,{}),e(oe,{}),e(ae,{})]})]})}),e(b,{customizations:O,render:w})]}),children:e(J,{target:"cart.deliveryGroups[0].deliveryAddress",children:e(Kt,{})})}),e(Ye,{})]}),e(ft,{children:[e(Xt,{}),a&&l.value&&n.route&&e(yt,{children:e(se,{href:n.route,variant:"plain",inlineSize:"fill",textDecoration:"none",ref:r("go_to_previous_step"),children:e(u,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(Je,{type:"chevron-left",size:"small"}),e(I,{children:n.label})]})})})]})]})]})})});function Xt(){const{progressing:t,prefetch:n}=E(),i=Dt().isBlocked.value,{nextPage:s}=ee(),{captureNegotiate:o}=pe(),a=te(),l=ht.usePreload(),r=Rt(),d=()=>{o(),n(),s.id==="shipping"&&l()};return e(vt,{children:e(se,{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(u,{direction:"inline",justifyContent:"space-between",alignItems:"baseline",children:[e(S,{id:ne,level:1,children:t}),e($e,{href:o?void 0:n,children:i.translate("customer_account.sign_in_link_label")})]})}export{Hn 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.