MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / Lb

Function Lb

code/new-context-api/public/app.js:17431–17431  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

17429var yb=m.canUseDOM&&"TextEvent"in window&&!xb,zb=m.canUseDOM&&(!wb||xb&&8<xb&&11>=xb),Cb=String.fromCharCode(32),O={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",
17430captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Jb=!1;
17431function Kb(a,b){switch(a){case "topKeyUp":return-1!==vb.indexOf(b.keyCode);case "topKeyDown":return 229!==b.keyCode;case "topKeyPress":case "topMouseDown":case "topBlur":return!0;default:return!1}}function Lb(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var Mb=!1;function Nb(a,b){switch(a){case "topCompositionEnd":return Lb(b);case "topKeyPress":if(32!==b.which)return null;Jb=!0;return Cb;case "topTextInput":return a=b.data,a===Cb&&Jb?null:a;default:return null}}
17432function Ob(a,b){if(Mb)return"topCompositionEnd"===a||!wb&&Kb(a,b)?(a=mb(),M._root=null,M._startText=null,M._fallbackText=null,Mb=!1,a):null;switch(a){case "topPaste":return null;case "topKeyPress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case "topCompositionEnd":return zb?null:b.data;default:return null}}
17433var Pb={eventTypes:O,extractEvents:function(a,b,c,d){var e=void 0;var f=void 0;if(wb)b:{switch(a){case "topCompositionStart":e=O.compositionStart;break b;case "topCompositionEnd":e=O.compositionEnd;break b;case "topCompositionUpdate":e=O.compositionUpdate;break b}e=void 0}else Mb?Kb(a,c)&&(e=O.compositionEnd):"topKeyDown"===a&&229===c.keyCode&&(e=O.compositionStart);e?(zb&&(Mb||e!==O.compositionStart?e===O.compositionEnd&&Mb&&(f=mb()):(M._root=d,M._startText=nb(),Mb=!0)),e=tb.getPooled(e,b,c,d),f?
17434e.data=f:(f=Lb(c),null!==f&&(e.data=f)),hb(e),f=e):f=null;(a=yb?Nb(a,c):Ob(a,c))?(b=ub.getPooled(O.beforeInput,b,c,d),b.data=a,hb(b)):b=null;return null===f?b:null===b?f:[f,b]}},Qb=null,Rb=null,Sb=null;function Tb(a){if(a=Ea(a)){Qb&&"function"===typeof Qb.restoreControlledState?void 0:D("194");var b=Da(a.stateNode);Qb.restoreControlledState(a.stateNode,a.type,b)}}var Ub={injectFiberControlledHostComponent:function(a){Qb=a}};function Vb(a){Rb?Sb?Sb.push(a):Sb=[a]:Rb=a}

Callers 2

NbFunction · 0.70
app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected