1import{I as l,f as b,m as w,R as n}from"./BXJ-i0A5.js";function p(){const{apiClient:s}=l(),{getStorefrontUrl:r}=b(),t=w("undefined");async function o(e){return(await s.invoke("subscribeToNewsletter post /newsletter/subscribe",{body:{...e,storefrontUrl:r()}})).data}async function a(e){await s.invoke("unsubscribeToNewsletter post /newsletter/unsubscribe",{body:{email:e}})}async function u(){const e=await s.invoke("readNewsletterRecipient post /account/newsletter-recipient");return t.value=e.data.status,e.data}const i=n(()=>!["optOut","undefined"].includes(t.value)),c=n(()=>t.value==="notSet");return{newsletterSubscribe:o,newsletterUnsubscribe:a,isNewsletterSubscriber:i,getNewsletterStatus:u,newsletterStatus:t,confirmationNeeded:c}}export{p as u}; 2//# sourceMappingURL=BJVDxsno.js.map
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.