1import{k as b,h as v,q as c,T as y,r as C,u as l,f as p,l as m,S as g}from"./esnext-vendor.BDPAaZdq.js";import{_ as N}from"./app.D1P6yWfp.js";import{Q as f}from"./hooks-useReplaceShopPayInHistory.C8UL-mAH.js";import{jD as A,am as _,aa as S,o as U}from"./hydrate.B0xlt2dG.js";const w="US";function V(){const[e,o]=b(h);v(()=>{requestIdleCallback(async()=>{o(await x())})},[]);const s=c((n,r,t)=>{const d=P=>n.isSupportedCountry(P);return n.parsePhoneNumber(r,t&&d(t)?t:w)},[]),u=c((n,r)=>{try{if(e==null)return null;const t=s(e,n,r);return t.country==null||!t.isValid()?null:t.format("E.164")||null}catch{return null}},[e,s]),a=c((n,r,t=!1)=>{try{if(e==null)return!0;const d=s(e,n,r);return d.country==null||t&&!n.startsWith(`+${e.getCountryCallingCode(d.country)}`)?!1:d.isValid()}catch{return!1}},[e,s]);return{isPhoneNumberUtilLoaded:y(()=>!!e,[e]),validatePhoneNumber:a,formatPhoneNumber:u}}let h=null;async function x(){return h=await C(()=>N(()=>import("./min-phone-number-library.CH-xVS8e.js").then(o=>o.q),[])),h}const z=e=>l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 47 20",...e,children:l("path",{d:"m9.095 6.766-2.33 1.186C6.233 7.035 5.5 6.565 4.48 6.565q-1.665 0-1.665 1.007c0 .716.821.873 2.663 1.275 1.842.403 3.931.985 3.931 3.29 0 2.238-1.73 3.58-4.593 3.58-2.308 0-4.02-.984-4.816-2.73l2.33-1.163c.488 1.077 1.331 1.633 2.486 1.633 1.198 0 1.797-.335 1.797-1.052 0-.716-.823-.872-2.668-1.275C2.101 10.727.02 10.145.02 7.84c0-2.17 1.709-3.536 4.46-3.536 2.153 0 3.773.873 4.615 2.462M11.05.5h2.884v5.102c.754-.828 1.842-1.298 3.085-1.298 2.485 0 4.26 1.925 4.26 4.655v6.646h-2.884V8.959c0-1.275-.932-2.216-2.22-2.216-1.287 0-2.24.962-2.24 2.216v6.646h-2.886zm12.116 4.61c.954-.671 2.33-1.14 3.795-1.14 3.906 0 6.746 2.663 6.746 6.311 0 3.401-2.441 5.774-5.837 5.774-2.907 0-4.992-1.97-4.992-4.61 0-1.79 1.067-3.111 2.574-3.626l1.22 2.082c-.82.38-1.13.94-1.13 1.633 0 1.14.955 1.947 2.33 1.947 1.687 0 3.018-1.343 3.018-3.155 0-2.127-1.664-3.737-3.927-3.737a4.5 4.5 0 0 0-2.508.738zm15.024 9.22v5.17h-2.885V4.417h2.818V5.78c.866-.94 2.086-1.477 3.462-1.477 3.04 0 5.415 2.484 5.415 5.707s-2.375 5.707-5.415 5.707c-1.354 0-2.53-.515-3.395-1.388m5.947-4.341c0-1.858-1.287-3.223-3.04-3.223-1.731 0-3.04 1.388-3.04 3.223s1.309 3.223 3.04 3.223c1.753 0 3.042-1.366 3.042-3.223z"})});function D(){const{shippingAddress:e,billingAddress:o}=f();return p(()=>e.fields.countryCode.value||o.fields.countryCode.value||"")}function F(e){const o=m(V().validatePhoneNumber),s=m(e),{shippingAddress:u,billingAddress:a}=f();return p(()=>{const i=u.fields.phone.value,n=a.fields.phone.value,r=i||n;return r&&o.value(r,s.value)?r:null})}function k({address:e,hiddenFields:o=[],multiline:s,textColor:u,textSize:a}){const i=A(e,{hiddenFields:o,countryFormat:"explicit"});if(i==null)return l(_,{});const n=s?l("br",{}):", ";
1return l(U,{type:"address",size:a,color:u,children:i.map((r,t)=>l(g,{children:[t>0&&n,l("bdi",{children:s?l(S,{children:r}):r})]},t))})}export{k as A,z as S,D as a,F as b,V as u};
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.