1import{g as e,vn as t}from"./CrzdsfCC.js";import{t as n}from"./B5E1qd6J.js";import{t as r}from"./FdjjloNi.js";function i(){let{apiClient:i}=n(),{getStorefrontUrl:a}=r(),o=t(`undefined`);async function s(e){let t=await i.invoke(`subscribeToNewsletter post /newsletter/subscribe`,{body:{...e,storefrontUrl:a()}});return o.value=t.data.status,t.data}async function c(e){await i.invoke(`unsubscribeToNewsletter post /newsletter/unsubscribe`,{body:{email:e}})}async function l(){let e=await i.invoke(`readNewsletterRecipient post /account/newsletter-recipient`);return o.value=e.data.status,e.data}return{newsletterSubscribe:s,newsletterUnsubscribe:c,isNewsletterSubscriber:e(()=>![`optOut`,`undefined`].includes(o.value)),getNewsletterStatus:l,newsletterStatus:o,confirmationNeeded:e(()=>o.value===`notSet`),SUBSCRIBE_KEY:`subscribe`,UNSUBSCRIBE_KEY:`unsubscribe`}}export{i as t};
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.