Build 576754stable
Module 939249
1,182 characters · in no known chunkDependencies
Required by (418)
1310373861516155107571582317389182821836520465205042422628528343373805539613403444047443136469374786848736508205194354948557595612958736588296315264622647496573866442673196781167956718557506178903803308068383297863768773095414956559678297808101555103552104171104731105289107773109026111185112107112753113673117029121002123583124480128846129493131882135314138617139146142630143657144165147696149741154434156867159730161319162093164048166005167630175671178347182859187654189252191110193663196231198525201934204651206778207274217424220995230540231643232122232571235327238017238234241188241499242939243166247181251333262514263356269587271195272244275664277370279871283012285961286509289634291594292666302031302557304047306417315246316770317084319993320080320742321563328857329554332173333189333204333216334295339891342298342952348833349230349288349419350527352043353394353428354033354948359378360563361597370997372474375499376310376352377980378974380700381687382003401155402857408121408346414079414711417098417454421617424045425663427080435954436405438271438407438729439129439325439401440801442444442734444550448967450117450232450740451395451772459789465558467884475706477156480084480178480900481045481947488358495095496920500414500770501335508274510830513297516889517622518142519342520660521974527139527549529200531648533094534148534400538451541712546214548118549363550560554601557420561965564490564771565265566668568006572211572469575293578839579735582306589158589935590114592044596484596719597351605694606049622142623280623671625928627669629584632738635071635995639245639288640132646764650588650993651009651247653523655045655098657048657977659280661847664111667086671897672525672957674168676923677877681281682455684136684603685961686502689035706897707335710637717959724029725363728365729398731231734195735668737823738266741561742424744753747007753838754692754744759625761508767089770101777307778768779519780385783384785007788593793325794783797489803977804630805945805964806932807067807780811611812633818743820785821209822610825596831056831688834135836781843282844330844789849205855267855446858808860603862611866945869362872363873614874357878555884496886235887909888250890856892955895770902550902592908683910607913765914119914905918192928078928529929120930101930349930390930840932793937489937563939318942262944355944766946228950072954784956123960538967388968898974544974800978171979204980707981714982484983495986268986687986712988436991054993401994064999751
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{D:()=>o});var i=n(627968),r=n(64700),a=n(531142),s=n(187322),l=n(650583);class o extends r.Component{ref;static contextType=a.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!==l.dh.SPACE&&e.key!==l.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:a,tabIndex:s,ignoreKeyPress:l,...o}=this.props;return r.createElement(e,{ref:this.setRef,...o})}renderInner(){let{tag:e,onClick:t,className:n,children:i,focusProps:a,innerRef:s,ignoreKeyPress:l,...o}=this.props;return null==t?r.createElement(e,{ref:this.setRef,className:n,...o},i):r.createElement(e,{onClick:t,ref:this.setRef,onKeyPress:this.handleKeyPress,className:n,...o},i)}render(){return this.context?this.renderNonInteractive():(0,i.jsx)(s.vN,{...this.props.focusProps,children:this.renderInner()})}}}