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

Function pathParser

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

Source from the content-addressed store, hash-verified

2484 flex: 1;
2485 text-align: left;
2486}`);var CEA=TA("<!> <!>",1),dEA=TA('<div class="jse-navigation-bar svelte-hjhal6"><!> <button type="button"><span class="jse-navigation-bar-space svelte-hjhal6"> </span> <!></button></div>');function IEA(i,e){Jt(e,!1);var A=cA(void 0,!0),t=cA(void 0,!0),n=dr("jsoneditor:NavigationBar"),o=K(e,"json",9),a=K(e,"selection",9),r=K(e,"onSelect",9),s=K(e,"onError",9),l=K(e,"pathParser",9),g=cA(void 0,!0),C=cA(!1,!0);function d(eA){n("get items for path",eA);var Z=$e(o(),eA);if(Array.isArray(Z))return YD(0,Z.length).map(String);if(Jn(Z)){var CA=Object.keys(Z).slice(0);return CA.sort(V_),CA}return[]}function B(eA){return Fr(o(),eA)}function u(eA){n("select path",JSON.stringify(eA)),r()(vs(eA,eA))}function E(){N(C,!1)}function f(eA){E(),u(eA)}KA(()=>(Y(a()),Qt),()=>{N(A,a()?Qt(a()):[])}),KA(()=>(Y(o()),c(A)),()=>{N(t,ua($e(o(),c(A))))}),KA(()=>c(A),()=>{c(A),setTimeout(()=>{if(c(g)&&c(g).scrollTo){var eA=c(g).scrollWidth-c(g).clientWidth;eA>0&&(n("scrollTo ",eA),c(g).scrollTo({left:eA,behavior:"smooth"}))}})}),Vn(),di(!0);var m=dEA(),v=gA(m),S=eA=>{var Z=CEA(),CA=at(Z);Da(CA,1,()=>c(A),Ka,(QA,RA,dA)=>{QV(QA,{getItems:d,get path(){return c(A)},index:dA,onSelect:u})});var wA=kA(CA,2),BA=QA=>{QV(QA,{getItems:d,get path(){return c(A)},get index(){return c(A),uA(()=>c(A).length)},onSelect:u})};zA(wA,QA=>{c(t)&&QA(BA)}),sA(eA,Z)},k=eA=>{cEA(eA,{get path(){return c(A)},onClose:E,onChange:f,get onError(){return s()},pathExists:B,get pathParser(){return l()}})};zA(v,eA=>{c(C)?eA(k,!1):eA(S)});var M,x=kA(v,2),F=gA(x),z=gA(F),j=kA(F,2),X=lt(()=>c(C)?lJ:nJ);Bn(j,{get data(){return c(X)}}),ta(m,eA=>N(g,eA),()=>c(g)),Le(eA=>{M=Ci(x,1,"jse-navigation-bar-edit svelte-hjhal6",null,M,{flex:!c(C),editing:c(C)}),jn(x,"title",c(C)?"Cancel editing the selected path":"Edit the selected path"),Ht(z,eA)},[()=>(Y(ua),Y(o()),c(C),uA(()=>ua(o())||c(C)?"\xA0":"Navigation bar"))]),De("click",x,function(){N(C,!c(C))}),sA(i,m),Yt()}oi(`/* over all fonts, sizes, and colors */
2487/* "consolas" for Windows, "menlo" for Mac with fallback to "monaco", 'Ubuntu Mono' for Ubuntu */
2488/* (at Mac this font looks too large at 14px, but 13px is too small for the font on Windows) */
2489/* main, menu, modal */

Callers

nothing calls this directly

Calls 6

lFunction · 0.90
fFunction · 0.90
kFunction · 0.90
eAFunction · 0.70
NAFunction · 0.70
cnFunction · 0.70

Tested by

no test coverage detected