1import{cw as c,af as l,cf as m,ak as f,bk as u}from"./CL-OqW-z.js";import"./wjxnPOSZ.js";import"./ZBoxj3M-.js";const p=async(e,t)=>{try{return await c().plentysystems.doEmailConfirmation({newsletterEmailId:e,authString:t})}catch{return null}},w=()=>({confirmEmail:p}),C=l(async({query:e})=>{let t,s;if(e.ActionCall!=="WebActionConfirmNewsletter")return;const r=e.newsletterEmailId?.toString(),i=e.authString?.toString();if(!r||!i)return;const{confirmEmail:o}=w(),{send:a}=m(),n=([t,s]=f(()=>o(r,i)),t=await t,s(),t)?.data;a({message:u(n?"newsletter.confirmation.newsletterOptInMessage":"newsletter.confirmation.newsletterOptInMessageError"),type:n?"positive":"negative",persist:n?!0:void 0})});export{C as default};
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.