function n(e){const t=e.desensitization;if(!t)return;if(t.text&&t.image&&typeof t.text=="object"&&typeof t.image=="object"){const l=t.image;l.maxImageBytes==null&&(l.maxImageBytes=10*1024*1024),l.maxSideLength==null&&(l.maxSideLength=4096),(!e.sendGate||typeof e.sendGate!="object")&&(e.sendGate={onLlmTimeout:"allow",doubleEnterBypass:!0});return}const a=t;e.desensitization={text:{enabled:a.textEnabled!==!1,manualConfirm:a.manualConfirm!==!1,defaultStrategy:a.defaultStrategy??"placeholder",customTemplates:a.customTemplates??{}},image:{enabled:a.imageEnabled!==!1,manualConfirm:!0,defaultStrategy:a.defaultStrategy??"placeholder",maxImageBytes:10*1024*1024,maxSideLength:4096}},(!e.sendGate||typeof e.sendGate!="object")&&(e.sendGate={onLlmTimeout:"allow",doubleEnterBypass:!0})}const i={enabled:!0,sensitivity:"medium",theme:"dark",detectionTypes:{EMAIL:!0,PHONE_NUMBER:!0,ID_CARD:!0,BANK_CARD:!0,IP_ADDRESS:!0,URL:!1,PERSON_NAME:!0,LOCATION:!0,ORGANIZATION:!0,DATE_TIME:!1,PASSWORD_OR_KEY:!0,PASSPORT:!0,LICENSE_PLATE:!0,SOCIAL_SECURITY:!0,FINANCIAL_INFO:!0,HEALTH_INFO:!0,BIOMETRIC:!0,EMOTION_BEHAVIOR:!1},desensitization:{text:{enabled:!0,manualConfirm:!0,defaultStrategy:"placeholder",customTemplates:{}},image:{enabled:!0,manualConfirm:!0,defaultStrategy:"placeholder",maxImageBytes:10*1024*1024,maxSideLength:4096}},sendGate:{onLlmTimeout:"allow",doubleEnterBypass:!0},whitelist:[],llm:{enabled:!0,activeBackend:"ollama",ollama:{baseUrl:"http://localhost:11434",modelName:"qwen3.5:2b",timeout:6e5},ner:{selectedModel:null,downloadedModels:[],maxTokenLength:512},remoteApi:{activeProfileId:null,profiles:[]},vision:{enabled:!1,provider:"ollama",baseUrl:"http://localhost:11434",modelName:"llava",timeout:6e4}},notification:{style:"bar",autoHideDelay:1e4},experiments:{interactionMode:"modern",radarPulse:!0,radarScan:!0,alertSensitivity:7,audioFeedback:!1}},o={low:.9,medium:.7,high:.5};export{i as D,o as S,n as m};
