Module 939249

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