Build 555975stable
Module 939249
1,182 characters · in no known chunkDependencies
Required by (408)
131061516155110141582318282183651980920465205042852829599343373805539613403444047442109431364693747868487365082051943549485575956129573755873658829646226474965738664426731967416678116795671855789038033080683832978637687730956559678297808101555103552104171104731107773109026111185112107112753113673117029121002123583124480129493131882138617139146142630142662143657144165146429147696149741154434159730164048166005167630182859189252191110193663198289198525201934204651205278206778217424220995222983226830231643232122235327238017241188241499243166251333262514266297267889269587271195275664277192277370279871281079281910282978283012285901285961286509286668289634290948291594292666302031302557304047304476306417315246316770317084319993320080320742321563328100329554332173333189342298342952349230349288349419350527352043353394353428354948359378360563361597362680370997372474375499376310376352378974379842381687382003382259390877392056398817401155402857403346408121414079417098417454421617425663427080435954436405438271438407439401440801442679442734444550448967450117450232450740451395451772475706477156480084480178480900481045481947488358500770501335502944504599508274513297516889517622518142520660521974529200531648534148534400538409538451541712546804548118549363550489550560554601557420561965564771565265566668572211572469575293578839579735580763582306582633589158589935590114592044596484596719597351605694606049620018622142622168623280623671625928629455629584632738635071635995639245639288640132646764650588650993653523655045655098657048657977659280661847664111667086671897672525674168676923680262681281684136685961686502689035692440706897707335710637717959718509725363728365729398731231736339737823738266739848740572741046741561742424743407744753747007753838754692761508767089770101778768779519779669783384785007788593794783803977804630805945805964806202806932807067807780808166811611812633813730815076817649818743820785821209822610825596827641830618831056831688834135834615836781843282844330855267855446858808860603861283862611866945869362872363873033873614874357878555884496886235887909888250890856895770897904902550902592908683910607913765914119914905918192922068928529929120930101930349930390930840932793937489937563939318942262944355944766946228950072950373954784956123960538961974964195964395968898974544974800974964979204980707982484983495986268986687986712988436988672991054993401994064999751
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{D:()=>l});var i=n(627968),r=n(64700),s=n(531142),a=n(187322),o=n(650583);class l extends r.Component{ref;static contextType=s.g;static defaultProps={tag:"div",role:"button",tabIndex:0};handleKeyPress=e=>{let{onClick:t,href:n,onKeyPress:i,ignoreKeyPress:r}=this.props;e.repeat||(r||null==t||null==this.ref||e.key!==o.dh.SPACE&&e.key!==o.dh.ENTER||(null==n&&e.preventDefault(),null==this.ref.click?t(e):this.ref.click()),null!=i&&i(e))};setRef=e=>{this.ref=e;let{innerRef:t}=this.props;null!=t&&("function"==typeof t?t(e):t.hasOwnProperty("current")&&(t.current=e))};renderNonInteractive(){let{tag:e,focusProps:t,innerRef:n,onClick:i,role:s,tabIndex:a,ignoreKeyPress:o,...l}=this.props;return r.createElement(e,{ref:this.setRef,...l})}renderInner(){let{tag:e,onClick:t,className:n,children:i,focusProps:s,innerRef:a,ignoreKeyPress:o,...l}=this.props;return null==t?r.createElement(e,{ref:this.setRef,className:n,...l},i):r.createElement(e,{onClick:t,ref:this.setRef,onKeyPress:this.handleKeyPress,className:n,...l},i)}render(){return this.context?this.renderNonInteractive():(0,i.jsx)(a.vN,{...this.props.focusProps,children:this.renderInner()})}}}