PageSourceSearch

https://silbebysilvy.com/cdn/shopifycloud/checkout-web/assets/c1/9d12dea3.DEgL61Y2.js

js silbebysilvy.com collected 2026-10-01 15:21:51 UTC 13,521 bytes, 1 lines download raw bytes

1import{f as o,u as e,i as b,S as E,p as Re,k as De,h as Fe}from"./2c1ab0fe.DYQSH7bT.js";import{bJ as Be,d1 as Ee,e as M,au as Me,ed as ie,ee as x,n as T,L as Oe,ef as xe,d8 as Te,eg as Ue,eh as He,cp as Ge,ad as N,c as U,ei as je,P as V,ej as Ve,ci as We,ek as ze,dk as J,el as $e,em as qe,I as Ke,b as $,en as Je,eo as Ye,ck as Qe,bU as Z,H as Xe,ep as ee,_ as Ze,a6 as en}from"./164ad2e3.BcELPLd1.js";import{dA as nn,bY as tn,P,O as _,b0 as H,dB as sn,dC as an,bb as R,dD as on,Q as se,o as q,cH as rn,bJ as ln,dE as cn,dF as un,dh as dn,a9 as pn,ba as hn}from"./4c290a1e.CvCmFIo_.js";import{B as mn}from"./b9c0319a.BOA-tgMf.js";import{D as ne,u as ae,S as oe,a as re,R as vn,b as yn}from"./910cd6e2.Dk_1lZU8.js";import{u as gn,P as fn,a as bn,R as kn,L as le,D as ce,b as ue,c as de,d as Cn}from"./60575ca1.BqIlEMKS.js";import{S as Ln}from"./79974aab.KcVh1plL.js";import{h as _n}from"./65f3d4da.CPQqj7Ry.js";import{R as I}from"./6720fa5f.CBKt-zoe.js";import{A as K}from"./53bbdad9.C7Msysac.js";import{u as wn}from"./f1968089.QvFI_vI_.js";import{u as te}from"./29034f35.C0bk1Hps.js";import{P as Pn}from"./e77f7fe0.C05OWWqx.js";import"./app.Bvc4uxd4.js";import"./60a453ce.BJZuodLH.js";import"./0a7dffce.BF-zuF6E.js";import"./bb728e1c.D4AahLMP.js";import"./efa0389a.BYXr6FgY.js";import"./74835653.CCeFHMk_.js";import"./3ca8ef7e.CTrhvMhs.js";import"./ac5a19ff.B7MskK0_.js";import"./47b970b2.DH4wP8_H.js";import"./064f6ac1.D2j0Zkq2.js";import"./347b440c.DGDg8p-S.js";import"./d5d34b3b.y3tJ0fOc.js";import"./181d38d3.BgIC_TY2.js";import"./31cc568e.C3-mS8Wp.js";import"./8599b02a.CeEg7uRS.js";import"./598fef4e.CNrSJxwe.js";function An(){const{hasViolations:i,violations:t}=Be(tn);return Ee().value&&i&&!nn(t)}function Sn(){const i=M();return o(()=>{const{plan:t}=i.value;return t.greenPath.some(({id:n})=>n==="payment")})}function pe(){const i=P().buyerIdentity,{source:t}=_(),n=Me(),a=ie();return o(()=>{const s=i.value?.purchasingCompany,l=n.value;if(s){if(a.value)return"/information";if(l)return l}if(!H(t))return"/information"})}function In({showLoading:i,displayBillingAddress:t}){const n=P().buyerIdentity,{source:a,shop:{customerAccountLocationsUrl:s}}=_(),l=M(),u=ie(),r=sn();return o(()=>{const c=n.value?.purchasingCompany,y=a.type==="draftOrder",p=x(l.value.plan,"/information"),m=an(c);return i.value?!1:c&&(m||u.value)&&s&&!H(a)&&!y?!0:!r.value&&!t.value?!1:!!p})}function D({accessibilityLabel:i,href:t}){const{i18n:n}=_(),a=n.translate("review.blocks.change_link_label");return e(Oe,{href:t,accessibilityLabel:i,children:e(T,{children:a})})}const Nn=["firstName","lastName"];function Rn({hiddenFields:i,...t}){return{...t,hiddenFields:[...new Set([...i??[],...Nn])]}}function he({withWrappedAddress:i=!1,label:t}){const{i18n:n,source:a,checkout:s}=_(),l=P(),u=l.deliveryNext,r=R("deliveryNext"),c=s.proposal.facts.delivery??[],y=o(()=>on(u.value)),p=l.shippingAddress,m=R("shippingAddress"),v=o(()=>c.length>0?c[0].deliveryAddress:p.value),{shippingAddress:h,billingAddress:C}=se(),A=o(()=>u.value?.status==="unavailable"?h.value:v.value),{selectedPickupPoint:g}=xe(),w=l.billingAddress,L=o(()=>w.value??C.value),d=P().buyerIdentity.value?.purchasingCompany,f=Te(),k=o(()=>m.value&&v.value==null),F=o(()=>H(a)?!Ue({checkout:s}):!s.isShippingRequired.value),B=o(()=>F.value?L.value:A.value),O=He(),Y=gn({address:B}).value,S=B.value,me=d&&F.value?n.translate("review.blocks.company_location"):n.translate("review.blocks.billing_address_title"),ve=F.value?me:n.translate("review.blocks.shipping_address_title"),ye=F.value?n.translate("review.blocks.change_billing_address_link_label"):n.translate("review.blocks.change_shipping_address_link_label"),G=d?.location;let j;if(Y)j=Y;else if(i)j={hiddenFields:["phone"],multiline:!0};else{const X=S?.countryCode??g?.pickupLocation.address.countryCode;j=X&&je.includes(X)?{hiddenFields:["phone"],multiline:!1}:{hiddenFields:["firstName","lastName","phone"],multiline:!1}}const ge={...Rn(j),multiline:!1},Q=!!(G&&(r.value||S==null||q(S)||!O.value)),fe=Q?G?.name:(()=>{if(!(S==null||q(S)||Q))return n.formatName(S.firstName,S.lastName,!0)||S.firstName||S.lastName})(),be=Ge(g?.pickupLocation.address,{hiddenFields:["countryCode"]}),ke=g?.pickupLocation.name,Ce=n.translate("review.blocks.no_address"),Le=n.translate("pickup_point.title").toLowerCase(),_e=G?s.isShippingRequired.value:!0,we=f?.taxId.value,Pe=In({showLoading:k,displayBillingAddress:F}),Ae=pe(),Se=e(D,{href:Ae.value,accessibilityLabel:ye}),Ie=t??ve,Ne=Pe.value?Se:void 0;
1let W=fe,z=e(Dn,{address:S,addressDetailsPresentationProps:ge,companyLocationName:G?.name,deliveryNextLoading:r.value,isOnetimeShippingAddress:O.value,noAddressLabel:Ce,showAddress:_e,vatNumber:we});return k.value?(W=e(N,{}),z=void 0):y.value&&(W=ke,z=e(Fn,{formattedAddress:be,pickupPoint:g,pickupPointLabel:Le})),e(I,{label:Ie,primaryAction:Ne,primaryContent:W,secondaryContent:z})}function Dn({address:i,addressDetailsPresentationProps:t,companyLocationName:n,deliveryNextLoading:a,isOnetimeShippingAddress:s,noAddressLabel:l,showAddress:u,vatNumber:r}){return a&&n?e(N,{}):i==null||q(i)?!u&&!r?null:e(U,{children:[u&&e(T,{size:"small",color:"subdued",children:l}),r&&e(ne,{vatNumber:r})]}):n&&!s?u?e(U,{children:e(K,{textColor:"subdued",textSize:"small",...t,address:i})}):null:e(U,{children:[e(K,{...t,address:i}),r&&e(ne,{vatNumber:r})]})}function Fn({formattedAddress:i,pickupPoint:t,pickupPointLabel:n}){if(!t)return null;const a=`${t.pickupLocation.carrierName} ${n}`;return e(U,{children:[i?e(T,{type:"address",children:i}):null,e(T,{color:"subdued",size:"small",children:a})]})}const Bn="#";function En(){const{i18n:i}=_(),{purchaseOrderNumber:t}=P(),n=R("purchaseOrderNumber"),a=o(()=>n.value&&t.value===void 0),s=i.translate("review.blocks.no_purchase_order_number_long"),l=o(()=>{const c=t.value;return c!==void 0&&c.trim()!==""?`${Bn}${c}`:void 0}),u=i.translate("review.blocks.purchase_order_number_title"),r=()=>e(D,{href:"/payment",accessibilityLabel:i.translate("review.blocks.change_purchase_order_number_label")});return e(b,{when:()=>!a.value,fallback:e(I,{label:u,primaryContent:e(N,{})}),children:e(b,{when:l,fallback:e(I,{label:u,primaryAction:r(),secondaryContent:e(V,{children:s})}),children:c=>e(I,{label:u,primaryAction:r(),primaryContent:e(fn,{children:c})})})})}function Mn(){const{i18n:i}=_(),t=pe(),a=P().buyerIdentity.value?.purchasingCompany?.location,s=wn();if(!a)return null;const l=i.translate("company_location.location_title"),u=s.value?e(D,{href:t.value,accessibilityLabel:i.translate("contact.change_company_location_link_label")}):void 0,r=e(T,{children:a.name}),c=a.shippingAddress?e(K,{hiddenFields:Ve,address:a.shippingAddress}):e(T,{children:i.translate("review.blocks.no_address")});return e(I,{label:l,primaryAction:u,primaryContent:r,secondaryContent:c})}function On(){const{i18n:i,checkout:t}=_(),{contactInfo:n}=P(),a=R("contactInfo"),{geolocation:s}=We(),{buyerIdentity:l}=P(),u=M();bn(a.value);const r=t.proposal.facts.contactMethod?.phoneNumber,{formattedNumber:c}=te(s.country.code,r??void 0),{formattedNumber:y}=te(s.country.code,n.value?.phone),p=o(()=>a.value&&(n.value?.email??n.value?.phone)==null),m=o(()=>!p.value&&x(u.value.plan,"/information")&&!l.value?.purchasingCompany),v=o(()=>{const g=t.proposal.facts.contactMethod?.email,w=c===""?void 0:c,L=n.value?.email;return g||w||L||(y===""?void 0:y)}),h=i.translate("review.blocks.contact_method_title"),C=m.value?e(D,{href:"/information",accessibilityLabel:i.translate("review.blocks.change_contact_method_link_label")}):void 0;return e(I,{label:h,primaryAction:C,primaryContent:e(b,{when:()=>!p.value,fallback:e(N,{}),children:()=>e(kn,{contactInfo:v.value})})})}function xn(){const{checkout:i,i18n:t,source:n}=_(),a=M(),s=P().deliveryNext,l=R("deliveryNext"),u=n.type==="draftOrder",r=o(()=>rn(s.value)),c=ze(),y=ae({deliveryLines:s.value?.status==="filled"?s.value.lines:void 0}),p=o(()=>J({checkout:i,source:n})),m=o(()=>p.value?.pickupAddress?p.value.pickupAddress:!s.value||s.value.status==="unavailable"?void 0:r.value?.map(O=>O.pickupLocation?.address).filter(O=>O!==void 0)?.[0]),v=o(()=>{if(!(!s.value||s.value.status==="unavailable"))return p.value?p.value.pickupAddressName:r.value?.find(({methodType:B})=>B==="PICK_UP")?.pickupLocation?.name}),h=o(()=>!!(r.value?.some(({methodType:B})=>B==="PICK_UP")||p.value?.pickupAddress)),C=o(()=>h.value?"/information":"/shipping"),A=o(()=>!c.value&&!u&&(!H(n)&&x(a.value.plan,C.value)||H(n)&&h.value)),g=o(()=>h.value?t.translate("review.blocks.change_delivery_method_link_label"):t.translate("review.blocks.change_shipping_method_link_label")),w=A.value?e(D,{href:C.value,accessibilityLabel:g.value}):void 0,L=t.translate("shipping.title"),d=t.translate("delivery_options.pickup"),f=h.value?d:L,k=e(Tn,{showSkeleton:l.value&&!s.value,splitShippingRollupSummary:y,isLocalPickupSelected:h.value,pickupLocationName:v.value}),F=e(Un,{showSkeleton:l.value&&!s.value,splitShippingRollupSummary:y,isLocalPickupSelected:h.value,pickupAddress:m.value,pickupLocationName:v.value});return e(I,{label:f,primaryAction:w,primaryContent:k,secondaryContent:F})}function Tn({showSkeleton:i,splitShippingRollupSummary:t,isLocalPickupSelected:n,pickupLocationName:a}){return i?e(N,{}):t?e(oe,{summary:t}):n?e(le,{pickupLocationName:a}):e(ce,{})}function Un({showSkeleton:i,splitShippingRollupSummary:t,isLocalPickupSelected:n,pickupAddress:a,pickupLocationName:s}){return i?e(N,{}):t?e(re,{summary:t}):n?e(ue,{address:a,pickupLocationName:s}):e(de,{})}function Hn(){const{i18n:i}=_(),{acceptPaymentVaulting:t,paymentLines:n}=se(),a=R("paymentLines"),s=R("shippingAddress"),l=M(),u=$e(),r=qe(u.value),c=ln(),y=o(()=>{const d=n.value;return d?cn(un(d,c.value)).map((f,k)=>({key:`${f.method.type}-${k+1}`,line:f})):[]}),p=o(()=>n.value?.some(d=>d.method.type==="direct")),m=o(()=>!a.value&&n.value!=null&&!s.value),v=o(()=>!n.value?.some(f=>f.method.type==="deferred")),h=o(()=>!!(t.value&&p.value)),A=o(()=>x(l.value.plan,"/payment")&&m.value).value?e(D,{href:"/payment",accessibilityLabel:i.translate("review.blocks.change_payment_method_link_label")}):void 0,g=i.translate("payment.title"),w=e(b,{when:m,fallback:e(N,{}),children:e(Re,{each:y,getKey:d=>d.key,children:({line:d})=>e(E,{children:[e(Pn,{paymentLine:d,showCardBrandLabel:!0}),e($,{blockSize:"small-400"})]})})});let L;return(v.value||h.value)&&(L=m.value?e(E,{children:[e(b,{when:v,children:e(V,{children:r})}),e(b,{when:h,children:e(U,{direction:"inline",gap:"small-400",alignItems:"center",children:[e(Ke,{type:"check",size:"small"}
1),e(V,{children:i.translate("review.blocks.payment_method_saved_company_location")})]})})]}):e(N,{})),e(I,{label:g,primaryAction:A,primaryContent:w,secondaryContent:L})}function Gn(){const{checkout:i,i18n:t,source:n}=_(),{deliveryNext:a}=P(),s=Je(),l=M(),{value:u}=a,r=R("deliveryNext").value,c=ae({deliveryLines:u?.status==="filled"?u.lines:void 0}),p=dn(u).find(({method:k})=>k.methodType==="PICK_UP"),m=x(l.value.plan,"/information")?e(D,{href:"/information",accessibilityLabel:t.translate("review.blocks.change_shipping_address_link_label")}):void 0,v=x(l.value.plan,"/shipping")?e(D,{href:"/shipping",accessibilityLabel:t.translate("review.blocks.change_shipping_method_link_label")}):void 0,h=c?e(oe,{summary:c}):void 0,C=c?e(re,{summary:c}):void 0,A=p?.method.pickupLocation?.address,g=J({checkout:i,source:n})?.pickupAddressName??p?.method.pickupLocation?.name,w=e(le,{pickupLocationName:g}),L=e(ue,{address:A,pickupLocationName:g});let d,f;return r?(d=e(N,{}),f=e(N,{})):(d=h??e(ce,{}),f=C??e(de,{})),e(E,{children:[e(I,{label:t.translate("review.blocks.pickup_items_at",{count:s.value.PICK_UP||0}),primaryAction:m,primaryContent:w,secondaryContent:L}),e(b,{when:()=>s.value.SHIPPING,children:k=>e(E,{children:[e(he,{label:t.translate("review.blocks.ship_items_to",{count:k})}),e(I,{label:t.translate("shipping.title"),primaryAction:v,primaryContent:d,secondaryContent:f})]})})]})}function jn(){const i=Ye(),{checkout:t,router:n,source:a}=_();return o(()=>{const s=J({checkout:t,source:a}),l=s&&s.lines.length===0;return(n.currentUrlMatches("/payment")||n.currentUrlMatches("/review"))&&!i.value&&!l&&t.isShippingRequired.value})}function bt({showPayment:i,showAddress:t=!0}){const{i18n:n,shop:a}=_(),s=M(),l=a.hasFlagEnabled(pn),{buyerIdentity:u}=P(),r=o(()=>s.value?.currentPage?.id==="review"),c=hn(),y=o(()=>!r.value||!c.value),p=o(()=>{if(y.value)return r.value?Z:ee}),m=o(()=>r.value&&!c.value?n.translate("review.review_title"):n.translate("review.title")),[v,h]=De(!1),C=An(),A=jn(),g=Qe();Fe(()=>{!v&&C&&h(!0)},[C,v]);const w=Sn(),L=o(()=>u.value?.purchasingCompany!==void 0&&w.value),d=e(E,{children:[t&&e(he,{withWrappedAddress:r.value}),!t&&e(b,{when:()=>u.value?.purchasingCompany,children:e(Mn,{})}),e(b,{when:A,children:e(xn,{})})]}),f=e(Cn,{accessibilityLabel:n.translate("review.block_title"),renderAsCard:l,children:[e(On,{}),e(b,{when:g,fallback:d,children:e(Gn,{})}),i?e(Hn,{}):null,e(b,{when:()=>L.value&&r.value,children:e(En,{})})]}),k=e(b,{when:y,fallback:f,children:e(en,{children:f})});return e(Ze,{accessibilityLabel:p.value===void 0?m.value:void 0,accessibilityLabelledBy:p.value,children:[e(b,{when:r,children:e(E,{children:[e(vn,{id:Z}),_n("review.review_notice_html",n)?e(V,{children:e(yn,{})}):null,e($,{blockSize:"large-200"})]})}),e(b,{when:()=>!r.value,children:e(Xe,{id:ee,visibility:"hidden",children:m.value})}),l?e(Ln,{target:"edgeToEdgeCard",children:k}):k,v&&e(E,{children:[e($,{blockSize:"base"}),e(mn,{})]})]})}export{bt 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.