1import{u as o,S as e,k as n}from"./2c1ab0fe.DlNazk3M.js";import{r as a,L as r,D as t,s}from"./164ad2e3.CR6m0m--.js";import{c as i,F as c,I as l,J as d,K as u}from"./4b4bc88f.DJ4vpQqJ.js";function p(o,e){const n=e.translations.get(o);return Boolean(n&&""!==n.toString().trim())}const m=s("legal-link-modal");function h({handle:n,tone:s}){const{embed:d,i18n:u,shop:{merchantPolicies:p}}=i(),h=u.translate("shop_policies",{scope:n.replace(/-/g,"_")}),{localPolicies:f}=c(),g=p.some(o=>o.handle===n)?f.find(o=>o.handle===n):void 0,b=a(void 0,m);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,p 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.