MCPcopy
hub / github.com/google/adk-python / OIA

Function OIA

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

Source from the content-addressed store, hash-verified

640 color: var(--jse-tag-background, rgba(0, 0, 0, 0.2));
641 content: "value";
642}`);var TIA=TA('<div role="button" tabindex="-1" data-type="selectable-value"><!> <!></div>');function OIA(i,e){Jt(e,!0);var A=EC(!0),t=Bl(()=>c(A)&&typeof e.value=="string"&&e.value.length>e.truncateTextSize&&(!e.searchResultItems||!e.searchResultItems.some(B=>B.active&&B.end>e.truncateTextSize))),n=Bl(()=>c(t)&&typeof e.value=="string"?e.value.substring(0,e.truncateTextSize).trim():e.value),o=Bl(()=>d5(e.value));function a(){N(A,!1)}var r=TIA();r.__click=function(B){typeof e.value=="string"&&c(o)&&dx(B)&&(B.preventDefault(),B.stopPropagation(),window.open(e.value,"_blank"))},r.__dblclick=function(B){e.readOnly||(B.preventDefault(),e.onSelect(Zw(e.path)))};var s=gA(r),l=B=>{var u=Bl(()=>e.normalization.escapeValue(c(n)));iW(B,{get text(){return c(u)},get searchResultItems(){return e.searchResultItems}})},g=B=>{var u=mr();Le(E=>Ht(u,E),[()=>$h(e.normalization.escapeValue(c(n)))]),sA(B,u)};zA(s,B=>{e.searchResultItems?B(l):B(g,!1)});var C=kA(s,2),d=B=>{Tw(B,{onclick:a,children:(u,E)=>{var f=mr();Le(m=>Ht(f,"Show more (".concat(m??"",")")),[()=>Uw(e.value.length)]),sA(u,f)},$$slots:{default:!0}})};zA(C,B=>{c(t)&&typeof e.value=="string"&&B(d)}),Le(B=>{Ci(r,1,B,"svelte-1saqp8c"),jn(r,"title",c(o)?"Ctrl+Click or Ctrl+Enter to open url in new window":void 0)},[()=>o1(qq(e.value,e.mode,e.parser))]),sA(i,r),Yt()}cp(["click","dblclick"]);oi(`/* over all fonts, sizes, and colors */
643/* "consolas" for Windows, "menlo" for Mac with fallback to "monaco", 'Ubuntu Mono' for Ubuntu */
644/* (at Mac this font looks too large at 14px, but 13px is too small for the font on Windows) */
645/* main, menu, modal */

Callers

nothing calls this directly

Calls 15

cFunction · 0.90
BFunction · 0.90
d5Function · 0.85
ZwFunction · 0.85
qqFunction · 0.85
trimMethod · 0.80
openMethod · 0.80
JtFunction · 0.70
ECFunction · 0.70
BlFunction · 0.70
dxFunction · 0.70
gAFunction · 0.70

Tested by

no test coverage detected