Module 939249

1,182 characters · in no known chunk
Dependencies
Required by (411)
1310373861516155158231828218365198092046520504285282959934337380553961340344404744313646937478684873650820519435494855759561295737558736588296010064622647496573866442673196741667811679567185578903803308068383297858298637687730956559678297808101555103552104171104731105289107773109026111185112107112753113673117029121002123583124480129493131882138617139146142630143657144165147696149741154434156867158304159730162093162307164048166005167630175671182859187654189252191110193663196231198525201934204651206778212628213113214838217424220995231643232122232571235327238017238234241188241499242939243166247181251333252046262514263356267889269587271195272244275664277192277370279871282978283012285961286509289634291594292666302031302557304047304476306417310480315246316770317084319993320080320742321563328100328857329554332173333189342298342952348833349230349288349419350527352043353394353428354033354948359378360563361597370997372474375499376310376352377980378974380700381687382003382259398817401155402857408121414079417098417454421617425663427080435954436405438271438407438729439401440801442734444550445889448967450117450232450740451395451772455066456283475706477156480084480178480900481045481947488358500770501335508274513297516889517622518142520660521974527139529200531648534148534400538451541712548118550560554601557420561965564490564771565265566668571047572211572469575293578839579735580763582306589158589935590114592044596484596719597351605694606049610912620018622142623280623671625928627669629584632738635071635995639245639288640132646764650588650993653523655045655098657048657977659280661847664111667086671897672525674168675371676923677877681281684136685961686502689035706897707335710637717959718697724029725363728365729398731231736339737823738266741046741561742424744753747007753838754692754744759625761508767089770101778768779519783384785007788593794783803977804630805945805964806932807067807780810604811611812633817820818743820785821209822610825596831056831688832327834135834615836781843282844330855267855446858808860603862611866945869362872363873033873614874357878555884496886235887909888250890856895770902550902592908683910607913765914119914905918192920196922068928078928529929120930101930349930390930840932793937489937563939318942262944355944766946228950072950373954784956123960538961974964195968898974544974800974964978171979204980707981714982484983495986268986687986712988436988672991054993401994064999751
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()})}}}