MCPcopy Index your code
hub / github.com/google/adk-python / p_

Function p_

src/google/adk/cli/browser/main-3CUQG2IN.js:2832–2832  ·  view source on GitHub ↗
(i,e)

Source from the content-addressed store, hash-verified

2830button.jse-context-menu-button.svelte-1y5l9l1 svg {
2831 width: 16px;
2832}`);var bEA=TA('<button type="button" slot="defaultItem"><!> </button>');function p_(i,e){Jt(e,!1);var A=cA(),t=K(e,"item",8),n=K(e,"className",8,void 0),o=K(e,"onRequestClose",8);KA(()=>(Y(t()),Y(o())),()=>{N(A,t().items.map(a=>Fe(Fe({},a),{},{onClick:r=>{o()(),a.onClick(r)}})))}),Vn(),di(),(function(a,r){Jt(r,!1);var s=cA(void 0,!0),l=K(r,"items",25,()=>[]),g=K(r,"title",9,void 0),C=K(r,"width",9,"120px"),d=cA(!1,!0);function B(){N(d,!1)}function u(M){RC(M)==="Escape"&&(M.preventDefault(),N(d,!1))}os(()=>{document.addEventListener("click",B),document.addEventListener("keydown",u)}),Dg(()=>{document.removeEventListener("click",B),document.removeEventListener("keydown",u)}),KA(()=>Y(l()),()=>{N(s,l().every(M=>M.disabled===!0))}),Vn(),di(!0);var E=vEA(),f=gA(E);ya(f,r,"defaultItem",{},null);var m,v=kA(f,2);Bn(gA(v),{get data(){return r0}});var S,k=kA(v,2);Da(gA(k),5,l,Ka,(M,x)=>{var F=DEA(),z=gA(F),j=gA(z),X=Z=>{Bn(Z,{get data(){return c(x),uA(()=>c(x).icon)}})};zA(j,Z=>{c(x),uA(()=>c(x).icon)&&Z(X)});var eA=kA(j);Le(()=>{var Z;jn(z,"title",(c(x),uA(()=>c(x).title))),z.disabled=(c(x),uA(()=>c(x).disabled)),Ci(z,1,o1((c(x),uA(()=>c(x).className))),"svelte-bov1j6"),Ht(eA," ".concat((c(x),(Z=uA(()=>c(x).text))!==null&&Z!==void 0?Z:"")))}),De("click",z,Z=>c(x).onClick(Z)),sA(M,F)}),Le(()=>{var M;jn(E,"title",g()),m=Ci(v,1,"jse-open-dropdown svelte-bov1j6",null,m,{"jse-visible":c(d)}),v.disabled=c(s),S=Ci(k,1,"jse-dropdown-items svelte-bov1j6",null,S,{"jse-visible":c(d)}),wg(k,"width: ".concat((M=C())!==null&&M!==void 0?M:"",";"))}),De("click",v,function(){var M=c(d);setTimeout(()=>N(d,!M))}),De("click",E,B),sA(a,E),Yt()})(i,{get width(){return Y(t()),uA(()=>t().width)},get items(){return c(A)},$$slots:{defaultItem:(a,r)=>{var s=bEA(),l=gA(s),g=d=>{Bn(d,{get data(){return Y(t()),uA(()=>t().main.icon)}})};zA(l,d=>{Y(t()),uA(()=>t().main.icon)&&d(g)});var C=kA(l);Le(d=>{var B;Ci(s,1,d,"svelte-1y5l9l1"),jn(s,"title",(Y(t()),uA(()=>t().main.title))),s.disabled=(Y(t()),uA(()=>t().main.disabled||!1)),Ht(C," ".concat((Y(t()),(B=uA(()=>t().main.text))!==null&&B!==void 0?B:"")))},[()=>o1((Y(wc),Y(n()),Y(t()),uA(()=>wc("jse-context-menu-button",n(),t().main.className))))]),De("click",s,d=>{o()(),t().main.onClick(d)}),sA(a,s)}}}),Yt()}oi(`/* over all fonts, sizes, and colors */
2833/* "consolas" for Windows, "menlo" for Mac with fallback to "monaco", 'Ubuntu Mono' for Ubuntu */
2834/* (at Mac this font looks too large at 14px, but 13px is too small for the font on Windows) */
2835/* main, menu, modal */

Callers 3

MFunction · 0.70
HAFunction · 0.70
PeFunction · 0.70

Calls 15

KFunction · 0.90
YFunction · 0.90
tFunction · 0.90
oFunction · 0.90
NFunction · 0.90
lFunction · 0.90
yaFunction · 0.90
DaFunction · 0.90
cFunction · 0.90
ZFunction · 0.90
gFunction · 0.90
CFunction · 0.90

Tested by

no test coverage detected