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

Function mC

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

Source from the content-addressed store, hash-verified

286.jse-absolute-popup.svelte-enkkpn .jse-absolute-popup-content:where(.svelte-enkkpn) {
287 position: absolute;
288}`);var lIA=TA('<div class="jse-absolute-popup-content svelte-enkkpn"><input type="text" readonly="" tabindex="-1" class="jse-hidden-input svelte-enkkpn"/> <!></div>'),gIA=TA('<div role="none" class="jse-absolute-popup svelte-enkkpn"><!></div>');function cIA(i,e){Jt(e,!1);var A=K(e,"popup",8),t=K(e,"closeAbsolutePopup",8),n=cA(),o=cA();function a(C){A().options&&A().options.closeOnOuterClick&&!CE(C.target,d=>d===c(n))&&t()(A().id)}function r(C){RC(C)==="Escape"&&(C.preventDefault(),C.stopPropagation(),t()(A().id))}os(function(){c(o)&&c(o).focus()}),di();var s=gIA();De("mousedown",bC,function(C){a(C)},!0),De("keydown",bC,r,!0),De("wheel",bC,function(C){a(C)},!0);var l=gA(s),g=C=>{var d=lIA(),B=gA(d);ta(B,u=>N(o,u),()=>c(o)),fq(kA(B,2),()=>A().component,(u,E)=>{E(u,t1(()=>A().props))}),Le(u=>wg(d,u),[()=>(c(n),Y(A()),uA(()=>(function(u,E){var f=u.getBoundingClientRect(),{left:m,top:v,positionAbove:S,positionLeft:k}=(function(){if(E.anchor){var{anchor:M,width:x=0,height:F=0,offsetTop:z=0,offsetLeft:j=0,position:X}=E,{left:eA,top:Z,bottom:CA,right:wA}=M.getBoundingClientRect(),BA=X==="top"||Z+F>window.innerHeight&&Z>F,QA=X==="left"||eA+x>window.innerWidth&&eA>x;return{left:QA?wA-j:eA+j,top:BA?Z-z:CA+z,positionAbove:BA,positionLeft:QA}}if(typeof E.left=="number"&&typeof E.top=="number"){var{left:RA,top:dA,width:IA=0,height:xA=0}=E;return{left:RA,top:dA,positionAbove:dA+xA>window.innerHeight&&dA>xA,positionLeft:RA+IA>window.innerWidth&&RA>IA}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')})();return(S?"bottom: ".concat(f.top-v,"px;"):"top: ".concat(v-f.top,"px;"))+(k?"right: ".concat(f.left-m,"px;"):"left: ".concat(m-f.left,"px;"))})(c(n),A().options)))]),sA(C,d)};zA(l,C=>{c(n)&&C(g)}),ta(s,C=>N(n,C),()=>c(n)),De("mousedown",s,function(C){C.stopPropagation()}),De("keydown",s,r),sA(i,s),Yt()}var CIA=TA("<!> <!>",1);function N_(i,e){Jt(e,!1);var A=dr("jsoneditor:AbsolutePopup"),t=cA([],!0);function n(r){var s=c(t).findIndex(g=>g.id===r);if(s!==-1){var l=c(t)[s];l.options.onClose&&l.options.onClose(),N(t,c(t).filter(g=>g.id!==r))}}(function(r,s){FV().set(r,s)})("absolute-popup",{openAbsolutePopup:function(r,s,l){A("open...",s,l);var g={id:Fh(),component:r,props:s||{},options:l||{}};return N(t,[...c(t),g]),g.id},closeAbsolutePopup:n}),KA(()=>c(t),()=>{A("popups",c(t))}),Vn(),di(!0);var o=CIA(),a=at(o);Da(a,1,()=>c(t),Ka,(r,s)=>{cIA(r,{get popup(){return c(s)},closeAbsolutePopup:n})}),ya(kA(a,2),e,"default",{},null),sA(i,o),Yt()}function Bp(i,e){for(var A=new Set(e),t=i.replace(/ \(copy( \d+)?\)$/,""),n=i,o=1;A.has(n);){var a="copy"+(o>1?" "+o:"");n="".concat(t," (").concat(a,")"),o++}return n}function mC(i,e){var A=e-3;return i.length>e?i.substring(0,A)+"...":i}function dIA(i){if(i==="")return"";var e=i.toLowerCase();if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;if(e!=="undefined"){var A=Number(i),t=parseFloat(i);return isNaN(A)||isNaN(t)?i:A}}var IIA={id:"jsonquery",name:"JSONQuery",description:`
289<p>
290 Enter a <a href="https://jsonquerylang.org" target="_blank"
291 rel="noopener noreferrer">JSON Query</a> function to filter, sort, or transform the data.

Callers 5

oEAFunction · 0.85
_WFunction · 0.85
TeFunction · 0.85
aeFunction · 0.85
JEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected