Module 939249

1,336 characters · in no known chunk
Dependencies
Required by (449)
3921310373841206151615510822182822046520504245942852828863374023775638055396134034440474431364693747868487365082051943537745494855759561295873658829595376240564622647496644267319678117185573663738707758078903803308068385935877309541495477956559678297808101555104171107773109026111185112107112753113491113673117029123181123583124480129493131882139146142630143407143657144165147696149741154434154649159730161673162093164048166005167630168457173127173155175671182859187654188602189252190199191110193663196231196582198525204651217424217482219503220995226830229087231088231643232122232571235327238017238234241188241215241387241499241989242939243166247186252102262514266536267889269587271006271195275664276130279182279306283012284675285961286509289634291594302031302557304047306417308334315246316770317084318104319993320080320742321486321563322338322789326009328380328461328857329554331446332173333189333204342298342952343963349203350527352043353394353428354033354948355998359378360449360627370997372474375499376310376352377980378455378974382003382567398282401155402857408121414079414711417098417454421617422065425663427080427294435954436405438271438407438692438729439325439401442152442734444550445529448967450117450740451395452015454491459789465558465829467884475706478531480178480900481045481947484734488358492385500770503062508274513297516889517622518142519342520082520660521974529051529200531648532339534148534400537547538451541712542308546419548118549363554601557026557420560149561965564771565265568006572211572469575293578839579735580763582306588857589158589935590114590380590388591840596484596719597351606049618989622868623280623671625928626148629584632738635995639245640132645501646252650588650993651247653523655098657048657538657977659280661847664111667086671884671897672525674168675782676923681281684136685961686502688260688438706897707335709013710637715069716936727353727584729398737823742290744753747007753838754692754744755362759625761508767089768838770101773033777307778578778768779519785007788259788593791519791556794783799162803281803977804630805945806932807067807780811611812633813703813837818433818743821209822610825596826320827059829648831056831688831937834135836781843282844330844639844789849205855267855446860603862611865107866945869362872238872363873614878678883455884496886180886235887909888250890856894591900649902550902592903491910607913765914119914905918192923650928529929120930101930349930840932453932793937489937563940990942262943793946228948822950072950980951592954784958720960538960628963402963942964195967388968898974544974800976014978171979204980707982484983495985110986687986712988436991054993401994064999751
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()})}}}