Build 584177stable
Module 939249
1,182 characters · in no known chunkDependencies
Required by (424)
1310373861516155845910822158231828218365204652050425508285283433738055396134034440474431364693747868487365082051943549485575956129587365882963152646226474965738664426731967811679567154771855775807890380330806838773095414956559678297808101555103552104171104731105289107773109026111185112107112753113673117029121002123583124480128846129493131882133839135314138617139146142630143657144165147696149346149741154434157432159730161319162093164048166005167630175671182859187654189252191110191248193663196231198525204651206778207274213281217424220995231118231643232122232571235327238017238234241188241215241499242939243166247181249264256106262514263356267889269587271006271195272244275664277370279871283012285961286509287706289634291594292666302031302557304047306417315246316770317084319993320080320742321563322789328857329554332173333189333204333216342298342952349288349419350527352043353394353428354033354948360563361597364550366554370997372474372711375499376310376352377980378974379388382003387704401155402857408121414079414711417098417454421617425663427080427294435954436405438271438407438729439129439325439401440801442444442734444550445529448967450117450232450740451395451772454491459789465558465829467884475706477156480084480178480900481045481947488358500414500770501335503062508274513297516889517622518142519342520660521974527549529200531648534148534400538451541712548118549363550560554601556387557420561965564490564771565124565265566668568006572211572469575293578839579735580763582306588857589158589935590114592044596484596719597351599882605694606049618989622142623280623671625928627669629584632738635565635995639245639288640132646764650588650993651247653523655098657048657855657977659280661847664111664708667086671884671897672525672957674168676923681281682455684136684603685961686502689035706897707335710637715069717959725363728365729398731231734195737823741561742424744753747007753838754692754744759625761508767089770101777307779519783384785007788593789543794783797489799162803977804630805945805964806932807067807780808400811611812633818743820785821209822610825596831056831688834135836781843282844330844789846966849205855267855446860603862611866945869362872363873614882362884496886235887909888250890856895770902550902592910607913765914119914905918192928078928529929120930101930349930390930840932793937489937563942262944766946228950072954784956123960538963402964195967388968066968898974544974800976014978171979204979748980707982484983495986268986687986712988436991054993401994064999174999751
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()})}}}