import{B as e,F as t,H as n,L as r,k as i,m as a,p as o,t as s,u as c,v as l,w as u,x as d}from"./_plugin-vue_export-helper-Cut4Z2wH.js";var f={class:`bearer-input`},p={key:0,class:`token-badge`},m=[`title`],h={key:1,class:`token-form`},g=[`disabled`],_=s(u({__name:`BearerInput`,emits:[`authenticated`],setup(s,{emit:u}){let _=u,v=r(``);function y(){v.value.trim()&&(c.bearer=v.value.trim(),_(`authenticated`))}function b(){c.bearer=``,v.value=``}function x(e){return e.length<=20?e:e.slice(0,10)+`...`+e.slice(-6)}return(r,s)=>(i(),d(`div`,f,[e(c).bearer?(i(),d(`div`,p,[s[1]||=l(`span`,{class:`lock-icon`},`🔒`,-1),l(`span`,{class:`token-value`,title:e(c).bearer},n(x(e(c).bearer)),9,m),l(`button`,{class:`clear-btn`,onClick:b,title:`Clear token`},`×`)])):(i(),d(`div`,h,[s[2]||=l(`span`,{class:`lock-icon`},`🔓`,-1),t(l(`input`,{"onUpdate:modelValue":s[0]||=e=>v.value=e,type:`text`,class:`token-input`,placeholder:`API key or ANIP delegation token`,onKeyup:a(y,[`enter`])},null,544),[[o,v.value]]),l(`button`,{class:`apply-btn`,onClick:y,disabled:!v.value.trim()},`Apply`,8,g),s[3]||=l(`a`,{class:`token-help`,href:`https://anip.dev/docs/protocol/authentication`,target:`_blank`,rel:`noopener`,title:`How authentication and delegation work`},`?`,-1)]))]))}}),[[`__scopeId`,`data-v-7d7ee53a`]]);export{_ as t};