1import{_ as i}from"./index-C-B5SaCl.js";const l={blocked:!1};async function u(t){const{applicantId:n,clientId:o,channel:s}=t;if(!o&&!n)return{blocked:!0,reason:"No person identifier supplied â cannot verify consent.",source:"missing_person"};const{data:c,error:r}=await i.rpc("contact_restraint",{p_client_id:o??null,p_applicant_id:n??null,p_email:null,p_channel:s,p_purpose:"communication"});if(r)return console.error("[suppression] restraint check failed â failing closed",r),{blocked:!0,reason:"Could not verify consent â holding off.",source:"missing_person"};const e=c??{};return e.blocked!==!0?l:{blocked:!0,reason:e.reason??"Contact is restrained for this person.",until:e.until??null,blockedAt:e.blocked_at??null,source:e.source??"consent"}}export{u as checkSuppression};
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.