1import{u as o,S as e,k as n}from"./2c1ab0fe.Bywc2Brn.js";import{r as a,L as r,D as t,s}from"./164ad2e3.DHuJhR22.js";import{c as i,F as c,I as l,J as d}from"./9dba8418.DInoCEzY.js";import{h as u}from"./2bac2c53.gEGJwgcc.js";function m(o,e){const n=e.translations.get(o);return Boolean(n&&""!==n.toString().trim())}const p=s("legal-link-modal");function h({handle:n,tone:s}){const{embed:d,i18n:u,shop:{merchantPolicies:m}}=i(),h=u.translate("shop_policies",{scope:n.replace(/-/g,"_")}),{localPolicies:f}=c(),g=m.some(o=>o.handle===n)?f.find(o=>o.handle===n):void 0,b=a(void 0,p);return g?.url&&l(d?.embedder)?o(r,{tone:s,"aria-haspopup":"dialog",onClick:()=>{d?.client?.windowOpenRequest(g.url)},children:h}):o(e,g?{children:[o(r,{commandFor:b,tone:s,children:h}),o(t,{id:b,defaultPolicy:g})]}:{children:h})}function f(){const{shop:o,source:e,checkout:{negotiator:a}}=i(),r=a.current.fields.buyerIdentity;return n(()=>Boolean(o.customerAccountLocationsUrl&&"draftOrder"!==e.type&&!d(e)&&u(r.value?.purchasingCompany)))}export{h as L,m as h,f 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.