PageSourceSearch

https://shop.nysora.com/cdn/shopifycloud/checkout-web/assets/c1/b9c0319a.Bj2lNtZE.js

js nysora.com collected 2026-10-01 10:40:30 UTC 3,155 bytes, 1 lines download raw bytes

1import{u as e,T as a,q as l,h as s,i}from"./2c1ab0fe.D_oO1jU7.js";import{b as n,a as d}from"./efa0389a.-R9eik6_.js";import{c as r,n as t,aC as o,aD as c,aE as u,aF as p,H as b,P as g,_ as m}from"./164ad2e3.DgUUtBtV.js";import{B as v}from"./74835653.9kmD7491.js";import{O as y,P as _,a_ as h,Q as f,a$ as C,b0 as A,b1 as j}from"./4c290a1e.D9lE9kmU.js";import{A as k}from"./53bbdad9.Bipg1_Lt.js";function N(){const{i18n:a,checkout:l}=y(),s=l.addressManager.billing.value.suggestedAddress.value,i=s.address,d=s.type,o="billing-fact"===d?a.translate("payment.use_order_billing_address_label"):"billing"===d?a.translate("payment.use_location_billing_address_label"):"shipping"===d?a.translate("payment.use_location_shipping_address_label"):void 0;return i&&d&&o?e(n,{value:d,children:e(r,{children:[e(t,{type:"strong",children:o}),e(t,{color:"subdued",children:e(k,{hiddenFields:["phone","company","firstName","lastName"],multiline:!1,address:i})})]})}):null}function L({renderFormOnly:k=!1}={}){const{i18n:L,source:O,checkout:P}=y(),B=_(),F=B.deliveryNext.value,x=h(F),E=o(),{billingAddress:I,shippingAddress:w,billingAddressOption:z}=f(),D=w.value,H=P.proposal.facts.billingAddress,M=P.configuration.layout.isOnePage.value,Q=c(),R=u(),T=B.buyerIdentity.value?.purchasingCompany,U=B.buyerIdentity.value?.customerProfile,$=U&&!C(U)&&0===U.billingAddresses.length&&0===U.shippingAddresses.length,q=(!U||$)&&D.oneTimeUse,G=a((()=>({firstName:void 0,lastName:void 0,address1:void 0,address2:void 0,company:void 0,city:void 0,postalCode:void 0,phone:void 0,zoneCode:void 0,name:void 0,countryCode:I.fields.countryCode.peek()})),[I.fields.countryCode]),J=a((()=>w.fields.countryCode.peek()),[w.fields.countryCode]),K=l((([e])=>{e&&(z.value=e,A(O)?"custom"===e?I.value=G:"shipping"===e?I.value=Q.value:"billing-fact"===e&&H&&(I.value=H):"custom"===e&&T?I.value=j({countryCode:J}):"custom"===e?I.fields.countryCode.value=J:"shipping"===e&&(I.value=Q.value,R()))}),[z,O,T,H,I,G,Q,J,R]),S=L.translate("payment.billing_address_title");p(),s((()=>{A(O)&&"form"===E.value?I.value=G:"shipping"===z.value?I.value=Q.value:"billing-fact"===z.value&&H&&(I.value=H)}),[]);const V=z.value,W=a((()=>[V]),[V]);return e(m,{accessibilityRole:"group",accessibilityLabelledBy:M?void 0:"billingAddress",accessibilityLabel:M?S:void 0,children:e(r,{gap:"base",children:[M?null:e(r,{gap:"small-400",children:[e(b,{id:"billingAddress",children:S}),q?null:e(g,{color:"subdued",children:x?L.translate("payment.billing_address_description_no_shipping_address"):L.translate("payment.billing_address_description")})]}),e(i,{when:()=>!k&&"form"!==E.value,fallback:e(v,{}),children:e(d,{name:"billing_address_selector",values:W,onChange:K,variant:"block",children:[T?e(N,{}):e(n,{value:"shipping",accessibilityLabel:L.translate("payment.same_billing_address_label"),children:e(t,{type:"strong",children:L.translate("payment.same_billing_address_label")})}),e(n,{value:"custom",selectedContent:e(v,{}),accessibilityLabel:L.translate("payment.different_billing_address_label"),children:e(t,{type:"strong",children:L.translate("payment.different_billing_address_label")})})]})})]})})}export{L as B};

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.