Module 939249

1,336 characters · in no known chunk
Dependencies
Required by (437)
392131037386151615510822132451582318282204652050424594285282886338055396134034440474431364693747868487365082051943549485575956129587365882964622647496573866442673196781170268718557366377580789038033080683877309541495477956559678297808101555104171107773109026111185112107112753113673117029121002123583124480129493131047131882139146142630143407143657144165147696149346149741154434154649155007159730161319162093164048166005167630175671178504182859187654189252190199191110193663196231196582198525204651207274208048217424217482219503220995226830231088231643232122232571235327236820238017238234241188241215241499242939243166249264262514264609267889269587271006271195273754275664277370279182283012284675285961286509289634291594302031302557304047306417308334311656315246316770317084319993320080320742321486321563322338322789328380328461328857329554331446332173333189333204342298342952350527352043353394354033354948357701359378360563360627370997372474373204375499376310376352377980378455378974382003382567397251401155402857408121414079414711417098417454421617425663427080427294435954436405438271438407438729439325439401440801442152442734444550445529448967450117450740451395454491459789460987465558465829467884470162475706477156478531480084480142480178480900481045481947488026488358492385500770501335503062507946508274513297516889517622518142519342520082520660521974529200531648534148534400538451541712546419548118549363554601557420559260561965564771565265566668568006572211572469575293578839579735580763582306587372588857589158589935590114590380590388591840596484596719597351599882606049618989622868623280623671625928629584632738635995639245640132641403646764650588650993651247653523655098657048657977659280661847664111664708667086671884671897672525672957674168676923681281683383684136685961686502706897707335710637715069716936729398737823741561742290742424743609744753746669747007753838754692754744759625760447761508767089768838770101777307778578778768779519782274785007788259788593794783799162803977804630805945806932807067807780811611812633813703813837818433818743820785821209822610825596826320829648831056831688834135834615836781843282844330844789846966849205855267855446860603862611866945869362872238872363873614877946882362883455884496886180886235887909888250890856900649902550902592906199908742910607913765914119914905918192928529929120930101930349930840932793937489937563942262946228948822950072951592954784958720960538963402964195966245967388967729968898974544974800976014978171979204980025980390980707982484983495986268986687986712988436991054993401994064999174999751
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(477900),r=n(582128),a=n(531142),s=n(259678),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(),this.ref.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,view:this.ref.ownerDocument?.defaultView??window}))),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()})}}}